can't get gpsd to work with bluetooth gps
I'm trying to get a GPS program to work with my bluetooth GPS mouse via a bluetooth USB adapter.
- Ubuntu 6.10 Edgy (latest updates)
- bluez-utils, bluez-pin installed
- generic BT USB dongle
- GlobalSat BT-338 GPS mouse
What I've got working:
- USB dongle recognized as "Integrated System Solution Corp. KY-BT100 Bluetooth Adapter"
- 'hciconfig' shows the adapter as 'UP RUNNING PSCAN'
- 'hcitool scan' correctly identifies devices (gps mouse, cel phone, etc)
- 'sdptool browse <xx>' displays "Browsing <xx> ..." but nothing else (<xx> is my device id)
- 'rfcomm connect 0' maps my BT mouse to /dev/rfcomm0 correctly, and I can see the gps data streaming if I cat /dev/rfcomm0
1) hciconfig sometimes reports the correct address of my USB BT adapter, and sometimes displays 11:11:11:11:11:11, but either way the adapter is accessed correctly
2) When rfcomm connects the BT mouse, I have to type '0000' on the command line to have it maintain a connection; otherwise rfcomm connect fails. This does not work 100% of the time. Bluez-pin doesn't seem to be working properly.
3) When I run 'gpsd /dev/rfcomm0', it spends tons of lines trying to sync with the data, and then exits with a seg-fault.
4) If I mess arounda a lot resetting hci and rfcomm, Ubuntu freezes and becomes completely unresponsive. This is the scariest part, since I've never had the kernel come down on me before when using Ubuntu.
iscan enable; pscan enable;
comment "BT 338";}