Skip to content

This repository contains the source code of a Real-Time Application that I have created which enables Raspberry Pi devices to exchange messages and keep a limited history of those. C sockets based on TCP/IP and threading were used.

Notifications You must be signed in to change notification settings

Iasonaspg/Real-Time-Sockets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Real Time Sockets Application for embedded devices

Project Information

Using a Raspberry Pi Zero, our goal was to create a C application that uses sockets and threads and can interact with other Raspberry Pi's exchanging messages.

More specifically, by using the same SSID network, the devices will belong to the same network and can be searched using their gateway private IP.

Α client/server design was adopted on the same device. As a client, each device was searching for new connections whereas as a server, it accepted new connections. Every incoming and outgoing connection was handled by a new spawned thread. After the establishment of each connection, messages were exchanged and saved in a circular buffer. The general network was a Peer-To-Peer architecture.

The design of my implementation is shown in the following flow chart

Flow Chart

About

This repository contains the source code of a Real-Time Application that I have created which enables Raspberry Pi devices to exchange messages and keep a limited history of those. C sockets based on TCP/IP and threading were used.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages