Ports
May 18, 2013, 03:32:55 am *
Welcome, Guest. Please login or register.

Login with username, password and session length
News: SMF - Just Installed!
 
   Home   Help Search Login Register  
Welcome to the PORTS Forum. Please post your questions, answers, and comments relating to USB and other hardware interfaces in the appropriate forums below. - Jan
Pages: [1]
  Print  
Author Topic: Fairbanks USB scale reading issue  (Read 1834 times)
Craig
Member
*
Posts: 1


« on: October 14, 2010, 12:15:19 pm »

I have utilized features of the USB library (Generic HID) to read several scales which works great. However, I just encountered an issue with a Fairbanks USB scale - a newer model scale that for some reason I can't get to read properly. I tried to use the sample Generic HID Tester to debug and when I do a send and receive data "once" I get a read. If I try to read again, I get a safe file handle has been closed exception.

I can get other Fairbanks scales (having the same vendor and product id) to read fine and selecting "once" repeatedly from Generic HID Tester. The only difference I can think of is that the one I CAN'T read is powered by the USB port, whereas the other ones have separate power sources.

The scale is operational and can be read by UPS WorldShip, so I have eliminated the hardware. I have also tried to move the scale to a another machine and get the same results.

Any ideas, why I'm having issues reading this one, but can read other types (same vendor and product id) just fine?
« Last Edit: October 14, 2010, 12:17:02 pm by Craig » Logged
Jan Axelson
Administrator
Frequent Contributor
*****
Posts: 1624


WWW
« Reply #1 on: October 14, 2010, 01:29:00 pm »

Assuming the scale doesn't require a power supply, be sure to attach it to a high-power host port (most are) or a self-powered hub. (Any port will work if the scale requires 100 mA or less.)

A protocol analyzer would show any errors in the traffic and might offer a clue.

Jan
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!