-
Sending HTTP commands?
Hi, could anybody point me in the right direction on how to send HTTP commands using the 'Ethernet Integration Devices' feature now found in Designer 21.5 + ?
I would like to send HTTP commands to Yamaha Musiccast system eg:
http://192.168.5.219/YamahaExtendedC...lume?volume=up
But tried many different ways but so far not had any success ?
Any pointers / info gratefully received!
-
Originally Posted by
AVMagic
Hi, could anybody point me in the right direction on how to send HTTP commands using the 'Ethernet Integration Devices' feature now found in Designer 21.5 + ?
I would like to send HTTP commands to Yamaha Musiccast system eg:
http://192.168.5.219/YamahaExtendedC...lume?volume=up
But tried many different ways but so far not had any success ?
Any pointers / info gratefully received!
Hi AVMagic,
So you just need to send GET request right? Then your request should looks something like below:
GET /YamahaExtendedControl/v1/main/setVolume?volume=up HTTP/1.1*Host:192.168.5.219**
Where * is a new Line Feed (LF) character. Note that after the Host command we write it twice. It is important to check that the new line in HEX format is 0A! To do this, you need to switch to HEX mode. If you edit command parameters in ASCII format, the program automatically changes this character from 0A to 2A. In this case, the character will be misinterpreted by a third-party device and no control will occur. Therefore, after editing in ASCII you have to switch to HEX and change the character values from 2A to 0A again
-
Post Thanks / Like - 1 Thanks, 1 Likes, 0 Dislikes
-
Hi code_bit - and many thanks for your reply.
Unfortunately I'm still not there yet..!
I can confirm that:
http://192.168.1.25/YamahaExtendedCo...lume?volume=up
sent from a web browser will raise the volume of the device.
GET /YamahaExtendedControl/v1/main/setVolume?volume=up HTTP/1.1*Host:192.168.1.25**
Sent from Lutron does not appear to do anything..
As you suggested I changed the 2A line feed characters to 0A in Hex view - you were correct that Lutron changed them to 2A.
Only other parameters for the 'Ethernet Device' in Homeworks are:
Port Number - for the 'Ethernet Device' ( default is 23 and I've also tried 80)
Address - I've left blank but also tried 192.168.1.25
And intermessage delay - 2048 default
Username - blank
Password - blank
Can you think of anything else I could try ?
Many thanks again!
-
Got it !
Requires the IP address to be specified in the 'Ethernet Device' settings.
And then the command is:
GET /YamahaExtendedControl/v1/main/setVolume?volume=up HTTP/1.1**
So no IP address in the actual command.
Thanks again code-bit for very much pointing me in the right direction - I now have Lutron control of Musiccast !
Now all I need to figure out is a press & hold volume ramp....?
-
You are welcome!
For testing and debugging in such cases, I used TCP Server App for Android https://play.google.com/store/apps/d...er&hl=en&gl=US. I'm not sure if there is something similar for iOS, but i believe there is. This software allows you to create a TCP server on your smartphone in a couple of clicks, then specify its IP address and port in the Lutron settings and see what exact messages are sent by the Lutron processor.
I also use free software like Putty or the native Telnet.exe client in Windows to test if the Raw Tcp/Telnet commands for HTTP are entered correctly(number of LF and CR etc)
To make the volume increase on hold, you can create the automatic sequence and set it so that it starts and sends a volume increase command on hold, and stops on release.
-
Post Thanks / Like - 1 Thanks, 1 Likes, 0 Dislikes
-
Ah yes a sequence would do it !
Many thanks again 👍
-
Interesting...so does that mean that QSX can send out telnet commands but just can't receive it?
-
QSX can send and receive telnet commands. In order to receive a command and do something in the system you need to add a command and set Communication Direction to From Ethernet Device.
Just keep in mind that in case of Ethernet Device commands Lutron processor always acts as a client, that is a device that initiates a connection to a specific socket (IP address and port) (in contrast to Integration Protocol for QS, where the processor acts as a Telnet server)
-
Originally Posted by
AVMagic
Hi, could anybody point me in the right direction on how to send HTTP commands using the 'Ethernet Integration Devices' feature now found in Designer 21.5 + ?
I would like to send HTTP commands to Yamaha Musiccast system eg:
http://192.168.5.219/YamahaExtendedC...lume?volume=up
But tried many different ways but so far not had any success ?
Any pointers / info gratefully received!
I also tried numerous approaches, but to date have been unsuccessful like you. Someone please let us know any geometry dash unblocked and solutions. Thank a lots.
-
Originally Posted by
AVMagic
Got it !
Requires the IP address to be specified in the 'Ethernet Device' settings.
And then the command is:
GET /YamahaExtendedControl/v1/main/setVolume?volume=up HTTP/1.1**
So no IP address in the actual command.
Thanks again code-bit for very much pointing me in the right direction - I now have Lutron control of Musiccast !
Now all I need to figure out is a press & hold volume ramp....?
Hi! You used the default port 23? or changed it to 80? I'm trying send a http command to an equipment that has a user and password.