hmm sounds bad
what does a "cat < /tmp/rfcomm0" shows you? there should come nmea data from the bluetooth bt receiver after you started the bt-script
Dear Mightymop,
I compared/adapted your script and ran it step by step...
My bt connection is ok:
./sbin/hciconfig hci0
hci0: Type: UART
BD Address: 00:15:A8:01:4F:14 ACL MTU: 377:10 SCO MTU: 64:0
UP RUNNING PSCAN ISCAN
RX bytes:70 acl:0 sco:0 events:7 errors:0
TX bytes:34 acl:0 sco:0 commands:7 errors:0
rfcomm
rfcomm0: 00:02:76:FD:53:AF channel 1 clean
Then I start your gpsd daemon:
./gpsd
GPSd Process-ID: 756
Starting GPSd
Using Interface: /tmp/rfcomm0
Delete old lapisock: /tmp/lapisock
Creating /tmp/lapisock...ok
Binding /tmp/lapisock...ok
Listen on /tmp/lapisock...ok
Waiting for Connections (lapisock: 3)...
I start Copilot, to a destination
ok (control socket)
ctrlsock: 4
Start Handshake-Thread...ok (Handshake-Thread started)
con_dat->ctrlsock: 4
con_dat->lapisock: 3
con_dat->id: 418999829528576
con_dat->datasock: 0
con_dat->gpssock: 0
READ FROM CTRLSOCK > SIZE: 12
Initialize GPSd...
Waiting for Connections...ok (data socket)
datasock: 7
Open Data Connection...
Opening /tmp/rfcomm0 (O_RDONLY|O_NONBLOCK)gpssock: >-1< errno: 111
Problems with pipe on connecting to /tmp/rfcomm0
Handshake-Thread (ID: 418999829528576) ends...
Errow in Handshake-Thread...
It's very slow and after 3 "Error in Handshake-Thread", I receive a
"No GPS signal" on the A780
Any idea?
Thanks,
Bernard
hmm sounds bad
what does a "cat < /tmp/rfcomm0" shows you? there should come nmea data from the bluetooth bt receiver after you started the bt-script
Thanks mightymop!
I could also get GPS data from external GPS to copilot working.
Any idea how to get data back to lapisrv? Basically I want the data to be available to j2me apps thru location APIs (JSR179)...
hy all,
i have the following problem:
my internal gps receiver is no longer working (probably the flex-cable is broken - i tried a lot of solutions to bring back the internal gps, no one ruled) so i decided to buy a new bt gps receiver (took a qstarz bt-q81and installed the soft stuff listed in this thread to bring copilot back work with my new bt gps receiver.
here is my configuration:
hw:
- a780
- bt-q818 (gps receiver)
sw:
- bluez-02
- gpsd_187.cpp (i created also gpsd.conf, with this content: interface=/tmp/rfcomm0 , in same directory where gpsd is)
starting things this way (in ekonsole):
export PATH=$PATH:/diska/bluez/bin:/diska/bluez/sbin:/diska/bluez
export LD_LIBRARY_PATH=/diska/bluez/lib
cd /diska/bluez
cd btmod/
insmod bluez.o
insmod sco.o
insmod l2cap.o
insmod rfcomm.o
insmod bnep.o
insmod hidp.o
insmod hci_uart.o
cd ..
./bton
/usr/SYSbt/dload /dev/ttyS1 1 460800 $MAC_OF_BT-CHIP 0
./ezx-hciattach -d
/diska/bluez/etc/init.d/bluetooth start
if ! test -e /tmp/rfcomm0; then mknod /tmp/rfcomm0 c 216 0; fi
sleep 2;
/diska/bluez/sbin/hciconfig hci0 up
sleep 1;
/diska/bluez/bin/hcitool -i hci0 cc $MAC_OF_GPS_RECEIVER
sleep 1;
/diska/bluez/bin/rfcomm bind /tmp/rfcomm0 $MAC_OF_GPS_RECEIVER
sleep 1;
and in an new shell:
cd /diska/gpsd
./gpsd &
at this moment in /tmp/rfcomm0 is the following:
cat /tmp/rfcomm0
and get:
$GPGGA, 200634, 000, A, 4645, 0348, N, 0053, 3, 3413, E, 0, 11, 326, 44, 10634,,,A*59
$GPRMC, , 200634, 000, A, 4645, 0349, N, 0053, 3, 3413, E, 0, 2, 14, 22, 556,,,A*51
...and so on
i fire up copilot from gui
and now gpsd output is as follows:
GPSd Process-ID: 228
Starting GPSd
Using Interface: /tmp/rfcomm0
Delete old lapisock: /tmp/lapisock
Creating /tmp/lapisock...ok
Binding /tmp/lapisock...ok
Listen on /tmp/lapisock...ok
Waiting for Connections (lapisock: 3)...ok (control socket)
ctrlsock: 14
Start Handshake-Thread...ok (Handshake-Thread started)
con_dat->ctrlsock: 14
con_dat->lapisock: 3
con_dat->id: 0
con_dat->datasock: 0
con_dat->gpssock: 0
READ FROM CTRLSOCK > SIZE: 12
Initialize GPSd...
Waiting for Connections...ok (data socket)
datasock: 17
Open Data Connection...
Opening /tmp/rfcomm0 (O_RDONLY|O_NONBLOCK)gpssock: >18< errno: 0
READ FROM CTRLSOCK > SIZE: -1
READ FROM DATASOCK > SIZE: 12ok (data connection opened)
READ FROM CTRLSOCK > SIZE: 40
Activate Sending Localisation Data...ok
Handshake-Thread (ID: 0) ends...
Start Worker-Thread...ok (Thread started)
con_dat->ctrlsock: 14
con_dat->lapisock: 3
con_dat->id: 0
con_dat->datasock: 17
con_dat->gpssock: 18
NMEA: $GPGGA,171406.000,2235.0338,N,00427.2740,E,1,3,1.54,597.8,M,48.0,M,,*52
Sending Localisation Data...(longitude: 0.000000, latitude: 0.000000, latLonAccuracy: 0.000000, timestamp: 0, altitude: 0.000000, speed: 0.000000, travelDirection: 0.000000, pointingDirection: 0.000000, horizontalAccuracy: 0.000000, verticalAccuracy: 0.000000, course: 0.000000, locationMethod: 0, cause: 0, ageOfFix: 0)
Sending Localisation Data...(longitude: 0.000000, latitude: 0.000000, latLonAccuracy: 0.000000, timestamp: 0, altitude: 0.000000, speed: 0.000000, travelDirection: 0.000000, pointingDirection: 0.000000, horizontalAccuracy: 0.000000, verticalAccuracy: 0.000000, course: 0.000000, locationMethod: 0, cause: 0, ageOfFix: 0)
NMEA: $GPRMC,171406.000,A,2235.0338,N,00427.2740,E,0.02,123.54,210408,,,A*5B
Sending Localisation Data...(longitude: 0.000000, latitude: 0.000000, latLonAccuracy: 470113097178032397382510659252945137146217226437535118192536833408959445624750990711414092686288854339709555572467639231720623119815665747143006992121469124009531539456.000000, timestamp: 281, altitude: 394265038937763732134306997332919733313827763345408709500061010521087035649538020096651432167312699123727875900835130799946904509876344863793508607614392649730130126008820571110113401690711851114981745956173935900176481207420492709888.000000, speed: 0.000000, travelDirection: -256.000061, pointingDirection: 0.000000, horizontalAccuracy: 0.000000, verticalAccuracy: 0.000000, course: 0.000000, locationMethod: 0, cause: -1000, ageOfFix: 4294967295)
Sending Localisation Data...(longitude: 0.000000, latitude: 0.000000, latLonAccuracy: 470113097178032397382510659252945137146217226437535118192536833408959445624750990711414092686288854339709555572467639231720623119815665747143006992121469124009531539456.000000, timestamp: 281, altitude: 3942650777377637396823069973329197702738277652117408709500061010521087035649538020096651432167312699123727875900835130799946904509876344863793508607614392649730130126008820571110113401690711851114981745956173935900176481207420492709888.000000, speed: 0.000000, travelDirection: -256.000061, pointingDirection: 0.000000, horizontalAccuracy: 0.000000, verticalAccuracy: 0.000000, course: 0.000000, locationMethod: 0, cause: -1000, ageOfFix: 4294967295)
and so on...
after 10 minutes copilot still didn't has determined the current position...still showing: determining current position...from my point of view things are looking good...hmmm...
at least gpsd is still runing and produces the above output
so if anyone knows how to fix it, plz tell me.
thx a lot in advance and also for the great work!
hmm sounds like a strange bug...
try the binary in the attachemend plz...
(rename gpsd.zip to gpsd)
by the way: delete the /tmp/lapisock file ... and kill lapisrv deamon first ^^ before running gpsd
greetz mightymop
Last edited by mightymop; 04-19-2008 at 01:31 AM.
thx a lot mightymop - that s real mighty
i did what you suggested and now copilot is working again, yeaaah
cheers
for all visitors plz have a look on the first post in this thread...