Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test for inbound UDP traffic

Martin Cleaver edited this page May 24, 2026 · 2 revisions

Basic tutorial shows inbound traffic test

https://github.com/ruvnet/RuView/blob/be4efecbcd9a8f357df07dcc654f363fc774f8fb/docs/tutorials/cognitum-seed-pretraining.md?plain=1#L260

PS D:\Dev\Projects\RuView> python -c "
>> import socket, struct
>> sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
>> sock.bind(('0.0.0.0', 5006))
>> sock.settimeout(10)
>> print('Listening on UDP 5006 for 10 seconds...')
>> count = 0
>> try:
>> while True:
>> data, addr = sock.recvfrom(2048)
>> magic = struct.unpack_from('<I', data)[0]
>> names = {0xC5110001: 'CSI_RAW', 0xC5110002: 'VITALS', 0xC5110003: 'FEATURES'}
>> name = names.get(magic, f'UNKNOWN(0x{magic:08X})')
>> count += 1
>> if count <= 5:
>> print(f' Packet {count}: {name} from {addr[0]} ({len(data)} bytes)')
>> except socket.timeout:
>> pass
>> sock.close()
>> print(f'Received {count} packets total')
>> "
Listening on UDP 5006 for 10 seconds...
Received 0 packets total

Receiving nothing

  1. Is a firewall in the way? Accept Inbound frames from CSI through Firewall
  2. Are the ESP32s sending anything? CHECK
[画像:image] [画像:image]

Per troubleshooting

https://github.com/ruvnet/RuView/blob/be4efecbcd9a8f357df07dcc654f363fc774f8fb/archive/v1/docs/troubleshooting.md#network-configuration-issues

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /