Any plans to extend the udp protocol? Would be great to get informations about current displayed colors for example. Many users would like if they could extend their ambient expirience with other third party products like philips hue. This could be done with external services accessing the color data from the DS.
rkk I think we can release that info publicly, just need to run this by the team. I am planning to update the documentation soon anyways for the new HDR Tone Remapping command at the request of sunny99.
I went trough the "FC:06:01:21:03:01:00:C6" UDP command given as en example in this api documents. I have tried to calculate the "C6" CRC parameter using an Excel spreadsheet. I used the Excel "bitxor" and "bitand" formulas. I got inspired by the following python algorithm i have found for your product in github :
"def calcCRC8(resp): size = resp + 1 crc = 0 for i in range(0,size): crc = crcTable[(resp ^ crc) & 255] #print crc #just in for verification return crc"
As you can see below for the example given "FC:06:01:21:03:01:00" the last CRC parameter I got is 55 in a decimal representation which is equivalent to 0x37 in a Hex representation.
i l crc l resp l resp ^ crc l (resp ^ crc) & 255 l crcTable[(resp ^ crc) & 255] 0 l 0 l 252 l 252 l 252 l 250 1 l 250 l 6 l 252 l 252 l 250 2 l 250 l 1 l 251 l 251 l 239 3 l 239 l 21 l 250 l 250 l 232 4 l 232 l 3 l 235 l 235 l 159 5 l 159 l 1 l 158 l 158 l 211 6 l 211 l 0 l 211 l 211 l 55
The "crcTable" table values are already given in your document, no need to paste them here.
I am planing to buy the DIY version, but i want to make sure first that I can control it over a fibaro home center 2 (HC2) home automation system. Which uses the LUA programing language. So I need to make sure that I have to calculated the crc value the right way using this programming language.
Plus have you got any news on the IFTTT or the HTTP interfaces ?
I have no experience with Lua but that crc routine should be able to port over just fine. Unfortunately IFTTT support has officially been cut. The HTTP server has been implemented - just need to port to the other codebases and do some testing, of which has been backlogged
ok = I have only a limited understanding of what I'm doing, and need some help...
I'm using packet sender on my mac to send UDP commands (eventually to be invoked by AppleScript).... I've identified the IP and the port in packet sender and I've TRIED to send the following, which ought to put DS in Video mode: FC:06:01:21:03:01:01:C6 nothing is happening - I'm NOT getting and error from packet sender - the log looks as though the packet was successfully sent. Maybe I have some variables wrong - there are a couple I don't understand - group address (I've tried 00 AND 01, neither works), Flag (I have no idea what this should be), CRC (ditto).... Can anyone help a brother out?