
System 3
17-29
BH32 Behavioral Cage Controller
GET_SET_CONFIG
4
Used to set various device parameters. Can directly set Device
number, RS232 baud rate, and the I/O configuration.
Parameters are 16 bit values, but only one is sent per 32-bit data
word.
A parameter number of 0 will return all configuration parameters.
Parameter number
1 =: get/set device number
2-3 =: set RS232 baud rate
4-5 =: read actual baud rate
6 =: read bank-wide settings
0b0101
Message:
Device #
Group
0b0 0b0000100
Param #
Param mask(s)/val(s)
(optional)
Reply:
Device #
Group
0b1
0b0000100
Param #
Param val(s)
GET_SET_TIMESTAMP
5
Used to set/read the device’s internal clock. If a data word is
sent, the clock is set to the value in the data words, interpreted
as a single 64-bit value in microseconds.
Message:
Device #
Group
0b0 0b0000101
0x00000000
64-bit timestamp (optional)
Reply:
Device #
Group
0b1
0b0000101
0x00000000
64-bit timestamp
GET_SET_TRACK
6
Sets which individual pins are in TRACK mode, meaning a 64-bit
timestamp is recorded every time the pins value changes. The
BH32 will reply with all recorded timestamps (if any) for that pin
and flush the timestamp memory for that pin. Up to 256
timestamps total for all pins can be stored in memory.
Message:
Device #
Group
0b0 0b0000110
Pin Number
Active? (0 or 1, 32-bits)
Reply:
Device #
Group
0b1
0b0000110
Pin Number
64-bit timestamp(s)
GET_SET_NETCONFIG
7
Currently for internal TDT use only.
GET_SET_SERIAL
8
Currently for internal TDT use only.
GET_SET_POLL
9
When period is non-zero, the BH32 will send a POLL_EVENT
message to Reply IP Address at the specified period. Set period to
0 to stop sending POLL_EVENT messages.
Message:
Device #
Group
0b0 0b0001001
Reply IP
Address
32-bit period, in ms (optional)
Reply:
Device #
Group
0b1
0b0001001
Reply IP
Address
32-bit period, in ms
POLL_EVENT
10
See GET_SET_POLL for information about configuring a device to
send this message.
Message:
Device #
Group
0b1
0b0001010
32-bit period,
in ms
I/O state (32-bits)
Reply:
None
GET_SET_TRIGGER
11
When the Trigger Mask is non-zero, the device will enter
TRIGGER state. A TRIGGER_EVENT message is sent whenever a
pin indicated in the Trigger Mask changes value.
Message:
Device #
Group
0b0 0b0001011
Reply IP
Address
Trigger Mask (optional)
Reply:
Device #
Group
0b1
0b0001011
Reply IP
Address
Trigger Mask
TRIGGER_EVENT
12
See GET_SET_TRIGGER for information about configuring the
BH32 to send this message.
Message:
Device #
Group
0b1
0b0001010
Trigger Mask
I/O state (32-bits)
Reply:
None
Name
Number
Description