-
Notifications
You must be signed in to change notification settings - Fork 143
Description
Hi,
as the app did not work for my led strip (AK001-ZJ200 as reported by HF-A11ASSISTHREAD), I decided to dig a bit how to do it without the app and wrote this up just in case someone else wants to do the same, or if someone wants to try to integrate this to the code-base.
I found a link to a spec sheet from https://github.com/vikstrous/zengge-lightcontrol which describes the 48899 port communication to some extent: http://www.hi-flying.com/downloadsfront.do?method=picker&flag=all&id=dc406e44-84ec-4be1-ab11-a4ce403f6d3f&fileId=0f147d14-d0aa-4fc8-b01f-36e43418d19d .
For starters you must connect to the network advertised by the device LEDnetXXXX or similar.
It should also be noted that some commands require passing a \r while others do not.
On successful commands this device yields +ok= (for queries followed by the response).
The wifi mode can be queried and set with the AT+WMODE command, so the first step was to change the controller from AP to STA mode:
echo 'AT+WMODE=STA\r' | nc -u 10.10.123.3 48899
This device required STA all uppercase, a diversion from that spec sheet.
Setting the SSID and the key worked as follows:
echo 'AT+WSSSID=<NETWORK>' | nc -u 10.10.123.3 48899
echo 'AT+WSKEY=WPA2PSK,AES,<PASSWORD>' | nc -u 10.10.123.3 48899
The first two parameters needs to be adjusted accordingly depending on used encryption mode and cipher, this device accepted only all-uppercase variants. Note that adding \r after the password would include that in it, the same is probably true for the name of the network.
After that the device can be rebooted and will hopefully connect to the network:
echo 'AT+Z\r' | nc -u 10.10.123.3 48899
Apparently some sort of software version can be requested by using VER, FVER and/or LVER, on my device only LVER did give a response:
AT+LVER\r
+ok=33_17_20170825_IR
It would be nice to have this integrated into this library & script, but I don't unfortunately have time for it. Hopefully this can be helpful to someone who wants to implement it, and maybe it helps someone who is looking into how to get these paired without the official "magic home" app.