Prevent anyone can download my code over serial
-
@robert-hh Hello Robert thanks for your replay.
How can I Embed your code as frozen bytecode?
-
@combaindeft said in Prevent anyone can download my code over serial:
B) compile it and flash your WiPy with your own custom firmware
Hi there!
How can I compile and flash your WiPy code?
-
@dserrano The instructions for compiling your own firmware (including your own frozen code) and encrypt it can be found here: https://github.com/pycom/pycom-micropython-sigfox
-
@johand said in Prevent anyone can download my code over serial:
@dserrano The instructions for compiling your own firmware (including your own frozen code) and encrypt it can be found here: https://github.com/pycom/pycom-micropython-sigfox
^this is likely the best way to help avoid the code being dumped.
-
@paul-thornton said in Prevent anyone can download my code over serial:
I tried to follow the instructions to build the firmware for a LOPY but esptools.py failed on
import serialAdding pyserial with pip3 was not the solution. Running this on a hyper-v debian. Big plan was to compile on VM and use windows host for upload. Does the python module works only when a serial is present?
-
@crumble I managed to build and encrypt the WiPy firmware (should be the same) using Windows Subsystem for Linux (https://docs.microsoft.com/en-us/windows/wsl/install-win10) running Ubuntu. I installed pyserial with "pip install pyserial". What is the error you get?
-
I used pip3 to install pyserial-3.4 But serial cannot be found
ImportError: No module named serial -
@crumble I am far from an Python expert, so just guessing... Could it be that you use pip3 instead of pip that I use (I think I got som problems trying to use Python 3)? What if you run "pip list", does pyserial show up as installed?
-
aaahhh, you are right. Micropython is python 3 but the build tool uses python 2. Totally forgot that this still exists on PCs
Thanks ;)
-
@dserrano I am also interested in this howto ;-)
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login