Giter VIP home page Giter VIP logo

wsn's People

Contributors

nackirem avatar tangruijie avatar

Watchers

 avatar

wsn's Issues

网络传输模块

将采集到的数据以尽量低的丢包率发送到基站节点。在传感器收集到采集的数据之后,通知传输模块,模块向指定的节点(这个部分不用调用者传参应该通过节点的id直接确定)发送包含感知信息的包,如果失败则重发,直至成功(与传感器模块之间的接口应该是一个异步接口)。另外还应该为广播实现一个可靠传输的功能,在收到设置信息时应该能够反复向两个节点发送设置信号直至传递成功

传感器信号发送协议实现

向上提供接口:sendData, dataArrived
在这个模块的基础上构建要求中说到的0号(只负责发送采集到的数据)和1号节点(除了发送自己采集到的数据还要发送0号采集的数据)以及基站(将收到的信息发送给串口)
模块内部保留一个队列,当调用sendData时实际是将data放置在队列中,通过发送任务对数据进行发送

命令传输协议实现

实现基站和节点的命令传输协议
当基站收到发送命令的调用时,向所有节点广播命令数据包,节点收到后返回ack,如果一定时间内有节点没有返回数据包,则基站节点重传命令。
需要一个0,1序列号来区分当前命令和上一个命令

PC端用户接口

接受串口传递过来的数据,将其展示给用户。用户通过该接口设定采集时间时,通知串口模块该设置消息

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.