I am trying to make a simple communication (send a string) between the two modules cited in the topic title. However, unfortunately, I can’t seem to make it work.
I am using two Arduino UNOs powered by a laptop USB. Both antennas are < 30cm apart and well suited for 915MHz. My connections are the same cited here: circuit for both modules. However, i didn’t have 4.7k resistors, so i used 10k resistors for pullup
When fetching the configuration (using the example code) of the 22D module (connecting M1 and M0 to 3.3) I get:
I get the same thing for the 30D module as well (only “Features” is different)
Once i put M1 and M0 on both modules to GND again (Normal mode), I try to use the example code “02_sendTransparentTransmission”, but separating transmission and reception so that i can use one module for transmitting and the other for receiveing. One of them is just receiving with:
// If something available
if (e220ttl.available()>1) {
Serial.println("[*] Message received")
// read the String message
ResponseContainer rc = e220ttl.receiveMessage();
// Is something goes wrong print error
if (rc.status.code!=1){
Serial.println(rc.status.getResponseDescription());
}else{
// Print the data received
Serial.println(rc.status.getResponseDescription());
Serial.println(rc.data);
}
}
My problem is that I can’t see the received messages on the receiver (It seems that e220ttl.available() is never > 1, because nothing gets printed on Serial). However, the transmitter side always return Success on rs.getResponseDescription();
I’ve been working on this for almost a week and tried so many things, but nothing works! Do you know what could be happening?
Thanks in advance.
If all connections are ok, the only problem that can generate that behavior is insufficient to power to the device.
Use an external power supply.
Bye Renzo
One thing that came to mind now, the datasheet (page 16) states that the default frequency is 873.125MHz, but my antenna is suited for 915MHz. If i put a #define FREQUENCY_915 on my code, will it change the LoRa module frequency to 915MHz, or do i need to do something else when setting the configuration?
I have the same problem. I can read the configuration using example code, but when I send a string between the two modules, I can’t seem to make it work.
I’m using two E220 900T22D connected to two ESP32 modules with 868MHz frequency.
Any luck Zac or others?
I think I am seeing the same issue (D1 &E220T22D, standard test code, sender gives no error, but nothing come to the receiver).. Only change is I had to connect AUX (to D5) to avoid timeouts…
But one more thing to add: after testing many things, I ended up disconnecting the E220 and running the code on the standalone D1.. funny thing is I still get success response on begin()!!! With no E220 module!
Text typed on the terminal also behaves as it was sent with no error reported…
How can that be?.. Seems the library is interpreting no response as success?
Any ideas?
Tks in advance,
ET
EDIT:
Fond my dumb issue: had wrong connections for Tx/Rx… All working now.
Still, cannot understand why the standalone ESP would still get success results from initializing and writing to a non-existing E220 module… seems odd.
On to test your seemly wonderful library…Thanks.
ET
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.