I recently obtained a SBC with some other Phidget I/O boards and sensors to connect to it. Installing the drivers in Windows 7 and Mac works fine (great even!) and on both platforms I can see the SBC and its connected Phidgets fine through the Bonjour tab of the provided apps.
When I try to achieve the same from custom code or one of the provided examples (I tried C#, VB.NET and VBA code - it al works the same) I have trouble opening PHidgets remotely: when I use the open command with the correct IP Address it all works fine and all objects get all their properties populated (e.g.: I can see that the SBC has 8 analog inputs, etc.). However, when I try to use the open command without an IP Address, using the Server ID or hostname and optional port number, it does not populate all properties on PhidgetInterfaceKit objects.
The same is true for the Manager object: somehow it looks like opening remotely (without IP Address, but with the Server ID) works half-way: it shows my that it found a (correct) number of attached Phidgets (for which I can enumerate devicename, etc.), but it is not populating all properties (I need).
So here are my questions:
- as I can get it all working fine when I use the IP Address, but I would like to have dynamic IPs (DHCP): is there a way I can find out which IP Address my SBC is using? (the manager app that is provided is doing just that: it uses Bonjour, but also is able to display the IP Address of the SBC on the network - how does the app get that address?)
- why is the OpenRemote (=VBA) or open() (VB.NET) command not working OK, populating all properties of objects, when used with only the Server ID (and optional port number), or is this expected behavior?
And finally: is the code with which the (correctly working) control panel app is built available (in C#, VB.NET, or VBA) as example - that would be great too (because that would be the ultimate example?)