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

    File transfer using serial connection

    Scheduled Pinned Locked Moved LoPy
    7 Posts 6 Posters 4.2k Views 8 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.
    • G Offline
      gertjanvanhethof Pybytes Beta
      last edited by

      Question: Is there a way to upload/download files (like boot.py, main.py) when having a serial connection (instead of connected by wifi)?
      Are there file transfer tools who can handle this? Kermit?

      M on4aaO 2 Replies Last reply Reply Quote 0
      • B Offline
        Batilan
        last edited by

        You might want to have a look at https://forum.pycom.io/topic/93/updating-firmware-via-serial-usb

        1 Reply Last reply Reply Quote 0
        • R Offline
          Ralph
          last edited by

          Hi @gertjanvanhethof,

          You can use the Pymakr to upload the python files to your device, using the sync button. To do this, you only need to put the REPL script in the boot file before this works

          1 Reply Last reply Reply Quote 0
          • robert-hhR Offline
            robert-hh
            last edited by robert-hh

            You could try the adafruit ampy tool: https://github.com/adafruit/ampy
            The README.md there also mentions other tools, that might work.

            G 1 Reply Last reply Reply Quote 0
            • M Offline
              michal.zykov @gertjanvanhethof
              last edited by

              Hi @robert-hh!

              Yes, I do agree with you. Ampy is the best option when you don't want to use or you can not use Pymakr (due to unsupported Linux distribution).

              Mike

              1 Reply Last reply Reply Quote 0
              • G Offline
                gertjanvanhethof Pybytes Beta @robert-hh
                last edited by

                @robert-hh Thxs!

                1 Reply Last reply Reply Quote 0
                • on4aaO Offline
                  on4aa @gertjanvanhethof
                  last edited by

                  @gertjanvanhethof I find rshell even easier to than ampy.

                  Once rshell has launched, connect with:

                  > connect serial /dev/ttyACM0 115200
                  

                  By the way, ACM stands for «asynchronous communication mechanism».

                  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