Home › Forums › The libraries hosted on the site › EByte LoRa e22 UART devices sx1262/sx1268 › E22 Wiring and Constructor Validation
Tagged: Communication, DTU, e22
- This topic has 18 replies, 2 voices, and was last updated 3 years, 4 months ago by
Theodoros.
-
AuthorPosts
-
-
2 January 2022 at 21:13 #17638
Hello Renzo
thanks for the great library and the diy projects you host
I have made my custom diy pcb and have trouble speaking to the e22 module.
[Schematic-Lora-Shield-2022-01-01.png](https://postimg.cc/BPvBskYt)
I am using esp32_e22_getConfiguration.ino and the following constructor
LoRa_E22 e22ttl100(&Serial2, 4, 23, 22); // RX AUX M0 M1
is my initialization correct or should I check my module?
grazie
Theodoros
Attachments:
You must be logged in to view attached files. -
2 January 2022 at 22:33 #17646
Hi Theodoros,
It seems all ok; try to put it all on a breadboard and activate the debug.
Which error do you receive?
Bye Renzo -
3 January 2022 at 10:23 #17653
I get a “check wiring” message on terminal.
I will use a simple breadboard to check the module.
Debug mode you mean to put the module M1 high for configuration mode?
Connecting M1 to vcc would be ok?
-
3 January 2022 at 10:41 #17654
Hi,
if you uncomment the debug variable you can get additional info
But I think in your case there is a wiring problem
Try to remove/change the resistor.
What is the exact model you use?-
3 January 2022 at 14:07 #17656
I can’t find any debug variable in the sketch. I think it is enabled.
I have E22-400T30D. I will use a simple breadboard to try to get the parameters.
thanks
-
-
3 January 2022 at 21:31 #17660
Hello Renzo
Using an esp8266 and a breadboard it works just fine to retrieve parameters.
But I have problem with transparent transmission or receiving.
The one module is a dtu-90 and the other is an e22-400t30d.
They have the same settings as per screenshot.
1)Is the E22 transmission power correct? do I need to declare the 1 watt module?
2)Maybe E22 needs more ampere than the esp8266 can deliver so brownout? (but there is a success response when I send message)
3) Maybe modules are too close and the signal is too strong?
Attachments:
You must be logged in to view attached files. -
3 January 2022 at 22:15 #17662
Hi Theo,
I don’t know if e22 and e90 are compatible.You must declare the correct power, but it isn’t that the problem
The 30 need more ampere and it’s better if you use 5v
I test the module in Vero close position without problemBye Renzo
-
3 January 2022 at 22:53 #17664
As you write in another post (http://mischianti.org/forums/topic/e90-dtu-400sl22p/)
E90-DTU+ SL+xxx use E22 modules inside. so E90-DTU+SL can work E22-T modules if their frequency is same(433/915)
My modules are E90-DTU-400SL37 and E22-400T-30D so they must communicate if the parameters are the same.
Receiving to the esp8266 should have worked because it needs minimal power (but it doesnt)
How can I declare the correct module in the sketch?
Grazie mille 🙂
-
-
3 January 2022 at 23:13 #17666
Ahh! Yes ok I didn’t remember that.
To set correct power you must add the define, you can refer to this paragraph.
But I think that the problem isn’t that.
For debug uncomment the define in LoRa_E22.h file, but I think also this can’t add more information.
Try to change/remove resistor and connect to 5v.
Bye Renzo
-
4 January 2022 at 20:57 #17671
21:53:29.441 -> SENDING:Hello World
21:53:29.441 -> Send message: Hello World
21:53:29.488 -> size: 13
21:53:29.488 -> AUX HIGH!
21:53:29.488 -> Complete!
21:53:29.488 -> Clear buffer...ok!
21:53:29.535 -> SuccessÂ- Remove resistor (no change)
- Changed antennas (no change)
- Restore settings on both dtu and e22 (no change)
I will try to see if the module is transmiting with an sdr.
Is the loop for receiving correct?
// If something available
if (e22ttl100.available()>1) {
// read the String message
#ifdef ENABLE_RSSI
ResponseContainer rc = e22ttl100.receiveMessageRSSI();
#else
ResponseContainer rc = e22ttl100.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);
#endifthanks again for your great blog
Theodore
-
-
4 January 2022 at 22:41 #17672
Hi Theo,
It seems all ok, try to make any change
WOR role
and
Tran Mode
of DTU, in a previous version of the E22 client, Ebyte made some parameters errors.If you have another E22, try to send a message to check if you have some receiving problem.
Bye Renzo
-
5 January 2022 at 18:17 #17657
I used an esp8266 with my second module and still no luck
21:12:23.819 -> No response from device! (Check wiring) 21:12:23.819 -> 12 21:12:24.148 -> No response from device! (Check wiring) 21:12:24.193 -> 12 21:12:24.193 -> ---------------------------------------- 21:12:24.240 -> Model no.: 70 21:12:24.288 -> Version : 6F 21:12:24.288 -> Features : 6E 21:12:24.288 -> ----------------------------------------Â
and here is the constructor
//LoRa_E22 e32ttl100(Microcontroller RX, Microcontroller TX, AUX, M0, M1); // RX, TX LoRa_E22 e32ttl100(D3, D2, D5, D7, D8);
I check with multimeter that there is 5v on the e22 module. I will try to remove the pull ups
-
6 January 2022 at 21:33 #17718
Hello Renzo
Found a problem to my PCB. Unfortunately my pulls up resistor are more like in series resistor hahaSo I ovveride the resistors and connected RX,TX,AUX without pull up to corrensding pins of esp32.
Unfortunately I still have no luck getting parameters when using ESP32 on my pcb.
I try both constructors but they dont work. In the second one, i try to manual assign the rx,tx pins. is that way correct?
* E22 —– esp32
* M0 —– 23 (or GND)
* M1 —– 22 (or 3.3v)
* RX —– 17 (PullUP)
* TX —– 16 (PullUP)
* AUX —– 4 (PullUP)
* VCC —– 3.3v/5v
* GND —– GND1)LoRa_E22 e22ttl100(&Serial2, 4, 23, 22);
2)LoRa_E22 e22ttl100(17,16,&Serial2, 4, 23, 22, UART_BPS_RATE_9600,SERIAL_8N1);
@@@EDIT@@@
I exchanged rx/tx values and it worked! For some reaseon it doesnt work with the first contstructor. Maybe I should read better the esp32 pinout.
Grazie RenzoAttachments:
You must be logged in to view attached files. -
6 January 2022 at 22:43 #17721
Hi Theo,
I’m happy that you had found the problem.
If you’d like to share your project write to me without problem.Bye Renzo
-
6 January 2022 at 22:57 #17723
Thanks for all the help Renzo.
Some remarks about this situation
1)DTU is really powerfull. I had a whip antenna and when it transmitted, the DTU reset. So have to put antenna far away
2)DTU normal mode is both m0,m1 to down position (I was using UP position idiot)
3)E22 to E22 modules can commnunicate just fine with your sketches and library.
4)E22–>DTU90 communicate just fine. Every msg i Sent is received from the other side.
5)DTU90 –>E22 messages are NOT received. TXD led on DTU90 is blinking so message is transmitted. Maybe 5 watt its too high and have to put antenna outside and try.
I can try and make a tutorial for the pcb design through easy eda if interested for your blog?
Attachments:
You must be logged in to view attached files. -
7 January 2022 at 09:02 #17732
Hi Theo,
I can try and make a tutorial for the PCB design through easy eda if interested in your blog?
Sure, if you can do that. It’s fantastic!.
Bye Renzo
-
-
6 January 2022 at 23:18 #17726
I try both E22 modules for receiver (esp8266 with pullups and esp32 without pull ups) but they cant get DTU-90 message. Maybe it has some wrong option for transparent broadcast.
-
7 January 2022 at 09:07 #17733
Hi Theo,
I don’t have a DTU to compare the configuration, but if you have some problem, you can contact Ebyte, who changes his organization to help and better support the developer.You can also try to configure a BROADCAST message instead of a transparent transmission.
Please give me feedback about that.
Bye Renzo
-
7 January 2022 at 11:38 #17742
Good Morning Renzo
I have sent a detailed email to them and waiting for reply. I had also mention your library and how good is for their business to sell more E22/E32Will information on any update.
thanks
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.