Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - ladekribs

Pages: 1 2 3 [4] 5 6
46
Installation issues / Re: LG LCD Template
« on: November 26, 2010, 12:39:59 pm »
@Barney,

yes I followed Your instructions and added som more commands as above,but I could not get it plug & play.
when I followed your instructions it kept asking if I had the LG 20LD(or what the name is), so I tried to rename the 20_LG_TV.sh
to 37_LH_TV.sh then it discovered the tv but kept on disabling and redetecting it in a loop. So I had to manually enter it.

@etNHGfU8,
have you tried sending commands from remote control resend A/V codes?


BR Stefan

47
Installation issues / Re: LG LCD Template
« on: November 25, 2010, 08:36:43 pm »
Hi Barney,
Sorry for being so slow on testing, but finally I can confirm that it is working on my 47LH4000 LG TV.

these are my settings now

Code: [Select]
Power
#193 Off
SendCommand("ka 01 00",1000,2)
#192 On
SendCommand("ka 01 01",10000,4)
Inputs
#316 AV 1
SendCommand("xb 01 02",1000,4)
#317 AV 2
SendCommand("xb 01 21",1000,4)
#712 Component 1
SendCommand("xb 01 05",1000,4)
#361 HDMI
SendCommand("xb 01 90",1000,4)
#767 HDMI 2
SendCommand("xb 01 91",1000,4)
#930 HDMI 3
SendCommand("xb 01 92",1000,4)
#154 RGB
SendCommand("xb 01 60",1000,4)
#166 Tuner
SendCommand("xb 01 10",1000,4)
#873 Tuner - Digital
SendCommand("xb 01 00",1000,4)
General
#190 Enter/Go

Internal
#373 Private Method Listing
# Private - Date: 28.02.2008 # the docs are wrong. they say responses are terminated with a \r. In reality some sets do, others don't. def SendCommand(command,timeout,retransmit) for i in 0...retransmit conn_.Send(command + "\r") # wait up to 8 seconds since it may be very slow if this is an 'on' command buf = conn_.RecvDelimited("x", timeout) if( !buf.nil? && (!buf.index("01 OK").nil? || !buf.index("01 NG").nil?)) print "Received good reply in less than ", timeout, "ms: ", buf, "\n" return else buf = conn_.Recv(1000,1000); print "Flushed buffer: ", buf, "invalid resonse in ", timeout, "seconds\n" end end end
#351 Process IDLE

#350 Process Incoming Data

#355 Process Initialize
# Initialize --- Date: 28.02.2008 # the docs are wrong. they say responses are terminated with a \r. In reality some sets do, others don't. # some sets won't respond to ka 01 ff when the tv is off. others do. @mute = false; # unfortunately we have to turn the device on if it's off to know that it's alive or else it won't respond to anything @input=-1 for iRetry in 0...4 print "Initializing unit\n" # Query the current volume level conn_.Send("kf 1 ff\r") # wait 4 seconds for the status command, which won't work if the tv is off $buf = conn_.RecvDelimited("x", 4000) if( !$buf.nil? && !$buf.index("01 OK").nil? ) print "Initialized ok - tv is on\n" # Use the returned response to set the volume x = $buf.index("OK") volume_level =$buf[x+2,2].to_i(16) print "Setting volume to ", volume_level, "\n" cmd_313(volume_level) return end print "TV is either off or not connected\n" # try turning it on conn_.Send("ka 1 01\r") # wait 10 seconds for the TV to respond sleep(10) # Query the current volume level conn_.Send("kf 1 ff\r") # wait 4 seconds for the status command, which won't work if the tv is off $buf = conn_.RecvDelimited("x", 4000) if( !$buf.nil? && !$buf.index("01 OK").nil? ) print "Initialized ok - tv was off\n" # Use the returned response to set the volume x = $buf.index("OK") volume_level =$buf[x+2,2].to_i(16) print "Setting volume to ", volume_level, "\n" cmd_313(volume_level) # Turn TV off again conn_.Send("ka 1 00\r") return end print "TV is not connected\n" sleep(1) end #DisableDevice( device_.devid_, true ) print "The device wouldn't respond. Disabling it.\n"
#384 Process Receive Command For Child

