in reply to Re^2: USB module
in thread USB module

USB just does not work like that. When the usb device is connected a device driver is loaded for the device. If the device is a HID (Human Interface Device) like a mouse, the operating system provides the driver. If the device is vendor specific the manufacturer of the device provides the device driver. The device driver presents some sort of software interface to applications. The interface presented depends very much on the nature of the device.

The device that you describe sounds like it has an ethernet port on it and acts as an IP device. That has nothing at all to do with it possibly having a USB port, except that it may present itself as a class of USB device that looks to the system as an IP device. If that is the case the your Telnet technique would still work. If not, then you have to find out a lot more about the vendor specific interface that is provided, and then have some serious work to do to access that from Perl.


Perl is Huffman encoded by design.

Replies are listed 'Best First'.
Re^4: USB module
by boblikeperl (Novice) on Sep 23, 2005 at 22:32 UTC
    Let me try it this way: I have a winxp computer (usb) connected to a usb hub. Several of the same type of USB devices are connected to the hub. I want to send/receive messages from the device on port 2 of the hub. How do I open that port for read/write? Is it with the IO module/methods?

      You can't. USB does not work like that. Neither the device, nor the device driver know how many hubs there are in the chain, nor what the path is through the hubs, nor do they care. Perhaps you need to state the actual problem you are trying to solve, rather than spend a lot of time trying to solve the wrong problem.


      Perl is Huffman encoded by design.
        I don't know how to put it more simply. I want to use PERL to communicate with USB devices connected to the USB ports on my WinXP machine. How is this done !!! The devices do not have drivers I can load on my PC since they are "home grown" - not common USB devices, but, they conform to the USB 1.1 specification.