Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: USB bulk transfer #6

Open
skintigh opened this issue Aug 1, 2022 · 3 comments
Open

Request: USB bulk transfer #6

skintigh opened this issue Aug 1, 2022 · 3 comments

Comments

@skintigh
Copy link

skintigh commented Aug 1, 2022

I'd like to modify a button so the badge can connect to a USB peripheral that appears as a "mass storage device" and then do a number of sequences of reads and writes of 16 or 31 bytes. I know the vendor/device IDs.

Are there any examples you could share or pointers you could give me around MSC or bulk transfers?

I see you've commented out a lot of code dealing with udi_msc. I assume undoing that is the first step, then finding/following examples.
Thanks!

@compukidmike
Copy link
Owner

I never played with the host mode, only device mode. In Microchip Studio, the ASF Wizard will allow you to add the necessary modules for USB host mode. The udc_stop() command should turn off the USB device mode so that you can re-configure the USB hardware for host mode. Good luck!

@skintigh
Copy link
Author

skintigh commented Aug 3, 2022

Do you have any hints on how to write raw data to USB?

I've gone through their docs and tried dozens of functions. They have 440 functions for reading/writing bytes to USB, and not a single working example nor description of required setup that I can find.

@compukidmike
Copy link
Owner

Unfortunately I don't, sorry. I just used the USB serial example and slightly modified it for my needs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants