Please login or register.

Login with username, password and session length

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.

Author Topic: NMEA TCP/IP  (Read 3162 times)

March 31, 2014, 03:10:48 PM
  • Member
  • **
  • Posts: 1
    • View Profile
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?

April 01, 2014, 10:29:32 PM
Reply #1
  • Administrator
  • Member
  • *****
  • Posts: 89
    • View Profile
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