Raspberry War Pi
Posted: Tue Sep 13, 2016 2:29 pm
I'm using the Raspberry Pi 3; it has onboard Bluetooth.
I've been tinkering a bit with my Raspberry pi. I managed to somehow fry my gps unit and it won't lock, so I've tied into my phone to use it's gps instead. I think the 4 feet apart they are in the car is an acceptable margin of error.
For the phone (host) I used:
https://play.google.com/store/apps/deta ... .GpsOverBt
Run the app and let it hum along. I changed my device's discoverability time to make it easier.
I won't bother plagarizing properphatboy's post over at raspberrypi.org forums, so I'll just drop the link:
https://www.raspberrypi.org/forums/view ... 9&p=234809
Follow his steps for the most part, but where he references someone else to configure the gpsd, what I had to do was edit the gpsd conf file... which doesn't have .conf for some reason.
I changed the device from /dev/ttyAMA0 to /dev/rfcomm0 ... so it looks like the following:
Restarted bluetooth, gps and started the gpsd client to see if I had a lock, and I'm in business
... Once it disconnects it won't reconnect automatically. Something I'm working on.
I've been tinkering a bit with my Raspberry pi. I managed to somehow fry my gps unit and it won't lock, so I've tied into my phone to use it's gps instead. I think the 4 feet apart they are in the car is an acceptable margin of error.
For the phone (host) I used:
https://play.google.com/store/apps/deta ... .GpsOverBt
Run the app and let it hum along. I changed my device's discoverability time to make it easier.
I won't bother plagarizing properphatboy's post over at raspberrypi.org forums, so I'll just drop the link:
https://www.raspberrypi.org/forums/view ... 9&p=234809
Follow his steps for the most part, but where he references someone else to configure the gpsd, what I had to do was edit the gpsd conf file... which doesn't have .conf for some reason.
Code: Select all
sudo nano /etc/default/gpsd
Code: Select all
Default settings for the gpsd init script and the hotplug wrapper.
# Start the gpsd daemon automatically at boot time
START_DAEMON="true"
# Use USB hotplugging to add new USB devices automatically to the daemon
USBAUTO="false"
# Devices gpsd should collect to at boot time.
# They need to be read/writeable, either by user gpsd or the group dialout.
DEVICES="/dev/rfcomm0"
# Other options you want to pass to gpsd
GPSD_OPTIONS=""
Code: Select all
sudo /etc/init.d/bluetooth start
cgps -s