Hello,
I want to send data by USB in full speed or HID. I used SerialUSB but is very low to send data. Does anyone here can help with real USB in mini maple? Does anyone already used USB without emulate?
Best regards
Hello,
I want to send data by USB in full speed or HID. I used SerialUSB but is very low to send data. Does anyone here can help with real USB in mini maple? Does anyone already used USB without emulate?
Best regards
change the baud rate on your computer. on windows you do this through device manager
Even then CDC/ACM throughput vs HID is not going to give you the best usb data rates. Last I looked at the usb section its starting to get parsed into things that could turn into multiple classes if I ever get un-busy I plan to take a crack at midi. The meat of it is here:
https://github.com/leaflabs/libmaple/blob/master/libmaple/usb/stm32f1/usb_cdcacm.c, HID will complicate things a bit because much more is done with the descriptors (usage pages). You could probably also just do the bulk transfers yourself.
The meat of it is here
Beware! Said meat is not part of the public libmaple API, and has been changing recently in support of the new bootloader reset signalling system.
In short, if you code against usb_cdcacm.h or any of the other internal APIs that usb_cdcacm.c relies on, you can expect significant breakage in the future.
No one expects to change the underlying code for cdcacm, But unless someone starts looking at this code we aren't going to get other usb classes (midi, mass storage, hid) developed. These should certainly have a different set of apis and the public libmaple API should developed with non cdc usb classes in mind.
As for the cdc-acm changes: Nice! Can we has a control message hook (vendor commands)?
Can we has a control message hook (vendor commands)?
Patches welcome ;)
You must log in to post.