LinuxMCE Forums
General => Users => Topic started by: klanmce on January 09, 2012, 11:10:13 pm
-
I am trying to get the discrete codes for a Toshiba model 24SL410U, as you can press the input button and a number, for example, hdmi 1 is input + 1.
I tried combining the following codes
input
0000 006D 0022 0002 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0611 0156 0056 0015 0E4E
3
0000 006D 0022 0002 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0610 0156 0056 0015 0E4B
Producing the following, but it does not work, any thoughts what on why
combined
0000 006D 0022 0004 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0611 0156 0056 0015 0E4E 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0610 0156 0056 0015 0E4B
I have also tried creating a generic serial device and input some ruby codes, but it does not work, see codes below
system ("/usr/pluto/bin/MessageSend Dcerouter 0 86 1 984 9 \"0000 006D 0022 0002 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0611 0156 0056 0015 0E4E\"")
system ("sleep 1")
system ("/usr/pluto/bin/MessageSend Dcerouter 0 86 1 984 9 \"0000 006D 0022 0002 0156 00AB 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0016 0015 0040 0015 0040 0015 0040 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0040 0015 0610 0156 0056 0015 0E4B\"")
Error show in DCerouter
05 01/09/12 18:06:18.751 Socket::ReceiveData 0x84501c38 failed, bytes left 0 start: 15070000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 244 Incoming_Conn Socket 244 127.0.0.1 <0x450feb90>
05 01/09/12 18:06:18.751 Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 244 127.0.0.1 <0x450feb90>
05 01/09/12 18:06:18.751 TCPIP: Closing connection to -1003 (Router Dev #0) 0x84501c38 m_Socket: -1 <0x450feb90>
05 01/09/12 18:06:18.751 Router::RemoveAndDeleteSocket 0x84501c38 -1003 <0x450feb90>
I used this previous post, what have I missed, in getting this to work.
http://forum.linuxmce.org/index.php/topic,7058.0.html
-
You have not properly combined your codes. When you add the codes together you need to adjust the amount of data the code sends. The 3rd number 0022 should probably double when you add the second code to the first.
This link describes the pronto code formats in detail: http://www.remotecentral.com/features/irdisp1.htm
J.
-
Thanks it worked.
I misunderstood the burst pairs, double it and it worked. Had tried counting out the pairs, but then only remained with a few remaining pairs at the end, so I assumed I had to be doing something wrong.
Any idea why the ruby did not work?
-
I'm not familiar enough with Ruby to suggest a reason why. Glad the IR worked!
J.
-
Guys, can you PLEASE document this on a page in the wiki?
-Thom
-
It is documented on the wiki but it is buried, difficult to find and not easy to follow. I'll see if I can freshen it a little, complete the descriptions and link it in better.
http://wiki.linuxmce.org/index.php/TOAD_vs_Discrete_Codes
J.
-
Awesome, thanks :)
-Thom
-
I was attempting last week to edit that very said wiki, adding the specific for the toshiba 24SL410U, but was getting an error with the original url link's and my new url link, to this said case.
It was suggested on the IRC I wait a few days, before retrying or create new page for the new hardware as I had only created my account on that said day.
I will past what I had proposed, when I reach home tonight, maybe you may have better luck, phenigma
-
Edit made
http://wiki.linuxmce.org/index.php/TOAD_vs_Discrete_Codes
-
wow didn't know about this. thanks guys!
i have some displays this could be rather useful for!
-golgoj4
-
thanks klanmce, havn't had time to update the wiki yet. I still plan to edit it to make it a little bit more user friendly. Great stuff!
J.