Git Product home page Git Product logo

beuth-mude-esp32-tcm310-transceiver's Introduction

EnOcean Library for Arduino

EnOcean Library for Arduino is a library of EnOcean Serial Protocol 3 (ESP3) Parser for Arduino. EnOcean Shield (TCM310) can be used to easily acquire EnOcean wireless communication data.

Description

This library can analyze ESP3 received by Esp32 RX2 (UART2) and acquire R-ORG, Originator ID, Data (Payload) as arguments of the set callback function. It supports the following EnOcean protocols.

  • ESP3 Packet Type 1: RADIO_ERP1
  • EEP: RPS, 1BS, 4BS
  • CRC8 check is omitted (TODO)
  • Data via Repeater is not supported.

Demo

Sample program: SimpleDisplay

The wireless data received by EnOcean Shield (TCM310) is displayed on the serial monitor.

Demo

VS. DolphinView

  • SimpleDisplay is a simple function version of Dolphin View
  • DolphinView is used in Windows, while SimpleDisplay is used in Arduino environment.

Requirement

  • Platform IO latest

Install

  • For other than Esp32, the installed library conflicts with the existing Arduino library, so comment out "ISR (USART_RX_vect)" in [Arduino installation folder] \ hardware \ arduino \ avr \ cores \ arduino \ HardwareSerial0.cpp
  • In this library, USART reception completion interrupt processing: ISR (USART_RX_vect) is added to avoid missing received data.

Comment out example:

  #if 0  // Add
  #if defined(USART_RX_vect)
    ISR(USART\_RX\_vect)
  #elif defined(USART0_RX_vect)
    ISR(USART0_RX_vect)
  #elif defined(USART_RXC_vect)
    ISR(USART_RXC_vect) // ATmega8
  #else
    #error "Don't know what the Data Received vector is called for Serial"
  #endif
    {
      Serial._rx_complete_irq();
    }
  #endif  // Add

beuth-mude-esp32-tcm310-transceiver's People

Contributors

pdt590 avatar

Stargazers

 avatar

Watchers

 avatar  avatar

beuth-mude-esp32-tcm310-transceiver's Issues

SerialCommunication.cpp:19:22: error: 'UART2' was not declared in this scope

.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp: In function 'void enocean_uart_intr_handle(void*)':
.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp:19:22: error: 'UART2' was not declared in this scope
#define ENOCEAN_UART UART2
^~~~~
.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp:38:17: note: in expansion of macro 'ENOCEAN_UART'
rx_fifo_len = ENOCEAN_UART.status.rxfifo_cnt; // read number of bytes in UART buffer
^~~~~~~~~~~~
.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp:55:44: error: 'UART_RXFIFO_FULL_INT_CLR' was not declared in this scope
uart_clear_intr_status(ENOCEAN_UART_NUM, UART_RXFIFO_FULL_INT_CLR | UART_RXFIFO_TOUT_INT_CLR);
^~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/az-delivery-devkit-v4/FrameworkArduino/Esp.cpp.o
.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp:55:44: note: suggested alternative: 'UART_FIFO_LEN'
uart_clear_intr_status(ENOCEAN_UART_NUM, UART_RXFIFO_FULL_INT_CLR | UART_RXFIFO_TOUT_INT_CLR);
^~~~~~~~~~~~~~~~~~~~~~~~
UART_FIFO_LEN
.pio/libdeps/az-delivery-devkit-v4/Enocean/src/EnOcean/SerialCommunication.cpp:55:71: error: 'UART_RXFIFO_TOUT_INT_CLR' was not declared in this scope
uart_clear_intr_status(ENOCEAN_UART_NUM, UART_RXFIFO_FULL_INT_CLR | UART_RXFIFO_TOUT_INT_CLR);
^~~~~~~~~~~~~~~~~~~~~~~~
Compiling .pio/build/az-delivery-devkit-v4/FrameworkArduino/FirmwareMSC.cpp.o
Compiling .pio/build/az-delivery-devkit-v4/FrameworkArduino/FunctionalInterrupt.cpp.o
*** [.pio/build/az-delivery-devkit-v4/lib9ac/Enocean/EnOcean/SerialCommunication.cpp.o] Error 1
======================= [FAILED] Took 7.03 seconds ===========================

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.