This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
need help sending nmea data to UDP port
#1
i am updating an app that i wrote that writes a nmea string to a udp port but can not seem to get the data to the port.
I setup kplex with a udp source
Code:
[udp]
name=wind
direction=in
optional=yes
address=
port=20220

but I cant seem to get data to the port?

this is the code snipit

Code:
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto(string, ('127.0.0.1', 20220))
sock.close()

This is the output of the print statement

Code:
$ARMWV,7.97,R,0.00,N,A*27a?
$ARMWV,8.09,R,0.00,N,A*2fa?
$ARMWV,7.97,R,0.00,N,A*27a?
$ARMWV,8.00,R,0.00,N,A*26a?
$ARMWV,8.01,R,0.00,N,A*27a?
$ARMWV,7.97,R,0.00,N,A*27a?
there is a issue at the end with check sum would that be all that is messing it up?
Is there a way to just echo what ever is sent to the port?
Reply


Messages In This Thread
need help sending nmea data to UDP port - by ddelorme - 2018-12-03, 10:43 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)