Giter VIP home page Giter VIP logo

serialport's Introduction

SerialPort

串口通讯协议
//这里以40 NUM CMD XX XX XX XX SUM 0D为例
//帧头为:0x40
//NUM为:数据长度,即 CMD XX XX XX XX
//CMD为:命令字节
//XX XX XX XX:数据内容,IEEE754标准
//SUM为:校验和,一个字节
//帧尾为:0x0D
适用于51或STM32单片机,数据存储大小端问题已经考虑,自行查看;
可以进行双向收发,数据类型已包含1字节/2字节/4字节大小的无符号数,以及4字节大小的float型数据,可以自行扩展为其他;
数据缓冲区的大小可以自行调整,可以为32或64,不建议过小或过大.

serialport's People

Contributors

lihaolin123 avatar

Stargazers

 avatar  avatar  avatar

Forkers

xiaozhu0427

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.