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

    ssh to rpi compute module 3 over wifi using FiPy

    Scheduled Pinned Locked Moved FiPy
    raspberry pifipymicorpythonserver
    6 Posts 3 Posters 1.3k Views 3 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.
    • N Offline
      Nash
      last edited by

      Hello Team,
      This problem is posted already but did not get complete solution.

      YES true that compute module does not have wifi or BT , so only we go with UART connection, and i have connected the fipy and RPI compute module via UART. But how shall ssh to RPI compute module and access the RPI file structure.

      After the serial connection now i want to send data within the RPI compute module to server. How to do this??
      Please reply as soon as possible. Help will be really appreciated.

      Thank You

      sebS 1 Reply Last reply Reply Quote 0
      • sebS Offline
        seb @Nash
        last edited by

        @nash

        Is there a particular reason you need to use "ssh"? You could connect the FiPy UART to the serial console output (which you have to enable) on the RPi but then you would need to parse the command line, e.g. ignoring the prompt and DMESG.

        I imagine it would be much easier to communicate between the RPi and FiPy using a python script and pyserial

        N 1 Reply Last reply Reply Quote 0
        • N Offline
          Nazz @seb
          last edited by

          @seb
          Hello,
          Thank you for your response, yes agreed that we can connect FiPy UART to RPI and do the operations, but later to send data from RPI to server we need WiFi and compute module does not have WiFi. So how to send data to server.

          Thank You

          sebS 1 Reply Last reply Reply Quote 0
          • sebS Offline
            seb @Nazz
            last edited by

            @nazz

            You will need to implement some protocol where you send data to the FiPy over uart and the FiPy then send that data onwards.

            N 1 Reply Last reply Reply Quote 0
            • N Offline
              Nazz @seb
              last edited by

              @seb
              Yes i have used uart to send data from FiPy to RPI , below code am running on atom

              from machine import UART
              # this uses the UART_1 default pins for TXD and RXD (P3 and P4)
              uart = UART(1, baudrate=9600)
              while True:
              uart.write('some string')
              time.sleep(1)
              print("Data sent from FiPy to Rpi")

              Later i need to send same data from RPI compute to server. How should i do that??

              Thank You

              sebS 1 Reply Last reply Reply Quote 0
              • sebS Offline
                seb @Nazz
                last edited by

                @Nazz

                Will need to do the opposite of what you've done here, send from the RPi, recvieve on the FiPy (see here: https://docs.pycom.io/chapter/firmwareapi/pycom/machine/UART.html#uartreadnbytes), and then do what ever sending you require.

                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