Forum Replies Created
-
AuthorPosts
-
Thanks for the feedback 🙂
Hi,
A critical configuration parameter is WOR Cycle. For the sender, it is essential because it adds a long preamble to the message (long as wake time). The receiver uses wake time as a pull interval time check.
So, if the receiver checks every 2000ms (polling time) if there is a message, the sender adds a 2000ms preamble. The receiver intercepts the message preamble, waits for the actual message to read It, and returns to power-saving mode.So, if you want to maximize the power savings, you must put the maximum WOR Cycle on the receiver. If you want more efficiency, you must do the inverse and add a long preamble to the sender.
Even if the EByte advises to use the same WOR cycle.
Bye RenzoHi Willian,
the code is quite complex, and I need time to check It in depth, but what is the scope of the Ticker library?
Bye RenzoHi Baftu,
I think you set the pointer for the structure, not the structure of single elements.
You must create a fixed structure with fixed-size elements.
Bye RenzoHi Elkez,
I normally describe a device module thinking of a real scenario (I don’t write to have a visit), and I select the e70 because it has RSSI and a very good Sleep mode management to manage the battery. You probably never raise a distance if a device is declared for 1.5km but has high sensitivity.
All to say, this can be considered a good solution.
There are alternatives, but the efficiency can’t be the same.But in your case (low number of messages per second), I think it can be a good solution for a LoRa device like the e220.
Bye Renzo
Hi phnahes,
I think you can’t decode because the EByte uses a proprietary cryptography system to obfuscate the message.
Even if some people decode it for e32 (it doesn’t have a key to change the algorithm), here is the thread where you can find some information.
EByte LoRa Communication encode/decode, crypt/decrypt
I don’t know if @Sahar-2 go ahead with Its idea, but I think you can ask.
Bye RenzoHi,
yes, it’s quite impressive, and I start some penetration test and I notice that 4/5 wall (with meet iron) can’t block the signal.
Bye RenzoIf you want to try, I also pushed a new version that adds a lot of features and the possibility to specify the INPUT_PULLUP mode.
Bye RenzoHi,
I tested now this sketch/* KeyPressed on PIN1 by Mischianti Renzo <http://www.mischianti.org> https://www.mischianti.org/2019/01/02/pcf8575-i2c-digital-i-o-expander-fast-easy-usage/ */ #include "Arduino.h" #include "PCF8575.h" // Set i2c address PCF8575 pcf8575(0x20); unsigned long timeElapsed; void setup() { Serial.begin(115200); // pcf8575.pinMode(P0, OUTPUT); pcf8575.pinMode(P1, INPUT); pcf8575.begin(); timeElapsed = millis(); } void loop() { // if (millis() - timeElapsed > 2000) { // if (pcf8575.digitalRead(P0) == HIGH) { // pcf8575.digitalWrite(P0, LOW); // } else { // pcf8575.digitalWrite(P0, HIGH); // } // timeElapsed = millis(); // } uint8_t val = pcf8575.digitalRead(P1); if (val == HIGH) { Serial.println("KEY PRESSED"); } delay(100); }
And this sketch
/* KeyPressed on PIN1 by Mischianti Renzo <http://www.mischianti.org> https://www.mischianti.org/2019/01/02/pcf8575-i2c-digital-i-o-expander-fast-easy-usage/ */ #include "Arduino.h" #include "PCF8575.h" // Set i2c address PCF8575 pcf8575(0x20); unsigned long timeElapsed; void setup() { Serial.begin(115200); pcf8575.pinMode(P0, OUTPUT); pcf8575.pinMode(P1, INPUT); pcf8575.begin(); timeElapsed = millis(); } void loop() { if (millis() - timeElapsed > 2000) { if (pcf8575.digitalRead(P0) == HIGH) { pcf8575.digitalWrite(P0, LOW); } else { pcf8575.digitalWrite(P0, HIGH); } timeElapsed = millis(); } uint8_t val = pcf8575.digitalRead(P1); if (val == HIGH) { Serial.println("KEY PRESSED"); } delay(100); }
and work properly.
Can you also insert the wiring diagram?
Bye Renzo
Attachments:
You must be logged in to view attached files.Hi Amaia,
I test the library, and it works correctly.
Rewrite the code as usual and retry.
Bye Renzo29 April 2024 at 09:24 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30628Hi,
thanks for your feedback, I think your information can be very useful.
Bye Renzo28 April 2024 at 12:16 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30621Hi,
It’s very strange; It’s more likely that there are some problems with the power supply and the pull-up resistor.
Bye Renzo18 April 2024 at 08:55 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30337Hi,
no, restore to an external 5v power supply and try to change the pullup resistor o try to remove It.
Bye Renzo16 April 2024 at 16:38 in reply to: E32 and ESP32 not working, but on Arduino it`s OK – Same Code #30332Hi phnahes,
It’s possible that you connect on Arduino the power pin of e32 to 5v and to the esp32 to the 3.3v?
Bye Renzo16 April 2024 at 08:17 in reply to: BeePrint work with FLSun QQs-Pro stock firmware but not with marilin #30322Hi Luxed,
Other people tell me that they have problems with Marlin firmware. I think it manages communication in a different way, and I think it can’t work with this implementation.
Bye Renzo -
AuthorPosts