LinuxMCE Forums

General => Users => Topic started by: justdeb on October 15, 2008, 01:58:26 AM

Title: LG 32LC7D setup issues
Post by: justdeb on October 15, 2008, 01:58:26 AM
Hi All,

I have several different LG units here at work that have been left for repair and the customer doesn't ever come back and i took a LG 32LC7D LCDTV home and have tried to set it up without success. I have followed the example on the Wiki (http://wiki.linuxmce.org/index.php/LG_42LB5D) and have not had an issue till i got to here.

Adding device
This is a simple process that you can now add via the LinuxMCE Admin Website at Wizard > A/V Equipment

Add device based on created template
Just search for the device template that you created and select it from the list

Specify COM port for it
Just tell LinuxMCE which com port to use.


I can select the device from the template and select the template. The next step is where i come unstuck - Where do i specify which com port to use as i don't get this option. It just goes back to the previous screen - ie AV equipment.

Have i forgotten to do something ?

2nd Thing - I also notice when i am in LMCE it tries to detect it as a 20LC something. I tried to use this and i get the usual video wizard and when it asks me to specify a port there is just a blank window. I tell it to finish and it wants to reload router and rebuild/reconfigure the orbitor and once this has completed it goes back to the same window.

Any thoughts would be great.


Regards

Justin
Title: Re: LG 32LC7D setup issues
Post by: rwilson131 on October 15, 2008, 05:43:48 AM
The LG TV has to have a template built, there is not one in the most current release.  Plus, I do not believe the template from the wiki will work for your model.  I do not see that model listed on the wiki.  If you have the serial codes for your model you can just exchange the values in the Device Template on the wiki and you should have a working Device Template. 

I have also ran into a problem where the necessary software is not installed by default, so try this

Open a terminal Session from KDE desktop or CTL-ALT-F2

sudo apt-get install pluto-serializeclass pluto-test-serial-port pluto-libserial pluto-generic-serial-device

This will make sure that you have all of the software needed to run a GSD Generic Serial Device
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 15, 2008, 06:58:02 AM
Cheers - I will give that a go.

From what i have read on the various LG LCDTV's the RS232 interface and instruction sets are pretty similar and suspect if i can get the 32LC7D running then the 37LC7D, 42LC7D should also work as the instruction sets are almost identical apart from some minor features.

I did create the template based on the instructions in the wiki and used the intruction sets from the example and after that i ran into trouble. I have got hold of the Service manuals and user manuals for most of the LCD models and have started reading them as i am pretty sure they use the same instruction sets for basic functions - ie on/off vol up and down.

The problem i have is that when i choose the template and click go it looks like it does something and takes me av equipment screen. It also say device added - but it is not listed there.


Regards

Justin

Title: Re: LG 32LC7D setup issues
Post by: rwilson131 on October 15, 2008, 03:16:38 PM
The other thing to consider, is jondecker, has done a lot of work with web admin, so upgrading the web admin may help. http://forum.linuxmce.org/index.php?topic=5510.msg32690#msg32690

The only other thing that I can think of is that the device may be in the unassigned section.  There is a drop down menu at the top of the AV devices page, which you can change the entertainment area.  Try that, then the other thing I would try would be look in the device tree and see if the device was indeed added.  If you can see it from the there you can change the settings from that page as well.  You should be presented with a drop down list of available com ports, and you can pick the appropriate com port.  Is there any way you could copy a screen shot in pastebin for us to look at?


the other thing to try is test from the command line: where $3 it the com port (/dev/ttyS0 or what ever you com port is)

/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 9600 -t "ka 01 01\r"


you should see the following if connected properly:

ka 01 01\r\na 00 OK01x

Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 16, 2008, 11:36:55 PM
HI,

I went through the various suggestions you had and it appears i already had the latest GSD updates.

I read the post from jondecker and will leave that one alone for now until i get his sorted out. However that being said i will be following that update once i get this running as it appears he has fixed a problem that i am likely to run into.

