I have been working on making a commercial-equivalent smart WiFi bulb. I cannot understand how the bulb pairs with the app on smartphone and gains access to the Internet through my personal modem. The bulb cannot communicate through the personal WiFi before getting paired, as it doesn't have the credentials. I tried to experiment with my existing commercial bulb and while putting it in reset mode, noticed -
There wasn't any WiFi (that could be the bulb's AP) visible in the available networks list of my PC. Well, I don't know if it was a hidden network.
There wasn't any Bluetooth device visible in the list that could possibly be the bulb.
So I want to know how the bulb communicates with the app -
Does it act as AP (Access Point) and the app connects to it and gives it the credentials.
Else, does the bulb use any other type of communication to pair with the app.
Or, does it somehow just get to the smartphone and it all "mysteriously" works.
I would be happy if someone could explain the process to me. Also, the app scans for the available devices whenever I want to pair to a new device. Then, I can select the desired device and pair it. So, please also explain (if possible) how the scanning works.
No need to get to each technical detail, I just want to know the process. I will ask later if I need the tech details.
EDIT:
Also, Please explain how the same works with bluetooth.
mine do. I've a box that is connected to my ethernet network and and that box speaks through a custom protocol and hardware (Zigbee, bluetooth, ...) to the bulb. The pairing is with the box, not the bulb
some other do have indeed wifi embeded.
if you go with WiFi your bulb initially is in AP mode and has a captive portal to collect the SSID and PWD or your network. Then it reboots and connects. There is a library to do just this (WifiManager)
Since the bulbs can’t directly connect to your home’s Wi-Fi network, the Hue Bridge is a hub that acts as the middleman of sorts. Your light bulbs connect to the hub, and the hub connects to your router.
Thanks (sorry for the late response)
My bulb doesn't depend on a hub.
BUT @J-M-L said,
"if you go with WiFi your bulb initially is in AP mode and has a captive portal to collect the SSID and PWD or your network. Then it reboots and connects."
The AP should be visible in the list of available networks on my PC. But it wasn't. Why is it so?
Is it a hidden network?
It seems they have a dedicated app (Syska Smart Home App) for this lamp, possibly a hidden network and some sort of secure proprietary pairing process - even may be through BLE. The bulb can be driven by Google or Alexa so it must support those protocols once activated. You would need to find the technical doc for the bulb and study those API