Cynical Network: Make (IP) network connections from Indigo

Posted on
Wed Dec 14, 2011 12:45 pm
rlust offline
Posts: 93
Joined: Jan 12, 2009
Location: Ohio

Re: Cynical Network: Make (IP) network connections from Indi

I am getting the following error when I try to send an ir command.
I see that 1.01 is available but cannot find where to download it.

Plugin "Cynical Caché" connected
Plugin "Cynical Caché 1.0.0" started
Cynical Caché mapping device "FR Emitter 1" 472636170(iremitter)
Cynical Caché FR Emitter 1 starting
Cynical Caché mapping device "Global cache iTach FR" 1271147914(gcnet)
Cynical Caché Global cache iTach FR starting
Cynical Caché Global cache iTach FR connecting to network device 192.168.1.199
Cynical Caché mapping device "FR IR Receiver" 706404186(irreceiver)
Cynical Caché FR IR Receiver starting
Cynical Caché FR IR Receiver is now ready
Cynical Caché plugin starting asyn operation
Cynical Caché using no IR database
Cynical Caché Global cache iTach FR ready with 3 device(s)
Cynical Caché FR Emitter 1 host device Global cache iTach FR now available
Cynical Caché FR Emitter 1 is now ready
Action Group FR IR Send TV On
Cynical Caché send None to <irdev.IREmitter object at 0x485edf0> repeating 0
Cynical Caché Error in runConcurrentThread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 40, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 52, in runConcurrentThread
self.run()
File ".../Server Plugin/asyn/inject.py", line 42, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 79, in run
item._can_read()
File ".../Server Plugin/asyn/inject.py", line 186, in _can_read
sel(*args, **kwargs)
File ".../Server Plugin/irdev.py", line 92, in sendIR
self.gcdev.emit(symbol, action.count)
File ".../Server Plugin/ir/gcache/gcnet.py", line 128, in emit
task = IRTask(self, ir.symbol().code(repeat), repeat)
AttributeError: 'NoneType' object has no attribute 'symbol'

Cynical Caché Error plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds
Error unknown command bytes received F0 F0 (ignoring)
Cynical Caché plugin starting asyn operation
Error unknown command bytes received F0 F0 (ignoring)
Error PowerLinc not responding -- attempting rese

Posted on
Wed Dec 14, 2011 1:47 pm
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Cynical Network: Make (IP) network connections from Indi

You can download 1.0.1 from the user contribution library.

Image

Posted on
Wed Dec 14, 2011 1:56 pm
rlust offline
Posts: 93
Joined: Jan 12, 2009
Location: Ohio

Re: Cynical Network: Make (IP) network connections from Indi

Thanks, I have loaded the 1.01 version and still getting the following error.


Enabling plugin "Cynical Caché 1.0.1"
Starting plugin "Cynical Caché 1.0.1" (pid 4285)
Plugin "Cynical Caché" connected
Plugin "Cynical Caché 1.0.1" started
Action Group FR IR Send TV On
Cynical Caché Error in runConcurrentThread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 40, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 52, in runConcurrentThread
self.run()
File ".../Server Plugin/asyn/inject.py", line 42, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 79, in run
item._can_read()
File ".../Server Plugin/asyn/inject.py", line 186, in _can_read
sel(*args, **kwargs)
File ".../Server Plugin/irdev.py", line 92, in sendIR
self.gcdev.emit(symbol, action.count)
File ".../Server Plugin/ir/gcache/gcnet.py", line 128, in emit
task = IRTask(self, ir.symbol().code(repeat), repeat)
AttributeError: 'NoneType' object has no attribute 'symbol'

Cynical Caché Error plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds
Error PowerLinc not responding -- attempting reset
Power Failure possible power failure
Connected to PowerLinc 2413U interface on port usbserial-A8006XxA
PowerLinc address 19.76.98, firmware version 9.8
Cynical Caché Error FR IR Receiver unavailable: [Errno 35] Resource temporarily unavailable
Interface Failure lost connection with interface


