当前位置:网站首页>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 .
边栏推荐
- Chris Lattner, père de llvm: Pourquoi reconstruire le logiciel d'infrastructure ai
- 搭建物联网硬件通信技术几种方案
- ORM模型--关联字段,抽象模型类
- ISP、IAP、ICP、JTAG、SWD的编程特点
- Deconvolution popular detailed analysis and nn Convtranspose2d important parameter interpretation
- CONDA creates virtual environment offline
- ES6中的函數進階學習
- STM32 ADC and DMA
- STM32中AHB总线_APB2总线_APB1总线这些是什么
- AHB bus in stm32_ Apb2 bus_ Apb1 bus what are these
猜你喜欢
Postman interface test V
Arcgis操作: 批量修改属性表
The method of word automatically generating directory
Methods of adding centerlines and centerlines in SolidWorks drawings
China's first electronic audio category "Yamano electronic audio" digital collection is on sale!
Smart city construction based on GIS 3D visualization technology
ORM model -- associated fields, abstract model classes
Official media attention! The list of top 100 domestic digital collection platforms was released, and the industry accelerated the healthy development of compliance
嵌入式背景知识-芯片
Fiddler break point
随机推荐
Inno setup packaging and signing Guide
The combination of over clause and aggregate function in SQL Server
ES6中的函数进阶学习
Some thoughts on the testing work in the process of R & D
能源路由器入门必读:面向能源互联网的架构和功能
Differences between MCU and MPU
Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT
Finally, there is no need to change a line of code! Shardingsphere native driver comes out
Google Colab装载Google Drive(Google Colab中使用Google Drive)
ORM model -- creation and query of data records
【acwing】786. 第k个数
【学习笔记-李宏毅】GAN(生成对抗网络)全系列(一)
ArcGIS operation: batch modify attribute table
MCU与MPU的区别
LLVM之父Chris Lattner:為什麼我們要重建AI基礎設施軟件
China's first electronic audio category "Yamano electronic audio" digital collection is on sale!
EasyExcel读取写入简单使用
Bit operation ==c language 2
HAL库配置通用定时器TIM触发ADC采样,然后DMA搬运到内存空间。
Wallys/IPQ6010 (IPQ6018 FAMILY) EMBEDDED BOARD WITH ON-BOARD WIFI DUAL BAND DUAL CONCURRENT