Hi there,

I'm trying to use my FR, running SHR-T RC2, as a Bluetooth GPS relay for
my N800.  Googling suggests that people have got this kind of thing
working in the past, so I suspect I'm just missing a step somewhere.

Here's what I've done.

In one SSH terminal (A) to the FR:

1. Run "/usr/sbin/bluetoothd" to start the bluetooth daemon.

2. Run "simple-agent".

In another SSH terminal (B) to the FR:

3. Run: rfcomm -r watch 0 1 sh -c "gpspipe -r >/dev/rfcomm0" &

4. Run: sdptool add SP

On the N800:

5. Browse for bluetooth devices, select om-gta-02, and click OK to the
pairing dialog.

In terminal (A):

6. Enter the pairing code.  The text in this window now reads:

=================
root@om-gta02 ~ # simple-agent 
Agent registered
RequestPinCode (/org/bluez/462/hci0/dev_00_19_4F_A4_B8_06)
Enter PIN Code: 3035
=================

The N800 reports a successful pairing, and describes the FR as "Device
type: Computer", "Supported profiles: HFP,SPP".

Now I go to the N800 application (maemo-mapper) that wants to use GPS,
and get it to browse GPS devices -- good, it finds the om-gta-02 -- and
then use that device.  I then see the following in SSH terminal (B):

=================
root@om-gta02 ~ # Connection from 00:19:4F:A4:B8:06 to /dev/rfcomm0
Press CTRL-C for hangup
netlib_connectsock() returns socket on fd 4
Disconnected
Waiting for connection on channel 1
gpspipe: Write Error, Input/output error(5)
Connection from 00:19:4F:A4:B8:06 to /dev/rfcomm0
Press CTRL-C for hangup
netlib_connectsock() returns socket on fd 4
Disconnected
Waiting for connection on channel 1
gpspipe: Write Error, Input/output error(5)
Connection from 00:19:4F:A4:B8:06 to /dev/rfcomm0
Press CTRL-C for hangup
netlib_connectsock() returns socket on fd 4
Disconnected
Waiting for connection on channel 1
Can't create RFCOMM TTY: Address already in use
Waiting for connection on channel 1
gpspipe: Write Error, Input/output error(5)
Connection from 00:19:4F:A4:B8:06 to /dev/rfcomm0
Press CTRL-C for hangup
netlib_connectsock() returns socket on fd 4
Disconnected
Waiting for connection on channel 1
gpspipe: Write Error, Input/output error(5)
=================

And the N800 application reports a connection failure.

If I then fg and kill the rfcomm process, and do just a basic gpspipe on
its own:

=================
root@om-gta02 ~ # gpspipe -r
netlib_connectsock() returns socket on fd 3
GPSD,W=1,A=?,T=?,C=1.00,E=? ? ?,N=0,A=?,B=?,L=3 0.8 
abcdefgijklmnopqrstuvwxyz,E=? ? ?,T=?,R=1,U=?,E=? ? ?,N=0,M=1,E=? ? 
?,A=?,T=?,R=0,U=?,E=? ? ?
GPSD,O=?
GPSD,Y=- 1295731832.000 11:26 66 121 27 0:27 53 262 0 0:18 26 310 0 0:9 31 257 
0 0:15 65 290 25 0:8 19 68 0 0:5 15 183 0 0:17 12 113 23 0:28 47 65 42 0:21 4 
275 12 0:22 2 330 0 0:
GPSD,O=?
GPSD,O=?
GPSD,Y=- 1295731834.000 11:26 66 121 27 0:27 53 262 0 0:18 26 310 0 0:9 31 257 
0 0:15 65 290 24 0:8 19 68 0 0:5 15 183 0 0:17 12 113 23 0:28 47 65 41 0:21 4 
275 12 0:22 2 330 0 0:
^C
=================

- which I would guess is sensible output, and indicating a fix.

Does anyone know what I'm doing wrong here, to cause the gpspipe write
errors and hence the connection failure?

Thanks,
        Neil
_______________________________________________
Shr-User mailing list
[email protected]
http://lists.shr-project.org/mailman/listinfo/shr-user

Reply via email to