openframeworks / openframeworks/openFrameworks

ofxNetwork: UDP Errors

Open
#5,645 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
10.4k
Forks
2.6k
Avg merge
1d 21h
Merged PRs (30d)
9

Description

I'm testing a UDP application between Arm6 (Raspberry Pi/Raspbian) and Android. I'm using oF 0.9.8 on both Android and the Pi. Everything seems to work fine, it connects, it sends and receives data, but on the Arm6 side of things I always get the error: "[error] ofxNetwork: /home/pi/of_v0.9.8_linuxarm6l_release/addons/ofxNetwork/src/ofxUDPManager,cpp: 248 EINVAL: Invalid argument

It seems to happen if I set the program to send packets in the update function. Maybe I'm not supposed to do that? I need to send data that constantly updates and it seems the update function is the only place to do that in.

I also some times get a similar error message to the one aforementioned but it says host not reachable instead and that's rare. Although the network connection is established and is sending/receiving data just fine.

I'm wondering if this is effecting the performance of my application, or cause problems down the road. My project relys on UDP, the Raspberry Pi (or other Arm set top box) and Android/iOS.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at ofxNetwork/src/ofxUDPManager.cpp around line 248 and reproduce the UDP application between Arm6/Raspbian and Android while sending packets from update. Check when EINVAL and the occasional host-unreachable error occur. Done means the cause is identified and sending continuously no longer produces erroneous network errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp, raspberry-pi
Domain
embedded-iot, mobile-dev, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.