SN260
EmberZNet serial protocol
Table 54. getRam
Name: getRam
ID: 0x47
Description: Reads data from RAM in the SN260 and returns it to the Host.
Command parameters:
int8u startIndex
The location to start reading the data.
int8u length
The number of bytes to read.
Response parameters:
EmberStatus status
An EmberStatus value indicating success or the reason for failure.
int8u dataLength
The length of the data parameter in bytes.
int8u[] data
The data read from RAM.
Table 55. getRandomNumber
Name: getRandomNumber
ID: 0x49
Description: Returns a random number, generated using noise from the radio.
Command parameters: None
Response parameters:
EmberStatus status
An EmberStatus value indicating success or the reason for failure.
int16u value
If status is EMBER_SUCCESS, a random number. Otherwise, zero.
Table 56. getMillisecondTime
Name: getMillisecondTime
ID: 0x0D
Description: Returns the current time in milliseconds according to the SN260's internal clock.
Command parameters: None
Response parameters:
int32u time
The current time in milliseconds.
Table 57. setTimer
Name: setTimer
ID: 0x0E
Description: Sets a timer on the SN260. There are 2 independent timers available for use by the Host. A timer can
be cancelled by setting time to 0 or units to EMBER_EVENT_INACTIVE.
Command parameters:
int8u timerId
Which timer to set (0 or 1).
int16u time
The delay before the timerHandler callback will be generated. Note that
the timer clock is free running and is not synchronized with this command.
This means that the actual delay will be between time and (time - 1).
The maximum delay is 32767.
EmberEventUnits units
The units for time.
boolean repeat
If true, a timerHandler callback will be generated repeatedly. If false,
only a single timerHandler callback will be generated.
55/88