Home » Raspberry Pi System Programming for Beginner by Agus Kurniawan
Raspberry Pi System Programming for Beginner Agus Kurniawan

Raspberry Pi System Programming for Beginner

Agus Kurniawan

Published April 25th 2014
ISBN :
Kindle Edition
168 pages
Enter the sum

 About the Book 

This book helps how to learn system programming on Raspberry Pi using C language and core system libraries. Several code samples are provided for ease of understanding about system programming.**TOC**1. Preparing Development Environment1.1MoreThis book helps how to learn system programming on Raspberry Pi using C language and core system libraries. Several code samples are provided for ease of understanding about system programming.**TOC**1. Preparing Development Environment1.1 Raspberry Pi1.2 Compiler and Development Tools1.3 Hello World2. File I/O2.1 Opening and Closing File2.1.1 open() and close()2.1.2 creat()2.1.3 Creating a New File2.2 Reading Data from File2.3 Writing Data into File2.4 Appending Data Into File2.5 Truncating Files2.6 Copying File2.7 Seeking3. Buffered I/O3.1 Opening and Closing File3.2 Reading Data File3.2.1 fgetc()3.2.2 fgets()3.3 Writing Data File3.3.1 fputc()3.3.2 fputs()3.4 Binary File3.4.1 Writing Binary Data3.4.2 Reading Binary Data3.5 Seeking4. Process4.1 Process ID4.2 Running Process4.3 Terminating Process4.4 Creating Child Process5. Threading5.1 Creating Thread5.2 Thread ID5.3 Terminating Thread5.3.1 Terminating Itself5.3.2 Terminating Others5.4 Joining Thread5.5 Thread Mutex5.6 Condition Variables5.6.1 Signaling5.6.2 Broadcasting6. Interprocess Communication6.1 Pipe6.1.1 popen()6.1.2 pipe()6.2 FIFOs6.2.1 FIFO Server6.2.2 FIFO Client6.2.3 Running6.3 Message Queues6.3.1 Message Queue Sender6.3.2 Message Queue Receiver6.3.3 Executing6.3.4 Removing Message Queue6.4 Shared Memory6.4.1 Server6.4.2 Client6.4.3 Running6.4.3 Removing Shared Memory7. Socket Programming7.1 Getting Local Hostname7.2 Creating and Connecting7.2.1 Server7.2.2 Client7.2.3 Testing7.3 Data Transfer7.3.1 Server7.3.2 Client7.3.3 Testing7.4 Datagram Socket7.4.1 Server7.4.2 Client7.4.3 Testing7.5 Case Study: Building Client-Server with Multi Clients7.5.1 Server7.5.2 Client7.5.3 Testing7.6 Case Study: Socket with HTTP Protocol7.6.1 HTTP Get7.6.2 HTTP Post8. Serial Communication8.1 Working with Serial Port8.2 Arduino for Target Serial Port8.3 Attaching Arduino to Raspberry Pi8.4 Reading Serial Communication8.4.1 Arduino Program8.4.2 Reading Application8.4.3 Testing8.5 Writing Data to Serial Port8.5.1 Arduino Program8.5.2 Writing Application8.5.3 Testing9. GPIO9.1 Review GPIO9.2 GPIO Libraries9.2.1 BCM2835 C library9.2.2 WiringPi9.3 Reading Data from GPIO9.3.1 Arduino as Digital Source9.3.2 Implementing with BCM2835 C library9.3.3 Implementing with WiringPi