GUI-O Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Quick pair

    Scheduled Pinned Locked Moved
    General Discussion
    2
    9
    527
    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.
    • B
      Bernard
      last edited by

      @kl3m3n
      Good morning !
      I changed internet operator, therefore my box. Since then, I haven't been able to connect my esp32 to GUI-O. I uninstalled and reinstalled GUI-O on my phone and applied the Quik pair procedure as described in your procedure "Step 4: Pair GUI-O application with ESP32 board".
      I have a problem at the 59th second of the video. I have the message "IOT Connection successful", a small flash on esp32, I wait another 2 minutes but I have a message "This is longer than usual. Please try resetting the paired device" and "No response from paired device .Please retry pairing procedure"
      Any idea what's going on?
      Kind regards, Bernard

      K B 2 Replies Last reply Reply Quote 0
      • K
        kl3m3n @Bernard
        last edited by kl3m3n

        @Bernard Hi!

        I have just tried the procedure and (in general) everything seems to bee working ok.

        But, I have found a flaw... If the active connection is not IoT (selected through "Connections -> IoT"), the IoT pairing procedure will not work. This is a bug, which I will fix ASAP.

        Can you check that the active connection before pairing is IoT?

        To help you debug things, you can open the config.h file in the ESP32 project and uncomment line 16 (#define _GUIO_DEBUG). This will output some additional information during pairing on the serial port. You can see the pairing process (and other info) in real-time. I suggest you try this first.

        If the ESP32 was already paired, you need to clear the EEPROM parameters (wifi config, mqtt topics, etc.). You need to send !CLEAR_PARAMS to ESP32 (or put it in AP mode by !REBOOT_AP before pairing).

        If you need any assistance, please reach out.

        Best regards,
        Klemen

        1 Reply Last reply Reply Quote 0
        • B
          Bernard @Bernard
          last edited by

          @kl3m3n
          Here are my tests......
          The esp32 was already put in "pairing" mode during the old installation. When attempting Direct Device pairing, I see the wifi of the esp32 but with a padlock next to it! Besides, he never asks me for the password “12345678” during the procedure.
          The connection is active before pairing is IoT.
          I tried sending !CLEAR_PARAMS or !REBOOT_AP but that doesn't change anything....
          I uncommented line 16 (#define _GUIO_DEBUG).
          Here is the result:

          AP status: 1
          Pairing request: {
          "mqttHostName": "mqtt.gui-o.com",
          "mqttUserName": "gui-o-mqtt-generic",
          "mqttUserPassword": "lqXeZpv5VJyv0XBT",
          "networkPassword": "80xxxx83",
          "networkSsid": "faxx-xxell",
          "publishTopic": "de37c943-94ce-4e08-a49e-80ee204b7f01",
          "subscribeTopic": "37ba969f-c917-462a-bf21-bdbe8d17db1d"
          }
          "pairingResponse": 0,
          "pairingDeviceName": "guio_ea9f6d93b119",
          "networkSsid": "faxx-xxell",
          "networkPassword": "80xxxxx83",
          "mqttHostName": "mqtt.gui-o.com",
          "mqttUserName": "gui-o-mqtt-generic",
          "mqttUserPassword": "lqXeZpv5VJyv0XBT",
          "subscribeTopic": "37ba969f-c917-462a-bf21-bdbe8d17db1d",
          "publishTopic": "de37c943-94ce-4e08-a49e-80ee204b7f01"
          }
          Pairing succeeded! Copying parameters and scheduling restart...
          @<pGHdp Ng pA@g8c )s '9
          H:
          =H +?))�
          **** GUI-O ESP8266 ****

          GUI-O parameters not found... initializing...
          *** AP mode ***
          ssid: guio_ea9f6d93b119
          password: 12345678
          AP status: 1

          Best regards Bernard

          K B 2 Replies Last reply Reply Quote 0
          • K
            kl3m3n @Bernard
            last edited by kl3m3n

            @Bernard Hi!

            It seems that the parameters are not written in EEPROM successfully...

            You've mentioned using ESP32, but the output you pasted shows ESP8266:

            @Bernard said in Quick pair:

            **** GUI-O ESP8266 ****

            Are you using ESP8266 code with ESP32?
            Did you download the code from GUI-O website recently, or is this something from your archive? There were a couple of changes to the code from the original release.

            P.S.: Did the length of the ssid and password increase with the new internet operator (comparing to previous one)?

            Best regards,
            Klemen

            1 Reply Last reply Reply Quote 0
            • B
              Bernard @Bernard
              last edited by

              @Bernard
              Hello,
              yes it's an ESP8266, sorry. No I use the code ESP8266 in Arduino IDE (LOLIN (Vemos) D1 mini pro (ESP8266).
              I downloaded the code from GUI-O in February 2023 and I managed to program 2 ESP8266 with this sketch,
              I haven't changed anything since except through my router and my internet provider.
              With the new box, THE SSID has gone from 6 to 7 characters and the password has not changed!
              Sincerely

              1 Reply Last reply Reply Quote 0
              • B
                Bernard
                last edited by

                @kl3m3n
                Hello,
                yes it's an ESP8266, sorry. No I use the code ESP8266 in Arduino IDE (LOLIN (Vemos) D1 mini pro (ESP8266).
                I downloaded the code from GUI-O in February 2023 and I managed to program 2 ESP8266 with this sketch,
                I haven't changed anything since except through my router and my internet provider.
                With the new box, THE SSID has gone from 7 to 8 characters and the password has not changed!

                a question :
                Is it normal that during pairing, I see "guio_ea9f6d93b119" with a padlock and that it does not ask me for the password 12345678? It seems to me that previously there was no padlock and that it asked me for the password.....!
                Sincerely

                B K 2 Replies Last reply Reply Quote 0
                • B
                  Bernard @Bernard
                  last edited by

                  @kl3m3n
                  Good morning,
                  Everything is back to normal finally!!
                  In the Arduino IDE it was the ESP8266 Boards -> Lolin (Wemos) D1 mini pro instead of Lolin (Wemos) D1 R1......
                  Thank you for your patience !!!
                  Kind regards, Bernard

                  B 1 Reply Last reply Reply Quote 0
                  • K
                    kl3m3n @Bernard
                    last edited by

                    Hi!

                    Glad you've got it working! So, you had the wrong board selected, correct?

                    @Bernard said in Quick pair:

                    Is it normal that during pairing, I see "guio_ea9f6d93b119" with a padlock and that it does not ask me for the password 12345678? It seems to me that previously there was no padlock and that it asked me for the password.....!

                    No, this is not a problem, since your Android device remembered the password from your last connection.

                    Best regards,
                    Klemen

                    1 Reply Last reply Reply Quote 0
                    • B
                      Bernard @Bernard
                      last edited by

                      @kl3m3n
                      yes, I stupidly took the Arduino sketch that I used in February, without checking all the parameters! I hope that my thoughtlessness will be useful to others......
                      Kind regards and thank you Bernard

                      1 Reply Last reply Reply Quote 0
                      • First post
                        Last post