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 and WiPy communication - best practise? SPI, I2C, UART, Bluetooth, Wifi?

    Scheduled Pinned Locked Moved FiPy
    spiic2uartwipyfipy
    9 Posts 4 Posters 2.4k Views 4 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.
    • L Offline
      Leo_Sol
      last edited by

      Hi guys,

      i need some help ;)

      My configuration:

      FiPy:

      • Internet-Access over LTE-CAT M1 (not yet implemented)
      • Wifi-AP for UDP-communication (you can send commands to the device)
      • UART to u-blox-device (better gps)

      WiPy:

      • Wifi-AP also in use
      • wlan is connected to the AP of another device

      Both devices are next to each other...


      Soooo... I would like to let them talk to each other, but as far as i can judge it there is no good option.

      SPI and I2C are not working because there is no way to make one device slave, right? (thats what i was getting from the docs)

      UART is no option because UART2 is used by FiPy for LTE-M ( see: https://docs.pycom.io/chapter/firmwareapi/pycom/machine/UART.html ) , right?

      Wifi is blocked because only one connection for each device (which is already in use), right?

      Soo... Am i plain stupid? Is there a good option to make this happen?

      Thanks guys! You are awsome!

      robert-hhR J 2 Replies Last reply Reply Quote 0
      • robert-hhR Offline
        robert-hh @Leo_Sol
        last edited by

        @leo_sol The one connection only limit on Wifi only holds for the built-in Telnet and FTP clients. Otherwise, you can run the device as AP and STA at the same time and connect to the other device using your own protocol.

        1 Reply Last reply Reply Quote 0
        • L Offline
          Leo_Sol
          last edited by

          Hi,

          thanks for the fast reply!

          Both devices use AP and STA - but they are connected to external devices and not to each other. And i can not have two STA connections at the same time :/ or am i wrong here?

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

            @leo_sol No, if you use both AP and STA at each device, you cannot. If they are connected as STA to the same AP (and same network), you can however connect them as STA through this AP.

            1 Reply Last reply Reply Quote 0
            • J Offline
              jmarcelino @Leo_Sol
              last edited by

              @leo_sol
              Well you still have raw LoRa on the FiPy.

              L 1 Reply Last reply Reply Quote 0
              • L Offline
                Leo_Sol @jmarcelino
                last edited by

                @jmarcelino
                thank you for the advice. sadly i have no experiance with LoRa but i will figure it out!

                i feel like using the WiPy as a spi.SLAVE would be the best way, but it is not implemented yet. can you tell me if there is a plan to do so soon?

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

                  @leo_sol

                  Hi, slave mode is on our to do list but unfortunately isn't currently a top priority so I cannot provide a concrete data for when it will be added. It might be looked into in Q2.

                  L 1 Reply Last reply Reply Quote 0
                  • L Offline
                    Leo_Sol @seb
                    last edited by

                    @seb nice! thank you ;)

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

                      @leo_sol Looking at your initial post it seems that UART1 may still available on both units. the default config collides with the SD card pins, but you can assign UART1 to other pins.

                      1 Reply Last reply Reply Quote 1

                      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