当前位置:网站首页>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 .
边栏推荐
- Horizontal split of database
- Interface test
- LeetCode 练习——113. 路径总和 II
- IPv4套接字地址结构
- ORM -- grouping query, aggregation query, query set queryset object properties
- Finally, there is no need to change a line of code! Shardingsphere native driver comes out
- conda离线创建虚拟环境
- [ORM framework]
- Web3.0 series distributed storage IPFs
- Programming features of ISP, IAP, ICP, JTAG and SWD
猜你喜欢
Inno setup packaging and signing Guide
Pdf document signature Guide
The Hal library is configured with a general timer Tim to trigger ADC sampling, and then DMA is moved to the memory space.
Appx代码签名指南
串口通讯继电器-modbus通信上位机调试软件工具项目开发案例
How to cancel automatic saving of changes in sqlyog database
【学习笔记-李宏毅】GAN(生成对抗网络)全系列(一)
STM32 ADC and DMA
ORM--逻辑关系与&或;排序操作,更新记录操作,删除记录操作
Use of JSON extractor originals in JMeter
随机推荐
The new activity of "the arrival of twelve constellations and goddesses" was launched
Postman interface test IV
Google colab loads Google drive (Google drive is used in Google colab)
虚数j的物理意义
Embedded background - chip
反卷积通俗详细解析与nn.ConvTranspose2d重要参数解释
Appx代碼簽名指南
为什么安装mysql时starting service报错?(操作系统-windows)
电表远程抄表拉合闸操作命令指令
STM32 ADC and DMA
ORM model -- creation and query of data records
Why does the starting service report an error when installing MySQL? (operating system Windows)
Guide de signature du Code Appx
Fiddler break point
Bean 作⽤域和⽣命周期
Arcgis操作: 批量修改属性表
In addition to the objective reasons for overtime, what else is worth thinking about?
MongoDB创建一个隐式数据库用作练习
ORM--查询类型,关联查询
Deadlock caused by non clustered index in SQL Server