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

Fix and improvements for Arduino Uno #10

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mnoriaki
Copy link

Could you check changes? The purpose of changes are

  1. fix: Cannot open Arduino Uno (ACM CDC),
  2. fix: Cannot upload (download) HEX file to Arduino Uno,
  3. improve performance for ACM CDC, and
  4. fix typo.

Thank you.

The time 1000ms is too long for Arduino Uno since the bootloader stops and starts a sketch after 1000ms pasts after the reset. The 1000ms varies since it is based on watch dog timer of ATmega328. Tested with Arduino Uno and Arduino Duemilanove.
It seems that mCdcAcmInterfaceNum should be the number of counted interface (intfNum) minus 1. Tested serial communication with Arduino Uno. I also tested with Mbed that a sample application can open the mbed serial interface. Not tested serial communication with Mbed.
When I used Physicaloid library with Arduino Uno, an application on an Android dropped some data from Arduino. Here is my changes,
o lock the ring-buffer mBuffer when it is read and written,
o reduce number of Nofity (onRead()) when small data is received,
o use a write buffer to reduce number of USB transaction when small data are written in short period.
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.

1 participant