1. Current Location: Home >  Comprehensive classification >  Smart devices need to enable location permissions for network setup, and WiFi passwords have four paths

Smart devices need to enable location permissions for network setup, and WiFi passwords have four paths

Four paths for smart device network setup: device hotspot, one-click network broadcasting, Bluetooth network setup, and QR code network setup

When I connected the waterer on my sister's balcony, the first message the app popped up was, "Please grant location permission." She asked me on the spot: Why would someone watering plants need location tracking? Do you even check my address? I couldn't answer at the time, only knowing that if permission wasn't granted, the next button would be grayed out. Later, as the family installed more devices, the vacuum cleaner blew up five times, the light bulb switch broke eight times, and forty devices disappeared all at once due to the renovation worker's trending topic. Looking back at all this, I realized: network failures always lag at different stages because the phone sends the WiFi password to the device, so they don't follow the same path at all.

First, let's clarify what the network configuration actually is

Devices like cameras, sockets, and doorbells have no keyboard or screen. The name and password of your WiFi at home have to be moved from the phone into its belly. After this move, the device connects to the router itself, and the later part has nothing to do with the phone. So the essence of network configuration is very simple: insert the SSID and password strings into the device.

The problem is how to plug it in. At this moment, no connection had been established between the device and the phone; the password had to be passed through a temporary passage. How to build this passage varies by family, but in the end, there are four main routes. The buttons in the app for "Quick Connection," "One-Click Network Setup," and "Hotspot Configuration" have all sorts of names, but each actually represents one of these four paths.

Describe the four password-transmitting paths one by one

Rule 1: The device generates its own hotspot, and the phone connects to deliver it. The device first becomes a temporary hotspot, usually named "Device Name - XXXX" or something similar. You manually connect your phone to this hotspot—note, this will disconnect your home network—the app sends you the WiFi password, and once the device receives it, the hotspot closes and turns back to connect to your home router. This route is the oldest, with Hikvision and Ezviz using the old cameras most frequently. The advantage is that there's a back-and-forth throughout the process, so if something is wrong, the device can let you know; The downside is that the phone has no internet connection to the hotspot for a few seconds. Some phones see "can't access the internet" and arbitrarily switch back to data, cutting off all data and messages.

Rule 2: The phone shouts into the air, and the device eavesdrops. This is the "one-click network setup" path, the most convenient button in the app. After entering the password, click the starting point, and your phone sends dozens or even hundreds of small packets, encoding the WiFi name and password into each packet's length. The chip on the other end of the device was in mixed mode, just listening without speaking, counting all the packages passing through the air, and piecing the passwords out of the packet's length and rhythm. Yes, the password isn't written inside the package, but hidden in its length—because devices not connected to the internet can't access the contents of the package, so you can only count the length. This method is called SmartConfig, the Espressif version ESP8266 used is called ESP-TOUCH, and the WeChat version back then was called AirKiss. The phone stays connected the whole time, offering the best experience, but success depends on luck: you have to post it over and over again, and if the environment is noisy, you get misunderstood. Moreover, it only recognizes 2.4G—if a phone is stuck to 5G, broadcasting all broadcasts on the 5G band, the 2.4G chip won't be heard at all. My robot vacuum blew up five times back then, and the main culprit was this one ( the whole process was written about the network failure of the vacuum cleaner).

Rule 3: First, use Bluetooth to hold hands, then hand over your password. The device first sends a Bluetooth broadcast. When the mobile app finds it, you tap to connect, use the encrypted Bluetooth lane, hand over the password, and after the device gets it, it connects to WiFi itself. The phone stays connected to the home network throughout the entire time, so errors can be reported when mistakes occur, with a success rate so high that manufacturers dare to claim 99%. My sister's balcony curtain motor and waterer both follow this route, passed in one go ( the article about the three balcony devices is recorded). The trade-off is that the device has an extra Bluetooth chip, so older devices don't have this path; only new models released in recent years have become popular.

Rule 4: Camera screen view. Exclusive for devices with cameras: The app sets the WiFi name and password into a QR code and displays it on the phone screen. You just hold the screen in front of the camera, and it scans to get it, eliminating even pairing. No need to establish any connections, making it the most direct of the four paths. The "QR Code Network Setup" button in the camera app with a gimbal is this one.

Back to location permissions: the system stipulates that the app does not want to check household registration

Starting from Android 8.0, "reading WiFi information" has been included in location privacy: the app reads the name of the currently connected WiFi and scans the nearby WiFi list, and the system treats it as "this guy trying to find out where you are"—because the WiFi name can indeed reverse the location. By Android 9, the strictest rule was set: no location permissions, apps can't even get the name of your WiFi, and the WiFi name on the setup screen is completely blank. So it's not that the device needs to check your address; it's the system that requires it to get the location first to work.

