LinuxMCE Forums

General => Developers => Topic started by: ddamron on January 05, 2008, 01:38:56 pm

Title: How's Insteon working?
Post by: ddamron on January 05, 2008, 01:38:56 pm
Please let me know how the Insteon Ruby code is working for you.

If you have any bugs, please copy/paste the log..

I haven't head hide nor hair for 2 days...

Is anyone using it?

Dan
Title: Re: How's Insteon working?
Post by: totallymaxed on January 05, 2008, 01:56:00 pm
Please let me know how the Insteon Ruby code is working for you.

If you have any bugs, please copy/paste the log..

I haven't head hide nor hair for 2 days...

Is anyone using it?

Dan


Dan... we'd love to test it but as we're located in the UK.

Maybe it would be worth putting a real simple step by step guide to adding it to your Core up on the Wiki. That would remove any barriers to even a casual tester giving it a try. We faced much the same problem when we first started to test z-wave by the way... but the 'fix' here was to just go buy some hardware and test it ourselves. After that we had no end of people testing it LOL!! If I could do that here in the UK I would...
Title: Re: How's Insteon working?
Post by: ddamron on January 05, 2008, 03:04:04 pm
Good Point!

I'll try to get a wiki page online with the how-to..

Might as well put the code there too..

Thanks for the suggestion..

Dan
Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 04:40:23 am
Wiki page is up.  It's under Tutorials.
Title: Re: How's Insteon working?
Post by: golgoj4 on January 06, 2008, 05:01:05 am
Please let me know how the Insteon Ruby code is working for you.

If you have any bugs, please copy/paste the log..

I haven't head hide nor hair for 2 days...

Is anyone using it?

Dan


what do i need to buy? this? http://www.amazon.com/SmartHome-2414U-INSTEON-PowerLinc-Controller/dp/B000AMPL0C/ref=pd_bbs_2?ie=UTF8&s=electronics&qid=1199591902&sr=8-2

let me know because I would love to see how its working.
Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 05:42:13 am
No, that is a PLC.

You want 2412S PLM (PowerLinc MODEM)

It's $10.00 cheaper.
Title: Re: How's Insteon working?
Post by: golgoj4 on January 06, 2008, 09:15:26 am
No, that is a PLC.

You want 2412S PLM (PowerLinc MODEM)

It's $10.00 cheaper.


gotcha. as soon as i find one (hopefully not online) i will give it a go. I have an all x10 setup, do i need to buy insteon modules too?
Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 09:50:06 am
No, you don't, but I would HIGHLY recommend at least ONE.. So you can see the difference..

The Spider routine will NOT work for X10 devices.  However, if you add all the devices manually, it should work OK.
(we can't PING an X10 device for it's device type)

HTH,

Dan
Title: Re: How's Insteon working?
Post by: totallymaxed on January 06, 2008, 10:16:11 am
Wiki page is up.  It's under Tutorials.


Great... will check it out
Title: Re: How's Insteon working?
Post by: totallymaxed on January 06, 2008, 10:27:07 am
Wiki page is up.  It's under Tutorials.


That page I think demonstrates why many interested people may have not tried your driver yet. Before you posted that page I would doubt that anyone would have understood that procedure. Nice work!

I'd suggest adding some examples of how to test things out... just the steps needed.

Also you probably need to promote the exisitance of Insteon driver and the tutorial again... as people who might have not considered it before probably will now.

Great work :-)

Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 10:39:24 am
Thanks Andrew!

I'll try to add a bit more to the page.. regarding testing, troubleshooting, etc.

I'm not the best at wiki entries, and I'm not sure what you mean by 'promoting' it...

Would it be possible to help me with that?

Title: Re: How's Insteon working?
Post by: totallymaxed on January 06, 2008, 11:02:36 am
Thanks Andrew!

I'll try to add a bit more to the page.. regarding testing, troubleshooting, etc.

I'm not the best at wiki entries, and I'm not sure what you mean by 'promoting' it...

Would it be possible to help me with that?


Well what I meant by 'promoting' your driver and the tutorial was just drawing peoples attention to it in a more obvious way. Start a new thread and post an announcement and url to the tutorial so that people take another look at testing the driver. Its always going to be harder for people to test new capabilities when they have to invest in the hardware before they can do so... but with the tutuorial i think more people will be willing to do that now ;-)
Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 11:33:23 am
Ahh, Gotcha!

I just updated the tutorial.. added another page of info..

Geeze, I really added a lot of functionality to this driver, I;m trying to remember some of it! lol

Take a look at the new page at http://wiki.linuxmce.org/index.php/Running_the_Insteon_PLM_Driver_for_the_First_Time

Title: Re: How's Insteon working?
Post by: totallymaxed on January 06, 2008, 11:53:24 am
Ahh, Gotcha!

I just updated the tutorial.. added another page of info..

Geeze, I really added a lot of functionality to this driver, I;m trying to remember some of it! lol

Take a look at the new page at http://wiki.linuxmce.org/index.php/Running_the_Insteon_PLM_Driver_for_the_First_Time



