Chengdu Ebyte Electronic Technology Co.,Ltd.
E108-GN User Manual
Copyright ©2012–2021
,
Chengdu Ebyte Electronic Technology Co.,Ltd.
2
19
7 Command format
7.1 GKC interface data format
The Goke Command (GKC) interface is the interface for interaction between the user and GK9501. Its command format is as follows:
$PGKC
Command
Arguments
*
CheckSum
CR
LF
7.2 GKC command
7.2. Response message
Command: 001
reply message
Response to the message processing result sent by the other party
Arguments:
Arg1: the command of the message to which this message responds
Arg2:
"1", the received message is not supported
"2", valid message, but incorrect execution
"3", valid message, and executed correctly
Example:
Send a single GPS command: $PGKC115,1,0,0,0*2B<CR><LF>
Reply message: $PGKC001,115,3,1,0,0,0,0,1*28<CR><LF>
7.2.2 System reboot
Command: 030
System reboot command
Arguments:
Arg1:
"1", warm start
"2", warm start
“3”, cold start
"4", full cold start
Arg2:
“1”, software restart
"2", hardware restart
"3", clear nvram, keep flash reboot
Name
Description
Remarks
Command
Indicates the command number sent
The reference value refers to the next GKC instruction
Arguments
Indicates the parameters required to
send the command, the parameters can
be multiple, and different commands
correspond to different data
The reference value refers to the next GKC instruction
*
end of data sign
CheckSum
Checksum data for the entire command
CheckSum value is in the whole command from PGKC
to
CR
,
LF
end of package sign
*The previous argument XOR value, such as
"$PGKC030,3,1", its check value is the XOR value of
"PGKC030,3,1", its XOR value is 2E