Fifotrack Command List V1.1
Fifotrack Command List V1.1
V1.1
Contents
DOCUMENT HISTORY....................................................................................................................... 4
2 C – QUERY COMMAND................................................................................................................ 22
Document History
Version Revision Date Author Detail
V1.1 Sep 1, 2015 Vito.Hu Initial Version
GPRS uplink (i.e.: Data is sent from terminal to platform) command format:
$$<pack-len>,<ID>,<work-no>,<cmd-code>,<cmd-para>*<checksum>\r\n
GPRS downlink (i.e.: Data is sent form platform to terminal) command format:
##<pack-len>,<ID>,<work-no>,<cmd-code>,<cmd-para>*<checksum>\r\n
Remarks:
Comma (,) is used to separate data field, and it is necessary. There is no space before or after
comma.
pack-len: Package Length, decimal string format, the field of pack-len is
{,<ID>,<work-no>,<cmd-code>,<cmd-para>}, be careful, comma(,) in front of ID included.
ID: Terminal ID, default IMEI.
work-no: working number, hexadecimal string format, cyclic accumulation from 1 to 0xFFFF.
cmd-code: Command code, or specification of data type.
cmd-para: parameter or description of cmd-code, which is described in the following
chapters.
checksum: checksum of package, 2 bytes hexadecimal string format, XOR of
{<pack-len>,<ID>,<work-no>,<cmd-code>,<cmd-para>}.
\r\n: End of package, i.e. <CR><LF>.
Without specification, multi-byte binary data in cmd-para uses little endian format, i.e. Least
Significant Byte first.
1 B – Setting command
B00 – Setting GPRS parameters
Source GPRS/COM/SMS
Description B00,<svr_type>,<net_addr>,<net_port>
01 svr_type: server selection, 1--main server, 2--backup server; When the connection to
main server cannot be reached, terminal will automatically connect to the backup
server.
02 net_addr: server IP or domain.
03 net_port: server port.
Reply B00,<err_code>
01 err_code: error code.
OK – Succeed.
UNSUPPORT – Command not supported.
FAILED –Processing failed.
Example B00,1,119.45.5.104,8600
01 Set main server: IP-119.45.5.104, port-8600.
Retrieve C04,B00,<svr_type>
01 svr_type: server selection, the same as svr_type field in setting command.
Description B02,<link_type>
01 link_type: Link protocol, value TCP or UDP.
02 default TCP protocol.
Reply B02,<err_code>
01 err_code: error code.
OK – Succeed.
UNSUPPORT – Command not supported.
FAILED –Processing failed.
Example B02,TCP
01 Set link protocol to TCP.
Retrieve C04,B02
B03,10,100,200
01 Set tracking interval to 10s for normal status, 100s for ACC OFF status, 200s for
parking status. Terminal uploads data every 10s while ACC ON, and every 100s while ACC
OFF, parameter 200 (parking interval) is ignored.
Retrieve C04,B03
Example B10,472627
01 Set SMS password to “472627”.
B10,47262A
01 Invalid command, because SMS password needs to be a 6 digits string.
Retrieve C04,B10
04 Deep sleep: turn off all the power supply, only wake up by IO trigger or moving.
Reply B15,<err_code>
01 err_code: error code.
OK – Succeed.
UNSUPPORT – Command not supported.
FAILED –Processing failed.
Example B15,1
01 Enable normal sleep mode, and waiting time to sleep mode is the default 300s.
Retrieve C04,B15
Reply B27,<err_code>
01 err_code: error code.
OK – Succeed.
UNSUPPORT – Command not supported.
FAILED –Processing failed.
Example B27,40,2
01 Set harsh acceleration parameters: 40km/h speed variation within 2s.
Retrieve C04,B27
OK – Succeed.
UNSUPPORT – Command not supported.
FAILED –Processing failed.
Example B90,1
01 Reset terminal.
Retrieve UNSUPPORT
2 C – Query Command
C01–Retrieve position information
Source COM/SMS/GPRS
Description C01
01 When command is sent via GPRS, terminal replies position data.
02 When command is sent via SMS/COM, terminal sends web-link message.
03 When alarm detected, terminal sends SMS with C01 format.
Reply Replied GPRS data is position package, refer to “FIFOTRACK GPRS Protocol” for data
format detail.