RC16xxxx-SSM
2017 Radiocrafts AS
RC16xxxx-SSM User Manual (rev. 1.00)
Page 17 of 20
Radiocrafts
Embedded Wireless Solutions
Sensor Configuration
Sensors are configured using the ‘J’-command. The J command is followed by a configuration
string consisting of excactly 100 binary values describing all sensors and parameters. The
order of sensors are not important, as long as the configuration starts at the first position and
is immediately followed by the next configuration.0
A configuration string is built as shown in the following figure:
Sensor 1
Sensor 2
Sensor…….
Sensor N
0x00
…0x00
Example configuration
The following array of bytes (in hexadecimal representation here) configures the analog
sensor and the SHT35 sensor:
0x0B 0x01 0x01 0x0E 0x10 0x00 0x00 0x00 0x00 0x00
0x00
0x0B 0x03 0x01 0x1C 0x20 0x00 0x00 0x00 0x00
0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00
Description of example:
First sensor to be configured is the analog sensor in
BLACK
Length of sensor configuration is set to 0x0B, which is the length of the analog sensor
configuration
Type is set to 0x01 (Analog sensor)
Version is set to 0x01
Period is set to 1 hour (0x0E10 =3600 seconds)
6 bytes of 0x00 is sent to fill in the not-used fields
Second sensor to be configured are the Sensirion SHT35 in
GREEN
Length of next sensor configuration is set to 0x0B, which is the length of the SHT35
sensor configuration
Type is set to 0x03 (SHT35)
Version is set to 0x01
Period is set to 2 hours (0x1C20 =7200 seconds)
6 bytes of 0x00 is sent to fill in the not-used fields
The last 0x00s in
RED
is padding at the end of the configuration array, as the array
must be a total of 100 bytes.
To send and enable the configuration, the following sequence is used:
1. Enter config mode either by sending 0x00 on UART or enabling the CONFIG pin on
the module
2. Send character
J
3. Wait for prompt (
>)
4. Send the 100 bytes of configuration data on the UART
5. Wait for prompt (
>
)
6. (Do other configuration operations)