Re: GPS Control panel Application



On Oct 24, 3:16 am, "Luca Calligaris"
<l.calligaris.nos...@xxxxxxxxxxxxxxxxxx> wrote:
I do not know the test app you have seen (I've no WM installed) but GPSAPI
in native code are pretty simple and effective to use: create a dialog with
a bunch of LTEXT or EDITTEXT controls and fill them with the data you get
from GPSGetPosition.
If you want to perform specific configuration steps for you GPS device you
can access it using standard serial port API's on the serial port exposed by
the GPS Intermensiate Driver multiplexer

--

Luca Calligaris
l.calligaris.nos...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<tpande...@xxxxxxxxx> ha scritto nel messaggionews:6f96a738-1768-4cde-a413-8b9f243b3aca@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 23, 10:19 am, "Bruce Eitman [eMVP]"





<bruce.eitman.nos...@xxxxxxxxxxxxxxxxxxx> wrote:
I think that the point of Luca's post was that we don't know anything
about
you or your skills. You are asking very vague or general questions.

From what you are telling us, you are capable of creating a control panel
applet and you have some code that does what you want to do, but it is an
application written with MFC. What is the problem? Start moving the code
to
your control panel applet. Is it going to be so simple that you can do it
in a day? Probably not, but if you have any skills with Windows
programming
you should be able to do it.

--
Bruce Eitman (eMVP)
Senior Engineer
Bruce.Eitman AT EuroTech DOT com
My BLOGhttp://geekswithblogs.net/bruceeitman

EuroTech Inc.www.EuroTech.com

<tpande...@xxxxxxxxx> wrote in message

news:dd4885b8-0c83-455a-9b42-f5700641d77c@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
On Oct 22, 10:50 pm, "Luca Calligaris"

<l.calligaris.nos...@xxxxxxxxxxxxxxxxxx> wrote:
Help about...? Creating a control panel applet? Take a look
athttp://msdn.microsoft.com/en-us/library/bb821703.aspx

--

Luca Calligaris
l.calligaris.nos...@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

<tpande...@xxxxxxxxx> ha scritto nel
messaggionews:64ad7e74-86cf-4c1c-820c-8a9375285385@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

Hi All,

Can anybody provide help?

Actually I am going to develop an application that will use the GPS to
calculate the positions,will be able to work as an a-gps,standalone
gps.
I am working on WM6.1.
I want this application to be as a control panel applet so that the
user can go to settings->system->GPSapplication and that will show
options for user settings,operation settings etc.

Appreciate any help.

TPandey- Hide quoted text -

- Show quoted text -

Thanks Luca,

I went through the control panel link that you sent me.
I already developed a control panel application for displaying the
version info of my image.

I have seen this code for GPS application in my WM tree and it is a
test app and seem to me like they developed this app using MFC so the
initialization of app,creation of windows etc are completely different
than what we have in our control panel applets.

Is there a way I can port that MFC code to control panel applet?

T Pandey- Hide quoted text -

- Show quoted text -

Thanks for the help Bruce.I am trying to compile the code after
changes.
Yeah you are right not a day's work coz I have been doing this for 2-3
days now and still needs to resolve few more compilation errors.

Thanks anyway will defintly post if stuck for long.

T Pandey- Hide quoted text -

- Show quoted text -

Thx Luca,

I have this test app that I mentioned in the previous post.It is using
the services of GPSID.
This is actually developed for test purpose but now we want to port
this into final image as a CPL application.
I tried changing the code and got the code compiled.
I am getting prefetch data abort when I try launching this CPL
app.When I go to start->setting is just hangs there.The code snippet
is below..

===================================================
8:9:49.839 GPS driver: attach called
8:9:49.861 GPS driver PD::Initiazed PDSM PDA clientID = 3491
8:9:49.871 GPS driver client::setupGPSConfigForGetPosition
8:9:49.873 GPS driver client::setupGPSConfigForGetPosition,
wait_time 2147483647, client index -1
8:9:49.880 GPS driver PD::time to wait = 2147483647
8:9:49.885 GPS driver PA: Module init returned 1
8:9:49.891 GPS driver XTRA::Initiazed PDSM XTRA clientID = 8000
8:9:49.898 GPS driver XTRA::Module init returned 1
8:9:49.905 GPS driver ATL::Module initialized = 1
8:9:49.909 GPSDriverNIModuleInit() CALLED
8:9:49.912 Initiazed PDSM NI clientID = 7001
8:9:49.916 GPS driver::get a modem restart event
8:9:49.921 GPS driver: get IOCTL:3280896
8:9:49.922 GPS driver: IOCTL_POWER_CAPABILITIES
8:9:50.200 GPS driver::modem event 0
8:10:34.269 CertVerify: GPSOneApp.cpl trust = 2
8:10:34.301 GPSLock(): creating
8:10:34.304 GPSLock::Lock()
8:10:34.342 GPS driver: get IOCTL:17236008

8:10:34.345 GPS driver client::::addClient, handle=3712092

8:10:34.352 GPS driver: get IOCTL:17235996

8:10:34.352 GPS driver PD::call gps driver get device status

8:10:34.352 GPSManager waits for gps service only success.
8:10:34.357 Change the lock state to On

8:10:34.357 GPS driver: get IOCTL:17236004

8:10:34.361 GPS driver PA::AllocPACmdEntry () with index = 0

8:10:34.363 HIGH: Client autocreated for task 1dfc3c4
8:10:34.370 GPS driver PA::PACmdCallback () cmd=0, err=14

8:10:34.370 GPS driver PA::PACmdCallback () index = 0

8:10:34.370 GPS driver PA::PACmdCallback (), no need to wait for PA
event

8:10:34.439 HIGH: Thread migration into ONCRPC detected, destory
TLS & XDR
8:10:34.440 GPS driver PA::WaitForPACmdDone enter

8:10:34.440 GPS driver PA::waitForPACmdCallback () returned, pa cmd
2, pa cmd type 0

8:10:34.440 GPS driver PA::FindNextPACmdToProcess (), current index
= 0, found index = -1

8:10:34.441 GPS driver client::NotifyGPSLockUpdate

8:10:34.442 GPS driver: get IOCTL:17236000

8:10:34.442 GPS driver PA::AllocPACmdEntry () with index = 1

8:10:34.442 HIGH: Client autocreated for task 1dfc3c4
8:10:34.445 GPS driver PA::PACmdCallback () cmd=1, err=14

8:10:34.445 GPS driver PA::PACmdCallback () index = 1

8:10:34.445 GPS driver PA::PACmdCallback (), no need to wait for PA
event

8:10:34.507 HIGH: Thread migration into ONCRPC detected, destory
TLS & XDR
8:10:34.507 GPS driver PA::WaitForPACmdDone enter
8:10:34.507 GPS driver PA::waitForPACmdCallback () returned, pa cmd
2, pa cmd type 1
8:10:34.508 GPS driver PA::FindNextPACmdToProcess (), current index
= 1, found index = -1
8:10:34.508 num of bytes = 4, session lock is 0, exepeted = 1
8:10:34.508 Change the lock state to Off
8:10:34.509 GPS driver: get IOCTL:17236004
8:10:34.509 GPS driver PA::AllocPACmdEntry () with index = 2
8:10:34.509 HIGH: Client autocreated for task 1dfc3c4
8:10:34.511 GPS driver PA::PACmdCallback () cmd=0, err=14
8:10:34.512 GPS driver PA::PACmdCallback () index = 2
8:10:34.512 GPS driver PA::PACmdCallback (), no need to wait for PA
event
8:10:34.581 HIGH: Thread migration into ONCRPC detected, destory
TLS & XDR
8:10:34.581 GPS driver PA::WaitForPACmdDone enter
8:10:34.581 GPS driver PA::waitForPACmdCallback () returned, pa cmd
2, pa cmd type 0
8:10:34.581 GPS driver PA::FindNextPACmdToProcess (), current index
= 2, found index = -1
8:10:34.581 GPS driver client::NotifyGPSLockUpdate
8:10:34.585 GPS driver: get IOCTL:17236000
8:10:34.585 GPS driver PA::AllocPACmdEntry () with index = 3
8:10:34.585 HIGH: Client autocreated for task 1dfc3c4
8:10:34.587 GPS driver PA::PACmdCallback () cmd=1, err=14
8:10:34.587 GPS driver PA::PACmdCallback () index = 3
8:10:34.587 GPS driver PA::PACmdCallback (), no need to wait for PA
event
8:10:34.646 HIGH: Thread migration into ONCRPC detected, destory
TLS & XDR
8:10:34.646 GPS driver PA::WaitForPACmdDone enter
8:10:34.646 GPS driver PA::waitForPACmdCallback () returned, pa cmd
2, pa cmd type 1
8:10:34.646 GPS driver PA::FindNextPACmdToProcess (), current index
= 3, found index = -1
8:10:34.646 num of bytes = 4, session lock is 1, exepeted = 0
8:10:34.647 GPS driver: get IOCTL:17236000
8:10:34.647 GPS driver client::getClientParameter, handle=3712092,
param=2
8:10:34.647 GPS driver: get IOCTL:17236000
8:10:34.647 GPS driver client::getClientParameter, handle=3712092,
param=3
8:10:34.647 GPS driver: get IOCTL:17236000
8:10:34.647 GPS driver client::getClientParameter, handle=3712092,
param=4
8:10:34.647 GPSLock::Unlock()
8:10:34.648 ~GPSLock(): destroying
8:10:34.806 Prefetch Abort: Thread=8417dbe4 Proc=8036b160
'shell32.exe'
8:10:34.806 AKY=00000011 PC=781a8038(???+0x781a8038)
RA=03f693a0(coredll.dll+0x0001d3a0) BVA=781a8038 FSR=00000005
8:10:35.609 Prefetch Abort: Thread=83c4aae4 Proc=8036b160
'shell32.exe'
8:10:35.609 AKY=00000011 PC=781a8068(???+0x781a8068)
RA=03f693a0(coredll.dll+0x0001d3a0) BVA=781a8068 FSR=00000005
8:10:36.589 OEMIoControl: Unsupported Code 0x1010024 - device
0x0101 func 9
8:10:36.742 DCVS cDCVSTimeOut=2

===================================================

Seems there is something wrong in initialization.

T Pandey
.