WO2018209554A1 - Apparatus for accessing third-party platform protocol - Google Patents

Apparatus for accessing third-party platform protocol Download PDF

Info

Publication number
WO2018209554A1
WO2018209554A1 PCT/CN2017/084526 CN2017084526W WO2018209554A1 WO 2018209554 A1 WO2018209554 A1 WO 2018209554A1 CN 2017084526 W CN2017084526 W CN 2017084526W WO 2018209554 A1 WO2018209554 A1 WO 2018209554A1
Authority
WO
WIPO (PCT)
Prior art keywords
module
extended application
application module
management
party platform
Prior art date
Application number
PCT/CN2017/084526
Other languages
French (fr)
Chinese (zh)
Inventor
周玉涛
Original Assignee
深圳中兴力维技术有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 深圳中兴力维技术有限公司 filed Critical 深圳中兴力维技术有限公司
Priority to PCT/CN2017/084526 priority Critical patent/WO2018209554A1/en
Publication of WO2018209554A1 publication Critical patent/WO2018209554A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the present invention relates to the field of power environment monitoring technologies, and in particular, to a device for accessing a third-party platform protocol.
  • the power environment monitoring system is an important means of network operation and maintenance. It is deployed in the collection terminal of the equipment room and the base station to monitor the on-site environment and power equipment, and send the monitoring data to the monitoring center. Monitor data for analysis and processing. When an abnormality such as a fault occurs, the system generates an alarm and informs the operation and maintenance personnel to go to the site for maintenance.
  • the main object of the present invention is to provide an apparatus for accessing a third-party platform protocol, which aims to solve how to access a new or third-party communication protocol based on an existing device without adding an existing device system.
  • the load of the architecture and the technical problems of the functional modules of the existing equipment can be well utilized.
  • a first aspect of an embodiment of the present invention provides a device for accessing a third-party platform protocol.
  • the device includes a main application module and an extended application module
  • the main application module includes a data collection unit, a first protocol processing unit, and an extended application interaction unit.
  • the extended application module includes a main application interaction unit and a second protocol processing unit.
  • the data collection unit is configured to collect input data of the smart device
  • the first protocol processing unit is configured to acquire an input data acquisition instruction sent by the main application interaction unit by using the extended application interaction unit, and acquire the data collection unit according to the input acquisition instruction.
  • the collected input data is fed back to the main application interaction unit; and is further configured to acquire, by using the extended application interaction unit, a control command sent by the main application interaction unit, and control data according to the acquired control command. Feedback to the main application interaction unit;
  • the second protocol processing unit is configured to acquire input data and control data fed back by the first protocol processing unit by using the main application interaction unit, and perform third-party platform protocol according to the input data and control data that are fed back. Process it.
  • the device further includes a data communication module and a configuration module;
  • the first protocol processing unit is further configured to communicate with the configuration module by using the data communication module;
  • the configuration module is configured to send, by using the data communication module, the extended application module command and the delete extended application module command to the first protocol processing unit;
  • the second protocol processing unit is further configured to communicate with a third-party platform by using the data communication module
  • the manner in which the first protocol processing unit communicates with the configuration module by using the data communication module includes one of the following: a TCP client, a TCP server, a UDP, and a serial port.
  • the main application module further includes an extended application management module
  • the extended application management module is configured to perform startup management and detection management on the extended application module, and is further configured to obtain, from the first protocol processing unit, a download extended application module command sent by the configuration module, The extended application module command is deleted, and the extended application module is subjected to download management and deletion management according to the download extended application module command and the delete extended application module command.
  • the extended application module further includes an operation management module
  • the operation management module is configured to acquire deletion management information of the extended application management module, and exit the operation according to the obtained deletion management information.
  • the extended application management module is further configured to acquire extended application version information sent by the main application interaction unit by using the extended application interaction unit, and perform the extended application module according to the extended application version information. Start management.
  • the extended application module further includes an initialization management module
  • the initialization management module is used for initializing management of the extended application module.
  • the main application module further includes a first data buffer;
  • the first data buffer is configured to store input data collected by the data collection unit.
  • the extended application module further includes a second data buffer
  • the second data buffer is configured to acquire and store the input data fed back by the first protocol processing unit by using the main application interaction unit.
  • the input data includes an analog input and a digital input
  • the control command includes an analog output control command and a digital output control command.
  • the apparatus for accessing the third-party platform protocol provided by the embodiment of the present invention can quickly access the third-party platform protocol by expanding the application module.
  • the configuration module can enable the extended application module to start, detect, and dynamically Deploy and delete management; it does not increase the burden of the architecture, simple and efficient.
  • FIG. 1 is a schematic structural diagram of an apparatus for accessing a third-party platform protocol according to an embodiment of the present invention
  • FIG. 2 is another schematic structural diagram of an apparatus for accessing a third-party platform protocol according to an embodiment of the present invention.
  • an embodiment of the present invention provides an apparatus for accessing a third-party platform protocol, where the apparatus includes a main application module 10 and an extended application module 20;
  • the main application module 10 includes a data collection unit 101, a first protocol processing unit 102, and an extended application interaction unit 103.
  • the extended application module 20 includes a main application interaction unit 201 and a second protocol processing unit 202.
  • the data collection unit 101 is configured to collect input data of the smart device.
  • the input data includes an analog input (AI) and a digital input (DI).
  • AI analog input
  • DI digital input
  • the main application module 10 further includes a first data buffer 105; the first data buffer 105 is used to store input data collected by the data collection unit 101.
  • the first protocol processing unit 102 is configured to acquire the main application interaction unit by using the extended application interaction unit 103.
  • An input data acquisition instruction sent by the data acquisition unit 101 is obtained according to the input acquisition instruction, and the obtained input data is fed back to the main application interaction unit 201.
  • the main application interaction unit is also obtained by the extended application interaction unit 103.
  • the control command sent by 201 returns the control data to the main application interaction unit 201 according to the acquired control command.
  • the second protocol processing unit 202 is configured to acquire the first protocol processing unit 10 by using the main application interaction unit 201.
  • the extended application module 20 further includes a second data buffer 205;
  • the second data buffer 205 is configured to acquire and store the input data fed back by the first protocol processing unit 102 through the main application interaction unit 201.
  • control commands include an analog output (AO) control command and a digital output (DO).
  • AO analog output
  • DO digital output
  • the device further includes a data communication module 30 and a first protocol processing unit 102 of the configuration module 4, and is further configured to communicate with the configuration module 40 through the data communication module 30;
  • the manner in which the first protocol processing unit 102 communicates with the configuration module 40 through the data communication module 30 includes one of the following: TCP (Transmission Control Protocol) client, TCP (Transmission Control)
  • Protocol Transmission Control Protocol
  • UDP User Datagram Protocol
  • the configuration module 40 is configured to send, by using the data communication module 30, the download extension application module command and the delete extension application module command to the first protocol processing unit 102.
  • the second protocol processing unit 202 is further configured to communicate with the third-party platform through the data communication module 30.
  • the data communication module 30 of the main application module 10 and the extended application module 20 is a shared module.
  • the main application module 10 further includes an extended application management module 104;
  • the extended application management module 104 is configured to perform the startup management and the detection management on the extended application module 20, and is further configured to obtain, from the first protocol processing unit 102, the download extended application module command and the delete extension delivered by the configuration module 40.
  • the application module command performs download management and deletion management on the extended application module 20 according to the download extended application module command and the delete extended application module command.
  • the extended application management module 104 is further configured to obtain the extended application version information sent by the main application interaction unit 201 through the extended application interaction unit 103, and perform the startup management on the extended application module 20 according to the extended application version information.
  • the step of the main application module launching the extended application module may be as follows: First, setting the directory where the extended application module is located has execution permission, if the directory does not exist, creating it, and then traversing the directory every time Files, check whether it meets the extended application module execution file name specification, if it is satisfied that it finds an extended application module, add it to the extended application module management queue, and then check if the extended application is running, if it is not running Then start it.
  • the steps of the main application module detecting the extended application module may be as follows: Line, each execution will check the extended application module in the extended application module management queue to see if it is running, and if it is not running, start it.
  • the configuration module can download the extended application module command to the main application module, and the download includes the extended application module execution file and the configuration file of the same name.
  • the extended application module will take effect immediately after it has been activated.
  • the extended application module 20 further includes an operation management module 203;
  • the operation management module 203 is configured to acquire deletion management information of the extended application management module 104, and exit the operation according to the acquired deletion management information.
  • the configuration module sends a command to the main application module, and then the first protocol processing unit parses the call.
  • the extended application management module searches whether the extended application module to be deleted in the extended application module management queue is running according to the name, and if it is running, sends a message to notify the extended application module to prepare to exit, and slightly delays the application to be extended to complete the exit preparation (release After the occupied resource is executed, the forced exit command is executed, then the extended application module execution file and the configuration file are deleted, and the extended application module is deleted from the management queue.
  • the extended application module 20 further includes an initialization management module 204;
  • the initialization management module 204 is configured to extend initialization management of the application module 20.
  • the initialization includes initialization of the operating parameters, the data communication module, and the operation management message.
  • the running parameter is obtained by reading the XML configuration file with the same name as the execution file.
  • the configuration module obtains the XML format configuration file directly from the directory where the extended application module is located by FTP, and then can view, edit, modify and save to The XML file is then downloaded to the directory where the extended application module is located by FTP.
  • the apparatus for accessing the third-party platform protocol can quickly access the third-party platform protocol by extending the application module.
  • the main application module can start and detect the extended application module by using the configuration module. , dynamic deployment and deletion management; does not increase the burden of the architecture, simple and efficient.
  • the apparatus for accessing the third-party platform protocol provided by the embodiment of the present invention can quickly access the third-party platform protocol by expanding the application module.
  • the main application module can start and detect the extended application module by using the configuration module. , dynamic deployment and deletion management; does not increase the burden of the architecture, simple and efficient. Therefore, it has industrial applicability.

Abstract

Disclosed in the present invention is an apparatus for accessing a third-party platform protocol. The apparatus comprises a main application module and an expanded application module. The main application module comprises a data collection unit, a first protocol processing unit, and an expanded application interaction unit. The expanded application module comprises a main application interaction unit and a second protocol processing unit. In the apparatus for accessing a third-party platform protocol disclosed in the present invention, a third-party platform protocol can be quickly accessed by means of the expanded application module. By means of a configuration module, the main application module can start, detect, dynamically deploy and delete the expanded application module in management. The burden of the architecture is not increased, and simplicity and high efficiency are achieved.

Description

技术领域  Technical field
[0001] 本发明涉及动力环境监控技术领域, 尤其涉及一种接入第三方平台协议的装置 背景技术  [0001] The present invention relates to the field of power environment monitoring technologies, and in particular, to a device for accessing a third-party platform protocol.
[0002] 动力环境监控系统是网络运维的一种重要手段, 通过部署在机房、 基站的采集 终端, 对现场环境和动力设备进行监控, 并把监控数据上送到监控中心, 由监 控中心对监控数据进行分析和处理。 当出现故障等异常吋, 系统产生告警, 通 知运维人员赴现场检修。  [0002] The power environment monitoring system is an important means of network operation and maintenance. It is deployed in the collection terminal of the equipment room and the base station to monitor the on-site environment and power equipment, and send the monitoring data to the monitoring center. Monitor data for analysis and processing. When an abnormality such as a fault occurs, the system generates an alarm and informs the operation and maintenance personnel to go to the site for maintenance.
[0003] 动力环境监控设备产商众多, 各产商所幵发生产的设备协议各不相同, 即使是 同一产商, 不同吋期幵发的设备, 其协议也可能不尽相同; 因此, 如何在现有 设备的基础上接入新的或者第三方的通信协议, 又不增加现有设备系统架构的 负荷并且能够很好地利用现有设备的功能模块, 是生产厂商所关注的事项。 技术问题  [0003] There are many manufacturers of power environment monitoring equipment, and the equipment agreements issued by each manufacturer are different. Even the same manufacturer and different equipments may have different agreements; therefore, how It is a concern of the manufacturer to access a new or third-party communication protocol based on the existing equipment without increasing the load of the existing equipment system architecture and making good use of the functional modules of the existing equipment. technical problem
[0004] 本发明的主要目的在于提出一种接入第三方平台协议的装置, 旨在解决如何在 现有设备的基础上接入新的或者第三方的通信协议, 又不增加现有设备系统架 构的负荷并且能够很好地利用现有设备的功能模块的技术问题。  [0004] The main object of the present invention is to provide an apparatus for accessing a third-party platform protocol, which aims to solve how to access a new or third-party communication protocol based on an existing device without adding an existing device system. The load of the architecture and the technical problems of the functional modules of the existing equipment can be well utilized.
问题的解决方案  Problem solution
技术解决方案  Technical solution
[0005] 为实现上述目的, 本发明实施例第一方面提供一种接入第三方平台协议的装置 [0005] In order to achieve the above object, a first aspect of an embodiment of the present invention provides a device for accessing a third-party platform protocol.
, 该装置包括主应用模块和扩展应用模块; The device includes a main application module and an extended application module;
[0006] 其中, 所述主应用模块包括数据采集单元、 第一协议处理单元及扩展应用交互 单元; 所述扩展应用模块包括主应用交互单元和第二协议处理单元; [0006] The main application module includes a data collection unit, a first protocol processing unit, and an extended application interaction unit. The extended application module includes a main application interaction unit and a second protocol processing unit.
[0007] 所述数据采集单元, 用于采集智能设备的输入数据; [0007] the data collection unit is configured to collect input data of the smart device;
[0008] 所述第一协议处理单元, 用于通过所述扩展应用交互单元获取所述主应用交互 单元发送的输入数据获取指令, 根据所述输入获取指令获取所述数据采集单元 采集的输入数据, 将获取到的输入数据反馈给所述主应用交互单元; 还用于通 过所述扩展应用交互单元获取所述主应用交互单元发送的控制命令, 根据获取 的控制命令将控制数据反馈给所述主应用交互单元; [0008] the first protocol processing unit is configured to acquire an input data acquisition instruction sent by the main application interaction unit by using the extended application interaction unit, and acquire the data collection unit according to the input acquisition instruction. The collected input data is fed back to the main application interaction unit; and is further configured to acquire, by using the extended application interaction unit, a control command sent by the main application interaction unit, and control data according to the acquired control command. Feedback to the main application interaction unit;
[0009] 所述第二协议处理单元, 用于通过所述主应用交互单元获取所述第一协议处理 单元反馈的输入数据和控制数据, 根据反馈的输入数据和控制数据, 对第三方 平台协议进行处理。  [0009] the second protocol processing unit is configured to acquire input data and control data fed back by the first protocol processing unit by using the main application interaction unit, and perform third-party platform protocol according to the input data and control data that are fed back. Process it.
[0010] 进一步地, 所述装置还包括数据通信模块及配置模块;  [0010] Further, the device further includes a data communication module and a configuration module;
[0011] 所述第一协议处理单元, 还用于通过所述数据通信模块与所述配置模块进行通 信;  [0011] the first protocol processing unit is further configured to communicate with the configuration module by using the data communication module;
[0012] 所述配置模块, 用于通过所述数据通信模块向所述第一协议处理单元下发下载 扩展应用模块命令和刪除扩展应用模块命令;  [0012] the configuration module is configured to send, by using the data communication module, the extended application module command and the delete extended application module command to the first protocol processing unit;
[0013] 所述第二协议处理单元, 还用于通过所述数据通信模块与第三方平台进行通信  [0013] the second protocol processing unit is further configured to communicate with a third-party platform by using the data communication module
[0014] 进一步地, 所述第一协议处理单元通过所述数据通信模块与所述配置模块进行 通信的方式包括以下中的一种: TCP客户端、 TCP服务端、 UDP、 串口。 [0014] Further, the manner in which the first protocol processing unit communicates with the configuration module by using the data communication module includes one of the following: a TCP client, a TCP server, a UDP, and a serial port.
[0015] 进一步地, 所述主应用模块还包括扩展应用管理模块; [0015] Further, the main application module further includes an extended application management module;
[0016] 所述扩展应用管理模块, 用于对扩展应用模块进行启动管理和探测管理; 还用 于从所述第一协议处理单元中, 获取所述配置模块下发的下载扩展应用模块命 令和刪除扩展应用模块命令, 根据下载扩展应用模块命令和刪除扩展应用模块 命令对所述扩展应用模块进行下载管理和刪除管理。  [0016] The extended application management module is configured to perform startup management and detection management on the extended application module, and is further configured to obtain, from the first protocol processing unit, a download extended application module command sent by the configuration module, The extended application module command is deleted, and the extended application module is subjected to download management and deletion management according to the download extended application module command and the delete extended application module command.
[0017] 进一步地, 所述扩展应用模块还包括运行管理模块;  [0017] Further, the extended application module further includes an operation management module;
[0018] 所述运行管理模块, 用于获取所述扩展应用管理模块的刪除管理信息, 根据获 取的刪除管理信息退出运行。  [0018] The operation management module is configured to acquire deletion management information of the extended application management module, and exit the operation according to the obtained deletion management information.
[0019] 进一步地, 所述扩展应用管理模块, 还用于通过所述扩展应用交互单元获取所 述主应用交互单元发送的扩展应用版本信息, 根据该扩展应用版本信息对所述 扩展应用模块进行启动管理。 [0019] The extended application management module is further configured to acquire extended application version information sent by the main application interaction unit by using the extended application interaction unit, and perform the extended application module according to the extended application version information. Start management.
[0020] 进一步地, 扩展应用模块还包括初始化管理模块; [0020] Further, the extended application module further includes an initialization management module;
[0021] 所述初始化管理模块, 用于所述扩展应用模块的初始化管理。 [0022] 进一步地, 所述主应用模块还包括第一数据缓冲区; [0021] The initialization management module is used for initializing management of the extended application module. [0022] Further, the main application module further includes a first data buffer;
[0023] 所述第一数据缓冲区用于存储所述数据采集单元采集的输入数据。  [0023] The first data buffer is configured to store input data collected by the data collection unit.
[0024] 进一步地, 所述扩展应用模块还包括第二数据缓冲区;  [0024] Further, the extended application module further includes a second data buffer;
[0025] 所述第二数据缓冲区用于通过所述主应用交互单元获取所述第一协议处理单元 反馈的输入数据并存储。  [0025] the second data buffer is configured to acquire and store the input data fed back by the first protocol processing unit by using the main application interaction unit.
[0026] 进一步地, 所述输入数据包括模拟量输入和数字量输入; 所述控制命令包括模 拟量输出控制命令和数字量输出控制命令。 Further, the input data includes an analog input and a digital input; and the control command includes an analog output control command and a digital output control command.
发明的有益效果  Advantageous effects of the invention
有益效果  Beneficial effect
[0027] 本发明实施例提供的接入第三方平台协议的装置, 通过扩展应用模块可快速地 接入第三方平台协议; 通过配置模块, 主应用模块可对扩展应用模块进行启动 、 探测、 动态部署和刪除管理; 不会增加架构的负担, 简单高效。  The apparatus for accessing the third-party platform protocol provided by the embodiment of the present invention can quickly access the third-party platform protocol by expanding the application module. The configuration module can enable the extended application module to start, detect, and dynamically Deploy and delete management; it does not increase the burden of the architecture, simple and efficient.
对附图的简要说明  Brief description of the drawing
附图说明  DRAWINGS
[0028] 图 1为本发明实施例的接入第三方平台协议的装置结构示意图;  1 is a schematic structural diagram of an apparatus for accessing a third-party platform protocol according to an embodiment of the present invention;
[0029] 图 2为本发明实施例的接入第三方平台协议的装置另一结构示意图。  2 is another schematic structural diagram of an apparatus for accessing a third-party platform protocol according to an embodiment of the present invention.
[0030] 本发明目的的实现、 功能特点及优点将结合实施例, 参照附图做进一步说明。  [0030] The implementation, functional features, and advantages of the present invention will be further described with reference to the accompanying drawings.
本发明的实施方式 Embodiments of the invention
[0031] 应当理解, 此处所描述的具体实施例仅仅用以解释本发明, 并不用于限定本发 明。  [0031] It is to be understood that the specific embodiments described herein are merely illustrative of the invention.
[0032] 现在将参考附图描述实现本发明各个实施例的。 在后续的描述中, 使用用于表 示元件的诸如 "模块"、 "部件 "或"单元"的后缀仅为了有利于本发明的说明, 其本 身并没有特定的意义。  [0032] Various embodiments of the present invention will now be described with reference to the drawings. In the following description, the suffixes such as "module", "part" or "unit" used to denote elements are merely illustrative of the present invention, and are not intended to be specific in their own right.
[0033] 还应当进一步理解, 在本发明说明书和所附权利要求书中使用的术语 "和 /或"是 指相关联列出的项中的一个或多个的任何组合以及所有可能组合, 并且包括这 些组合。 [0034] 在本发明中涉及"第一"、 "第二"等的描述仅用于描述目的, 而不能理解为指示 或暗示其相对重要性或者隐含指明所指示的技术特征的数量。 由此, 限定有 "第 一"、 "第二 "的特征可以明示或者隐含地包括至少一个该特征。 另外, 各个实施 例之间的技术方案可以相互结合, 但是必须是以本领域普通技术人员能够实现 为基础, 当技术方案的结合出现相互矛盾或无法实现吋应当认为这种技术方案 的结合不存在, 也不在本发明要求的保护范围之内。 [0033] It should also be further understood that the term "and/or" used in the description of the invention and the appended claims means any combination and all possible combinations of one or more of the associated listed items, and These combinations are included. The descriptions of "first", "second" and the like in the present invention are used for the purpose of description only, and are not to be construed as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Thus, features defining "first" and "second" may include at least one of the features, either explicitly or implicitly. In addition, the technical solutions between the various embodiments may be combined with each other, but must be based on the realization of those skilled in the art, and when the combination of the technical solutions is contradictory or impossible to implement, it should be considered that the combination of the technical solutions does not exist. It is also within the scope of protection required by the present invention.
[0035] 如图 1所示, 本发明实施例提供一种接入第三方平台协议的装置, 该装置包括 主应用模块 10和扩展应用模块 20;  [0035] As shown in FIG. 1, an embodiment of the present invention provides an apparatus for accessing a third-party platform protocol, where the apparatus includes a main application module 10 and an extended application module 20;
[0036] 其中, 主应用模块 10包括数据采集单元 101、 第一协议处理单元 102及扩展应用 交互单元 103; 扩展应用模块 20包括主应用交互单元 201和第二协议处理单元 202  [0036] The main application module 10 includes a data collection unit 101, a first protocol processing unit 102, and an extended application interaction unit 103. The extended application module 20 includes a main application interaction unit 201 and a second protocol processing unit 202.
[0037] 数据采集单元 101, 用于采集智能设备的输入数据。 [0037] The data collection unit 101 is configured to collect input data of the smart device.
[0038] 在本实施例中, 输入数据包括模拟量输入 (AI) 和数字量输入 (DI) 。  [0038] In the present embodiment, the input data includes an analog input (AI) and a digital input (DI).
[0039] 参考图 2所示, 在本实施例中, 主应用模块 10还包括第一数据缓冲区 105; 第一 数据缓冲区 105用于存储数据采集单元 101采集的输入数据。  Referring to FIG. 2, in the embodiment, the main application module 10 further includes a first data buffer 105; the first data buffer 105 is used to store input data collected by the data collection unit 101.
[0040] 第一协议处理单元 102, 用于通过扩展应用交互单元 103获取主应用交互单元 20[0040] The first protocol processing unit 102 is configured to acquire the main application interaction unit by using the extended application interaction unit 103.
1发送的输入数据获取指令, 根据输入获取指令获取数据采集单元 101采集的输 入数据, 将获取到的输入数据反馈给主应用交互单元 201 ; 还用于通过扩展应用 交互单元 103获取主应用交互单元 201发送的控制命令, 根据获取的控制命令将 控制数据反馈给主应用交互单元 201。 An input data acquisition instruction sent by the data acquisition unit 101 is obtained according to the input acquisition instruction, and the obtained input data is fed back to the main application interaction unit 201. The main application interaction unit is also obtained by the extended application interaction unit 103. The control command sent by 201 returns the control data to the main application interaction unit 201 according to the acquired control command.
[0041] 第二协议处理单元 202, 用于通过主应用交互单元 201获取第一协议处理单元 10[0041] The second protocol processing unit 202 is configured to acquire the first protocol processing unit 10 by using the main application interaction unit 201.
2反馈的输入数据和控制数据, 根据反馈的输入数据和控制数据, 对第三方平台 协议进行处理。 2 Feedback input data and control data, according to the input data and control data fed back, the third-party platform protocol is processed.
[0042] 参考图 2所示, 在本实施例中, 扩展应用模块 20还包括第二数据缓冲区 205;  [0042] Referring to FIG. 2, in this embodiment, the extended application module 20 further includes a second data buffer 205;
[0043] 第二数据缓冲区 205用于通过主应用交互单元 201获取第一协议处理单元 102反 馈的输入数据并存储。 [0043] The second data buffer 205 is configured to acquire and store the input data fed back by the first protocol processing unit 102 through the main application interaction unit 201.
[0044] 在本实施例中, 控制命令包括模拟量输出 (AO) 控制命令和数字量输出 (DO [0044] In this embodiment, the control commands include an analog output (AO) control command and a digital output (DO).
) 控制命令。 [0045] 请参考图 2所示, 在一种实施方式中, 装置还包括数据通信模块 30及配置模块 4 第一协议处理单元 102, 还用于通过数据通信模块 30与配置模块 40进行通信; 具体地, 第一协议处理单元 102通过数据通信模块 30与配置模块 40进行通信的方 式包括以下中的一种: TCP (Transmission Control Protocol, 传输控制协议) 客 户端、 TCP (Transmission Control ) control commands. [0045] Please refer to FIG. 2, in an embodiment, the device further includes a data communication module 30 and a first protocol processing unit 102 of the configuration module 4, and is further configured to communicate with the configuration module 40 through the data communication module 30; Specifically, the manner in which the first protocol processing unit 102 communicates with the configuration module 40 through the data communication module 30 includes one of the following: TCP (Transmission Control Protocol) client, TCP (Transmission Control)
Protocol, 传输控制协议) 服务端、 UDP (User Datagram Protocol, 用户数据报 协议) 、 串口。  Protocol, Transmission Control Protocol) Server, UDP (User Datagram Protocol), serial port.
[0047] 配置模块 40, 用于通过数据通信模块 30向第一协议处理单元 102下发下载扩展 应用模块命令和刪除扩展应用模块命令;  [0047] The configuration module 40 is configured to send, by using the data communication module 30, the download extension application module command and the delete extension application module command to the first protocol processing unit 102.
[0048] 第二协议处理单元 202, 还用于通过数据通信模块 30与第三方平台进行通信。 [0048] The second protocol processing unit 202 is further configured to communicate with the third-party platform through the data communication module 30.
[0049] 在本实施例中, 主应用模块 10和扩展应用模块 20的数据通信模块 30为共用的模 块。 In the present embodiment, the data communication module 30 of the main application module 10 and the extended application module 20 is a shared module.
[0050] 请再参考图 2所示, 在一种实施方式中, 主应用模块 10还包括扩展应用管理模 块 104;  [0050] Referring again to FIG. 2, in an embodiment, the main application module 10 further includes an extended application management module 104;
[0051] 扩展应用管理模块 104, 用于对扩展应用模块 20进行启动管理和探测管理; 还 用于从第一协议处理单元 102中, 获取配置模块 40下发的下载扩展应用模块命令 和刪除扩展应用模块命令, 根据下载扩展应用模块命令和刪除扩展应用模块命 令对扩展应用模块 20进行下载管理和刪除管理。  [0051] The extended application management module 104 is configured to perform the startup management and the detection management on the extended application module 20, and is further configured to obtain, from the first protocol processing unit 102, the download extended application module command and the delete extension delivered by the configuration module 40. The application module command performs download management and deletion management on the extended application module 20 according to the download extended application module command and the delete extended application module command.
[0052] 进一步地, 扩展应用管理模块 104, 还用于通过扩展应用交互单元 103获取主应 用交互单元 201发送的扩展应用版本信息, 根据该扩展应用版本信息对扩展应用 模块 20进行启动管理。  Further, the extended application management module 104 is further configured to obtain the extended application version information sent by the main application interaction unit 201 through the extended application interaction unit 103, and perform the startup management on the extended application module 20 according to the extended application version information.
[0053] 作为示例地, 主应用模块启动扩展应用模块的步骤可如下所示: 首先设定扩展 应用模块所在目录具有执行权限, 如该目录不存在则创建之, 然后幵始遍历该 目录下每个文件, 检査其是否满足扩展应用模块执行文件名称规范, 如满足即 认为找到了一个扩展应用模块, 遂将其加入扩展应用模块管理队列, 再检査该 扩展应用是否正在运行, 如没有运行则启动之。  [0053] As an example, the step of the main application module launching the extended application module may be as follows: First, setting the directory where the extended application module is located has execution permission, if the directory does not exist, creating it, and then traversing the directory every time Files, check whether it meets the extended application module execution file name specification, if it is satisfied that it finds an extended application module, add it to the extended application module management queue, and then check if the extended application is running, if it is not running Then start it.
[0054] 作为示例地, 主应用模块探测扩展应用模块的步骤可如下所示: 探测是定吋执 行, 每次执行吋会将扩展应用模块管理队列中已记录在案的扩展应用模块逐个 检査看其是否在运行, 如果发现未运行则将其启动之。 [0054] As an example, the steps of the main application module detecting the extended application module may be as follows: Line, each execution will check the extended application module in the extended application module management queue to see if it is running, and if it is not running, start it.
[0055] 作为示例地, 当用户要部署一个新的扩展应用吋可通过配置模块向主应用模块 下发下载扩展应用模块命令, 下载包括扩展应用模块执行文件及同名配置文件 , 下载结束后如需扩展应用模块马上生效则需重启装置。  [0055] As an example, when the user wants to deploy a new extended application, the configuration module can download the extended application module command to the main application module, and the download includes the extended application module execution file and the configuration file of the same name. The extended application module will take effect immediately after it has been activated.
[0056] 请再参考图 2所示, 在一种实施方式中, 扩展应用模块 20还包括运行管理模块 2 03;  [0056] Please refer to FIG. 2 again, in an embodiment, the extended application module 20 further includes an operation management module 203;
[0057] 运行管理模块 203, 用于获取扩展应用管理模块 104的刪除管理信息, 根据获取 的刪除管理信息退出运行。  [0057] The operation management module 203 is configured to acquire deletion management information of the extended application management module 104, and exit the operation according to the acquired deletion management information.
[0058] 作为示例地, 当用户通过配置模块发起刪除某个在运行的扩展应用模块吋, 通 过配置模块向主应用模块下发命令, 再由第一协议处理单元解析调用的。 扩展 应用管理模块将根据名称搜索扩展应用模块管理队列中待刪除的扩展应用模块 是否在运行, 如果在运行则发消息通知扩展应用模块准备退出, 稍作延吋待扩 展应用已完成退出准备 (释放占用的资源) 后则执行强制退出命令, 然后刪除 扩展应用模块执行文件与配置文件, 并将该扩展应用模块从管理队列中刪除。  [0058] As an example, when the user initiates deletion of a running extended application module through the configuration module, the configuration module sends a command to the main application module, and then the first protocol processing unit parses the call. The extended application management module searches whether the extended application module to be deleted in the extended application module management queue is running according to the name, and if it is running, sends a message to notify the extended application module to prepare to exit, and slightly delays the application to be extended to complete the exit preparation (release After the occupied resource is executed, the forced exit command is executed, then the extended application module execution file and the configuration file are deleted, and the extended application module is deleted from the management queue.
[0059] 请再参考图 2所示, 在一种实施方式中, 扩展应用模块 20还包括初始化管理模 块 204;  [0059] Referring again to FIG. 2, in an embodiment, the extended application module 20 further includes an initialization management module 204;
[0060] 初始化管理模块 204, 用于扩展应用模块 20的初始化管理。  [0060] The initialization management module 204 is configured to extend initialization management of the application module 20.
[0061] 在本实施例中, 初始化包括运行参数、 数据通信模块、 运行管理消息的初始化 。 其中运行参数是通过读取与执行文件同名的 XML配置文件获得的, 配置模块 以 FTP方式直接从扩展应用模块所在目录获取到 XML格式配置文件, 然后即可进 行査看、 编辑, 修改后保存到 XML文件后再以 FTP方式下载回扩展应用模块所在 目录。 [0061] In this embodiment, the initialization includes initialization of the operating parameters, the data communication module, and the operation management message. The running parameter is obtained by reading the XML configuration file with the same name as the execution file. The configuration module obtains the XML format configuration file directly from the directory where the extended application module is located by FTP, and then can view, edit, modify and save to The XML file is then downloaded to the directory where the extended application module is located by FTP.
[0062] 本发明实施例提供的一种接入第三方平台协议的装置, 通过扩展应用模块可快 速地接入第三方平台协议; 通过配置模块, 主应用模块可对扩展应用模块进行 启动、 探测、 动态部署和刪除管理; 不会增加架构的负担, 简单高效。  The apparatus for accessing the third-party platform protocol provided by the embodiment of the present invention can quickly access the third-party platform protocol by extending the application module. The main application module can start and detect the extended application module by using the configuration module. , dynamic deployment and deletion management; does not increase the burden of the architecture, simple and efficient.
[0063] 需要说明的是, 在本文中, 术语"包括"、 "包含 "或者其任何其他变体意在涵盖 非排他性的包含, 从而使得包括一系列要素的过程、 方法、 物品或者装置不仅 包括那些要素, 而且还包括没有明确列出的其他要素, 或者是还包括为这种过 程、 方法、 物品或者装置所固有的要素。 在没有更多限制的情况下, 由语句 "包 括一个 ...... "限定的要素, 并不排除在包括该要素的过程、 方法、 物品或者装置 中还存在另外的相同要素。 [0063] It should be noted that, in this document, the terms "comprising", "including", or any other variations thereof are intended to encompass a non-exclusive inclusion, such that a process, method, article or device that comprises a Include those elements, but also include other elements that are not explicitly listed, or include elements that are inherent to such a process, method, item, or device. An element that is defined by the phrase "comprising a ..." does not exclude the presence of additional elements in the process, method, article, or device that comprises the element.
[0064] 以上仅为本发明的优选实施例, 并非因此限制本发明的专利范围, 凡是利用本 发明说明书及附图内容所作的等效结构或等效流程变换, 或直接或间接运用在 其他相关的技术领域, 均同理包括在本发明的专利保护范围内。  The above is only a preferred embodiment of the present invention, and is not intended to limit the scope of the invention, and the equivalent structure or equivalent process transformations made by the description of the invention and the contents of the drawings, or directly or indirectly The technical field is equally included in the scope of patent protection of the present invention.
工业实用性  Industrial applicability
[0065] 本发明实施例提供的一种接入第三方平台协议的装置, 通过扩展应用模块可快 速地接入第三方平台协议; 通过配置模块, 主应用模块可对扩展应用模块进行 启动、 探测、 动态部署和刪除管理; 不会增加架构的负担, 简单高效。 因此, 具有工业实用性。  The apparatus for accessing the third-party platform protocol provided by the embodiment of the present invention can quickly access the third-party platform protocol by expanding the application module. The main application module can start and detect the extended application module by using the configuration module. , dynamic deployment and deletion management; does not increase the burden of the architecture, simple and efficient. Therefore, it has industrial applicability.

Claims

权利要求书 Claim
[权利要求 1] 一种接入第三方平台协议的装置, 该装置包括主应用模块和扩展应用 模块;  [Claim 1] An apparatus for accessing a third-party platform protocol, the apparatus comprising a main application module and an extended application module;
其中, 所述主应用模块包括数据采集单元、 第一协议处理单元及扩展 应用交互单元; 所述扩展应用模块包括主应用交互单元和第二协议处 理单元;  The main application module includes a data collection unit, a first protocol processing unit, and an extended application interaction unit. The extended application module includes a main application interaction unit and a second protocol processing unit.
所述数据采集单元, 用于采集智能设备的输入数据;  The data collection unit is configured to collect input data of the smart device;
所述第一协议处理单元, 用于通过所述扩展应用交互单元获取所述主 应用交互单元发送的输入数据获取指令, 根据所述输入获取指令获取 所述数据采集单元采集的输入数据, 将获取到的输入数据反馈给所述 主应用交互单元; 还用于通过所述扩展应用交互单元获取所述主应用 交互单元发送的控制命令, 根据获取的控制命令将控制数据反馈给所 述主应用交互单元;  The first protocol processing unit is configured to acquire an input data acquisition instruction sent by the main application interaction unit by using the extended application interaction unit, and acquire input data collected by the data collection unit according to the input acquisition instruction, and obtain the The input data is fed back to the main application interaction unit; and is further configured to acquire, by using the extended application interaction unit, a control command sent by the main application interaction unit, and feedback control data to the main application interaction according to the acquired control command. Unit
所述第二协议处理单元, 用于通过所述主应用交互单元获取所述第一 协议处理单元反馈的输入数据和控制数据, 根据反馈的输入数据和控 制数据, 对第三方平台协议进行处理。  The second protocol processing unit is configured to acquire input data and control data fed back by the first protocol processing unit by using the main application interaction unit, and process the third-party platform protocol according to the input data and the control data that are fed back.
[权利要求 2] 根据权利要求 1所述的一种接入第三方平台协议的装置, 其中, 所述 装置还包括数据通信模块及配置模块;  [Claim 2] The device for accessing a third-party platform protocol according to claim 1, wherein the device further includes a data communication module and a configuration module;
所述第一协议处理单元, 还用于通过所述数据通信模块与所述配置模 块进行通信;  The first protocol processing unit is further configured to communicate with the configuration module by using the data communication module;
所述配置模块, 用于通过所述数据通信模块向所述第一协议处理单元 下发下载扩展应用模块命令和刪除扩展应用模块命令;  The configuration module is configured to send, by using the data communication module, the download extended application module command and the delete extended application module command to the first protocol processing unit;
所述第二协议处理单元, 还用于通过所述数据通信模块与第三方平台 进行通信。  The second protocol processing unit is further configured to communicate with a third-party platform by using the data communication module.
[权利要求 3] 根据权利要求 2所述的一种接入第三方平台协议的装置, 其中, 所述 第一协议处理单元通过所述数据通信模块与所述配置模块进行通信的 方式包括以下中的一种: TCP客户端、 TCP服务端、 UDP、 串口。  [Claim 3] The device for accessing a third-party platform protocol according to claim 2, wherein the manner in which the first protocol processing unit communicates with the configuration module by using the data communication module includes the following One type: TCP client, TCP server, UDP, serial port.
[权利要求 4] 根据权利要求 2所述的一种接入第三方平台协议的装置, 其中, 所述 主应用模块还包括扩展应用管理模块; [Claim 4] The apparatus for accessing a third-party platform protocol according to claim 2, wherein The main application module further includes an extended application management module;
所述扩展应用管理模块, 用于对扩展应用模块进行启动管理和探测管 理; 还用于从所述第一协议处理单元中, 获取所述配置模块下发的下 载扩展应用模块命令和刪除扩展应用模块命令, 根据下载扩展应用模 块命令和刪除扩展应用模块命令对所述扩展应用模块进行下载管理和 刪除管理。 The extended application management module is configured to perform startup management and detection management on the extended application module, and is further configured to obtain, from the first protocol processing unit, a download extended application module command and a delete extended application delivered by the configuration module. The module command performs download management and deletion management on the extended application module according to the download extended application module command and the delete extended application module command.
根据权利要求 4所述的一种接入第三方平台协议的装置, 其中, 所述 扩展应用模块还包括运行管理模块; The apparatus for accessing a third-party platform protocol according to claim 4, wherein the extended application module further comprises an operation management module;
所述运行管理模块, 用于获取所述扩展应用管理模块的刪除管理信息 , 根据获取的刪除管理信息退出运行。 The operation management module is configured to acquire deletion management information of the extended application management module, and exit the operation according to the obtained deletion management information.
根据权利要求 4所述的一种接入第三方平台协议的装置, 其中, 所述 扩展应用管理模块, 还用于通过所述扩展应用交互单元获取所述主应 用交互单元发送的扩展应用版本信息, 根据该扩展应用版本信息对所 述扩展应用模块进行启动管理。 The apparatus for accessing a third-party platform protocol according to claim 4, wherein the extended application management module is further configured to acquire extended application version information sent by the main application interaction unit by using the extended application interaction unit. And starting and managing the extended application module according to the extended application version information.
根据权利要求 2所述的一种接入第三方平台协议的装置, 其中, 扩展 应用模块还包括初始化管理模块; The apparatus for accessing a third-party platform protocol according to claim 2, wherein the extended application module further comprises an initialization management module;
所述初始化管理模块, 用于所述扩展应用模块的初始化管理。 The initialization management module is used for initializing management of the extended application module.
根据权利要求 1所述的一种接入第三方平台协议的装置, 其中, 所述 主应用模块还包括第一数据缓冲区; The apparatus for accessing a third-party platform protocol according to claim 1, wherein the main application module further includes a first data buffer;
所述第一数据缓冲区用于存储所述数据采集单元采集的输入数据。 根据权利要求 1所述的一种接入第三方平台协议的装置, 其中, 所述 扩展应用模块还包括第二数据缓冲区; The first data buffer is configured to store input data collected by the data acquisition unit. The apparatus for accessing a third-party platform protocol according to claim 1, wherein the extended application module further includes a second data buffer;
所述第二数据缓冲区用于通过所述主应用交互单元获取所述第一协议 处理单元反馈的输入数据并存储。 The second data buffer is configured to acquire and store the input data fed back by the first protocol processing unit by using the main application interaction unit.
根据权利要求 1所述的一种接入第三方平台协议的装置, 其中, 所述 The apparatus for accessing a third-party platform protocol according to claim 1, wherein
PCT/CN2017/084526 2017-05-16 2017-05-16 Apparatus for accessing third-party platform protocol WO2018209554A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/084526 WO2018209554A1 (en) 2017-05-16 2017-05-16 Apparatus for accessing third-party platform protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/084526 WO2018209554A1 (en) 2017-05-16 2017-05-16 Apparatus for accessing third-party platform protocol

Publications (1)

Publication Number Publication Date
WO2018209554A1 true WO2018209554A1 (en) 2018-11-22

Family

ID=64273020

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/084526 WO2018209554A1 (en) 2017-05-16 2017-05-16 Apparatus for accessing third-party platform protocol

Country Status (1)

Country Link
WO (1) WO2018209554A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414156A (en) * 2019-01-08 2020-07-14 杭州海康威视数字技术股份有限公司 Embedded equipment and service system based on open platform and service development method
CN113938515A (en) * 2021-09-23 2022-01-14 浪潮云信息技术股份公司 Third-party platform based access method, system, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404656A (en) * 2008-11-04 2009-04-08 深圳中兴力维技术有限公司 Software interface design method for communicating with third party intelligent equipment protocol
CN201479374U (en) * 2009-03-16 2010-05-19 深圳中兴力维技术有限公司 Device for monitoring power and environment of base stations based on short messages and GPRS/CDMA
US20110257804A1 (en) * 2010-04-14 2011-10-20 Raytheon Company Administration of Power Environments
CN103747061A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 Power environment monitoring system allowing multiple networks to access and operation method thereof
CN105225449A (en) * 2014-06-30 2016-01-06 艾默生网络能源有限公司 Supervisory system and monitoring collector

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404656A (en) * 2008-11-04 2009-04-08 深圳中兴力维技术有限公司 Software interface design method for communicating with third party intelligent equipment protocol
CN201479374U (en) * 2009-03-16 2010-05-19 深圳中兴力维技术有限公司 Device for monitoring power and environment of base stations based on short messages and GPRS/CDMA
US20110257804A1 (en) * 2010-04-14 2011-10-20 Raytheon Company Administration of Power Environments
CN103747061A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 Power environment monitoring system allowing multiple networks to access and operation method thereof
CN105225449A (en) * 2014-06-30 2016-01-06 艾默生网络能源有限公司 Supervisory system and monitoring collector

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
LU , XU.: "Feature Analyse of the P&E Supervision System Adapted to 3G", TELECOM ENGINEERING TECHNICS AND STANDARDIZATION, 30 April 2007 (2007-04-30) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111414156A (en) * 2019-01-08 2020-07-14 杭州海康威视数字技术股份有限公司 Embedded equipment and service system based on open platform and service development method
CN111414156B (en) * 2019-01-08 2023-09-22 杭州海康威视数字技术股份有限公司 Embedded equipment and service system based on open platform and service development method
CN113938515A (en) * 2021-09-23 2022-01-14 浪潮云信息技术股份公司 Third-party platform based access method, system, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN111431740B (en) Data transmission method, device, equipment and computer readable storage medium
EP2779712B1 (en) Configuring Secure Wireless Networks
CN105765526B (en) It is guided by network from remote disk mirror image
JP6611810B2 (en) Control system, equipment management apparatus, method, and program
KR100421624B1 (en) Platform Independent Software Automatic Searching/Distribution/Install Apparatus and The method of Searching and Distribution for that apparatus
US20120209983A1 (en) Configurable forensic investigative tool
WO2019056913A1 (en) Container login method and device and storage medium
CN107534647A (en) Safely and reliably transmission starts script
US20130031236A1 (en) Method and System for Platform Level Data Model for Indications Based Event Control and Data Transfer
JP2007148738A (en) Information monitoring method, system, and program
WO2004019161A2 (en) Method and apparatus for managing resources stored on a communication device
EP2000920A1 (en) Network system
WO2018209554A1 (en) Apparatus for accessing third-party platform protocol
JP6195465B2 (en) Remote card content management using synchronous server-side scripting
JP5517463B2 (en) Thin client system, management server and thin client terminal
WO2014169589A1 (en) Intelligent terminal synchronous operation method and device
US8521911B2 (en) Apparatus, system and method for executing discovery in network
CN112685102B (en) Gateway plug-in hot loading method, device, equipment and medium
CN112751716B (en) Test method and system for controlling response of file server and electronic equipment
EP2040418A1 (en) Program control method for network devices and network system
CN111200578A (en) Communication method, client device and server device
Cisco Installing ViewRunner on One Machine
Cisco Installing ViewRunner on Distributed Machines
Cisco Installing ViewRunner on One Machine
CN110943968B (en) Equipment access control method and equipment access assembly

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 17910416

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 17910416

Country of ref document: EP

Kind code of ref document: A1