Reading weight from a USB-attached Fairbanks SCP-R9000 Scale

Posted on 2011-05-08
Last Modified: 2012-06-27
As part of our solution, we have written a USB HID BHO component that reads weight from a Toledo PS60 scale in C#.

Now we are trying to do the same for a Fairbanks Ultegra SCP-R9000 Scale.  However, no matter what weight we place on the scale, we continuously receive the following byte sequence from the scale.

003 004 012 254 006 000

Any idea what to do to correct the problem and be able to read the correct weight from the scale?
Question by:EnrouteShipIt
    LVL 6

    Expert Comment

    From, pp 13-15

    Data is transmitted on DEMAND from the host device. Transmission to the host will occur when the host transmits a carriage return (HEX 0D) to the scale.

    Did you transmit the CR?

    If so, can you please post the relevant portion of your code (just the part that actually sends something to the scale and receives the answer?

    Accepted Solution

    Thank you for the suggestion; the section of the manual described applies to reading from the COM port.  When a Fairbanks Scale is attached via a USB port, data is read continuously.

    The issue turned out to be a problem in the USB HID library being used, with exceptions fired when the the scale was being opened for both read and write.

    //m_hHandle = CreateFile(strPath, GENERIC_READ | GENERIC_WRITE, 0, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, IntPtr.Zero);

    was corrected to:

    m_hHandle = CreateFile(strPath, GENERIC_READ, 0, IntPtr.Zero, OPEN_EXISTING, FILE_FLAG_OVERLAPPED, IntPtr.Zero);
    Thanks again.


    Author Closing Comment

    Troubleshooting solved the issue.

    Featured Post

    6 Surprising Benefits of Threat Intelligence

    All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

    Join & Write a Comment

    We all know that functional code is the leg that any good program stands on when it comes right down to it, however, if your program lacks a good user interface your product may not have the appeal needed to keep your customers happy. This issue can…
    Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
    This video discusses moving either the default database or any database to a new volume.
    Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

    745 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now