Posts: 113
Threads: 33
Joined: Dec 2016
Reputation:
0
2017-09-10, 10:58 PM
(This post was last modified: 2017-09-15, 04:30 PM by kste.)
I have a Shipmodul Miniplex 3E in the lan.
If I create a TCP Input On Openplotter (0.15.1) connection, it works, connects and receives NMEA 0183 strings
If I configure the Shipmodul with UDP broadcast and set up in UDP also the connection to Openplotter, it does not work, the diagnostics does not display any input string.
If I create the same connection to Opencpn in the same RPI it works correctly.
Thanks
Posts: 3,038
Threads: 63
Joined: Mar 2016
Reputation:
289
Type "openplotter" in the terminal and reset NMEA multiplexer. Any error?
Paste here content of: /home/.kplex.conf
Posts: 113
Threads: 33
Joined: Dec 2016
Reputation:
0
bind failed for udp interface shipmodul: Cannot assign requested address
Failed to initialize Interface shipmodul
kplex.conf:
###defaults
[udp]
name=system_a
direction=in
address=localhost
port=10110
[udp]
name=system_b
direction=in
port=10110
[tcp]
name=opencpn
direction=out
mode=server
ofilter=-**RMB
port=10109
[udp]
name=signalk
direction=out
ofilter=-OC***
address=127.0.0.1
port=55556
###end of defaults
###OpenPlotter GUI settings
[serial]
name=auto_gp
direction=in
optional=yes
filename=/dev/ttyOP_GP
baud=4800
[udp]
name=shipmodul
direction=in
optional=yes
address=192.168.8.3
port=10120
#[tcp]
#name=shipmodulout
#direction=out
#optional=yes
#mode=server
#address=192.168.8.3
#port=10110
#ofilter=+OCHDM:-all
###end of OpenPlotter GUI settings
###Manual settings
Posts: 3,038
Threads: 63
Joined: Mar 2016
Reputation:
289
2017-09-12, 04:40 PM
(This post was last modified: 2017-09-12, 04:43 PM by Sailoog.)
here you are difining an UDP input that will listen to any data in adress 192.168.8.3 and port 10120:
[udp]
name=shipmodul
direction=in
optional=yes
address=192.168.8.3
port=10120
Is 192.168.8.3 the address of your raspberry? is this address fixed in the router?
Try with address "localhost"
Have you set your shipmodul to send data to address 192.168.8.3 and port 10120?
Posts: 3,038
Threads: 63
Joined: Mar 2016
Reputation:
289
From kplex doc:
"<address> is the interface address to bind to for inbound kplex
interfaces or the address to send to for outbound interfaces. If
not specified for an input interface, kplex will receive broadcast
and unicast traffic sent to the desired port on a given interface if
one is specified, or all interfaces if non is specified."
So, try this:
[udp]
name=shipmodul
direction=in
optional=yes
address=localhost
port=10120
And if this does not work, add this after ###Manual settings into the kplex conf file:
[udp]
name=shipmodul
direction=in
optional=yes
port=10120
Posts: 113
Threads: 33
Joined: Dec 2016
Reputation:
0
I tried to include:
[udp]
name=shipmodul
direction=in
optional=yes
address=localhost
port=10120
but it does not work
I tried to include:
[udp]
name=shipmodul
direction=in
optional=yes
address=192.168.8.101
port=10120
but it still does not work
after ###Manual settings into the kplex conf file, I wrote:
[udp]
name=shipmodul
direction=in
optional=yes
port=10120
but it does not appear in the list of connections on nmea0183 tab even after startup restart
Posts: 113
Threads: 33
Joined: Dec 2016
Reputation:
0
Solved! The address need broadcast address 192.168.8.255, work too from gui setting.
:-)