Results 1 to 7 of 7
  1. #1
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default GPS programming =)

    So at school we got an assignment to program a GPS divice. The device comes with a driver that shows lat and long ... the problem is that i dont know any way to catch these numbers from that program ... Is there a not-so-complicated way to do this ... or do i need to take the info from the COM-port?

    If you could direct me to some information relevant to solving the issue it would be nice =) Thank you

  2. #2
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    Does it come with a Jar file? What do you mean by a driver? is it a Windows driver? Does it come with any documentation at all? If there's no direct way to communicate with the device via Java, you may need to use JNI or (the easier to use) JNA.

  3. #3
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default

    It does not come with any java things it is a windows driver,it has no ducumentation at all (GARMIN) I was thinking listening to the COM port and stealing the info as it pases trough =P but maybe im mistaken ... where can i read JNA? =)

  4. #4
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    You can read about using JNA here: JNA.dev and Wikipedia: JNA

    But to be able to use this, you need both a dll and some documentation on how to call the methods of the dll.

  5. #5
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default

    I am also allowed to use others stuff .. as long as i explain where i got it and who wrote it ;P well i have about 6 month to create a working GPSmap together with my group =P but i dont want to use other peoples stuff ... so i was just wondering if there were any easy way to do it ? =)

  6. #6
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

    Default

    I'm guessing you've done a Google search on this, and if so, are there public libraries out there that are worth trying or other avenues of attack that others have found fruitful?

  7. #7
    santa's Avatar
    santa is offline Senior Member
    Join Date
    Nov 2009
    Location
    Sweden
    Posts
    208
    Rep Power
    5

    Default

    yes =) but i was hoping to be able to solve it using my own code ... but it seems kind of complicated =P

Similar Threads

  1. programming
    By shazeb in forum New To Java
    Replies: 9
    Last Post: 10-31-2010, 02:45 PM
  2. New to Programming!!HW Help!
    By Bgreen7887 in forum New To Java
    Replies: 13
    Last Post: 10-16-2010, 02:43 AM
  3. new to programming need help with something
    By surg3y3 in forum New To Java
    Replies: 4
    Last Post: 01-26-2010, 03:13 AM
  4. New to Programming . . .Need Help
    By DSutta22 in forum New To Java
    Replies: 2
    Last Post: 09-10-2008, 05:19 AM
  5. programming
    By abcdefg in forum New To Java
    Replies: 9
    Last Post: 03-10-2008, 10:34 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •