Hi Renzo, first of all, thank you for the great libraries. I tried to replace the E32 module with the E220 module in the LoRa-Reffil-And-Waterlevel project. Everything worked fine with the E32-900t30D module. After replacing it with the E220-900t22D module and modifying part of the code (configuration, configuration output…), the server starts without problems, but when the “Start pump” command is executed, the library returns the error “Timeout!!”. I couldn’t get the client to start, as there was a cyclic restart (rst cause:2, boot mode:(3,5)). Initially, I suspected a power circuit issue, but after measuring with an oscilloscope, I found that the voltage was stable (I used an LM1084 regulator). Then I tried to measure the values on each port. Ports M0 and M1 were fine. After measuring AUX, I found some glitches (oscilloscope outputs are attached). I managed to get the client to work with the E220 module only by “forcing” it 🙂 I connected the module after booting the Wemos D1. Interestingly, everything works fine with the E32 module, but there are problems with the E220 module. Can you think of any reason for these issues? Thank you!
Hi Dusan,
It’s very strange, but sometimes I get an error that I resolved with the use of the reduction of pull-up resistor on M0 and M1.
When M0 went HIGH also the M1 went HIGH.
With only this information I don’t have any additional ideas.
but the problem is very strange and I also like to know the reason.
Bye Renzo
Hello Renzo, the cyclic restarting issue was solved by adding delay(4000) at the beginning of the setup sequence. During my attempts, I found out that ESP8266 won’t boot when pin D5 is in a low state at the moment of the setup procedure. The difference in behavior between E32 and E220 modules is probably caused by different booting speeds or perhaps different hardware designs.I haven’t been able to solve the Timeout!! error on the server side yet…. This error is interesting because the module sends out WOR and data (attachment from SDR) and data from client are received. 🤔 Have a nice day!
Hi Renzo, today I was trying to solve the problem with the Timeout error!! I managed to fix the error in the code // wait until aux pin goes back low
Status res = this->waitCompleteResponse(2000);
if (res == E220_SUCCESS) {
this->mode = mode;
}
return res;
} in the cpp file. By changing the value from 1000 to 2000 and changing WOR to the value WOR_1000_001. I wasn’t able to find the correct value for WOR_2000_011. At the same time, I confirmed that the cyclic restarting of ESP8266 is indeed caused by the library. :/ If the value of waitCompleteResponse() was too high, the ESP8266 would cyclically restart. I’m not a good programmer, so I have no idea how to fix this error. Have a nice day.
I had loop reset (Watchdog triggering) issues with the NodeMCU (esp8266) when sending a message with the LoRa_E220::sendMessage function. The message was sent, but the last character of the String was truncated. Then the ESP8266 restarted because of the Watchdog.
Found out this was caused by not connecting the AUX pin to a GPIO. After connecting AUX from E220, ESP8266 stopped resetting.
My current builder setup:
#include <SoftwareSerial.h>
SoftwareSerial mySerial(D5, D6); // Arduino RX <-- e220 TX, Arduino TX --> e220 RX
//LoRa_E220 e220ttl(&mySerial, D0); // AUX M0 M1 . // Se não incluir o AUX no MCU, provoca WatchDOG.
LoRa_E220 e220ttl(&mySerial, D0, D7, D8); // AUX M0 M1 . // Se não incluir o AUX no MCU, provoca WatchDOG
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.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.
Functional
Always active
The technical storage or access is strictly necessary for the legitimate purpose of enabling the use of a specific service explicitly requested by the subscriber or user, or for the sole purpose of carrying out the transmission of a communication over an electronic communications network.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
The technical storage or access that is used exclusively for statistical purposes.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
The technical storage or access is required to create user profiles to send advertising, or to track the user on a website or across several websites for similar marketing purposes.