News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

Need help with rs232 tv

Started by Afkpuz, November 01, 2008, 08:27:46 AM

Previous topic - Next topic

darrenmason

If you are just trying to send serial commands then you might be better with the short form.
This allows you to simply enter the serial commands to send without all the ruby syntax.

Described here....
http://wiki.linuxmce.com/index.php/Generic_Serial_Device

Afkpuz

Ok, well then how exactly do I do that?  I've tried putting the code straight in.  I've also tried

<$"BE 05 27 00 EA"$>

hari

you better not send the hex values as ascii strings :-)
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Afkpuz

Arg!  Can someone just tell me what to type in there?  I have no idea what I'm doing with that hex code!

tschak909

http://www.rubycentral.com/pickaxe/language.html

Start at the "Strings" section.

The needed info is in there.

-Thom

Afkpuz

Ok, here are the things that I've tried.  I read you link Thom, but I don't know which criteria I should use.

I tried these entries.
<$"BE 05 27 00 EA"$>  <$"BE052700EA"$>
"BE 05 27 00 EA"     "BE052700EA"
"\xBE \x05 \x27 \x00 \xEA"   <$"\xBE \x05 \x27 \x00 \xEA"$>


Does anyone have a straight answer for me?  Thom's link is great, but I still didn't know what I was looking for under "strings".

tschak909

try, <$"\xBE\x05\x27\x00\xEA"$> .. keep in mind that spaces are literal bytes as well, so they will be parsed by the tv..so you need to remove them. The spaces in the protocol specification are simply for visual purposes.

-Thom

PeteK

Quote from: Afkpuz on December 06, 2008, 06:04:33 AM
Ok, here are the things that I've tried.  I read you link Thom, but I don't know which criteria I should use.

I tried these entries.
<$"BE 05 27 00 EA"$>  <$"BE052700EA"$>
"BE 05 27 00 EA"     "BE052700EA"
"\xBE \x05 \x27 \x00 \xEA"   <$"\xBE \x05 \x27 \x00 \xEA"$>


Does anyone have a straight answer for me?  Thom's link is great, but I still didn't know what I was looking for under "strings".

I sent you my Olevia 232T template screen shots which work in 0710.  Can you please add the information to a wiki page, like this one?

http://wiki.linuxmce.org/index.php/LG_42LB5D

Thanks,
-Pete

Afkpuz

Hmm.  I'm not sure that anything is even being sent to the TV.  Anyone know of a utility outside of LMCE (like a kubuntu app) that I could use to test my serial port?  <$"\xBE\x05\x27\x00\xEA"$> does not work.


And PeteK, I can add it to the wiki, but I don't have it working, so I don't have all the information you have.  Do you have the on/off functions working?  If so, what exactly do you use for those ruby codes?

tschak909

We provide a utility called TestSerialPort for this very purpose. You can see it being used in the scripts in the /usr/pluto/pnp directory.

-Thom

Afkpuz

PeteK, sorry, I was having email prgram difficulties and didn't notice that you sent more than 1 picture, so I will put that information into the wiki.  You should talk with Thom about getting your script/template implemented in the next release.

Afkpuz

PeteK, I've made a preliminary page on the wiki with your information.  However, I'm still having trouble getting any response from my tv.  I mimicked every single setting in those pictures you sent and still cannot get anything.  I'm starting to wonder if I have a bad cable or a bad jack on the TV. 

I tried using your script via the terminal and it claimed that I didn't have an olevia TV.  I got the message "unknown N81".  When I looked at the code of the script, I noticed that port is set to "$3".  I don't know much about how the pnp scripts work, but is this correct?  shouldn't this be something like /dev/ttyS0? 

Afkpuz


PeteK

I checked in my Olevia template a few days ago.  Try doing a sqlCVS update and let me know if that template works for you.


tschak909

nuh uh. that was to schema. do NOT use schema on 0710!

-Thom