Welcome to the Pycom forum Forum
    • \[\[global:header.categories\]\]
    • \[\[global:header.recent\]\]
    • \[\[global:header.tags\]\]
    • \[\[global:header.popular\]\]
    • Login

    Explore Pybytes | Official Documentation | Report a Firmware Bug/Issue | GitHub

    Syncing files over serial

    Scheduled Pinned Locked Moved Firmware
    lopyother
    3 Posts 2 Posters 1.6k Views 2 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D Offline
      dbrgn
      last edited by

      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.

      1 Reply Last reply Reply Quote 0
      • J Offline
        jubbs
        last edited by

        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.

        https://github.com/SmileyChris/uterm

        D 1 Reply Last reply Reply Quote 0
        • D Offline
          dbrgn @jubbs
          last edited by

          @jubbs I see. With that information, it shouldn't be too hard to write a "directory sync" script :)

          1 Reply Last reply Reply Quote 0

          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
          • 1 / 1
          • First post
            Last post

          Pycom on Twitter

          Pycom