|
By setting bind yes; we are making it bind
every time the system starts up. This is not creating a connection, but
instead binding /dev/bluetooth/rfcomm/0 (major 216 minor 0) to the address
listed in device on the specified channel. Then when anything tries to access
/dev/bluetooth/rfcomm/0 it will create the bluetooth link at that point. To
bind the device to this connection without rebooting all that is needed is
the following command
|
Bind without restarting
|
root@3900:/# rfcomm bind rfcomm0 |
|
Test The GPS Connection
|
root@3900:/# cat /dev/bluetooth/rfcomm/0 $GPGGA,190328.722,,,,,0,00,,,M,0.0,M,,0000*50 $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,190328.722,V,,,,,,,290905,,*2E $GPVTG,,T,,M,,N,,K*4E $GPGGA,190329.722,,,,,0,00,,,M,0.0,M,,0000*51 $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,190329.722,V,,,,,,,290905,,*2F $GPVTG,,T,,M,,N,,K*4E $GPGGA,190330.722,,,,,0,00,,,M,0.0,M,,0000*59 $GPGSA,A,1,,,,,,,,,,,,,,,*1E |
You should see NMEA 0813 output from the GPS.
|
Verify with GPSD
|
root@3900:/# gpsd –f /dev/Bluetooth/rfcomm/0 root@3900:/# telnet localhost 2947 r $GPGGA,190328.722,,,,,0,00,,,M,0.0,M,,0000*50 $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,190328.722,V,,,,,,,290905,,*2E $GPVTG,,T,,M,,N,,K*4E $GPGGA,190329.722,,,,,0,00,,,M,0.0,M,,0000*51 $GPGSA,A,1,,,,,,,,,,,,,,,*1E $GPRMC,190329.722,V,,,,,,,290905,,*2F $GPVTG,,T,,M,,N,,K*4E $GPGGA,190330.722,,,,,0,00,,,M,0.0,M,,0000*59 $GPGSA,A,1,,,,,,,,,,,,,,,*1E |
|
Congratulations!
|
|
|
Your GPS now works! |
|
Troubleshooting
|
|
|
root@3900:/# root@3900:/# cat /dev/bluetooth/rfcomm/0 cat: /dev/bluetooth/rfcomm/0: Permission Denied |
This is caused by a PIN error. Double check the pin workaround above, turn off the radio, restart hcid |
|