#356 Process Release

Numbers
#204 0
<$"mc 01 10\r"$>
#205 1
<$"mc 01 11\r"$>
#206 2
<$"mc 01 12\r"$>
#207 3
<$"mc 01 13\r"$>
#208 4
<$"mc 01 14\r"$>
#209 5
<$"mc 01 15\r"$>
#210 6
<$"mc 01 16\r"$>
#211 7
<$"mc 01 17\r"$>
#212 8
<$"mc 01 18\r"$>
#213 9
<$"mc 01 19\r"$>
Simple Control
#64 Skip Back - Channel/Track Lower
<$"mc 01 01\r"$>
#63 Skip Fwd - Channel/Track Greater
<$"mc 01 00\r"$>
Sound & Volume
#97 Mute
if(@mute) SendCommand("ke 01 00",10000,4) else SendCommand("ke 01 01",10000,4) end @mute=!@mute
#313 Set Volume
@volume=level.to_i() ilevel = (@volume).to_i print "setting volume to ", ilevel , "\n" if ilevel <16 SendCommand("kf 01 0" + "%x" % ilevel,1000,4) else SendCommand("kf 01 " + "%x" % ilevel,1000,4) end SetDeviceDataInDB( device_.devid_,device_.devid_.to_i , ilevel.to_s) print "volume and corresponding device data set\n"
#90 Vol Down
print "lowering volume from ", @volume, "\n" cmd_313(@volume-1)
#89 Vol Up
print "raising volume from ", @volume, "\n" cmd_313(@volume+1)

so now I can select tuner and change channels with the MCE remote.


48
Installation issues / Re: LG LCD Template
« on: November 05, 2010, 08:40:23 am »
@Barney
Oops no I did not change the 20_LG_TV.sh on the MD I expected it to come from the Core, but i guess I created the MD before changing the script.

49
Feature requests & roadmap / Re: easi (er) method for post reinstall ?
« on: November 04, 2010, 10:24:56 am »
or suppose that you could save all settings on a server and when installing just enter an ID and password to restore it all

BR Stefan

50
Installation issues / Re: LG LCD Template
« on: November 03, 2010, 05:36:22 pm »
I made a quick test on the MD now, and the odd thing is that now the pnp engine asks if i connected a 20ls7d tv and ignores the 37LH30 script. and the device gets disabled.


51
Installation issues / Re: LG LCD Template
« on: November 03, 2010, 08:39:40 am »
Hi Barney,

I did some more testing yesterday, after reinstalling core(twice) I carefully followed your steps,
 and then moved the core to the TV ,there all the relevant commands seems to work well,
I tested the init,volume up/down and mute and also power on when already on is faster, (that is good!)

next step will be to let the MD control the tv that is what failed for me last time.


BR Stefan

52
Users / Re: Spotify?
« on: October 21, 2010, 01:06:26 pm »
Hi,

there must be some way to remote control spotify :

see here:
http://degero.se/spotify/

and how about

http://despotify.se/

BR Stefan

53
Users / Re: AlsaMixer in snapshot 23333
« on: October 21, 2010, 12:44:38 pm »
Same here, I had to do sudo su.

thought it was supposed to be that way.


BR Stefan

54
Installation issues / Re: LG LCD Template
« on: October 20, 2010, 10:03:18 am »
Thank You POSDE,

actually I looked their but got confused , will try again with your instruction.



BR Stefan

55
Installation issues / Re: LG LCD Template
« on: October 19, 2010, 08:46:55 pm »
B4arney,

I have Reinstalled core, replaced USB/serial adapter,
but while testing I messed up the template, could you please post your #373 Private Method Listing?

BR Stefan

