RC11xx(HP)-TM
RC25xx(HP)-TM
RC17xx(HP)-TM
2016 Radiocrafts AS
RC11xx(HP)/25xx(HP)/17xx(HP)-TM Data Sheet rev. 1.48 Page 54 of 86
2016 Tiny Mesh AS
Radiocrafts
Embedded Wireless Solutions
To calibrate the temperature sensor, locate the Tinymesh
TM
module in a temperature controlled
environment, enter
CONFIGURATION MODE
and make sure the module is given sufficient time to adapt
to the environmental temperature.
Read back the current value of the temperature sensor using the
GET TEMPERATURE
command.
Calculate the actual temperature using the formula in
TEMPERATURE READING (U- COMMAND),
and
find the offset as the difference between actual room temperature and the sensor reading.
Multiply the found difference by 4 and subtract from the
TEMP OFFSET
, if the sensor is showing too high
value, or add to the
TEMP OFFSET
if the sensor is showing too low temperature.
Verify the sensor calibration by repeat readings using the 'U' command
Example:
To calculate a new temperature offset
Room temperature:
24 [°C]
Module reading (U- command):
0x9A = decimal 154
1) Convert module reading to temperature in °C:
154-128 = 26 [°C]
2) Calculate the temperature error reading:
24 – 26= -2 [°C]
3) Calculate the compensation offset:
-2 * 4 = -8
4) Calculate the new Temp Offset value:
Temp Offset= TempOffset -8
If
TEMP OFFSET
is currently set at the factory default 128, the new
TEMP OFFSET
will be 120
Command
Hex
Response
Comment
Enter Configuration
Mode
'>'
By Asserting and releasing the
CONFIG
input, or
By issuing the SET GATEWAY IN CONFIG MODE
command to a
Gateway Device
'HW'
0x48
0x57
'>'
Wait for '>' prompt
0
0x00 No response
Address byte received, waiting for Data byte
120
0x03 No response
Data byte received, module waiting for next address, or 255 (0xFF)
to terminate Memory Configuration
255
0xFF '>'
Wait t
MEMORY-CONFIG
for ‘>’ prompt
New command
The Module remains in Configuration Mode until 'X' command
received
'X'
0x58 No response
The Tinymesh
TM
protocol runs through a full Power On Reset Cycle,
to ensure all configuration changes are applied.
Setting and Changing the Network ID (NID)
The Tinymesh™
NETWORK ID
is an additional level of network addressing that may be deployed to
distinguish between multiple Tinymesh™ networks sharing a common platform or server, such as the
Tinymesh™ Cloud service.
The
NETWORK ID
needs only be entered in the Gateway Device(s), and has no effect on the internal
addressing in the individual Tinymesh™ networks. By entering unique
NETWORK ID
s in the Gateway
Devices, different local networks having identical
SYSTEM_ID
, may still be differentiated on a larger
platform, as the
NETWORK ID
will serve as an additional level of systems identification that provides
differentiation between messages originating from different systems with identical
SYSTEM_ID
.
The
NETWORK ID
is stored in the Calibration part of Flash memory. This part of flash is retained even
after a
RESET MEMORY
command, and may only be changed using
WRITE CALIBRATION MEMORY
command from Configuration Mode. The
LIST CALIBRATION MEMORY
command may be used to read
back and verify the contents the
CALIBRATION MEMORY
. The following steps should be used to program
a new
NETWORK ID
with value 4 3 2 1.
Command
Hex
Response
Comment
Enter Configuration
Mode
'>'
By Asserting and releasing the
CONFIG
input, or
By issuing the SET GATEWAY IN CONFIG MODE
command to a
Gateway Device
'HW'
0x48 '>'
Wait for '>' prompt