Home › Forums › The libraries hosted on the site › EByte LoRa e32 UART devices sx1262/sx1268 › Constructor difference and HardwareSerial and SoftwareSerial difference
Tagged: compare, HardwareSerial, SoftwareSerial
- This topic has 9 replies, 3 voices, and was last updated 3 years, 9 months ago by
Renzo Mischianti.
-
AuthorPosts
-
-
1 September 2020 at 08:33 #5981
Hi, I have a few questions for my understanding
- what is the difference between : LoRa_E32 e32ttl100(2, 3,5,6,7); and LoRa_E32 e32ttl(2, 3,5,6,7); ?
- what is the difference between serial and hardware the interest of everyone?the most efficient method?
thank you 🙂
Attachments:
You must be logged in to view attached files. -
1 September 2020 at 08:45 #5983
Hi Ludophot,
for
LoRa_E32 e32ttl100(2, 3,5,6,7);
andLoRa_E32 e32ttl(2, 3,5,6,7)
change only the variable name e32ttl100 in e32ttl.
I think you mean difference from
LoRa_E32 e32ttl100(2, 3,5,6,7); // Arduino RX <-- e22 TX, Arduino TX --> e22 RX AUX M0 M1
and
#include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // Arduino RX <-- e22 TX, Arduino TX --> e22 RX
LoRa_E22 e22ttl(&mySerial, 5, 6, 7); // AUX M0 M1
and
LoRa_E22 e22ttl(&Serial1, 5, 6, 7); // AUX M0 M1
the first and the second is the samething the difference is that in the first case I instantiate SoftwareSerial internally.
The last one you pass a reference of the HardwareSerial.
The better solution is to use HardwareSerial, because SoftwareSerial is an emulation of Hardware one, so to do the emulation need more processors time respect an hardware implementation of the Serial, and can be more fast.
But not all Arduino like have multiple Serial, so for Arduino UNO, if you want use debug and other you need to do Software one.
Bye Renzo
-
1 September 2020 at 09:10 #5988
 Arduino RX <– e22 TXÂ
we see that you work on the E22 -
1 September 2020 at 09:36 #5997
Hehehehhe… you discover me…
yes the library is ready and tested,
the base commands is the same of library for E32 but there are addictions of the new features like RSSI, configuration for repeater mode packet size increased etc. etc.
I start writing documentation, a library without documentation is half work..
But probably first I release the “EByte E32 Web Manager“, a web manager to configure and test E32..
EByte LoRa E32 Manager Custom Home PageBye Renzo
-
19 July 2021 at 18:28 #13699
Thayro
<span class="Y2IQFc" lang="en">Hello, about EByte E32 Web Manager, do you already have the configuration software available for download?</span>
-
-
1 September 2020 at 12:05 #6009
I ordered 2 E22 in anticipation of the release of your library.
Repeater mode interests me a lot because I used it on NRF24 modules. do the E32s lack it? the rssi? measurement of the power level when receiving a signal
-
1 September 2020 at 12:46 #6010
No E32 doesn’t have RSSI and repeater function.
E22 can reach a greater distance with less power:
from 3Km of E32 to 4/5Km of E22
from 8Km of E32 1W to 10/12Km of E22The packet size of E22 is configurable from 32Kb to 240Kb.
It’s also more difficult to find module versione, so for the first test I use a PCB as adapter
Ebyte LoRa E22 device for Arduino, esp32 or esp8266 3 devices module SMDBye Renzo
-
19 July 2021 at 18:29 #13700
Thayro
Hello, about EByte E32 Web Manager, do you already have the configuration software available for download?
-
-
AuthorPosts
- You must be logged in to reply to this topic.