Driver for NEO6M GPS module
Our new code in OpenBeken allows for other time sources now.
So here's a simple "driver" for the NEOM6 GPS module, in fact its merely a parser for the UART data.
Tested for now with BK7231N, BK7238 (with flag 26 on P0/P1), W800 and ESP8266.
Platforms TX / RX
W800: PB6 / PB7
ESP8266 (TX0 / RX0): IO1 / IO3
BK7231N (TX1/RX1): P11 / P10
BK7238 (TX2/RX2): P0 / P1
(you will need to connect the platforms UART to the modules counterpart: RX->TX and TX->RX)
start with
startDriver NEO6M [setclock] [setlatlong]
the optional arguments will set device time if GPS is synched, in case you enabled ENABLE_TIME_SUNSET_SUNRISE, you can also set latitude and longitude if signal is synched (and values valid).
For now there are also some testing commands "fakelat=xxx" and "fakelobng=yy" in cas you would like to show a screenshot without giving away details of your home. It will "overwrite" the read values with the given part (leaving the rest as originally read.
GPS data read is simply overwritten number by number, and it's representation is
Latitude: ddmm.mmmm 5213.4717 (52 degrees, 13.4717 minutes)
Logitute: dddmm.mmmm 02100.4241 (21 degrees, 00.4241 minutes)
so e.g. fakelat=5213.47 fakelong=02100.0 will set your location "near to Warsaw"