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.

Topics - PeteK

Pages: [1] 2 3
Users / PHP error on templates?
« on: September 16, 2009, 06:53:19 am »
Hi gang.  I've noticed I've got some strange behavior with one of the templates I developed and checked in.  It's repeatable for me and I wanted to see if that's the case for everyone.  If you open up the Olevia TV template (1950) from a fresh sqlCVS update, then click on 'Edit Ruby Codes,' the code page pops up with no commands populated.  However, if you then click 'Update,' the commands appear, along with what appear to be IR codes.  Some of the commands have multiple copies, and those copies can't be deleted.

Both the 'Clear Code' and 'Delete Code' buttons remove the codes inside the box, but neither removes the Command.  Selecting 'Add/Remove Command' and unchecking commands no longer seems to remove the unchecked commands from the command set.

Clearing the IR codes (and fixing the syntax error noted below), gets the template working, even if multiple, blank commands are present.

The sharp ones out there looking at the template may have noticed my bone-headed mistake in Ruby Syntax.  I've corrected the '$' placement on my machine and will check in once I figure out what's going on with the command display.

Developers / Getting IP address from Device in GSD
« on: March 10, 2009, 07:00:31 am »
Hi everyone--

I'm trying to modify the template for the Roku Netflix player.  Right now it's set to be controlled via an IR interface.  However, I've gotten a quasi-official ICD from Roku to control it via telnet.  The template is of type AV/Cable Box (which seemed to be the closest match when I created it).  Per TSCHAK's advice, I added a PORT (#171) device data field.  However, when I add code to the Command fields, I get an error about not finding a port.  I believe this is due to the case that there is a Com Port on PC data field defined for the device (I'm not sure exactly how, as it's not in the template.  i think it's inherited from the device type).  This field is set to empty and I think GSD defaults to using this field and it's trying to create a serial connection.   TSCHAK suggested using a Ruby  TCPSocket to communicate.  That socket requires the IP address of the target in its constructor.

Now, to make a long plead short, I haven't been able to find the documentation for how to extract a device's IP address from it's devicedata fields inside GSD so I can feed it to the constructor.  Does anyone know how to do it?

Thanks for the help.

Users / USB UIRT in 0810? [Solved]
« on: February 24, 2009, 05:41:37 pm »
Has anyone had luck getting the USB UIRT to work in 0810?

I added it manually, due to the fact that USB PNP is still having some issues in 0810.  However, when I create a template for a new AV device and set 'Controlled by' to IR, when I try to add a code and select the 'learn code' radio box in the web admin, it automatically sets it back to 'enter code.'

My guess this is due to problems with the USBUIRT interface.  I'm not entirely certain I have the port set correctly.  The drop-down box for the port lists the two system serial ports, the virtual serial port mapped for the GC100, and a PCI address.  I selected the PCI address, thinking it's the only remaining one (I believe it was new after pluggin in the USB UIRT).  But I may be wrong about that.

Any advice would be definitely appreciated.



I'm not 100% certain, but the target for 0810 seems to be to allow LMCE to be integrated into the standard aptitude-based package management system (unlike previous versions of pluto/LMCE).  If this is the case, I've noticed a potential issue.  Though the normal software upgrade process, a new kernel (version 2.6.27-11) was installed on the core.  This kernel appears to be too big to tftp to the MDs.  I'm not sure what the config is of the kernels automatically upgraded through aptitude, but it looks like this one has debugging info enabled.

According to

Your initrd-img file should be about 10MB. If it is around the 40MB mark you compiled your kernel with debugging support. The tftp server will refuse to transfer files this large. As a result, all MDs will fail to boot. If you absolutely must use a debugging kernel then there are options you can pass to tftp to make it ignore this limit.

I haven't been able to find a flag to pass to tftpd yet to disable this.

This brings to mind another question.  If upgrading the kernel on the core is allowed, what is the expectation for the MDs?  Should their file systems be rebuilt (with new kernel, headers, etc)?

Users / Frustrating new Network issue
« on: January 30, 2009, 06:57:22 am »
I'm having an issue with my 0810 setup that makes no sense whatsover and is yet again driving me crazy.
I installed 0810  successfully in the network configuration  cable modem->router->core->internal network.  In this configuration, everything seems to be working OK.

However, I tried removing the router to give me: cable modem->core->internal network.  In this configuration, I can access the net from the core without a problem, but I can't access http at all from any PCs on the internal network.  I can ping without a problem, however.  Switching back to the 1st configuration fixes things consistently. Switching back to the second configuration breaks things consistently.

I captured some data with wireshark.  This is a request for from firefox on a windows PC on the internal network

looking at the external NIC (IP:

No.     Time        Source                Destination           Protocol Info
      1 0.000000       TCP      49281 > http [SYN] Seq=0 Win=8192 Len=0 MSS=1456 WS=2
      2 0.175891         TCP      http > 49281 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 WS=7
      3 0.176709       TCP      49281 > http [ACK] Seq=1 Ack=1 Win=66976 Len=0

now the http get call

      4 0.177002       HTTP     GET / HTTP/1.1

the ack

      5 0.356041         TCP      http > 49281 [ACK] Seq=1 Ack=420 Win=6912 Len=0

and data...
     6 0.369530         TCP      [TCP segment of a reassembled PDU]
     7 0.369780         TCP      [TCP segment of a reassembled PDU]

I see this correct behavior when I use wireshark on eth1 (internal NIC) as well.

But when I connect the core directly to the modem, I get a new IP address of  76.83.118.XX
same request:   (XX is the last byte of my IP address)

No.     Time        Source                Destination           Protocol Info
      1 0.000000    76.83.118.XX       TCP      49173 > http [FIN, ACK] Seq=1 Ack=1 Win=16744 Len=0
      2 0.066986    76.83.118.XX       TCP      49176 > http [SYN] Seq=0 Win=8192 Len=0 MSS=1456 WS=2
      3 0.215705       76.83.118.XX          TCP      http > 49173 [ACK] Seq=2913 Ack=2 Win=54 Len=0
      4 0.244939       76.83.118.XX          TCP      http > 49176 [SYN, ACK] Seq=0 Ack=1 Win=5840 Len=0 MSS=1460 WS=7
      5 0.245589    76.83.118.XX       TCP      49176 > http [ACK] Seq=1 Ack=1 Win=66976 Len=0

now the http get

     6 0.246035    76.83.118.XX       HTTP     GET / HTTP/1.1

and the ack

     7 0.428837       76.83.118.XX          TCP      http > 49176 [ACK] Seq=1 Ack=369 Win=6912 Len=0

...and then nothing, no data.  Firefox is stuck at 'Waiting for reply.'  This happens with any website I try.  Does anyone have any idea what might be going on?  Could this be an issue with my provider?  Any help would be greatly appreciated as the WAF is quickly decreasing and I have a lot of work on this that I want to do.

Users / 0810 xorg.conf question
« on: January 18, 2009, 04:18:05 am »
Hi gang--

I'm trying to get my MD up and running under 0810 so I can do some testing.  I'm having xorg.conf issues.  I believe this is due to the fact that I've got an ati embedded graphics chip on my core and an nvidia chip on the MD, so for example, there is no 'driver nv' line in the xorg.conf as referenced in the wiki. When I try to run currently, I get an 'out of range' warning on my monitor.

Does anyone have an example xorg.conf I can use?  Otherwise, I'm thinking of installing 0810 on the md, then copying the xorg.conf file.

Any help would be appreciated.


Users / Intermittent Network issues
« on: January 05, 2009, 10:41:33 pm »

I've got an issue that is serving to constantly frustrate me and make my LMCE setup unusable.  I'm hoping someone may be able to help me.  The issue that I'm seeing is that when I have MDs running, at some point in time the internal network fails.  By fails, I mean I can't ping any machine from the core, and vice versa.  The MDs freeze, and the windows PCs indicate limited (non-DHCP access) My squeezebox goes blank, indicating loss of communications to the server.  However, there are no indications on the core that anything is amiss.  ifconfig indicates that the network connection is active, though RX and TX packets count up very slowly and erratically).  I've never seen this issue happen when I don't have MDs running.  The outside NIC is fine, i.e. I can access the internet from the core.  Shutting off any running MDs immediately corrects the problem and the network returns to normal (ie. windows PCs are routed to the internet, squeezebox works).

My setup is:
Hybrid: Intel S5000PSL
1 Abit AN-M2HD
1 ASROCK    ALiveNF7G-FullHD R3.0
Netgear Gigabit

I've tried the following:

1) Updated the kernel to 2.6.27 to try the new e1000e driver for the onboard intel gigabit lan
2) Swapped out network cables/ethernet switch
3) Tried each MD singly and together
4) Added D-link network card to core to test new hardware/driver
5) Tried 64 and 32 bit versions of LMCE.

