Giter Site home page Giter Site logo

NMEA server doesn't receive sentences about bc HOT 6 CLOSED

psj6 avatar psj6 commented on August 28, 2024
NMEA server doesn't receive sentences

from bc.

Comments (6)

psj6 avatar psj6 commented on August 28, 2024

Wireshark receives the packet so I'm sending correctly to 127.0.0.1 in the correct port 10111

image

from bc.

psj6 avatar psj6 commented on August 28, 2024

On branch master... maybe it's any issue here?

from bc.

antoine0183 avatar antoine0183 commented on August 28, 2024

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.

psj6 avatar psj6 commented on August 28, 2024

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.

psj6 avatar psj6 commented on August 28, 2024

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.

psj6 avatar psj6 commented on August 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.