Your on roll now... thats a very useful and well written page. :-)
Title: Re: How's Insteon working?
Post by: ddamron on January 06, 2008, 11:57:21 am
I'm sure there's more... It's hard to remember what I did...
This was my first attempt at Ruby programming, and at over 2000 lines of code, I think I did pretty good.
I'm taking a different approach to the PLCBUS interface.. a bit more coding at the beginning, but in the long run, I think it will help tremendously.. (much more OO design)

and to think that ENGLISH was my worst subject in school...
Dan
Title: Re: How's Insteon working?
Post by: hodge on January 08, 2008, 06:28:26 pm
I'm interested in playing with the home automation section of LinuxMCE, I'll look ta picking up some hardware and give this a try sometime soon.  Used to have an old x10 system back in the day but got rid of it.  I'm interested in trying out Insteon.
Title: Re: How's Insteon working?
Post by: ddamron on January 08, 2008, 06:31:37 pm
Great to hear!  Make sure you get a PLM 2412S - not a PLC 2414..
I've got a few problems logged with mantis that will make it better too...
Let me know how you make out...
PM me if you have problems, or, just post here... that way, everyone can benifit.
Installation is in the wiki.. just search for Insteon.

Regards,

Dan
Title: Re: How's Insteon working?
Post by: hodge on January 11, 2008, 03:22:11 pm
PLM and a lamplinc is on the way.  I think I got rid of my old x10 stuff because I can't find it anywhere.   :(
Title: Re: How's Insteon working?
Post by: hodge on January 19, 2008, 12:38:55 am
Finally got around to doing some testing.  Right I have everything configured but I'm getting this error when i view the interfaces page:

COM Port on PC     Error: top parent device not found

Might want to throw something on the wiki to select a room and controller.

Also you have it checking the 'Implements DCE' checkbox and changing 'Comm Method' to  RS232 then edit Ruby.  After the ruby window closes you have them hit F5 to update the Device template window which resets those settings.

Right now this is what I'm getting in the log file..

Quote
2340:01   01/18/08 17:33:19.536      Failed loading code: Error loading code:
error: (eval):2338: compile error
(eval):7: syntax error, unexpected tINTEGER, expecting kEND
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689
        ^
(eval):13: syntax error, unexpected tINTEGER, expecting kEND
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0040 0015 0040 0015 0015 0015 0689
        ^
(eval):19: syntax error, unexpected tINTEGER, expecting kEND
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0015 0015 0015 0015 0015 0015 0015 0015 0040 0015 0040 0015 0040 0015 0015 0015 0040 0015 0040 0015 0040 0015 0040 0015 0015 0015 0689
        ^
(eval):25: syntax error, unexpected tINTEGER, expecting kEND
0000 006D 0000 0022 00AC 00AC 0015 0040 0015 0040 0015 0040 0015 0015  <0xb5846b90>

Its pointing to the D after 0000 006

Hodge
Title: Re: How's Insteon working?
Post by: hodge on January 19, 2008, 12:56:19 am
Interesting, I must have screwed something up because it had a bunch of extra commands in there.  I created a new group and it didn't have them in there.  Scanning right now.
Title: Re: How's Insteon working?
Post by: ddamron on January 19, 2008, 06:37:13 am
Hodge,
Thanks for your feedback...

Let me know how it works for you..

Regards,

Dan
Title: Re: How's Insteon working?
Post by: hodge on January 19, 2008, 08:02:47 pm
Well When it was starting up it was sending out the 02 6B 40 but I was getting back a '00 E0' Response.  Turns out my PLM needs the baud rate set at 19200.  Its working great now.  Discovered my lamplinc and is working perfectly so far.  I'll have to buy a few more fancy modules so I can play some more.

Hodge
Title: Re: How's Insteon working?
Post by: ddamron on January 19, 2008, 10:33:12 pm
Heh, no problem.. Glad to see it's working for you!
I take it the spider didn't do anything...
it won't with only 1 module...
Title: Re: How's Insteon working?
Post by: JimmyGosling on February 14, 2008, 08:21:14 pm
Hey Dan,
first off, thanks for offering this code.  I'm just getting into LinuxMCE right now and it's great to see that there is already some Insteon support. 

In any case, pertaining to the tutorial.  I had a little trouble reading this line:
Quote
This driver supports ONLY the Powerlinc Modem model (PLM)# 2412S. If you have a 2414, this code will NOT work. You have a Powerlinc CONTROLLER. or PLC

Correct me if I'm wrong, but are you trying to say
Quote
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC)

Just a small point, but I thought it might be helpful.
Title: Re: How's Insteon working?
Post by: ddamron on February 15, 2008, 02:13:22 am
Hey Dan,
first off, thanks for offering this code.  I'm just getting into LinuxMCE right now and it's great to see that there is already some Insteon support. 

In any case, pertaining to the tutorial.  I had a little trouble reading this line:
Quote
This driver supports ONLY the Powerlinc Modem model (PLM)# 2412S. If you have a 2414, this code will NOT work. You have a Powerlinc CONTROLLER. or PLC