[color=#FF0000]
[/color]

Posted on
Wed Dec 14, 2011 6:31 pm
Perry The Cynic offline
Posts: 838
Joined: Apr 07, 2008

Re: Cynical Network: Make (IP) network connections from Indi

Rlust,

Do you have debug logging enabled in the plugin? There's supposed to be some interesting information ahead of that crash.

Double-check the action to make sure it really contains a symbol. (The UI is supposed to make sure of that, but there are upgrade scenarios where that doesn't always work right.) Essentially, the error means that there's no IR symbol to send (and it's not checking for that case). Try to delete and recreate the action.

Oh, and what's the string for the IR symbol you're trying to send?

Cheers
-- perry

Posted on
Wed Dec 14, 2011 11:13 pm
rlust offline
Posts: 93
Joined: Jan 12, 2009
Location: Ohio

Re: Cynical Network: Make (IP) network connections from Indi

Debugging is on.
HEre is the command I sent
171,169,22,64,22,64,22,64,22,21,22,21,22,21,22,21,22,21,22,64,22,...,22,64,22,3810

I tried deleting the Action and re-created, still this error

It also seems to messing up my Insteon IF

Thanks for your help!!
Randy

lugin "Cynical Caché" disconnected
Enabling plugin "Cynical Caché 1.0.1"
Starting plugin "Cynical Caché 1.0.1" (pid 26729)
Plugin "Cynical Caché" connected
Plugin "Cynical Caché 1.0.1" started
Action Group FR TV On
Cynical Caché Error in runConcurrentThread: Traceback (most recent call last):
File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
yield
File ".../Server Plugin/cyin/debugging.py", line 40, in diagnose_call
return method(*args, **kwargs)
File ".../Server Plugin/cyin/asynplugin.py", line 52, in runConcurrentThread
self.run()
File ".../Server Plugin/asyn/inject.py", line 42, in run
asyn.Controller.run(self)
File ".../Server Plugin/asyn/controller.py", line 79, in run
item._can_read()
File ".../Server Plugin/asyn/inject.py", line 186, in _can_read
sel(*args, **kwargs)
File ".../Server Plugin/irdev.py", line 92, in sendIR
self.gcdev.emit(symbol, action.count)
File ".../Server Plugin/ir/gcache/gcnet.py", line 128, in emit
task = IRTask(self, ir.symbol().code(repeat), repeat)
AttributeError: 'NoneType' object has no attribute 'symbol'

Cynical Caché Error plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds
Error unknown command bytes received F0 F0 (ignoring)
Error PowerLinc not responding -- attempting reset
Power Failure possible power failure
Connected to PowerLinc 2413U interface on port usbserial-A8006XxA
PowerLinc address 19.76.98, firmware version 9.8
Interface Failure lost connection with interface

Posted on
Thu Dec 15, 2011 10:04 am
Perry The Cynic offline
Posts: 838
Joined: Apr 07, 2008

Re: Cynical Network: Make (IP) network connections from Indi

Rlust,
171,169,22,64,22,64,22,64,22,...,64,22,3810


This is not a recognized format for an IR symbol. Take a look at the help pages for some advice. The plugin should tell you that immediately but doesn't. It also doesn't check that later (because it thinks it did it earlier :-)), which is why you get all that ugly spew.

Error unknown command bytes received F0 F0 (ignoring)
Error PowerLinc not responding -- attempting reset
Power Failure possible power failure
Connected to PowerLinc 2413U interface on port usbserial-A8006XxA
PowerLinc address 19.76.98, firmware version 9.8
Interface Failure lost connection with interface


I sincerely hope that there is nothing my plugin can do to cause failure of your Insteon interface. It looks like you have unrelated problems. But I'll let the Indigo folks chime in on that one.

Cheers
-- perry

Posted on
Thu Dec 15, 2011 10:21 am
jay (support) offline
Site Admin
User avatar
Posts: 18260
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Cynical Network: Make (IP) network connections from Indi

Error unknown command bytes received F0 F0 (ignoring)
Error PowerLinc not responding -- attempting reset
Power Failure possible power failure
Connected to PowerLinc 2413U interface on port usbserial-A8006XxA
PowerLinc address 19.76.98, firmware version 9.8
Interface Failure lost connection with interface


That implies that the PowerLinc started receiving some garbage that it was trying to interpret and likely got hung up because of it. Severe signal noise can cause PowerLincs to behave that way. If it continues, check out the signal troubleshooting page for common causes and solutions to signal issues.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Sat Dec 17, 2011 3:36 pm
Sanderkoers offline
Posts: 43
Joined: Sep 03, 2010

Re: Cynical Network: Make (IP) network connections from Indi

Thanks, great plugin ! i am using it to control my Marantz AV7005 pre-amp !! works fine for me !

Posted on
Tue Feb 07, 2012 2:51 am
TomBear offline
Posts: 2
Joined: Jan 05, 2010

Re: Cynical Network: Make (IP) network connections from Indi

Hi,

Would someone help me and show example how to send command to Onkyo receiver (TX-NR3007) via ethernet?


Onkyos command structure:
(sorry about the formatting, copied it from excel)

1.2. ISCP over Ethernet (eISCP)
*eISCP Packet Format

+0 +1 +2 +3
eISCP Header I S C P
Header Size
Data Size
Version Reserved
eISCP Data 1stChar 2ndChar 3rdChar 4thChar
5thChar ISCP Message
EndChar

eISCP Data(=ISCP Message)
1st 2nd 3rd-5th 6th- last
! 1 P W R 0 1 [EOF] [CR] [LF]

End Character
"""[EOF]"" or ""[EOF][CR]"" or ""[EOF][CR][LF]"" depend on model"
ISCP Message(Command+Parameter)
"Destination Unit type Character (""1"" for Receiver)"
Start Character

"Header Size is the size of eISCP Header. In order to extend header size in the future, it is necessary to take it into calculation. Now, it is 0x00000010. (**BIGENDIAN**)"
Data Size is the size of the eISCP Data. (**BIGENDIAN**)
"Version is ISCP version. Now, it is 0x01."
"Reserved is used extending it in the future. Now, it is 0x000000."
"Unit Type is the model category ID. The Receiver is ""1""."

http://www.wyerd.co.uk/images/onkyo_cmds.xls

Posted on
Mon Mar 05, 2012 2:55 pm
HomeAutomationPlugins.com offline
Posts: 41
Joined: Feb 18, 2012

Re: Cynical Network: Make (IP) network connections from Indi

Hi,

Thanks for the plugin!

I am getting the following error though (after several days of running) - any ideas?

Code: Select all
character 553 of line number 1.
  Cynical Network Error           in runConcurrentThread: Traceback (most recent call last):
  File ".../Server Plugin/cyin/debugging.py", line 32, in diagnostic_log
    yield
  File ".../Server Plugin/cyin/debugging.py", line 40, in diagnose_call
    return method(*args, **kwargs)
  File ".../Server Plugin/cyin/asynplugin.py", line 52, in runConcurrentThread
    self.run()
  File ".../Server Plugin/asyn/inject.py", line 42, in run
    asyn.Controller.run(self)
  File ".../Server Plugin/asyn/controller.py", line 79, in run
    item._can_read()
  File ".../Server Plugin/asyn/selectable.py", line 220, in _can_read
    result = scan(self._rbuf, self.callout)
  File ".../Server Plugin/asyn/scan.py", line 65, in scan
    callout(ctx, *m.groups())
  File ".../Server Plugin/asyn/core.py", line 126, in callout
    results = [cb(ctx, *args) for cb in list(self._callbacks)]
  File "plugin.py", line 136, in _event
    indigo.variable.updateValue(self.lastinput.id, value=str(args[0]))
StandardError: ServerCommunicationError -- timeout waiting for server response

  Cynical Network Error           plugin runConcurrentThread function returned or failed; will attempt again in 10 seconds


Thanks in advance!

Posted on
Mon Mar 05, 2012 3:01 pm
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Cynical Network: Make (IP) network connections from Indi

That error looks like your Indigo Server is hanging for too long and thus the plugin cannot communicate with it.

It could be a script in an action that is causing the hang, or perhaps another plugin. If you are seeing it frequently, then you'll probably have to just start disabling scripts/plugins until you find the culprit.

Image

Posted on
Mon Mar 26, 2012 6:29 pm
GadgetComa offline
Posts: 14
Joined: Mar 26, 2012

Re: Cynical Network: Make (IP) network connections from Indi

I'm new to Indigo but have been doing some basic control of my AV system using SerialBridge for a while. I am having no end of trouble getting things working with my Denon AVR-4802R receiver. I have the GC-100 set up on the network with the serial port 1 connected to the Denon. I've installed the latest version of Indigo and the Cynical Network plugin. The results have been erratic at best. I can never operate the serial port by sending a connect command in an action group. The connect command worked, but when I try to send text, I would always get an error that it wasn't connected. I switched to auto connect and am sometimes able to send commands and have the Denon respond correctly. However, when I try to send multiple commands, only the first one seems to be received. I've tried inserting delays between commands, but it doesn't appear as if Indigo actually is respecting the delay settings. I've debugged this by having each action speak when it executes. Even with delays of a few seconds set, the commands are spoken with no delay. If I execute the send text actions individually, they seem to work - most of the time.

The other problem I'm seeing is that the connection to the Denon appears to be hosing my network. At times, I can connect via Indigo or directly via telnet. Other times, nothing will connect. Sometimes, power cycling the Denon clears things. Sometimes I need to reboot my router. I have even had problems where the Denon stops responding on the serial port and I am unable to access other devices on the network like other computers or even the internet.

All sorts of weird problems like this, so it doesn't necessarily point to the plugin or Indigo. However, I was controlling the Denon directly from my Mac via a USB to serial adapter. Also, this same router has been working fine with everything else on the network for some time. Lastly, I am able to use the Roomie Remote app on my iPad which knows how to talk to devices on the GC-100 and also knows the serial protocol for the Denon.

What the heck am I doing wrong? (Sorry, I've been pulling my hair out over this for a few days. :cry: )

Posted on
Tue Apr 10, 2012 10:45 am
matt (support) offline
Site Admin
User avatar
Posts: 21429
Joined: Jan 27, 2003
Location: Texas

Re: Cynical Network: Make (IP) network connections from Indi

Any progress on this one? I don't have any good suggestions yet, but am curious if you are still having issues.

Image

Posted on
Tue May 22, 2012 2:39 pm
GadgetComa offline
Posts: 14
Joined: Mar 26, 2012

Re: Cynical Network: Make (IP) network connections from Indi

I gave up on trying to use the plugin for this purpose because of the wacky network stuff happening. I've reconnected the Denon directly to my Mac Mini and just created Applescripts in Indigo to control it. I'm going to try using the GC serial port for my Oppo blu ray player. Then, I'll see if the issues were specific to the Denon.

Posted on
Mon May 28, 2012 8:06 pm
.Capstone offline
Posts: 36
Joined: Sep 21, 2011

Re: Cynical Network: Make (IP) network connections from Indi

I'm attempting to control my Onkyo Receiver (model tx-nr709) with this plug in. Previously, I had managed to control my motorized shades without any issues, which are connected to an iTachSL, so I was confident I could pull this off. No such luck. I believe I'm getting hung up on the network/ip protocol for Onkyo, but I have no way of knowing what I'm doing wrong.

I set up the device as follows -
Name: Onkyo
Type: Plugin
Plugin: Cynical Network
Model: TCP Out

Network Host Address: 192.168.1.200 (had already assigned this with DHCP reservation and confirmed it within the Onkyo)
Port: 60128 (also confirmed within the Onkyo)
Checked the box for auto connect
Line Endings: Carriage Return (also tried others w/ no luck)
Last line read: didn't fill this in

The state of my device (Onkyo) says "connected"

I then created an action group -
Type: Plugin
Plugin: Cynical Network
Action: Send Text
Connection: Onkyo
Text: ISCP\x00\x00\x00\x10\x00\x00\x00\x08\x01\x00\x00\x00!1PWR01\x0D

I also made sure that NETWORK CONTROL was enabled in the settings of the receiver.

Am I doing something wrong with the text part entered above? I thought I had the protocol down, but maybe not. Onkyo sent me all of their RS232 and Network Codes along with their protocol. Here's a link to a PDF of what Onkyo sent me (https://docs.google.com/open?id=0B2Vp6xSx-FPOUVZCakJ2QXJvS00) Codes start on pg 9. Protocol is on pg 5-8.

I would really appreciate any advice anyone could give. Maybe just an example of the way to write the text. The code above refers to POWER ON.

Thanks.

Who is online

Users browsing this forum: No registered users and 5 guests