Home › Forums › The libraries hosted on the site › EByte LoRa e32 UART devices sx1262/sx1268 › Mega 2560 e32 EByte frozen in example sendReceiveTransparentTransmissionMessage › Reply To: Mega 2560 e32 EByte frozen in example sendReceiveTransparentTransmissionMessage
I check with my Arduino Mega, and my error is that I don’t use a correct RX pin as Arduino guide describe.
https://www.arduino.cc/en/Reference/softwareSerial
Not all pins on the Mega and Mega 2560 support change interrupts, so only the following can be used for RX: 10, 11, 12, 13, 14, 15, 50, 51, 52, 53, A8 (62), A9 (63), A10 (64), A11 (65), A12 (66), A13 (67), A14 (68), A15 (69).
Now I can send without problem and receive without problem on my Mega without any freeze.
I use this configuration
SoftwareSerial mySerial(11, 5);
LoRa_E32 e32ttl100(&mySerial, 3, 7, 6);
Now work correctly.
Please update the libray, uncomment
#define LoRa_E32_DEBUG
And send me your log, I try to understand.
If you want to use HardwareSerial you must do like so
LoRa_E32 e32ttl100(&Serial2, 3, 7, 6);
Bye Renzo