What's even more frustrating is the second switch. Even if permission is granted, the system's main positioning switch (the "Location Information" in the dropdown bar) is off, but the scan results still return to an empty list. I once encountered this trap when helping my mom get a device: permission was clearly given long ago, but the device couldn't be found. After fiddling for a while, I realized she had just turned off the main location switch in power-saving mode. Permissions and master switches—both must be enabled. Additionally, the system limits scanning frequency. The front-end app scans up to four times every two minutes. If you repeatedly tap "Refresh WiFi list" and nothing happens, it's not that the app is lagging, but the system is covering its mouth.

By the way, the Zigbee-powered devices like door locks and sensors don't participate in this process at all; they pair with the gateway and don't connect to WiFi (as written about in the Zigbee article). Bluetooth door locks are the same; there's no such thing as 'network configuration' ( compared in the door lock networking selection section). So before network setup fails, first confirm: is your device actually the WiFi version?

My family crashed several times, and looking back, the road was completely different

I've categorized several network distribution accidents I've written about on the site, and it's easy to see why online tutorials contradict each other—because the checkpoints are fundamentally different.

How which at and where to fix it? The in frequency , The . On , to
to fixroad you tookthe crash site
vacuum exploded five timesa row, one-click network setup, phone stuck to 5G, broadcast on the wrongband and split the dual band, phone stuck to 2.4G
My mother-in-law's house can't match the camera for one-click network setupso my phone always grabs 5G signal. I turned off 5G on the spot, then turned it back on after installing it ( the article about turning off 5G).
bulb reset took eight attempts with no response, and I switched to one-click network setup Wrong number of switches, device not even connected to network mode. Check the manual code: flash only counts as wake-up
Forty devices went missing together.every roadtechnicians used their phone's hotspotcopy the old WiFi name and rescue it ( the article about saving Forty-Unit Radio).

The light bulb incident was the most unfortunate. NVC's bulb needs to be switched on and off eight times to enter the network mode. I miscounted once the first night, which was like shouting at a device that hadn't woken up while holding my phone. Shouting all night was useless ( I wrote about this in the bulb selection article). So the first thing that fails to configure the network isn't to restart the router, but to check if the device is in the network configuration—the light flashes quickly, and the voice message says 'network configuration'. Different brands have different signals, and turning to this page in the manual is better than anything else.

How to determine which path your own equipment is heading

No need to check the chip manual—just look at the app network interface to guess the first point: the first thing that lets you "connect to the device hotspot" is the first one; The second one-click network setup has only one password input box and a circle when tapped to start; The first thing that lets you turn on Bluetooth to search for devices is the third item; The fourth rule that asks you to point the screen at the camera is the fourth point. Judge the route clearly, and if you fail, check the table below to avoid deviation.

device hotspots? house? ? Bluetooth ? QR code scanning for
What to check first for failed
After connecting to the hotspot, the app freezes the phone—is it secretly cutting data? Is the hotspot connected to the neighbor's
One-click network setup, spinning in half a day, reporting timeout. Is the phone still on 2.4G ( dual-band split); Whether the password contains any special characters; Is it that the broadcast is blocked while hanging on the guest network
distribution networks cannot find device location permissions or master switches; Is Bluetooth blocked by the phone's power-saving strategy
network settings doesn't recognize the screen brightness maxed out; QR code zoom; Stay close to a punch and don't get close

A quick note about guest networks: Guest network and AP isolation handle broadcast packets differently depending on the firmware—some allow it, some block it. If one-click network setup fails and you can't find the cause, first check if your phone is connected to guest WiFi, then switch back to the main network and try again.

Going online doesn't mean it's done; three things to wrap up

On the night the network was successfully installed, I fixed on three tasks. First, change the device's own password, especially the camera—the default password is empty, and the camera is left open ( this was a failure in the camera security self-check article). Second, go to the router's backend and change the new device's name to something recognizable, like "Balcony Waterer." Otherwise, there's a row of android-xxxx lying in the backend where you can't tell who's who ( how to read the status page field). Third, add a line to the ledger: model, location, and the WiFi name you're connected to. This line of writing could be life-saving on the day I replaced the router—if the technician's hotspot had a record of those forty units, I could call in ten minutes and wouldn't have to test them one by one.

The order is: grant permissions, turn on the main switch, confirm the device is in distribution network mode, determine which route to take, fail by matching the table, and the password is changed for the night to record the ledger. Network setup seems mystical; when you break it down, you check each of the four channels separately, which is much more effective than replacing the router.

Read More


Copyright Notice Scan to read on mobile
All Rights Reserved: 《SHUNOT》 => 《Smart devices need to enable location permissions for network setup, and WiFi passwords have four paths》
Article URL: https://www.shunot.com/en/zhonghe/1219.html
Unless otherwise stated, all articles are original by 《SHUNOT》. Reposting is welcome! Please indicate the original URL when reposting, thank you.

Contact Us

Online Consultation: Click here to send me a message

WeChat ID: master_135

Scan to follow