The Motorola Development Community


Go Back   MotorolaFans.com Forums > Developments > Development > Development Stickys
Notices

 

MotoFans NWBE

Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
#1
10-03-2005
Default Access to GPS on a780

Hello all,

First I need to confirm that a780 has built-in GPS? I bought one from ebay and it had no mention of GPS. But using SEEM file editing, I enabled GPS and now my phone shows GPS icon (may be an icon only )

Now assuming it has built-in GPS, anyone tried getting co-ordinates (latitude, longitudes) from it? I am hoping to get NMEA access to the GPS.

Thanks
-ajay


User Information
akmits is offlineReport Post
MotoFans JUNR

xorphan's Avatar

Join Date: Aug 2005
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
 
#2
10-03-2005
Default Re: Access to GPS on a780

what's offset did you edit, and bit did u change...

or could you upload your seem 0032-0001 to the Neostream Server...

register:

http://neostream.dynu.com:21001/new.dws

Login:

ftp://neostream.dynu.com
__________________
Just Like Magic - Only Real


User Information
xorphan is offlineReport Post
MotoFans NWBE

Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
#3
10-03-2005
Default Re: Access to GPS on a780

I will post the file later.

I changed 3 bits in the SEEM_32 at:

Offset 8A

Bit index:

3 (LOCATION_AVAILABLE)
4 (LOCATION_ON_OFF)
5 (LOCATION_HELP_INFO_ON_OFF)

They were all OFF (0) changed them to ON(1)

-ajay


User Information
akmits is offlineReport Post
MotoFans MODR

Join Date: Sep 2005
Posts: 122
Thanks: 0
Thanked 2 Times in 1 Post
 
#4
10-03-2005
Default Re: Access to GPS on a780

Excellent find! Now I get a little satellite dish icon on the status bar, but it has a red slash through it.


User Information
samr7 is offlineReport Post
MotoFans NWBE

Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
#5
10-03-2005
Default Re: Access to GPS on a780

Mine is red too. Should it be some other color?

May be it is not getting the GPS signal lock. I will try keeping it near window.

I do not want to flash the phone with Copilot firmware, unless I am sure that phone has GPS. Those of you who have programming interface done (I do not have transflsh card yet, just got my phone) can you please check if the /dev/mux(??) is there and is dumping NMEA?

Thanks
-ajay


User Information
akmits is offlineReport Post
MotoFans MODR

Join Date: Sep 2005
Posts: 122
Thanks: 0
Thanked 2 Times in 1 Post
 
#6
10-03-2005
Default Re: Access to GPS on a780

A screen capture on CCMOVE shows a grayed satellite icon rather than a solid one with a red line through it:



I don't have copilot installed now either. Here's what strace on lapisrv shows just trying to start without copilot. I attached strace after lapisrv had already been started but before the icon showed up.

