Cynical Network: Make (IP) network connections from Indigo

Posted on
Tue May 29, 2012 11:56 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

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

So the Onkyo network (but not serial port) protocol actually has a binary header. How... interesting.

You're not doing anything wrong, except that Cynical Network does not actually decode \x escape codes, and so this doesn't work:
Text: ISCP\x00\x00\x00\x10\x00\x00\x00\x08\x01\x00\x00\x00!1PWR01\x0D


Well, no problem. It does now. Download version 1.0.2 and try again: http://www.cynic.org/indigo/plugins/online/network.html. Careful though: Cynical Network will automatically append a line-ending character to your output unless you check the partial checkbox. So either put the \x0D there and check that box, or set the line ending character to newline and don't. I'd recommend the latter.

Cheers
-- perry

Posted on
Wed May 30, 2012 9:55 am
.Capstone offline
Posts: 36
Joined: Sep 21, 2011

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

Excellent, Perry!!! As always, thank you for the great help. I'll download the newest version and test tonight, when I'm back at home.

I love your plug-ins. They really open up a ton of possibilities in my system. Thanks for the contribution!

-Wes

Posted on
Thu May 31, 2012 9:38 pm
.Capstone offline
Posts: 36
Joined: Sep 21, 2011

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

After downloading the most recent update (V 1.0.2), everything works as expected. Thanks again, Perry.

FYI - I'm using UNIX (newline), removing \x0D from my text, and leaving the Partial box unchecked.

-Wes

Posted on
Sat Jun 02, 2012 8:19 am
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

Re: Global Cache GC-100 is it or isn't it?

Connecting to the Mitsubishi HC5000 Projector with Cynical Network

