Forum Replies Created
-
AuthorPosts
-
Hi,
I use this device
https://s.click.aliexpress.com/e/_A4tZaa
with the specified program for e32
https://www.ebyte.com/en/pdf-down.aspx?id=199
Bye RenzoHi,
I think the better solution is to reset all device with the original software and adaptor.
Sometime when this device not wor tha software is the solution.
Bye RenzoHi,
No no, not remove the resistor of the e32, only the 2 added by you.
And yes M0 and M1 are used to switch modalityEbyte LoRa E32 device for Arduino, esp32 or esp8266: configuration – Part 3
Bye Renzo
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 RenzoHi,
try to remove the resistor, some device have some different setting.
If problem continue try to change the e32 and execute the same code per try to reset with the EByte usb board.
Bye RenzoHi,
ok, perfect.
So if your device was resetting every 15 days there isn’t a problem of EMailSender.
Probably you have a little memory leak that eat a minimal quantity of ram.
The execution of this function use the same quantity of memory, and when the function end free all memory of the function scope.
But, if the main scope increase day by day the memory usage in the long term the device reset at the execution of the function.
Bye RenzoHi jorge,
first try to get config to check if it’s all ok.
If all ok retry in trasparent transmission.
Then set configuration with save.
And now resend the message.
If not work try to change pull_up resistot.
Bye RenzoHi Asmi,
if you use standard Serial to comunicate you must configure the E32 like so:// ---------- esp32 pins -------------- LoRa_E32 e32ttl(&Serial, 15, 12, 13); // RX AUX M0 M1
and after you must test if the pull-up resistor create problems.
You can take every examples on library, you must only change the constructor.
Bye Renzo
Hi jetronic,
under my roof I have only the power from solar inverter, so if no sun no power, and I add an UPS to the device so the server It’s always online, and I prevent power noise.The system work without that also, you must only remove the battery shield.
Bye Renzo
Hi Gilles,
sending email need a good quantity of ram, so if you have a memory leack in some part of your code, It’s possible that when EMailSender request It’s quote of memory the microcontroller reboot.A good practique is to separate all the functionality in function with a specified scope, so qhen function finish you free all memory.
Bye Renzo
Hi,
you can refer this article to learn all the constructorsEbyte LoRa E32 device for Arduino, esp32 or esp8266: library – Part 2
The second constructor is what you need. SoftwareSerial is not needed for esp32.
LoRa_E32(byte txE32pin, byte rxE32pin, HardwareSerial* serial, UART_BPS_RATE bpsRate = UART_BPS_RATE_9600, uint32_t serialConfig = SERIAL_8N1); LoRa_E32(byte txE32pin, byte rxE32pin, HardwareSerial* serial, byte auxPin, UART_BPS_RATE bpsRate = UART_BPS_RATE_9600, uint32_t serialConfig = SERIAL_8N1); LoRa_E32(byte txE32pin, byte rxE32pin, HardwareSerial* serial, byte auxPin, byte m0Pin, byte m1Pin, UART_BPS_RATE bpsRate = UART_BPS_RATE_9600, uint32_t serialConfig = SERIAL_8N1); Breaking change on esp32 constructor
Bye Renzo
Hi Sailorman,
thanks to you for your feedback, I’m going to incorporate the features, so other can use It.
If you want write an article about your project we are happy to publish It.
Bye RenzoHi Asmi,
you select Arduino conf for esp32.Please check the tutorial.
Ebyte LoRa E32 device for Arduino, esp32 or esp8266: WOR (wake on radio) and new ESP32 shield – 8
Bye Renzo
Hi FehnrirX,
the problem is that you send onnly one file but specify 2 as filenumber on this lineEMailSender::Attachments attachs = {2, fileDescriptor};
you must change in
EMailSender::Attachments attachs = {1, fileDescriptor};
Bye Renzo
Hi Saillu,
if you find artifact on image, I think the problem is the file sended, because I don’t apply any type of manipulation withfileDescriptor[0].contentTransferEncoding = "base64";
I add only header that specify that the file is in base64 to the receiver.
Can you attach the complete code?
Bye Renzo
-
AuthorPosts