lnlp / LMIC-node

LMIC-node | One example to rule them all. LMIC-node is an example LoRaWAN application for a node that can be used with The Things Network. It demonstrates how to send uplink messages, how to receive downlink messages, how to implement a downlink command and it provides useful status information. With LMIC-node it is easy to get a working node quickly up and running. LMIC-node supports many popular (LoRa) development boards out of the box. It uses the Arduino framework, the LMIC LoRaWAN library and PlatformIO.
MIT License
223 stars 102 forks source link

TTGO LoRa32 V1.0 #27

Closed kskenyon closed 2 years ago

kskenyon commented 2 years ago

My board does have an onboard blue led at pin 2. I had to add rst (pin 16) to the display call to get it to work.

Nice app overall.

K

lnlp commented 2 years ago

Thanks.

Do you know the exact version of your TTGO LoRa32? Can you provide a picuture of the top and bottom PCB sides?

I don't have any of the TTGO LoRa32 v1.x boards and therefore have to rely on LilyGo's documentation. Unfortunately their versioning is unclear (sucks) and their documentation is poor and unreliable.

The TTGO LoRa32 v1.3 schematic diagram does not show a LED nor seems the display's reset connected to a GPIO pin. Is it possible that you have an older version than v1.3? (With the v1.3 board the vesion is printed on the bottom side).

If you have an older version I could add an additional board definition to LMIC-node for older (pre-v1.3) TTGO LoRa 32 v1.x boards and add the display reset and LED pin definitions.

kskenyon commented 2 years ago

Thanks for getting back to me. It doesn’t sound like I have a v1.3 version. The blue LED is on. For some reason it works the opposite of the transmit flag. I tried some different code in LMIC-node to get it to work properly but I wasn’t successful. Weird.

Mine is 2 or 3 years old. The display is pooping out as you can see. No indication of version. Here is the pin-out diagram that matches it.

On Jan 31, 2022, at 6:53 AM, Leonel Lopes Parente @.***> wrote:

Thanks.

Do you know the exact version of your TTGO LoRa32? Can you provide a picture of the top and bottom sides?

I don't have any of the TTGO LoRa32 v1.x boards myself and therefore have to rely on LilyGo's documentation. Unfortunately their versioning is unclear (sucks) and documentation is poor and unreliable.

The TTGO LoRa32 v1.3 schematic diagram does not show a LED nor seems the display's reset to be connected to a GPIO pin. Is it possible that you have an older version than v1.3? (With the v1.3 board the vesion in printed on PCB bottom side).

If you have an older version I could add an additional board definition to LMIC-node for older (pre-v1.3) TTGO LoRa 32 v1.x boards and add the proper display reset and LED pin definitions.

— Reply to this email directly, view it on GitHub https://github.com/lnlp/LMIC-node/issues/27#issuecomment-1025659468, or unsubscribe https://github.com/notifications/unsubscribe-auth/AF4WTTASMSILTDD7HUZBJNLUYZZ3FANCNFSM5M3NQ7ZA. You are receiving this because you authored the thread.

lnlp commented 2 years ago

The display is pooping out as you can see. No indication of version. Here is the pin-out diagram that matches it.

There's nothing to see here. It looks like you forgot to attach the images.

kskenyon commented 2 years ago

They were attached to the return email.

Fatfingered from my iPhone

On Feb 14, 2022, at 11:31 AM, Leonel Lopes Parente @.***> wrote:

 The display is pooping out as you can see. No indication of version. Here is the pin-out diagram that matches it.

There's nothing to see. It looks like you forgot to attach the images.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

kskenyon commented 2 years ago

Maybe too big for GitHub.

Fatfingered from my iPhone

On Feb 14, 2022, at 11:31 AM, Leonel Lopes Parente @.***> wrote:

 The display is pooping out as you can see. No indication of version. Here is the pin-out diagram that matches it.

There's nothing to see. It looks like you forgot to attach the images.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

lnlp commented 2 years ago

You can add them in the regular way via the GitHub site (or possibly via the GitHub app). If too big please resize them.

kskenyon commented 2 years ago

image image image

lnlp commented 2 years ago

Thanks for adding the pictures.

Your board looks like the predecessor of TTGO LoRa32 v1.3 as shown (called V1) here: Big ESP32 topic

Let's call that version v1.0, because version information about pre-v1.3 boards is not available from LilyGO. I can add a separate board definition for v1.0 version (in addition to the v1.3 version) to LMIC-node.

It doesn’t sound like I have a v1.3 version. The blue LED is on. For some reason it works the opposite of the transmit flag.

Can you test if the LED on GPIO2 on your board is active-low or active-high?

The following library and example can help with that: EasyLed active-level tester

In the example code, in the lines

EasyLed led(LED_BUILTIN, EasyLed::ActiveLevel::Low, EasyLed::State::Off);  //Use this for an active-low LED
// EasyLed led(LED_BUILTIN, EasyLed::ActiveLevel::High, EasyLed::State::Off);  //Use this for an active-high LED

replace LED_BUILTIN with 2.

kskenyon commented 2 years ago

I’m traveling and won’t be able to do that for a while. I tried it both ways in your code previously and it still worked backward. Didn’t troubleshoot further.

Sent from my iPad

On Feb 24, 2022, at 7:41 AM, Leonel Lopes Parente @.***> wrote:

 Thanks for adding the pictures.

Your board looks like the predecessor of TTGO LoRa32 v1.3 as shown here: Big ESP32 topic

Let's call that version v1.0, because version information about pre-v1.3 boards is not available from LilyGO. I can add a separate board definition for v1.0 version (in addition to the v1.3 version) to LMIC-node.

It doesn’t sound like I have a v1.3 version. The blue LED is on. For some reason it works the opposite of the transmit flag.

Can you test if the LED on GPIO2 on your board is active-low or active-high?

The following library and example can help with that: EasyLed active-level tester

In

EasyLed led(LED_BUILTIN, EasyLed::ActiveLevel::Low, EasyLed::State::Off); //Use this for an active-low LED // EasyLed led(LED_BUILTIN, EasyLed::ActiveLevel::High, EasyLed::State::Off); //Use this for an active-high LED replace LED_BUILTIN with 2.

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

lnlp commented 2 years ago

I would appreciate if you can check it when possible again. Thanks.

lnlp commented 2 years ago

@kskenyon I have created an issue to add support for the TTGO LoRa32 V1.0, see #31.

For this I would like to know if the LED on GPIO2 is active-low or active-high. Hope you can provide that information when possible for you again.

JohnMacrae commented 2 years ago

I have this board. The LED is active-high. The main problem is getting the display to work. V frustrating - I'd appreciate any pointers you have - prepared to get into it but stumped at the moment...

JohnMacrae commented 2 years ago

Rereading the comments above, con confirm that adding RST pin 16 allows display to operate. Will clone and push tomorrow.

lnlp commented 2 years ago

@JohnMacrae Thanks for your feedback!

I will add a separate board definition for TTGO LoRa 32 V1.0 later when I have time.