Author Topic: InstanceID has no value  (Read 911 times)

moelski

  • Full Member
  • ***
  • Posts: 122
    • View Profile
InstanceID has no value
« on: January 02, 2012, 06:29:43 pm »
Hi !

It seems to me that InstanceID has no value set  :-\
Code: [Select]
            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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: InstanceID has no value
« Reply #1 on: January 02, 2012, 07:29:25 pm »
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

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: InstanceID has no value
« Reply #2 on: January 03, 2012, 10:20:47 am »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: InstanceID has no value
« Reply #3 on: January 03, 2012, 11:09:48 am »
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

  • Full Member
  • ***
  • Posts: 122
    • View Profile
Re: InstanceID has no value
« Reply #4 on: January 03, 2012, 07:20:51 pm »
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

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: InstanceID has no value
« Reply #5 on: January 05, 2012, 04:02:03 pm »
Hello


Quote
But 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

Quote
And 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.