Comments (6)
Wireshark receives the packet so I'm sending correctly to 127.0.0.1 in the correct port 10111
from bc.
On branch master... maybe it's any issue here?
from bc.
A bit of a shot in the dark here since I can't reproduce the problem on my end, but can you see if #55 fixes your issue?
from bc.
Hello @antoine0183 , thanks for the PR, it doesn't work for me. Have you got any code on Python, Java or another language that I can use to test it out? I tried to use pyenet (https://github.com/piqueserver/pyenet) but I can't make it work.
I can receive data from UDP in my App but I can't send, the debug point nread > 0 doesn't work. Maybe I need to switch on the sender and after start the bridge simulator? I don't know.
from bc.
Maybe it's the bridge simulator getting the port and locking it on localhost? I didn't try over network... Maybe it's an issue of my computer. I dont't know...
from bc.
Hello @antoine0183 , I tried weeks later and it works. It's perfect and it receives the sentences perfectly.
I was trying with pyenet and maybe created some issue with the ports in my PC and didn't try again.
The code that works for me (in debug mode, maybe the sentence it's not correct) is:
import socket, time
ip = '127.0.0.1'
port = 10111
message = "$--RPM,a,odd,50,50.0,A*ff"
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
while True:
sock.sendto(message.encode('utf-8'), (ip, port))
print("sent message:", message.encode('utf-8'))
time.sleep(1)
sock.close()
What's new with your code? Windows can be the issue
from bc.
Related Issues (19)
- termiate a start | core dump HOT 2
- Is there a way to get a third-person view of the vessel that is being controlled? HOT 2
- Not building on MacOS High Sierra HOT 2
- Linux downloads not available from website HOT 1
- Font size on high-res displays is too small
- Are there any references for the dynamics used in the SimulationModel? HOT 1
- References for RCS calculation
- DIS protocol and decoupling of simulation and visualization
- I am having trouble using more than one images in a world description HOT 8
- How are the values "TerrainMaxHeight" and "TerrainSeaDepth" calculated in the "terrain.ini" files? HOT 1
- Setting radar_sensitivity to too high a value breaks RADAR rendering HOT 1
- .deb package for ubuntu 22.04 HOT 3
- Boat not visibile in radar image when using higher radar resolution HOT 3
- Problem with building HOT 3
- retry connecting hosts in multi screen setup
- Compilation in VS 2022 doesn't have localization HOT 2
- Autopilot buffer size HOT 2
- bridgecommand on flatpak
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bc.