Giter VIP home page Giter VIP logo

ttgo_t-beam_gps-reset's Introduction

TTGO_T-beam_GPS-reset

Reset U-blox NEO GPS devices on TTGO T-beam T22- V1.0 and 1.1 to bring back NMEA output on GPS serial line.

Original sketch by LilyGO https://github.com/LilyGO/TTGO-T-Beam/tree/master/GPS-T22_v1.0-20190612

Modified by ErikThevking on August 25, 2020. Updated on August 27, 2020.

Purpose: The sketch T22-GPS-reset-v3 will bring back U-blox GPS N6M & N8M NMEA 9600 baud serial on TTGO T-beam T22- V1.0 and 1.1 and also on 0.7 T-beams (uncomment yours). In case you're having trouble because your T-beam's GPS doesn't show NMEA output anymore, you should first try this v3 sketch, which is not restoring factory settings. Normally this is sufficient to bring your NMEA output back on serial.

Thanks to Kizniche for his advice on kizniche/ttgo-tbeam-ttn-tracker#20

In case you still don't get your NMEA back, you might need something more drastic, like sketch T22-GPS-restoreFactory-v2. This will reset U-blox NEO GPS devices on TTGO T-beam T22- V1.0 and 1.1. It will bring back U-blox GPS N6M & N8M factory settings so that NMEA 9600 over the GPS serial output is enabled.

Based on SparkFun's Ublox Arduino Library and examples https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library where you can download the necessary SparkFun library.

ttgo_t-beam_gps-reset's People

Contributors

erikthev-king avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

ttgo_t-beam_gps-reset's Issues

Use with TTGO_T-beam T22 Rev1.1 20210222

I am trying to use T22-GPS-reset-v3 and T22-GPS-restoreFactory-v2 with LilyGO/TTGO-T-Beam T22 Rev1.1 20210222.
Actually, I would like to use the code just to enable/disable certain NMEA messages.
But it does not go over this line
if (myGPS.begin(SerialGPS)) {
means it does not print the following serial console message
Serial.println("Connected to GPS");
I get only these:
Connected to Serial
AXP192 Begin PASS
All comms started
Seems it does not get response from myGPS.begin(SerialGPS) function.
It seems to me GPS_RX_PIN and GPS_TX_PIN have not changed as some other Arduino sketches I tried using Neo6M GPS module work fine with this board.
I am using SparkFun_Ublox_Arduino_Library v 1.8.11.

I am new to this board, do not have any ideas what I could try.

Getting Meditation Error or stopping at myGPS.begin()

If I try to execute your code it stops at myGPS.begin() for T22-GPS-reset-v3 and T22-GPS-restoreFactory-v2 and getting error as bellow for GPS-T22_v1.0-20190612_v1.1-20191212-resetGPS

Rebooting...
ets Jul 29 2019 12:21:46

rst:0xc (SW_CPU_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:1
load:0x3fff0030,len:1184
load:0x40078000,len:13160
load:0x40080400,len:3036
entry 0x400805e4
AXP192 Begin PASS
All comms started
===== STATE 0
GPS: trying 38400 baud
GPS: trying 9600 baud
GPS: connected at 9600 baud, switching to 38400
GPS: trying 38400 baud
GPS serial connected, saved config
Latitude : 0.00000
Longitude : 0.0000
Satellites: 0
Altitude : 0.00M
Time : 0:0:0
Speed : 0.00


===== STATE 1
Issuing hardReset (cold start)
Success.
Latitude : 0.00000
Longitude : 0.0000
Satellites: 0
Altitude : 0.00M
Time : 0:0:0
Speed : 0.00


===== STATE 2
Issuing factoryReset
Success.
Latitude : 0.00000
Longitude : 0.0000
Satellites: 0
Altitude : 0.00M
Time : 0:0:0
Speed : 0.00


===== STATE 3
GPS protocol version: Guru Meditation Error: Core 1 panic'ed (LoadStoreError). Exception was unhandled.

Core 1 register dump:
PC : 0x400d3dd7 PS : 0x00060c30 A0 : 0x800d3e89 A1 : 0x3ffb27a0
A2 : 0x3ffc1154 A3 : 0xc003ec57 A4 : 0x0000000a A5 : 0x00000000
A6 : 0x000000aa A7 : 0x00000000 A8 : 0x0003ec4c A9 : 0x40000013
A10 : 0x00000050 A11 : 0x00000052 A12 : 0x000000cc A13 : 0x0000000b
A14 : 0x0000000a A15 : 0xff000000 SAR : 0x0000000a EXCCAUSE: 0x00000003
EXCVADDR: 0x40000013 LBEG : 0x40086000 LEND : 0x4008600a LCOUNT : 0x00000000

Backtrace:0x400d3dd4:0x3ffb27a00x400d3e86:0x3ffb27c0 0x400d186e:0x3ffb27e0 0x400d55b5:0x3ffb2820

ELF file SHA256: 0000000000000000

what does it means?

After running GPS-T22_v1.0-20190612_v1.1-20191212-resetGPS on TTGO T-BEAM v.1.0 20190612 ==> axp192 not detected anymore on I2C bus

I am using a TTGO T-BEAM v.1.0 2019612 , suddenly my GPS stopped working.
I applied GPS-T22_v1.0-20190612_v1.1-20191212-resetGPS and using the serial monitor I saw it was in an endless loop.

Removed power sources from the T-BEAM and after that any program I use does not manage to communicate with the axp

Example code used:
Wire.begin(i2c_sda, i2c_scl);
int ret = axp.begin(Wire, AXP192_SLAVE_ADDRESS);
f (ret == AXP_FAIL) {
Serial.println("AXP Power begin failed");
while (1);
}

I do get the message "AXP Power begin failed" and then gets in the endless loop !

Any ideas?

Everyting was working fine before and have not touched or soldered anything on the board.

How to

Sorry to be a butt, but I'm semi knowledgeable with this stuff, but I really struggled through getting everything ready for Arudino IDE to detect and flash this, a how to would be really nice to see.

Thanks!

Panic at State 3

The sketch isnt running on our devices. I'm seeing a panic at State 3:

GPS protocol version: Guru Meditation Error: Core  1 panic'ed (LoadStoreError). Exception was unhandled.
Core 1 register dump:
11:59:09.450 -> PC      : 0x400d2d24  PS      : 0x00060530  A0      : 0x800d2dd5  A1      : 0x3ffb1f30  
11:59:09.450 -> A2      : 0x3ffc0120  A3      : 0xc003fd53  A4      : 0x0000000a  A5      : 0x00000022  
11:59:09.450 -> A6      : 0x0000000c  A7      : 0x00000004  A8      : 0x40000015  A9      : 0x0003fd4a  
11:59:09.450 -> A10     : 0x00000050  A11     : 0x00000052  A12     : 0x000000fe  A13     : 0x0000000b  
11:59:09.450 -> A14     : 0x3ffc0220  A15     : 0xff000000  SAR     : 0x0000000a  EXCCAUSE: 0x00000003  
11:59:09.450 -> EXCVADDR: 0x40000015  LBEG    : 0x4000c28c  LEND    : 0x4000c296  LCOUNT  : 0x00000000  

Maybe something to do with the Ublox library but thought I'd post in case anyone has suggestions.
T-Beam V1.1 20201212

stuck at STATE 0

Running your sketch in VS Code. All libs in place, no build errors. Execution stops at STATE 0:

rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:8896
load:0x40080400,len:5828
entry 0x400806ac
Connected to Serial
AXP192 Begin PASS
All comms started

===== STATE 0

Any ideas?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.