Mantracourt Electronics Limited
T24 Technical Manual
13
Next the other device is put into its pair mode at which time it negotiates with the other device and they will
decide on what to do based on their function. Devices are normally put into pair mode by power cycling them.
Please refer to the device documentation.
For the scope of this document we are concerned with manually controlling the pairing using a base station.
You would use pairing for the following reasons:
You have a device whose communications settings are unknown.
You want to connect to a device that operates in low power mode and is mostly asleep.
The device you want to talk to may have a normal operational function that you want pausing while you
configure it.
You just want to change the communications settings of a device to match it to a base station settings.
Pair Request
Packet Type Data Tag Direction Config Duration (optional)
13
00
00
00
00
00
Packet Type
This is 0x13 hex (19 decimal).
Data Tag
You need to supply a Data Tag which may be useable by the device to which you are pairing. Usually from a base
station this is not required and can be set to 0x00, 0x00.
This is present as the same mechanism is used when two devices pair together and in that case they will each
want to give the other their default Data Tag.
Direction
The value of this byte determines whether the remote device radio settings are configured to match the base
station or if the base station is changed to match the remote device. Both the Channel and the encryption key are
matched once pairing has completed.
Value
Meaning
0
The settings in the remote device are changed to match the base station settings.
1
The base station settings are changed to match the remote device.
Config
The value of this byte determines whether the remote device will enter configuration mode which will inhibit any
low power operation, transmission of data provider packets and the ability to enter deep sleep mode. This mode
is required otherwise communication whilst configuring could be very poor or impossible.
Value
Meaning
0
Do not change operation.
1
Cause the device to enter config mode to enable it to be configured.
NOTE: after pairing with a device and using the
Config
option it is recommended that the device be power cycled
after so that it resumes its normal operation.
.
Duration
The value of this byte determines whether the base station will be in pair mode for the default time of 5 seconds
or whether to use the user defined duration in seconds.
To use the default just omit this byte. If this byte is present its ASCII value will be used to determine how long it
will be in pairing mode.
NOTE: While in pairing mode the base station will not operate as normal.
If the remote device enters its own pair mode (non master) then the communications negotiations will take place
and the device may come out of any low power modes and a response will be sent to the base station.