56
Installation issues / Re: LG LCD Template
« on: October 12, 2010, 08:53:05 pm »
Hi Barney,

I must have done something wrong with my setup, but I tested Your #313 and #355 on an other Linuxmce machine and they appear to be working on my 47LH4000

will qontinue testing

BR Stefan

57
Installation issues / Re: LG LCD Template
« on: October 09, 2010, 11:47:40 am »
Barney,

no they are the same, I will try to test Your 313 and 355 on template 37LH30 with my TV on tuesday, when back in place


BR Stefan

58
Installation issues / Re: LG LCD Template
« on: October 08, 2010, 05:29:20 pm »
Hi barney,

I made a short test before leaving, on my own template using your cmd 313 and 355, but I get errors after about 30 seconds:

Code: [Select]
05 10/08/10 17:23:56.542 GSDMessageTranslator isCmdImplemented = true <0xb5effb90>
05 10/08/10 17:23:56.542 #### Pre-Process Queue = 1 <0xb5effb90>
05 10/08/10 17:23:56.586 _QueueProc Pre - 89 : 0 <0xb7828b90>
05 10/08/10 17:23:56.586 GSD-Sleep Pre 89 : 0 <0xb7828b90>
05 10/08/10 17:23:56.586 Process Queue = 1 <0xb7828b90>
05 10/08/10 17:23:56.586 Parameter:  <0xb56feb90>
01 10/08/10 17:23:56.586 Error while calling method: Cannot call class method: cmd_89
error: undefined method `+' for nil:NilClass, line: 24
backtrace:
in: (eval): 24
from (eval):24:in `cmd_89'
from (eval):31
 <0xb56feb90>
01 10/08/10 17:23:56.586 For obscure reasons could not handle the message <0xb56feb90>
05 10/08/10 17:23:56.843 GSD-Sleep Post 89 : 250 <0xb7828b90>
05 10/08/10 17:23:56.843 _QueueProc Post - 89 : 250 <0xb7828b90>
05 10/08/10 17:24:02.359 GSDMessageTranslator isCmdImplemented = true <0xb5effb90>
05 10/08/10 17:24:02.360 #### Pre-Process Queue = 1 <0xb5effb90>
05 10/08/10 17:24:02.397 _QueueProc Pre - 90 : 0 <0xb7828b90>
05 10/08/10 17:24:02.397 GSD-Sleep Pre 90 : 0 <0xb7828b90>
05 10/08/10 17:24:02.397 Process Queue = 1 <0xb7828b90>
05 10/08/10 17:24:02.418 Parameter:  <0xb56feb90>
01 10/08/10 17:24:02.419 Error while calling method: Cannot call class method: cmd_90
error: undefined method `-' for nil:NilClass, line: 31
backtrace:
in: (eval): 31
from (eval):31:in `cmd_90'
from (eval):24
 <0xb56feb90>
01 10/08/10 17:24:02.419 For obscure reasons could not handle the message <0xb56feb90>
05 10/08/10 17:24:02.667 GSD-Sleep Post 90 : 250 <0xb7828b90>
05 10/08/10 17:24:02.668 _QueueProc Post - 90 : 250 <0xb7828b90>

do I have other faults in the template?


BR Stefan

59
Developers / Re: Help deciphering Denon AVC and Onkyo templates
« on: October 07, 2010, 12:36:24 pm »
Hi,

I have a LG TV 47LH4000 that I am trying to create a RS232 template for, and when I make a quick reload of router the communication between TV and MD(via USB adapter) often fails and the device is disabled.

Can the reason be that if the RS232 interface get choked or stoped for some reason that the Plug/Play engine disables the device because it does not get the answer it expects, and could that be the same type of problem?

BR Stefan

60
Installation issues / Re: LG LCD Template
« on: October 04, 2010, 09:00:50 am »
Hi Barney,

how does Your #313 Set Volume look like now?
I get errors when using it.

Pages: 1 2 3 [4] 5 6