STAR
Cal STAR — firmware, DAQ server, and engine design
Loading...
Searching...
No Matches
capture_raw_packets Namespace Reference

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]

Detailed Description

Raw UDP packet capture - bypasses DAQ bridge to see what's actually arriving

Variable Documentation

◆ addr

capture_raw_packets.addr

Definition at line 33 of file capture_raw_packets.py.

◆ ascii_str

str capture_raw_packets.ascii_str = "".join(chr(b) if 32 <= b < 127 else "." for b in data[:32])

Definition at line 45 of file capture_raw_packets.py.

◆ data

capture_raw_packets.data

Definition at line 33 of file capture_raw_packets.py.

◆ first_byte

capture_raw_packets.first_byte = data[0]

Definition at line 50 of file capture_raw_packets.py.

◆ hex_str

str capture_raw_packets.hex_str = " ".join(f"{b:02x}" for b in data[:32])

Definition at line 41 of file capture_raw_packets.py.

◆ packet_count

int capture_raw_packets.packet_count = 0

Definition at line 27 of file capture_raw_packets.py.

◆ PORT

int capture_raw_packets.PORT = 5006

Definition at line 11 of file capture_raw_packets.py.

◆ sock

capture_raw_packets.sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)

Definition at line 19 of file capture_raw_packets.py.

◆ start_time

capture_raw_packets.start_time = time.time()

Definition at line 28 of file capture_raw_packets.py.

◆ TIMEOUT

int capture_raw_packets.TIMEOUT = 30

Definition at line 12 of file capture_raw_packets.py.