Skip to main content
Cyada.1
Associate
September 28, 2020
Question

Lora SX1262 Tx Timeout

  • September 28, 2020
  • 8 replies
  • 9870 views

I have connected a Nicerf SX1262 us915 lora module with the STM32L496RG MCU. Lora module has DIO1 and Busy pins for tx and rx confirmation(data send and receive ).

I'm using STM32CubeExpansion_LRWAN_V1.3.1 library and i have used sx1262 example which is sx1262dvk1das. This code is properly working and its generate also interrupt on dio1 and busy pins at exact time but its occurs tx timeout or give on serial port window txtimout. I also get proper data on my gateway and server which is on ttn.

I dont know where is the problem. Interrupt fired on proper time. I checked all physical connections which is properly connected. I'm sharing my serial window data. where 64 is dio1 pin interrupt. 0693W000004Hvo3QAC.jpg

8 replies

SHATE.1
Associate III
December 8, 2020

Hello

i use in a custom board a DORJI DRF1262T module that contain the sx1262.

i use also the i-cube-lrwan package and the sx12621das projet.

i have the same problem than you and i have the PHY txTimeout directly after the AppKey and everything is stopped. i join a file with the point where the program is bloqued!! the PHY txTimeout is acquired after 4s112ms of the run. in the file there's a bigger value because i made step by step execution to see where the program bloc!!

it's not a hardware problem because i used the ping pong program provided by dorji and the board communicate well with other bord so lora operate well.

But i think that's a problem of lorawan protocole and that the DIO1 interruption is not handled ( i read this on the net) but i don't know how arrange this problem!!! i'm an electronic engineer and a biginner on soft development!!

So please did you already find solution for your problem? if yes can you please share it ? it will help me a lot

Thank you and for everybody who can help

Best regards

Tesla DeLorean
Guru
December 8, 2020

Not sure why the TX would timeout unless the packet size and data rate (spread, bw, etc) completely underestimated the time-on-air, or the packet dispatch/buffering didn't actually succeed properly.

Might look at the dwell times for the SPI CS, and the slew rates on the SPI interface pins.

You're going to have to unpack what state the SX1262 is in, and flow/sequence of data into it.

The DIO interrupts should come in via EXTI configuration of the GPIO pins, and it should be reasonably easy to track those, or reflect state to another observable GPIO pin, or scope.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
SHATE.1
Associate III
December 8, 2020

Thank you clive1 for your quick answer

i don't know why you say that there's a disproportion in the data parameter and the time on air!!! how can i verify this?

When i see SPI signal and CS and DIO1 interruption, it seem correct.

Please see the DIO1_INTERRUPT and CS_PIN file.

yelow trace : SPI SCLK

Green trace : SPI MOSI

Blue trace : SPI MISO

Pink trace : CS or DIO1 depending the name of the file

I think it's a problem of the interrupt handling, problem of callback or something like that ( i already readed this on the net : https://github.com/Lora-net/LoRaMac-node/issues/806 ).

Can you tell me please what do you think and what's the solution?

Thank you in advance

SHATE.1
Associate III
December 8, 2020

here is the DIO1_INTERRUPT file

Thank you

SHATE.1
Associate III
December 8, 2020

I changed the compiler optimisation but without effect always PHY txTimeout

i don't know what i can do!!!! i use the i-cube-lrwan package!! normally it could work!!

Tesla DeLorean
Guru
December 9, 2020

I suppose we'd focus on what is different at an implementational level between instances that work, and those which don't

Let's start by enumerating the pin choices made on this "custom" board that make it different from the others.

For example consider if your EXTI pins clash.

What have you done to inspect the state in the radio under these conditions? Did it attempt to send the data you're trying to send?

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
MViei.1
Associate
June 9, 2022

i have the exact same issue? where you able to resolve it?

Tesla DeLorean
Guru
June 9, 2022

Thought you had an SX1276 based design, not an SX1262 one

PHY TxTimeout w/STM32CubeExpansion_LRWAN_V1.3.1

Did you figure out what register settings were different?

https://community.st.com/s/question/0D53W00001bIKVaSAO/lorawan-bad-uplink-signal

Most of the LRWAN software expects specific modules, when you start building for different ones, you need to make sure all of the pins/usage relationships are correctly handled and mapped to your target hardware.

Tips, Buy me a coffee, or three.. PayPal VenmoUp vote any posts that you find helpful, it shows what's working..
MViei.1
Associate
June 10, 2022

My custom board supports both RFM95 and SX1262. I was hoping that at least one of the two works out of the box with icube lorawan.

I dont have a logic analyzer here, so i will continue the tests with the RFM95 next week and post updates in my thread.

Here I'm using a "core SX1262" module which is the SX1262 with an RF-Switch. I got that part figured out.

0693W00000NrcWxQAJ.png 

Here i see that the chip is working, i get the Join requests on the Gateway with very good rssi. The problem is that on the firmware side i always get a "TxTimeout", which is connected to the event of the GPIO1. I see that the pin goes up as soon as the transmission is over, but the IRQ is never triggered.

Associate II
May 6, 2024

 

 

Visitor II
May 8, 2025

Hi everyone! Have anyone of you find the solution? I have the tx timeout too.