Still, in anywhere from 2 to 72 hours, the problem recurs.  Has anyone seen this before?  Anybody have any ideas of where to look to troubleshoot? Any help would be greatly appreciated.


Users / Sharing non-media folders of an LMCE drive
« on: January 02, 2009, 09:06:24 pm »
I've got a question that came up when I tried to copy some home movies (.avi) to a RAID array mounted on the core for RAID-protected storage.  I copied them over to one of the media directories, and updatemedia picked them up and added them to the database (something I didn't want).  As of 0710, I didn't think there was a good way to make updatemedia skip certain directories, so I wanted to add these files in a directory outside of the normally scanned directory structure.  That got me thinking that in the longer term, I'd like to use the RAID array that I've got on the core for some more 'general storage' (non-media, or at least non-permanent media) through Samba, and I'd like to map that directory through samba without breaking the current system.  I created a samba share of /mnt/device/[hard disk device number], but I don't think this is the best solution.   Does anyone have any advice they can offer?


Developers / Upgrading Kernel?
« on: July 20, 2008, 10:03:11 pm »

I've upgraded the kernel on my Core to hopefully fix some stability issues with my (fairly new) ethernet adapters.  However, I cannot get the MDs to boot if I install them while running the new kernel. They will install correctly with the old kernel running on the core and will run side-by-side with the old kernel while the core runs the new kernel.

