Line 420: |
Line 420: |
| |} | | |} |
| <br> | | <br> |
− | | + | ==Communication protocol== |
− | ==Close a session command (CMD ID 0x0000)== | + | '''Close a session command (CMD ID 0x0000)'''<br> |
| In case when a device connects to a server, but the server does not expect it to connect, server will respond by sending a CLOSE command after which the connection will be terminated. This command is also used when device connects to a server for a custom file sending and server finishes to send all custom files to the device. | | In case when a device connects to a server, but the server does not expect it to connect, server will respond by sending a CLOSE command after which the connection will be terminated. This command is also used when device connects to a server for a custom file sending and server finishes to send all custom files to the device. |
| {| class="wikitable" | | {| class="wikitable" |
Line 433: |
Line 433: |
| <br> | | <br> |
| | | |
− | ==Start file transfer command (CMD ID 0x0001)==
| + | '''Start file transfer command (CMD ID 0x0001)'''<br> |
| After device is connected for a file download, server initiates file transfer by sending a START command. | | After device is connected for a file download, server initiates file transfer by sending a START command. |
| {| class="wikitable" | | {| class="wikitable" |
Line 449: |
Line 449: |
| <br> | | <br> |
| | | |
− | ==File request command (CMD ID 0x0008)==
| + | '''File request command (CMD ID 0x0008)'''<br> |
| After device is connected for a file upload, server initiates file transfer by sending a FILE REQ command. | | After device is connected for a file upload, server initiates file transfer by sending a FILE REQ command. |
| {| class="wikitable" | | {| class="wikitable" |
Line 481: |
Line 481: |
| <br> | | <br> |
| | | |
− | ==Resume file transfer command (CMD ID 0x0002)==
| + | '''Resume file transfer command (CMD ID 0x0002)'''<br> |
| In a response to the START command a RESUME command must be sent from a server. | | In a response to the START command a RESUME command must be sent from a server. |
| {| class="wikitable" | | {| class="wikitable" |
Line 496: |
Line 496: |
| <br> | | <br> |
| | | |
− | ==Synchronize file transfer command (CMD ID 0x0003)==
| + | '''Synchronize file transfer command (CMD ID 0x0003)'''<br> |
| In a response to the RESUME command a SYNC command is sent from device. | | In a response to the RESUME command a SYNC command is sent from device. |
| {| class="wikitable" | | {| class="wikitable" |
Line 511: |
Line 511: |
| <br> | | <br> |
| | | |
− | ==File data transfer command (CMD ID 0x0004)==
| + | '''File data transfer command (CMD ID 0x0004)'''<br> |
| After sending a SYNC command, a file data transfer is started by sending DATA commands. | | After sending a SYNC command, a file data transfer is started by sending DATA commands. |
| {| class="wikitable" | | {| class="wikitable" |
Line 531: |
Line 531: |
| <br> | | <br> |
| | | |
− | ==File transfer status command (CMD ID 0x0005)==
| + | '''File transfer status command (CMD ID 0x0005)'''<br> |
| After a file transfer is completed and no more files are required from the device, a server should send a COMPLETED command to the device (this command does not work after executing repeat init command0 x0009 – in this case the server should send a CLOSE session 0x0000 command mentioned before). | | After a file transfer is completed and no more files are required from the device, a server should send a COMPLETED command to the device (this command does not work after executing repeat init command0 x0009 – in this case the server should send a CLOSE session 0x0000 command mentioned before). |
| {| class="wikitable" | | {| class="wikitable" |