News:

Registration is only required if you want to post, and is not needed to read any posts. To avoid excess 'spam' accounts, all accounts where no posts have been made will be deleted after two weeks. Please register again if you wish to post.

Main Menu

NMEA TCP/IP

Started by thomas, March 31, 2014, 03:10:48 PM

Previous topic - Next topic

thomas

Hello,

I would like to use the multi-player server to simulate several boats and retrieve the NMEA sentences that they send. I used this TCP client: http://systembash.com/content/a-simple-java-tcp-server-and-tcp-client/

I have the following error: java.net.ConnectException: Connection refused: connect

The configuration in bc4.ini is:

[NMEA over TCP/IP (Experimental)]
NMEA_tcpip=1
NMEA_tcpip_OPTION=0
NMEA_tcpip_OPTION=1
NMEA_port=10110
NMEA_address=127.0.0.1

Are the options right or should I change anything else?

forum_admin

Hi,

I haven't yet had a chance to check the code you linked to, but one quick question: Are you running the client or server code? Bridge Command is basically working as a TCP/IP client, so your code should be setting up a TCP/IP server (bound to port 10110 or whatever you set), and Bridge Command will then connect to this.

James