OpenMarine

Full Version: "SOLVED" BT gps antenna AMTEC
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I all,
this is my first time on this forum..
I've installed a gps BT antenna AMTEC on a RPI3 with BLUEZ on openPlotter 0.7.1, but no gps data in OpenCpn

some idea??

best regards
Hi 
try setting the baud rate to 4800
Ciao
Hi Renato,
it doesn't work at 4800 baud too

thanks

Mauro
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
(2016-05-01, 11:29 PM)holgerw Wrote: [ -> ]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

Hi, thanks a lot
Maybe I didn't understood!!!


I delete all the connection in openplotter setting and I add a new one for GPS BT
[attachment=21]

I tried to add those line


# bluetooth gps
rfcomm bind 0 00:02:C7:15:94:34
#rfcomm bind 2 00:02:C7:15:94:34
rfcomm bind 1 00:02:C7:15:94:34
#rfcomm bind 3 00:02:C7:15:94:34 


in 


sudo nano /etc/rc.local

[attachment=17]
[attachment=18]

But nothing happened

I tried also to add those line in open plotter advanced setting, but nothing happened...

[attachment=19]

I tried to give command "cat /dev/rfcomm0" before and after to give "sudo rfcomm connect 0 00:02:C7:15:94:34 &
[attachment=20]

I'm quite lost


Mauro
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



 
(2016-05-02, 11:58 AM)holgerw Wrote: [ -> ]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



 

thanks a lot for your patience


when I log in, if I try to type  sudo cat /dev/rfcomm0, noting happens..
[attachment=24]
[attachment=25]
[attachment=26]
if I type first 
sudo rfcomm connect 0 00:02:C7:15:94:34 &
[attachment=27]
[attachment=28]
and than 
sudo cat /dev/rfcomm0
the terminal start giving data but nothing on OpenCPN

now this is my File: /etc/rc.local 

[attachment=29]

and this my cleaned openplotter advanced setup

[attachment=30]

aiutoooo please

Mauro



 
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
(2016-05-02, 03:57 PM)holgerw Wrote: [ -> ]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

after boot, I open a terminal and I type:
sudo nano /etc/rc.local

I add this two line:
# bluetooth gps
rfcomm bind 1 00:02:C7:15:94:34

I save and exit

than I type:
sudo rfcomm connect 1 00:02:C7:15:94:34 &
the bluetooh icon became green

tan I type:
sudo cat /dev/rfcomm1
the terminal starts giving data
[attachment=31]

I close the terminal and I go in openplotter, I add a new serial imput on /dev/rfcomm1 at 4800 baud named gpsbt, I apply changes but nothing appens on OpenCPN
[attachment=32]
[attachment=33]

thanks a lot
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?
Pages: 1 2