Skip to content

This repository contains a collection of examples demonstrating the use of the libcsp (CubeSat Space Protocol) library in different configurations and communication setups.

Notifications You must be signed in to change notification settings

moonlight83340/libcsp_examples

Repository files navigation

CSP Examples

This repository contains a collection of examples demonstrating the use of the libcsp (CubeSat Space Protocol) library in different configurations and communication setups.

Each example focuses on a specific interface or feature of CSP, such as KISS over USART, CAN, ZMQ, or loopback, and is designed to be simple, minimal, and easy to understand.

Contents

libcsp_examples/
│
├── .github/ # GitHub workflows and CI/CD configurations
├── examples/
│   ├── can/ # Example using SocketCAN interface with virtual CAN (`vcan`).
│   ├── usart/ # Example using KISS protocol over virtual USART (e.g., `socat`) on Linux.
│   ├── rdp/ # Example showing usage of rdp with csp. (The example is using can interface)
│   └── rdp_crc32/ # Example showing usage of rdp & crc32 with csp. (The example is using can interface)
├── libcsp # Sub-module git for libcsp
├── options/ # The repository contain only a file to explain different option that can be used with csp.
├── utils/ # Utils for examples (csp_posix_helper)
└──

Requirements

  • A Linux system with development tools (e.g., gcc, make, cmake)
  • libcsp installed or available as a submodule
  • For some examples:
    • socat (for USART/KISS)
    • Virtual CAN support (modprobe vcan)
    • Python 3 (for some test clients/servers if provided)

Steps to Build

  1. Clone this repository:
git clone https://github.com/moonlight83340/libcsp_examples.git
cd libcsp_examples
  1. Initialize submodules:
git submodule update --init --recursive
  1. Build the project using CMake:
mkdir build && cd build
cmake ..
make

About

This repository contains a collection of examples demonstrating the use of the libcsp (CubeSat Space Protocol) library in different configurations and communication setups.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors