Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant get a GPS Fix #28

Closed
arneschlag opened this issue Oct 3, 2020 · 12 comments
Closed

Cant get a GPS Fix #28

arneschlag opened this issue Oct 3, 2020 · 12 comments

Comments

@arneschlag
Copy link

I have Problems getting a valid GPS Location, I think there is a Problem in the communication between the gps chip and esp.
I am using the T-Beam Board with V1.1, and when running the script the red led next to the GPS module is blinking.
But i cant receive any data over Serial1.

@lewisxhe
Copy link
Contributor

lewisxhe commented Oct 4, 2020

Have you tested it? Can ESP32 and GPS module communicate?

@arneschlag
Copy link
Author

arneschlag commented Oct 4, 2020

Have you tested it? Can ESP32 and GPS module communicate?

Do you have a Idea how could I test it?

@lewisxhe
Copy link
Contributor

lewisxhe commented Oct 6, 2020

Try the following test code, if normal, then the serial port should output GPSinformation

#include <Arduino.h>

#define SerialMon Serial1

// V1.0 version
#define PIN_TX      12
#define PIN_RX      34

bool reply = false;


void setup()
{
    Serial.begin(9600);
    SerialMon.begin(9600, SERIAL_8N1, PIN_RX, PIN_TX);
}

void loop()
{
    if (SerialMon.available()) {
        Serial.write(SerialMon.read());
    }
}

@arneschlag
Copy link
Author

arneschlag commented Oct 6, 2020

With this code only, i cant get a GPS Fix so the Led is not blinking. Is there some code to turn on GPS, or is the GPS Module turned on by default?

Edit: I did get a GPS (led is blinking), but on the serial monitor, as expected, still no output.

@lewisxhe
Copy link
Contributor

lewisxhe commented Oct 8, 2020

Please use the example here to test it again, under normal circumstances, it will output GPS information on the serial port. If the hardware is damaged, no information will be output

https://github.com/Xinyuan-LilyGO/LilyGO-T-Beam/tree/master/examples/gps

@arneschlag
Copy link
Author

arneschlag commented Oct 9, 2020

I tested it, with this script, but only Information is:
ets Jun 8 2016 00:22:57

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:1
load:0x3fff0018,len:4
load:0x3fff001c,len:1216
ho 0 tail 12 room 4
load:0x40078000,len:9720
ho 0 tail 12 room 4
load:0x40080400,len:6352
entry 0x400806b8

No GPS Data, so the Hardware is damaged?

@lewisxhe
Copy link
Contributor

Unfortunately, the communication between other GPS and esp32 is not normal, if you just bought it, you can contact LilyGo sales

@kd8bxp
Copy link

kd8bxp commented Oct 16, 2020

I had a similar problem, the red led would blink, but I was getting no data output. It turns out, the NMEA stream from the device was turned off (how this happened, or why it happened I have no idea). The only library that I found that was able to fix it was the Sparkfun Ublox Arduino library https://github.com/sparkfun/SparkFun_Ublox_Arduino_Library Example 6 and Example 12
I was never able to get the Sparkfun library to give me a location however. But the tinygps++ library was able to display my location, time, how many sats, ect. So between the two I was able to get my GPS units to start to work again.
Hope that helps someone out.

@lyusupov
Copy link

FYI:
Issue report: meshtastic/firmware#334
Workaround: https://github.com/eriktheV-king/TTGO_T-beam_GPS-reset

@lewisxhe
Copy link
Contributor

@arneschlag Have you tried @lyusupov's method? If it is resolved, please let me know.

@arneschlag
Copy link
Author

@arneschlag Have you tried @lyusupov's method? If it is resolved, please let me know.

I tried @lyusupov method and it worked (kind of), i get some data from the gps chip, but until now no coordinates.
In the next following days I will try to get it working, and will updating then this issue.

@FazerTom
Copy link

FazerTom commented Nov 8, 2020

I have made the experience that the original GPS antenna (15mm x 5mm) is very weak in reception. I got a fix only after a very long time with absolutely free view to the sky. So I exchanged the antenna for another one (27mm x 27mm x 6.5mm). Now I also get a fix in the room in shortest time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants