How fanatiqs/wireless_atem_camera_control_and_tally works
WACCAT is ESP8266 firmware that connects a wireless camera receiver to an ATEM switcher, forwards camera-control and tally information, and can emit the signals over SDI and GPIO LEDs. The principal path is ATEM communication and parsing, followed by device-side control/tally output; users can also configure the device through its HTTP interface. The tree includes two separate host-side ATEM proxy implementations. Their internal links are shown only where the supplied excerpts or source index establish them; unsampled firmware wiring is not inferred.
Main entry points: atem_sock.c ATEM socket client · http.c HTTP configuration · atem_server.c ATEM proxy server · firmware Firmware entrypoints
Components 25
Wireless device
- SDI interface
firmware/sdi.c - Tally/status LEDs
firmware/led.h - Device configuration
firmware/user_config.h - Firmware entrypoints
firmware - WiFi networking
firmware/wlan.c - ATEM socket client
firmware/atem_sock.c - HTTP configuration
firmware/http.c - HTTP responses
firmware/http_respond.c - DNS service
firmware/dns.c - Flash storage
firmware/flash.h
ATEM protocol
- ATEM protocol parser
core/atem.c - POSIX adapter
core/atem_posix.c
Host proxy
- Proxy event loop
proxy/main.c - ATEM proxy server
proxy/atem_server.c - Proxy sessions
proxy/atem_session.c - Packet handling
proxy/atem_packet.c - ATEM cache
proxy/atem_cache.c
Relay proxy
- Relay event loop
proxy_server/main.c - Proxy server
proxy_server/server.c - Relay client
proxy_server/relay.c - Timer service
proxy_server/timer.c
Other components
- Operator
- ATEM switcher
- Blackmagic camera
- Configuration browser
Connections 26
- Operator → Configuration browser: configures
- Configuration browser → HTTP configuration: submits settings
firmware/http.c - HTTP configuration → HTTP responses: sends responses
firmware/http.c - HTTP configuration → Flash storage: uses storage
firmware/http.c - Firmware entrypoints → WiFi networking: initializes networking
- Firmware entrypoints → ATEM socket client: starts ATEM client
firmware/atem_sock.c - Firmware entrypoints → HTTP configuration: starts configuration
firmware/http.c - ATEM socket client → ATEM protocol parser: uses protocol
firmware/atem_sock.c - ATEM socket client → WiFi networking: uses networking
firmware/atem_sock.c - ATEM switcher → ATEM socket client: exchanges commands
- ATEM socket client → SDI interface: sends camera data
firmware/atem_sock.c - ATEM socket client → Tally/status LEDs: updates tally
firmware/atem_sock.c - SDI interface → Blackmagic camera: forwards control
- HTTP configuration → DNS service: serves configuration access
- Proxy event loop → ATEM cache: initializes
proxy/main.c - Proxy event loop → ATEM proxy server: initializes
proxy/main.c - Proxy event loop → ATEM proxy server: dispatches socket events
proxy/main.c - ATEM proxy server → Proxy sessions: manages sessions
proxy/atem_session.c - Proxy sessions → Packet handling: queues packets
- Proxy sessions → ATEM cache: uses cache
proxy/atem_session.c - ATEM proxy server → ATEM protocol parser: uses protocol definitions
- Relay event loop → Proxy server: initializes and dispatches
proxy_server/main.c - Relay event loop → Relay client: initializes and enables
proxy_server/main.c - Relay event loop → Timer service: dispatches timer events
proxy_server/main.c - Proxy server → ATEM protocol parser: uses protocol definitions
proxy_server/server.c - Proxy server → Timer service: uses timers
proxy_server/server.c