USB HID Speed ?

General discussion on mikroPascal.
Post Reply
Author
Message
Tomy
Posts: 47
Joined: 25 Jun 2007 16:50

USB HID Speed ?

#1 Post by Tomy » 18 Feb 2008 21:16

I want to know the maximum speed of USB HID. Is it limited at 64KB/s ?
If yes, anyway to break this limit ? Because it is too slow.

Tomy
Posts: 47
Joined: 25 Jun 2007 16:50

#2 Post by Tomy » 21 Feb 2008 14:07

I find the answer by myself from web.

USB HID mode speed :
64 bytes / 1ms , So, it is 64000 bytes /s
= 64KB/s

USB Bulk mode speed :
19 packet x 64 bytes / 1ms, So, it is 1216000 bytes /s
= 1.216MB/s

(Correct me if I'm wrong)

I like mikroPascal than other compiler. But it only support HID mode.
I need speed, then I need other compiler for Bulk mode support.

User avatar
zristic
mikroElektronika team
Posts: 6608
Joined: 03 Aug 2004 12:59
Contact:

#3 Post by zristic » 21 Feb 2008 14:27

mikroPascal enables you to write USB CDC too, it is not limited in that way. All you have to do is to write the code by yourself, i.e. we have not done it yet, as in the case of HID.

matrix
Posts: 203
Joined: 26 Jan 2006 07:21
Location: Bulgaria
Contact:

#4 Post by matrix » 21 Feb 2008 14:36

I start to write MSD, but have no time, if anybody need it too, let's port it together.

Tomy
Posts: 47
Joined: 25 Jun 2007 16:50

#5 Post by Tomy » 21 Feb 2008 20:51

zristic,

Thanks for reply. Can you tell us how to write USB CDC code ? If you can provide a little example for us to start with. Then I think many people like to help.

Tomy
Posts: 47
Joined: 25 Jun 2007 16:50

#6 Post by Tomy » 21 Feb 2008 20:53

matrix,

Do you have any info or website about MSD ? Hope more people interest to write USB code for mikroPascal.

Dany
Posts: 3854
Joined: 18 Jun 2008 11:43
Location: Nieuwpoort, Belgium
Contact:

Re:

#7 Post by Dany » 08 May 2011 18:53

Tomy wrote:matrix,

Do you have any info or website about MSD ? Hope more people interest to write USB code for mikroPascal.
Here is an MSD implementation in mikroPascal: http://www.rosseeld.be/DRO/PIC/index.htm#usb_msd.
Kind regards, Dany.
Forget your perfect offering. There is a crack in everything, that's how the light gets in... (L. Cohen)
Remember when we were young? We shone like the sun. (David Gilmour)

Farhatullah
Posts: 1
Joined: 01 Feb 2013 06:48

USB HID Speed ?

#8 Post by Farhatullah » 01 Feb 2013 08:19

i am using 18F4550 to communicate PC to USB.
i have used hid communication but it is too slow.
What type of class i should use for fast and reliable communication?
i am not interested to use CDC as it creats comm port of PC.
Your response will be highly appreciated.

Post Reply

Return to “mikroPascal General”