Giter Site home page Giter Site logo

fast serialUSB read about arduinocore-sam HOT 10 OPEN

arduino avatar arduino commented on June 19, 2024
fast serialUSB read

from arduinocore-sam.

Comments (10)

facchinm avatar facchinm commented on June 19, 2024

Hi @sined23 ,
would you mind opening a proper PR ? So we can review easily 😄

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

Sorry, I don't know how to do it. You can review these new libraries and compare with existing
http://forum.arduino.cc/index.php?action=dlattach;topic=391757.0;attach=163027

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

if you have questions for changes pls ask

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

The main idea is that bytes are written and read into/from CDC buffer not one by one but block of bytes

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

Serial_::accept write into CDC buffer as maximum as possible (only to not overflow the buffer)
Serial_::readb (you can change just read, not use readb) get from CDC buffer as maximum as possible or nessasary length

and one more important thing: in USBD_Recv "while (n--) *dst++ = UDD_Recv8(ep & 0xF);" should be replaced into UDD_Recv(ep & 0xF, dst, len);

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

after that read speed is incredible increases !!!

from arduinocore-sam.

NicoHood avatar NicoHood commented on June 19, 2024

Fork the repo, do the changes, upload and open a pr. Its very simple, just learn some basic git commands (clone, add, commit, push).

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

created PR

from arduinocore-sam.

sined23 avatar sined23 commented on June 19, 2024

Hi guys! Do you plan to merge this PR?
arduino/Arduino#4871

from arduinocore-sam.

iddq avatar iddq commented on June 19, 2024

merged?

from arduinocore-sam.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.