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

    Is it possible to send pysense data via physical cable to our PC/raspberry pi?

    Scheduled Pinned Locked Moved LoPy
    4 Posts 2 Posters 35 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.
    • P Offline
      Pedro Almeida
      last edited by

      Hello fellows.
      I'm currently working on a project that requires the use of pysense + lopy4. It is the first time i work with them and I'm still looking for information.
      I've already see a lot of projects sending data via WiFi, LOrA and so on. But is there any physical alternative, for instances, via USB to send the data to a computer or a processor like raspberrypi?

      Thank you!

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

        @Pedro-Almeida You can for instance use UART, which is robust and simple. Just 3 wires for a bidirectional link. The speed is not very high, but 1-2 MBit/s should be possible with a short link.
        With the pysense board, you can simply use the USB interface of the Pysense connected to a PC, where it shows up as a serial interface. The default baud rate is 115200. At the LoPy4, you would use print() or sys.stdout.write() for sending and sys.stdin.read() for receiving. That interface can as well be used as UART 0, allowing you to use the UART API.

        P 1 Reply Last reply Reply Quote 0
        • P Offline
          Pedro Almeida @robert-hh
          last edited by Pedro Almeida

          @robert-hh

          First of all, thank you for the answer.
          And it should work as well on raspberry pi right? Since rasp is such a PC as well with USB serial inputs.

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

            @Pedro-Almeida I can replicate this behavior. But there is little that canbe done in the uftpd code, since it does not get noticed. For uftpd, the session continues to exist.

            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