-
Notifications
You must be signed in to change notification settings - Fork 46
Command 07 Assign ID
Command 07 is used by the PDM during the Pod pairing process
to assign a 32-bit connection ID (aka Pod address) to the Pod.
This value is semi-unique value (typically starting with $1f)
which the PDM generates and then supplies to the Pod via this command
early in the pairing/activation sequence.
This 32-bit connection ID will be near the beginning of each packet (ID2
)
that is sent between the Pod and the PDM during
the Pod's lifetime after it is successfully paired.
A second copy of this 32-bit connection ID is also
prepended at the very front of each packet (ID1
)
by both the sender's SC9S08ER radio hardware and
then matched and stripped off by the receiver's SC9S08ER radio hardware
for each packet send between the Pod and the PDM during normal communication.
The two-step pairing process is completed and both the
Pod and PDM will be using this Pod address (Connection ID)
in their SC9S08ER radios only after the
03 Command
has been successfully executed.
The 07 Assign ID Command has the following format:
OFF 1 2 3 4 5
07 04 IIIIIIII
-
07
(1 byte) [0]: mtype value of07
specifies the pairing command -
04
(1 byte) [1]: mlen for this command is always04
-
IIIIIIII
(4 bytes) [2:5]: the 32-bit connection ID (Pod address) to use
The Pod does no checking of ID supplied and simply stores it for later use and then sends a 01 Version Response with mlen of $15 that includes this value and other information about the Pod.
Consider this pairing sequence for a new Pod taken from Priming and Deploying New Pod:
"2017-12-28T20:46:37.321135 ID1:ffffffff PTYPE:PDM SEQ:26 ID2:ffffffff B9:00 BLEN:6 BODY:07041f05e7090343 CRC:ce",
"2017-12-28T20:46:37.331135 ID1:ffffffff PTYPE:POD SEQ:27 ID2:ffffffff B9:04 BLEN:23 BODY:011502070002070002020000a9220005f99a9a1f05e7090348 CRC:67",
The BODY of the first packet has the following format (sans 16-bit CRC at the end of the BODY):
07 04 IIIIIIII
07 04 1f05e709
which shows that the PDM is assigning a connection ID of $1f05e709
to this Pod.
The Pod responds to the 07 Assign ID Command with a
01 Version Response
with mlen of $15 as shown in the second packet's BODY (sans the 16-bit CRC):
01 15 MXMYMZ IXIYZI 02 0J LLLLLL LL TTTTTTTT GS IIIIIIII
01 15 020700 020700 02 02 0000a9 22 0005f99a 9a 1f05e709
The Pod returns the 32-bit ID in IIIIIIII
as well
as the Pod's version information,
its Lot, its TID, its radio parameters, etc as described in
01 Version Response.
This command can only be used when the Pod's ID has not been setup up be a successful 03 Command.