Correct me if I'm wrong, but are you trying to say
Quote
This driver supports ONLY the Powerlinc Modem model (PLM)#2412S. The code will NOT work for a model #2414 also known as a Powerlinc CONTROLLER (PLC)

Just a small point, but I thought it might be helpful.

Thanks Jimmy, my Grammar is upstairs in the bedrume..

Wiki updated..
Title: Re: How's Insteon working?
Post by: JimmyGosling on February 15, 2008, 07:02:55 pm
Not at all, I'm very impressed with your documentation skill, especially when considering it's a second language (I thought I read that somewhere)
Title: Re: How's Insteon working?
Post by: ddamron on February 16, 2008, 05:01:06 am
Heh, Engrish are de unly lanuage i no.
The reference was to my first attempt at Ruby programming.. hehe

mesa only spek engrish
;)
Title: Re: How's Insteon working?
Post by: JimmyGosling on February 17, 2008, 03:17:43 am
It's all very clear to me now.  lol
Title: Re: How's Insteon working?
Post by: ddamron on February 18, 2008, 10:37:23 pm
Well When it was starting up it was sending out the 02 6B 40 but I was getting back a '00 E0' Response.  Turns out my PLM needs the baud rate set at 19200.  Its working great now.  Discovered my lamplinc and is working perfectly so far.  I'll have to buy a few more fancy modules so I can play some more.

Hodge

YES Hodge, your ABSOLUTELY RIGHT.

I don't know WHY I did that, must have been a brain fart.

I have modified the wiki accordingly.

Thanks again!

Dan
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 01, 2008, 06:11:47 am
Well I screwed up.  I don't have a RS232 port.  I only have USB.  So I've gone and purchased the wrong thing.

So perhaps I need to send it back for the USB version, perhaps I don't, you tell me.

I had an old serial to usb converter cable laying around, and I noticed that drivers are already installed.  So I hooked that up and ran through the process.  I've ran through the setup and everything looked good with the exception of it well working.

dmesg | grep tty tells me [11770.691620] usb 5-1: pl2303 converter now attached to ttyUSB0
Do I still need to wait for that USB implementation to come out.  When it does come out, is this going to even work, or do I need to
1: go and purchase a serial pci card
2: exchange my device for the USB

thanks
Title: Re: How's Insteon working?
Post by: ddamron on March 01, 2008, 02:08:56 pm
Jimmy,

Check the MODEL number:  you need model 2412S.  This is a SERIAL device,
so chances are, you have the right one.  That Serial to USB Converter should do the trick for you.
Just to be sure, make sure it's a 2412S.

if it's a 2414, that's a PLC, and I haven't implemented those yet.  (Just received one, so sooner than later it will be implemented)

HTH,

Dan
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 01, 2008, 05:28:55 pm
alright, I do have the 2412S (confirmed). So what have I missed in the setup then.  I've tried plugging it in to both the rooms MD and the core, but I'm not getting any controls on my orbiters.  Any debugging steps that I can go through. 

