×

Discussion Board

Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Aug 2007
    Posts
    23

    Question send command to gps

    I would like to send config commands to my gps (Holux M1000) like you can with the NMEA-monitor Tools option (http://homepage2.nifty.com/k8/gps/).

    I tried something like:
    address, services = socket.bt_discover()
    print "BT discovered: %s, %s" % (address, services)
    target = (address, services.values()[0])
    btconn = socket.socket(socket.AF_BT, socket.SOCK_STREAM)
    btconn.connect(target)
    gps = btconn.makefile("rw", 0)
    mtk = '$PMTK414*33\r\n' #query frequencies

    gps.write('mtk')
    Then in a loop like in example 62 of "Mobile Python":
    nmea = gps.readline()

    Apparently nothing arrives at the gps.

    What should I have done??
    Many thanks, Janwillem

  2. #2
    Registered User
    Join Date
    Aug 2007
    Posts
    23

    Re: send command to gps

    sorry sorry
    persistently overlooked typo that does not generate error
    gps.write('mtk')
    must of course be
    gps.write(mtk)

    works fine now.

  3. #3
    Regular Contributor
    Join Date
    Aug 2005
    Posts
    200

    Re: send command to gps

    With regards to querying a GPS device, what set of commands would query for $GPZDA sentences?
    NOTE: ZDA furnishes date & UTC time along with the local time.

    Best,
    wirefree

Similar Threads

  1. N73 firmware with BT GPS.
    By tonyhabayeb in forum Bluetooth Technology
    Replies: 2
    Last Post: 2007-08-19, 07:58
  2. GPS on N95
    By kvr0 in forum Symbian
    Replies: 0
    Last Post: 2007-05-11, 10:22
  3. GPRS connection problems on 6600..
    By suckho in forum Symbian Networking & Messaging (Closed)
    Replies: 10
    Last Post: 2005-12-02, 14:00
  4. Nokia 6600 Socket Server send delay Problem
    By dicson_hu in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2005-10-31, 07:37
  5. Replies: 3
    Last Post: 2005-07-22, 02:35

Posting Permissions

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