Open gdferreira99 opened 3 years ago
No worries,
You're flashing the pycom micropython firmware to your device, which is compiled from C. If you cloned the repository and you're able to build the firmware you're actually almost there. In the esp32
folder of the repository, you can find most of the code used. To list some examples:
mods
folder, you can find all micropython modules (like machine, pycom, network etc.)lte
folder contains all basic LTE functionality etc.Note that if you want to compile the pygate functionality into the firmware and flash it, you'll have to use the flag VARIANT=PYGATE
in the command.
Let me know if that answers your question
To see if I understand, the firmware is compiled in C, but to use the libraries built in C, I program in micropython?
My goal was to change the functionality of the pygate, i don´t want to use it as a Gateway. I want to built a 8 chanell Lora Repeater, and for that I can´t use TCP, only LoraWAN. The function from the PyGate firmware only starts with a TCP connection, I want to change that. I saw that the Legacy firmware is more low-level, but I cant understand with libraries I can use with that firmware.
In last case, should I edit the C files so that the firmware that i upload do that??
Thanks for your reply man
The microcontroller we use (the ESP32) is to be programmed in C using the esp-idf. Using some clever code we can interpret python code using the pycom or micropython firmware.
In the Pycom ecosystem, we support all functionality of the pycom firmware, though there are always features missing, like the one you're looking for. In some cases, they can be programmed in micropython as well using externally imported modules, requiring no change in the firmware, but in this case, you'll have to change the firmware in order to add the functionality, as by default, the Pygate firmware does not support the repeater functionality.
You can use legacy firmware, though we no longer support it. Though it does not include, amongst others, the basic pygate functionality (the hardware abstraction layer). I'd recommend you start with the latest pygate release (1.20.2.r4) and work from there, though it might still be a lot of work.
why is in lgw_receive function, called on the thread_up in the pkt_fwd, has a comment saying "Crashing here"????
I believe that is a leftover comment from development and no longer valid
Hi,
Thank you very much!