cancel
Showing results for 
Search instead for 
Did you mean: 

USB Product ID Custom HID Demo Urgent

irmakci
Associate II
Posted on August 15, 2011 at 02:27

Hi everbody,

I am using Custom HID Demo for stm32f107 eval board and HID demonstrator application.

When application starts, Vendor ID and Produst Id appear. I wonder these :

1. Is Vendor ID fixed for each STM32 Cortex M3 Microcontroller for ST Microelectronics

   (I think it is fixed). So each time it is the same?

2. Is product ID for fixed or variable for each STM32 Cortex M3 Microcontroller?

Thanks in advance.

Best Regards

#usb-custom-id-demo-product-id
7 REPLIES 7
Nickname12657_O
Associate III
Posted on August 16, 2011 at 00:03

No, VID and PID and fixed each demonstration example.  In custom HID  it will be always the same for many STM32 devices.   VID is fixed by Manufacturer here STMicro  and PID is fixed by product devive ID.  To differenciate devices having the same PID, you should use string descriptors for example.

irmakci
Associate II
Posted on August 17, 2011 at 21:32

When i looked Custom HID examples, it is sent 2 bytes data via reports and interrupts transfer in the data transfer. Can i send 1024 bytes(1kB) or much more for example 28kB via interrupt transfer? or Which transfer type should i use for this purpose?(Control or bulk ?). And when i looked examples in Custom HID demo, i see hid demonstrator MFC application for this purpose. I think it supports only interrupt transfer. Is there any application for bulk transfer or other transfer types in ST PC examples?

irmakci
Associate II
Posted on August 17, 2011 at 21:33

Thanks you in advance

Best regards

irmakci
Associate II
Posted on August 20, 2011 at 03:14

any answer?

Nickname12657_O
Associate III
Posted on August 20, 2011 at 17:04

Hi,

Custom HID and HID class handles only control and interrupts transfers.  For Interrupts you can send up to 64Bytes by Frame (1ms), that means you can reach 64Kbytes/s.

If you need more Bandwidth, you have to use Bulk transfer  to reach  about 1Mbytes/s, However natively in Windows OS ( XP, Vista, 7) there is no specific class to use bulk as HID one. Therefore we can use a Third party driver, or WinUSB driver or similar ones.

Cheers,

STOne-32.

drzile86
Associate II
Posted on August 24, 2011 at 14:14

Hi,

Maybe try to use USB CDC (Virtual COM port) for transfering data to the PC via USB. For CDC you have standard windows driver like for HID. I didn't work with that, but there is also ST example.

Regards,

Dragan 

irmakci
Associate II
Posted on September 06, 2011 at 20:18

thank u for everything. I changed the procedure for usb powered application...