Join Today
+ Reply to Thread
Page 4 of 4 FirstFirst 1234
Results 31 to 37 of 37
Like Tree1Likes

Thread: alternative deamon for lapisrv for external gps receivers?!?

  1. #31

    Default

    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

  2. #32
    Join Date
    Sep 2005
    Location
    Germany, Berlin
    Posts
    109

    Default

    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

  3. #33
    Join Date
    Sep 2005
    Location
    BorderlessLinuxWorld
    Posts
    110

    Default

    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)...

  4. #34
    Join Date
    Nov 2005
    Location
    switzerland
    Posts
    2

    Default

    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-q81 and 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!

  5. #35
    Join Date
    Sep 2005
    Location
    Germany, Berlin
    Posts
    109

    Default

    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
    Attached Files Attached Files
    Last edited by mightymop; 04-19-2008 at 01:31 AM.

  6. #36
    Join Date
    Nov 2005
    Location
    switzerland
    Posts
    2

    Default

    thx a lot mightymop - that s real mighty

    i did what you suggested and now copilot is working again, yeaaah

    cheers

  7. #37
    Join Date
    Sep 2005
    Location
    Germany, Berlin
    Posts
    109

    Default

    for all visitors plz have a look on the first post in this thread...


 
+ Reply to Thread
Page 4 of 4 FirstFirst 1234

Similar Threads

  1. GooSync Alternative?
    By drdigital1 in forum A1200 General Chat
    Replies: 0
    Last Post: 10-09-2009, 05:47 PM
  2. Alternative to MPKG
    By srawat_itpro in forum E6 General Chat
    Replies: 1
    Last Post: 06-10-2007, 05:32 PM
  3. GPS software alternative
    By Rikk in forum A780 General Chat
    Replies: 2
    Last Post: 09-07-2006, 01:17 AM
  4. External GPS receiver for A780
    By samraj in forum A780 General Chat
    Replies: 0
    Last Post: 03-21-2006, 02:23 PM
  5. [A780] CoPilot with external GPS-BT-Mouse?
    By jumit in forum Development
    Replies: 1
    Last Post: 10-06-2005, 03:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Single Sign On provided by vBSSO

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1