• AVR Freaks

Keyboard HID Failed after disconnect-reconnect on Windows XP SP3

Page: 12 > Showing page 1 of 2
Author
musecyan
New Member
  • Total Posts : 26
  • Reward points : 0
  • Joined: 2010/09/16 07:35:34
  • Location: 0
  • Status: offline
2011/03/28 00:42:17 (permalink)
0

Keyboard HID Failed after disconnect-reconnect on Windows XP SP3

Hello everybody
 
I have devellop an USB keyboard HID emulateur with a 18F2550.
I have 10 input on the pic who emulate keyboard press on windows (the key are programmable in the eeprom of the pic)
 
The board work well
on different computer (vista,win 98,XP home SP3,) except one PC with windows HOME XP SP3.
 
On this PC  the first time I connect the board It's work (when I push a button  on an entry of my pic it emulate the keypress on windows)HID: 00 'code' 00 00 00 00 00 00  and 00 00 00 00 00 00 00 00 (release key)
but after disconnect the usb and reconnect it the emulation don't work anymore...
 
Ithe device is correct find and enumerate I can see it "peripherique clavier PIH" on device manager at Keyboard (clavier) and
also in "peripherique d'interface HID" ->peripherique d'interface utilisateur USB..
 
but i don't receive the HID key code in windows
 
I have test to spy usb with USBlyzer and it strange . I can see the HID code they are ok but windows don't interpret it...
00 00 'key code' 00 00 00 00 00 and 00 00 00 00 00 00 00 00(release key) success
there is no error
 
I have compare the driver of windows with another PC (who work well )and they are the same with the same OS (windows XP home SP3)
 
on the other PC i can disconnect and reconnect many time it's work always
 
I use the last USB stack 2.8A from (Microchip Solutions v2010-10-19) 
I utilize interrupt transfert 1ms
 
the board don't have any supply power.It's powered by the usb bus...
 
Is there something on the disconnect USB who can't crash HID keyboard buffer of the windows or pipe buffer...
 
Any ideas?
#1

