|
geekyhawkes
|
 |
« on: May 20, 2009, 09:43:45 pm » |
|
Right guys, after some digging on the internet i have managed to find the rs232 protocols for my Dell 37In LCD. I have attached the page from the spec document, but am unsure how to get this information into MCE in a usable fashion. Can anyone help please? 
|
|
|
|
« Last Edit: May 20, 2009, 09:45:52 pm by geekyhawkes »
|
Logged
|
|
|
|
|
|
|
geekyhawkes
|
 |
« Reply #2 on: May 21, 2009, 06:25:16 pm » |
|
Thanks for the post, i had been looking for the sharp tv one but found the wiki empty as well. I have looked through the LG wiki you posted but have a few questions after reading it and comparing it to the spec document i have for my tv.
"Device data Current Data Comments Default Value #37 COM Port on PC(string) The serial port #76 COM Port ParityBit/Stop(string) Parity/Stop bits (factory defaults) N81 #78 COM Port BaudRate(string) Baud rate (factory default) B9600 #157 Discrete Volume(bool) Indicates if the volume on... 1
Settings are factory defaults and shouldn't be changed (9600 baud rate, 8 bits, 1 stop bit). Make sure that the check box for Allowed to Modify is checked, so that you can change to the appropriate COM port later. "
But according to my spec document i should set the baud rate to 19200 and no parity. Are there major issues if i do this? (Once i get my machine up and running i might go for trial and error here if there are no answers....)
Secondly i am not sure how to deliver the payload to my TV. The spec document calls for a very long string to be sent, much longer than in the LG example IE;
EF BE 10000 329 E8 1111 000 10C which is much longer than the LG example.
Can anyone help me out with this?
|
|
|
|
|
Logged
|
|
|
|
pigdog
wants to work for LinuxMCE
 
Posts: 783
|
 |
« Reply #3 on: May 22, 2009, 12:48:59 pm » |
|
Hi,
You will need to set the baud rate to match the comm input used or you'll have no communication on the port or misunderstood/garbage syntax.
What model of TV or you trying to hook up to?
Cheers.
|
|
|
|
|
Logged
|
|
|
|
|
geekyhawkes
|
 |
« Reply #4 on: May 22, 2009, 11:20:16 pm » |
|
dell 37in LCD widescreen
|
|
|
|
|
Logged
|
|
|
|
|
geekyhawkes
|
 |
« Reply #5 on: June 04, 2009, 01:53:47 pm » |
|
Is anyone able to offer me a few more clues on using rs232? I am also planning on using rs232 to control a yamaha ysp1, i have the details from yamaha of all the commands but dont really have an idea where to start! Are there any copies of working rs232 scripts i could look at / change for the hardware I own? The sharp tv stuff seems to have been taken of the wiki and the rest is all pretty general.
|
|
|
|
|
Logged
|
|
|
|
|
hari
|
 |
« Reply #6 on: June 04, 2009, 03:02:15 pm » |
|
there are plenty of rs232 based tv templates in lmce, like LG or Sharp. You want a template for a GSD (generic serial device). You implement the "infrared codes" as ruby codes for rs232. It is really easy, just look at the existing templates, create a new one in the proper category, select device data and such, select command groups (tv commands, ...), put in ruby snippets for each command. There is a macro for the ruby conn_.Send("example\r") command, saves some typing: <$"example\r"$> read this: http://wiki.linuxmce.org/index.php/Generic_Serial_Devicethen this: http://wiki.linuxmce.org/index.php/Control_A/V_equipment_with_RS232/USB/Ethernetmore background: http://wiki.linuxmce.org/index.php/GSD_-_Ruby_codeseven more background: http://wiki.linuxmce.org/index.php/Make_a_DCE_Device_in_5_minutesbest regards, Hari
|
|
|
|
|
Logged
|
|
|
|
|
castlec
|
 |
« Reply #7 on: June 04, 2009, 06:03:36 pm » |
|
On the same front, since the topic is already up, does anyone have any suggestion on a place to buy USB to RS232 converters in the US? Any suggestions on what to avoid if anything?
Chris
|
|
|
|
|
Logged
|
|
|
|
|
geekyhawkes
|
 |
« Reply #8 on: June 04, 2009, 09:11:13 pm » |
|
Thanks for the links. I am hoping it will be more obvious when i get my install up and running. The only issue i have is that the commands my tv/amp ask for seem much longer than some of the other devices listed... EF BE 10000 329 E8 1111 000 10C to just turn my TV on!
|
|
|
|
|
Logged
|
|
|
|
|
hari
|
 |
« Reply #9 on: June 04, 2009, 10:46:44 pm » |
|
and where is the problem with the command length? Those few bytes are send way fast over rs232.
br, Hari
|
|
|
|
|
Logged
|
|
|
|
|