I seek local time details from an external GPS device. NMEA's ZDA sentence furnishes this information. See here for details.
I wish to gain an understanding of how the different sentence types are generated and can be queried. As a starter, I have attempted the following...
In the following code, replacing "$GPGGA" with "$GPZDA" yields no result.
Would greatly appreciate assistance with addressing the concern.
address, services = socket.bt_discover()
print "Discovered: %s, %s" % (address, services)
target = (address, services.values())
conn = socket.socket(socket.AF_BT, socket.SOCK_STREAM)
to_gps = conn.makefile("r", 0)
msg = to_gps.readline()
gps_data = msg.split(",")
lat = gps_data
lon = gps_data
print "You are now at latitude %s and longitude %s" % (lat, lon)