All Projects → EnAccess → Cicada-FW

EnAccess / Cicada-FW

Licence: MIT License
IoT Communications Module for Energy Access. An easy way to get production ready, bi-directional communications for your IoT embedded device. Proiect supported by the EnAccess Foundation - https://enaccess.org

Programming Languages

C++
36643 projects - #6 most used programming language
Meson
512 projects
c
50402 projects - #5 most used programming language

Projects that are alternatives of or similar to Cicada-FW

Blinker Library
An IoT Solution,Blinker library for embedded hardware. Works with Arduino, ESP8266, ESP32.
Stars: ✭ 1,095 (+9025%)
Mutual labels:  mqtt, esp8266, embedded, wifi
Platformio Core
PlatformIO is a professional collaborative platform for embedded development 👽 A place where Developers and Teams have true Freedom! No more vendor lock-in!
Stars: ✭ 5,539 (+46058.33%)
Mutual labels:  esp8266, embedded, mbed, freertos
Blynk Library
Blynk library for embedded hardware. Works with Arduino, ESP8266, Raspberry Pi, Intel Edison/Galileo, LinkIt ONE, Particle Core/Photon, Energia, ARM mbed, etc.
Stars: ✭ 3,305 (+27441.67%)
Mutual labels:  esp8266, embedded, mbed, wifi
Esp Mqtt Json Multisensor
(OBSOLETE) ESP MQTT JSON Multisensor for Home Assistant. Supported sensors include the TEMT6000 light, AM312 PIR, DHT22 temperature/humidity sensors. RGB led supports flash, fade, and transition. Over-The-Air (OTA) uploading, too!
Stars: ✭ 323 (+2591.67%)
Mutual labels:  mqtt, esp8266, wifi
Heatpump
Arduino library to control Mitsubishi Heat Pumps via connector cn105
Stars: ✭ 327 (+2625%)
Mutual labels:  mqtt, esp8266, wifi
Esphelper
A library to make using WiFi & MQTT on the ESP8266 easy.
Stars: ✭ 310 (+2483.33%)
Mutual labels:  mqtt, esp8266, wifi
Sming
Sming - Open Source framework for high efficiency native ESP8266 development
Stars: ✭ 1,197 (+9875%)
Mutual labels:  esp8266, embedded, wifi
Blinker Py
Blinker python library for hardware. Works with Raspberry Pi, Banan Pi, Linux devices
Stars: ✭ 680 (+5566.67%)
Mutual labels:  mqtt, embedded, wifi
Mqtt via esp01
TCP/UDP Applicaton for UNO/MEGA/STM32 using ESP8266's AT firmware.
Stars: ✭ 23 (+91.67%)
Mutual labels:  mqtt, esp8266, wifi
Blinker Doc
blinker中文文档
Stars: ✭ 139 (+1058.33%)
Mutual labels:  mqtt, esp8266, wifi
Awtrix1.0
(Outdated) Smart RGB Matrix Clock
Stars: ✭ 99 (+725%)
Mutual labels:  mqtt, esp8266, wifi
Espmqttclient
Wifi and MQTT handling for ESP8266 and ESP32
Stars: ✭ 169 (+1308.33%)
Mutual labels:  mqtt, esp8266, wifi
swifitch-software
Software for SWIFITCH HW
Stars: ✭ 12 (+0%)
Mutual labels:  mqtt, esp8266, wifi
Esp8266 aliyun mqtt app
基于ESP8266官方SDK快速接入阿里云物联网平台
Stars: ✭ 81 (+575%)
Mutual labels:  mqtt, esp8266, wifi
Pjon
PJON (Padded Jittering Operative Network) is an experimental, arduino-compatible, multi-master, multi-media network protocol.
Stars: ✭ 2,615 (+21691.67%)
Mutual labels:  mqtt, esp8266, embedded
SnorkTracker
GPS IoT tracker board for scanning gps and environment information and sending this to a MQTT server via GPRS.
Stars: ✭ 38 (+216.67%)
Mutual labels:  mqtt, esp8266, gprs
RetroWiFiModem
An ESP8266 based RS232 <-> WiFi modem with Hayes AT style commands and LED indicators
Stars: ✭ 65 (+441.67%)
Mutual labels:  esp8266, wifi
low-power-wifi
Experiments in low-power-wifi on esp8266, esp32, and ...
Stars: ✭ 35 (+191.67%)
Mutual labels:  esp8266, wifi
STM32 Base Project
STM32 Base project with a lot of stuff
Stars: ✭ 58 (+383.33%)
Mutual labels:  embedded, freertos
ESP8266 mqtts
Arduino IDE project: send data from DS18B20 temperature sensor to mqtt.flespi.io via MQTT over SSL.
Stars: ✭ 16 (+33.33%)
Mutual labels:  mqtt, esp8266

