Byte Stream Framing Responder Demo Program

../
Makefile  1563Jun 20 16:23:23 2020
README.txt  4135Jun 20 16:23:23 2020
client.c  2851Jun 20 16:23:23 2020
messages.h  1497Jun 20 16:23:23 2020
responder.c  8221Jun 20 16:23:23 2020

This project demonstrates how to write a FreeRTOS program that accepts and responds to stream framed commands on a serial port.

The program is decomposed into four FreeRTOS tasks, which communicate with each other via message queues:

Supported Targets

Other targets can be supported by defining the macro CONTROLPORT to select the serial port to receive commands from.

WiFi Test Setup

  1. Wire wrap the Arduino expansion serial port pins as described above.
  2. Install an ESP8266 Shield flashed with ESP-LINK firmware into the Arduino expansion headers.
  3. Configure the ESP-LINK firmware, following these instructions. The bridged serial port should be configured for 115200 baud.
  4. Compile the client test program with make client.
  5. Run the client test program with ./client <hostname<>.

Copyright:

Original works herein are copyrighted as follows:

Copyright (C)2016-2018, Philip Munts, President, Munts AM Corp.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above copyright notice,
  this list of conditions and the following disclaimer.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.

Redistributed works herein are copyrighted and/or licensed by their respective authors.


Questions or comments to Philip Munts phil@munts.net

I am available for custom system development (hardware and software) of products using ARM or other microcontrollers.