PreviousNext
FRC Commands
Help > FRC Commands

Implemented four FRC commands return 2-bits, 1-byte, 2-byte, or 4-byte sensor values respectively depending on the sensor type. Also, the optional “sleep after FRC” feature for the low-power (battery operated) devices is implemented.

 

FRC user-data has the same format for all implemented FRC commands:

 

UserData[0]           0x5E (equals to the PNUM).

UserData[1]           Sensor type. 0x00 means any sensor type.

UserData[2]           Sensor index [eeei.iiii]

bit:0…4     Sensor index (from 0 to 31) of the specified type or any type (see UserData[1]).

bit:5…7     Extended data used by some sensor types.

 

UserData[3]           Options [xxxx.xxxs]

bit:0          When this bit is set then optional sleep parameters at UserData[4..6] are present. See below.

bit:1…7     Reserved.

 

UserData[4…6]     Optional “sleep after FRC” parameters of the same format as CMD_OS_SLEEP, i.e. [4…5]=Time, [6]=Control