Hello and thanks for the great library. Unfortunately I can’t get the EBYTE E220-900T22D module to run. I am using an ESP-32 Dev Kit C V4. I configured the modules using a USB adapter. Both configurations are identical. Unfortunately I am not receiving anything. Below is my code:
#define ENABLE_RSSI true
#include "LoRa_E220.h"
LoRa_E220 e220ttl(&Serial2); // esp32 RX 16 –> e220 TX | esp32 TX 17 –> e220 RX
void setup() {
Serial.begin(115200);
delay(500);
e220ttl.begin();
Serial.println("Hi, I’m going to receive a message!");
ResponseStatus rs = e220ttl.sendMessage("Receiver listening");
Serial.println(rs.getResponseDescription()); // Check If there is some problem of succesfully send
}
void loop() {
// If something available
if (e220ttl.available() > 1) {
// read the String message
#ifdef ENABLE_RSSI
ResponseContainer rc = e220ttl.receiveMessageRSSI();
#else
ResponseContainer rc = e220ttl.receiveMessage();
#endif
// 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);
#ifdef ENABLE_RSSI
Serial.print("RSSI: ");
Serial.println(rc.rssi, DEC);
#endif
}
}
if (Serial.available()) {
String input = Serial.readString();
e220ttl.sendMessage(input);
}
}
Can you help me please? Thanks in advance and best regards.
What I also noticed is that I cannot set a key for either module via the USB adapter. If I enter a value and click on set, I get a success – if I read in the data again, the key entry is 0 again. This happens with both modules. If I change the channel it works without problems. Is that normal? Maybe the modules are broken?
I know this response is very late but in case anyone else runs into this looking for why they cannot read the key. From what I can tell, the system only allows you to set the key. Once the key is set it will return 00 00 for the key if you ask for it. When using the Window Configuration program this does the same thing. So you will “Get params”, and it will say key 0000. You can then set the key, say to 9999, and then it will set the key, but when you run Get Parms again, it will simply say 00 00, so this is expected behavior. However, when using the radios together, if you do not do a set key on both sides, they will not communicate. I am using a USB module SH-L1A from DSD Tech, and I just wanted something quick that I could use to play with LoRa a bit. Now of course I am wishing I had bought something with a MCU and chip so I can use the libs easier, Oh Well, I will write my own, or modify what is out there. 🙂
If you can’t manage the module with a USB adapter and EByte program probably, the devices are broken, but It’s very strange.
Try to wire the AUX pin and check the behavior.
Bye Renzo
If you can’t manage the module with a USB adapter and EByte program probably, the devices are broken, but It’s very strange.
Try to wire the AUX pin and check the behavior.
Bye Renzo
I try to connect E220-900T22D with micro controller but the data is received in module but it is not transmitted to module B. Even I can see data :the output pin in data visualizer .Advance thanks
Hi Aishwarya,
first of all, connect AUX pin to have real feedback.
Then pay attention to the power supply and ensure the wiring of M0 and M1 is correct.
Bye Renzo
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.