Changes

14 bytes added ,  12:03, 2 December 2020
no edit summary
Line 432: Line 432:  
|}
 
|}
 
<br>
 
<br>
   
'''Start file transfer command (CMD ID 0x0001)'''<br>
 
'''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.
Line 448: Line 447:  
|}
 
|}
 
<br>
 
<br>
   
'''File request command (CMD ID 0x0008)'''<br>
 
'''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.
Line 480: Line 478:  
|}
 
|}
 
<br>
 
<br>
   
'''Resume file transfer command (CMD ID 0x0002)'''<br>
 
'''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.
Line 495: Line 492:  
To begin a file transfer from the start, offset should be set to zero (4 bytes value). In case when the file transfer has been interrupted, to resume file transfer, offset can be set to the desired value (0 ≤ [offset] ≤ [file size]).
 
To begin a file transfer from the start, offset should be set to zero (4 bytes value). In case when the file transfer has been interrupted, to resume file transfer, offset can be set to the desired value (0 ≤ [offset] ≤ [file size]).
 
<br>
 
<br>
 
+
<br>
 
'''Synchronize file transfer command (CMD ID 0x0003)'''<br>
 
'''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.
Line 510: Line 507:  
By sending a SYNC command, it is ensured that the next data command will contain a file data starting from the specified offset.
 
By sending a SYNC command, it is ensured that the next data command will contain a file data starting from the specified offset.
 
<br>
 
<br>
 
+
<br>
 
'''File data transfer command (CMD ID 0x0004)'''<br>
 
'''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.
Line 530: Line 527:  
Initial value, when calculating CRC, is previously received packet (CMD ID 0x0004) CRC value.
 
Initial value, when calculating CRC, is previously received packet (CMD ID 0x0004) CRC value.
 
<br>
 
<br>
 
+
<br>
 
'''File transfer status command (CMD ID 0x0005)'''<br>
 
'''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).
Line 573: Line 570:  
|}
 
|}
 
After a COMPLETED command device should disconnect from the server.
 
After a COMPLETED command device should disconnect from the server.
 +
<br>
 
<br>
 
<br>
 
'''Initialization packet repeat command (CMD ID 0x0009)'''<br>
 
'''Initialization packet repeat command (CMD ID 0x0009)'''<br>