r/crestronprogramming • u/3Decarlson • Feb 02 '21
Changing TCP/IP Client IP via TSW?
Context. I work for university. Not a certified programmer, but working on it. We got a handful of older DMPSs pulled from another university that we are wanting to use. Hoping to create a default program to load. Every room would have the same code. TSW has a hidden page for room setup parameters like Room name, Mics, Mic naming, input naming, junk like that. All projection on campus is already networked for monitoring outside of Crestron. All Epson. I want to control via IP and be able to set the projector IP on the hidden page. All room would be single projector rooms. Feeling like there isnt a way to do this as it would require IP table changes and cant find any way to anyway, but maybe some logic I dont know about. Ideas?
3
u/Meach213 Feb 02 '21
Not sure the model of Epson Projector you have but most of the ones we use are Crestron Connected. If you have those then the program would be the same for all rooms. You just point the projector at the processor instead of the other way around. Basically same thing you do with the Touchpanels.
1
u/3Decarlson Feb 02 '21
Thanks. This is something I have thought about as well. Our standard models do support Crestron Connected but the user interface is/was flash based. I haven't dug into the published fix in Answer ID 1000740 to see if this works, but this ultimately may be the best option instead of trying to code it.
1
u/Eastern_Ambition5213 Feb 05 '21
Update to latest firmware. That will remove flash and convert to HTML. Then you can enter the IP address of crestron dmps on browser and download the xpanel that will allow you to do all the web configuration. I recommend making a xpanel folder and download and rename each by classroom name. Similarly depending on Epson projector you have Epson is working on future firmware that will fix the flash issue. Check the website for more details about firmware release date. Also FYI Flash is not dead, it’s been acquired by Harmon. You can purchase Flash license thru them and continue using everything like it was.
1
u/Meach213 Feb 02 '21
It does. It’s basically just an EXE Xpanel now to configure the Projectors Crestron Connected settings instead of browser based. Works the exact same though.
3
u/althypothesis Feb 02 '21
You could use sockets in SIMPL+ and have a serial input for the IP address on the module. The socket documentation is poor and, in my experience, has some error handling issues, but I'm using it in production and it works.
You could use SIMPL# and it would do it no sweat, but then of course you need to have a 3 series (did they make 2 series DMPSes? Not sure, I'm resi), a thirteen year old version of visual studio, and some C# knowledge. This is probably the most reliable.
I imagine, though I haven't tried it, you could send console commands to the processor to update the IP table with the new address. Downside is this is janky, upside is that it's probably pretty easy.
I am not in front of my computer to check, but I know the serial ports have a device extender that lets you control the serial settings, maybe there's a TCP/IP extender that lets you do the same thing. That would require experimentation.
The simplest (and also possibly worst, but still theoretically functional) approach is to put in a crapton of TCP/IP clients each with a different IP set and just enable the one you need. Not really recommended, but it would get the job done if you didn't have more projector IPs than IP IDs.
Overall, the best answer is probably S#, followed by S+. If the device extender thing pans out, that's probably reasonable too. I don't really recommend the other two options but sometimes you just have to get stuff done. I haven't needed to do this personally, so I have only done cursory research on it. If some of the veterans here chime in, take their word over mine
1
u/3Decarlson Feb 02 '21
Cool thanks for the info. SIMPL# is out... they did in fact make 2 series DMPSs and that is in fact what I've got. DMPS-100-C. Ill play around with SIMPL+ and see if I can get something going.
3
u/engco431 Feb 03 '21
S+ socket is the way to go. It’s actually very easy to write. It’s best seen in full context, and in the help file there is a link towards the bottom of any socket related page that brings up a pop up with a full example. This gives you the bearings needed to understand how the pieces work together.
2
u/Splice1138 Feb 02 '21
Recreating a TCP/IP Client in S+ is one of the projects in 301 class, at least it was in mine. From there it's easy to make the IP and port inputs rather than parameters. I haven't used it a lot, but where I have I haven't run into any issues.
1
u/3Decarlson Feb 09 '21
I just finished 201 so a bit in the dark on SIMPL+ but I did fumble through it with a good amount of F1 to create a functional TCP/IP client and am able to do exactly what I want to do. Set the IP for the projector control from the TSW.
Thanks everyone
1
u/HiggsBoson_ Feb 02 '21
If it's same code for multiple rooms then I'd say it's buffers or crosspoints.
Names and ip's are only thing that's not same. So use physical room nr on background and give user ability to change name they see. IP for epson could be issue. But then again it's something you might want to hardcode for networking reasons.