2009-07-10, 13:26
Hello I have a question witch I hope someone can help me with.
I have Installed XBMC on a Ubuntu on my AsRock 330 system which just run great.
I then have a Chromoflex Controller to controller the light behind my TV. Wicth i normally have my own written Windows Application to controle. But since I now run XBMC on Ubunto I can’t use that.
So my thort was if it would be possible to mace a simple Python Script which can be run from the Application or Plugin menu on XBMC and send the required command to the controller via the serial port.
I would just to start with have one file to run for each color.
Can someone tell my if that’s possible and if how ?
The Controller uses standard 8 Statabits, 1 Stopbit, No Parity or “9600 8N1“.
And has only the ground and transmit pin connected since the controller can’t send any data back.
The data I need to send is like this:
A reset command :
In HEX = CA 00 00 00 00 00 FE 8C F0
In ASCII= 202 0 0 0 0 0 254 140 240
And to Set the color eg.
In HEX =CA 00 00 00 00 05 7E 04 00 00 FF 64 9E 91
In ASCII =202 0 0 0 0 5 126 4 0 0 255 100 158 145
Hope someone can help my with that.
I have Installed XBMC on a Ubuntu on my AsRock 330 system which just run great.
I then have a Chromoflex Controller to controller the light behind my TV. Wicth i normally have my own written Windows Application to controle. But since I now run XBMC on Ubunto I can’t use that.
So my thort was if it would be possible to mace a simple Python Script which can be run from the Application or Plugin menu on XBMC and send the required command to the controller via the serial port.
I would just to start with have one file to run for each color.
Can someone tell my if that’s possible and if how ?
The Controller uses standard 8 Statabits, 1 Stopbit, No Parity or “9600 8N1“.
And has only the ground and transmit pin connected since the controller can’t send any data back.
The data I need to send is like this:
A reset command :
In HEX = CA 00 00 00 00 00 FE 8C F0
In ASCII= 202 0 0 0 0 0 254 140 240
And to Set the color eg.
In HEX =CA 00 00 00 00 05 7E 04 00 00 FF 64 9E 91
In ASCII =202 0 0 0 0 5 126 4 0 0 255 100 158 145
Hope someone can help my with that.