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

    fipy telnet

    Scheduled Pinned Locked Moved Guides
    3 Posts 2 Posters 226 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.
    • M Offline
      mraj
      last edited by

      Hej!

      Does anybody has experience to automate execution of a python file (not main.py) in the fipy board.
      I am thinking of a script that can use telnet or any other means to go into the board and execute a arbitrary file.

      Please share your experience if you have in this context.

      Thanks,
      M

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

        @mraj That's what I forgot to mention yesterday. Yes, you can use telnet to connect to the FiPy and execute commands. Once you started a script, that keeps running even when the telnet conection is closed. So the challenge is to automate the PC side with ftp and telnet. That shoudl be possible with ftplib and telnetlib.

        M 1 Reply Last reply Reply Quote 0
        • M Offline
          mraj @robert-hh
          last edited by

          @robert-hh Yes, you are right. Now I see it working in two steps (could be better optimised). Using FTP to upload code and then using telnetlib to telnet the device and execute arbitrary command. Thanks. Just wondering if this is standard way?

          Thanks,
          M

          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