I did find the device in the tree and so it has been added. The odd thing is that i am unable to select a comport from the combobox as it appears to be locked or not enabled. Do i need to be in front of the md with it on to be able to change this or should i be able to do it from the admin website from the core?

I have yet to try the command line suggestion for testing the port. I assume that if you get no response it means either my connection or calbe is faulty.

Regards

Justin
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 17, 2008, 07:45:06 AM
HI All,

From the 9 user manuals i have downloaded and read through the RS232 protocol is the same in all models... I am currently comparing the 42" model used in the template and see if it is the same and if so we should be able to use any model and just rename the template accordingly.

Regards

Justin
Title: Re: LG 32LC7D setup issues
Post by: Techstyle on October 17, 2008, 01:44:04 PM
I have the LG RZ-37LZ55 which is very similar to all the other models but I cannot get it to work or respond in any way.  the COM port does work because I have a CM11A that I swapped out of this port that worked.

I have tried all the stuff suggested.  next step is to make sure they gave me a cross over cable and not a straight through cable.
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 19, 2008, 04:54:53 AM
I have just started playing in serice mode of the LG LCDTV and will try changing the baud rates and so on to see if that fixes it.

I also have just got the chance to play with the other comand line suggestions made by others and hope that they might shed some ligt on the situation. I have tried straight through and cross over cables and the result is the same.

I can use this cable in conjunction with a program called dtv labs which is used to upgrade firmwares and it works perfectly so the interface (RS232) works on the LCDTV.
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 28, 2008, 08:24:36 AM
Hi,

