User Manual

Page 35 of 39
Long To Long Addressing
The following example will show details of communications between two
FreeStar 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)
< 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)
< 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 0x2F
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. Query Analog Pin Values
– This message is used to read the values
of the two analog input signals. The result is returned in a host
message that gets sent back from the FreeStar module containing a
two byte value (LSB to MSB), for each of the two analog inputs, with
the 10 least significant bits representing the voltage applied to the
inputs. The input signal voltage is converted to a 1.25v reference.
Example:
Analog Input PTB0 = 0.42v (10 bit value => 344 = 0x0158)
Analog Input PTB1 = 1.07v (10 bit value => 876 = 0x036C)
Host -> FreeStar Module – (Query Analog Pin Values – Type 0x22)
< 0x01 0x05 0x22 0x28 0x04 >
FreeStar Module -> Host – (Respond With Analog Pin Values – Type
0xA2)
< 0x01 0x09 0xA2 0x58 0x01 0x6C 0x03 0x74 0x04>