Here are a couple of screen shots that may give you a better idea of where I'm at
(http://rogue-industrial.com/linuxmce/genDevice.JPG)
(http://rogue-industrial.com/linuxmce/genDevice2.JPG)
(http://rogue-industrial.com/linuxmce/genDevice3.JPG)
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 01, 2008, 11:39:30 pm
it appears that what I'm looking for Insteon to do is magically insert itself into my system and start working flawlessly, which of course, is nuts. 

It's quite possible that all this is missing, I'm starting to discover more and more that what I'm missing are the next steps.  Not being familiar with Insteon devices, or X10 for that matter, i don't know how to get them to talk to each other.  I'm  hoping that someone here can bridge the gap for me on Insteon documentation really.  What steps do I follow to actually add a lighting device? a controlled outlet?

thanks again.
Title: Re: How's Insteon working?
Post by: ddamron on March 02, 2008, 06:54:42 am
Jimmy,

well, I know for sure it works on the core, I have installed using those steps.  The PnP may not be working (haven't actually tested that), but here's a couple hints for ya.

1.  I see you have Insteon PLM Device 68 above.  All looks good from that screen.  Check to see if you have a log file created..
the log will be:
 /var/log/pluto/68_Generic_Serial_Device.log

and it will be on the CORE (as per your above setup.)

If that log file exists, do this:

tail -f  /var/log/pluto/68_Generic_Serial_Device.log

and reload router (in another window) and watch the log progress..

You should see some OUT: lines in green, and some IN: lines in red..
those signify the actual bytes being sent/received through the serial port (or usb dongle in your case)

If you see green and red lines (in and out) and still can't get it to work, post a section of your log, and I'll look at it.

I have been doing work on the PnP Lighting wizard, and I KNOW that doesn't work currently. (I think I've found the problem)

I'll be updating the wiki within the next few days.

HTH

Dan
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 02, 2008, 03:47:58 pm
After a bit of searching I found the thread you were posting the same questions too :)  so I don't feel like I've completely glossed over something, that's reassuring.

I'm seeing all red in the log file though, no inputs.
Code: [Select]
10      03/02/08 8:54:01.123            Opening connection to pci0000:00/0000:00:1d.1+1. <0xb5795b90>
01      03/02/08 8:54:01.123            Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5795b90>
01      03/02/08 8:54:01.123            IOPool::handleIteration Open() failed <0xb5795b90>

Next time I'll post back in that other thread to keep us all on point if that's alright.  I think we're at the same point here.
http://forum.linuxmce.org/index.php?topic=3587.0 (http://forum.linuxmce.org/index.php?topic=3587.0)


Also, per your other thread I've entered the port/channel of 12|0B.B2.09.  "0B.B2.09" being a tag I found on the device.  I'm not sure how solid that assumption was that this was the device address though.

Long and short of it.  I don't want to take up your time solving my issues.  I'm willing to wait until you have something more solid to go from.  thanks for your help.
Title: Re: How's Insteon working?
Post by: ddamron on March 02, 2008, 07:56:48 pm
Jimmy, NO, Don't do 12|0B...
that's a PROGRAMMING thing I was asking about
nothing to do with user interaction.
and, btw, I WAS doing it right.. the PnP part...
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 03, 2008, 03:48:44 am
Alright then, I switched back to the port/channel of "1" and tried sending the commands via the web admin

Here are some of the outputs from the log.  Just a snippet, but it's where the regular log changed.

Do I need to do some setup on the devices for the PLM to actually recognize this switch belongs to it?
Quote
01      03/02/08 20:47:52.142           IOPool::handleIteration Open() failed <0xb5768b90>
10      03/02/08 20:47:54.021           Receive string: MESSAGE 81             <0xb5fb1b90>
10      03/02/08 20:47:54.021           Received MESSAGE 81             0x80aba40 device: 68 <0xb5fb1b90>
10      03/02/08 20:47:54.021           Received Message type 1 ID 760 from 0 to 68 (device: 68) resp 0 <0xb5fb1b90>
10      03/02/08 20:47:54.022           Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='1905' <0xb5fb1b90>
10      03/02/08 20:47:54.022           Device has no AV properties <0xb5fb1b90>
10      03/02/08 20:47:54.022           Device has no AV properties <0xb5fb1b90>
05      03/02/08 20:47:54.022           GSDMessageTranslator isCmdImplemented = true <0xb5fb1b90>
10      03/02/08 20:47:54.022           ProcessReplicator : not translatable <0xb5fb1b90>
05      03/02/08 20:47:54.022           #### Pre-Process Queue = 1 <0xb5fb1b90>
10      03/02/08 20:47:54.022           Message processed by Translator. <0xb5fb1b90>
05      03/02/08 20:47:54.044           _QueueProc Pre - 760 : 0 <0xb77b4b90>
10      03/02/08 20:47:54.044           _QueueProc ------- 760 <0xb77b4b90>
05      03/02/08 20:47:54.044           GSD-Sleep Pre 760 : 0 <0xb77b4b90>
10      03/02/08 20:47:54.044           Routing Message 760 to 68... <0xb77b4b90>
10      03/02/08 20:47:54.044           Dispatching Message 760 to 68... <0xb77b4b90>
10      03/02/08 20:47:54.044           Command will be handled in Parent device. <0xb77b4b90>
10      03/02/08 20:47:54.044           Routing message ID=760 to device 68. <0xb77b4b90>
05      03/02/08 20:47:54.044           Process Queue = 1 <0xb77b4b90>
10      03/02/08 20:47:54.142           Calling method cmd_351 in class " with parameters <0xb5768b90>
(***):receive timeout=2
10      03/02/08 20:47:54.142           Method call ended. <0xb5768b90>
10      03/02/08 20:47:54.162           Routing message to Ruby Interpreter... <0xb5768b90>
10      03/02/08 20:47:54.162           handleMessage directly <0xb5768b90>
05      03/02/08 20:47:54.162           Parameter: 1 <0xb5768b90>
05      03/02/08 20:47:54.162           Parameter: 193 <0xb5768b90>
05      03/02/08 20:47:54.162           Parameter:  <0xb5768b90>
10      03/02/08 20:47:54.162           Calling method cmd_760 in class " with parameters <0xb5768b90>
(***):#760:id="1"
(***):#760:parameters=""
(***):#760:pk_command="193"
(***):#760:cmd=#<Command:0xb4f49d2c>
(***):X-----------SndIns: Waiting for response to:SndIns
(***):X-----------SndIns: Current Queue Length:2
10      03/02/08 20:47:54.162           Method call ended. <0xb5768b90>
05      03/02/08 20:47:54.164           GSD-Sleep Post 760 : 0 <0xb77b4b90>
05      03/02/08 20:47:54.164           _QueueProc Post - 760 : 0 <0xb77b4b90>
01      03/02/08 20:47:54.177           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 couldn't find a match <0xb5768b90>
10      03/02/08 20:47:54.177           Opening connection to pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:54.177           Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:54.177           IOPool::handleIteration Open() failed <0xb5768b90>
01      03/02/08 20:47:56.181           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 couldn't find a match <0xb5768b90>
10      03/02/08 20:47:56.181           Opening connection to pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:56.181           Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:56.181           IOPool::handleIteration Open() failed <0xb5768b90>
10      03/02/08 20:47:58.181           Calling method cmd_351 in class " with parameters <0xb5768b90>
(***):receive timeout=3
10      03/02/08 20:47:58.182           Method call ended. <0xb5768b90>
01      03/02/08 20:47:58.206           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 couldn't find a match <0xb5768b90>
10      03/02/08 20:47:58.206           Opening connection to pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:58.206           Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:47:58.206           IOPool::handleIteration Open() failed <0xb5768b90>
01      03/02/08 20:48:00.210           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 couldn't find a match <0xb5768b90>
10      03/02/08 20:48:00.210           Opening connection to pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:48:00.210           Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5768b90>
01      03/02/08 20:48:00.210           IOPool::handleIteration Open() failed <0xb5768b90>
Title: Re: How's Insteon working?
Post by: ddamron on March 05, 2008, 08:43:04 pm
01      03/02/08 20:47:54.177           Failed Opening serial port: pci0000:00/0000:00:1d.1+1. <0xb5768b90>
this line tells me it's a USB Dongle problem..  See if you can use the dongle for something else (ie confirm it works)
HtH
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 08, 2008, 04:32:42 pm
Well I hooked up the dongle to another box and tried.  It failed (not sure why, could have sworn it worked the other day, but there you have it)

I instead went out and bought a serial card and plugged that in. Still no go, but I have a different log.  Here is what it looks like:

Quote
10      03/08/08 9:23:57.749            Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fbfb90>
10      03/08/08 9:23:57.749            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:57.749            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:57.749            AVMessageTranslator::Translate begin <0xb5fbfb90>
10      03/08/08 9:23:57.749                Status : CMD=184, TP=0, TI=0 last input 0 last power 0 <0xb5fbfb90>
10      03/08/08 9:23:57.750            Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fbfb90>
10      03/08/08 9:23:57.750            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:57.750            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:57.750            AVMessageTranslator::Translate end <0xb5fbfb90>
05      03/08/08 9:23:57.750            #### Pre-Process Queue = 1 <0xb5fbfb90>
10      03/08/08 9:23:57.750            Message processed by Translator. <0xb5fbfb90>
05      03/08/08 9:23:57.770            _QueueProc Pre - 184 : 0 <0xb77c2b90>
10      03/08/08 9:23:57.770            _QueueProc ------- 184 <0xb77c2b90>
05      03/08/08 9:23:57.770            GSD-Sleep Pre 184 : 0 <0xb77c2b90>
10      03/08/08 9:23:57.770            Routing Message 184 to 73... <0xb77c2b90>
10      03/08/08 9:23:57.770            Dispatching Message 184 to 73... <0xb77c2b90>
10      03/08/08 9:23:57.770            Command will be handled in Parent device. <0xb77c2b90>
10      03/08/08 9:23:57.770            Routing message ID=184 to device 73. <0xb77c2b90>
05      03/08/08 9:23:57.770            Process Queue = 1 <0xb77c2b90>
10      03/08/08 9:23:57.788            Routing message to Ruby Interpreter... <0xb5776b90>
10      03/08/08 9:23:57.788            handleMessage for child <0xb5776b90>
10      03/08/08 9:23:57.788            Calling method cmd_ReceiveCommandForChild in class " with parameters <0xb5776b90>
(***):------dce--- cmdID:184, cmdFrom:49, cmdTo:73, cmdType:1, Priority:1
(***):Parameter 76 = 100
(***):X10 DEVICE!!! relative Dimming command
(***):DeviceID=1
01      03/08/08 9:23:57.789            Error while calling method: Cannot call class method: cmd_ReceiveCommandForChild
error: undefined method `chr' for nil:NilClass, line: 2007
backtrace:
        in: (eval): 2007
        from (eval):2007:in `cmd_ReceiveCommandForChild'
        from (eval):1968
 <0xb5776b90>
10      03/08/08 9:23:58.636            Receive string: MESSAGE 67             <0xb5fbfb90>
10      03/08/08 9:23:58.636            Received MESSAGE 67             0x80aba40 device: 68 <0xb5fbfb90>
10      03/08/08 9:23:58.636            Received Message type 1 ID 193 from 49 to 73 (device: 68) resp 0 <0xb5fbfb90>
05      03/08/08 9:23:58.636            GSDMessageTranslator isCmdImplemented = false <0xb5fbfb90>
10      03/08/08 9:23:58.637            Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fbfb90>
10      03/08/08 9:23:58.637            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.637            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.637            Got power command for Device: 73 <0xb5fbfb90>
10      03/08/08 9:23:58.637            Using delay of: 0. <0xb5fbfb90>
10      03/08/08 9:23:58.637            Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fbfb90>
10      03/08/08 9:23:58.637            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.637            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.637            AVMessageTranslator::Translate begin <0xb5fbfb90>
10      03/08/08 9:23:58.637                Status : CMD=193, TP=0, TI=0 last input 0 last power 0 <0xb5fbfb90>
10      03/08/08 9:23:58.638            Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fbfb90>
10      03/08/08 9:23:58.638            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.638            Device has no AV properties <0xb5fbfb90>
10      03/08/08 9:23:58.638            AVMessageTranslator::Translate end <0xb5fbfb90>
05      03/08/08 9:23:58.638            #### Pre-Process Queue = 1 <0xb5fbfb90>
10      03/08/08 9:23:58.638            Message processed by Translator. <0xb5fbfb90>
10      03/08/08 9:23:59.158            Calling method cmd_351 in class " with parameters <0xb5776b90>
10      03/08/08 9:23:59.158            Method call ended. <0xb5776b90>

by the way, device #38 is the onscreen orbiter for the room I would like to dim the lights in.

I'm also not running any X10 devices here.  Only the insteon plm and a single dimmer switch.  Any ideas on what to try next?
Title: Re: How's Insteon working?
Post by: hari on March 08, 2008, 06:38:08 pm
hmm, somehow the translation for the serial port does not work:
Code: [Select]
01      03/02/08 20:47:54.177           TranslateSerialUSB pci0000:00/0000:00:1d.1+1 couldn't find a match <0xb5768b90>
that should spit out something like /dev/ttyUSB0

please come to the irc chat, we can try something.

best regards,
Hari
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 11, 2008, 02:43:39 am
So, same error, but perhaps a little better presented.  Here is the latest. 
Quote
10      03/10/08 20:22:03.749           Calling method cmd_351 in class " with parameters <0xb578bb90>
10      03/10/08 20:22:03.749           Method call ended. <0xb578bb90>
10      03/10/08 20:22:04.251           Receive string: MESSAGE 67             <0xb5fd4b90>
10      03/10/08 20:22:04.251           Received MESSAGE 67             0x80aba40 device: 68 <0xb5fd4b90>
10      03/10/08 20:22:04.251           Received Message type 1 ID 193 from 64 to 73 (device: 68) resp 0 <0xb5fd4b90>
05      03/10/08 20:22:04.251           GSDMessageTranslator isCmdImplemented = false <0xb5fd4b90>
10      03/10/08 20:22:04.252           Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fd4b90>
10      03/10/08 20:22:04.252           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.252           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.252           Got power command for Device: 73 <0xb5fd4b90>
10      03/10/08 20:22:04.252           Using delay of: 0. <0xb5fd4b90>
10      03/10/08 20:22:04.253           Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fd4b90>
10      03/10/08 20:22:04.253           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.253           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.253           AVMessageTranslator::Translate begin <0xb5fd4b90>
10      03/10/08 20:22:04.253               Status : CMD=193, TP=0, TI=0 last input 0 last power 0 <0xb5fd4b90>
10      03/10/08 20:22:04.253           Query returned 0 rows: SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='38' <0xb5fd4b90>
10      03/10/08 20:22:04.253           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.253           Device has no AV properties <0xb5fd4b90>
10      03/10/08 20:22:04.253           AVMessageTranslator::Translate end <0xb5fd4b90>
05      03/10/08 20:22:04.253           #### Pre-Process Queue = 1 <0xb5fd4b90>
10      03/10/08 20:22:04.253           Message processed by Translator. <0xb5fd4b90>
05      03/10/08 20:22:04.257           _QueueProc Pre - 193 : 0 <0xb77d7b90>
10      03/10/08 20:22:04.257           _QueueProc ------- 193 <0xb77d7b90>
05      03/10/08 20:22:04.257           GSD-Sleep Pre 193 : 0 <0xb77d7b90>
10      03/10/08 20:22:04.257           Routing Message 193 to 73... <0xb77d7b90>
10      03/10/08 20:22:04.257           Dispatching Message 193 to 73... <0xb77d7b90>
10      03/10/08 20:22:04.257           Command will be handled in Parent device. <0xb77d7b90>
10      03/10/08 20:22:04.257           Routing message ID=193 to device 73. <0xb77d7b90>
05      03/10/08 20:22:04.257           Process Queue = 1 <0xb77d7b90>
10      03/10/08 20:22:04.276           Routing message to Ruby Interpreter... <0xb578bb90>
10      03/10/08 20:22:04.276           handleMessage for child <0xb578bb90>
10      03/10/08 20:22:04.276           Calling method cmd_ReceiveCommandForChild in class " with parameters <0xb578bb90>
(***):------dce--- cmdID:193, cmdFrom:64, cmdTo:73, cmdType:1, Priority:1
(***):------dce--- X10 DEVICE!!!
(***):DeviceID=1
01      03/10/08 20:22:04.277           Error while calling method: Cannot call class method: cmd_ReceiveCommandForChild
error: undefined method `chr' for nil:NilClass, line: 1968
backtrace:
        in: (eval): 1968
        from (eval):1968:in `cmd_ReceiveCommandForChild'
        from (eval):2007
 <0xb578bb90>
10      03/10/08 20:22:05.767           Calling method cmd_351 in class " with parameters <0xb578bb90>
10      03/10/08 20:22:05.767           Method call ended. <0xb578bb90>
01      03/10/08 20:22:22.001           Ruby was unable to handle the command in reasonable amount of time <0xb77d7b90>
05      03/10/08 20:22:22.001           GSD-Sleep Post 193 : 0 <0xb77d7b90>
05      03/10/08 20:22:22.001           _QueueProc Post - 193 : 0 <0xb77d7b90>
10      03/10/08 20:22:23.868           Calling method cmd_351 in class " with parameters <0xb578bb90>
10      03/10/08 20:22:23.868           Method call ended. <0xb578bb90>
19 - Core
38 - Room on screen orbiter
68 - PLM
73 - Light Switch

The PLM is connected to the core(19), but is operating the lights in the same room with 38.  I'm no longer using a usb-serial cable, but instead have a serial card installed.
Title: Re: How's Insteon working?
Post by: ddamron on March 12, 2008, 12:54:09 pm
JimmyGosling is up and running.

Title: Re: How's Insteon working?
Post by: seth on March 12, 2008, 01:01:50 pm
Any update on X10 working yet? Just curious, I have been off line waiting for a chance to redo my system with the new motherboard. I am downloading beta4, in the hopes that perhaps my old cm11a-like device will function in the meantime.

I keep watching this post.  ;)

Title: Re: How's Insteon working?
Post by: JimmyGosling on March 12, 2008, 01:35:56 pm
I can't comment on the x10 stuff as I don't have any running in the house, but I would like to thank ddamron for taking the time to help me get this up and running personally.

I would like to know more about the commands you were running and specifically what you were looking for during the process so that I can do the same when I'm adding new devices or likewise trying to "pay off my debt" helping others ;)  I think the wiki would be the ideal place of course.  Let me know if there is anything I can help with on that end (tech writing, validation or otherwise).

Also, I would like to point out what a great resource the IRC is as well.  Not only for getting some one on one help, but really getting to know and enjoying this community.  I've already picked up a a lot of great information that was missing from the wiki and these forums and really only comes up in regular conversation. 
Title: Re: How's Insteon working?
Post by: marrandy on March 12, 2008, 02:41:33 pm
"JimmyGosling is up and running."

Can either you or Jimmy say what the problem was and how it was made to work.

This could be useful for other people as it's a permanent record.

PS. I've just rx'd my 2412S so I'm hoping to start testing real soon.

Regards and best wishes...Martin
Title: Re: How's Insteon working?
Post by: ddamron on March 13, 2008, 07:27:07 am
"JimmyGosling is up and running."

Can either you or Jimmy say what the problem was and how it was made to work.

This could be useful for other people as it's a permanent record.

PS. I've just rx'd my 2412S so I'm hoping to start testing real soon.

Regards and best wishes...Martin

Marrandy,

Yesterday, I did an Insteon Update on the wiki.  Here's the latest:

1.  X10 isn't quite operational yet.  Some of X10 works, some doesn't.
2.  In debugging the X10 side, I came across bug after bug after bug, I've spent about 16 hours, and it's still not up with X10 yet.
3.  Part of the problems with X10 are to do with HOW X10 addresses are stored in the database.  That led to a POTENTIAL problem of having orphaned records, which led to a potential to have an orphaned device, etc etc etc,... so now, if the PLM cannot communicate, it removes the device, then also removes the link in the PLM.

Along with all this, I've been fighting with 2 other issues regarding PnP.

1.  The PLM Device itself (autosense and auto config/install of the PLM)
2.  PnP detection of detected INSTEON devices (partially working)

I'm almost tempted to push this back into BETA rather than Release candidate.  The other option is to make restrictions as to it's current capabilities.  As you know, Insteon devices come in all flavours, from climate to irrigation to plumbing, to Automatic Pet watering devices..  About 95% of the devices currently sense properly, but I'm fighting with how to create the child devices for said insteon devices.

(a perfect example, my Irrigation controller senses correctly, but the only template available is a Sprinkler Valve... I have to create a specific device template for a sprinkler CONTROLLER with 8 sprinkers, programs, timers, etc etc.)

What (Jimmy and) I did was FOLLOW THE WIKI.  it's updated as often as I can, with current code.

There was no 'magic fix', it worked right from the wiki.

Jimmy simply accidentally copied the wrong code into the wrong field :)

