CN115567619A - Communication method and device and message queue telemetry transmission protocol client - Google Patents
Communication method and device and message queue telemetry transmission protocol client Download PDFInfo
- Publication number
- CN115567619A CN115567619A CN202110748452.8A CN202110748452A CN115567619A CN 115567619 A CN115567619 A CN 115567619A CN 202110748452 A CN202110748452 A CN 202110748452A CN 115567619 A CN115567619 A CN 115567619A
- Authority
- CN
- China
- Prior art keywords
- module
- target
- communication
- communication module
- mqtt
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000004891 communication Methods 0.000 title claims abstract description 199
- 230000006854 communication Effects 0.000 title claims abstract description 199
- 238000000034 method Methods 0.000 title claims abstract description 40
- 230000005540 biological transmission Effects 0.000 title claims abstract description 28
- 230000006870 function Effects 0.000 claims description 88
- 230000006978 adaptation Effects 0.000 claims description 59
- 230000004044 response Effects 0.000 claims description 24
- 238000005516 engineering process Methods 0.000 claims description 18
- 238000010295 mobile communication Methods 0.000 claims description 12
- 230000002093 peripheral effect Effects 0.000 claims description 9
- 238000010586 diagram Methods 0.000 description 10
- 230000008569 process Effects 0.000 description 8
- 238000011161 development Methods 0.000 description 3
- 238000012986 modification Methods 0.000 description 3
- 230000004048 modification Effects 0.000 description 3
- 238000004140 cleaning Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000001914 filtration Methods 0.000 description 2
- 230000003993 interaction Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000001360 synchronised effect Effects 0.000 description 2
- 230000002159 abnormal effect Effects 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000007175 bidirectional communication Effects 0.000 description 1
- 230000002457 bidirectional effect Effects 0.000 description 1
- 238000010276 construction Methods 0.000 description 1
- 230000006378 damage Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 238000005070 sampling Methods 0.000 description 1
- 238000002054 transplantation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/26—Special purpose or proprietary protocols or architectures
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L69/00—Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
- H04L69/18—Multiprotocol handlers, e.g. single devices capable of handling multiple protocols
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computing Systems (AREA)
- Communication Control (AREA)
- Computer And Data Communications (AREA)
Abstract
本申请提供了一种通信方法、装置和消息队列遥测传输协议客户端,涉及通信技术领域。所述方法应用于消息队列遥测传输协议MQTT客户端,所述MQTT客户端包括提示指令模组和多个通信模组,包括:获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;控制所述提示指令模组与所述目标通信模组进行通信。本申请的技术方案应用在多个通信模组的客户端上,通过第一参数信息确定对应的目标通信模组,可以直接实现与提示指令模组通信,解决了现有技术的MQTT客户端需要通过特定协议栈接口才能进行数据通信的弊端。
The application provides a communication method, device and message queue telemetry transmission protocol client, which relate to the technical field of communication. The method is applied to the MQTT client of the message queue telemetry transmission protocol. The MQTT client includes a prompt command module and a plurality of communication modules, including: obtaining first parameter information, and the first parameter information is used to determine the connection with the specified a target communication module for communicating with the prompt command module; and controlling the prompt command module to communicate with the target communication module. The technical solution of the present application is applied to the clients of multiple communication modules, and the corresponding target communication module is determined through the first parameter information, which can directly realize the communication with the prompt command module, which solves the needs of the MQTT client in the prior art The disadvantage of data communication through a specific protocol stack interface.
Description
技术领域technical field
本申请涉及通信技术领域,特别涉及一种通信方法、装置和消息队列遥测传输协议客户端。The present application relates to the technical field of communication, in particular to a communication method, device and message queue telemetry transmission protocol client.
背景技术Background technique
消息队列遥测传输协议(MQTT),作为一种低开销、低带宽占用的即时通讯协议在物联网嵌入式系统中有着广泛的应用。随着通信技术的不断发展,越来越多的厂商在通信模组中支持了MQTT协议,并提供提示(Attention,AT)指令集来控制通信模组通过MQTT协议连接至云平台及服务器。然而,因为不同型号的通信模组的AT指令集存在较大的差异,导致基于特定AT指令集开发的应用软件可移植性差,产品更新换代成本高。Message Queuing Telemetry Transport Protocol (MQTT), as a low-overhead, low-bandwidth instant messaging protocol, is widely used in embedded systems of the Internet of Things. With the continuous development of communication technology, more and more manufacturers support the MQTT protocol in the communication module, and provide Attention (AT) command set to control the communication module to connect to the cloud platform and server through the MQTT protocol. However, because the AT command sets of different types of communication modules are quite different, the portability of application software developed based on a specific AT command set is poor, and the cost of product replacement is high.
现有的一些嵌入式MQTT客户端实现方法的技术方案中,通常是通过封装通信模组中控制传输控制协议/因特网互联协议(Transmission Control Protocol/InternetProtocol;TCP/IP)功能的AT指令集为套接字接口,再在套接字接口的基础上实现MQTT协议及客户端。这些方案的不足之处在于需要用户在套接字的基础上实现MQTT协议及客户端,给用户网络应用的编写增加了负担。而且,MQTT协议及客户端的实现需要占用更多的资源,导致这些方案在资源紧张的嵌入式系统中难以应用。In some existing technical schemes for implementing methods for embedded MQTT clients, the AT command set that controls the Transmission Control Protocol/Internet Protocol (Transmission Control Protocol/Internet Protocol; TCP/IP) function in the communication module is usually used as a package. Socket interface, and then implement the MQTT protocol and client on the basis of the socket interface. The disadvantage of these solutions is that the user needs to implement the MQTT protocol and the client on the basis of the socket, which adds a burden to the writing of the user's network application. Moreover, the implementation of the MQTT protocol and the client needs to occupy more resources, making these solutions difficult to apply in resource-constrained embedded systems.
综上所述,现有技术的消息队列遥测传输协议客户端需要通过特定协议栈接口才能进行数据通信,而不能直接通过MQTT客户端直接与具有MQTT协议的通信模组进行通信,导致现有技术具有MQTT协议的通信模组可移植性差。To sum up, the message queue telemetry transmission protocol client in the prior art needs to communicate through a specific protocol stack interface, but cannot directly communicate with the communication module with the MQTT protocol through the MQTT client, resulting in the prior art Communication modules with MQTT protocol have poor portability.
发明内容Contents of the invention
本申请实施例提供一种通信方法、装置和消息队列遥测传输协议客户端,以解决现有技术的消息队列遥测传输协议客户端需要通过特定协议栈接口才能进行数据通信的问题。Embodiments of the present application provide a communication method, device, and message queue telemetry transmission protocol client to solve the problem in the prior art that the message queue telemetry transmission protocol client needs to use a specific protocol stack interface to perform data communication.
为了解决上述技术问题,本申请采用如下技术方案:In order to solve the above technical problems, the application adopts the following technical solutions:
本申请实施例提供一种通信方法,应用于消息队列遥测传输协议客户端,所述消息队列遥测传输服务器客户端包括提示指令模组和多个通信模组,包括:An embodiment of the present application provides a communication method, which is applied to a message queue telemetry transmission protocol client. The message queue telemetry transmission server client includes a prompt instruction module and multiple communication modules, including:
获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;Acquiring first parameter information, the first parameter information is used to determine the target communication module for communicating with the prompt instruction module;
控制所述提示指令模组与所述目标通信模组进行通信。Controlling the prompt instruction module to communicate with the target communication module.
可选的,所述通信模组能够使用第一类型通信协议和/或第二类型通信协议;Optionally, the communication module can use the first type of communication protocol and/or the second type of communication protocol;
所述第一类型通信协议包括:消息队列遥测传输协议;The first type of communication protocol includes: message queue telemetry transmission protocol;
所述第二类型通信协议包括以下至少一种:第三代移动通信技术、第三代移动通信技术、第三代移动通信技术、窄带物联网和无线通信技术。The second type of communication protocol includes at least one of the following: third-generation mobile communication technology, third-generation mobile communication technology, third-generation mobile communication technology, narrowband Internet of Things and wireless communication technology.
可选的,所述控制所述提示指令模组与所述目标通信模组进行通信,包括:Optionally, the controlling the prompt instruction module to communicate with the target communication module includes:
根据所述目标通信模组,确定与所述目标通信模组对应的目标适配函数;Determine a target adaptation function corresponding to the target communication module according to the target communication module;
根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信。According to the target adaptation function, the prompt instruction module is controlled to communicate with the target communication module.
可选的,在所述目标适配函数为执行指令函数的情况下,所述根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信,包括:Optionally, when the target adaptation function is an execution instruction function, the controlling the prompt instruction module to communicate with the target communication module according to the target adaptation function includes:
通过预设接口传输,控制所述提示指令模组与所述目标通信模组执行所述执行指令函数对应的操作;Controlling the prompt instruction module and the target communication module to perform operations corresponding to the execution instruction function through preset interface transmission;
其中,所述预设接口包括通用异步收发传输器接口、串行外设接口接口、或通用串行总线接口。Wherein, the preset interface includes a Universal Asynchronous Receiver Transmitter interface, a Serial Peripheral Interface interface, or a Universal Serial Bus interface.
可选的,在所述目标适配函数为接收指令函数的情况下,所述根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信,还包括:Optionally, in the case where the target adaptation function is a receiving instruction function, the controlling the prompt instruction module to communicate with the target communication module according to the target adaptation function further includes:
根据所述接收指令函数,控制所述提示指令模组接收所述目标通信模组发送的响应数据和/或主动上报数据;According to the receiving instruction function, control the prompt instruction module to receive the response data and/or actively report data sent by the target communication module;
其中,所述响应数据为所述目标通信模组执行至少一条所述目标适配函数后的响应数据;所述主动上报数据为所述目标通信模组数未执行所述目标适配函数的响应数据。Wherein, the response data is the response data after the target communication module executes at least one target adaptation function; the actively reported data is the response that the target communication module does not execute the target adaptation function data.
可选的,在所述目标适配函数为解析指令函数的情况下,所述根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信,还包括:Optionally, in the case where the target adaptation function is an analytic instruction function, the controlling the prompt instruction module to communicate with the target communication module according to the target adaptation function further includes:
根据所述解析指令函数,控制所述提示指令模组将接收的所述响应数据和/或所述主动上报数据进行解析。According to the parsing instruction function, the prompt instruction module is controlled to parse the received response data and/or the actively reported data.
可选的,所述多个通信模组配置在同一适配层。Optionally, the multiple communication modules are configured in the same adaptation layer.
可选的,所述方法还包括:Optionally, the method also includes:
通过所述目标通信模组,发送第一消息给消息队列遥测传输协议服务器,所述第一消息包括主题订阅消息和/或主题发布消息;Sending a first message to the message queue telemetry transmission protocol server through the target communication module, the first message including a topic subscription message and/or a topic publishing message;
通过所述目标通信模组,接收所述消息队列遥测传输协议服务器反馈的提示指令。The prompt instruction fed back by the message queue telemetry transmission protocol server is received through the target communication module.
本申请实施例还提供一种通信装置,应用于消息队列遥测传输协议客户端,所述客户端包括提示指令模组和多个通信模组,包括:The embodiment of the present application also provides a communication device, which is applied to the message queue telemetry transmission protocol client, and the client includes a prompt instruction module and a plurality of communication modules, including:
获取模块,用于获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;An acquisition module, configured to acquire first parameter information, and the first parameter information is used to determine a target communication module communicating with the prompt instruction module;
控制模块,用于控制所述提示指令模组与所述目标通信模组进行通信。A control module, configured to control the prompt instruction module to communicate with the target communication module.
本申请实施例还提供一种消息队列遥测传输协议客户端,包括:处理器、存储器及存储在所述存储器上并可在所述处理器上运行的程序,所述程序被所述处理器执行时实现如上所述的通信方法的步骤。The embodiment of the present application also provides a message queue telemetry transmission protocol client, including: a processor, a memory, and a program stored in the memory and operable on the processor, and the program is executed by the processor When implementing the steps of the above-mentioned communication method.
本申请实施例还提供一种可读存储介质,所述可读存储介质上存储有程序,所述程序被处理器执行时实现如上所述的通信方法的步骤。An embodiment of the present application further provides a readable storage medium, where a program is stored on the readable storage medium, and when the program is executed by a processor, the steps of the above-mentioned communication method are implemented.
本申请的有益效果是:The beneficial effect of this application is:
上述技术方案中,所述方法应用于消息队列遥测传输协议客户端,所述客户端包括提示指令模组和多个通信模组,包括:获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;控制所述提示指令模组与所述目标通信模组进行通信。本申请的技术方案通过第一参数信息确定对应的目标通信模组,可以直接实现与提示指令模组通信,解决了现有技术的客户端需要通过特定协议栈接口才能进行数据通信的弊端。In the above technical solution, the method is applied to the client of the message queue telemetry transmission protocol, and the client includes a prompt instruction module and a plurality of communication modules, including: acquiring first parameter information, which is used for Determine a target communication module to communicate with the prompt instruction module; control the prompt instruction module to communicate with the target communication module. The technical solution of the present application determines the corresponding target communication module through the first parameter information, can directly realize the communication with the prompt command module, and solves the disadvantage of the prior art that the client needs to communicate through a specific protocol stack interface.
附图说明Description of drawings
图1表示本申请实施例提供的MQTT客户端的系统示意图;Fig. 1 shows the system diagram of the MQTT client provided by the embodiment of the present application;
图2表示本申请实施例提供的通信方法的流程示意图;FIG. 2 shows a schematic flow diagram of a communication method provided in an embodiment of the present application;
图3表示本申请实施例提供的嵌入式系统及云平台的连接示意图;Fig. 3 represents the connection schematic diagram of the embedded system and cloud platform that the embodiment of the present application provides;
图4表示本申请实施例提供MQTT客户端实施例的工作流程图;Fig. 4 shows that the embodiment of the present application provides the working flowchart of MQTT client embodiment;
图5表示本申请实施例提供的通信装置的模块示意图。FIG. 5 shows a schematic diagram of modules of a communication device provided by an embodiment of the present application.
具体实施方式detailed description
为使本申请要解决的技术问题、技术方案和优点更加清楚,下面将结合附图及具体实施例进行详细描述。在下面的描述中,提供诸如具体的配置和组件的特定细节仅仅是为了帮助全面理解本申请的实施例。因此,本领域技术人员应该清楚,可以对这里描述的实施例进行各种改变和修改而不脱离本申请的范围和精神。另外,为了清楚和简洁,省略了对已知功能和构造的描述。In order to make the technical problems, technical solutions and advantages to be solved in this application clearer, the following will describe in detail with reference to the drawings and specific embodiments. In the following description, specific details, such as specific configurations and components, are provided only to help a comprehensive understanding of the embodiments of the present application. Accordingly, those of ordinary skill in the art should recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the application. Also, descriptions of well-known functions and constructions are omitted for clarity and conciseness.
应理解,说明书通篇中提到的“一个实施例”或“一实施例”意味着与实施例有关的特定特征、结构或特性包括在本申请的至少一个实施例中。因此,在整个说明书各处出现的“在一个实施例中”或“在一实施例中”未必一定指相同的实施例。此外,这些特定的特征、结构或特性可以任意适合的方式结合在一个或多个实施例中。It should be understood that reference throughout the specification to "one embodiment" or "an embodiment" means that a particular feature, structure, or characteristic related to the embodiment is included in at least one embodiment of the present application. Thus, appearances of "in one embodiment" or "in an embodiment" in various places throughout the specification are not necessarily referring to the same embodiment. Furthermore, the particular features, structures or characteristics may be combined in any suitable manner in one or more embodiments.
在本申请的各种实施例中,应理解,下述各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the order of execution, and the execution order of each process should be determined by its functions and internal logic, and should not be implemented in this application. The implementation of the examples constitutes no limitation.
本申请针对现有技术的消息队列遥测传输协议服务器客户端需要通过特定协议栈接口才能进行数据通信的问题,提供一种通信方法、装置和消息队列遥测传输协议客户端。This application aims at the problem that the server client of the message queue telemetry transmission protocol in the prior art can perform data communication only through a specific protocol stack interface, and provides a communication method, device and message queue telemetry transmission protocol client.
如图1所示,图1为消息队列遥测传输协议(MQTT)客户端系统图,所述MQTT客户端包括:MQTT客户端应用编程接口1,所述的MQTT应用编程接口2包括MQTT客户端创建、销毁、连接、订阅、发布、断开连接等编程接口,提供MQTT客户端应用开发的基本能力;多个通信模组2,如第一通信模组、第二通信模组和第三通信模组,三个通信模组均包括对应的适配函数;提示指令模组(AT指令模组)3,所述AT指令模组根据所述通信模组的适配函数,执行AT指令;进一步的,AT即Attention,AT指令是从终端设备(Terminal Equipment,TE)或者数据终端设备(Data Terminal Equipment,DTE)向终端适配器(Terminal Adapter,TA)或者数据电路终端设备(Data Circuit Terminal Equipment,DCE)发送的用于通信的指令;以及图中未显示的微控制器。在该系统图中,所述通信模组可以理解为具有MQTT协议的抽象层模组,每一抽象模组具有一种对应的适配函数。这里,将多个通信模组配置在同一MQTT通信模组适配层。下面的方法的实施例应用于该MQTT客户端系统图的内容。As shown in Figure 1, Figure 1 is a system diagram of the Message Queue Telemetry Transport Protocol (MQTT) client, the MQTT client includes: MQTT client
如图2所示,本申请实施例提供一种通信方法,应用于消息队列遥测传输协议MQTT客户端,所述MQTT客户端包括提示指令模组(AT指令模组)和多个通信模组,包括:As shown in Figure 2, the embodiment of the present application provides a communication method, which is applied to the message queue telemetry transmission protocol MQTT client, and the MQTT client includes a prompt command module (AT command module) and a plurality of communication modules, include:
步骤100,获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;
步骤200,控制所述提示指令模组与所述目标通信模组进行通信。
该实施例中,所述步骤100可以通过图1的MQTT客户端应用编程接口1获取第一参数信息,根据所述第一参数信息可以识别出对应的目标通信模组,并通过AT指令模块对所述目标通信模组进行控制,实现MQTT客户端通信的功能。In this embodiment, the
需要说明的是,所述MQTT客户端包括的多个通信模组均为抽象层模组,所述抽象层模组根据所述的第一参数识别出对应的目标适配函数,并调用对应所述目标适配函数,实现与AT指令模块的信息交互。It should be noted that the plurality of communication modules included in the MQTT client are all abstraction layer modules, and the abstraction layer module identifies the corresponding target adaptation function according to the first parameter, and calls the corresponding The target adaptation function is described to realize the information interaction with the AT command module.
应该知道的是,本申请中没有特殊解释的通信模组或者目标通信模组均理解为带有适配函数的抽象层模组。It should be known that communication modules or target communication modules that are not specifically explained in this application are understood as abstract layer modules with adaptation functions.
具体地,所述多个通信模组配置在同一适配层。Specifically, the multiple communication modules are configured on the same adaptation layer.
进一步的,所述适配层是已针对多个通信模组的应用编程接口进行适配的通信终端的集合,提供通过相应的AT指令集控制通信终端的能力。Further, the adaptation layer is a collection of communication terminals that have been adapted for the application programming interfaces of multiple communication modules, and provides the ability to control the communication terminals through the corresponding AT command set.
该实施例中,所述多个通信模组配置在同一适配层,也就是在同一适配层中配置了多种不同函数组合的通信模组,每个通信模组的适配函数是指通过执行特定AT指令的,每个通信模组的适配函数是匹配MQTT应用编程接口的功能、参数、返回值要求的函数。In this embodiment, the multiple communication modules are configured in the same adaptation layer, that is, communication modules with multiple different function combinations are configured in the same adaptation layer, and the adaptation function of each communication module refers to By executing specific AT commands, the adaptation function of each communication module is a function that matches the requirements of the function, parameters, and return value of the MQTT application programming interface.
具体地,所述通信模组能够使用第一类型通信协议和/或第二类型通信协议;Specifically, the communication module can use the first type of communication protocol and/or the second type of communication protocol;
所述第一类型通信协议包括:消息队列遥测传输协议MQTT;The first type of communication protocol includes: message queue telemetry transport protocol MQTT;
所述第二类型通信协议包括以下至少一种:第三代移动通信技术3G、第三代移动通信技术4G、第三代移动通信技术5G、窄带物联网NB-IoT和无线通信技术Wi-Fi。The second type of communication protocol includes at least one of the following: third-generation mobile communication technology 3G, third-generation mobile communication technology 4G, third-generation mobile communication technology 5G, narrowband Internet of Things NB-IoT and wireless communication technology Wi-Fi .
这里,所述通信模组使用第一类型通信协议,并通过所述AT指令模块通过至少一种第二类型通信协议,与实际的通信终端进行通信,省去了搭建TCP/IP网络协议栈的过程,实现了与具备第一类型通信协议和/或第二类型通信协议的通信终端进行通信的功能。Here, the communication module uses the first type of communication protocol, and communicates with the actual communication terminal through the AT instruction module through at least one second type of communication protocol, eliminating the need to build a TCP/IP network protocol stack. The process implements the function of communicating with a communication terminal equipped with the first type of communication protocol and/or the second type of communication protocol.
可选的,所述步骤200,包括:Optionally, the
步骤210,根据所述目标通信模组,确定与所述目标通信模组对应的目标适配函数;Step 210, according to the target communication module, determine the target adaptation function corresponding to the target communication module;
应该知道的是,所述目标适配函数指的是通过串口等硬件接口与通信模组通信的AT指令的集合。It should be known that the target adaptation function refers to a set of AT commands that communicate with the communication module through a hardware interface such as a serial port.
步骤220,根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信。Step 220: Control the prompt instruction module to communicate with the target communication module according to the target adaptation function.
该实施例中,通过所述目标通信模组确定的目标适配函数,可以通知所述提示指令模组与所述目标通信模组按照所述目标适配函数的指令进行通讯。这里,所述目标适配函数至少包括执行指令函数、接收指令函数和解析指令函数。根据每一种不同的指令函数,所述提示指令模组与所述目标通信模组的通信内容不同。In this embodiment, through the target adaptation function determined by the target communication module, the prompt instruction module can be notified to communicate with the target communication module according to the instruction of the target adaptation function. Here, the target adaptation function includes at least an execution instruction function, a reception instruction function and an analysis instruction function. According to each different instruction function, the communication content between the prompt instruction module and the target communication module is different.
具体地,在所述目标适配函数为执行指令函数的情况下,所述步骤220,包括:Specifically, in the case where the target adaptation function is an execution instruction function, the step 220 includes:
通过预设接口传输,控制所述提示指令模组与所述目标通信模组执行所述执行指令函数对应的操作;Controlling the prompt instruction module and the target communication module to perform operations corresponding to the execution instruction function through preset interface transmission;
其中,所述预设接口包括通用异步收发传输器UART接口、串行外设接口SPI接口、或通用串行总线USB接口。Wherein, the preset interface includes a Universal Asynchronous Receiver Transmitter UART interface, a Serial Peripheral Interface SPI interface, or a Universal Serial Bus USB interface.
该实施例中,所述MQTT客户端的硬件驱动层中设有所述预设接口,所述预设接口包括USB、SPI以及UART等其中一个或多个。In this embodiment, the hardware driver layer of the MQTT client is provided with the preset interface, and the preset interface includes one or more of USB, SPI, and UART.
这里,USB,全称为通用串行总线(Universal Serial Bus),是一种外部总线标准,用于规范电脑与外部设备的连接和通讯。SDIO,全称为安全数字输入输出卡(SecureDigital Input and Output),定义了一种外设接口,主要包括可移动和不可移动两类应用。SPI,全称为串行外设接口(Serial Peripheral Interface),是一种高速、全双工、同步的通信总线。I2C,全称为双向二线制同步串行总线(Inter-IntegratedCircuit),是一种只需要两根线即可在连接于总线上的器件之间传送信息的通信总线。UART,全称为通用异步收发传输器(Universal Asynchronous Receiver/Transmitter),是一种通用串行数据总线,用于异步通信,该总线双向通信,可以实现全双工传输和接收。Here, USB, the full name of Universal Serial Bus (Universal Serial Bus), is an external bus standard used to regulate the connection and communication between computers and external devices. SDIO, the full name of Secure Digital Input and Output Card (SecureDigital Input and Output), defines a peripheral interface, mainly including two types of applications, removable and non-removable. SPI, the full name of Serial Peripheral Interface (Serial Peripheral Interface), is a high-speed, full-duplex, synchronous communication bus. I2C, the full name of the bidirectional two-wire synchronous serial bus (Inter-Integrated Circuit), is a communication bus that only needs two wires to transmit information between devices connected to the bus. UART, the full name of Universal Asynchronous Receiver/Transmitter (Universal Asynchronous Receiver/Transmitter), is a universal serial data bus for asynchronous communication. The bus bidirectional communication can realize full-duplex transmission and reception.
通过上述所述预设接口,所述提示指令模组与所述目标通信模组之间可进行数据传输,实现了控制所述提示指令模组与所述目标通信模组之间的通信连接。Through the above-mentioned preset interface, data transmission can be performed between the prompt instruction module and the target communication module, and the communication connection between the prompt instruction module and the target communication module can be controlled.
具体地,在所述目标适配函数为接收指令函数的情况下,所述步骤220,包括:Specifically, in the case where the target adaptation function is a function of receiving an instruction, the step 220 includes:
根据所述接收指令函数,控制所述提示指令模组接收所述目标通信模组发送的响应数据和/或主动上报数据;According to the receiving instruction function, control the prompt instruction module to receive the response data and/or actively report data sent by the target communication module;
其中,所述响应数据为所述目标通信模组执行至少一条所述目标适配函数后的响应数据;所述主动上报数据为所述目标通信模组数未执行所述目标适配函数的响应数据。Wherein, the response data is the response data after the target communication module executes at least one target adaptation function; the actively reported data is the response that the target communication module does not execute the target adaptation function data.
该实施例中,可以根据接收所述目标通信模组发送的响应数据和/或主动上报数据进行解析或者数据清洗;这里,所述数据清洗包括:数据过滤,原始数据包括所述目标通信模组发送的响应数据和/或主动上报数据,过滤掉所述目标通信模组发送的响应数据;数据分类,主动上报数据包括心跳数据、所述目标通信模组的状态数据、告警数据等采样数据,可以确定本次通信是否异常。In this embodiment, parsing or data cleaning can be performed according to receiving the response data and/or actively reported data sent by the target communication module; here, the data cleaning includes: data filtering, the original data includes the target communication module Sending response data and/or actively reporting data, filtering out the response data sent by the target communication module; data classification, actively reporting data including sampling data such as heartbeat data, status data of the target communication module, and alarm data, It can be determined whether this communication is abnormal.
具体地,在所述目标适配函数为解析指令函数的情况下,所述步骤220,还包括:Specifically, in the case where the target adaptation function is an analytic instruction function, the step 220 further includes:
根据所述解析指令函数,控制所述提示指令模组将接收的所述响应数据和/或所述主动上报数据进行解析。According to the parsing instruction function, the prompt instruction module is controlled to parse the received response data and/or the actively reported data.
该实施例中,这里主要对数据进行解析,从而确定本次通信的结果。进一步的,所述解析指令函数将调用述提示指令模组将接收的所述响应数据和/或所述主动上报数据,并将AT指令解析模块的解析结果作为所述解析指令函数返回值的依据。In this embodiment, the data is mainly analyzed here, so as to determine the result of this communication. Further, the parsing command function will call the response data and/or the actively reported data that the prompt command module will receive, and use the parsing result of the AT command parsing module as the basis for the return value of the parsing command function .
可选的,所述方法还包括:Optionally, the method also includes:
步骤300,通过所述目标通信模组,发送第一消息给MQTT服务器,所述第一消息包括主题订阅消息和/或主题发布消息;Step 300, send a first message to the MQTT server through the target communication module, the first message includes a topic subscription message and/or a topic publishing message;
步骤400,通过所述目标通信模组,接收所述MQTT服务器反馈的提示指令。Step 400, through the target communication module, receive a prompt command fed back by the MQTT server.
该实施例中,在发送第一消息给MQTT服务器前,所述目标通信模组还需与所述MQTT服务器建立通信连接。下面以具体实施例解释步骤300-步骤400。In this embodiment, before sending the first message to the MQTT server, the target communication module needs to establish a communication connection with the MQTT server. Steps 300-400 are explained below with specific embodiments.
具体地,初始化MQTT客户端,调用MQTT客户端初始化接口,设置MQTT客户端的各类参数。MQTT客户端通过第一参数识别出需要调用第一目标模组初始化适配函数;第二步:连接MQTT代理(Broker),调用MQTT客户端连接接口;第三步:订阅MQTT主题,通过步骤300调用MQTT客户端订阅接口,或者,发布MQTT主题消息,调用MQTT客户端发布接口,实现通过所述第一消息进行主题订阅消息和/或主题发布消息;通过步骤400,接收所述MQTT服务器反馈的提示指令,根据所述反馈的提示指令执行相应的操作。即接收订阅的主题MQTT消息,目标通信模组按反馈的提示指令主动上报客户端订阅的主题的MQTT消息,MQTT客户端接收到MQTT消息,并执行对应的回调函数通知用户有订阅的消息到达并执行对应的处理。当然,若想断开连接,还可以通过所述目标通信模组,发送第二消息给MQTT服务器,所述第二消息包括断开与MQTT代理的连接。Specifically, initialize the MQTT client, call the MQTT client initialization interface, and set various parameters of the MQTT client. The MQTT client identifies the need to call the first target module initialization adaptation function through the first parameter; the second step: connect to the MQTT agent (Broker), and call the MQTT client connection interface; the third step: subscribe to the MQTT topic, and pass step 300 Call the MQTT client subscription interface, or publish the MQTT topic message, call the MQTT client publishing interface, and implement the topic subscription message and/or topic publishing message through the first message; through step 400, receive the feedback from the MQTT server A prompt instruction, performing a corresponding operation according to the feedback prompt instruction. That is to receive the subscribed topic MQTT message, the target communication module actively reports the MQTT message of the topic subscribed by the client according to the feedback prompt command, the MQTT client receives the MQTT message, and executes the corresponding callback function to notify the user that the subscribed message arrives and Execute the corresponding processing. Of course, if you want to disconnect, you can also send a second message to the MQTT server through the target communication module, and the second message includes disconnecting from the MQTT agent.
综上所述,本申请的方法通过直接调用通信模组中控制MQTT相关功能的AT指令集来实现MQTT客户端通信交互,避免需要额外移植或实现MQTT协议的负担;本申请的通信模组适配层来实现对多种AT指令集的兼容,屏蔽不同通信模组之间AT指令集的差异,提高了应用程序的开发。本申请避免了中间套接字适配层和MQTT协议的实现,轻量简洁,更适用于资源紧张的物联网嵌入式系统中。To sum up, the method of this application implements MQTT client communication interaction by directly invoking the AT instruction set that controls MQTT-related functions in the communication module, avoiding the need for additional transplantation or the burden of implementing the MQTT protocol; the communication module of this application is suitable for Layer matching to achieve compatibility with multiple AT command sets, shielding the differences in AT command sets between different communication modules, and improving the development of applications. This application avoids the implementation of the intermediate socket adaptation layer and the MQTT protocol, is lightweight and concise, and is more suitable for embedded systems of the Internet of Things with tight resources.
在一具体实施例中,如图3所示,图3表示一种嵌入式系统及云平台的连接示意图,所述嵌入式系统包括:MQTT客户端4、实际通信模组5和其他外设及传感器6;所述MQTT客户端4的结构在图1所示的客户端的基础上,连接有应用程序(可以理解为云平台应用程序)和操作系统;所述实际通信模组5与所述MQTT客户端4的通信模组进行通信。在嵌入式系统中,通过调用所述MQTT客户端4的MQTT客户端应用编程接口获取应用程序的信息,通过其他相关接口,获取所述其他外设及传感器6的数据,再将获取到的数据通过所述的MQTT客户端4发布至云平台7上并订阅相关的主题(Topic)来获取其他终端设备发布的数据。In a specific embodiment, as shown in Figure 3, Figure 3 represents a connection schematic diagram of an embedded system and cloud platform, the embedded system includes: MQTT client 4, actual communication module 5 and other peripherals and
具体地,通过图4说明所述MQTT客户端实施例的工作流程图,这里,以使用ML302模组为例说明所述MQTT客户端实施例的工作流程,但本发明兼容不同AT指令集的通信模组,不限于此:Specifically, the work flow diagram of the MQTT client embodiment is illustrated by Fig. 4. Here, the work flow of the MQTT client embodiment is described by using the ML302 module as an example, but the present invention is compatible with communication of different AT command sets Mods, not limited to:
第一步:MQTT客户端初始化,调用MQTT客户端初始化接口,设置MQTT客户端的各类参数。MQTT客户端通过第一参数信息识别出需要调用ML302模组初始化适配函数,适配函数执行第一AT指令。所述第一AT指令为:Step 1: Initialize the MQTT client, call the MQTT client initialization interface, and set various parameters of the MQTT client. The MQTT client recognizes the need to call the ML302 module initialization adaptation function through the first parameter information, and the adaptation function executes the first AT command. The first AT command is:
“AT+MQTTCFG=<host>,<port>,<id>,<keepAlive>,<user>,<passwd>,<"AT+MQTTCFG=<host>,<port>,<id>,<keepAlive>,<user>,<passwd>,<
clean>,<version>,<encrypt>”。clean>,<version>,<encrypt>".
第二步:MQTT客户端连接,调用MQTT客户端连接接口,在本实施例中MQTT连接为预设云平台。通过第一参数信息识别出对应的适配函数并执行第二AT指令。所述第二AT指令为:Step 2: MQTT client connection, calling the MQTT client connection interface, in this embodiment, the MQTT connection is the default cloud platform. The corresponding adaptation function is identified through the first parameter information and the second AT command is executed. The second AT command is:
“AT+MQTTOPEN=<usrFlag>,<pwdFlag>,<willFlag>,<willRetain>,<will"AT+MQTTOPEN=<usrFlag>,<pwdFlag>,<willFlag>,<willRetain>,<will
Qos>,<will-topic>,<will-mesg>”。Qos>,<will-topic>,<will-mesg>".
第三步:MQTT客户端订阅(主题订阅),调用MQTT客户端订阅接口,通过第一参数信息识别出对应的适配函数执行第三AT指令“AT+MQTTSUB=<topic>,<qos>”。Step 3: MQTT client subscription (topic subscription), calling the MQTT client subscription interface, identifying the corresponding adaptation function through the first parameter information and executing the third AT command "AT+MQTTSUB=<topic>,<qos>" .
第四步:MQTT客户端订阅(主题发布),调用MQTT客户端发布接口,通过第一参数信息识别出对应的适配函数执行第四AT指令。Step 4: The MQTT client subscribes (topic publishing), calls the MQTT client publishing interface, identifies the corresponding adaptation function through the first parameter information, and executes the fourth AT command.
第四AT指令为:“AT+MQTTPUB=<topic>,<qos>,<retain>,<dup>,<message>”;The fourth AT command is: "AT+MQTTPUB=<topic>,<qos>,<retain>,<dup>,<message>";
第五步:MQTT客户端接收订阅的主题MQTT消息,通信模组按第五AT指令主动上报客户端订阅的主题的MQTT消息。Step 5: The MQTT client receives the subscribed topic MQTT message, and the communication module actively reports the MQTT message of the topic subscribed by the client according to the fifth AT command.
第五AT指令为:The fifth AT command is:
“+MQTTPUBLISH:<dup>,<qos>,<retained>,<packId>,<topic>,<msg_le"+MQTTPUBLISH:<dup>,<qos>,<retained>,<packId>,<topic>,<msg_le
n>,<mesg>”;n>,<mesg>”;
MQTT客户端接收到MQTT消息,并执行对应的回调函数通知用户有订阅的消息到达并执行对应的处理。The MQTT client receives the MQTT message, and executes the corresponding callback function to notify the user of the arrival of the subscribed message and executes the corresponding processing.
第六步:MQTT客户端断开连接;即断开与云平台的连接,调用MQTT客户端断开连接接口,通过第一参数信息识别出对应的适配函数执行“AT+MQTTDISC”的AT指令。Step 6: The MQTT client disconnects; that is, disconnects from the cloud platform, calls the MQTT client disconnect interface, identifies the corresponding adaptation function through the first parameter information, and executes the AT command of "AT+MQTTDISC" .
这里,本申请实施例仅以一种通信模组举例而言,本申请支持能够使用第一类型通信协议和/或第二类型通信协议的多个通信模组的通信,实现了通信模组与MQTT客户端的直接通信。Here, the embodiment of the present application only takes one kind of communication module as an example. The present application supports the communication of multiple communication modules that can use the first type of communication protocol and/or the second type of communication protocol, and realizes the communication between the communication module and Direct communication with MQTT clients.
如图5所示,本申请实施例还提供一种通信装置,应用于消息队列遥测传输协议MQTT客户端,所述MQTT客户端包括提示指令模组和多个通信模组,包括:As shown in Figure 5, the embodiment of the present application also provides a communication device, which is applied to the MQTT client of the message queue telemetry transmission protocol, and the MQTT client includes a prompt instruction module and a plurality of communication modules, including:
获取模块10,用于获取第一参数信息,所述第一参数信息用于确定与所述提示指令模组进行通信的目标通信模组;An
控制模块20,用于控制所述提示指令模组与所述目标通信模组进行通信。The
需要说明的是,所述通信模组能够使用第一类型通信协议和/或第二类型通信协议;It should be noted that the communication module can use the first type of communication protocol and/or the second type of communication protocol;
所述第一类型通信协议包括:消息队列遥测传输协议MQTT;The first type of communication protocol includes: message queue telemetry transport protocol MQTT;
所述第二类型通信协议包括以下至少一种:第三代移动通信技术3G、第三代移动通信技术4G、第三代移动通信技术5G、窄带物联网NB-IoT和无线通信技术Wi-Fi。The second type of communication protocol includes at least one of the following: third-generation mobile communication technology 3G, third-generation mobile communication technology 4G, third-generation mobile communication technology 5G, narrowband Internet of Things NB-IoT and wireless communication technology Wi-Fi .
可选的,所述控制模块20,包括:Optionally, the
第一确定单元,用于根据所述目标通信模组,确定与所述目标通信模组对应的目标适配函数;A first determining unit, configured to determine a target adaptation function corresponding to the target communication module according to the target communication module;
第一控制单元,用于根据所述目标适配函数,控制所述提示指令模组与所述目标通信模组进行通信。A first control unit, configured to control the prompt instruction module to communicate with the target communication module according to the target adaptation function.
可选的,所述第一控制单元,包括:Optionally, the first control unit includes:
第一控制子单元,用于通过预设接口传输,控制所述提示指令模组与所述目标通信模组执行所述执行指令函数对应的操作;The first control subunit is configured to control the prompt instruction module and the target communication module to execute the operation corresponding to the execution instruction function through transmission through a preset interface;
其中,所述预设接口包括通用异步收发传输器UART接口、串行外设接口SPI接口、或通用串行总线USB接口。Wherein, the preset interface includes a Universal Asynchronous Receiver Transmitter UART interface, a Serial Peripheral Interface SPI interface, or a Universal Serial Bus USB interface.
可选的,所述第一控制单元,包括:Optionally, the first control unit includes:
第二控制子单元,用于根据所述接收指令函数,控制所述提示指令模组接收所述目标通信模组发送的响应数据和/或主动上报数据;The second control subunit is configured to control the prompt instruction module to receive the response data and/or actively report data sent by the target communication module according to the instruction receiving function;
其中,所述响应数据为所述目标通信模组执行至少一条所述目标适配函数后的响应数据;所述主动上报数据为所述目标通信模组数未执行所述目标适配函数的响应数据。Wherein, the response data is the response data after the target communication module executes at least one of the target adaptation functions; the actively reported data is the response that the target communication module does not execute the target adaptation function data.
可选的,所述第一控制单元,还包括:Optionally, the first control unit also includes:
第三控制子单元,用于根据所述解析指令函数,控制所述提示指令模组将接收的所述响应数据和/或所述主动上报数据进行解析。The third control subunit is configured to control the prompt instruction module to analyze the received response data and/or the actively reported data according to the analysis instruction function.
还需要说明的是,所述多个通信模组配置在同一适配层。It should also be noted that the multiple communication modules are configured on the same adaptation layer.
可选的,所述装置还包括:Optionally, the device also includes:
发送模块,用于通过所述目标通信模组,发送第一消息给MQTT服务器,所述第一消息包括主题订阅消息和/或主题发布消息;A sending module, configured to send a first message to the MQTT server through the target communication module, where the first message includes a topic subscription message and/or a topic publishing message;
接收模块,用于通过所述目标通信模组,接收所述MQTT服务器反馈的提示指令。The receiving module is configured to receive the prompt instruction fed back by the MQTT server through the target communication module.
本申请实施例还提供一种消息队列遥测传输协议(MQTT)客户端,包括:处理器,存储器及存储在所述存储器上并可在处理器上运行的程序,该程序被处理器执行时实现如上所述的通信方法的实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。The embodiment of the present application also provides a Message Queue Telemetry Transport Protocol (MQTT) client, including: a processor, a memory, and a program stored on the memory and operable on the processor, and the program is implemented when executed by the processor. The various processes of the embodiments of the above-mentioned communication method can achieve the same technical effect, so in order to avoid repetition, details are not repeated here.
本申请实施例还提供一种可读存储介质,该可读存储介质上存储有程序,该程序被处理器执行时实现如上所述的通信方法的实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,该可读存储介质,如只读存储器(Read-Only Memory,简称ROM)、随机存取存储器(Random Access Memory,简称RAM)、磁碟或者光盘等。The embodiment of the present application also provides a readable storage medium, on which a program is stored. When the program is executed by the processor, the various processes of the above-mentioned communication method embodiments are realized, and the same technology can be achieved. Effect, in order to avoid repetition, will not repeat them here. Wherein, the readable storage medium is, for example, a read-only memory (Read-Only Memory, ROM for short), a random access memory (Random Access Memory, RAM for short), a magnetic disk or an optical disk, and the like.
最后,还需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者终端设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。Finally, it should also be noted that in this text, relational terms such as first and second etc. are only used to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations, any such actual relationship or order exists. Furthermore, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article, or terminal equipment comprising a set of elements includes not only those elements, but also includes elements not expressly listed. Other elements mentioned above, or also include elements inherent in such process, method, article or equipment. Without further limitations, an element defined by the phrase "comprising a ..." does not exclude the presence of additional identical elements in the process, method, article or apparatus comprising said element.
以上所述的是本申请的优选实施方式,应当指出对于本技术领域的普通人员来说,在不脱离本申请所述的原理前提下还可以作出若干改进和润饰,这些改进和润饰也在本申请的保护范围内。What is described above is the preferred embodiment of the present application. It should be pointed out that for those skilled in the art, some improvements and modifications can be made without departing from the principles described in the application. These improvements and modifications are also described in this application. within the scope of protection applied for.
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110748452.8A CN115567619B (en) | 2021-07-01 | 2021-07-01 | Communication method, device and message queue telemetry transport protocol client |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202110748452.8A CN115567619B (en) | 2021-07-01 | 2021-07-01 | Communication method, device and message queue telemetry transport protocol client |
Publications (2)
Publication Number | Publication Date |
---|---|
CN115567619A true CN115567619A (en) | 2023-01-03 |
CN115567619B CN115567619B (en) | 2024-12-31 |
Family
ID=84737030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202110748452.8A Active CN115567619B (en) | 2021-07-01 | 2021-07-01 | Communication method, device and message queue telemetry transport protocol client |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115567619B (en) |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202309736U (en) * | 2011-10-25 | 2012-07-04 | 康才畯 | Intelligent terminal of Internet of things |
CN207541442U (en) * | 2017-09-29 | 2018-06-26 | 嘉兴天控信息科技有限公司 | A kind of intelligent acquisition control system based on MQTT transport protocols |
CN112333237A (en) * | 2020-09-30 | 2021-02-05 | 宇龙计算机通信科技(深圳)有限公司 | 5G industrial module and electronic equipment |
GB202105097D0 (en) * | 2021-04-09 | 2021-05-26 | Vodafone Group Services Ltd | Secure sensor data distribution |
-
2021
- 2021-07-01 CN CN202110748452.8A patent/CN115567619B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN202309736U (en) * | 2011-10-25 | 2012-07-04 | 康才畯 | Intelligent terminal of Internet of things |
CN207541442U (en) * | 2017-09-29 | 2018-06-26 | 嘉兴天控信息科技有限公司 | A kind of intelligent acquisition control system based on MQTT transport protocols |
CN112333237A (en) * | 2020-09-30 | 2021-02-05 | 宇龙计算机通信科技(深圳)有限公司 | 5G industrial module and electronic equipment |
GB202105097D0 (en) * | 2021-04-09 | 2021-05-26 | Vodafone Group Services Ltd | Secure sensor data distribution |
Non-Patent Citations (4)
Title |
---|
KHALED SALAH MOHAMED: "IoT Networking and Communication Layer", Retrieved from the Internet <URL:https://link.springer.com/chapter/10.1007/978-3-030-18133-8_3> * |
佚名: "BMG8200智慧路灯杆网关", Retrieved from the Internet <URL:http://1500536942.spaces.eepw.com.cn/articles/article/item/197278> * |
白昊;屈军锁;孙阳;占伟;: "基于串口转WiFi的物联网终端远程控制实现方法", 计算机测量与控制, no. 01, 25 January 2017 (2017-01-25) * |
谭宸;孙小进;姜楠;郭朋飞;: "基于MQTT协议的战场环境监测系统", 单片机与嵌入式系统应用, no. 03, 1 March 2020 (2020-03-01) * |
Also Published As
Publication number | Publication date |
---|---|
CN115567619B (en) | 2024-12-31 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2019205907A1 (en) | Intelligent device communication platform based on mqtt message protocol | |
US20050209842A1 (en) | Remote USB port system and method | |
WO2022262465A1 (en) | Opc ua-based centralized user configuration method and system for time sensitive network | |
CN105763619B (en) | The method and device that client and server-side are communicated | |
EP2854376A1 (en) | Transmission method, device and system for media stream | |
CN113806116A (en) | Protocol stack data transmission method based on Linux system, computer equipment and storage medium | |
CN105429858A (en) | A method of real-time message transmission among multi-robots | |
US10594768B2 (en) | Method and apparatus of performing remote command dispatching | |
WO2014067311A1 (en) | Resource subscription method and device | |
US20180262560A1 (en) | Method and system for transmitting communication data | |
CN106302536B (en) | Method and device for communication among all-in-one machines and multiple systems based on switch | |
CN110808948A (en) | Remote procedure call method, device and system | |
CN110166378B (en) | Communication system and method for debugging and maintaining distribution network terminal | |
CN110557321B (en) | An information transmission method, network device and terminal | |
CN115567619A (en) | Communication method and device and message queue telemetry transmission protocol client | |
WO2011127707A1 (en) | Universal driving method and driver of mobile broadband device | |
CN101465783B (en) | Connection method, device and connection network bridge for isomery household network appliances | |
CN112395242A (en) | Multi-chip control method, device, electronic equipment and computer readable storage medium | |
CN101931620B (en) | Service implementation method and system, service capability server | |
CN113992740B (en) | Middleware based on autonomous control and data transmission method | |
CN113885816A (en) | Method, system, device and storage medium for printing by virtual printing device | |
WO2012051840A1 (en) | Protocol stack system for simple mail transfer protocol (smtp) and implementation method thereof | |
KR20020033219A (en) | Method for materializing connection-oriented socket interface | |
CN117135011B (en) | Method for adapting gateway to multiple cloud platforms based on MQTT communication and gateway system | |
CN112511636A (en) | Data transmission system, method, device, computer equipment and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |