RuView icon indicating copy to clipboard operation
RuView copied to clipboard

I can't use the docker to run esp32

Open ArmandRay opened this issue 8 months ago • 4 comments

when I use the "docker run -p 3000:3000 -p 5005:5005/udp ruvnet/wifi-densepose:latest --source esp32" ,the response is "/bin/sh: 0: Illegal option --". how can I slove it?

ArmandRay avatar Mar 10 '26 03:03 ArmandRay

Command Syntax Issue

The error /bin/sh: 0: Illegal option -- indicates the arguments aren't being passed correctly to the container.

Correct Usage

The Docker image uses ENTRYPOINT ["/bin/sh", "-c"] with a shell-form CMD, so you need to pass arguments via environment variable, not command-line flags:

docker run -p 3000:3000 -p 5005:5005/udp \
  -e CSI_SOURCE=esp32 \
  ruvnet/wifi-densepose:latest

Important Notes

  1. ESP32 UDP requires host networking or proper port forwarding:

    docker run --network host \
      -e CSI_SOURCE=esp32 \
      ruvnet/wifi-densepose:latest
    
  2. Your ESP32 must be configured to send CSI data to your Docker host's IP (not localhost). Use provision.py to set the target IP:

    python provision.py --port /dev/ttyUSB0 \
      --ssid "YourWiFi" --password "YourPass" \
      --target-ip <YOUR_HOST_IP>
    
  3. Verify data is arriving:

    # Listen for UDP packets
    nc -ul 5005 | hexdump -C
    

The container defaults to CSI_SOURCE=auto which will probe for ESP32 UDP frames, then fall back to simulation if none are detected within 5 seconds.

ruvnet avatar Mar 10 '26 12:03 ruvnet

Thank you for your reply. I have resolved all the previous issues and obtained the data correctly.

However, I found that when using the default modes (including no model and the two built-in models), the total number of people detected is always only two, and the movement always flickers and teleports.

Even after recording four types of data and starting training (with a score greater than 0.6), this problem has not been resolved. What should my next steps be?

ArmandRay avatar Mar 10 '26 12:03 ArmandRay

same this happening with me it says 10 fps

FLATEARTHER11 avatar Mar 16 '26 03:03 FLATEARTHER11

Closing as stale. For ESP32 + Docker setup, see the v0.5.3 release notes. The sensing server can also be run natively without Docker: cd rust-port/wifi-densepose-rs && cargo run --release -p wifi-densepose-sensing-server -- --source esp32

ruvnet avatar Mar 31 '26 11:03 ruvnet