--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I am trying to figure out the logistics/mechanics of how to do that right now. I'll experiment with it some.
Here is the command i need:
POST /upnp/control/CIS HTTP/1.1 HOST: 192.168.0.100:8888
SOAPACTION: "urn:schemas-sony-com:service:X_CIS:1#X_CIS_Command" CONTENT-TYPE: text/xml; charset="utf-8" Content-Length: 344
<?xml version="1.0" encoding="utf-8"?>
<s:Envelope s:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/">
<s:Body> <u:X_CIS_Command xmlns:u="urn:schemas-sony-com:service:X_CIS:1"> <CISDATA>0202A0213D</CISDATA> </u:X_CIS_Command> </s:Body> </s:Envelope>
You should be able to deal with the Sony system using pure TCP. AFter all SOAP and other higher level protocols really only send messages over TCP. I have done it in VB and my experience with iViewer makes me believe it can also be done there just using a TCP control stack and the proper POST or GET strings with the proper headers and body information
--
I have all of the code to find and control SONY devices over IP and/or RS232. Specifically I have the code for the Blu Ray 7000ES changer. One thing about Sony is that they are very good regarding the re-use of code, so all of their equipment will use the same TCP protocol IFIRC. Unfortunately the code is written in VB not Javascript. The code is fairly table driven and If I recall correctly (IFIRC) it was working. It was written as a test and explore program that I used when i got the changer initially. I also have the protocol documents from Sony. To control other Sony IP based devices the only thing that changes are the commands which was the same way Sony handled IR for their family of devices. IFIRC the only difference between RS232 and TCP was the discovery and envelopes, and not the commands.
We can proceed in one of two way. I can give the code to whomever wants it as is and provide some help as it is not documented from a developers standpoint but rather from that of a user; or -
someone can send me a Sony Device that has an IP interface (with its manual) and I will port the code to Javascript and get it working. If the later approach is chosen I will need about a week with the unit in my possession. The only rule is that I bear no expense (e.g. shipping) other than my time which I will donate.
If someone wants the former, email me and I will send you a zip archive or I will post the archive on my web site for others to download. If someone wants the later email me with your details (unit model) and a time frame and I will port the code now and be ready to test when the unit gets here.
--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/gh3QhLSi3uw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.
Okay the fundamentals of CF iViewer and javascript are not easily delved out and understood.
Lets define your root folder as whatever folder your gui is located in.
for convenience place a folder in your root folder and name it javascript. You will place all your javascript modules into that folder
There are other ways of doing this but this is the way I do it
open your gui file in guiDesigner. In the top of the left hand window which is holding the project tree is the project as the root of the tree.
Right click on this and click properties on the top of the window that opened. In the project properties window that has now opened click the bottom button titled Script Manager.
The window that now opens, the Script Manager is where you tell guiDesigner about your JS modules. Use the add script button and then in the line that appears use the browse button
The edit button will launch the javascript editor based on the association set up in windows for the extension .js.
You can edit the JS files with any text editor, but I suggest you get a good Javascript editor I use the Antechinus editor by cPoint technologies, not free but not too expensive.
One of your modules needs to have a Javascript function named CF.userMain(). WARNING: capitalization (case) counts in Javascript.
CF.userMain is called by iViewer after all of your Javascript modules have been loaded as the first thing to be executed.
Javascript modules are linked to display pages through the manipulation of joins and the command to load pages CF.flipToPage("Name of Page")
Pages link back to Javascript through "Watches" and calls to Javascript functions. Watches are the method by which you can trap events such as a page flip,
or connection to an external control system, or responses from control systems (feedback)
I suggest you read the CF document named Scripting Beta which is on their web site at http://www.commandfusion.com/docs/scripting-beta/ It has a lot of key information
relative to using Javascript and how to get started.
I did not look at your code in detail so I cannot comment on it at this time.
My web (www.the-gordons.net) site has several projects on it which provide exemplars of how I do it.
The serial and IR control project, The Jandy Aqualink project, The JVC Projector project, and the XBMC project
all show the style I use on my projects but none of the use SOAP.
I did all my SOAP work in VB when I had some Sony devices but that was before I started with the iPads.
Hope the above helps
Do all the things Jarrod suggested. If you send me your system I will try it and see if it connects on my site.
It is not connecting.
What I do is start the iviewer having the settings set to use the debugger on port 7009
Open chrome and enter as a URL in the address bar: http://192.168.1.212:7009/ which is the address of the iPad and use port 7009.
Error! Filename not specified.
Thanks Jarrod, i tried chrome instead of safari and it is connecting. Not sure why the safari wasn't cooperating.
Okay, so I am back to working on getting IP control of my sony receiver working with iViewer for android. I am using beta #151 on android 4.2. I can't find any errors in the remote debugger. The diagnostic messages show up in the logger, but i get no network traffic that i can see with wireshark. I have verified that I can see network traffic with wireshark when I generate the same http request using a native android application i wrote.
It seems to me like the CF.request command for some reason isn't doing anything. Below is my script - does anyone see any syntax errors? I followed the example in the documentation as closely as possible.
Thanks
Dennis
Enter code here...CF.userMain= function() {CF.log("CF.userMain called");};function SendCommand (command) {var SOAPAction = 'urn:schemas-sony-com:service:X_CIS:1#X_CIS_Command';var CONTENTTYPE = 'text/xml; charset= "utf-8"'var SOAPBody = '<?xml version="1.0" encoding="utf-8"?>'+
CF.request(url,"POST",{"SOAPAction":SOAPAction, "CONTENTTYPE":CONTENTTYPE},SOAPBody,function(status, headers, body) {if (status == 200) {CF.log("Form data sent");}else {CF.log("Error: request returned status " + status);}});CF.log("after SOAP call made");}function SendONCommand () {
--
You received this message because you are subscribed to the Google Groups "CommandFusion Software" group.
To unsubscribe from this group and stop receiving emails from it, send an email to commandfusio...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Okay, so I am back to working on getting IP control of my sony receiver working with iViewer for android. I am using beta #151 on android 4.2. I can't find any errors in the remote debugger. The diagnostic messages show up in the logger, but i get no network traffic that i can see with wireshark. I have verified that I can see network traffic with wireshark when I generate the same http request using a native android application i wrote.
It seems to me like the CF.request command for some reason isn't doing anything. Below is my script - does anyone see any syntax errors? I followed the example in the documentation as closely as possible.
--
You received this message because you are subscribed to a topic in the Google Groups "CommandFusion Software" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/commandfusion/gh3QhLSi3uw/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to commandfusio...@googlegroups.com.