Welcome to Smart Home Forum by FIBARO
Dear Guest,
as you can notice parts of Smart Home Forum by FIBARO is not available for you. You have to register in order to view all content and post in our community. Don't worry! Registration is a simple free process that requires minimal information for you to sign up. Become a part of of Smart Home Forum by FIBARO by creating an account.
As a member you can:
- Start new topics and reply to others
- Follow topics and users to get email updates
- Get your own profile page and make new friends
- Send personal messages
- ... and learn a lot about our system!
Regards,
Smart Home Forum by FIBARO Team
Question
rb338 5
I've got several WiFi RGBW LED controllers which I can control with apps for Android and iOS.
Now, my goal is to make a virtual device in the HC2 so I can control the LEDs from there. To reverse engineer the protocol, I installed an Android client with the app on my PC and enabled Wireshark to find out what happens.
I'm a total newbie on this area, so maybe anyone can help out here?
First step: turn it on and off.
What did I do: start Wireshark, make the app connect, push power (turns it off) and push power again (turns it on).
What do I see?
Every second the app sends a package (length: 1, data: ff).
When I push the power button it sends a package (length: 12, data: 5535656302000212a9bfaaaa)
When I push powe again it sends a package (length: 12, data: 5535656302000212abc1aaaa)
When I "follow" the TCP package and show it as a C array, it tells me:
char peer1_0[] = {
0x55, 0x35, 0x65, 0x63, 0x02, 0x00, 0x02, 0x12,
0xa9, 0xbf, 0xaa, 0xaa };
char peer1_1[] = {
0x55, 0x35, 0x65, 0x63, 0x02, 0x00, 0x02, 0x12,
0xab, 0xc1, 0xaa, 0xaa };
I've included a screenshot as well.
Can anyone help me along? Once I can get the on/off commands to the device, I can figure out how to control R, G, B and W using a slider
Please login or register to see this image.
/emoticons/default_smile.png" alt=":)" srcset="https://forum.fibaro.com/uploads/emoticons/[email protected] 2x" width="20" height="20" />For example, I don't know in what format I have to send the package. I'm also not sure if the 1 byte ff package every second is necessary, this might be just a keep-alive for the connection.
Thanks for any help!!
Please login or register to see this attachment.
Link to comment
Share on other sites
2 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.