Author Topic: Anyone Have Insteon Working in 810 yet??  (Read 10684 times)

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Re: Anyone Have Insteon Working in 810 yet??
« Reply #15 on: July 22, 2010, 08:35:59 pm »
I see I can not run the script from the command line , because there is no parameters ??? right ?? so why the script is not running automatically ???

I just sent a command to the serial port COM-0 and it is OK why the script is not OK ???
Code: [Select]
linuxmce@dcerouter:~$ /usr/pluto/bin/TestSerialPort -p /dev/ttyS0 -P N81 -b 9600 -t "\r\s500m\rPO\r"                                                                                                                                        
\f0\f0
linuxmce@dcerouter:~$

Running the script
Code: [Select]
linuxmce@dcerouter:/usr/pluto/pnp$ sudo ./88_InsteonPLM.sh
[sudo] password for linuxmce:
Insteon Powerline Modem Detection Script queue
Unknown: N81
TestSerialPort, v.2.0.0.44.10071723165
Usage: TestSerialPort [-p port] [-P N81|E81|O81] [-t transmit string]
[-s Search String] [-m message to log] [-i Timeout] [-b baud] [-h]
strings can include: \xx (xx is a hex char), \r and \n, and to delay x ms, \sxm
\b means send a break
-M puts it in monitor mode where it just reports the state
  of hardware flow control until ctrl+c is pressed
It's not an Insteon Powerline Modem
RESP: UNHANDLED
linuxmce@dcerouter:/usr/pluto/pnp$

« Last Edit: July 22, 2010, 08:41:44 pm by ccoudsi »
Cheers |[BEER]
Charlie,

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Re: Anyone Have Insteon Working in 810 yet??
« Reply #16 on: July 22, 2010, 08:58:12 pm »
Ok, Here's the error from the Insteon Log

Code: [Select]
2603:(***):MY DEVICE:34(***):SndIns:Queue:101 07/21/10 18:25:51.153
Error while calling method: Cannot call class method: cmd_355error: undefined local variable or method `conn_' for #, line: 1614backtrace:
in: (eval): 1614 from (eval):1614:in `SndIns' from (eval):308:in `cmd_355' <0xb4eb4b90>(***):receive timeout=1(***):receive timeout=2(***):receive timeout=3(***):
Command Stalled!  resetting and retrying(***):Current Command:0(***):SndIns:Queue:101 07/21/10 18:26:01.091 Error while calling method: Cannot call class method: cmd_351error:
undefined local variable or method `conn_' for #, line: 1614backtrace: in: (eval): 1614 from (eval):1614:in `SndIns' from (eval):73:in `cmd_351' from (eval):1614 <0xb4eb4b90>(***):
receive timeout=1(***):receive timeout=2(***):receive timeout=3(***):Command Stalled!  resetting and retrying(***):
Current Command:0(***):SndIns:Queue:101 07/21/10 18:26:09.119 Error while calling method: Cannot call class method: cmd_351error:
undefined local variable or method `conn_' for #, line: 1614backtrace: in: (eval): 1614
from (eval):1614:in `SndIns' from (eval):73:in `cmd_351' from (eval):1614 <0xb4eb4b90>(***):receive timeout=1(***):receive timeout=2(***):receive timeout=3(***):
Third attempt, Failing Command!(***):Command Completed.(***):Queue Empty.(***):RERUN Not needed(***):Reporting Child Devices(***):05 07/21/10 18:26:45.869
Got a reload command from 0  <0xb56ffb90>05 07/21/10 18:26:46.175 void ClientSocket::Disconnect()
on this socket: 0x83d35f8 (m_Socket: 8) <0xb70078d0>Return code: 2
Cheers |[BEER]
Charlie,

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Re: Anyone Have Insteon Working in 810 yet??
« Reply #17 on: July 22, 2010, 09:53:05 pm »
Thanks Thom & Zaerc, for explaining my mistake.
It is now working as it used to be, just by deleting the device and adding it again, I think because the first time I created the PnP script after I added the Template.

FYI, I noticed there is errors in the log
Code: [Select]
01 07/22/10 12:39:17.263 Connect failed Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) <0xb582db90>01 07/22/10 12:39:17.263 Query failed (MySQL server has gone away): SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='37' (1) <0xb582db90>01 07/22/10 12:39:17.263 Connect failed Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) <0xb582db90>01 07/22/10 12:39:17.263 Connect failed Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) <0xb582db90>01 07/22/10 12:39:17.264 Query failed (MySQL server has gone away): SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='37' (1) <0xb582db90>01 07/22/10 12:39:17.264 Connect failed Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) <0xb582db90>01 07/22/10 12:39:17.264 Connect failed Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) <0xb582db90>01 07/22/10 12:39:17.264 Query failed (MySQL server has gone away): SELECT IR_PowerDelay FROM DeviceTemplate_AV WHERE FK_DeviceTemplate='37' (1) <0xb582db90>
« Last Edit: July 22, 2010, 09:54:53 pm by ccoudsi »
Cheers |[BEER]
Charlie,

valent

  • Guru
  • ****
  • Posts: 381
    • View Profile
    • /kernel_reloaded/
Re: Anyone Have Insteon Working in 810 yet??
« Reply #18 on: July 23, 2010, 08:36:45 am »
What Insteon devices do you have? Do they now work ok? I would like to add them to Wiki if they work for you, then they should also work for others.
LinuxMCE - If it was easy, everybody would be doing it!!
My setup - http://wiki.linuxmce.org/index.php/User:Valent

ccoudsi

  • Guru
  • ****
  • Posts: 244
    • View Profile
Cheers |[BEER]
Charlie,