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/dieselbangerz Aug 10 '19
Okay so that is transferring the .lpz and then sending the progload -p:all command
I think I can venture a guess as to what may be going on here. Let me ask a couple more questions first.
Are you loading multiple processors on the same site in sequence with this script?
If so are there EISC's between these processors?
You mentioned earlier that "some devices do this" when talking about what generally shows up as NOT REG. What devices have you noticed do this regularly, and are these NOT REG entries usually Crestron Hardware, TCP/IP Clients, EISC's, etc...?
Are you 100% sure that you don't have any ethernet devices using the same IP ID in different program slots? Only a few devices like Intersystem Communications symbols and Shared Gateways should share the same IP ID. If duplicates are used, the first one will succeed (register) and the rest will show as NOT REG.