Rodemfr / MicroNav

A Micronet / NMEA bridge for TTGO T-Beam boards
GNU General Public License v3.0
5 stars 3 forks source link

MicroNav not working on rev. 1.2 of TTGO T-Beam #10

Open frgaude opened 1 year ago

frgaude commented 1 year ago

Hi Rodem,

I recently ordered a TTGO T-Beam v1.1 (to get the same hardware as you) and what I received was a v1.2.

This new revision is currently not working with MicroNav. Error message says it fails to initialize the SX1276.

It seems the one change they did was to replace AXP192 PMU (discontinued) by the new AXP2101 one.

What's new in rev. 1.2 of TTGO T-Beam

Note that the problem could be elsewhere as, strangely enough, I did get the "Data" topic to be displayed on the initial boot, and I was able to scroll though the various pages (Time, Depth, Speed, Wind,) but not able to change the topic (nothing on long press of the power button).

After a reboot, I only got a dark screen and the message that SX1276 failed to init.

I'll investigate further...

Rodemfr commented 1 year ago

SX1276 might be unpowered if Micronav is not initializing AXP2101 properly, explaining initialization failure.

frgaude commented 1 year ago

thanks. I will look into making the APX2101 initialize properly.

frgaude commented 1 year ago

After updating the power management code to support APX2101, things seems to be working ok It is not fully tested as I had no Micronet network to test it on (my Micronet displays are back on the boat) but OLED display, menus & GNSS are working and SX1276 initialization worked. my changes are visible here https://github.com/Rodemfr/MicroNav/compare/main...frgaude:MicroNav:tbeam_v1.2

it's not ready yet for a pull request:

(by the way, a new T-Beam "Supreme" is coming out, with ESP32-S3, AXP2101 PMU, SX1262 radio, U-blox MAX-M10S GNSS, compass, accelerometer & pressure sensor. this will keep us busy :-) Aliexpress)

frgaude commented 1 year ago

I updated the code to the latest XPowersLib. I also got to test that the radio was working OK, it connects it to my Mcronet network.

https://github.com/Rodemfr/MicroNav/compare/main...frgaude:MicroNav:tbeam_v1.2

Rodemfr commented 1 year ago

Excellent, thanks ! It will avoid me buy a 1.2 board. I'm currently lacking time to work on MicroNav since I'm using my spare time to work on my OpenCPN plugin nut I will be back in a few weeks... I will however test this code and merge it this week if I can.