LCD UDB Edition 1 / DE-LD011
Hello,
I bought a "LCD Display USB (Edition 1)". I can use this very simple device over USB. Linux says me, that the device is a "cp210x" usb2serial-device. That's ok. "cp210x" creates me the device "/dev/ttyUSB0". This device, i think, should be used to program the LCD. I searched and i searched, but i didn't find a needable software to program the device. May the communication is no standart? But, no problem, there are only a few commands. They're descripted in a pdf: http://www.sure-electronics.net/down..._Ver1.0_EN.pdf For example: 0xFE 0x46 Should turn the backlight off. 0xFE 0x42 0x00 Should turn the backlight on. 0xFE 0x98 0x[01-FE] Should define the the brightness of the LCD. There are a few other commands. But the only one that works for me is the command to turn the backlight off. Why? All the other commands do nothing... May be i make something wrong. Or there's a software for this board? I use this code to configure the LCD: Code:
// best regards toredo -edit- I listend on my windows machine with the tool portmon the serial port with the device. Then i used LCD Smartie to work with the device. The communication looks ok. After this i tried to write a c#-tool for the device: Code:
SerialPort sp = new SerialPort("COM24"); But, i tried this to write in Perl or C. but it never worked? As base i used to C-Code upside. For Perl i used Device::SerialPort. May my parameters are bad? Has anyone an idea? best regards toredo |
Hello,
I wrote a tool to test many things in C#. It works correctly on windows. With the same tool on linux only some commands work, but not all work. Why? I grabbed the needed settings with portmon. Firstly are the settings and then my test-binary-data, which should show on the display in the row 1 "3333333333333333". Screenshot: http://img607.imageshack.us/img607/9494/rs232.png I tried to code this in Perl (Device::SerialPort), C# (SerialPort-Class) and C on linux. But nothing runs ok... It there a way to log the data which goes over the /dev/ttyUSB0? Or can someone show me a code which defines these settings? thank, best regards toredo |
All times are GMT -5. The time now is 08:07 PM. |