When I plug a new MD in, it connects, runs the setup script, and creates the image. I then copy over the initrd and vmlinuz files from /boot on the core, and change the symlinks appropriately, but the MD says it can't find the initrd file, though it seems to find vmlinuz.

If anyone has gotten this to work, I'd be interested in learning what the tricks are.


Developers / Scroll bars in web-admin
« on: July 20, 2008, 09:46:38 pm »
Hi gang--

I encountered a problem when trying to move a media file via web-admin.  When I select the 'Move file' button on the file's page (through Media Files Sync), It opens a new window to allow you to select a new destination.  Unfortunately, this window does not have scroll bars, and I can't see the items off the bottom of the page.  Is there a way to allow scrolling in this page?

The .php file is: charon-merge/web/pluto-admin/languages/en/moveFile.lang.php


Developers / USB Plug N Play issues
« on: May 07, 2008, 08:47:49 am »
I'm trying to recreate my Insteon template from memory and the existing code in the SVN, as I don't have it any more.  One thing I'm having problems with is the PNP section.  Before, I was able to have LMCE auto detect based on the USB ID in the PNP section.  Now, for some reason, I can't get it to auto-detect connection of the Insteon PLC, even though the device shows up when I do an lsusb call.  The existing Z-wave template detects USB devices OK.   The controller comes up as an HID device with Vendor ID: 0x10bf and Product ID: 0x0004.

This is pretty frustrating, as I know this was working before.  Does anyone know of the best way to go about debugging this or who may be able to help?


P.S. I've attached screen grabs of the template.

Developers / Tivo Network Interface
« on: May 01, 2008, 11:44:37 pm »
This is interesting.  Tivo has added a network control interface for home automation control to their series 3 (HD) units.  This was designed for Crestron interface, but it looks open to all.  This could be useful in giving LMCE an Encrypted QAM record/playback capability, even if it is limited.  The Hauppage unit might be the better way to go, but this is certainly something that could be added in a fairly straightforward manner to LMCE.

Users / Track Number Attribute?
« on: April 21, 2008, 03:18:57 am »
Hi.  I'm running 0710 b4.  I downloaded the updated file per the instructions on the wiki here:

I noticed that while ripping CDs, I'm still not getting track number showing up as an attribute.  Can anyone confim whether or not this is happening with their cd rips?


Users / DHCP server stopped working
« on: March 29, 2008, 08:33:50 am »

For some reason, my DHCP server on the core seems to have stopped working.  I hadn't made any changes, but this evening it stopped serving DHCP requests.  I tried disabling it via the admin page and re-enabling, but I'm not getting anything.  I've never had this happen to me before.  Does anyone have any ideas of what to check?  This is really annoying, as I've had to reconfigure my network to get internet access, and DHCP serving is pretty fundamental to LMCE.


Developers / Denon-AVCA1SRA unregistering
« on: March 27, 2008, 06:17:11 pm »

I've got a Denon AVR receiver connected to the RS-232 output of a GC100.  To the core, it looks like a standard serial port. I'm using the standard Denon-AVCA1SRA template to communicate with it.  I'm having a problem where, after a router reload, the Registered field changes from YES to NO.  It appears, sometimes that it changes back to YES, but only sometimes do I get  it to send a command.  Here are the errors I see when it is registered.


01   03/26/08 21:46:33.526      Receive string failed in HandleRequestSocket 18:ReceiveData failed Command_Impl1 Dev #115 <0x42003950>

01   03/26/08 21:46:36.004      Error while calling method: Cannot call class method: cmd_350

My question:  Is this devices supposed to go back to unregistered state on router reload?  If so, what makes it register?

Thanks, guys.

Pages: [1] 2 3