Giter VIP home page Giter VIP logo

c1218_stack's Introduction

c1218_stack

Description: ANSI C12.18(2006) stack implement by C. It have been implement the needed services, and it can work in Linux.

First step: If you want it work in virtual PC, you must create two virtual serial ports at first.

Complie step: $ cmake . $ make

Usage: $ ./c1218_stack [-t <device|client>] -d /dev/ttyS0

c1218_stack's People

Contributors

alexshuang avatar

Stargazers

 avatar JipJapJeppe avatar Jie tang avatar Ignacio Gil avatar 沈晋鹏 avatar  avatar LHHT avatar xiuqingyao avatar  avatar  avatar

Watchers

xiuqingyao avatar  avatar  avatar

c1218_stack's Issues

Implementation far from complete

This has some of the simple serial port functions (as in initing a serial port, set baud rate). But no Ansi C12.18 table, or C12.18 packet tear apart/interpretation/disassembly functions. No packet assembly functions. No Ansi Table defs that would be needed. Doesn't have even the essential meter read function. Nor set time/date function for the meter. Nor Logon functions for the different types of logon. No read interval data functions. Doesn't even have a read of decade 0.

compile error

Hi,alex
The code looks elegance, I've never seen such a concise and efficient code.However, there are some details I can not understand,would you kindly give me one or two, sincerely hope to get your answer.
Firstly,the macro of container_of,using a novel way to call the struct,what is the function about and how to understand it.And when I make the code,there is a compile error happened,I try to modify the void to char,it works.

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.