Syncing files over serial
-
I'm using the LoPy on a Pysense board on a project where WiFi will be disabled.
I want to be able to sync the software to the device independent from the pymakr plugins (I'm using Atom for development). Atom has been somewhat unreliable for me with regard to syncing when connected with the Pysense over serial. And I'd like to automate some things with command line scripts, instead of relying on a current Atom + pymakr installation.
When the device has a network connection I can use an FTP client to upload the code. But what are my options over serial? How are files transferred? What protocol is used?
I found two old questions related to this:
- https://forum.pycom.io/topic/93/updating-firmware-via-serial-usb
- https://forum.pycom.io/topic/121/file-transfer-using-serial-connection
None of them turned up a solution though.
-
You can use the repl.
This guy wrote a simple program for the 8266 which works with lopy. You can see how he uploads using the repl.
-
@jubbs I see. With that information, it shouldn't be too hard to write a "directory sync" script :)
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