GithubHelp home page GithubHelp logo

flow_control_test's Introduction

flow control test with HW UART

This repo contains all data related to an issue where flow control is not working as expected.

On lines 9 & 10 of main.cpp the only change between the to scenarios is made. The two scenarios are:

1. flow control not enabled, inter char delay of 5ms

In this case all the settings are properly received by the Bluefriend UART module, but the transmission is much slower than it needs to be, because the baudrate is artificially slowed down.

2. flow control enabled

In this case everything works fine until the Bluefriend UART module pulls high its flow control pin to stop data from incoming. Unfortunately the library doesn't react to that and the command doesn't execute properly.

To demonstrate this, there are logic analyzer recordings in /logic_analyzer_data/ which can be opened with software from saleae: https://www.saleae.com/downloads

The screencap in /images/ shows that data is being sent to the Bluefruit (green), at some point the flow control pin goes high (red), but data keeps flowing out of the MCU. The relevant point in time is marked in yellow.

The test is being made with a teensy and a Bluefriend UART module with up to date firmware version 0.7.7 The library is installed very recently via platform-io, so I expect it to be up to date.

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.