Skip to content

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