I am developing a LoRa based p2p remote controller on PlatformIO environment. I am not using any lorawan features or libraries but controlling the radio directly. Currently I have two HTCC-AB02 development modules, one that works perfectly with my sw and the other one that does not send anything, only Tx Timeout error occurs. Exactly the samy binary is uploaded to both modules.
I have defined callbacks like
RadioEvents.TxDone = OnTxDone;
RadioEvents.TxTimeout = OnTxTimeout;
Sending is done simply like
packetSent = false; // flag is set to true in OnTxDone() and OnTxTimeout()
Radio.Send(bufPayload, (uint8_t)LORA_PAYLOAD_LEN);
Radio.IrqProcess();
while(!packetSent) {
Radio.IrqProcess();
}
TxTimeout is defined to be 3000 ms. If have some debug prinouts in callback functions and one of the modules works as supposed to work but the other one prints only debug messages “Tx Timeout” meaning that tx timeout occurs every time Radio.Send() is called.
DO I have a faulty hw or what is going on? I am pretty sure that my sw is ok while the other module works without any problem. I hope this is not very common problem with ASR6502 while I have already ordered quite many HTCC-AM02 modules to be installed on my own pcb’s…