Hi,
I've been searching for a while now, can't figure it out myself:
I want to control screens and shutters from a webinterface by sending hexadecimal commands over serial. It has to be RS485, that's the only interface the controlling device has on board.
My idea was to use a Raspberry Pi in combination with a USB to RS485 serial adapter (PL-2303). This works, I installed Raspbian Wheezy and I can succesfully control the interface using python scripts from a terminal screen.
The next step was to run the python scripts from a web interface. I installed Apache, PHP etc but can't find a simple way to run my python scripts from the webinterface.
I stumbled upon WebIOPi, which seems to be just what I need: a simple webserver to control other devices with serial commands. I can't figure out though how I can send an hex string to the USB0 serial device.
One of the strings I need to send (and which works running a python script from terminal) is \x7F\xF2\xFA\x01\x00\x00\xAE\x78\xFA\xFF\xFB\x06\x86
Should I focus on running my (working) python script using WebIOpi or shoud I use a different approach?
Please advise.
Emdek