Home › Forums › The libraries hosted on the site › EByte LoRa e32 UART devices sx1262/sx1268 › How to send more than 58bytes of data via the Ebyte E32
Tagged: maximum length 58 bytes
- This topic has 8 replies, 3 voices, and was last updated 2 years, 2 months ago by
Dusan.
-
AuthorPosts
-
-
30 August 2022 at 11:11 #22503
Hi, is there a way to send more than 58bytes of data through an Ebyte LoRa E32 1W module?
-
30 August 2022 at 14:25 #22505
Hi moonman,
you can’t send more than 58byte in a single call, but if you use a structure with some packet instruction, you can manage It via software.struct Packet { byte deviceId; byte msgId; byte[54] rawBinary; bool end; };
with a similar structure, you can identify a sender device and the msgId, and you can rebuild the complete message in the server and use end == true to know if the stream was complete.
Bye Renzo
-
30 August 2022 at 18:35 #22508
Thanks renzo, is there an actual arduino sketch with this example anywhere?
-
30 August 2022 at 20:37 #22509
Hi moonman,
No sorry nothing of that.
Bye Renzo -
31 August 2022 at 11:52 #22533
Hi renzo, this is the code for both the reciever and transmitter can you tell me what exactly is wrong with it, I’m not sure I understood what you meant.
Transimitter – everything is based off of the sendFixedTransmissionStruct
void loop() { delay(2500); struct Message { char deviceId[5] = "TEMP"; char msgId[8] = "Kitchen"; char rawBinary[54] = "text text text text text text text text text text text"; bool end; } message; ResponseStatus rs = e32ttl.sendFixedMessage(0,3,4,&message, sizeof(Message)); Serial.println(rs.getResponseDescription()); }
Reciever
// The loop function is called in an endless loop void loop() { if (e32ttl.available() > 1){ ResponseStructContainer rsc = e32ttl.receiveMessage(sizeof(Message)); struct Message message = *(Message*) rsc.data; while (message.end != true){ Serial.println(message.deviceId); Serial.println(message.msgId); Serial.println(message.rawBinary); } // free(rsc.data); rsc.close(); } }
Thanks
-
11 September 2022 at 11:33 #22842
Hi renzo, is there an example on how to send two different structs?
-
19 September 2022 at 10:58 #22992
By that I mean two or more different 58byte structs.
Thanks moonman
-
28 September 2022 at 13:03 #23105
Hi Renzo, hope I’m not bothering you but can you provide an answer. Not a lot of great resources online.
-
11 March 2023 at 11:01 #24733
With E32-900T30D module, it is not necessary to send messages with a maximum length of 58 bytes in individual packets. The module automatically splits packets when the length exceeds 58 bytes. Maximum possible lenght to send is up to 512 bytes. It is sufficient to change the #define MAX_SIZE_TX_PACKET in the library. Tested and working 🙂 Have a nice day!”
-
-
AuthorPosts
- You must be logged in to reply to this topic.