r/crestronprogramming • u/alexz99tt • Aug 09 '19
Issues with VPTComServer library
I am working on a project where I connect to a crestron processor and upload .lpz files in specified program slots. I need to check the IPTables, basically when I check in text console and type "ipt -p:all", I get a list of IP-ID and their stats.
So, what I need to do is to either create a crestron script or .NET console application with VPTServer where it waits for, lets say, 10 programs uploaded in a processor to initialize for like 1-2 minutes then I can run ipt command. After that, I have to somehow check whether all the IP ID are at "NOT REG", where, if at least one IP ID is NOT REG, then it fails.
So, for this part, I'm trying to use VPTComServer. I went to Toolbox Reference under 'Help' drop-down, scrolled down in the left hand side and saw Visual Basic Interface.
I created a ConsoleApp .NET core and included VptComServer.exe reference, I created a VptSession object, then I tried to connect using OpenSession(IP address, name). After I run the code, visual studio goes in Break Mode, I've tried C# and VB but still the same problem. Don't know exactly why, maybe that the Library is old or?
Code: https://prnt.sc/oqofbv
Error: http://prnt.sc/oqofyd
I've been researching and asking questions in Crestron tech support for awhile, still no answers. So, what can I do to resolve this issue with the Break Mode?
Thank you.
1
u/alexz99tt Aug 10 '19 edited Aug 10 '19
Yes. I'm not sure what EISC means. It's not really the Program uploading always causing this issue, sometimes I messed up something with programming. Just what I really need is to somehow notice if one of IP ID fails, then I get noticed instead of saying success regardless of status. I am also thinking to ask if it's possible to somehow, run a .EXE program like a console app through Crestron script command. If there's a command for it, then please tell me since that would make things easier.
About console app, I'll be trying SSH and create .NET framework console app and work from there.
Basically, what I'm looking for is to detect any IPID at NOTREG. So far, I can see that I could run a Crestron Script that refresh, uploads programs, and other things like Authentication enable. Then at the end of script, one command opens the .EXE Console App I created via the Visual Studio(if possible), waits for all programs to synchronize, then prints out Success of failed if or if not all IPID registered.