Author Topic: handling discrete through input+number  (Read 886 times)

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
handling discrete through input+number
« 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
Quote
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

Quote
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
Quote
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
Quote
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.
Quote
http://forum.linuxmce.org/index.php/topic,7058.0.html

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: handling discrete through input+number
« Reply #1 on: January 10, 2012, 03:15:48 pm »
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.

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: handling discrete through input+number
« Reply #2 on: January 10, 2012, 04:44:51 pm »
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?

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: handling discrete through input+number
« Reply #3 on: January 12, 2012, 01:02:42 am »
I'm not familiar enough with Ruby to suggest a reason why.  Glad the IR worked!

J.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5476
  • DOES work for LinuxMCE.
    • View Profile
Re: handling discrete through input+number
« Reply #4 on: January 12, 2012, 02:16:26 am »
Guys, can you PLEASE document this on a page in the wiki?

-Thom

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: handling discrete through input+number
« Reply #5 on: January 15, 2012, 01:26:52 am »
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.

tschak909

  • LinuxMCE God
  • ****
  • Posts: 5476
  • DOES work for LinuxMCE.
    • View Profile
Re: handling discrete through input+number
« Reply #6 on: January 15, 2012, 01:37:27 am »
Awesome, thanks :)

-Thom

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile
Re: handling discrete through input+number
« Reply #7 on: January 16, 2012, 11:54:18 pm »
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

klanmce

  • Veteran
  • ***
  • Posts: 133
    • View Profile

golgoj4

  • NEEDS to work for LinuxMCE
  • ***
  • Posts: 1046
  • hrumpf!
    • View Profile
    • La Smarthomes - SoCal smarthome site
Re: handling discrete through input+number
« Reply #9 on: January 23, 2012, 04:55:44 am »
wow didn't know about this. thanks guys!

i have some displays this could be rather useful for!

-golgoj4
Those people who tell you not to take chances, they are all missing what life's all about.

Wiki Hardware Page http://wiki.linuxmce.org/index.php/User:Langstonius

phenigma

  • wants to work for LinuxMCE
  • **
  • Posts: 920
    • View Profile
Re: handling discrete through input+number
« Reply #10 on: January 23, 2012, 10:21:39 pm »
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.