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

    [LoPy] - Sending File to LoPy from Mobile Over Bluetooth

    Scheduled Pinned Locked Moved LoPy
    lopyblebluetooth
    7 Posts 3 Posters 2.0k 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.
    • F Offline
      fuzzy
      last edited by

      Hi All,

      Does anyone know how you can upload a file to the LoPy flash using a mobile phone and BLE?

      Thanks and regards!

      J 1 Reply Last reply Reply Quote 0
      • J Offline
        jcaron @fuzzy
        last edited by

        @fuzzy if you mean sending a file over Bluetooth using standard OS features, I believe that's a Bluetooth Classic feature, not Bluetooth LE.

        BLE is not really designed for file transfers, and even though it's achievable, you'll get pretty poor performance, it quickly takes minutes for a few hundred KiB. But you'll need dedicated software on both ends.

        Why not use Wi-Fi for this?

        F 1 Reply Last reply Reply Quote 0
        • F Offline
          fuzzy @jcaron
          last edited by

          @jcaron thanks for your reply. The reason for not using WiFi is that the WiFi interface operates as a station for connecting the LoPy with the internet. The file that needs to be transfered is a JSON file with only a few lines.

          Any hints?

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

            @fuzzy You can setup your device as both station and access point. The station mode can connect to the internet, while the AP interface can be used to upload files, e.g. by ftp.

            F 1 Reply Last reply Reply Quote 0
            • F Offline
              fuzzy @robert-hh
              last edited by

              @robert-hh hi. Thanks for your response. Is it possible to setup the device both as STA and AP at the same time?

              Thanks!

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

                @fuzzy Yes, the mode is STA_AP, (https://docs.pycom.io/chapter/firmwareapi/pycom/network/wlan.html). In the wlan.init call then you must specify the SSID and password for the AP, and in addition connect as usual as STA,

                F 1 Reply Last reply Reply Quote 0
                • F Offline
                  fuzzy @robert-hh
                  last edited by

                  @robert-hh Thats great. Have skipped my attention so far... Thanks!

                  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