USB Keyboard


Results 1 to 20 of 20

Thread: USB Keyboard

Threaded View

  1. #11
    Join Date
    Nov 2003
    Location
    Greece
    Posts
    4,132

    Default Re: USB Keyboard

    Thanks to your help I am making a progress after a lot of experimenting. Sure I do not understand the whole process but anyway...

    I managed to enumerate the PIC and display on an open text file a short string of characters from an 8 byte buffer.

    How can this buffer made bigger? I changed these in the main program
    Code:
    USBBufferSizeTX con 16                                                                                    
    USBBufferSizeRX con 16
    USBBufferCount Var Byte
    USBBufferIn var byte[16]
    USBBufferOut Var Byte[16]
    but still sends only the half buffer.

    Then I changed in the hid_desc.bas file this line

    Code:
    retlw	0x10		; This should be the size of the endpoint buffer
    from 0x08 to 0x10 but still no joy. I attach the descriptor file.

    Any idea?

    Ioannis

    P.S. I also changed

    #define HID_INT_OUT_EP_SIZE 8

    in the descriptor file to 16 but still sends 8 byte buffer...
    Attached Files Attached Files
    Last edited by Ioannis; - 18th December 2021 at 21:06.

Similar Threads

  1. PIC18F14K50 USB Keyboard firmware
    By ScumariTec in forum USB
    Replies: 0
    Last Post: - 27th January 2021, 10:29
  2. USB keyboard emulator
    By Toley00 in forum USB
    Replies: 12
    Last Post: - 23rd January 2012, 00:57
  3. One USB keyboard to Two USB Ports
    By picnaut in forum mel PIC BASIC Pro
    Replies: 1
    Last Post: - 11th June 2009, 00:04
  4. Replies: 17
    Last Post: - 13th June 2008, 21:33
  5. Replies: 3
    Last Post: - 10th April 2008, 10:02

Members who have read this thread : 1

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts