How do I store the Serial Port and Baud Rate in the config file?
yanniedog opened this issue · comments
I'm using a Comar SLR350Ni.
I need to use serial port /dev/ttyS0 and baud rate 38400.
I can't figure out how to set these parameters in the config file
Am I forced to set all the config via the command line, rather than via a config file?
Could you please explain this, or make the readme clearer regarding this?
I realise it's a complex project, but it would help if the documentation was organised a bit better.
Before drifting into complex, advanced features, the documentation would benefit from ensuring the basic stuff is really robust and clear, and ensuring it at least allows everyone to get their basic setup working properly - ie, a proper set of clear, simple instructions for people whose AIS receiver uses a serial port, would be greatly appreciated.
Thanks for your help
To select the device for decoding use input set to serialport
and define the two allowed settings in the section serialport
. So your config file should include something like below. I also added it in the long example config file in the documentation. Not ideal but I hope it gives people a clue. Let me know if that works for you.
Regards, Jasper
"input": "serialport",
"serialport": {
"baudrate": 38400,
"port": "/dev/tty0"
}
I will close this item unless there are specific issues we can help with or where you get stuck?
- How to build and install AIS-catcher is here: https://github.com/jvde-github/AIS-catcher#ubuntu-raspberry-pi-macos-msvc
- Or alternatively use the script to set it up as a systems service: https://github.com/jvde-github/AIS-catcher#running-as-a-service-on-ubuntu-and-archlinux
- Input from a serial port can be via
-e 38400 /dev/ttyS0
, see https://github.com/jvde-github/AIS-catcher#serial-port
Happy to help, Jasper