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
UDP Issues - UDP message to SignalK from ESP8266
#6
The version 1.x of OpenPlotter used the port 55557 as UDP port for SignalK. In the new version there is no UDP port set up at 55557.
Opening the signalK web interface, localhost:3000 and selecting the left side menu at Server and Connections it's possible to add 
a new source. In my case ID=OrangePi, UDP, port 55557 and no self mapping. Press apply and it's all back where it used to be in the 
old version.  

The version 2 now uses port 55557 and  a simple python script like this can test the connectivity:

#!/usr/bin/env python
import time, socket
# Initiate socket 
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
# socket.AF_INET is  Internet
# socket.SOCK_DGRAM) is  UDP

print("Trying to send values to SignalK")
while True:
    t=input("Please enter a number: ")
    x = float(t)
    SignalK='{"updates": [{"$source": "OrangePi","values":[ {"path":"OrangePi.signalK.manual","value":'+format(x,'5.3f')+'}]}]}'
    print(SignalK)
    sock.sendto(SignalK, ('192.168.1.169', 55557))
   

In my ideal boat there should only be cables for 12V, all signal cables should be replaced by wireless communication, 
SignalK is step in the right direction.
Reply


Messages In This Thread
RE: UDP Issues - UDP message to SignalK from ESP8266 - by olewsaa - 2020-05-04, 07:15 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)