in reply to Re^2: Data adquisition from a USB device
in thread Data adquisition from a USB device

Unfortunately, there may be two different types of documentation: user docs and programmer docs. You need the programmer docs. Those are usually a bit harder to come by.

From the information you have provided, it looks like the you could probably use the Device::USB::Device::bulk_read method. Unfortunately, without the docs, you have quite a bit of reverse-engineering to make sense of the data in that packet.

Honestly, it would definitely be worth your time to check with the company to see if they have any programming documentation. Debugging a binary protocol is not always the best use of time.

I though you were the author

I am. That was supposed to be a little joke. (It turned out to be even smaller than expected.<shrug/>)

G. Wade

Replies are listed 'Best First'.
Re^4: Data adquisition from a USB device
by flope004 (Acolyte) on Apr 11, 2009 at 16:45 UTC

    I though it was a joke
    Thanks for your help. As you said I don't have the time for reverse engineering.
    I though that, once one gets to mimic the communication between the device and the driver, interpreting the income data was easier.
    I will try to get the technical documentation and see.
    Thanks,
    F

      The good news about the USB is that it is a really general method of communicating with devices. This means it can be used with all kinds of devices.

      The bad news, of course, is that if can be used with all kinds of devices.<grin/> There's always more protocol on top. Kind of reminds me of the old days of working with serial ports.<shrug/>

      If and when you get the technical docs, you might want to consider releasing a Perl module on CPAN. That way you can save someone else from having to work this out.

      G. Wade