This is the code presented in Serial Communication With An Arduino In Linux With C (title is a work in progress), organized by chapter.