Posts: 66
Threads: 13
Joined: Apr 2016
Reputation:
0
Posts: 7
Threads: 0
Joined: Apr 2016
Reputation:
0
Hi
try setting the baud rate to 4800
Ciao
Renato
Posts: 66
Threads: 13
Joined: Apr 2016
Reputation:
0
Hi Renato,
it doesn't work at 4800 baud too
thanks
Mauro
Posts: 311
Threads: 4
Joined: Mar 2016
Reputation:
11
you can only connect with one device to the gps.
try to shut off all other devices the gps was connected before.
bluetooth gps was is a little tricky.
i will send you my solution.
after adding this,
the serial connection was well for me after every restart.
# sudo nano /etc/rc.local
add lines like this at the end with the MAC Adresses of your BT gps!
# bluetooth gps
rfcomm bind 0 00:15:4B:11:1A:95
#rfcomm bind 2 20:13:07:31:20:47
rfcomm bind 1 20:13:07:31:19:51
#rfcomm bind 3 00:15:4B:11:1A:95
then the serial stream should get into the rfcomm device, test it with:
cat /dev/rfcomm0
Posts: 311
Threads: 4
Joined: Mar 2016
Reputation:
11
2016-05-02, 11:58 AM
(This post was last modified: 2016-05-02, 12:08 PM by holgerw.)
cepicscepics
in
sudo nano /etc/rc.local
But nothing happened
I tried also to add those line in open plotter advanced setting, but nothing happened...
I tried to give command "cat /dev/rfcomm0" before and after to give "sudo rfcomm connect 0 00:02:C7:15:94:34 &"
hi Mario - if you setup with sudo you must read the dev also with these rights:
sudo cat /dev/rfcomm0
make /dev/rfcomm0 readable for user pi
sudo chown pi /dev/rfcomm0
or
sudo chmod +r /dev/rfcomm0
Also you only need one dev/rfcommx linefor your gps, the others are examples from my setup.
delete your second /DEV/RFCOMM line in rc.local. the # Lines are comments.
also you dont need these lines in kplex.conf - normaly this is only an one shot setup after booting. (/etc/rc.local)
but user pi must be able to read /dev/rfcomm0
good luck - Holger
Posts: 311
Threads: 4
Joined: Mar 2016
Reputation:
11
cepicscepics
holgerwcepicscepics
If you bind you Bluetooth in /etc/rc.local to 1
THEN
you shoult read it in also in /dev/rfcomm1 and NOT rfcomm0
Posts: 3,099
Threads: 64
Joined: Mar 2016
Reputation:
301
If you have data in the terminal you are really close now.
Is OpenCPN listening to localhost 10110?
Do you have data in inspector window?