User Manual
45
Long To Long Addressing
The following example will show details of communications between two Matrix
modules both configured to use long addressing.
Settings
Transceiver A Address: Short Address = 65,534 (use long address)
Long Address = 1 (0x0000000000000001)
Transceiver B Address: Short Address = 65,534 (use long address)
Long Address = 2 (0x0000000000000002)
Packet ID: 10
Target/Sender: Host
Host -> Transceiver A – (Send n RF Data Bytes To Destination Transceiver ID)
< 0x13 0x01 0x13 0x14 0x0A 0x11 0x10 0x02 0x00 0x00 0x00 0x00 0x00 0x00 0x00
0x01 0x02 0x03 0x5B 0x04 >
Assuming that Transceiver B receives the message from Transceiver A, then it would
send a host message out of its serial port.
Transceiver B -> Host – (Received n RF Data Bytes From Transceiver ID)
< 0x1C 0x01 0x1C 0x95 0x0A 0x11 0xC8 0x11 0x02 0x00 0x00 0x00 0x00 0x00
0x00 0x00 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x01 0x02 0x03 0xAF 0x04>
6.1.5 Input/Output Usage
There are three host messages used to query and set the inputs and outputs
respectively. Below is a more detailed description of each of the messages with
examples showing the corresponding host messaging.
1. Set Digital Pin Output State
– This message is used to write the values of the
digital output signals. Two bytes containing a bit mask for each digital output
signal is sent in a host message to the Matrix module. Only user pins
configured as digital outputs contain any meaningful information. A zero
indicates a low signal is applied to the output, while a one indicates a high
signal is applied.
Example:
Digital Outputs = P0_7, P0_4, P1_6, and P1_0.
Digital Output P0_7 = 1
Digital Output P0_5 = 0
Digital Output P1_6 = 0
Digital Output P1_0 = 1
Host -> Matrix Module – (Set Digital Pin Output State – Type 0x20)
< 0x07 0x01 0x07 0x20 0x80 0x01 0xA9 0x04 >
Matrix Module -> Host – (Set Digital Pin Output State Acknowledged– Type
0xA0)
< 0x05 0x01 0x05 0xA0 0xA6 0x04>
2. Query Digital Pin Input State
– This message is used to read the values of
the digital input signals. A bit mask for each digital input signal is returned in
a host message that gets sent back from the Matrix module. Only user pins