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

    Using a LoPy4 to broadcast information from a Raspberry Pi

    Scheduled Pinned Locked Moved LoPy
    3 Posts 3 Posters 333 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.
    • nigelwattrusN Offline
      nigelwattrus
      last edited by

      I am interested in using a Lopy4 to broadcast information generated by a Raspberry Pi 3B+ connected to the USB on the expansion board (v 3.1) that the Lopy4 module is plugged into. It appears that the USB is tied to the REPL interface - great when developing/interacting with module during development - but a problem when the system is (remotely) deployed. From the design of the case sold for these devices I was under the impression that connecting the RPi to the expansion board was by default, the USB. Apparently that's not the case (bad pun). Has anybody done this ie. used a Lopy4 (or any of the various boards) to broadcast information generated of a Raspberry Pi. I'm sure somebody has - could you share your code? Thanks!

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

        @nigelwattrus A script on the Lopy4, when started, may use UART0 like any other UART. It may also use sys.stdin.read() and sys.stdout.write() for I/O on the USB port. To make it fully transparent, a script should call micropython.kbd_intr(-1), which disables detection on Ctrl-C and Ctrl-F on UART0.
        REPL is only active when no script is running.

        1 Reply Last reply Reply Quote 1
        • W Offline
          wahid
          last edited by

          Hi
          I have data generated by a Raspberry and that I must distribute via a lopy (with a lora network)
          So I have to connect lopy to the rpi via USB,
          can someone among you help me

          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