No signal k stream with serial port provider

249 views
Skip to first unread message

manu f

unread,
May 28, 2017, 6:18:57 AM5/28/17
to Signal K
Hello all,

I open this new tread to be more relevant from my problem.
In a previous tread Teppo explain me how to setting signal k to get data from serial port.
So I modify the /settings/volare-serial-settings.json file with my serial device (ttyUSB2)

I already test my server with mnea from file and different consumer, all working nicely.
I know that my pi can get nmea string from this device cause I opened this port it with picocom -b 9600 /dev/ttyUSB2 and saw my nmea stream.

So when I launch the signal k, like that bin/signalk-server -s settings/volare-serial-settings.json
I have this console output:

No settings/defaults.json available
*** WARNING *** The program 'nodejs' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs>
*** WARNING *** The program 'nodejs' called 'DNSServiceRegister()' which is not supported (or only supported part
ially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=nodejs&f=DNSServiceRegist
er>
signalk-server running at 0.0.0.0:3000

I know my port is open by the provider because I see the rx led activity flash on my serial to usb converter (this append only if the port is open)

The I try to launch some demo consumer, like simple gauge or instrument panel, but gauge not move, so I think I have signal K stream (I will confirm this by looking to the socket)....

:-(

I must add, if its could help that I had a problem on the pi when installing the signalk node js server with the serialport component, I found the soluce here : https://groups.google.com/forum/#!searchin/signalk/serialport%7Csort:relevance/signalk/ZNbHsqgKofc/587c8KhYBwAJ

Now What can I do to find where is the problem? is there some log somewher useful? or could I set logging ?

Thanks for your help,

Regards

Emmanuel
Marseille, France.

Teppo Kurki

unread,
May 28, 2017, 10:11:20 AM5/28/17
to sig...@googlegroups.com
Have you changed the data rate in volare settings file to match your 9600?

Try adding a line that says

console.log(chunk)


that should log everything comin from the serial port.

This kind of troubleshooting is more efficient over out chat, Slack. This way outsiders can choose to not receive all messages. See 

--
You received this message because you are subscribed to the Google Groups "Signal K" group.
To unsubscribe from this group and stop receiving emails from it, send an email to signalk+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages