EasyHID max usb buffer size


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Apr 2007
    Posts
    14

    Default EasyHID max usb buffer size

    Hey, I've got everything working with the pic 18f2550 to be recognized as a usb hid device. I'm sending accelerometer data and push button data to the pc using polling.

    I just wanted to know how to increase the data buffer. Easyhid configures the default buffer size to be an array of size 8 "USBBufferOut Var Byte[8]". Is there a way to change the buffer size to 11, or does this exceedthe max buffer size for HID devices?

    Thanks

  2. #2
    skimask's Avatar
    skimask Guest

    Default

    Quote Originally Posted by jizyjuice View Post
    Hey, I've got everything working with the pic 18f2550 to be recognized as a usb hid device. I'm sending accelerometer data and push button data to the pc using polling.

    I just wanted to know how to increase the data buffer. Easyhid configures the default buffer size to be an array of size 8 "USBBufferOut Var Byte[8]". Is there a way to change the buffer size to 11, or does this exceedthe max buffer size for HID devices?

    Thanks
    Have you tried: USBBufferOut Var Byte[11]? Or search on something like 'usb buffer size'.
    I came up with:

    USBBufferSizeMax con 8 ' maximum buffer size
    USBBufferSizeTX con 8 ' input
    USBBufferSizeRX con 8 ' output
    USBBuffer Var Byte[USBBufferSizeMax]
    USBBufferCount Var Byte

    Looks to me like you change the 8 to an 11 and you're done.
    The search tool works great. But it's only great if you use it.
    Last edited by skimask; - 13th April 2007 at 18:05.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959

    Default

    The Input and Output report (buffer) sizes are set on the 3rd screen (Configuration Details) of EasyHID.

    You can have a max of 64 bytes.

    DT

  4. #4
    Join Date
    Apr 2007
    Posts
    14

    Default

    Oh cool, thanks. Yeah I tried to set the usbbuffer var byte 11, but that didnt work and would just never send any data to the pc.

    Thanks

  5. #5
    Join Date
    May 2007
    Posts
    65

    Default

    why don't just set buffer to 64 (max)? is there a drawback?
    "Beethoven had his critics too, see if you can name 3 of them"

Similar Threads

  1. USB CDC Communications for Dummies!
    By Squibcakes in forum USB
    Replies: 104
    Last Post: - 15th January 2014, 13:43
  2. Simple USB Comms Problem
    By awmt102 in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 6th January 2010, 20:17
  3. Speed of USB EasyHID and Time problem
    By sjohansson in forum USB
    Replies: 10
    Last Post: - 18th January 2007, 22:21
  4. EasyHID and buffer entry 0
    By Demon in forum USB
    Replies: 0
    Last Post: - 19th August 2006, 19:34
  5. USB Interface using PIC
    By Tissy in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 22nd May 2006, 16:04

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