2016-05-02, 10:57 PM
"SOLVED" BT gps antenna AMTEC
|
Lets start another Solution. I remember i also had these Probs with my Bluetooth GPS after upgrading the Pi to Jessie.
1) edit your MACs into /etc/bluetooth/rfcomm.conf like my Example with YOUR MACs: (get them with "hcitool scan") Code: rfcomm0 { check your BT with: pi@openplotter:~$ sudo service bluetooth status You will get something like this: Quote:● bluetooth.service - Bluetooth service ------------- 2) I changed this File /etc/systemd/system/bluetooth.service to have this new Option " -C", this is for compatibility with old BT serial Devices. ------------- Code: [Unit] ------------- 3) Using these Commands you don't have to reboot inbetween: sudo service bluetooth stop After editing this File you have to reload: sudo systemctl daemon-reload Followed by Start and Status: sudo service bluetooth start sudo service bluetooth status I ignore my Errors from Sap Driver Init, important is the running "sdptool" to do the Serial Data ----------------- Good Luck - this is not Rocket Science only ons and offs. ----------------- PS: Conclusion: there must be an better Way to search for Serial Devices. An German Developer developed an Navigation Program which does this Scanning for Bluetooth or USB Serial NMEA Devices, maybe someone has some Time to have an Look into this. http://www.wellenvogel.net/software/avnav/index.php But both Apps try to do the same Things (WLAN-Share), so they will not work together by default on the same Machine. (2016-05-02, 10:57 PM)cepicscepics Wrote:(2016-05-02, 07:19 PM)Sailoog Wrote: If you have data in the terminal you are really close now. Delete this connection on OpenCPN: 10.10.10.1:5900 This address:port is only for using on remote desktop software. Enable only: localhost:10110 input. You should confirm first that you have data in the inspector window and then check OpenCPN. Open a terminal and type: Code: python /home/pi/.config/openplotter/openplotter.py Go to NMEA 0183, confirm the serial input is enabled and press "Restart" button. Do you get any error message in the terminal?
2016-05-03, 01:37 PM
(2016-05-03, 12:12 PM)Sailoog Wrote:(2016-05-02, 10:57 PM)cepicscepics Wrote:(2016-05-02, 07:19 PM)Sailoog Wrote: If you have data in the terminal you are really close now. I deleted the connection 10.10.10.1:5900 in open cpn settings and I confirmed in a terminal I typed Code: sudo rfcomm connect 1 00:02:C7:15:94:34 & and than Code: python /home/pi/.config/openplotter/openplotter.py i restart the inspector and this is what appens:
2016-05-03, 02:11 PM
If you create the /dev/rfcommX with sudo then you have to make it readable for user pi
sudo chown pi /dev/rfcomm* sudo chmod +r /dev/rfcomm* better add this line to the end of /etc/rc.local (here you dont need sudo!) chown pi /dev/rfcomm*; chmod +r /dev/rfcomm*
2016-05-03, 02:33 PM
(2016-05-03, 02:11 PM)holgerw Wrote: If you create the /dev/rfcommX with sudo then you have to make it readable for user pi like that? and now?
Hi
in rc.local file the line exit 0 should be the last line so GPS BT connects at startup and GPS data stream is visible in inspector Ciao
Renato
2016-05-08, 06:30 PM
2016-05-13, 07:50 AM
|
« Next Oldest | Next Newest »
|
Users browsing this thread: 1 Guest(s)