Ok - my weekend project starts. I down loaded the Cynical Network Plugin and installed into Indigo.
1. I created two Devices: TCP Out and TCP In. ( 'TCP Out' should Send the "Is the Projector On" code ( 30 30 76 50 0D) while 'TCP In' listens for a reply.
2. I created a control page button to have the Cynical Network (TCP out) Send Text ( 30 30 76 50 0D ) See screen print.
3. I created a trigger to wait for a reply using TCP In. See screen print. I used port 4999.

Bottom Line: I do not get any reply back. The Indigo log says there "was a request sent to...." but I see no other traffic.

Best Regards,
Neil Johnson
Attachments
TCP In.tiff
Waiting for a reply from the projector.
TCP In.tiff (31.68 KiB) Viewed 5737 times
TCP Out.tiff
Send the control code asking "Are you On?"
TCP Out.tiff (40.54 KiB) Viewed 5737 times
Configure send text.tiff
Configuration of the text string that the Projector should receive.
Configure send text.tiff (39.18 KiB) Viewed 5737 times

Neil Johnson
Pushing Automation to the Max

Posted on
Sat Jun 02, 2012 8:36 am
macpro offline
User avatar
Posts: 765
Joined: Dec 29, 2005
Location: Third byte on the right

Re: Global Cache GC-100 is it or isn't it?

The best way to test the communication with your Mitsubishi would be via the iTest program.
That works great and you will get an immediate response from your projector.
Then you can use your results to configure the plugin and let Indigo talk to the projector.

Another tip: try sending 00vP (that's two zeroes) to the projector instead of 30 30 76 50 0D.

Posted on
Sat Jun 02, 2012 9:04 am
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

Re: Global Cache GC-100 is it or isn't it?

Ok I tried the 00vP and I also get no reply, etc. I did use the iTest program and I can communicate with the projector using 30 30 76 0D. Anything else I should check?

Neil Johnson
Pushing Automation to the Max

Posted on
Sat Jun 02, 2012 9:14 am
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

Re: Global Cache GC-100 is it or isn't it?

I looked at the Indigo Log and I found the following:


Cynical Network Error GC-100 OUT error <Ctx!Error OSError(60, 'Operation timed out')>
Cynical Network GC-100 OUT is now disconnected
Cynical Network GC-100 OUT will re-establish its persistent connection
Cynical Network GC-100 OUT connecting to 192.168.0.100
Cynical Network GC-100 OUT is now connected
Cynical Network GC-100 OUT configured for 0 input event(s)

Neil Johnson
Pushing Automation to the Max

Posted on
Sat Jun 02, 2012 9:41 am
macpro offline
User avatar
Posts: 765
Joined: Dec 29, 2005
Location: Third byte on the right

Re: Global Cache GC-100 is it or isn't it?

If iTest works with 30 30 76 50 0D, then you should use that.

In your GC Out device the "last line" is empty.
What you can try is to define a new variable in Indigo.
Then enter the name of that variable in "last line".

Any output from the Mitsubishi should show up in that variable.

I also see you have set line endings to none. Play a bit with the possible entries, because the projector may not accept your command when no line ending is present.

Posted on
Sat Jun 02, 2012 2:48 pm
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

Re: Global Cache GC-100 is it or isn't it?

Ok I added the "last line" and created and Indigo variable called 'NEW".
1. I tried the TCP Out, command with "30 30 76 50 0D", I did not get any reply in the Indigo Log.
2. I also did not have anything enter the variable either.
3. Does the GC have an error log somewhere that I can check????

Neil

Neil Johnson
Pushing Automation to the Max

Posted on
Sat Jun 02, 2012 8:57 pm
jay (support) offline
Site Admin
User avatar
Posts: 18258
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Global Cache GC-100 is it or isn't it?

I'm moving this thread over to the Cynical 3rd party forum.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jun 04, 2012 9:38 am
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

Re: Global Cache GC-100 is it or isn't it?

Ok - still trying to send text data to my Mitsubishi Projector through a GC-100 via RS232.

Here is what I did:
1. Installed Cynical Network in Indigo.
2. Created a Device with the GC 100. See images.
3. Created a Control Page Button to fire off a text message through the Cynical Network TCP Out device.
4. I used the exact same hex code "30 30 76 50 0D" that was successful in the iTest program. See images.
5. I setup a variable so the reply back from the Projector can be captured, called "var2".

Results:

None. Here is the Indigo log:
request to execute "test control page" control #9 from 192.168.0.113.
No reply back from GC-100. No response captured in the variable "var2".

Any help is appreciated.

Neil Johnson
Attachments
The text and hex.tiff
The text and hex.tiff (124.92 KiB) Viewed 5664 times
Device.tiff
Device.tiff (134.01 KiB) Viewed 5664 times

Neil Johnson
Pushing Automation to the Max

Posted on
Mon Jun 04, 2012 9:46 am
jay (support) offline
Site Admin
User avatar
Posts: 18258
Joined: Mar 19, 2008
Location: Austin, Texas

Re: Global Cache GC-100 is it or isn't it?

Neil - please put questions about 3rd party plugins in the appropriate 3rd party forum - I already moved one set for you. I'll move this one also.

Jay (Indigo Support)
Twitter | Facebook | LinkedIn

Posted on
Mon Jun 04, 2012 10:30 am
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

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

My apologies, I thought I was already there. I get it now!
Neil

Neil Johnson
Pushing Automation to the Max

Posted on
Mon Jun 04, 2012 1:04 pm
Neil Johnson offline
User avatar
Posts: 15
Joined: Jun 01, 2012

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

SUCCESS!

1. I needed to send ASCII (00vP) to the projector WITH a carriage return as an end of line. The carriage return is supplied by plugin itself.
2. So, for my example in earlier posts I needed to ask the projector "Are you on?" by sending 00vP.
3. Now I am correctly receiving: 00vP0 as a reply, the last 0 indicates the projector is OFF.


8)

Neil Johnson
Pushing Automation to the Max

Posted on
Mon Jun 04, 2012 1:27 pm
Perry The Cynic offline
Posts: 836
Joined: Apr 07, 2008

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

4. I used the exact same hex code "30 30 76 50 0D" that was successful in the iTest program. See images.

Cynical Network sends and receives text lines, not hex codes. You are asking it to send the letters 3, 0, space, 3, etc.

Try sending the actual text: 00vP (30 is the hex code for the digit zero, 76 for the letter "v", etc.) To get the 0D at the end, set the line ending to Carriage Return (that's what hex 0D is).

Starting with version 1.0.2 (released last week), you can also explicitly specify hex codes if you prefer: \x30\x30\x76\x50, again with the line ending set to Carriage Return to get the 0D at the end. (No spaces, please: they're characters, too.) I would recommend specifying the actual text (if text is what you're sending), but both should work. You're sending the same data either way; it's just two different means of writing the same string.

Your device isn't responding because it hasn't seen a CR (0x0D) yet - you've sent it the characters "0" and "D", but not a (hex) 0D, the carriage-return character, which it's looking for to end a line.

Cheers
-- perry

Who is online

Users browsing this forum: No registered users and 2 guests