How does my camera automatically connect to the WiFi?












2















I just bought a cheap WiFi camera called SriCam SP009 (just to test it). To set it up you have to install an app on your phone. In this app you enter the WiFi password and an ID number for the camera. Then automatically the camera connects to your WiFi. My question is: How is this possible?



What I do know:




  1. I did a packet capture and there are UDP packets from the app to Chinese IP addresses.

  2. It did not work on my openWRT router. But it does work on a standard tp-link

  3. I can’t see it setting up any wlan of it’s one. Like for example the chromecast.










share|improve this question




















  • 2





    A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

    – Mustafa Aktaş
    Feb 10 '17 at 11:38











  • So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

    – user1930848
    Feb 10 '17 at 11:48






  • 1





    For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

    – Mustafa Aktaş
    Feb 10 '17 at 11:56













  • Does it happen to have bluetooth?

    – Blaine
    Feb 10 '17 at 15:00











  • It could be using wifi direct. A lot of wifi speaker use this for their setup process.

    – Patrick R.
    Feb 10 '17 at 17:23
















2















I just bought a cheap WiFi camera called SriCam SP009 (just to test it). To set it up you have to install an app on your phone. In this app you enter the WiFi password and an ID number for the camera. Then automatically the camera connects to your WiFi. My question is: How is this possible?



What I do know:




  1. I did a packet capture and there are UDP packets from the app to Chinese IP addresses.

  2. It did not work on my openWRT router. But it does work on a standard tp-link

  3. I can’t see it setting up any wlan of it’s one. Like for example the chromecast.










share|improve this question




















  • 2





    A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

    – Mustafa Aktaş
    Feb 10 '17 at 11:38











  • So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

    – user1930848
    Feb 10 '17 at 11:48






  • 1





    For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

    – Mustafa Aktaş
    Feb 10 '17 at 11:56













  • Does it happen to have bluetooth?

    – Blaine
    Feb 10 '17 at 15:00











  • It could be using wifi direct. A lot of wifi speaker use this for their setup process.

    – Patrick R.
    Feb 10 '17 at 17:23














2












2








2








I just bought a cheap WiFi camera called SriCam SP009 (just to test it). To set it up you have to install an app on your phone. In this app you enter the WiFi password and an ID number for the camera. Then automatically the camera connects to your WiFi. My question is: How is this possible?



What I do know:




  1. I did a packet capture and there are UDP packets from the app to Chinese IP addresses.

  2. It did not work on my openWRT router. But it does work on a standard tp-link

  3. I can’t see it setting up any wlan of it’s one. Like for example the chromecast.










share|improve this question
















I just bought a cheap WiFi camera called SriCam SP009 (just to test it). To set it up you have to install an app on your phone. In this app you enter the WiFi password and an ID number for the camera. Then automatically the camera connects to your WiFi. My question is: How is this possible?



What I do know:




  1. I did a packet capture and there are UDP packets from the app to Chinese IP addresses.

  2. It did not work on my openWRT router. But it does work on a standard tp-link

  3. I can’t see it setting up any wlan of it’s one. Like for example the chromecast.







networking wireless-networking router openwrt iot






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Feb 10 '17 at 12:36









CharlieRB

20.5k44490




20.5k44490










asked Feb 10 '17 at 8:24









user1930848user1930848

213




213








  • 2





    A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

    – Mustafa Aktaş
    Feb 10 '17 at 11:38











  • So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

    – user1930848
    Feb 10 '17 at 11:48






  • 1





    For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

    – Mustafa Aktaş
    Feb 10 '17 at 11:56













  • Does it happen to have bluetooth?

    – Blaine
    Feb 10 '17 at 15:00











  • It could be using wifi direct. A lot of wifi speaker use this for their setup process.

    – Patrick R.
    Feb 10 '17 at 17:23














  • 2





    A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

    – Mustafa Aktaş
    Feb 10 '17 at 11:38











  • So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

    – user1930848
    Feb 10 '17 at 11:48






  • 1





    For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

    – Mustafa Aktaş
    Feb 10 '17 at 11:56













  • Does it happen to have bluetooth?

    – Blaine
    Feb 10 '17 at 15:00











  • It could be using wifi direct. A lot of wifi speaker use this for their setup process.

    – Patrick R.
    Feb 10 '17 at 17:23








2




2





A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

– Mustafa Aktaş
Feb 10 '17 at 11:38





A simple implementation would be 1- get wlan credentials from the user via app(already done) 2- connect to the camera's preconfigured ad-hoc network 3- set up the camera 4- reset.

– Mustafa Aktaş
Feb 10 '17 at 11:38













So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

– user1930848
Feb 10 '17 at 11:48





So you think the phone connects to the adhoc network? I did not think android could do that. And that should not be stopped by me having a openWRT router.

– user1930848
Feb 10 '17 at 11:48




1




1





For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

– Mustafa Aktaş
Feb 10 '17 at 11:56







For android, AOSP doesn't support ad-hoc but OEMs and modified distros like CM do. I don't know if iOS does. Also same method can be used via wi-fi direct.

– Mustafa Aktaş
Feb 10 '17 at 11:56















Does it happen to have bluetooth?

– Blaine
Feb 10 '17 at 15:00





Does it happen to have bluetooth?

– Blaine
Feb 10 '17 at 15:00













It could be using wifi direct. A lot of wifi speaker use this for their setup process.

