I am working on a personal project using the LoRa module E32-TTL-100.
My setup is composed of two Arduinos and two E32 modules. I am basically connecting each Arduino to each E32 module, and my aim is to successfully set a communication between these two pairs using LoRa.
For the connection between Arduino and E32 I am using the following circuit.
/*
* LoRa E32-TTL-100
* Write on serial to transfer a message to other device
* http://mischianti.org
*
* E32-TTL-100----- Arduino UNO
* M0 ----- GND
* M1 ----- GND
* TX ----- PIN 2 (PullUP)
* RX ----- PIN 3 (PullUP & Voltage divider)
* AUX ----- Not connected
* VCC ----- 3.3v/5v
* GND ----- GND
*
*/
#include "Arduino.h"
#include "LoRa_E32.h"
LoRa_E32 e32ttl100(2, 3); // e32 TX e32 RX
void setup() {
Serial.begin(9600);
delay(500);
Serial.println("Hi, I'm going to send message!");
// Startup all pins and UART
e32ttl100.begin();
// Send message
ResponseStatus rs = e32ttl100.sendMessage("Hello, world?");
// Check If there is some problem of successfully send
Serial.println(rs.getResponseDescription());
}
void loop() {
// If something available
if (e32ttl100.available()>1) {
// read the String message
ResponseContainer rc = e32ttl100.receiveMessage();
// Is something goes wrong print error
if (rc.status.code!=1){
rc.status.getResponseDescription();
}else{
// Print the data received
Serial.println(rc.data);
}
}
if (Serial.available()) {
String input = Serial.readString();
e32ttl100.sendMessage(input);
}
}
I have uploaded this same code to both Arduinos and then opened the Serial consoles to monitor if the communication was happening as expected. However, I only get the prints saying that the message was sent succesfully on the sender’s end, but never see the receiving end printing the received message.
Am I doing something wrong? I am totally new to LoRa, so I am also very lost in this and kinda burned out, since I’ve being trying to get it to work for days now.
I wonder if I am skipping some configuratin step I was supposed to be doing before this.
I have enabled the debugging mode and now I’m getting the following message in the serial monitor.
Init AUX pin!
Begin ex
Begin Software Serial
Begin
The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!
AUX HIGH!
Complete!
The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!
AUX HIGH!
Complete!
3
Available buffer: 0 structure size: 6
----------------------------------------
HEAD : 0 0 0
AddH : 0
AddL : 207
Chan : 239 -> 649MHz
SpeedParityBit : 10 -> 8E1
SpeedUARTDatte : 111 -> 115200bps
SpeedAirDataRate : 110 -> 19.2kbps
OptionTrans : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
OptionPullup : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
OptionWakeup : 111 -> 2000ms
OptionFEC : 0 -> Turn off Forward Error Correction Switch
OptionPower : 0 -> 20dBm (Default)
----------------------------------------
The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!
AUX HIGH!
Complete!
No response from device! (Check wiring)
12
----------------------------------------
HEAD BIN: 0 0 0
AddH BIN: 0
AddL BIN: 11001111
Chan BIN: 239 -> 649MHz
SpeedParityBit BIN : 10 -> 8E1
SpeedUARTDataRate BIN : 111 -> 115200bps
SpeedAirDataRate BIN : 110 -> 19.2kbps
OptionTrans BIN : 1 -> Fixed transmission (first three bytes can be used as high/low address and channel)
OptionPullup BIN : 1 -> TXD, RXD, AUX are push-pulls/pull-ups
OptionWakeup BIN : 111 -> 2000ms
OptionFEC BIN : 0 -> Turn off Forward Error Correction Switch
OptionPower BIN : 0 -> 20dBm (Default)
----------------------------------------
The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!
AUX HIGH!
Complete!
3
Available buffer: 4 structure size: 4
AUX HIGH!
Complete!
The M0 and M1 pins is not set, this mean that you are connect directly the pins as you need!
AUX HIGH!
Complete!
----------------------------------------
HEAD BIN INSIDE: 11000011 195 C3
Freq.: 32
Version : 53
Features : 14
----------------------------------------
Success
1
----------------------------------------
HEAD BIN: 11000011 195 C3
Freq.: 32
Version : 53
Features : 14
----------------------------------------
I checked all wires multiples times with multimeter and have redone all wire connections. Do you have any insight on what may be going wrong?
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.