Vstarcam Wifi LED bulb
Moderators: leecollings, remb0
-
- Posts: 85
- Joined: Monday 17 August 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Vstarcam Wifi LED bulb
I bought a couple of these from aliexpress a while ago, they where pretty cheap ~20Eur but the app is worthless as it as in chinese and I have not found any way to use them without the app.
The bulbs get there own IP and comunication seems to be over UDP.
Is there any chance that it will be possible to control them from domoticz?
Here are a link to the bulb.
http://www.aliexpress.com/item/VStarcam ... eb201560_7
Here are some more info from another forum when I last tried to figure out how to control the bulbs.
http://forums.hackaday.com/viewtopic.php?f=5&t=5467
The bulbs get there own IP and comunication seems to be over UDP.
Is there any chance that it will be possible to control them from domoticz?
Here are a link to the bulb.
http://www.aliexpress.com/item/VStarcam ... eb201560_7
Here are some more info from another forum when I last tried to figure out how to control the bulbs.
http://forums.hackaday.com/viewtopic.php?f=5&t=5467
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Vstarcam Wifi LED bulb
Have a look at my topic: http://domoticz.com/forum/viewtopic.php?f=38&t=7957
I have a small RGB-ledstrip dimmer that also works only with an Android app. I was able to sniff the traffic with Wireshark and controlling the dimmer with my own scripts eventually.
How i did it:
Connected a spare router to my PC, set it up as accespoint (disable DHCP server on the router) and let the app/dimmer connect to that new network.
By doing it that way, the traffic MUST pass through the PC, so i was able to log it much easier. Afterall, the commands for my dimmer turned out to be quite simple. But for your bulb it might be harder, don't know.
I used this filter to filter out the interesting data:
udp.port eq 30978 and udp.port eq 30977
In your case it uses port 55056 and 5580 (i saw that on the screenshot on Hackaday forum), so i would try this:
It will probably be in HEX-format. Have a look in my topic to see how that works.
I have a small RGB-ledstrip dimmer that also works only with an Android app. I was able to sniff the traffic with Wireshark and controlling the dimmer with my own scripts eventually.
How i did it:
Connected a spare router to my PC, set it up as accespoint (disable DHCP server on the router) and let the app/dimmer connect to that new network.
By doing it that way, the traffic MUST pass through the PC, so i was able to log it much easier. Afterall, the commands for my dimmer turned out to be quite simple. But for your bulb it might be harder, don't know.
I used this filter to filter out the interesting data:
udp.port eq 30978 and udp.port eq 30977
In your case it uses port 55056 and 5580 (i saw that on the screenshot on Hackaday forum), so i would try this:
Code: Select all
udp.port eq 55056 and udp.port eq 5880
I am not active on this forum anymore.
-
- Posts: 85
- Joined: Monday 17 August 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Vstarcam Wifi LED bulb
Thanks, but I don't really know how to proceed. How do I know what part of the data that is the interesting part?
-
- Posts: 890
- Joined: Tuesday 30 September 2014 8:49
- Target OS: Linux
- Domoticz version: beta
- Location: The Netherlands
- Contact:
Re: Vstarcam Wifi LED bulb
It's very hard to tell from here what you should look for. I am not a network specialist, so i can't say: 'look for ABC or XYZ in menu ...'
I think the messages are a bit long and also those are sent to the broadcast address (.255). Aren't there any shorter messages that are send to the IP of the bulb itself (does it get an IP from your router?).
I think the messages are a bit long and also those are sent to the broadcast address (.255). Aren't there any shorter messages that are send to the IP of the bulb itself (does it get an IP from your router?).
I am not active on this forum anymore.
Re: Vstarcam Wifi LED bulb
Hi!
Did anyone in the meantime manage to reverse engineer the protocol?
I received my wifi led bulb yesterday, and will try to reverse engineer it, if not already done.
Cheers,
Chris
Did anyone in the meantime manage to reverse engineer the protocol?
I received my wifi led bulb yesterday, and will try to reverse engineer it, if not already done.
Cheers,
Chris
-
- Posts: 85
- Joined: Monday 17 August 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Vstarcam Wifi LED bulb
Sorry for the slow response, but I fiddled around little with the bulbs and after connecting it to the wifi using the crappy chinese e4home app. I have managed to send some commands to it. Maybe some of you brainiacs could compose some kind of script or similar to be able to control it a little more easy.
Send a UDP packet to the Ip of the bulb and the port 5880 (I don't know if the port is the same for all bulbs)
with this similar "data":
55 aa 00 31 01 00 00 00 00 00 00 14 31 a1 00 00 00 00 20 00 03 00 00 18 37 34 c7 00 00 00 00 01 e7 00 0c 00 00 00 00 29 c9 00 00 00 00 01 2c 01 2c
I suck at this kind of stuff but the underlined part ( and probably some part to the right of the underlined part) seems to be a hex value for the color. I have had some problems getting the same color as the one i expected from the hex value I change it to so I am guessing that you specify one, two or three hex values and the colormix is the result. I have not had the time to figure that one out
Send a UDP packet to the Ip of the bulb and the port 5880 (I don't know if the port is the same for all bulbs)
with this similar "data":
55 aa 00 31 01 00 00 00 00 00 00 14 31 a1 00 00 00 00 20 00 03 00 00 18 37 34 c7 00 00 00 00 01 e7 00 0c 00 00 00 00 29 c9 00 00 00 00 01 2c 01 2c
I suck at this kind of stuff but the underlined part ( and probably some part to the right of the underlined part) seems to be a hex value for the color. I have had some problems getting the same color as the one i expected from the hex value I change it to so I am guessing that you specify one, two or three hex values and the colormix is the result. I have not had the time to figure that one out
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Vstarcam Wifi LED bulb
is this rgbw bulb, Philips Hue like?
Or more a wifi bulb like applamp ?
Or more a wifi bulb like applamp ?
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
-
- Posts: 85
- Joined: Monday 17 August 2015 21:25
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: Vstarcam Wifi LED bulb
I don't understand what you mean but the lamp is rgb like the hue and uses Wifi for communication directly, no bridge. I don't know the lux or color accuracy as I don't own any other rgb bulb to compare it to.
-
- Posts: 1602
- Joined: Friday 18 October 2013 23:33
- Target OS: Raspberry Pi / ODroid
- Domoticz version: BETA
- Location: Arnhem/Nijmegen Nederland
- Contact:
Re: Vstarcam Wifi LED bulb
Sorry.burton666 wrote:I don't understand what you mean but the lamp is rgb like the hue and uses Wifi for communication directly, no bridge. I don't know the lux or color accuracy as I don't own any other rgb bulb to compare it to.
The Hue is 1000% better then the Wifi bulbs...
That is why iam asking, i do now this lamp.. only perhaps it is a cheaper option..
Xu4: Beta Extreme antenna RFXcomE,WU Fi Ping ip P1 Gen5 PVOutput Harmony HUE SolarmanPv OTG Winddelen Alive ESP Buienradar MySensors WOL Winddelen counting RPi: Beta SMAspot RFlinkTest Domoticz ...Different backups
Re: Vstarcam Wifi LED bulb
For those of you who may still be interested in controlling the VStarCam AF820 Smart Light. . .
Although I have had no success programming the ESP-8266 directly on the VStarCam AF820 Smart Light itself, I have had some luck deciphering the protocol used to communicate with it. I have created a Node.js project that you can use to control the bulb (via MQTT) and also documented what I know/understand of the protocol. Perhaps this will benefit someone interested in integrating the bulb into an IoT network.
The project can be found here:
https://gitlab.com/iot/af820smartlight
Let me know if there are any questions. Have Fun!
Although I have had no success programming the ESP-8266 directly on the VStarCam AF820 Smart Light itself, I have had some luck deciphering the protocol used to communicate with it. I have created a Node.js project that you can use to control the bulb (via MQTT) and also documented what I know/understand of the protocol. Perhaps this will benefit someone interested in integrating the bulb into an IoT network.
The project can be found here:
https://gitlab.com/iot/af820smartlight
Let me know if there are any questions. Have Fun!
Who is online
Users browsing this forum: No registered users and 0 guests