Home Support Forums

Main Menu

Login

Note: The Issue Tracker currently has a separate login.



Support Forums
Welcome, Guest
Please Login or Register.    Lost Password?
HidLib on Win7 ?
(1 viewing) 1 Guest
Go to bottomPost New TopicPost Reply
TOPIC: HidLib on Win7 ?
#17
Boris

HidLib on Win7 ? 7 Months, 1 Week ago  
Hello.

Previously using HidLib (version 0.2.xxx) with PicoLibLCD on Vista with no problem.
I have now migrate on Win7 64bits (clean install) but since then I could not use my PicoLCD. I only succed having "device not found".
Could you give me some help ?

Thanks.
Boris
 
Logged Logged
  Reply Quote
#18
Blue Ninja
Moderator
Posts: 12
graph
User Offline Click here to see the profile of this user
Gender: Male
Re:HidLib on Win7 ? 7 Months, 1 Week ago Karma: 0
Hello Boris,

We have a new development PC setup with Windows 7 on it, so I'll attach the PicoLCD to it and test out the library there to see what needs to be updated, and we'll put up an update accordingly. Most of our people are out this week on vacation (including me!) so I don't think we'll be able to get to it before the 29th.

We'll keep you posted - thanks for alerting us to the problem!
 
Logged Logged
  Reply Quote
#19
PeteL
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Re:HidLib on Win7 ? 3 Months, 3 Weeks ago Karma: 0
Figured I'd follow up to see if there was any updates to this... I'm also running a Win7 x64 machine (with x64 OS) and I'm having trouble with the PicoLCD and HIDLib stuff.

I spend a little time trying to debug and managed to work past one of the major issues (your code comments helped). In HIDManagement.vb, about line 118, you have: diDetail.cbSize = Marshal.SizeOf(diDetail), which results in 6. When I did that, the loop wasn't finding any devices. If I changed that value to 8, the code finds the device, and is able to create the Triplet.

Where I'm running into a problem and have managed to get stuck is when PickLCD_4x20.vb tries to get the version number about line 195. If I step into that code, I move through a bunch of constructors, and end up in AHIDReport.vb, about line 57. The values of the input variables there are ReportLength = 0 ReportID = 241 and ReportData = {Length=0}. Because the report length is zero, it looks like I'm then throwing an exception on line 67.

The hardware ID's on the device are:
HIDVID_04D8&PID_C001&REV_0101&Col02
HIDVID_04D8&PID_C001&Col02
HID_DEVICE_SYSTEM_CONSUMER
HID_DEVICE_UP:000C_U:0001
HID_DEVICE

The version number that displays on the screen is "LCD Device v.1.11"

Thanks for any help!
PEte
 
Logged Logged
  Reply Quote
#20
Blue Ninja
Moderator
Posts: 12
graph
User Offline Click here to see the profile of this user
Gender: Male
Re:HidLib on Win7 ? 3 Months, 3 Weeks ago Karma: 0
Hello Pete,

We have just recently gotten around to updating our development machines to Windows 7 x64, and I have experienced the problem using some other tools we have that rely on HIDLib. Some of the interop signatures are different, and we need to implement conditional support for that into the library. I expect we'll be debugging these changes and posting an update sometime this week.

I'm also going to open this issue as a ticket in the tracker, where it can be monitored as well.
 
Logged Logged
  Reply Quote
#21
Blue Ninja
Moderator
Posts: 12
graph
User Offline Click here to see the profile of this user
Gender: Male
Re:HidLib on Win7 ? 3 Months, 2 Weeks ago Karma: 0
This build should fix the problem for you both - have a look and let me know if you're still having troubles, or if this fixed it. If this works, I'll close the issue and post the complete fileset.

Thanks!
File Attachment:
File Name: HIDLib_TestWin7.zip
File Size: 32661
 
Logged Logged
  Reply Quote
#22
PeteL

Re:HidLib on Win7 ? 3 Months, 2 Weeks ago  
YAY! It mostly works! Thanks!!

I'm using the following code (inside a button on a simple web form app)

Code:


    List<PicoLCD_4x20> picos = new List<PicoLCD_4x20>();
    picos.AddRange(PicoLCD_4x20.EnumeratePicoLCDDevices());


    foreach (PicoLCD_4x20 pico in picos)
    {
         pico.Cache = false;
         pico.set_Text(0, "Pete");
         pico.set_Text(1, DateTime.Now.ToShortTimeString());
    }


And that works perfectly! When I close the form, something, somewhere is throwing a null ref exception thought...

I wasn't able to debug into it, but here's the details:
Code:


System.NullReferenceException was unhandled
  Message="Object reference not set to an instance of an object."
  Source="System.Management"
  StackTrace:
       at System.Management.IWbemServices.CancelAsyncCall_(IWbemObjectSink pSink)
       at System.Management.SinkForEventQuery.Cancel()
       at System.Management.ManagementEventWatcher.Stop()
       at System.Management.ManagementEventWatcher.Finalize()
  InnerException: 



Thanks!
PEte
 
Logged Logged
  Reply Quote
Go to topPost New TopicPost Reply