FastSerial library purpose?

Hello All,

As I understand it, AVR MCU's have inbuilt serial support. I am unable to understand the purpose of the FastSerial library which is used by the OSD and the APM. Serial will work at the speed set using the baud rate. So what is fast here when we use this library? What is advantage if we use this library rather than the standard API's of arduino?
 
Thanks
Ravi

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • IT staff augmentation allows companies to access IT professionals with specific skills and expertise that may not be available in their existing internal team. Flexibility and Scalability: Organizations can quickly adjust their IT team size based on project requirements, ensuring that they have the right resources to handle various tasks and fluctuations in workloads. Cost-Effectiveness: Compared to hiring full-time employees, staff augmentation https://mlsdev.com/services/it-staff-augmentation can be more cost-effective as it eliminates expenses related to recruitment, onboarding, training, and benefits.
    IT Staff Augmentation Services | MLSDev
    Looking for IT staff augmentation? Hire remote IT specialists quickly and save up to 60% while keeping superior quality.
  • thanks
  • Developer

    I believe the standard serial library from Arduino is (or at least was) blocking.  so if you sent a bunch of bytes, your cpu would not be able to do other tasks until all bytes were sent.  The FastSerial library can send the bytes in the background.

     

    The only qualification is that I believe in Arduino 1.0 that they've enhanced the standard serial library to also be non-blocking so in the medium term we might be able to switch back to the standard library.

    • Hi Randy,  do you happen to know if the current Serial library for arduino is still blocking MCU for the time of serial communication, or has it been fixed?  I need to compile something for a Leonardo board and fast serial doesn't support it, but I still need non-blocking serial communication. 

      Thank you, 

      • Developer

        Artem,

             I haven't been keeping up with Arduino so I'm not sure if it's still blocking or not.  Sorry!

This reply was deleted.

Activity