Firstly thank you for all your work putting this library together.
I have just ordered two E32 modules, however I am unable to compile the example sketches for the ESP32 Dev V1, I get the error ‘SoftwareSerial.h no such file or directory’, however I am able to compile for Arduino boards.
I have been experimenting with your library, I have a question about ‘Get configuration’.
I am using an E32-868T30D with ESP32 Devkit, constructor
LoRa_E32 e32ttl100(&Serial2, 15, 21, 19); // RX AUX M0 M
In the documentation you say “To get the correct information I add some #define to change the device type (same #define manage more other device, I create only one for type for simplicity).”
So for my modules it would be #define E32_TTL_1W and #define FREQUENCY_868.
Where do I define the device and frequency? I have tried at the beginning of the Get Configuration code but I still get the output for 433MHz module. I’m sure I am making a mistake.
sendReceiveTransparentTransmissionMessage:30:24: error: invalid conversion from ‘int’ to ‘HardwareSerial*’ [-fpermissive]
LoRa_E32 e32ttl100(2, 3); // Config without connect AUX and M0 M1
^
In file included from D:\Users\user\Documents\Arduino\libraries\LoRa_E32\examples\sendReceiveTransparentTransmissionMessage\sendReceiveTransparentTransmissionMessage.ino:17:0:
D:\Users\user\Documents\Arduino\libraries\LoRa_E32/LoRa_E32.h:192:3: note: initializing argument 1 of ‘LoRa_E32::LoRa_E32(HardwareSerial*, byte, UART_BPS_RATE)’
LoRa_E32(HardwareSerial* serial, byte auxPin, UART_BPS_RATE bpsRate = UART_BPS_RATE_9600);
^
exit status 1
invalid conversion from ‘int’ to ‘HardwareSerial*’ [-fpermissive]
This report would have more information with
“Show verbose output during compilation”
option enabled in File -> Preferences.
Thanks for your response. I can compile when I use hardware serial &Serial1, &Serial2 and &Serial3. A bit confuse since normally we note Serial0 (U0RX, U0TX), Serial1 (U1RX, U1TX) and Serial2 (U2RX, U2TX). Another thing is how to configure if I want to used GPIO12 for RX and GPIO13 for TX (thru SoftwareSerial I guess).
I use U0RXD and U0TXD on ESP32-CAM as serial channel. GPIO15 as AUX. I want to use GPIO12 & 13 as M0 and M1 respectively. Both this GPIOs already pulled to high using 47K resistor. Will it affect the communication with LoRa? Does I have to set them as Output or not?
I found that one of M1 or M0 make the system unstable when connected. Not sure why only one. Maybe can try to connect thru transistor.
I found that even thou M0 and M1 not connected (or they are tied to GND or 3V3) changing parameters like address and channel still successful. Now I wonder whats the function of M0 and M1? I guess we have to set both to HIGH (mode 3) in order to program it.
Hi Asmi,
try to remove the resistor, or change the value of these.
M0 and M1 are connected together with a little resistor, so if pull-up are too hight ot too low the device doesn’t go low or hight.
Bye Renzo
The soldered 47K resistor is so small. Not sure which one. No label and no schematic. Maybe need to use magnifying glass.
Using the above-mentioned configuration setting by Mischianti, I found that AUX pin is a must in order to make the configuration read give status of 1. Otherwise status number 12 is given, regardless of M1 and M0 connection. So I think M1 and M0 only function to set in which mode it should be. Any comment?
Oh.. I didn’t add any additional resistors. The 47k resistor already on the esp32-cam board. 47k connected to pin gpio12, 13 and 15 which i use to connect to m0, m1 and aux. anyway, i will try to connect other free pin..
Maintaining a repository (or site or forum) is a lot like tending to a garden - it requires constant care and attention to keep it thriving. If you're a skilled gardener (or coder!) and want to help keep our repository blooming, we'd love to have you on board! We're also looking for talented writers and forum moderators to help us grow our community. Interested in joining our team? Don't hesitate to reach out and let us know how you can contribute!
Are you a fan of electronics or programming? Share your knowledge with others, write a simple tutorial or how to make a great project Contact me: share_your_ideas@mischianti.org
The content displayed on this website is protected under a CC BY-NC-ND license. Visitors are prohibited from using, redistributing, or altering any content from this website for commercial purposes, including generating revenue through advertising. Any unauthorized use is a violation of the license terms and legal action may be taken against individuals or entities found to be in violation.
You must also provide the link to the source.