select(4, [3], [], NULL, {3580, 730000}) = 1 (in [3], left {3565, 290000})
accept(3, {sa_family=AF_UNIX, path="A4��"}, [2]) = 4
fcntl64(0x4, 0x3, 0, 0x1c0) = 2
fcntl64(0x4, 0x4, 0x802, 0x1c0) = 0
times({tms_utime=1, tms_stime=4, tms_cutime=0, tms_cstime=0}) = 6575
select(5, [3 4], [], NULL, {3600, 0}) = 1 (in [4], left {3600, 0})
read(4, "\277\0\0\0d\0\4\0\6\0\0\0", 256) = 12
read(4, 0x3b9c4, 244) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "{4} LAPI_SrvCli.c:316, LAPI_LogRegisterRsp()\tLAPI SRV : S->C registerRsp pid: 0, msgId: 101, msgLen: 4, globalId: 1804289383, \n", 127) = 127
write(4, "\0\0\0\0e\0\4\0gE\213k", 12) = 12
times({tms_utime=1, tms_stime=5, tms_cutime=0, tms_cstime=0}) = 6578
select(5, [3 4], [], NULL, {3600, 0}) = 1 (in [3], left {3600, 0})
accept(3, {sa_family=AF_UNIX, path=""}, [2]) = 5
fcntl64(0x5, 0x3, 0, 0x1c0) = 2
fcntl64(0x5, 0x4, 0x802, 0x1c0) = 0
times({tms_utime=1, tms_stime=6, tms_cutime=0, tms_cstime=0}) = 6579
select(6, [3 4 5], [], NULL, {3600, 0}) = 1 (in [5], left {3600, 0})
read(5, "\277\0\0\0f\0\4\0gE\213k", 256) = 12
read(5, 0x3bc54, 244) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "{4} LAPI_SRV_ApMsgProc.c:293, LAPI_SRV_ProcGetAsyncFdMsg()\tLAPI SRV : Trying to connect mux channel...\n", 103) = 103
open("/dev/mux14", O_RDWR|O_NONBLOCK|O_NOCTTY) = 6
write(2, "{4} LAPI_SRV_Global.c:1402, LAPI_SRV_ConnectMuxChannel()\tLAPI SRV : Success to connect mux channel.\n", 100) = 100
write(2, "{4} LAPI_SrvCli.c:390, LAPI_LogGetAsyncFdRsp()\tLAPI SRV : S->C getAsyncFdRsp pid: 0, msgId: 103, msgLen: 0, \n", 109) = 109
write(5, "\0\0\0\0g\0\0\0", 8) = 8
times({tms_utime=1, tms_stime=6, tms_cutime=0, tms_cstime=0}) = 6587
select(7, [3 4 5 6], [], NULL, {3600, 0}) = 1 (in [4], left {3599, 880000})
read(4, "\277\0\0\0p\0\4\0\1\0\1\1", 256) = 12
read(4, 0x3b9c4, 244) = -1 EAGAIN (Resource temporarily unavailable)
times({tms_utime=1, tms_stime=6, tms_cutime=0, tms_cstime=0}) = 6601
write(2, "{4} LAPI_SRV_BpMsgProc.c:1955, LAPI_LogBpGetStatusReq()\tLAPI SRV : AP->BP bpGetStatusReq (GET_STATUS_APBP_REQ) subCmdId: 0x11, sessionId: 2, transactionId: 1, \n", 160) = 160
write(2, "{4} LAPI_SRV_BpMsgProc.c:1448, LAPI_SRV_SetUpBpMsgFrame()\tLAPI SRV : Send following message to BP: \n", 100) = 100
write(2, "{4} LAPI_SrvCli.c:180, LAPI_DebugHex()\tLAPI SRV : 50 00 08 11 02 01 cf b0 \n", 75) = 75
write(6, "P\0\10\21\2\1\317\260", 8) = 8
times({tms_utime=1, tms_stime=7, tms_cutime=0, tms_cstime=0}) = 6603
select(7, [3 4 5 6], [], NULL, {4, 980000}) = 1 (in [6], left {4, 970000})
read(6, "P\0$\22\2\1\0\0\0\2\0\0\0\2\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\2\317\260", 1024) = 36
read(6, 0x3beb4, 988) = -1 EAGAIN (Resource temporarily unavailable)
write(2, "{4} LAPI_SRV_BpMsgProc.c:1355, LAPI_SRV_BpMsgParse()\tLAPI SRV : Receive following message from BP: \n", 100) = 100
write(2, "{4} LAPI_SrvCli.c:180, LAPI_DebugHex()\tLAPI SRV : 50 00 24 12 02 01 00 00 00 02 00 00 00 02 00 00 00 01 00 00 00 02 00 00 00 00 00 00 00 00 00 00 00 02 cf b0 \n", 159) = 159
write(2, "{4} LAPI_SRV_BpMsgProc.c:2008, LAPI_LogBpGetStatusRsp()\tLAPI SRV : BP->AP bpGetStatusRsp (GET_STATUS_APBP_RES) subCmdId: 0x12, sessionId: 2, transactionId: 1, userStatus: 0x00000002, hwStatus: 0x00000002, fixStatus: 0x00000001, emergencyStatus: 0x00000002, fixResultStatus.status: 0x00000000, fixResultStatus.cause: 0x00000000, proximityStatus: 0x00000002, \n", 358) = 358
write(2, "{4} LAPI_SrvCli.c:1314, LAPI_LogGetStatusRsp()\tLAPI SRV : S->C getStatusRsp pid: 0, msgId: 6, msgLen: 30, sessionId: 1, transactionId: 1, userStatus: 2, 0x02000000, hwStatus: 2, 0x02000000, fixStatus: 1, 0x01000000, emergencyStatus: 2, 0x02000000, fixResultStatus.status: 0, 0x00000000, fixResultStatus.cause: 0, 0x00000000, proximityStatus: 2, 0x02000000, \n", 358) = 358
write(4, "\0\0\0\0\6\0\36\0\1\1\2\0\0\0\2\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\2\0\0\0", 38) = 38
times({tms_utime=1, tms_stime=7, tms_cutime=0, tms_cstime=0}) = 6607
select(7, [3 4 5 6], [], NULL, {3600, 0}


User Information
samr7 is offlineReport Post
MotoFans NWBE

Join Date: Oct 2005
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
 
#7
10-03-2005
Default Re: Access to GPS on a780

hey,

Interesting lines are

open("/dev/mux14", O_RDWR|O_NONBLOCK|O_NOCTTY) = 6
write(6, "P\0\10\21\2\1\317\260", = 8
read(6, "P\0$\22\2\1\0\0\0\2\0\0\0\2\0\0\0\1\0\0\0\2\0\0\0\0\0\0\0\0\0\0\0\2\317\260", 1024) = 36


But it does not look like NMEA

-ajay


User Information
akmits is offlineReport Post
MotoFans MODR

Join Date: Sep 2005
Posts: 122
Thanks: 0
Thanked 2 Times in 1 Post
 
#8
10-03-2005
Default Re: Access to GPS on a780

Quote:
Originally Posted by akmits
Offset 8A

Bit index:

3 (LOCATION_AVAILABLE)
4 (LOCATION_ON_OFF)
5 (LOCATION_HELP_INFO_ON_OFF)
Say, where did you come across this information?


User Information
samr7 is offlineReport Post
MotoFans NWBE

Join Date: Sep 2005
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
#9
10-05-2005
Default Re: Access to GPS on a780

Quote:
Originally Posted by samr7
Excellent find! Now I get a little satellite dish icon on the status bar, but it has a red slash through it.
On a german gps-enabled A780 I get the dish with the red slash if GPS is disabled in the status menu.
If its enable the dish is grey. When Copilot is running the dish becomes black and blinks.

Can you switch GPS on/off in the status menu? Maybe its only switched off.

HTH jannex


User Information
jannex is offlineReport Post
MotoFans MODR

Join Date: Sep 2005
Posts: 122
Thanks: 0
Thanked 2 Times in 1 Post
 
#10
10-05-2005
Default Re: Access to GPS on a780

Quote:
Originally Posted by jannex
On a german gps-enabled A780 I get the dish with the red slash if GPS is disabled in the status menu.
If its enable the dish is grey. When Copilot is running the dish becomes black and blinks.

Can you switch GPS on/off in the status menu? Maybe its only switched off.
You're talking about the "Device Status" panel that comes up when the status bar is tapped, right? With other options including Battery, Time, Current Network, Net ID, Antenna (on/off), GPRS (on/off), etc.? I don't get a GPS option in there at all. Searching around the libraries, it looks like libezxam has a bunch of references to what might be an option called "AGPS", is that what's in your Device Status panel? I thought it was a full-blown GPS implementation -- If it's truly assisted GPS, it's not likely to work on my side of the world...


User Information
samr7 is offlineReport Post
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:51 PM. Search Engine Friendly URLs by vBSEO 3.2.0 Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd. VBulletin Skin by ForumMonkeys.