I ra'd into his box, and had him up in about 1/2 hour.

Sorry, I don't have the link in the wiki handy, but search for INSTEON, and I'm sure you'll find it.

HTH

Dan
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 13, 2008, 05:49:24 pm
marrandy,
Perhaps these will be of some help.  A couple of screen shots from my own setup:
(http://www.garage68.com/linuxmce/genericDevice.JPG)
This first picture is of the PLM.  This is what it should look like after you have completed the steps detailed in the wiki. Your "com port on PC" will likely be different as well as the room name (should be the room containing your core)

(http://www.garage68.com/linuxmce/lightingDevice.JPG)
This second picture is of my two devices.  the first the light dimmer switch, and the second is actually a switchable wall receptical which I use for floor lights.  ddamron informs me that soon this will be an automatic setup, but current these were set up manually.  Ddamron added the first, I added the second without any issues.

The floorplan info is not needed, this is just the map point for your floorplan.  (you may not have/want/need one)
The PK_FloorplanObjectType will be setup when you add the new device and pick a template
The port channel number (also referred to as the Insteon ID) is a hex code you'll find on the device itself.  (a small sticker at the bottom)
Configuration: You don't set this, the system will pick it up when it finds the device and downloads it's db.  When you add a new device you can "reset" this config and download again by simply deleting this line and updating.

Hopefully that has helped clarify a few things.
Title: Re: How's Insteon working?
Post by: ddamron on March 15, 2008, 09:48:45 pm
Jimmy,

It's also worth noting (since you posted the image) the configuration line.  This field is added by my driver, so you don't have to put anything there.
and just fyi:
00-01 = Device Cat
02-03 = Device Subcat
04-05 = Database Delta
after the ******** starts the ACTUAL DEVICE's COMPLETE DATABASE (in the form it's stored in the device)

ie:  Your device # 75 is Insteon Devcat 01 (Lighting Control Dimming) and subcat 04 = SwitchLinc V2 Dimmer 1000W [2476DH]
Your Device # 76 is Insteon Devcat 02(Lighting Control Switched) and subcat 08 = OutletLinc [2473S]
oh, to activate the 'spider', reset the configuration line, (delete it).  When the router is reloaded, it compared the database delta (04-05) with the database delta in the remote device.  If they are different, it downloads the complete database automagically, then examines that database for links it doesn't know about, attempts to connect to them, adds them as 'children', and downloads their device databases, and continues like so, until it doesn't find any new records.

HTH

Dan
Title: Re: How's Insteon working?
Post by: JimmyGosling on March 17, 2008, 03:53:55 pm
that's some great info.

I've taken the liberty of adding this entry into the insteon wiki page
http://wiki.linuxmce.org/index.php/Running_the_Insteon_PLM_Driver_for_the_First_Time#Sample_Setup (http://wiki.linuxmce.org/index.php/Running_the_Insteon_PLM_Driver_for_the_First_Time#Sample_Setup) basically reflecting what we've said here.
Title: Re: How's Insteon working?
Post by: cesarscav on September 05, 2008, 04:59:33 am
I Don't know if it is to late to post here. hope is not and some one with  more experience that I, could give me a hand on this issue

My configuration first

Linux MCE 7.10 RC2 AMD 64
PLM 2412S (Tried different ways of connecting , GC100, USB - Serial Adapter, Installed Serial PCI card)
2 wall Switches

Follow up the RC1 Insteon Support on wiki
The set up went easy no issues there, the driver starts fine( I think).
It detects the switches creates the config
The problem start when I try to send a command (on or off) from the web admin or the orbiter to one of the devices, nothings happens When I look at the logs as suggested here
Quote
       

 *  in the TOP RIGHT, click 'FOLLOW LOG'

This will pop up a new window with the log processing in real time. When you quick reload the router, I'd recommend pressing F5 on the Log window to clear out the old history. During the initialization of the GSD, it shows all the code (over 2000 lines) before it actually 'starts' (hence the refresh)
.
I see this

Code: [Select]
05 09/04/08 22:48:34.264 GSDMessageTranslator isCmdImplemented = false <0x42003950>
05 09/04/08 22:48:34.271 #### Pre-Process Queue = 1 <0x42003950>
05 09/04/08 22:48:34.279 _QueueProc Pre - 192 : 0 <0x40800950>
05 09/04/08 22:48:34.280 GSD-Sleep Pre 192 : 0 <0x40800950>
05 09/04/08 22:48:34.280 Process Queue = 1 <0x40800950>
05 09/04/08 22:48:34.283 GSD-Sleep Post 192 : 0 <0x40800950>
05 09/04/08 22:48:34.283 _QueueProc Post - 192 : 0 <0x40800950>
should I see the command going out?
I test the devices with a linux tool plmtools-0.0.3-r1 downloaded here:http://sourceforge.net/project/showfiles.php?group_id=217379 (http://sourceforge.net/project/showfiles.php?group_id=217379) in the same computer
And it worked fine it sends the commands and receive the reply from the devices.

I'm really stuck here. Please if some one of the big guys can give me a hand here I'll appreciated.

Thanks

Cesar






Title: Re: How's Insteon working?
Post by: williammanda on September 15, 2008, 06:06:14 pm
I'm having trouble getting the 2412s to communicate with a X10 light switch (maybe ws467). See more detail at this post:
http://forum.linuxmce.org/index.php?topic=5931.0

Thanks