Hi guys, managed to get all the commands working for controlling my Dune HD Smart D1 thanks to the inputs you guys gave here.
Got a question about feedback from the Dune device itself - is there any feedback coming from the device? I can see some xml codes and simple status of the device when using web browser but tracking the feedback from Simpl Debugger shows nothing...
I remember I read somewhere that currently the commands are only 1-way communication - anybody managed to get anything else?
toggle quoted message
Show quoted text
--- In Crestron@..., "Chip" <cfm@...> wrote:
Awesome - glad to hear it!
- Chip
--- In Crestron@..., "Jon" <fueler1@> wrote:
Chip your a hero, it works great with the play sample. I will add more and test and then post it to the files section.
Thanks again!!
--- In Crestron@..., "Chip" <cfm@> wrote:
--- In Crestron@..., "Jon" <fueler1@> wrote:
Chip I am a total rookie when it comes to S+. I opened the module
you attached in S+ and I see a spot near the top where it says
ipaddr and then there is a 30 in brackets, do I replace the 30 with
my ip (192.168.1.102)?
When you finally get the module to appear in your SIMPL program, there will be a parameter field on the module - type the IP address there, and it will be incorporated into the module when you compile.
Also if that play command works, do I simply add more line below the PUSH dune_play (like this)---
PUSH dune_pause
PUSH dune_stop
etc?
Exactly. You want to copy the code (enclosed in curly braces) that's just below the PUSH statement as well - just where you saw "CurrCmd = 1", increment that with each new PUSH statement - so pause sets it to 2, for instance - stop sets it to 3, etc. All you're doing is storing a value to be used later - think of it like an analog value from the SIMPL environment. Later on - after the connection is established with the player, the code in function "SendCmd" gets called, which references the CurrCmd value, using it to send the correct string to the player.
And then at the bottom I add the command after the first one or is
there some way I need to tell it what each command is differently.
You get to do the same thing here that you did for the PUSH statements. Copy the line that says
Cmd$[1] = "GET /cgi-bin/do?cmd=ir_code&ir_code=B748BF00 HTTP/1.0\n\n";
and paste it on the next line below. On that line, change "Cmd$[1]" to "Cmd$[2]", and alter the "code=xxxxxxxx" with the code for (following the example) pause, then do it over again with Cmd$[3], and put in the code for stop, etc...
I am so rookie on S+, Im good with simpl windows, just havent tried
S+ at all (besides the one time in intermediate class).
No time like the present!!
So I told S+ to save and compile and then it put a bunch of files
in the folder I got from you, how do I get that so show up in user
db in simpl so I can add it to my project? I copied the files from
the SPLworks to the SPLworks in my project folder, and I copied the
dune***.usp and dune***.ush to my project folder and reload teh
libraries but they dont show as a module to add to my program, what
am I doing wrong?
The SPLworks folder is a temporary thing - you can just throw it out. As long as you have the .usp and .ush - you're good.
I'm going to be that next time you launch SIMPL Windows and open your program, you'll see "dune ip control test s+" as a module in the project modules folder. Sometimes it takes quitting out of SIMPL Windows and re-launching to get stuff to show up.
- Chip