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

    How WiPy user enters WiFi password?

    Scheduled Pinned Locked Moved WiPy 2&3
    wipywifissidoem
    7 Posts 5 Posters 2.5k Views 5 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.
    • R Offline
      reefat
      last edited by

      Problem:
      For commercial applications using WiPy module (OEM), how would a customer (user) select their home's SSID and WiFi password without the help of a display? Is there a simple and cheap solution?

      FYI: the user should be able to connect to their home network regardless of different security methods (WEP/WPA). All he/she has to do is to choose network and enter password without touching the code.

      Solution:
      Any suggestion?

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

        I see the following options:

        • use WPS, though I have no idea what that would require on the WiPy or if it could support it
        • set up the WiPy in AP mode by default, somehow add a minimal http server on it, and serve pages allowing selection of the network and input of the key. Users would have to connect to that network first for configuration.
        • create a setup app which would communicate with the WiPy over Bluetooth to select a Wi-Fi network and enter the key. Probably some kind of hybrid smartphone app.
        • same thing over USB, but in that case it would probably be restricted to the desktop.
        1 Reply Last reply Reply Quote 2
        • R Offline
          rahul @reefat
          last edited by

          @reefat did you get the solution? I am also looking for the same.

          1 Reply Last reply Reply Quote 0
          • D Offline
            danielm
            last edited by

            I solved this issue by embedded web server running hosting configuration web page. Other parameters (e.g. LoRa modulation parameters) are configured via this web page as well. There is single submit button which POSTs data to the embedded webserver. The device enters this "configuration" mode with WiFi interface in AP mode when a specific button is pressed during boot.

            RobTuDelftR 1 Reply Last reply Reply Quote 2
            • RobTuDelftR Offline
              RobTuDelft @danielm
              last edited by

              @danielm I would be very much interested in such a solution myself. Are you using open source components or is it all propietary?

              I reckon you can do something like this http://docs.micropython.org/en/v1.9.1/esp8266/esp8266/tutorial/network_tcp.html#simple-http-server on the Wipy.

              Without data you're just another person with an opinion.
              Hackster | About me

              1 Reply Last reply Reply Quote 0
              • R Offline
                reefat
                last edited by

                I was able to create a minimal HTTP server which can receive data from another machine (mobile/tablet/computer). I haven't created an actual form with WiFi SSID and password yet. But I hope that will help setting up the WLAN for the first time. However, I'm looking for an easier solution for users like WPS (pressing a single button), although I have never done it. Please shout out if anyone actually tried WPS.

                1 Reply Last reply Reply Quote 0
                • D Offline
                  danielm
                  last edited by

                  @RobTuDelft
                  It's proprietary. I am writing raw HTTP data to TCP socket and then reading and decoding POST data (JSON).

                  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