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

Increase the USB speed by fixing synchronization waits in usb_write() #2145

Merged
merged 3 commits into from
Oct 24, 2023

Conversation

wh201906
Copy link
Contributor

@wh201906 wh201906 commented Oct 23, 2023

Transfer speed before this fix:
616448, 618496, 618496, 615424, 615424 -> average: 616857.6 bytes/s
Transfer speed after this fix:
707584, 709632, 707584, 709632, 710656 -> average: 709017.6 bytes/s (+14.9%)
722944, 733184, 732160, 731136, 733184 -> average: 730521.6 bytes/s (+18.4%)
Tested by running hw status

To make the full use of the ping-pong endpoint
Transfer speed before this fix:
616448,618496,618496,615424,615424->616857.6 bytes/s
Transfer speed after this fix:
707584,709632,707584,709632,710656->709017.6 bytes/s (+14.9%)
Tested by running hw status
Before:
708608,708608,707584,707584,708608->708198.4 bytes/s
After:
722944,733184,732160,731136,733184->730521.6 bytes/s

Added some note for ping-pong mode and non ping-pong mode
@iceman1001
Copy link
Collaborator

Awesome improvement,
Now I need to test :)

@iceman1001 iceman1001 merged commit eb44e40 into RfidResearchGroup:master Oct 24, 2023
12 checks passed
@wh201906 wh201906 deleted the usb_speed branch October 24, 2023 12:06
@iceman1001
Copy link
Collaborator

[#] Transfer Speed
[#]   Sending packets to client...
[#]   Time elapsed................... 500ms
[#]   Bytes transferred.............. 335872
[#]   Transfer Speed PM3 -> Client... 671744 bytes/s

Some nice improvements indeed!

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

Successfully merging this pull request may close these issues.

2 participants