21 Replies Related Threads

    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 02:38:01 (permalink)
    0
    Yeah, it sounds strange.
    Could it be that you have some hardware issue (cabling, decoupling etc) that in some "border-line" USB sockets do create troubles?

    GENOVA :D :D ! GODO
    #2
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 03:15:13 (permalink)
    0
    The card I have devellop is a real board not prototyping board
     
    I have place 20Mhz quartz with 15 picoF
    and a 100nf (0,1uF) for decoupling VCC/VDD
    I have place 220nf for VUSB (i have test to sold a another 220nF on it to double capacitant 440Nf but no change)...
     
    Any probleme with SIE stack initializing is possible?
    #3
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 05:16:01 (permalink)
    0
    Sounds good enough...
    Well, no, it should be "ok" or "not ok" and not depending...

    GENOVA :D :D ! GODO
    #4
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 06:24:19 (permalink)
    0
    I have test another boad I have devellop
    ASCII RS232 to Keyboard HID emulation with a 18F2455
     
    and There is the same problem on this computer
    the fisrt time it work
    and after disconnect-reconnect it don't work
    i must reboot the PC or place another usb device on this usb to reinitialise this usb correctly...
     
    in the stack 2.8A the ping pong buffer works well,isn't it?
    Is there a list of new bug discover with this stack?
     
    I use the same EP to enumerate configuration and transfer data ->EP0
    EPO in ->to transfer HID key code.
    EPO out-> to read change of LEDS(Maj,num lock,scrollock)
     
    my code is inspired with the microchip sample "USB Device - HID - Keyboard- C18 - PICDEM FSUSB"
     
     
    another idea?
    timer in initialize usb or other thing?
    post edited by musecyan - 2011/03/28 06:26:26
    #5
    sjb741
    Super Member
    • Total Posts : 802
    • Reward points : 0
    • Joined: 2010/01/25 08:45:39
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 09:23:43 (permalink)
    0
    (1) I wonder if there may be slight differences in the report by USBView?

    • Save the test after 1st connect
    • Save the test after 2nd connect
    • Compare using WinMerge or similar tool

    (2)
    "the board don't have any supply power.It's powered by the usb bus... "
    "I have place 220nf for VUSB"

    From DS39721B-page 27-35:
    To meet the inrush current requirements of the USB 2.0 Specification, the total effective capacitance appearing across VBUS and ground must be greater than 1 μF, but no more than 10 μF.

    Also: do you have a way to quickly discharge the VBUS capacitor after disconnect?
    #6
    chinzei
    Super Member
    • Total Posts : 2250
    • Reward points : 0
    • Joined: 2003/11/07 12:39:02
    • Location: Tokyo, Japan
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 16:27:44 (permalink)
    0
    On this PC  the first time I connect the board It's work (when I push a button  on an entry of my pic it emulate the keypress on windows)HID: 00 'code' 00 00 00 00 00 00  and 00 00 00 00 00 00 00 00 (release key)
    but after disconnect the usb and reconnect it the emulation don't work anymore...


    Using a sniffer, capture the failed enumeration trace on the PC.
    For example,
    USBlyzer (33days trial)   http://www.usblyzer.com/

    Using "Capture->Capture Hot-plugged" menu, the enumeration sequence is captured. Comparing the failed enumeration with a trace of successful enumeration on other PC, you'll get a clue to look in.


    For your reference, here are traces of successful enumeration on a hardware bus analyzer.
    - Board:    Microchip PICDEM FS USB board
    - Firmware: USB Device - HID - Keyboard example, v2010-10-19 (v2.8)
    - OS:       Windows XP SP3
    - HC, hub:  EHCI / high-speed hub with single TT

    The Windows enumeration sequences differ in many points for the first and the second (and later) plug in.
    - The first plug-in restarts enumeration after Get_Descriptor( String ) of Microsoft OS Descriptor (0xEE)
    - The sequence from Set_Configuration to the first interrupt IN is same for both. But timing at first plug-in is slower than the second.
    etc.

    Enumeration of the first plug-in
     
    [7.894,111] Data Line High
    [7.897,107] Suspend

    [8.020,340] Reset (10552 us)
    [8.082,310] FS: Control Transfer Addr:00 Endp:0 - Get Device Descriptor (request 0x40 bytes, but cut at 8bytes)
    [8.083,228] Reset (10679 us)
    [8.113,560] FS: Control Transfer Addr:00 Endp:0 - Set Address (0x02)
    [8.176,074] FS: Control Transfer Addr:02 Endp:0 - Get Device Descriptor (request 0x12)
    [8.176,540] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request 0x09)
    [8.176,966] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request 0xFF)
    [8.177,697] FS: Control Transfer Addr:02 Endp:0 - Get String Descriptor 0xEE - STALL

    [8.178,891] Reset (11041 us)
    [8.285,471] FS: Control Transfer Addr:00 Endp:0 - Get Device Descriptor (request 0x40 bytes, but cut at 8bytes)
    [8.286,409] Reset (10551 us)
    [8.332,356] FS: Control Transfer Addr:00 Endp:0 - Set Address (0x03)
    [8.394,881] FS: Control Transfer Addr:03 Endp:0 - Get Device Descriptor (request 0x12)
    [8.395,340] FS: Control Transfer Addr:03 Endp:0 - Get Configuration Descriptor (request 0x09)

    [8.396,357] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 0
    [8.396,695] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 2
    [8.397,340] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 0
    [8.397,692] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 2

    [11.370,495] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 0
    [11.370,815] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 2
    [11.371,456] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 0
    [11.371,815] FS: Control Transfer Addr:03 Endp:0 - Get String Descriptor 2
    [11.376,628] FS: Control Transfer Addr:03 Endp:0 - Get Device Descriptor (request 0x12)
    [11.377,249] FS: Control Transfer Addr:03 Endp:0 - Get Configuration Descriptor (request 0x09)
    [11.377,816] FS: Control Transfer Addr:03 Endp:0 - Get Configuration Descriptor (request just the size of config set)
    [11.378,457] FS: Control Transfer Addr:03 Endp:0 - Set Configuration (0x01)
    [11.489,506] FS: Control Transfer Addr:03 Endp:0 - Set Idle (HID) Indefinite, All
    [11.489,878] FS: Control Transfer Addr:03 Endp:0 - Get HID Report Descriptor (request 0x7F)
    [11.501,836] FS: Data Transfer (Interrupt-IN) Addr:03 Endp:1 - HID Report In
    [11.502,836] FS: Data Transfer (Interrupt-IN) Addr:03 Endp:1 - HID Report In


    Enumeration of second plug-in
     
    [4.046,701] Data Line High
    [4.049,644] Suspend

    [4.463,123] Reset (10349 us)
    [4.525,127] FS: Control Transfer Addr:00 Endp:0 - Get Device Descriptor (request 0x40 bytes, but cut at 8bytes)
    [4.526,130] Reset (10359 us)
    [4.571,997] FS: Control Transfer Addr:00 Endp:0 - Set Address (0x02)
    [4.634,523] FS: Control Transfer Addr:02 Endp:0 - Get Device Descriptor (request 0x12)
    [4.634,940] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request 0x09)

    [4.635,363] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request 0xFF)

    [4.635,980] FS: Control Transfer Addr:02 Endp:0 - Get String Descriptor 0
    [4.636,319] FS: Control Transfer Addr:02 Endp:0 - Get String Descriptor 2
    [4.636,940] FS: Control Transfer Addr:02 Endp:0 - Get String Descriptor 0
    [4.637,213] FS: Control Transfer Addr:02 Endp:0 - Get String Descriptor 2
    [4.641,795] FS: Control Transfer Addr:02 Endp:0 - Get Device Descriptor (request 0x12)
    [4.642,214] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request 0x09)
    [4.642,576] FS: Control Transfer Addr:02 Endp:0 - Get Configuration Descriptor (request just the size of config set)
    [4.643,214] FS: Control Transfer Addr:02 Endp:0 - Set Configuration (0x01)
    [4.697,058] FS: Control Transfer Addr:02 Endp:0 - Set Idle (HID) Indefinite, All
    [4.697,330] FS: Control Transfer Addr:02 Endp:0 - Get HID Report Descriptor (request 0x7F)
    [4.702,223] FS: Data Transfer (Interrupt-IN) Addr:02 Endp:1 - HID Report In
    [4.703,223] FS: Data Transfer (Interrupt-IN) Addr:02 Endp:1 - HID Report In


    Tsuneo

    post edited by chinzei - 2011/03/28 16:29:26
    #7
    chinzei
    Super Member
    • Total Posts : 2250
    • Reward points : 0
    • Joined: 2003/11/07 12:39:02
    • Location: Tokyo, Japan
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/28 17:07:59 (permalink)
    0

    I use the same EP to enumerate configuration and transfer data ->EP0 
    EPO in ->to transfer HID key code. 
    EPO out-> to read change of LEDS(Maj,num lock,scrollock) 

    You should pass the input report of keycode array over an interrupt endpoint. ONE interrupt IN endpoint is mandatory for HID, though interrupt OUT is optional.

    I don't know what occurs without any interrupt IN endpoint on a HID device.

    Tsuneo
    #8
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/29 00:14:03 (permalink)
    0
    Hello thanks for your response.
     
    For check  the hardware compatibility i have read the schematics on datasheet of the PIC DEMO board
    1)I have add an 1M6 ohm resistor on the 20 Mhz quarzt-> 1Mohm in pic demo
    2)I have also add 10pF capacitor in parallel of my 15pf for the quartz (25pf) ->22pf on the  pic demo board
    3)I have add an 10uF in parallel of my 100Nf(0.1uF) on VDD to VSS
     
    For software If have Add POWER TIMER ON in my Settings...
     
    my enumeration is ever working...
     
    I use interrupt for my data endpoint
     
    and usbview report exaclty the same for a working HID keyboard in EP or not working ...
    report of usbview

    Device Descriptor:
    bcdUSB:             0x0200
    bDeviceClass:         0x00
    bDeviceSubClass:      0x00
    bDeviceProtocol:      0x00
    bMaxPacketSize0:      0x08 (8)
    idVendor:           0x04D8 (Microchip Technology Inc.)
    idProduct:          0x0055
    bcdDevice:          0x0001
    iManufacturer:        0x01
    0x0409: "CFAM Electronics         "
    iProduct:             0x02
    0x0409: "RS232-CLAVIER"
    iSerialNumber:        0x00
    bNumConfigurations:   0x01
    ConnectionStatus: DeviceConnected
    Current Config Value: 0x01
    Device Bus Speed:     Full
    Device Address:       0x01
    Open Pipes:              2
    Endpoint Descriptor:
    bEndpointAddress:     0x81  IN
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x01
    Endpoint Descriptor:
    bEndpointAddress:     0x01  OUT
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x01
    Configuration Descriptor:
    wTotalLength:       0x0029
    bNumInterfaces:       0x01
    bConfigurationValue:  0x01
    iConfiguration:       0x00
    bmAttributes:         0x80 (Bus Powered )
    MaxPower:             0x32 (100 Ma)
    Interface Descriptor:
    bInterfaceNumber:     0x00
    bAlternateSetting:    0x00
    bNumEndpoints:        0x02
    bInterfaceClass:      0x03 (HID)
    bInterfaceSubClass:   0x00
    bInterfaceProtocol:   0x01
    iInterface:           0x00
    HID Descriptor:
    bcdHID:             0x0111
    bCountryCode:         0x00
    bNumDescriptors:      0x01
    bDescriptorType:      0x22
    wDescriptorLength:  0x003F
    Endpoint Descriptor:
    bEndpointAddress:     0x81  IN
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x01
    Endpoint Descriptor:
    bEndpointAddress:     0x01  OUT
    Transfer Type:   Interrupt
    wMaxPacketSize:     0x0008 (8)
    bInterval:            0x01

     
    I will test with usblyzer to see after a reconnect on this pc on a reconnect on another pc if they are some differences...
    post edited by musecyan - 2011/03/29 00:22:31
    #9
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/29 02:57:43 (permalink)
    0
    Hello
    I have made some test with usblyzer on the different PC
    there'is some changes...
     
    1-a) PC who always work (second connexion)
    "KmIO Internal USB Get Device Handle" after 2 "Start device"
     
    PNP 0055 START DEVICE                                hidusb
    PNP 0056 START DEVICE                                usbhub     Sucess
    KmIO 0057 Internal USB Get Device Handle   usbhub
    KmIO 0058 Internal USB Get Device Handle   usbhub                 Sucess
    PNP 0059 START DEVICE                                 usbhub
     
    1-b) PC who work only first time (second connexion)
     
    PNP 0055    START DEVICE                               hidusb 
    PNP 0056    START DEVICE                               usbhub 
    PNP 0057-0056 START DEVICE                         usbhub    Sucess
     
    no "KmIO Internal USB Get Device Handle"
     
    2-a)PC 1 (works)
    PNP 0084 START DEVICE                                hidusb    sucess
    KmIO 0085 Internal USB Get Device Handle   usbhub
    KmIO 0086-0085 Internal USB Get Device Handle   usbhub   sucess      
    PNP 0087 QUERY CAPABILITIES                    hidusb
     
    2-b)PC2(don't works)
    PNP 0082-0055 START DEVICE                    hidsub sucess
    PNP 0083 QUERY CAPABILITIES
     
    no "Internal USB Get Device Handle"   and start device is 0082-0055 (0055 was hidusb Start device request...)
     
    but there is some "kmIO Internal USB Submit Idle Notification"
     
    kmIO 0143-0087 Internal USB Submit Idle Notification  usbuhci canceled
    0087 was (PNP 0087 Query Pnp Device State)
     
    kmIO 0147 Internal USB Submit Idle Notification usbuhci
    ....
    kmIO 0166-0097 Internal USB Submit Idle Notification usbuhci canceled
    0097 was  Query ID DEVICE ID usbhub
    ...
    kmIO 0170 Internal USB Submit Idle Notification usbuhci
    ...
    kmIO 0199-0147 Internal USB Submit Idle Notification usbuhci canceled
    ..
    kmIO 0203 Internal USB Submit Idle Notification usbuhci
    ..
    ...
    kmIO 0220-0170 Internal USB Submit Idle Notification usbuhci canceled
    ..
    ..
    kmIO 0226 Internal USB Submit Idle Notification usbuhci
    #10
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/29 03:16:50 (permalink)
    0
    i found this topic on the forum

    http://www.microchip.com/forums/tm.aspx?m=100696&settheme=Mobile

    Is it the same problem USB hardware ?
    my PC not fully compatible with 2.0?

    how can I test?



    #11
    chinzei
    Super Member
    • Total Posts : 2250
    • Reward points : 0
    • Joined: 2003/11/07 12:39:02
    • Location: Tokyo, Japan
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/29 12:37:27 (permalink)
    0

    Is it the same problem USB hardware ?

    No, it isn't a problem of PC USB hardware, because the device works at the first plug in.
    Seeing the trace, I have an impression that Windows is corrupted around HID class driver (hidusb.sys)

    a) Does the PC in trouble have USB keyboard or PS/2 keyboard?
    b) Connect an extra USB keyboard to the PC. Does the keyboard behave like the PIC keyboard?
    ie. the extra keyboard works at first plug in, but not work at the second and later plug in.

    If the PC runs with PS/2 keyboard, and if an extra USB keyboard also gets in trouble, Windows on the PC is certainly corrupted. In this case, we have to recover Windows around HID class driver.

    Tsuneo
    #12
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/30 00:23:56 (permalink)
    0
    Hello tsuneo
     
    My PC have PS/2 keyboard and PS/2 MOUSE
    I have test to connect  an USB keyboard and there is no problem (i can connect and disconnect many time)
    but the two usb keyboard i have are composite device HID and with USB 1.1  and LOW speed...
    (My board is usb 2.0 specification with full speed)
     
    for the driver I have another pc with the same os and same driver and i will test to remplace them .
     
    the driver for "cocentrateur USB racine" are usbd.sys 5.1.2600.0 (XPClient010817-1148) and usbhub.sys 5.1.2600.5512 (xpsp.080413.2108) microsoft certified
    the driver for "peripherique d'interface utilisateur" are hidclass.sys,hidparse.sys,hidusb.sys,hid.dll 5.1.2600.5512 (xpsp.080413-2108) microsoft certified
    the driver for "peripherique clavier PIH" are kbdclass.sys,kbdhid.sys 5.1.2600.5512 (xpsp.080413-2108) microsoft certified
     
    I have seen something very interesting
    when i connect an usb mutlimedia  keyboard on a usb port and my board on any another usb port i can disconnect and reconnect my board many time it-s ever work!!!
     
    how a hid device connected on a usb port can influence another device?
     
    I have test to compile my program at low speed but windows don't reconize it
    if have place #define USB_SPEED_OPTION USB_LOW_SPEED  and comment #define USB_SPEED_OPTION USB_FULL_SPEED
    anything other to do...
    post edited by musecyan - 2011/03/30 00:46:29
    #13
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/30 07:32:01 (permalink)
    0
    re-hello
     
    I have test to replace hidusb.sys with another same version and there is no change
     
    But I have discover another strange thing...
    I have seen that if I disconnect Avast (my antivirus) 6.0.1000
     
    my board works ever after disconnect/reconnect USB
     
    and when I reconnect avast my first time works and don't after reconnect/disconnect the usB
     
    my other computer with the same OS (windows XP SP3) has an old version of avast 4.8 and with this version there is no usb troubleshooting...
     
    So my board works ever on this PC :
    1)when avast 6.0.1000 is disconnect 
    2)when avast is connected and another USB HID Keyboard is connected on a USB PORT
    3)only first Time if avast is connected and no USB HID keyboard is connected on a USB PORT
     
    very strange...
     
     
    #14
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/30 08:07:45 (permalink)
    0
    There is a thread in Avast 6.0.1000 who spy
    named behavior shield 
      
     
     

     
    if I stop this thread my board works ever.... (button STOP) 
      
    avast don't find my enumeration on usb connected is suspicious (no alert or message) but in fact the spy of my driver (by avast) on usb connect failed my board to  works correctly...why? 
    post edited by musecyan - 2011/03/30 08:18:12
    #15
    chinzei
    Super Member
    • Total Posts : 2250
    • Reward points : 0
    • Joined: 2003/11/07 12:39:02
    • Location: Tokyo, Japan
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/30 15:55:13 (permalink)
    0
    Ah, the antivirus disturbs hidusb.sys..

    avast don't find my enumeration on usb connected is suspicious (no alert or message) but in fact the spy of my driver (by avast) on usb connect failed my board to  works correctly...why?

    Avast should attach a filter driver to hidusb.sys, to detect its activity.
    As the avast filter driver is incomplete, the request (URB) of your PIC is blocked, unintentionally. Contact to the manufacturer to fix the bug.

    Tsuneo
    #16
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/31 01:22:57 (permalink)
    0
    Thanks Tsuneo and DarioG
     
    I think have lost many time for an anti-virus Problem...
     
     
    I have see that if i connect an usb keyboard first avast spy different *.sys (because it's a composite device)
    file spyed by avast: usbccgp.sys and mouhid.sys (there is an hid mouse in composite device...)
    and that don't disturb the usb keyboard
    and when I connect my board after, avast don't spy my driver(hidusb.sys and kbdhid.sys) so i can disconnect/connect many time when the usb keyboard is connected...
     
    So the problem is only because of avast...
     
    I have post a ticket and they have receive it and they says they will do test and give me a reponse in a week or more....
     
    I will try to change my pid vid to microsoft certified keyboard to see if the problem come again ...
    #17
    musecyan
    New Member
    • Total Posts : 26
    • Reward points : 0
    • Joined: 2010/09/16 07:35:34
    • Location: 0
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/31 05:15:29 (permalink)
    0
    I have do some test and when i change my pid /vid ans string descriptor to a microsoft it works ever with avast...
     
    so AVAST want microsoft PID/VID....
     
    if have also test orginal keyboard demo
    0x004D8
    0x00055
    " Microchip Technolgy Inc"
    "Keyboard Demo"
    is not a good (friendly) device for him....
    #18
    DarioG
    Allmächtig.
    • Total Posts : 54081
    • Reward points : 0
    • Joined: 2006/02/25 08:58:22
    • Location: Oesterreich
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/31 11:38:27 (permalink)
    0
    Crazy enough, yeah...
    I hate antiviruses (!) but I usually believe that Avast is among the best out there, so this is strange. I have it running on my notebook PC and it usually works with my HID devices that I test there from time to time...

    GENOVA :D :D ! GODO
    #19
    yts
    Super Member
    • Total Posts : 583
    • Reward points : 0
    • Joined: 2005/09/06 17:45:30
    • Status: offline
    Re:Keyboard HID Failed after disconnect-reconnect on Windows XP SP3 2011/03/31 17:12:08 (permalink)
    0
    Hello musecyan;

    You reconnect your PIC18F2550 (PID/VID = 0x04D8/0x0055) to PC, and fail to enumerate the PIC in case of windows HOME XP SP3. Have you ever (hardware) reset PIC at this stage by connecting #1 pin to GND?

    YTS
    #20
    Page: 12 > Showing page 1 of 2
    Jump to:
    © 2019 APG vNext Commercial Version 4.5