Visionary Solutions Control
Pungbekang
Posts: 4
Working on my first project control Visionary Solutions E5100 and D5100 endpoints. I could use a little help establishing control, can anyone point me towards an example program with HTTP GET/POST or UDP communication?
Thanks
0
Comments
We're controlling 4200s but I assume the API is roughly the same.
Best bet is to open a UDP port to 8000. You'll need to get their API documentation from VSI support, but the basic commands are structured like this:
SEND_STRING vdvPROJDEC, "'CMD=START&UNIT.ID=ALL&STREAM.HOST=',ENC_3_IP,'&VW.ACTIVE=FALSE&STREAM.CONNECT=TRUE&CMD=END'"
in the above instance, the
ENC_3_IP
can be made into a variable, otherwise the IP address of the encoder would be specified here.if just specifying the IP, the command would be like this:
SEND_STRING vdvPROJDEC, "'CMD=START&UNIT.ID=ALL&STREAM.HOST=192.168.10.3&VW.ACTIVE=FALSE&STREAM.CONNECT=TRUE&CMD=END'"
to switch HDMI inputs on an encoder, this would be an example command:
SEND_STRING vdvEnc3, "'CMD=START&UNIT.ID=ALL&STREAM.VIDEO=HDMI1&STREAM.CONNECT=TRUE&CMD=END'"
IF you're doing a group of several rooms, you can query the encoder when it comes online via online event for its IP address, provide that into a variable which will make your code dynamic:
SEND_STRING vdvEnc3,'CMD=START&UNIT.ID=ALL&QUERY.KEY=IP.ADDRESS=TRUE&CMD=END'
you'd need a data event to find the IP address in data.text
For what its worth, I put in a module request to the ITG team almost a year ago to have a java duet module built for these, but after a recent inquiry, I was informed its not moved through the pipe much, so no idea when that might show up.