I have two LoRa modules, the transmitter is E32-900T20D (with ESP32 DevKitC V4) and the receiver is LoRa32U4II. The problem is that the receiver is not receiving anything from the transmitter.
Here is the code of configuration (E32-900T20D) :
/ * E32 —– esp32
* M0 —– 3.3v
* M1 —– 3.3v
* RX —– TX2 (PullUP)
* TX —– RX2 (PullUP)
* AUX —– not connected
* VCC —– 3.3v
* GND —– GND
*
*/
ResponseStructContainer c;
c = e32ttl100.getConfiguration();
// It’s important get configuration pointer before all other operation
Configuration configuration = *(Configuration*) c.data;
Serial.println(c.status.getResponseDescription());
Serial.println(c.status.code);
configuration.SPED.airDataRate = AIR_DATA_RATE_000_03;
configuration.SPED.uartBaudRate = UART_BPS_9600;
configuration.SPED.uartParity = MODE_00_8N1;
// Set configuration changed and set to not hold the configuration
ResponseStatus rs = e32ttl100.setConfiguration(configuration, WRITE_CFG_PWR_DWN_SAVE);
Serial.println(rs.getResponseDescription());
Serial.println(rs.code);
printParameters(configuration);
c.close();
}
`
Here is the code of transmission (E32-900T20D) :
/ * E32 —– esp32
* M0 —– GND
* M1 —– GND
* RX —– TX2 (PullUP)
* TX —– RX2 (PullUP)
* AUX —– not connected
* VCC —– 3.3v
* GND —– GND
*
*/
#include “LoRa_E32.h”
LoRa_E32 e32ttl100(&Serial2,UART_BPS_RATE_9600 );
void setup() {
Serial.begin(9600);
delay(500);
// Startup all pins and UART
e32ttl100.begin();
Serial.println(“Hi, I’m going to send messages every second!”);
// Send first message
ResponseStatus rs = e32ttl100.sendMessage(“Hello, world?”);
// Check if message was sent successfully
if (rs.code == 1) {
Serial.println(“Message sent successfully”);
} else {
Serial.println(“Failed to send message”);
}
}
void loop() {
delay(1000);
// Send message
ResponseStatus rs = e32ttl100.sendMessage(“Hello, world?”);
// Check if message was sent successfully
if (rs.code == 1) {
Serial.println(“Message sent successfully”);
} else {
Serial.println(“Failed to send message”);
}
}
here is the result of the transmitter (E32-900T20D): `
Hi, I’m going to send messages every second!
Message sent successfully
Message sent successfully
Message sent successfully `
here is the code of the receiver (LoRa32U4):
#include <LoRa.h>
#define ss 8
#define reset 4
#define dio0 7
void setup() {
Serial.begin(9600);
LoRa.setPins(ss, reset, dio0);
if (!LoRa.begin(868E6)) {
Serial.println(“Starting LoRa failed!”);
while (1);
}
// Set signal bandwidth to 125kHz
LoRa.setSignalBandwidth(125E3);
void loop() {
int packetSize = LoRa.parsePacket();
if (packetSize) {
// received a packet
Serial.print(“Received packet with RSSI “);
Serial.print(LoRa.packetRssi());
Serial.print(“: “);
while (LoRa.available()) {
Serial.write(LoRa.read());
}
Hi Sahar,
I think there are some problem.
First three frequency is
FREQUENCY_900
then you must set the same frequency of the devices in configuration.
But most important is that EByte LoRa use a cryptography system that do not allow the communication from different devices.
But the algorithm was quite simple, so if you want I can search it and post here.
Bye Renzo
Hi Sahar,
I’m out for 2 days when I return, I will try to find It.
But surely It’s more simple to use the same kind of device to do a project, you can communicate with the transparent transmission, but a fixed one can be a problem.
Bye Renzo
Hello ,
Please don’t forget to send me the cryptography system to communicate e32-900T20D with LoRa32U4 II.
If the communication between those two modules is impossible , can i replace e32-900T20D with another lora module(like LoRa1276) to communicate with lora32U4 II ?
Thanks.
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.