You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all I want to say thanks for providing this easy to use lora library. However, I have noticed an issue where my device is stuck when trying to send lora packet. I have added some extra printf statements in lora_send_packet() function:
void lora_send_packet(uint8_t *buf, int size)
{
/*
* Transfer data to radio.
*/
lora_idle();
lora_write_reg(REG_FIFO_ADDR_PTR, 0);
for (int i = 0; i < size; i++)
lora_write_reg(REG_FIFO, *buf++);
lora_write_reg(REG_PAYLOAD_LENGTH, size);
/*
* Start transmission and wait for conclusion.
*/
printf("Starting transmission \n");
lora_write_reg(REG_OP_MODE, MODE_LONG_RANGE_MODE | MODE_TX);
while ((lora_read_reg(REG_IRQ_FLAGS) & IRQ_TX_DONE_MASK) == 0)
vTaskDelay(2);
lora_write_reg(REG_IRQ_FLAGS, IRQ_TX_DONE_MASK);
printf("Transmission done \n");
}
I have enabled timestamps in the serial terminal (Termite) and as you can see after the device boots up, first transmission is completed 56 seconds after the device start. After that, it transmits periodically after every 10 seconds as it is supposed to.
It almost feels like the LoRa module needs to "warmup" before it can send the message.
Did anyone else had this issue? And could help me figure out what could be the cause?
Its very important to me as I do not want my device to stay on for 56 seconds unnecessary since I am working on battery powered lora device, I need my device to send the message ASAP and go to sleep.
The text was updated successfully, but these errors were encountered:
Hello, first of all I want to say thanks for providing this easy to use lora library. However, I have noticed an issue where my device is stuck when trying to send lora packet. I have added some extra printf statements in lora_send_packet() function:
and from the serial logs I see:
I have enabled timestamps in the serial terminal (Termite) and as you can see after the device boots up, first transmission is completed 56 seconds after the device start. After that, it transmits periodically after every 10 seconds as it is supposed to.
It almost feels like the LoRa module needs to "warmup" before it can send the message.
Did anyone else had this issue? And could help me figure out what could be the cause?
Its very important to me as I do not want my device to stay on for 56 seconds unnecessary since I am working on battery powered lora device, I need my device to send the message ASAP and go to sleep.
The text was updated successfully, but these errors were encountered: