The setreceiverid command defines the receiver ID that is used in the commands sent by the interface client.
The value can be from 0 to 255. In the
interface client, the receiver ID is shown as Unit id
. When the receiver ID
is changed, the change must be done also to MD30 to be able to communicate with the device and
the change requires reset before to take effect.
Example 1
The receiver ID of MD30 is changed to 10. The communication works with the old receiver ID until a reset command is given. After the reset, the interface client must use the correct receiver ID to be able to communicate.
/> getunitid
/> Unit ID: 1, Client ID: 0, ID: 0x10, Nb: 0, Len: 10, icd_version: D, Err: 0
Serial number: R2730011
/> setparam 0x13 10
/> Unit ID: 1, Client ID: 0, ID: 0x41, Nb: 1, Len: 2, icd_version: D, Err: 0
/> getparam 0x13
/> Unit ID: 1, Client ID: 0, ID: 0x40, Nb: 2, Len: 5, icd_version: D, Err: 0
ID: 0x13 Value: 10 (Sensor ID)
/> reset
/> Unit ID: 1, Client ID: 0, ID: 0x50, Nb: 3, Len: 2, icd_version: D, Err: 0
RESET ACK
/> getparam 0x13
/> setreceiverid 10
/> getparam 0x13
/> Unit ID: 10, Client ID: 0, ID: 0x40, Nb: 5, Len: 5, icd_version: D, Err: 0
ID: 0x13 Value: 10 (Sensor ID)
Example 2
The receiver ID of MD30 is not known. Use
receiver ID 255 to check what the ID is. The value can be
checked from the response header (Unit ID
)
/> getunitid
/> setreceiverid 255
/> getunitid
/> Unit ID: 1, Client ID: 0, ID: 0x10, Nb: 9, Len: 10, icd_version: D, Err: 0
Serial number: R2730011
/> setreceiverid 10
/> getunitid
/>
/> setreceiverid 1
/> getunitid
/> Unit ID: 1, Client ID: 0, ID: 0x10, Nb: 11, Len: 10, icd_version: D, Err: 0
Serial number: R2730011