Forum Replies Created
-
AuthorPosts
-
Hi,
I understand, as you can check here,you must close the opened structure.
Bye Renzo
19 January 2024 at 08:58 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29303But you send from Arduino env and receive in MicroPython env?
Bye RenzoYes, there is a memory leak. You must discover which part of the code generates that.
Normally I’m going to add a lot a Serial.print to examine every part of the code.But, when you program, also in the embedded env, It’s a best practice to encapsulate every functionality in functions because when the function ends, It works, and every variable inside is released.
Bye Renzo
18 January 2024 at 15:12 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29294Hi Woto,
It seems that there is a character that’s not encoded correctly, which kind of message do you send?
Bye RenzoHi L33t331,
It seems to be a memory leak problem; try to examine the memory usage and give me feedback.
Check also the power supply, but It isn’t probably.
Bye Renzo15 January 2024 at 14:17 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29272Please, paste the complete error stack trace..
Bye Renzo14 January 2024 at 19:29 in reply to: E220 LoRa Receive-Intervall and MycroPython and Arduino Env communication (UnicodeError:) #29232Hi Woto,
if you don’t add the sleep time, the processor gets 100% of usage and can freeze.If you receive more than one message, the messages are stored in the buffer of E220, and when you read them, you receive the two messages at once.
Bye Renzo
Haa!! perfect.
But also the other module works better at 5V power supply; if you use 3.3V, the distance is reduced drastically.
Bye RenzoI don’t know if I explain well.
Suppose you put the code with the operation of sending and relative variables inside a function. In that case, all the variables and operations executed and allocated inside the function remain inside the function (like Fight Club).
So this can prevent the memory leak.
Bye RenzoIf you put all sending and receiving process inside a function, theoretically when function end all allocated variable and memory will be free.
Or you can malloc inside memory.
Bye RenzoHi Elkez,
It can be a wiring problem, or there is a read or write problem in the sketch code, or a configuration problem.
Bye RenzoHi Fabiooo,
the problem of deep sleep was explained here, to be sure to read the message you must use light sleep.
The power-consuming difference isn’t so big, so It’s preferable.
Bye RenzoHi Fabiooo,
if you have a (minimal) memory leak, probably write over the memory location of the received message variable or at the sending time.
Bye Renzohi Fabioo,
It’s very strange; It’s possible that there are some issues with the power supply.
Or a bad usage of memory allocation?
Bye RenzoThanks a lot. Your work is precious.
Bye Renzo -
AuthorPosts