CN110401676A - Gateway and its data processing method, control device and storage medium - Google Patents
Gateway and its data processing method, control device and storage medium Download PDFInfo
- Publication number
- CN110401676A CN110401676A CN201910779636.3A CN201910779636A CN110401676A CN 110401676 A CN110401676 A CN 110401676A CN 201910779636 A CN201910779636 A CN 201910779636A CN 110401676 A CN110401676 A CN 110401676A
- Authority
- CN
- China
- Prior art keywords
- preset
- information
- network element
- data processing
- data
- 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
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L12/00—Data switching networks
- H04L12/66—Arrangements for connecting between networks having differing types of switching systems, e.g. gateways
-
- 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 Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Computer Security & Cryptography (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
本发明公开了一种数据处理方法,该方法包括:获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备;判断所述第一设备信息中是否包括预设信息;当所述第一设备信息包括所述预设信息时,与预设网络交互所述网元设备的非预设协议数据。本发明还公开了一种控制装置、网关设备和可读存储介质。本发明旨在实现物联网中网元设备有效接入同时实现设备的灵活兼容。
The invention discloses a data processing method. The method includes: obtaining first device information of a network element device, and the network element device accesses a gateway device with a preset protocol; judging whether the first device information includes a preset information; when the first device information includes the preset information, exchanging non-preset protocol data of the network element device with a preset network. The invention also discloses a control device, a gateway device and a readable storage medium. The invention aims at realizing effective access of network element equipment in the Internet of Things and simultaneously realizing flexible compatibility of the equipment.
Description
技术领域technical field
本发明涉及网络技术领域,尤其涉及数据处理方法、控制装置、网关设备和可读存储介质。The invention relates to the field of network technology, in particular to a data processing method, a control device, a gateway device and a readable storage medium.
背景技术Background technique
目前,在物联网中,网元设备(如ZIGBEE设备)可通过标准协议或私有协议加入网关。然而,网元设备与网关设备以标准协议连接时,网关设备一般会自动忽略不满足标准协议传输的网络数据,物联网的服务器与网元设备需交互非标准协议数据时,导致网元设备无法接入物联网;网元设备与网关设备以私有协议连接时,只能接入该满足该私有协议的设备,网关设备无法兼容其他标准协议的设备。因此,当前网关设备无法同时满足物联网中网元设备的有效接入和设备兼容问题。At present, in the Internet of Things, network element devices (such as ZIGBEE devices) can join the gateway through standard protocols or private protocols. However, when the network element device and the gateway device are connected by a standard protocol, the gateway device will generally automatically ignore the network data that does not meet the standard protocol transmission. When the server of the Internet of Things and the network element device need to exchange non-standard protocol data, the network element device cannot Access to the Internet of Things; when the network element device and the gateway device are connected by a private protocol, only the device that meets the private protocol can be connected, and the gateway device cannot be compatible with other standard protocol devices. Therefore, the current gateway device cannot simultaneously meet the problems of effective access and device compatibility of network element devices in the Internet of Things.
上述内容仅用于辅助理解本发明的技术方案,并不代表承认上述内容是现有技术。The above content is only used to assist in understanding the technical solution of the present invention, and does not mean that the above content is admitted as prior art.
发明内容Contents of the invention
本发明的主要目的在于提供一种数据处理方法,旨在实现物联网中网元设备有效接入同时实现设备的灵活兼容。The main purpose of the present invention is to provide a data processing method, aiming at realizing effective access of network element devices in the Internet of Things and simultaneously realizing flexible compatibility of the devices.
为实现上述目的,本发明提供一种数据处理方法,所述数据处理方法包括以下步骤:To achieve the above object, the present invention provides a data processing method, the data processing method comprising the following steps:
获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备;Acquiring first device information of a network element device, the network element device accessing the gateway device with a preset protocol;
判断所述第一设备信息中是否包括预设信息;judging whether the first device information includes preset information;
当所述第一设备信息包括所述预设信息时,与预设网络交互所述网元设备的非预设协议数据。When the first device information includes the preset information, the non-preset protocol data of the network element device is exchanged with a preset network.
可选地,所述判断所述第一设备信息中是否包括预设信息的步骤之后,还包括:Optionally, after the step of judging whether the first device information includes preset information, the method further includes:
当所述网络数据不包括所述预设信息时,不处理所述网元设备的非预设协议数据。When the network data does not include the preset information, the non-preset protocol data of the network element device is not processed.
可选地,所述判断所述网络数据中是否包括预设信息的步骤之前,还包括:Optionally, before the step of judging whether the network data includes preset information, it also includes:
根据所述第一设备信息确定所述网元设备的第一设备类型;determining a first device type of the network element device according to the first device information;
根据所述第一设备类型获取所述预设信息。The preset information is acquired according to the first device type.
可选地,所述获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备的步骤之前,还包括:Optionally, before the step of obtaining the first device information of the network element device, before the step of the network element device accessing the gateway device with a preset protocol, further includes:
获取所述网元设备与所述预设网络交互的网络数据的所有数据类型;Obtaining all data types of network data interacting between the network element device and the preset network;
当所述数据类型包括非预设协议数据时,控制所述网元设备以所述预设协议接入网关设备。When the data type includes non-preset protocol data, control the network element device to access the gateway device using the preset protocol.
可选地,所述获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备的步骤之前,还包括:Optionally, before the step of obtaining the first device information of the network element device, before the step of the network element device accessing the gateway device with a preset protocol, further includes:
当网关设备生成所述预设信息时,确定所需生成的预设信息的信息类型;When the gateway device generates the preset information, determine the information type of the preset information to be generated;
当所述信息类型为预设设备对应的预设信息时,获取预设设备对应的预设配置信息;When the information type is preset information corresponding to the preset device, acquiring preset configuration information corresponding to the preset device;
将所述预设配置信息作为所述预设信息;using the preset configuration information as the preset information;
其中,所述预设配置信息通过预设软件写入所述预设设备的设备信息中。Wherein, the preset configuration information is written into the device information of the preset device through preset software.
可选地,所述当网关设备生成所述预设信息时,确定所需生成的预设信息的信息类型的步骤之后,还包括:Optionally, after the step of determining the information type of the preset information to be generated when the gateway device generates the preset information, it further includes:
当所述信息类型为非预设设备对应的预设信息时,则获取所述非预设设备的第二设备信息;When the information type is preset information corresponding to a non-preset device, acquiring second device information of the non-preset device;
将所述第二设备信息作为所述预设信息。The second device information is used as the preset information.
可选地,当所述信息类型为非预设设备对应的预设信息时,所述确定所需生成的预设信息的信息类型的步骤包括:Optionally, when the information type is preset information corresponding to a non-preset device, the step of determining the information type of the preset information to be generated includes:
判断是否接收到预设指令;judging whether a preset instruction is received;
当接收到所述预设指令时,确定所述信息类型为非预设设备对应的预设信息;When receiving the preset instruction, determine that the information type is preset information corresponding to a non-preset device;
当没接收到预设指令时,确定所述信息类型为预设设备对应的预设信息。When the preset instruction is not received, it is determined that the information type is preset information corresponding to the preset device.
此外,为了实现上述目的,本申请还提出一种控制装置,所述控制装置包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的数据处理程序,所述数据处理程序被所述处理器执行时实现如上任一项所述的数据处理方法的步骤。In addition, in order to achieve the above object, the present application also proposes a control device, which includes: a memory, a processor, and a data processing program stored in the memory and operable on the processor, the data When the processing program is executed by the processor, the steps of any one of the above data processing methods are implemented.
此外,为了实现上述目的,本申请还提出一种网关设备,所述空调器包括如上所述的控制装置。In addition, in order to achieve the above object, the present application also proposes a gateway device, wherein the air conditioner includes the above-mentioned control device.
此外,为了实现上述目的,本申请还提出一种可读存储介质,所述可读存储介质上存储有数据处理程序,所述数据处理程序被处理器执行时实现如上任一项所述的数据处理方法的步骤。In addition, in order to achieve the above purpose, the present application also proposes a readable storage medium, on which a data processing program is stored, and when the data processing program is executed by a processor, the data processing program as described in any one of the above items is realized. The steps of the processing method.
本发明提出的一种数据处理方法,该方法通过获取以预设协议接入网关设备的网元设备的第一设备信息;判断所述第一设备信息中是否包括预设信息;当所述第一设备信息包括所述预设信息时,与预设网络交互所述网元设备的非预设协议数据。上述方法通过识别网元设备的设备信息是否包括预设信息,从而判断网元设备是否在网关的定制范围内,实现无论网元设备以何种协议接入网关设备,网关设备均不会忽略以与接入协议不同的协议通讯的网络数据,使网元设备可有效接入物联网,而且任意设备只要设备信息中包括预设信息,便可接入物联网,从而实现设备的灵活兼容。A data processing method proposed by the present invention, the method obtains first device information of a network element device that accesses a gateway device with a preset protocol; judges whether the first device information includes preset information; when the first device information includes When the device information includes the preset information, the non-preset protocol data of the network element device is exchanged with the preset network. The above method judges whether the device information of the network element device includes preset information, thereby judging whether the network element device is within the customization range of the gateway, so that no matter what protocol the network element device uses to access the gateway device, the gateway device will not ignore the following The network data communicated by a protocol different from the access protocol enables network element devices to effectively access the Internet of Things, and any device can access the Internet of Things as long as the device information includes preset information, thereby achieving flexible compatibility of devices.
附图说明Description of drawings
图1是本发明控制装置一实施例的硬件结构示意图;Fig. 1 is a schematic diagram of the hardware structure of an embodiment of the control device of the present invention;
图2为本发明数据处理方法第一实施例的流程示意图;Fig. 2 is a schematic flow chart of the first embodiment of the data processing method of the present invention;
图3为本发明数据处理方法第二实施例的流程示意图;Fig. 3 is a schematic flow chart of the second embodiment of the data processing method of the present invention;
图4为本发明数据处理方法第三实施例的流程示意图;Fig. 4 is a schematic flow chart of the third embodiment of the data processing method of the present invention;
图5为本发明数据处理方法第四实施例的流程示意图。FIG. 5 is a schematic flowchart of a fourth embodiment of the data processing method of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The realization of the purpose of the present invention, functional characteristics and advantages will be further described in conjunction with the embodiments and with reference to the accompanying drawings.
具体实施方式Detailed ways
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It should be understood that the specific embodiments described here are only used to explain the present invention, not to limit the present invention.
本发明实施例的主要解决方案是:获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备;判断所述第一设备信息中是否包括预设信息;当所述第一设备信息包括所述预设信息时,与预设网络交互所述网元设备的非预设协议数据。The main solution of the embodiment of the present invention is to: obtain the first device information of the network element device, and the network element device accesses the gateway device with a preset protocol; judge whether the first device information includes preset information; when the When the first device information includes the preset information, exchange the non-preset protocol data of the network element device with the preset network.
由于现有技术中,当前网关设备无法同时满足物联网中网元设备的有效接入和设备兼容问题。In the prior art, the current gateway device cannot simultaneously satisfy the problems of effective access of network element devices and device compatibility in the Internet of Things.
本发明提供上述的解决方案,旨在实现物联网中网元设备有效接入同时实现设备的灵活兼容。The present invention provides the above-mentioned solution, aiming at realizing effective access of network element devices in the Internet of Things and simultaneously realizing flexible compatibility of the devices.
本发明提出一种控制装置,主要应用于物联网中对网元设备接收或发送的数据进行识别处理。The present invention proposes a control device, which is mainly used in the Internet of Things to identify and process data received or sent by network element equipment.
在本发明实施例中,参照图1,控制装置包括:处理器1001,例如CPU,存储器1002,网络接口1003等。存储器1002可以是高速RAM存储器,也可以是稳定的存储器(non-volatile memory),例如磁盘存储器。存储器1002可选的还可以是独立于前述处理器1001的存储装置。网络接口1003用于连接服务器和网元设备,分别与服务器和网元设备进行数据通信,网络接口1003可选的可以包括标准的有线接口、无线接口(如WI-FI接口、ZIGBEE接口等)。In the embodiment of the present invention, referring to FIG. 1 , the control device includes: a processor 1001 , such as a CPU, a memory 1002 , a network interface 1003 and the like. The memory 1002 can be a high-speed RAM memory, or a stable memory (non-volatile memory), such as a disk memory. Optionally, the memory 1002 may also be a storage device independent of the foregoing processor 1001 . The network interface 1003 is used to connect the server and the network element equipment, and perform data communication with the server and the network element equipment respectively. The network interface 1003 may optionally include standard wired interfaces and wireless interfaces (such as WI-FI interface, ZIGBEE interface, etc.).
本领域技术人员可以理解,图1中示出的装置结构并不构成对装置的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。Those skilled in the art can understand that the device structure shown in FIG. 1 does not constitute a limitation to the device, and may include more or less components than shown in the figure, or combine some components, or arrange different components.
如图1所示,作为一种可读存储介质的存储器1002中可以包括数据处理程序。在图1所示的装置中,处理器1001可以用于调用存储器1002中存储的数据处理程序,并执行以下实施例中数据处理方法的相关步骤操作。As shown in FIG. 1 , a memory 1002 as a readable storage medium may include a data processing program. In the device shown in FIG. 1 , the processor 1001 can be used to call the data processing program stored in the memory 1002, and execute relevant steps of the data processing method in the following embodiments.
进一步的,本发明还提供一种网关设备,网关设备包括上述的控制装置,控制装置用于执行以下实施例中数据处理方法的相关步骤操作,以对接入网关设备的网元设备接收或发送的数据进行识别处理。Further, the present invention also provides a gateway device, the gateway device includes the above-mentioned control device, and the control device is used to perform the steps related to the data processing method in the following embodiments, so as to receive or send the network element device accessing the gateway device data for identification.
本发明还提供一种数据处理方法。The invention also provides a data processing method.
参照图2,提出本发明数据处理方法第一实施例,所述数据处理方法包括:With reference to Fig. 2, propose the first embodiment of the data processing method of the present invention, described data processing method comprises:
步骤S10,获取网元设备的第一设备信息,所述网元设备以预设协议接入网关设备;Step S10, acquiring first device information of a network element device that accesses the gateway device with a preset protocol;
这里的预设协议具体为不同网元设备均遵守和兼容的网络传输协议。预设协议可具体为标准网络传输协议。在其他实施例中,预设协议还可以非标准网络传输协议。在本申请实施例中,网元设备具体为ZIGBEE设备。The preset protocol here is specifically a network transmission protocol that different network element devices comply with and are compatible with. The preset protocol may specifically be a standard network transmission protocol. In other embodiments, the preset protocol may also be a non-standard network transmission protocol. In the embodiment of the present application, the network element device is specifically a ZIGBEE device.
第一设备信息具体包括产品型号、设备名称、设备密码等作为网元设备唯一标识的身份信息。The first device information specifically includes identity information such as a product model, a device name, and a device password as a unique identifier of a network element device.
具体的,在网元设备首次接入网关设备时,执行步骤S10。Specifically, when the network element device accesses the gateway device for the first time, step S10 is performed.
步骤S20,判断所述第一设备信息中是否包括预设信息;Step S20, judging whether the first device information includes preset information;
当所述第一设备信息包括所述预设信息时,执行步骤S30;当所述第一设备信息不包括所述预设信息时,执行步骤S40。When the first device information includes the preset information, perform step S30; when the first device information does not include the preset information, perform step S40.
具体的,网关设备中可预先收集可与预设网络进行交互的网元设备对应的预设信息,形成预设信息库。其中,预设信息可具体包括预设字符、多个字符形成的预设字符组合等形式。预设信息可通过人工设置,也可通过获取网元设备的设备信息生成。预设信息库中,预设信息可与网元设备的设备类型关联存储(如强电类型和弱电类型等、交互型设备和被动型设备等)。Specifically, the gateway device may pre-collect preset information corresponding to network element devices that can interact with the preset network to form a preset information library. Wherein, the preset information may specifically include preset characters, preset character combinations formed by multiple characters, and the like. The preset information can be manually set, or can be generated by obtaining device information of network element devices. In the preset information base, the preset information can be stored in association with the device type of the network element device (such as strong current type and weak current type, interactive device and passive device, etc.).
具体的,步骤S20包括:解析所述网络数据中的特征数据;将所述特征数据划分为所述预设个的数据段;提取每个数据段在预设位置上的字符,得到预设个字符,将得到的字符按照数据段的顺序组合形成特征信息;判断所述特征信息与所述预设信息是否一致;若一致,则所述网络数据包括所述预设信息;若不一致,则所述网络数据不包括所述预设信息。Specifically, step S20 includes: parsing the characteristic data in the network data; dividing the characteristic data into the preset data segments; extracting the characters in the preset positions of each data segment to obtain the preset characters, combining the obtained characters according to the order of data segments to form feature information; judging whether the feature information is consistent with the preset information; if consistent, the network data includes the preset information; if not, the The network data does not include the preset information.
步骤S30,与预设网络交互所述网元设备的非预设协议数据。Step S30, exchanging the non-preset protocol data of the network element device with the preset network.
预设网络具体包括向网元设备发送网络数据的网络或依据网元设备发送的网络数据所确定的网络。The preset network specifically includes a network that sends network data to the network element device or a network determined according to network data sent by the network element device.
非预设协议数据具体为不满足标准网络传输协议的网络数据。The non-preset protocol data specifically refers to network data that does not meet standard network transmission protocols.
网关设备在接收到非预设协议数据时,若非预设协议数据由网元设备发出,则根据非预设协议数据确定预设网络,向预设网络的网关发送该非预设协议数据;如非预设协议数据由外部网络的网关发出,且非预设协议数据需发送至则将外部网络为预设网络,网关设备将非预设协议数据下发至该第一设备信息中包括预设信息的网元设备。When the gateway device receives the non-preset protocol data, if the non-preset protocol data is sent by the network element device, it determines the preset network according to the non-preset protocol data, and sends the non-preset protocol data to the gateway of the preset network; The non-preset protocol data is sent by the gateway of the external network, and the non-preset protocol data needs to be sent to the external network as the default network, and the gateway device sends the non-preset protocol data to the first device. The information includes the preset Network element equipment for information.
步骤S40,不处理所述网元设备的非预设协议数据。In step S40, the non-preset protocol data of the network element device is not processed.
丢弃外部网络发送给该网元设备的非预设协议数据,或,丢弃网元设备发送至外部网络的非预设协议数据,从而实现在网关设备定制范围内的网元设备才可与物联网基于定制功能交互,不在定制范围内的网元设备禁止与物联网通信非预设协议数据。Discard the non-preset protocol data sent by the external network to the network element device, or discard the non-preset protocol data sent by the network element device to the external network, so that only network element devices within the scope of gateway device customization can communicate with the Internet of Things Based on the interaction of customized functions, network element devices that are not within the scope of customization are prohibited from communicating with the Internet of Things with non-preset protocol data.
本发明实施例提出的一种数据处理方法,该方法通过获取以预设协议接入网关设备的网元设备的第一设备信息;判断所述第一设备信息中是否包括预设信息;当所述第一设备信息包括所述预设信息时,与预设网络交互所述网元设备的非预设协议数据。上述方法通过识别网元设备的设备信息是否包括预设信息,从而判断网元设备是否在网关的定制范围内,实现无论网元设备以何种协议接入网关设备,网关设备均不会忽略以与接入协议不同的协议通讯的网络数据,使网元设备可有效接入物联网,而且任意设备只要设备信息中包括预设信息,便可接入物联网,从而实现设备的灵活兼容。A data processing method proposed by an embodiment of the present invention, the method obtains first device information of a network element device that accesses a gateway device with a preset protocol; judges whether the first device information includes preset information; when the When the first device information includes the preset information, exchange the non-preset protocol data of the network element device with the preset network. The above method judges whether the device information of the network element device includes preset information, thereby judging whether the network element device is within the customization range of the gateway, so that no matter what protocol the network element device uses to access the gateway device, the gateway device will not ignore the following The network data communicated by a protocol different from the access protocol enables network element devices to effectively access the Internet of Things, and any device can access the Internet of Things as long as the device information includes preset information, thereby achieving flexible compatibility of devices.
进一步的,基于第一实施例,提出本申请数据处理方法第二实施例。在第二实施例中,参照图3,所述步骤S20之前,还包括:Further, based on the first embodiment, a second embodiment of the data processing method of the present application is proposed. In the second embodiment, referring to FIG. 3, before the step S20, it also includes:
步骤S01,根据所述第一设备信息确定所述网元设备的第一设备类型;Step S01, determining a first device type of the network element device according to the first device information;
例如,可提取第一设备信息中的设备名称,依据设备名称确定网元设备的第一设备类型。例如,设备名称为空调时,网元设备为强电类型设备;设备名称为温度传感器时,网元设备为弱电类型设备。For example, the device name in the first device information may be extracted, and the first device type of the network element device may be determined according to the device name. For example, when the device name is air conditioner, the NE device is a strong current type device; when the device name is a temperature sensor, the NE device is a weak current type device.
步骤S02,根据所述第一设备类型获取所述预设信息。Step S02, acquiring the preset information according to the first device type.
网关设备存储的预设信息库中,不同设备类型可对应设置有不同的预设信息。例如,强电类型设备对应编码1,弱电类型设备对应编码2;或者,交互型设备对应编码3,非交互型设备对应编码4;或者,强电交互型设备对应编码13,强电非交互型设备对应编码14,弱电交互型设备对应编码13,弱电非交互型设备对应编码15等。In the preset information database stored in the gateway device, different device types may be correspondingly provided with different preset information. For example, strong current equipment corresponds to code 1, and weak current equipment corresponds to code 2; or, interactive equipment corresponds to code 3, and non-interactive equipment corresponds to code 4; or, strong current interactive equipment corresponds to code 13, and strong current non-interactive equipment corresponds to code 13; Equipment corresponds to code 14, weak current interactive equipment corresponds to code 13, weak current non-interactive equipment corresponds to code 15, etc.
通过上述方式,只需在网关设备中定制设备类型所对应的预设信息,不只是针对某个设备,在同种类型的不同网元设备接入网关设备时,网关设备均不会忽略其非预设协议数据,从而使不同网元设备接入网关设备时,均可与外部网络正常交互,进一步提高设备兼容的灵活性。Through the above method, you only need to customize the preset information corresponding to the device type in the gateway device, not just for a certain device, when different network element devices of the same type access the gateway device, the gateway device will not ignore its Preset protocol data, so that when different network element devices are connected to the gateway device, they can interact with the external network normally, further improving the flexibility of device compatibility.
进一步的,基于上述任一实施例,提出本申请数据处理方法第三实施例。在第三实施例中,参照图4,所述步骤S10之前,还包括:Further, based on any of the foregoing embodiments, a third embodiment of the data processing method of the present application is proposed. In the third embodiment, referring to FIG. 4, before the step S10, it also includes:
步骤S001,获取所述网元设备与所述预设网络交互的网络数据的所有数据类型;Step S001, acquiring all data types of network data interacting between the network element device and the preset network;
数据类型可具体包括预设协议数据和非预设协议数据。其中预设协议数据为满足预设网络传输协议要求的网络数据。The data type may specifically include preset protocol data and non-preset protocol data. The preset protocol data is network data meeting the requirements of the preset network transmission protocol.
具体的,在网元设备首次加入网关设备时,可获取网元设备的设备类型。不同的设备类型对应设置有至少一种预设数据类型,设备类型所对应的预设数据类型按照该类型设备加入物联网后所需实现的具体功能进行确定,可由用户设定,也可由服务器自行配置。Specifically, when the network element device joins the gateway device for the first time, the device type of the network element device may be acquired. There are at least one preset data type corresponding to different device types. The preset data type corresponding to the device type is determined according to the specific functions that the device of this type needs to achieve after joining the Internet of Things. It can be set by the user or by the server itself configuration.
步骤S002,当所述数据类型包括非预设协议数据时,控制所述网元设备以所述预设协议接入网关设备。Step S002, when the data type includes non-preset protocol data, control the network element device to access the gateway device with the preset protocol.
通过上述方式,可网元设备保证需要在物联网中交互非预设协议数据时,网元设备可有效接入物联网,并且保证此类网元设备均是按照预设协议接入的,以实现设备的兼容。Through the above method, the network element device can ensure that when it is necessary to exchange non-preset protocol data in the Internet of Things, the network element device can effectively access the Internet of Things, and ensure that such network element devices are connected according to the preset protocol, so as to Achieve device compatibility.
进一步的,基于上述任一实施例,提出本申请数据处理方法第四实施例。在第四实施例中,参照图5,所述步骤S10之前,还包括:Further, based on any of the foregoing embodiments, a fourth embodiment of the data processing method of the present application is proposed. In the fourth embodiment, referring to FIG. 5, before the step S10, it also includes:
步骤S003,当网关设备生成所述预设信息时,确定所需生成的预设信息的信息类型;Step S003, when the gateway device generates the preset information, determine the information type of the preset information to be generated;
当所述信息类型为预设设备对应的预设信息时,执行步骤S004和步骤S005;当所述信息类型为非预设设备对应的预设信息时,执行步骤S006,步骤S007。When the information type is preset information corresponding to a preset device, execute steps S004 and S005; when the information type is preset information corresponding to a non-preset device, execute steps S006 and S007.
确定所需生成的预设信息的信息类型的方式可有多种。具体的,可判断是否接收到预设指令;当接收到所述预设指令时,确定所述信息类型为非预设设备对应的预设信息;当没接收到预设指令时,确定所述信息类型为预设设备对应的预设信息。预设指令具体指的是将第三方设备加入物联网的指令信息,可以是用户想将第三方设备加入物联网时,向网关设备发出。当网关设备接收到预设指令时,可触发网关设备开始生成新的预设信息,并确定所需生成的预设信息为非预设设备的预设信息。通过此方式,可使网关设备的定制范围可根据用户实际需求进行自由定制。There are many ways to determine the information type of the preset information to be generated. Specifically, it may be determined whether a preset instruction is received; when the preset instruction is received, it is determined that the information type is preset information corresponding to a non-preset device; when the preset instruction is not received, it is determined that the The information type is the preset information corresponding to the preset device. The preset instruction specifically refers to instruction information for adding a third-party device to the Internet of Things, which may be sent to the gateway device when the user wants to add the third-party device to the Internet of Things. When the gateway device receives the preset instruction, it can trigger the gateway device to start generating new preset information, and determine that the preset information to be generated is preset information of a non-preset device. In this way, the customization range of the gateway device can be freely customized according to the actual needs of users.
此外,网关设备也可定期从服务器更新预设信息,此时,网关设备生成预设信息时,并未接收到预设指令,则可确定所需生成的预设新为预设设备的预设信息。In addition, the gateway device can also periodically update the preset information from the server. At this time, when the gateway device generates the preset information, but does not receive the preset instruction, it can determine that the preset to be generated is the preset of the preset device information.
步骤S004,获取预设设备对应的预设配置信息;Step S004, acquiring preset configuration information corresponding to the preset device;
不同类型的预设设备对应设置有不同的预设配置信息。Different types of preset devices have different preset configuration information corresponding to settings.
步骤S005,将所述预设配置信息作为所述预设信息;Step S005, using the preset configuration information as the preset information;
其中,所述预设配置信息通过预设软件写入所述预设设备的设备信息中。Wherein, the preset configuration information is written into the device information of the preset device through preset software.
预设设备具体为预先配置的具有权限接入物联网的设备。在预设设备首次接入网关前,预设设备可安装有预设软件,预设软件可依据预设设备的设备类型获取对应的预设配置信息,并将预设配置信息写入该设备的设备信息中。The preset device is specifically a pre-configured device with permission to access the Internet of Things. Before the preset device connects to the gateway for the first time, the preset software can be installed on the preset device, and the preset software can obtain the corresponding preset configuration information according to the device type of the preset device, and write the preset configuration information into the device in the device information.
步骤S006,获取所述非预设设备的第二设备信息;Step S006, acquiring second device information of the non-preset device;
非预设设备具体为除预设设备以外的其他设备。其中,网关设备所接收到的预设指令中可包括第二设备新,第二设备信息可通过识别预设指令获取。The non-preset device specifically refers to other devices except the preset device. Wherein, the preset instruction received by the gateway device may include the second device new, and the second device information may be obtained by identifying the preset instruction.
步骤S007,将所述第二设备信息作为所述预设信息。Step S007, using the second device information as the preset information.
通过上述方式,可使定制范围内的预设设备在接入网关设备成为网元设备时,可有效接入物联网,实现与其他接入网关设备的兼容;此外,定制范围外的预设设备,也可通过将其第二设备信息提供给网关设备,扩展网关设备的定制范围,从而使网关设备可兼容更多不同的设备,并实现不同的设备有效接入物联网。Through the above method, the preset devices within the scope of customization can effectively access the Internet of Things when the access gateway device becomes a network element device, and achieve compatibility with other access gateway devices; in addition, the preset devices outside the scope of customization , it is also possible to expand the scope of customization of the gateway device by providing its second device information to the gateway device, so that the gateway device can be compatible with more different devices, and realize the effective access of different devices to the Internet of Things.
具体的,在第四实施例中,步骤S007后,获取所述网元设备的第二设备类型;关联所述第二设备类型与所述预设信息。通过此方式,可实现同一类型的设备只需一次在网关设备进行定制范围扩展,便可实现该类型的多个设备有效接入物联网并与其他设备兼容。Specifically, in the fourth embodiment, after step S007, the second device type of the network element device is obtained; and the second device type is associated with the preset information. In this way, the same type of device can be realized only once in the gateway device to expand the customized range, so that multiple devices of this type can effectively access the Internet of Things and be compatible with other devices.
需要说明的是,当数据处理方法包括步骤S001和步骤S002时,步骤S003至步骤S007在步骤S001之前执行。It should be noted that, when the data processing method includes step S001 and step S002, step S003 to step S007 are performed before step S001.
此外,本发明实施例还提出一种可读存储介质,所述可读存储介质上存储有数据处理程序,所述数据处理程序被处理器执行时实现如上数据处理方法任一实施例的相关步骤。In addition, an embodiment of the present invention also proposes a readable storage medium, on which a data processing program is stored, and when the data processing program is executed by a processor, the relevant steps in any embodiment of the above data processing method are implemented. .
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者系统不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者系统所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者系统中还存在另外的相同要素。It should be noted that, as used herein, the term "comprises", "comprises" or any other variation thereof is intended to cover a non-exclusive inclusion such that a process, method, article or system comprising a set of elements includes not only those elements, It also includes other elements not expressly listed, or elements inherent in the process, method, article, or system. Without further limitations, an element defined by the phrase "comprising a..." does not preclude the presence of additional identical elements in the process, method, article or system comprising that element.
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。The serial numbers of the above embodiments of the present invention are for description only, and do not represent the advantages and disadvantages of the embodiments.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在如上所述的一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,网关设备,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be implemented by means of software plus a necessary general-purpose hardware platform, and of course also by hardware, but in many cases the former is better implementation. Based on such an understanding, the technical solution of the present invention can be embodied in the form of a software product in essence or in other words, the part that contributes to the prior art, and the computer software product is stored in a storage medium (such as ROM/RAM) as described above. , magnetic disk, optical disk), including several instructions to enable a terminal device (which may be a mobile phone, computer, server, gateway device, or network device, etc.) to execute the methods described in various embodiments of the present invention.
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process conversion made by using the description of the present invention and the contents of the accompanying drawings, or directly or indirectly used in other related technical fields , are all included in the scope of patent protection of the present invention in the same way.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910779636.3A CN110401676B (en) | 2019-08-22 | 2019-08-22 | Gateway device, data processing method thereof, control device and storage medium |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201910779636.3A CN110401676B (en) | 2019-08-22 | 2019-08-22 | Gateway device, data processing method thereof, control device and storage medium |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN110401676A true CN110401676A (en) | 2019-11-01 |
| CN110401676B CN110401676B (en) | 2022-06-21 |
Family
ID=68329061
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201910779636.3A Active CN110401676B (en) | 2019-08-22 | 2019-08-22 | Gateway device, data processing method thereof, control device and storage medium |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN110401676B (en) |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101227504A (en) * | 2008-02-18 | 2008-07-23 | 华为技术有限公司 | A method and device for switching between protocol stacks |
| CN102448150A (en) * | 2011-12-30 | 2012-05-09 | 上海顶竹通讯技术有限公司 | Service processing system and method for multimode terminal |
| CN104660498A (en) * | 2015-03-17 | 2015-05-27 | 联想(北京)有限公司 | Gateway equipment and information processing method |
| CN105704105A (en) * | 2014-11-27 | 2016-06-22 | 华为技术有限公司 | Authentication method and access equipment |
| CN105915420A (en) * | 2016-06-17 | 2016-08-31 | 海信集团有限公司 | Adding method and device of smart home devices |
| CN106878459A (en) * | 2017-03-24 | 2017-06-20 | 深圳安邦科技有限公司 | The intelligent networking gateway implementation method and its equipment of a kind of self adaptation |
-
2019
- 2019-08-22 CN CN201910779636.3A patent/CN110401676B/en active Active
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101227504A (en) * | 2008-02-18 | 2008-07-23 | 华为技术有限公司 | A method and device for switching between protocol stacks |
| CN102448150A (en) * | 2011-12-30 | 2012-05-09 | 上海顶竹通讯技术有限公司 | Service processing system and method for multimode terminal |
| CN105704105A (en) * | 2014-11-27 | 2016-06-22 | 华为技术有限公司 | Authentication method and access equipment |
| CN104660498A (en) * | 2015-03-17 | 2015-05-27 | 联想(北京)有限公司 | Gateway equipment and information processing method |
| CN105915420A (en) * | 2016-06-17 | 2016-08-31 | 海信集团有限公司 | Adding method and device of smart home devices |
| CN106878459A (en) * | 2017-03-24 | 2017-06-20 | 深圳安邦科技有限公司 | The intelligent networking gateway implementation method and its equipment of a kind of self adaptation |
Also Published As
| Publication number | Publication date |
|---|---|
| CN110401676B (en) | 2022-06-21 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN107276864B (en) | Method, device and system for intelligent voice device to control household appliances | |
| US8656417B2 (en) | Interface for telecommunication services using uniform resource identifiers | |
| US20180063879A1 (en) | Apparatus and method for interoperation between internet-of-things devices | |
| WO2019011203A1 (en) | Device access method, device and system | |
| CN113159910B (en) | Method, device and system for notification | |
| CN105635063B (en) | Internet of Things communication protocol configuration method and device | |
| US20170257767A1 (en) | Method and device for joining network processing of sensor, network platform equipment and Internet of things gateway | |
| JP6644671B2 (en) | Device connection control method and device | |
| CN104335523A (en) | Access control method, client and server | |
| CN102137342A (en) | Message sending control method and relevant device and system | |
| CN107517238A (en) | A smart device control method, device and device for Internet of Things | |
| US9112883B2 (en) | Method of registering a mobile station with a social networking site | |
| CN110474825A (en) | Device access system, device access server method, application and device server | |
| CN103270731B (en) | System, method, network entity and device for connecting a device to a communication network | |
| CN107702274A (en) | Terminal control method, device and computer-readable recording medium | |
| CN110401676A (en) | Gateway and its data processing method, control device and storage medium | |
| CN112333062A (en) | Control method and control device for household equipment and computer readable storage medium | |
| CN104793984A (en) | Equipment modeling method and device and cloud platform | |
| CN101715183B (en) | Network access method and device | |
| CN110519258A (en) | Equipment accesses account control method, control device and readable storage medium storing program for executing | |
| CN107635229A (en) | A kind of method and apparatus shared WIFI | |
| CN118233869A (en) | Pairing binding method, device, electronic device and readable storage medium | |
| CN112019358A (en) | Network configuration method, device, equipment and system | |
| KR20140121571A (en) | System for intergrated authentication, method and apparatus for intergraged authentication thereof | |
| CN116846700A (en) | Intelligent equipment configuration and control system and intelligent equipment configuration and control method |
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 |