System 3
17-35
BH32 Behavioral Cage Controller
An incoming UDP packet is de-serialized and sent to the macro outputs. The
“NewPack” output goes high (1) for one sample when a new packet header has
been received. The “Busy” outputs are high (1) while the macro is de-serializing a
packet. The length of this period depends on number of BH32 devices (it takes
NumberOf1 sample to receive a packet). The macro outputs are latched
until the next packet is received. The “Reset” input can be used to halt any data
transfer and force the macro to wait for a new packet header.
Note:
Since the channels are received serially, data in later channels occurred several
samples before it is available on the macro Output.
The
Packet
Structure
This guide assumes the BH32 is communicating over UDP using the Ethernet port.
BH32 devices listen on UDP port 22022 and all other UDP messages are
disregarded. Communication over the RS232 serial port uses an identical packet
structure and programming.
All data sent or received by the BH32 is in the form of a packet. Every packet has
a standard structure which includes a header, target device and message.
The header consists of a 32-bit value; the first 24 bits are the protocol ID specific
to the BH32/RZ interface and the next 8 bits are the protocol version (v1 as of
this writing). This header is used by the BH32 and the RZ to identify packets that
they should read and process.
The target device is identified with the next 24 bits of the packet. It consists of a
16-bit device number and an 8-bit group number in case you have more than 256
BH32 devices. This lets you target a single BH32 out of many on the network, or
send batch commands to all BH32s on the network.
The message consists of a single toggle bit that identifies if the packet is to or from
the device, a 7-bit message number (see “Messages” below) and a reserved 32-
bit word for message parameters. Additional data can be appended to messages that
require more than one parameter, such as the GET_SET_IO message that sets the
output state or GET_SET_CONFIG that changes the device configuration.
The structure for the packet is shown below:
1. (24 bits) Unique protocol ID number – 0x55AB00.
2. (8 bits) Message protocol version number – this document covers protocol
v. 1.
3. (16 bits) Device unit number.
a. Devices will only process messages:
b. Matching their unit number.
c. With a unit number of -1.
•
All devices numbered 0 are considered to be unnumbered.
4. (8 bits) Group – used in the GET_SET_IO message. Due to the maximum
transmission unit constraints on most networks, each message can only
contain ~256 data words. Offset provides a means of doing a bulk update
in 256 device increments (e.g. update devices 256-511). This is typically
set to 0.
5. (1 bit) Source – 1 means from device, 0 means device will process it.
1
2
3
4
5 6
7
8
Summary of Contents for RZ2
Page 1: ...System 3 Manual Updated 5 8 18...
Page 7: ...Part 1 RZ Z Series Processors...
Page 8: ...1 2 System 3...
Page 40: ...1 34 System 3 RZ5P Fiber Photometry Processor...
Page 56: ...1 50 System 3 RZ6 Multi I O Processor...
Page 68: ...1 62 System 3 RZ5 BioAmp Processor...
Page 96: ...1 90 System 3 RZ UDP Communications Interface...
Page 97: ...Part 2 Data Streamers...
Page 98: ...1 2 System 3...
Page 122: ...2 26 System 3 RS4 Data Streamer...
Page 133: ...Part 3 RX Processors...
Page 134: ...3 2 System 3...
Page 156: ...3 24 System 3 RX6 Multifunction Processor...
Page 177: ...Part 4 RP Processors...
Page 178: ...4 2 System 3...
Page 184: ...4 8 System 3 RP2 1 Real Time Processor...
Page 199: ...Part 5 RM Mobile Processors...
Page 200: ...5 2 System 3...
Page 209: ...Part 6 Preamplifiers...
Page 210: ...1 2 System 3...
Page 238: ...6 30 System 3 PZ5 NeuroDigitizer...
Page 266: ...6 58 System 3 PZ5M Medically Isolated NeuroDigitizer...
Page 274: ...6 66 System 3 PZ2 PreAmp...
Page 296: ...6 88 System 3 RA16PA RA4PA Medusa PreAmps...
Page 315: ...Part 7 Stimulus Isolator...
Page 316: ...1 2 System 3...
Page 334: ...7 20 System 3 IZ2 IZ2H Stimulator...
Page 346: ...7 32 System 3 IZ2M IZ2MH Stimulator...
Page 368: ...7 54 System 3 MS4 MS16 Stimulus Isolator...
Page 369: ...Part 8 Video Processor...
Page 370: ...1 2 System 3...
Page 388: ...8 20 System 3 RV2 Video Processor...
Page 406: ...8 38 System 3 RVMap Software for RV2...
Page 407: ...Part 9 MicroElectrode Array Interface...
Page 408: ...1 2 System 3...
Page 415: ...Part 10 High Impedance Headstages...
Page 416: ...1 2 System 3...
Page 442: ...10 28 System 3 ZIF Clip ZCD Digital Headstages...
Page 474: ...10 60 System 3 SH16 Switchable Headstages...
Page 475: ...Part 11 Low Impedance Headstages...
Page 476: ...1 2 System 3...
Page 483: ...Part 12 Adapters and Connectors...
Page 484: ...1 2 System 3...
Page 512: ...12 30 System 3 Splitters...
Page 519: ...Part 13 Microwire Arrays...
Page 520: ...1 2 System 3...
Page 526: ...13 8 System 3 ZIF Clip Based Microwire Arrays...
Page 531: ...System 3 13 13 Suggestions for Microwire Insertion...
Page 532: ...13 14 System 3 Suggestions for Microwire Insertion...
Page 545: ...Part 14 Attenuator...
Page 546: ...1 2 System 3...
Page 558: ...14 14 System 3 PA5 Programmable Attenuator...
Page 559: ...Part 15 Commutators...
Page 560: ...1 2 System 3...
Page 578: ...15 20 System 3 ACO32 ACO64 Motorized Commutators...
Page 579: ...Part 16 Transducers and Amplifiers...
Page 580: ...1 2 System 3...
Page 586: ...16 8 System 3 MF1 Multi Field Magnetic Speakers...
Page 592: ...16 14 System 3 EC1 ES1 Electrostatic Speaker...
Page 597: ...System 3 16 19 HB7 Headphone Buffer...
Page 598: ...16 20 System 3 HB7 Headphone Buffer...
Page 601: ...System 3 16 23 MA3 Microphone Amplifier Frequency Response Diagram...
Page 602: ...16 24 System 3 MA3 Microphone Amplifier...
Page 604: ...16 26 System 3 MS2 Monitor Speaker...
Page 610: ...16 32 System 3 SA8 Eight Channel Power Amplifier...
Page 614: ...16 36 System 3 FLYSYS FlashLamp System...
Page 619: ...Part 17 Subject Interface...
Page 620: ...1 2 System 3...
Page 659: ...Part 18 Signal Handling...
Page 660: ...1 2 System 3...
Page 691: ...Part 19 PC Interfaces...
Page 692: ...19 2 System 3...
Page 697: ...System 3 19 7 PO5 PO5e Optibit Interface Dimensions PO5e PO5...
Page 700: ...19 10 System 3 UZ3 USB 3 0 Interface for Optibit...
Page 704: ...19 14 System 3 LO5 ExpressCard to zBus Interface...
Page 707: ...Part 20 The zBus and Power Supply...
Page 708: ...20 2 System 3...
Page 714: ...20 8 System 3 ZB1 Device Caddie and PS25F Power Supply...
Page 715: ...Part 21 System 3 Utilities...
Page 716: ...21 2 System 3...
Page 728: ...21 14 System 3 Corpus System 3 Hardware Emulator...
Page 729: ...Part 22 Computer Workstation...
Page 730: ...22 2 System 3...