|
STAR
Cal STAR — firmware, DAQ server, and engine design
|
Variables | |
| int | PORT = 5006 |
| int | TIMEOUT = 30 |
| sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) | |
| int | packet_count = 0 |
| start_time = time.time() | |
| data | |
| addr | |
| str | hex_str = " ".join(f"{b:02x}" for b in data[:32]) |
| str | ascii_str = "".join(chr(b) if 32 <= b < 127 else "." for b in data[:32]) |
| first_byte = data[0] | |
Raw UDP packet capture - bypasses DAQ bridge to see what's actually arriving
| capture_raw_packets.addr |
Definition at line 33 of file capture_raw_packets.py.
Definition at line 45 of file capture_raw_packets.py.
| capture_raw_packets.data |
Definition at line 33 of file capture_raw_packets.py.
| capture_raw_packets.first_byte = data[0] |
Definition at line 50 of file capture_raw_packets.py.
Definition at line 41 of file capture_raw_packets.py.
| int capture_raw_packets.packet_count = 0 |
Definition at line 27 of file capture_raw_packets.py.
| int capture_raw_packets.PORT = 5006 |
Definition at line 11 of file capture_raw_packets.py.
| capture_raw_packets.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) |
Definition at line 19 of file capture_raw_packets.py.
| capture_raw_packets.start_time = time.time() |
Definition at line 28 of file capture_raw_packets.py.
| int capture_raw_packets.TIMEOUT = 30 |
Definition at line 12 of file capture_raw_packets.py.