Re: where can I find the pl2303 vendor reference?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Jul 6, 2011 at 9:25 AM, c-aries <babyaries2@xxxxxxxxx> wrote:
> Hi all.
> When I read the pl2303 driver source code in linux-2.6.36, I am confuse
> about these codes:
>
> $ cat -n pl2303.c
> ...
>  125  #define VENDOR_WRITE_REQUEST_TYPE       0x40
>  126  #define VENDOR_WRITE_REQUEST            0x01
>  127
>  128  #define VENDOR_READ_REQUEST_TYPE        0xc0
>  129  #define VENDOR_READ_REQUEST             0x01
> ...
>  179  static int pl2303_startup(struct usb_serial *serial)
>  180  {
> ...
>  210          pl2303_vendor_read(0x8484, 0, serial, buf);
>  211          pl2303_vendor_write(0x0404, 0, serial);
> ...
>  236  }
> ...
> $
>
> I download the pl2303 datasheet, but can't find anything related to
> vendor specific read, write methods. So I can't figure out what does
> 0x8484 and 0x0404 mean.
>
> Could you tell me where can I find the pl2303 vendor read write methods'
> reference?

You may have to go through reverse engineering if the vendor does not
provide the documents. You can use a USB sniffer to sniff the
communication under Windows.

Some references:
http://libusb.6.n5.nabble.com/Converting-Win32-code-to-libusb-tp4536601p4537332.html

-- 
Xiaofan
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux