there is some work done from floe and lurker.
maybe this is a little help for "gps_to_lapisrv_d".
http://www.motorolafans.com/forums/v...221&highlight=
Hey folks...
What about a deamon which reads nmea data from external bluetooth gps-receivers (of course bluez should be installed and is working) and serving the gps data in a lapi-interface-format on /tmp/lapisock (as an alternative server for lapisrv)
with such a deamon wie could use copilot on "nongps" a780 phones and on phones where the gps is disabled 'cause of an error !?
the lapi-interface is allready decoded so we could use this code too for programming the "gps_to_lapisrv_d"
who could help to make it?
mightymop
actual status:
you can now run copilot with bt gps receivers
(on A780 without internal gps too!!!)
what u need:
- bluez
- gpsd binary (attached - rename gpsd.zip to gpsd)
or gpsd.cpp for self-compile (rename gpsd_src.zip to gpsd.cpp)
- the following script (startgps.sh) and config file (gspd.conf)
- copilot of cource
take care that you kill lapisrv (if it is running) and delete /tmp/lapisock
(if exists)
startgps.sh
> in my example bluez is located in /diska/bluez
and gpsd in /diska/gpsd
> in my case 00:15:4B:11:13:67 is the mac adress of my bt gps
> /tmp/rfcomm0 is the serial port with the gpsdata from the bt gps
create a file gpsd.conf in /diska/gpsd with the following content:Code:#!/bin/sh PATH=:/diska/bluez/bin:/diska/bluez/sbin export PATH LD_LIBRARY_PATH=:/diska/bluez/lib export LD_LIBRARY_PATH 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 00149a509c87 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 1; sleep 2; hcitool cc 00:15:4B:11:13:67 sleep 1; rfcomm bind /tmp/rfcomm0 00:15:4B:11:13:67 sleep 1; cd /diska/gpsd ./gpsd &
(depends on what you've choosen in the script above)
Code:interface=/tmp/rfcomm0
Last edited by mightymop; 04-19-2008 at 02:00 AM.
there is some work done from floe and lurker.
maybe this is a little help for "gps_to_lapisrv_d".
http://www.motorolafans.com/forums/v...221&highlight=
i think my phone is kidding me....
yesterday i wanted to use my gps, but i was not able to activate it (error again) this is frustrating i thought and played a bit...
i came to this method to reactivate gps:
1. open telnet session to the phone
2. use "ps ax" to get the pid of lapisrv and kill it
3. start lapisrv via telnet again and kill it again too
4. then restart the phone (with killed lapisrv) and then after restart my gps was back
hm...
hey guys ... i've got some trouble with the communication between copilot and my own new lapigpsd (alternative gpsd to lapisrv)
copilot connects fine and sends the init code to my gpsd and gets the response correctly... but then copilot waits for some other data i think and
hangs on starting up to menu, cause a readmethod in copilot is blocking...
i'd like to make a gpsd which reads data from external bluetooth gps and
servs the data for copilot like lapisrv, so we could use copilot on all
a780
one further question:
is there a header for /usr/lib/libexzlapi-xscale.so ?
this lib maybe could help...
here is some strace output:
MYGPSD:
======
LAPISRV (original)Code:0.001386 write(1, "we are starting lapi!\n", 22) = 22 0.002718 write(1, " GPS not opened, starting GPS\n", 31) = 31 0.002828 writev(27, [{" \206\0\0\0\0\0\0", 8}, {NULL, 0}], 2) = 8 0.003232 read(27, " \206\10\0\0\0\0\0", 8) = 8 0.001317 read(27, "\0\0\0\0\0\0\0\0", 8) = 8 0.002299 getpid() = 684 0.002146 getpid() = 684 0.002090 socket(PF_UNIX, SOCK_STREAM, 0) = 28 0.001821 fcntl64(0x1c, 0x3, 0, 0x13c) = 2 0.001084 fcntl64(0x1c, 0x4, 0x2, 0x13c) = 0 0.002603 connect(28, {sa_family=AF_UNIX, path="/tmp/lapisock"}, 15) =0 0.008494 write(2, "{4} LAPI_SrvCli.c:279, LAPI_LogR"..., 131) = 131 0.002615 write(28, "\254\2\0\0d\0\4\0\1\0\0\0", 12) = 12 0.003672 read(28, <unfinished>
============
Code:0.001387 write(1, "we are starting lapi!\n", 22) = 22 0.002721 write(1, " GPS not opened, starting GPS\n", 31) = 31 0.002922 writev(27, [{" \206\0\0\0\0\0\0", 8}, {NULL, 0}], 2) = 8 0.003239 read(27, " \206\10\0\0\0\0\0", 8) = 8 0.001315 read(27, "\0\0\0\0\0\0\0\0", 8) = 8 0.005890 getpid() = 716 0.008015 getpid() = 716 0.001707 socket(PF_UNIX, SOCK_STREAM, 0) = 28 0.002034 fcntl64(0x1c, 0x3, 0, 0x13c) = 2 0.001084 fcntl64(0x1c, 0x4, 0x2, 0x13c) = 0 0.002715 connect(28, {sa_family=AF_UNIX, path="/tmp/lapisock"}, 15) =0 0.014905 write(2, "{4} LAPI_SrvCli.c:279, LAPI_LogR"..., 131) = 131 0.002835 write(28, "\314\2\0\0d\0\4\0\1\0\0\0", 12) = 12 0.022571 read(28, "\0\0\0\0e\0\4\0", 8) = 8 0.001268 read(28, "gE\213k", 4) = 4 0.001595 write(2, "{4} LAPI_SrvCli.c:316, LAPI_LogR"..., 127) = 127 0.001963 socket(PF_UNIX, SOCK_STREAM, 0) = 29 0.001283 fcntl64(0x1d, 0x3, 0, 0x13c) = 2 0.001091 fcntl64(0x1d, 0x4, 0x2, 0x13c) = 0 0.001149 connect(29, {sa_family=AF_UNIX, path="/tmp/lapisock"}, 15) =0 0.008993 write(2, "{4} LAPI_SrvCli.c:353, LAPI_LogG"..., 133) = 133 0.001980 write(29, "\314\2\0\0f\0\4\0gE\213k", 12) = 12 0.008412 read(29, "\0\0\0\0g\0\0\0", 8) = 8 0.028210 write(2, "{4} LAPI_SrvCli.c:390, LAPI_LogG"..., 109) = 109 0.002621 getpid() = 716 0.001359 getpid() = 716 0.002617 pipe([30, 31]) = 0 0.001805 clone(child_stack=0x143160, flags=CLONE_VM|CLONE_FS|CLONE_FILES|CLONE_SIGHAND) = 722 0.002107 write(31, "\314\2\0\0\5\0\0\0\320\361\377\277\10\264gB\314\361\377"..., 148) = 148 0.001999 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 0.002208 write(31, "\300\\\27A\0\0\0\0\0\0\0\0\240\233\'@\340\20\24\0\0\0\0"..., 148) = 148 0.003270 rt_sigprocmask(SIG_SETMASK, NULL, [RTMIN], 8) = 0 0.002433 rt_sigsuspend([] <unfinished> 0.000642 --- SIGRTMIN (Unknown signal 32) @ 0 (0) --- 0.002058 <rt_sigsuspend> ) = 32 0.000607 sigreturn() = ? (mask now [RTMIN]) 0.002099 getpid() = 716 0.001696 getpid() = 716 0.004259 write(2, "{4} LAPI_SrvCli.c:547, LAPI_LogG"..., 469) = 469 0.002282 write(28, "\314\2\0\0j\0 \0\0\0\0\0\2\0\0\0\226\0\0\0\226\0\0\0\210"..., 40) = 40 0.025519 gettimeofday({1169679690, 458507}, NULL) = 0 0.002053 open("/mmc/mmca1/copilot/save/Jan2407.gps", O_RDWR|O_APPEND|O_CREAT, 0666) = 32 0.002731 fstat64(32, {st_mode=S_IFREG|0775, st_size=17592186044416, ...}) = 0 0.001422 old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x40791000 0.001573 fstat64(32, {st_mode=S_IFREG|0775, st_size=17592186044416, ...}) = 0 0.001436 _llseek(32, 0, [0], SEEK_SET) = 0 0.001585 read(32, "$GPGSA,A,3,,,,,,,,,,,,,1.71,0.97"..., 2952) = 2952 0.001983 times({tms_utime=1058, tms_stime=227, tms_cutime=0, tms_cstime=0}) = 1515715 0.012918 semop(32769, 0xbfffee00, 1) = 0 0.003162 semop(32769, 0xbfffee08, 1) = 0 0.004782 semop(32769, 0xbfffee00, 1) = 0 0.001868 semop(32769, 0xbfffee08, 1) = 0 0.010570 times({tms_utime=1060, tms_stime=227, tms_cutime=0, tms_cstime=0}) = 1515718 0.013980 times({tms_utime=1062, tms_stime=227, tms_cutime=0, tms_cstime=0}) = 1515720 0.009904 getpid() = 716
and of course my C-Code:
code attached...
today I continued programming on the communication between my gpsd and copilot. the first part of the handshake runs but i still have problems with the msgids and the sendorder of messages hm..
console output:
Code:we are starting lapi! GPS not opened, starting GPS {4} LAPI_SrvCli.c:279, LAPI_LogRegisterReq() LAPI CLI : C->S registerReq pid: 967, msgId: 100, msgLen: 4, service: 1, 0x01000000, {4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI CLI : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 967, msgId: 102, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 967, msgId: 102, msgLen: 4, globalId: 1804289383, {0} LAPI_CLI_Api.c:365 LAPI Error CLI LAPI_RegisterClient: Received is not expected get async fd response, pid is: 967! {0} LAPI_CLI_Global.c:335 LAPI Error CLI LAPI_CLI_GetAsyncFd: Invalid clientId: -1, pid is: 967! Live enabled setting: 0 Done ShowLicWiz 963: Terminatedc-code:Code:we are starting lapi! GPS not opened, starting GPS {4} LAPI_SrvCli.c:279, LAPI_LogRegisterReq() LAPI CLI : C->S registerReq pid: 996, msgId: 100, msgLen: 4, service: 1, 0x01000000, {4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI CLI : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 996, msgId: 102, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp() LAPI CLI : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, {4} LAPI_SrvCli.c:547, LAPI_LogGetLocationReq() LAPI CLI : C->S getLocationReq pid: 996, msgId: 106, msgLen: 32, mode: 0, sessionId: 0, transactionId: 0, responseTime: 2, 0x02000000, horizontalAccuracy: 150, 0x96000000, verticalAccuracy: 150, 0x96000000, preferredPowerConsumption: 5000, 0x88130000, interval: 1, 0x01000000, reportCriteria: 1, 0x01000000, costAllowed: 1, 0x01, addressInfoRequired: 0, 0x00, speedAndCourseRequired: 0, 0x00, altitudeRequired: 0, 0x00, Live enabled setting: 0 Done ShowLicWiz {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1003! {4} LAPI_SrvCli.c:1031, LAPI_LogGetLocationRsp() LAPI CLI : S->C getLocationRsp pid: 0, msgId: 0, msgLen: 106, sessionId: 0, transactionId: 0, longitude: 5.960464477539062500000000000000e-08, latitude: 5.960464477539062500000000000000e-08, latLonAccuracy: 5.960464477539062500000000000000e-08, timeStamp: 0.000000000000000000000000000000e+00, 0x0000000000000000, altitude: 5.960464477539062500000000000000e-08, speed: 5.960464477539062500000000000000e-08, travelDirection: 5.960464477539062500000000000000e-08, pointingDirection: -2.559999999403953552246093750000e+02, horizontalAccuracy: 5.960464477539062500000000000000e-08, verticalAccuracy: 5.960464477539062500000000000000e-08, course: 5.960464477539062500000000000000e-08, locationMethod: 0, 0x00000000, cause: -1, 0xffffffff, ageOfFix: 0.000000000000000000000000000000e+00, 0x0000000000000000, 992: Terminated
How about using open source gpsd frontend?
eXMMS and Rockbox running on E680, E680i, E680g, A780, A1200 and ROKR E6
you mean roadmap or sth like that? hm..
yes there good open source navi programs but i could not find maps for germany ...
and i like copilot![]()
now i am getting this from copilot on a console ...
Code:we are starting lapi! GPS not opened, starting GPS {4} LAPI_SrvCli.c:279, LAPI_LogRegisterReq() LAPI CLI : C->S registerReq pid: 1089, msgId: 100, msgLen: 4, service: 1, 0x01000000, {4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI CLI : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 1089, msgId: 102, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp() LAPI CLI : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, {4} LAPI_SrvCli.c:547, LAPI_LogGetLocationReq() LAPI CLI : C->S getLocationReq pid: 1089, msgId: 106, msgLen: 32, mode: 0, sessionId: 0, transactionId: 0, responseTime: 2, 0x02000000, horizontalAccuracy: 150, 0x96000000, verticalAccuracy: 150, 0x96000000, preferredPowerConsumption: 5000, 0x88130000, interval: 1, 0x01000000, reportCriteria: 1, 0x01000000, costAllowed: 1, 0x01, addressInfoRequired: 0, 0x00, speedAndCourseRequired: 0, 0x00, altitudeRequired: 0, 0x00, Live enabled setting: 0 Done ShowLicWiz {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 1098! {0} LAPI_SrvCli.c:995 LAPI Error CLI LAPI_LogGetLocationRsp: Wrong getLocationRsp msg length: 0, pid is: 0!
hey ho...
cause i were bored in me holidays i tried to continue my old project and now
i got this output from copilot (telnet) when i start it with
/usr/language/preloadapps/qtapps/CoPilot/alkrunme.sh
my prog is sending this stuff:
pid: 0
msgid: 106
msglen: 0
sessid: 0
transid: 0
longitude: 52.538418
latitude: 21.384283
accuracy: 0.000000
timestamp: 463902427
altitude: 2.000000
speed: 220.000000
heading: -256.000000
bearing: 21.384283
horizontal_accuracy: 0.000000
vertical_accuracy: 220.000000
course: 0.000000
locmethod: 1
cause: -724249388
ageoffix: 1397563310
what you can see is that copilot accepts my data but copilotCode:.... {4} LAPI_SrvCli.c:279, LAPI_LogRegisterReq() LAPI CLI : C->S registerReq pid: 631, msgId: 100, msgLen: 4, service: 1, 0x01000000, {4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI CLI : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 631, msgId: 102, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp() LAPI CLI : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, {4} LAPI_SrvCli.c:547, LAPI_LogGetLocationReq() LAPI CLI : C->S getLocationReq pid: 631, msgId: 106, msgLen: 32, mode: 0, sessionId: 0, transactionId: 0, responseTime: 2, 0x02000000, horizontalAccuracy: 150, 0x96000000, verticalAccuracy: 150, 0x96000000, preferredPowerConsumption: 5000, 0x88130000, interval: 1, 0x01000000, reportCriteria: 1, 0x01000000, costAllowed: 1, 0x01, addressInfoRequired: 0, 0x00, speedAndCourseRequired: 0, 0x00, altitudeRequired: 0, 0x00, {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 643! {4} LAPI_SrvCli.c:1031, LAPI_LogGetLocationRsp() LAPI CLI : S->C getLocationRsp pid: 0, msgId: 0, msgLen: 106, sessionId: 0, transactionId: 0, longitude: 0.000000000000000000000000000000e+00, latitude: 5.253841800000000006320988177322e+01, latLonAccuracy: 2.138428299999999993019628163893e+01, timeStamp: 0.000000000000000000000000000000e+00, 0x0000000000000000, altitude: 2.291982522030767285488729795440e-315, speed: 2.000000000000000000000000000000e+00, travelDirection: 2.200000000000000000000000000000e+02, pointingDirection: -2.560000000000000000000000000000e+02, horizontalAccuracy: 2.138428299999999993019628163893e+01, verticalAccuracy: 0.000000000000000000000000000000e+00, course: 2.200000000000000000000000000000e+02, locationMethod: 0, 0x00000000, cause: 0, 0x00000000, ageOfFix: -4.556340695917766602264452536150e+100, 0x01000000d4d4d4d4, ....
got them in wrong format
have a look at the stuff beginning with (last)
{4} LAPI_SrvCli.c:1031, LAPI_LogGetLocationRsp() LAPI CLI : S->C getLocationRsp
it seems that it has sth to do with byte alignement or struct alignment ... is it correct?
hmm i tried the gcc option -fpack-struct but then copilot throws errors...
here is some code:
you see parameter 3 when try to send to copilot ... it has to be 114Code:unsigned char* buffer = (unsigned char*)malloc(256); memset(buffer,'\0',256); /* //lapisrv strace output string that was send at this time and its length was 114 \x00\x00\x00\x00\x00\x00\x6a\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00 \x70\x3e\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00 \x70\x3e\x00\x00\xe0\xff\xff\xff\x6f\xc0\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00\x70\x3e\x00\x00\x00\x00\x00\x00\x70 \x3e\x00\x00\x00\x00\xfd\xff\xff\xff\x00\x00\x00\x00\x00\x00\x00\x00 */ lapi_gps_rec* recorddata = (lapi_gps_rec*)buffer; //memset(recorddata->padding,0,SIZEPADDING); //recorddata->pid=(unsigned int)0; recorddata->msgid=(unsigned short)106; //recorddata->msglen=(unsigned short)0; //recorddata->sessid=(unsigned char)0; //recorddata->transid=(unsigned char)0; recorddata->longitude=(double)52.538418; recorddata->latitude=(double)21.384283; //recorddata->accuracy=(double)0.000000; recorddata->timestamp=(unsigned long long int)463902427; recorddata->altitude=(double)2.000000; recorddata->speed=(double)220.000000; recorddata->heading=(double)-256.000000; recorddata->bearing=(double)21.384283; //recorddata->horizontal_accuracy=(double)0.000000; recorddata->vertical_accuracy=(double)220.000000; //recorddata->course=(double)0.000000; recorddata->locmethod=(int)1; recorddata->cause=(int)-724249388; recorddata->ageoffix=(unsigned long long int)1397563310; send(datasock,buffer+6,114,0);
(i dont know why, i have this from a strace from lapisrv)
maybe someone could help me?
here is the output from lapisrv and copilot when they work together...
copilot:
Code:{4} LAPI_SrvCli.c:279, LAPI_LogRegisterReq() LAPI CLI : C->S registerReq pid: 698, msgId: 100, msgLen: 4, service: 1, 0x01000000, {4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI CLI : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:353, LAPI_LogGetAsyncFdReq() LAPI CLI : C->S getAsyncFdReq pid: 698, msgId: 102, msgLen: 4, globalId: 1804289383, {4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp() LAPI CLI : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, {4} LAPI_SrvCli.c:547, LAPI_LogGetLocationReq() LAPI CLI : C->S getLocationReq pid: 698, msgId: 106, msgLen: 32,mode: 0, sessionId: 0, transactionId: 0, responseTime: 2, 0x02000000, horizontalAccuracy: 150, 0x96000000, verticalAccuracy: 150, 0x96000000, preferredPowerConsumption: 5000, 0x88130000, interval: 1, 0x01000000, reportCriteria: 1, 0x01000000, costAllowed: 1, 0x01, addressInfoRequired: 0, 0x00, speedAndCourseRequired: 0, 0x00, altitudeRequired: 0, 0x00, we are starting lapi! {4} LAPI_CLI_Api.c:1104, LAPI_GetAsyncMsg() LAPI CLI : Enter into LAPI_GetAsyncMsg() clientId: 0, pid is: 719! {4} LAPI_SrvCli.c:1031, LAPI_LogGetLocationRsp() LAPI CLI : S->C getLocationRsp pid: 0, msgId: 0, msgLen: 106, sessionId: 0, transactionId: 0, longitude: 5.960464477539062500000000000000e-08, latitude: 5.960464477539062500000000000000e-08, latLonAccuracy: 5.960464477539062500000000000000e-08, timeStamp: 0.000000000000000000000000000000e+00, 0x0000000000000000, altitude: 5.960464477539062500000000000000e-08, speed: 5.960464477539062500000000000000e-08, travelDirection: 5.960464477539062500000000000000e-08, pointingDirection: -2.559999999403953552246093750000e+02, horizontalAccuracy: 5.960464477539062500000000000000e-08, verticalAccuracy: 5.960464477539062500000000000000e-08, course: 5.960464477539062500000000000000e-08, locationMethod: 0, 0x00000000, cause: -8, 0xf8ffffff, ageOfFix: 0.000000000000000000000000000000e+00, 0x0000000000000000,
lapisrv
Code:{4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp() LAPI SRV : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, {4} LAPI_SRV_ApMsgProc.c:293, LAPI_SRV_ProcGetAsyncFdMsg() LAPI SRV : Trying to connect mux channel... {4} LAPI_SRV_Global.c:1402, LAPI_SRV_ConnectMuxChannel() LAPI SRV : Success to connect mux channel. {4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp() LAPI SRV : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, {4} LAPI_SRV_BpMsgProc.c:1566, LAPI_LogBpGetLocationReq() LAPI SRV : AP->BP bpGetLocationReq (GEOLOCATION_APBP_REQ) subCmdId: 0x00, sessionId: 2, transactionId: 1, responseTime: 0x00000002, horizontalAccuracy: 0x00000096, verticalAccuracy: 0x00000096, preferredPowerConsumption: 0x00001388, interval: 0x00000001, reportCriteria: 0x00000001, costAllowed: 0x01, addressInfoRequired: 0x00, speedAndCourseRequired: 0x00, altitudeRequired: 0x00, {4} LAPI_SRV_BpMsgProc.c:1444, LAPI_SRV_SetUpBpMsgFrame() LAPI SRV : Send following message to BP: {4} LAPI_SrvCli.c:180, LAPI_DebugHex() LAPI SRV : 50 00 24 00 02 01 00 00 00 02 00 00 00 96 00 00 00 96 00 00 13 88 00 00 00 01 00 00 00 01 01 00 00 00 cf b0 {4} LAPI_SRV_BpMsgProc.c:1351, LAPI_SRV_BpMsgParse() LAPI SRV : Receive following message from BP: {4} LAPI_SrvCli.c:180, LAPI_DebugHex() LAPI SRV : 50 00 24 08 00 00 00 00 00 02 00 00 00 04 00 00 00 02 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 02 cf b0 {4} LAPI_SRV_BpMsgProc.c:1922, LAPI_LogBpStatusChangeInd() LAPI SRV : BP->AP bpStatusChangeInd (STATUS_CHANGE_BPAP_IND) subCmdId: 0x08, sessionId: 0, transactionId: 0, userStatus: 0x00000002, hwStatus: 0x00000004, fixStatus: 0x00000002, emergencyStatus: 0x00000002, fixResultStatus.status: 0x00000000, fixResultStatus.cause: 0x00000000, proximityStatus: 0x00000002, {4} LAPI_SRV_BpMsgProc.c:1351, LAPI_SRV_BpMsgParse() LAPI SRV : Receive following message from BP: {4} LAPI_SrvCli.c:180, LAPI_DebugHex() LAPI SRV : 50 00 70 01 02 01 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff ff 80 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 ff ff ff f8 00 00 00 00 00 00 00 00 cf b0 {4} LAPI_SRV_BpMsgProc.c:1644, LAPI_LogBpGetLocationRsp() LAPI SRV : BP->AP bpGetLocationRsp (GEOLOCATION_APBP_RES) subCmdId: 0x01, sessionId: 2, transactionId: 1, longitude: 0x0000000000000000, latitude: 0x0000000000000000, latLonAccuracy: 0x0000000000000000, timeStamp: 0x0000000000000000, altitude: 0x0000000000000000, speed: 0x0000000000000000, travelDirection: 0x0000000000000000, pointingDirection: 0xffffffff80000000, horizontalAccuracy: 0x0000000000000000, verticalAccuracy: 0x0000000000000000, course: 0x0000000000000000, locationMethod: 0x00000000, cause: 0xfffffff8, ageOfFix: 0x0000000000000000, {4} LAPI_SrvCli.c:1031, LAPI_LogGetLocationRsp() LAPI SRV : S->C getLocationRsp pid: 0, msgId: 0, msgLen: 106, sessionId: 0, transactionId: 0, longitude: 5.960464477539062500000000000000e-08, latitude: 5.960464477539062500000000000000e-08, latLonAccuracy: 5.960464477539062500000000000000e-08, timeStamp: 0.000000000000000000000000000000e+00, 0x0000000000000000, altitude: 5.960464477539062500000000000000e-08, speed: 5.960464477539062500000000000000e-08, travelDirection: 5.960464477539062500000000000000e-08, pointingDirection: -2.559999999403953552246093750000e+02, horizontalAccuracy: 5.960464477539062500000000000000e-08, verticalAccuracy: 5.960464477539062500000000000000e-08, course: 5.960464477539062500000000000000e-08, locationMethod: 0, 0x00000000, cause: -8, 0xf8ffffff, ageOfFix: 0.000000000000000000000000000000e+00, 0x0000000000000000, {4} LAPI_SRV_BpMsgProc.c:1351, LAPI_SRV_BpMsgParse() LAPI SRV : Receive following message from BP: {4} LAPI_SrvCli.c:180, LAPI_DebugHex() LAPI SRV : 50 00 24 08 00 00 00 00 00 02 00 00 00 04 00 00 00 02 00 00 00 02 00 00 00 01 ff ff ff f8 00 00 00 01 cf b0
greetz
mightymop
i am know successfully able to load gps data out of a txtfile and let
copilot show them on a map
now i have to implement the other side (getting gps data from an external gps receiver via bluetooth... but i have not got one)
maybe someone could write some code and i will integrate it into mine
So there is a chance for getting GPS on E680(i)/A780 without internal GPS![]()