7,862 bytes added
, 10:37, 27 March 2023
==Manual CAN Commands example==
{| class="wikitable" style="border-style: solid; border-width: 0px;"
|+
| style="width: auto; text-align: left; background: #F6F6FB;" |'''NOTE!'''
| style="width: auto; text-align: left; background: #F6F6FB;" |Manual CAN commands can be tested on FW 55.00.09.rev.08 or newer
|}
<br>Information from the protocol example:
*<b>CAN speed</b> - 500kbps
*<b>CAN ID length</b> - 11bit
*<b>Data format</b> - little endian
*<b>Manual CAN commands</b> - 8
{| style="width: 100%"
|[[Image:Manual CAN Commands.png|right]]
1. In '''CAN I/O''' section <b>Manual CAN</b> is selected as CAN protocol. No I/O elements in this tab were enabled in this example. This can be done according to user needs.
|}
{| style="width: 100%"
|[[Image: Manual CAN Baudrate.png|right]]
2. Manual CAN Settings section - <b>Baudrate</b> is set to 500 kbps based on example protocol.
|}
3. Scroll down to <b>Manual CAN Commands</b> area in the same '''Manual CAN Settings''' section:<br>
From this protocol example, '''8 Manual CAN Commands''' can be configured (from Manual CAN Command 0 to Manual CAN Command 7 row).
<br>
<u>Manual CAN Commands example from this protocol can be seen below:</u>
[[Image:Parameter 0x600 example.png|center]]
In this protocol example commands are listed in frame '''0x600,''' we have configured every possible variant of commands based on the picture above.
#<b><u>Manual CAN Command 0 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0100000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>unlock</u>''' action. Protocol states that '''<u>unlock</u>''' command is <u>value 1</u> and is located on the <u>zero byte</u> of the frame 0x600. So on the zero byte in configurator, Data field, we put in this value: <b>0100000000000000</b>. [[Image:Manual CAN Command 0 Settings Example.png|center]] The configured '''<u>unlock</u>''' command can be initiated by this SMS/GPRS command:<code>mcan_cmd:0</code> <br><br>
#<b><u>Manual CAN Command 1 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0200000000000000;</b> Data length: <b>8 bytes</b>. This command is configured for '''<u>lock</u>''' action. Protocol states that '''<u>lock</u>''' command is <u>value 2</u> and is located on the <u>zero byte</u> of the frame 0x600. So on the zero byte in configurator, Data field, we put in this value: <b>0200000000000000</b>. [[Image: Manual CAN Command 1 Settings Example.png|center]] The configured '''<u>lock</u>''' command can be initiated by this SMS/GPRS command:<code>mcan_cmd:1</code> <br><br>
#<b><u>Manual CAN Command 2 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0001000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>close the top case</u>''' action. Protocol states that '''<u>close the top case</u>''' command is <u>value 1</u> and is located on the <u>first byte</u> of the frame 0x600. So on the first byte in configurator, Data field, we put in this value: <b>0001000000000000</b>.[[Image:Manual CAN Command 2 Settings Example.png|center]] The configured '''<u>close the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:2</code> <br><br>
#<b><u>Manual CAN Command 3 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0002000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>open the top case</u>''' action. Protocol states that '''<u>open the top case</u>''' command is <u>value 2</u> and is located on the <u>first byte</u> of the frame 0x600. So on the first byte in configurator, Data field, we put in this value: <b>0002000000000000</b>.[[Image:Manual CAN Command 3 Settings Example.png|center]]The configured '''<u>open the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:3</code> <br><br>
#<b><u>Manual CAN Command 4 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0101000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>unlock + close the top case</u>''' action. Protocol states that '''<u>unlock</u>''' command is <u>value 1</u> and is located on the <u>zero byte</u> of the frame 0x600 and '''<u>close the top case</u>''' command is <u>value 1</u> and is located on the <u>first byte</u> of the frame 0x600. So by combining these two commands and filling zero and first bytes in configurator, we get a new combined command '''<u>unlock + close the top case.</u>''' In Data field, we put in this value: <b>0101000000000000</b>.[[Image:Manual CAN Command 4 Settings Example.png|center]]The configured '''<u>unlock + close the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:4</code> <br><br>
#<b><u>Manual CAN Command 5 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0102000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>unlock + open the top case</u>''' action. Protocol states that '''<u>unlock</u>''' command is <u>value 1</u> and is located on the <u>zero byte</u> of the frame 0x600 and '''<u>open the top case</u>''' command is <u>value 2</u> and is located on the <u>first byte</u> of the frame 0x600. So by combining these two commands and filling zero and first bytes in configurator, we get a new combined command '''<u>unlock + open the top case.</u>''' In Data field, we put in this value: <b>0102000000000000</b>.[[Image:Manual CAN Command 5 Settings Example.png|center]]The configured '''<u>unlock + open the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:5</code> <br><br>
#<b><u>Manual CAN Command 6 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0201000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>lock + close the top case</u>''' action. Protocol states that '''<u>lock</u>''' command is <u>value 2</u> and is located on the <u>zero byte</u> of the frame 0x600 and '''<u>close the top case</u>''' command is <u>value 1</u> and is located on the <u>first byte</u> of the frame 0x600. So by combining these two commands and filling zero and first bytes in configurator, we get a new combined command '''<u>lock + close the top case.</u>''' In Data field, we put in this value: <b>0201000000000000</b>.[[Image:Manual CAN Command 6 Settings Example.png|center]]The configured '''<u>lock + close the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:6</code> <br><br>
#<b><u>Manual CAN Command 7 Settings:</u></b><br> CAN Type: <b>Standard</b>, CAN ID: <b>00000600;</b> Data: <b>0202000000000000;</b> Data length: <b>8 bytes.</b> This command is configured for '''<u>lock + open the top case</u>''' action. Protocol states that <u>lock</u> command is <u>value 2</u> and is located on the <u>zero byte</u> of the frame 0x600 and '''<u>open the top case</u>''' command is <u>value 2</u> and is located on the <u>first byte</u> of the frame 0x600. So by combining these two commands and filling zero and first bytes in configurator, we get a new combined command '''<u>lock + open the top case.</u>''' In Data field, we put in this value: <b>0202000000000000</b>.[[Image:Manual CAN Command 7 Settings Example.png|center]]The configured '''<u>lock + open the top case</u>''' command can be initiated by this SMS/GPRS command: <code>mcan_cmd:7</code>
{| class="wikitable" style="border-style: solid; border-width: 0px;"
|+
| style="width: auto; text-align: left; background: #F6F6FB;" |'''NOTE!'''
| style="width: auto; text-align: left; background: #F6F6FB;" |Manual CAN Commands are different for each protocol. These instructions are made as an example.
|}
[[Category: TFT100 FAQ]]