I finally got a chance to get back to this and i followed the code below and i got those entries - so this would suggest that i can see it via the RS232. I have confirmed the codes in the user manual are the same as the ones in the Wiki (http://wiki.linuxmce.org/index.php/LG_42LB5D). In order to make this work - am i correct in assuming if the codes are correct and i have assigned the correct com port that it should work?

Is there something else i should be doing as according to the wiki once i have done what it says it should work.

Regards

Justin
Title: Re: LG 32LC7D setup issues
Post by: colinjones on October 28, 2008, 09:49:42 PM
I think that the other things that play are part are setting up pipes (so LMCE knows which devices are used as part of the audio and/or video for a particular EA), the controlled by setting and that the device parent is correct... then watch the DCE router log to ensure it is sending DCE commands to all the correct devices.

But you should check first that you can send test commands manually from the web admin...
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 30, 2008, 07:26:52 AM
Hi Collin,

In relation to the pipes - can i post a screen dump of the settings for the audio/video for you 2 see if i have got them correct as i am thinking along the lines that you have suggested in that this might be the area to address.

in addition to that lets say i send the command to turn the unit off - what should i see in the DCE router log entry ?

Regards

Justin
Title: Re: LG 32LC7D setup issues
Post by: colinjones on October 30, 2008, 01:03:32 PM
You should post it as I am not the best person to help here, others maybe able to help...

In the DCE router log you should see any message sent (even tests). Typically, you would see an off command being sent and it would be sent to every device along either a video or audio pipe that you have created. (for an audio only command, mute for instance, it would only be sent to devices connected by audio pipes in that entertainment area .... is how I understand it).
Title: Re: LG 32LC7D setup issues
Post by: Zaerc on October 30, 2008, 11:51:55 PM
You can also run TailDCERouter.sh from a command line and see all the messages fly by live.
Title: Re: LG 32LC7D setup issues
Post by: justdeb on October 31, 2008, 08:21:22 AM
thanks guys will try that and see what i see.

Will post findings.

Cheers

Justin
Title: Re: LG 32LC7D setup issues
Post by: krys on January 11, 2009, 09:10:01 PM
Quote from: rwilson131 on October 15, 2008, 03:16:38 PM

the other thing to try is test from the command line: where $3 it the com port (/dev/ttyS0 or what ever you com port is)

/usr/pluto/bin/TestSerialPort -p $3 -P N81 -b 9600 -t "ka 01 01\r"


you should s the following if connected properly:

ka 01 01\r\na 00 OK01x



I have been trouble shooting my own LG lcd, and tried the code listed at the cmd line. I have 2 serial ports and dont know how to determine which one is which. In the admin site they show as ttyS0 and ttyS1. I tried the command above with both of those labels and all that happened was the cursor would drop to the next line as if I just hit enter with no command. When I tried with just tty it would show "ka 01 01" for about 10 sec then show the command prompt again.
Any clues for me here? Is there a way for me to just run the serial cable from the first port to the second port and send a command to just establish that they are even working and what their labels are?
Title: Re: LG 32LC7D setup issues
Post by: krys on January 11, 2009, 11:05:01 PM
progress made, I can now turn the LCD on and off from the command line. The only thing that I did was to connect a cross serial cable to both ports and send some commands back and forth, now I am not sure if this woke the ports up, or maybe when I reconnected the cable to the TV something happend, but now it works. The only problem is that now the web admin site will not let me select a com port (it is greyed out), and I notice when I do a router reload it says
"Not starting device LCDblahblah - device is disabled"
Why cant I select a com port, and why isnt the device staring up?

*edit- found out the greyed out issue with the com port

I still cant get LMCE to communicate even though the command line works perfectly now.

Title: Re: LG 32LC7D setup issues
Post by: Zaerc on January 12, 2009, 01:54:31 AM
Quote from: krys on January 11, 2009, 11:05:01 PM...
*edit- found out the greyed out issue with the com port
...

Just out of curiosity, why were the com ports greyed out?
Title: Re: LG 32LC7D setup issues
Post by: krys on January 12, 2009, 05:51:29 AM
I had it manually configured under device data on the template and didnt realize it was the reason that it was greyed.
I still can not figure out why lmce is disabling this device
Title: Re: LG 32LC7D setup issues
Post by: krys on January 12, 2009, 07:07:23 AM
I ran TailDCERouter.sh to see where my commands were going, and it looks to be sending the commands to the right place whether I send from an orbiter or from the admin site, here is the line generated when I sent vol down from the admin site

08      01/12/09 0:00:47.815            Received Message from 0 (unknown / ) to 205 (20LS7D (RS232) / Bedroom (Other)), type 1 id 90 Command:Vol Down, retry none, parameters: <0x420ffb90>

205 is the lcd screen and it is hooked up to the Bedroom (Other) MD. Does this look like it is sending it correct? It looks fine to me, I just have to figure out why the router is disabling this device at startup and I think I can get this thing working.
Suggestions are welcome!


Title: Re: LG 32LC7D setup issues
Post by: maybeoneday on January 12, 2009, 07:40:21 AM
Hi Krys,
you've probably seen it allready but in wizard -devices-gsd  there's a check box  "disable device",make sure it's unchecked  and reboot  (poss reload router).......similar thing sent me bald    :D

regards
Ian
Title: Re: LG 32LC7D setup issues
Post by: krys on January 12, 2009, 04:14:15 PM
yes I was surprised to see that checkbox there also, however I unchecked it and reloaded the router and it was still disabled so I restarted the MD and when the router is loading it still says "not starting device- it is disabled"
Title: Re: LG 32LC7D setup issues
Post by: maybeoneday on January 12, 2009, 11:46:59 PM
Hi Krys,
iirc the check box kept ticking itself,  I do recall a number of hard  boots, of core tho' not md,
and I also seem to remember that I'd entered 8N1 incorrectly in  device data in dev template at some point , but can't for life of me remember if that's what the cure /reason was.
Also, I had probs with my setup at that time, with  some changes apparently not "sticking" unless I shut down and rested the core for 20 mins or so, before rebooting, got to be worth a try,( I really must start taking notes, brain fried )

regards,
Ian