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

Reply With Quote

