当前位置:网站首页>Several schemes of building hardware communication technology of Internet of things
Several schemes of building hardware communication technology of Internet of things
2022-07-07 10:18:00 【Always pay money】
First of all, we realize that the final result is :APP Or applet or website can receive data reported by hardware in real time ,APP Or applet or website can operate and control hardware devices .
Scheme 1 Use MQTT Technical realization
Buy your own servers , Set up on the server MQTT, Background technology development MQTT, Implement publish and subscribe . When the hardware side develops connection communication , Also use mqtt Implement publish and subscribe , This requires the hardware side to write code ,APP Or websites or applets should also realize publishing and subscription functions . As shown in the figure below
Option two Hardware not developed MQTT, Use TCP Way to connect to the user , Send and receive data directly to the server or hardware
Hardware is about hardware development , Bring their own wifi or WIFI turn 4G、2G、5G Connect to our own server . Hardware and server adopt TCP Two-way communication . Then build it on our server MQTT, Background program development MQTT The client implements the subscription and publish subscription program to connect to the third-party platform MQTT, For example, Alibaba cloud Internet of things platform 、 Tencent Internet of things platform , They are all based on MQTT A platform for pattern development , our APP、 Applet 、 Website , Just go through MQTT Subscription and publish subscription can be completed The communication , As shown in the figure below
Option three
The hardware is transmitted to the server , You need to install... On the server Swoole, This allows you to use TCP and Websocket service , Of course, we also need to install MQTT service . Hardware and server are through TCP signal communication ,TCP After receiving the data , Execute release ,websocket Execute subscription message , Finally through websocket Send in real time APP Or the applet or website shows . Again APP Or applet website through websocket Communication sends relevant control instructions to the server ,websocket Execute publishing after receiving data ,TCP Subscribe to news over there , In by TCP Send instructions to control hardware , As shown below .
Option four Hardware needs to be developed MQTT agreement function , Directly connect to the third-party platform , For example, Alibaba cloud Internet of things platform or Tencent Internet of things platform MQTT .APP Directly publish or receive message subscriptions , You can receive data , Control hardware equipment .
边栏推荐
- LLVM之父Chris Lattner:为什么我们要重建AI基础设施软件
- 【二开】【JeecgBoot】修改分页参数
- The combination of over clause and aggregate function in SQL Server
- Es classes and objects, prototypes
- Delete a record in the table in pl/sql by mistake, and the recovery method
- The Himalaya web version will pop up after each pause. It is recommended to download the client solution
- Win10安装VS2015
- Pdf document signature Guide
- STM32基础知识—内存映射
- mysql插入数据创建触发器填充uuid字段值
猜你喜欢
Web3.0 series distributed storage IPFs
ORM模型--数据记录的创建操作,查询操作
The physical meaning of imaginary number J
Word自动生成目录的方法
request对象对请求体,请求头参数的解析
[learning notes - Li Hongyi] Gan (generation of confrontation network) full series (I)
SQLyog数据库怎么取消自动保存更改
mysql插入数据创建触发器填充uuid字段值
ORM--查询类型,关联查询
LeetCode 练习——113. 路径总和 II
随机推荐
ORM -- logical relation and & or; Sort operation, update record operation, delete record operation
Smart city construction based on GIS 3D visualization technology
Three years after graduation
Can I open a stock trading account online? Is it safe
学习记录——高精度加法和乘法
ORM model -- creation and query of data records
MongoDB创建一个隐式数据库用作练习
Interface test
PDF文档签名指南
This article explains the complex relationship between MCU, arm, muc, DSP, FPGA and embedded system
Using keras in tensorflow to build convolutional neural network
运用tensorflow中的keras搭建卷积神经网络
ORM -- query type, association query
The new activity of "the arrival of twelve constellations and goddesses" was launched
Appx代码签名指南
ORM -- database addition, deletion, modification and query operation logic
Horizontal split of database
IPv4 socket address structure
STM32产品介绍
Chris Lattner, père de llvm: Pourquoi reconstruire le logiciel d'infrastructure ai