Cicada - IoT Communications Module for Energy Access

An easy way to get production ready, bi-directional communications for your IoT embedded device.

This repository contains the source code for UART drivers, 2G, 3G, 4G modems (and wifi in the future). This library is platform agnostic, designed to be portable - including examples for mbed, FreeRTOS, or bare metal.

Cicada uses the MQTT protocol to connect to the cloud but it can be used for general IP communication as well.

Dialing up the cellular modem, opening an IP channel and sending a MQTT packet can be done in less than 50 lines of code.

It's easy to add support for a new microcontroller or embedded os. There is also support for Unix (Linux, OS X) to test code on a PC without the need of having access to actual microcontroller hardware.

Supported UARTs:

  • STM32F1
  • Mbed
  • Unix (Linux / OS X) termios

Supported communication modules:

  • Simcom SIM7x00
  • Simcom SIM800
  • Espressif modules with AT Firmware V1.7 or V2.1

Documentation

View the hosted Doxygen here.

Build and test

Build toolchain

  • Meson + Ninja

Unit tests

  • CppUnit

Build setup

To setup build dependencies, do: git submodule init git submodule update

Native build (for testing an a host PC):

Run meson <builddirectory> to generate build files. Finally, change to the builddirectory and run ninja.

Cross build (for microcontrollers):

Run meson <builddirectory> --cross-file <crossfile>

Example: meson stm32build --cross-file stm32.cross.build

Getting started

The following code shows a simple example for STM32 which dials up the modem, connects to a host and sends an MQTT packet:

int main(int argc, char* argv[])
{
    // System configuration for microcontroller
    System_Config();

    // Set up serial port
    Stm32Uart serial(UART4, GPIOC);

    // Set up modem driver, replace this with the driver you want
    Sim7x00CommDevice commDev(serial);

    // Set up task scheduler to call the modem driver's run() function
    Task* taskList[] = {&commDev, NULL};
    Scheduler s(&eTickFunction, taskList);

    // Set up MQTT client
    BlockingCommDevice bld(commDev, eTickFunction, yieldFunction, &s);
    MQTT::Client<BlockingCommDevice, MQTTCountdown> client =
        MQTT::Client<BlockingCommDevice, MQTTCountdown>(bld);

    // Dial up modem and connect to IP host
    commDev.setApn("internet");
    commDev.setHostPort("test.mosquitto.org", 1883);
    commDev.connect();
    while (!commDev.isConnected()) {
        yieldFunction(&s);
    }

    // Connect MQTT client
    MQTTPacket_connectData data = MQTTPacket_connectData_initializer;
    data.MQTTVersion = 3;
    data.clientID.cstring = (char*)"enaccess";
    client.connect(data);

    // Send a message
    MQTT::Message message;
    message.qos = MQTT::QOS0;
    message.payload = (void*)"Hello World!";
    message.payloadlen = 13;
    client.publish("enaccess/test", message);

    // Disconnect everything
    client.disconnect();
    commDev.disconnect();
    while (!commDev.isIdle()) {
        yieldFunction(&s);
    }
}

See examples/ directory for full example code.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].