xreef / EByte_LoRa_E22_Series_Library

Arduino LoRa EBYTE E22 device library complete and tested with Arduino, esp8266, esp32, STM32 and Raspberry Pi Pico (rp2040 boards).. sx1262/sx1268
Other
104 stars 22 forks source link

How many device can send data a center Simultaneously? #10

Closed fixajteknik closed 2 years ago

fixajteknik commented 2 years ago

When I look at the information sheet of the e22 modules, it says that the buffer length is 1000 bytes and the subpackages of the Lora module can be reduced to 32 bytes. This is how I understand it 1 lora center can receive data from 1000/32 = 31 devices simultaneously. Please correct me if I'm wrong.

image

So, how can I retrieve data from these 30-odd points at the same time without losing data? I saw the following code "e32ttl.receiveMessageUntil();" on your website but I couldn't see the usage example. Can you make an example? In addition, what is the reading speed of Lora modules, that is, how long should the waiting time be between messages from 30 points, ideally.

xreef commented 2 years ago

Hi @fixajteknik, Your numbers are correct, the E22 has a buffer that can contain 1000byte if you don't read the data. You can find some information about receive message until in this topic post https://www.mischianti.org/forums/topic/e32-900t20d-communication/#post-14357 .

But you can get the same result with structure, you can read partial structure to understand message type and then read the other. readMessageUntil It's only for string or similar. You can get some other information in this topic post https://www.mischianti.org/forums/topic/data-structure-lost/ .

Bye Renzo