This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Android Porting with GPS module

Hi Everyone,

                 We have ported android froyo on AM1808evm board along with GPS module. Problem here is how can we use Location Manager in application where i can get latitude & longitude values. what files i need to change, my gps runs on ttyS1.

Plz help me in this issue. Thanks in advance.

Regards

Pooja.

  • You would probably need the GPS HAL.

    However, this is not part of AOSP .and therefore the TI DevKit release. We are not in a position to support this in a generic way.

    I would suggest that you ask your GPS device vendor or look around in the various internet forums.

  • Which is your GPS module ?

    Regards,

    Ranjini

  • Hi Ranjini,

                      Iam using SIM18 GPS module....

    Do u have idea of location manager with GPS module.

    Regards

    Pooja

  • Hi Pooja,

    I have worked on NEO-6G GPS module.

    I guess you need to develop an java interface layer to make it listen to the GPS messages u read and make it provide to location manager.

     Look into gps_liansp.c and  gps_qemu.c files in android source code, you wil get some idea.

    Regards,

    Ranjini

  • Hi Ranjini,

                    Thanks for your quick reply.

    But i couldn't see any files related to that in android file system. do i need to create gps folder with .c,.h and Android.mk files. can u please tell me in brief how to fix gps data to location manager and where do i need to specify ttyS1 (gps module is connected to /dev/ttyS1 serial port).

    Thanks in advance.

    Regards

    Pooja

  • Hi Sir,

     we have ported android froyo 2.2 on AM1808evm. Now i want to install google map API on my board. What i should do to update file system to have google maps support.

    Please help me thanks in advance.

    Regards

    Pooja.

  • Hi Pooja,

    You should have GPS framework integrated into your file system to make GPS work on your board. You better ask your vendor to provide the android framework for the GPS device .

    Attached are the file i mentioned before for cross check. You can find those files in "Android_Source/sdk/emulator/gps" folder

    Regards,

    Ranjini 

  • Hi Ranjini,

                    Our's is not mobile development environment, its our own PDA device with linux 2.6 and android 2.2 porting. Iam getting gps packets as follows

    $GPRMC,183729,A,3907.356,N,12102.482,W,000.0,360.0,080301,015.5,E*6F
    $GPRMB,A,,,,,,,,,,,,V*71
    $GPGGA,183730,3907.356,N,12102.482,W,1,05,1.6,646.4,M,-24.1,M,,*75
    $GPGSA,A,3,02,,,07,,09,24,26,,,,,1.6,1.6,1.0*3D
    $GPGSV,2,1,08,02,43,088,38,04,42,145,00,05,11,291,00,07,60,043,35*71
    $GPGSV,2,2,08,08,02,145,00,09,46,303,47,24,16,178,32,26,18,231,43*77
    $PGRME,22.0,M,52.9,M,51.0,M*14
    $GPGLL,3907.360,N,12102.481,W,183730,A*33
    $PGRMZ,2062,f,3*2D

    Now we need to pass those values to location manager class. As per your suggestion we called up our vendor for android framework, but they said that they wont provide any framework.
    If its possible can you please send code files and your framework ( i think any gps data will be getting in RX/TX way only). Please send me java interface to connect gps.

    Thanks in advance.

    Regards
    Pooja