• Welcome to Forum.Deepsoftware.Com. Please login or sign up.
 
April 25, 2024, 03:49:59 pm

News:

SMF - Just Installed!


InstanceID has no value

Started by moelski, January 02, 2012, 04:29:43 pm

Previous topic - Next topic

moelski

Hi !

It seems to me that InstanceID has no value set  :-\
            for (int i = 0; i < nrComm1.DeviceCount; i++)
            {
                this.aLog("pdo : " + nrComm1[i].InstanceId);
            }


But it would be very helpful to check which USB Port is used for a given USB/Serial adapter port.

I can check all USB Ports with nrUSB and get a proper InstanceID. It would be great to get the InstanceID for serial Ports, too!

Greetz
   Dominik Schmidt

Roman Novgorodov

Hello

Thank you for your information.
Please download new build of library.
Following values should be available now:
nrComm1[].InstanceId
nrComm1[].DevInst

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

moelski

Hi Roman,

with the new release InstanceId works fine.

DevInst is also ok. But since the help file is not complete I have no idea what this property is about.
What can I do with that information?

And PDO is empty. Maybe you can fix this, too.

Regards
   Dominik

Roman Novgorodov

Hello

Yes, context help is not complete. We will try update it asap.

We thought You asked me about this properties, because you know how use them :-)

These properties are Windows Driver Model identifiers.
You need read WDK documentation for investigate them.
For example:
http://msdn.microsoft.com/en-us/library/windows/hardware/ff541327(v=vs.85).aspx

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

moelski

Hi Roman,

I found Information about InstanceID.
But I don´t find something about the DevInst Property.

And PDO is empty. Can you fix that ?

Greetz
   Dominik

Roman Novgorodov

Hello


QuoteBut I don´t find something about the DevInst Property.

See DevInst description from MSDN:
An opaque handle to the device instance (also known as a handle to the devnode).
http://msdn.microsoft.com/en-us/library/windows/hardware/ff552344(v=vs.85).aspx

QuoteAnd PDO is empty. Can you fix that ?

Done some minutes ago.  NamePdo property is correct now.
Please download new build from our site.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.