– Patrick R.
Feb 10 '17 at 17:23





It could be using wifi direct. A lot of wifi speaker use this for their setup process.

– Patrick R.
Feb 10 '17 at 17:23










2 Answers
2






active

oldest

votes


















1














I figured it out :) It's using something called "smart connection" by mediatek. You can find a tutorial for it here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/tutorials/digital-clock-part-2






share|improve this answer































    1














    I would like to point out this method. Here, the SSID and passphrasse are encoded into the length of UDP packets send by the phone to the access point.



    http://www.espressif.com/sites/default/files/30b-esp-touch_user_guide_en_v1.1_20160412_0.pdf



    It is implemented and called ESP-TOUCH in the esp8266 WiFi microcontroller.






    share|improve this answer























      Your Answer








      StackExchange.ready(function() {
      var channelOptions = {
      tags: "".split(" "),
      id: "3"
      };
      initTagRenderer("".split(" "), "".split(" "), channelOptions);

      StackExchange.using("externalEditor", function() {
      // Have to fire editor after snippets, if snippets enabled
      if (StackExchange.settings.snippets.snippetsEnabled) {
      StackExchange.using("snippets", function() {
      createEditor();
      });
      }
      else {
      createEditor();
      }
      });

      function createEditor() {
      StackExchange.prepareEditor({
      heartbeatType: 'answer',
      autoActivateHeartbeat: false,
      convertImagesToLinks: true,
      noModals: true,
      showLowRepImageUploadWarning: true,
      reputationToPostImages: 10,
      bindNavPrevention: true,
      postfix: "",
      imageUploader: {
      brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
      contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
      allowUrls: true
      },
      onDemand: true,
      discardSelector: ".discard-answer"
      ,immediatelyShowMarkdownHelp:true
      });


      }
      });














      draft saved

      draft discarded


















      StackExchange.ready(
      function () {
      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1177360%2fhow-does-my-camera-automatically-connect-to-the-wifi%23new-answer', 'question_page');
      }
      );

      Post as a guest















      Required, but never shown

























      2 Answers
      2






      active

      oldest

      votes








      2 Answers
      2






      active

      oldest

      votes









      active

      oldest

      votes






      active

      oldest

      votes









      1














      I figured it out :) It's using something called "smart connection" by mediatek. You can find a tutorial for it here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/tutorials/digital-clock-part-2






      share|improve this answer




























        1














        I figured it out :) It's using something called "smart connection" by mediatek. You can find a tutorial for it here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/tutorials/digital-clock-part-2






        share|improve this answer


























          1












          1








          1







          I figured it out :) It's using something called "smart connection" by mediatek. You can find a tutorial for it here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/tutorials/digital-clock-part-2






          share|improve this answer













          I figured it out :) It's using something called "smart connection" by mediatek. You can find a tutorial for it here https://docs.labs.mediatek.com/resource/mt7687-mt7697/en/tutorials/digital-clock-part-2







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 12 '17 at 20:39









          user1930848user1930848

          213




          213

























              1














              I would like to point out this method. Here, the SSID and passphrasse are encoded into the length of UDP packets send by the phone to the access point.



              http://www.espressif.com/sites/default/files/30b-esp-touch_user_guide_en_v1.1_20160412_0.pdf



              It is implemented and called ESP-TOUCH in the esp8266 WiFi microcontroller.






              share|improve this answer




























                1














                I would like to point out this method. Here, the SSID and passphrasse are encoded into the length of UDP packets send by the phone to the access point.



                http://www.espressif.com/sites/default/files/30b-esp-touch_user_guide_en_v1.1_20160412_0.pdf



                It is implemented and called ESP-TOUCH in the esp8266 WiFi microcontroller.






                share|improve this answer


























                  1












                  1








                  1







                  I would like to point out this method. Here, the SSID and passphrasse are encoded into the length of UDP packets send by the phone to the access point.



                  http://www.espressif.com/sites/default/files/30b-esp-touch_user_guide_en_v1.1_20160412_0.pdf



                  It is implemented and called ESP-TOUCH in the esp8266 WiFi microcontroller.






                  share|improve this answer













                  I would like to point out this method. Here, the SSID and passphrasse are encoded into the length of UDP packets send by the phone to the access point.



                  http://www.espressif.com/sites/default/files/30b-esp-touch_user_guide_en_v1.1_20160412_0.pdf



                  It is implemented and called ESP-TOUCH in the esp8266 WiFi microcontroller.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Oct 27 '17 at 21:24









                  WallfacerWallfacer

                  112




                  112






























                      draft saved

                      draft discarded




















































                      Thanks for contributing an answer to Super User!


                      • Please be sure to answer the question. Provide details and share your research!

                      But avoid



                      • Asking for help, clarification, or responding to other answers.

                      • Making statements based on opinion; back them up with references or personal experience.


                      To learn more, see our tips on writing great answers.




                      draft saved


                      draft discarded














                      StackExchange.ready(
                      function () {
                      StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1177360%2fhow-does-my-camera-automatically-connect-to-the-wifi%23new-answer', 'question_page');
                      }
                      );

                      Post as a guest















                      Required, but never shown





















































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown

































                      Required, but never shown














                      Required, but never shown












                      Required, but never shown







                      Required, but never shown







                      Popular posts from this blog

                      Сан-Квентин

                      8-я гвардейская общевойсковая армия

                      Алькесар