Vstarcam Wifi LED bulb

Topics (not sure which fora)
when not sure where to post, post here and mods will move it to right forum.

Moderators: leecollings, remb0

Post Reply
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Vstarcam Wifi LED bulb

Post by burton666 »

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
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Vstarcam Wifi LED bulb

Post by ThinkPad »

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:

Code: Select all

udp.port eq 55056 and udp.port eq 5880
It will probably be in HEX-format. Have a look in my topic to see how that works.
I am not active on this forum anymore.
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Vstarcam Wifi LED bulb

Post by burton666 »

Thanks, but I don't really know how to proceed. How do I know what part of the data that is the interesting part?
wireshark.PNG
wireshark.PNG (97.09 KiB) Viewed 2642 times
ThinkPad
Posts: 890
Joined: Tuesday 30 September 2014 8:49
Target OS: Linux
Domoticz version: beta
Location: The Netherlands
Contact:

Re: Vstarcam Wifi LED bulb

Post by ThinkPad »

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 am not active on this forum anymore.
ChrisMuc
Posts: 1
Joined: Friday 12 February 2016 12:45
Target OS: -
Domoticz version:
Contact:

Re: Vstarcam Wifi LED bulb

Post by ChrisMuc »

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
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Vstarcam Wifi LED bulb

Post by burton666 »

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
Derik
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

Post by Derik »

is this rgbw bulb, Philips Hue like?
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
burton666
Posts: 85
Joined: Monday 17 August 2015 21:25
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Vstarcam Wifi LED bulb

Post by burton666 »

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.
Derik
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

Post by Derik »

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.
Sorry.
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
gschmott
Posts: 1
Joined: Sunday 24 July 2016 23:08
Target OS: Linux
Domoticz version:
Contact:

Re: Vstarcam Wifi LED bulb

Post by gschmott »

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!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest