RAK11300 Arduino COM port problem!

When using examples (WisBlock/examples/RAK11300/communications/LoRa/LoRaWAN/LoRaWAN_OTAA_ABP at master · RAKWireless/WisBlock · GitHub), we observe a problem with the Com port. When the COM port is opened, the next time it is sent, WisBlock stops working, packets are not sent. Only reboot helps.
If you do not open the COM port, then everything works ok, the packets are sent normally.

perhaps this is due to the update of all examples after the problem with the timer was resolved

After “Sending frame now…” everything stops working

Hi @mykhalych90

Can you try to remove the Serial.println() from void tx_lora_periodic_handler(void) and try?

void tx_lora_periodic_handler(void)
{
	appTimer.attach(tx_lora_periodic_handler, (std::chrono::microseconds)(LORAWAN_APP_INTERVAL * 1000));
	// Serial.println("Sending frame now...");
	// This is a timer interrupt, do not do lengthy things here. Signal the loop() instead
	send_now = true;
}

Seems the use of Serial in the timer interrupt is causing the problem.

yes, that was probably the problem.
commented out the line - checked, everything works ok
Thanks

Sorry for that. I already updated the code in Github.

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.