GithubHelp home page GithubHelp logo

dhblab_meta's Introduction

通讯流程

运行前准备

需求:\

  • python3.8
  • peewee: pip install peewee

服务端配置运行

  1. 配置主机$IP$地址与端口
    ./config/server.py中配置
    • ip:目标服务器地址
    • port:目标服务器端口
  2. 在项目目录打开命令行,运行服务端
    python server_start.py

客户端配置运行

  1. 配置服务端$IP$地址与端口
    ./config/client.py中配置
    • ip:目标服务器地址
    • port:目标服务器端口
  2. 配置客户端名称
    ./module/client/client.py23行配置
  3. 在项目目录打开命令行,运行服务端
    python client_start.py

如何使用

本项目的目的是让用户在忘记通讯的时候实现通讯,将复杂的通讯流程简化为简单的文件读取操作,用户不需要关心通讯过程的具体实现

配置本地通讯客户端通讯信息

目前只支持amr客户端,在
./config/client.py中配置

  • e_type:设备类型
  • e_number: 设备编号

向其他客户端发送数据

./storage/db/sqlite/dhblab_meta数据库文件中对应与设备类型e_type表与表中对应e_number的行中写入需要发送的数据内容

同步其他客户端发送的数据

./storage/db/sqlite/dhblab_meta数据库文件中读取数据内容

dhblab_meta's People

Contributors

rener2020 avatar

Watchers

 avatar

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.