CN116349269A - Control method, device, equipment and storage medium of heterogeneous network equipment - Google Patents

Control method, device, equipment and storage medium of heterogeneous network equipment Download PDF

Info

Publication number
CN116349269A
CN116349269A CN202080106374.5A CN202080106374A CN116349269A CN 116349269 A CN116349269 A CN 116349269A CN 202080106374 A CN202080106374 A CN 202080106374A CN 116349269 A CN116349269 A CN 116349269A
Authority
CN
China
Prior art keywords
sub
equipment
network
gateway
request
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.)
Pending
Application number
CN202080106374.5A
Other languages
Chinese (zh)
Inventor
吕小强
张军
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
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 Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Publication of CN116349269A publication Critical patent/CN116349269A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application provides a control method, a control device and a storage medium of heterogeneous network equipment. In the scheme, the gateway equipment with heterogeneous gateway capability is used for establishing connection between the terminal equipment and the sub-equipment which are respectively communicated in the first network and the second network, when the terminal equipment needs to control the sub-equipment, the sub-equipment control request can be sent to the gateway equipment, the gateway equipment sends an operation request to the sub-equipment according to the sub-equipment control request, the sub-equipment is controlled, the control of equipment without network access is realized, and the technical scheme for heterogeneous network equipment control is provided.

Description

Control method, device, equipment and storage medium of heterogeneous network equipment Technical Field
The embodiment of the application relates to the technology of the internet of things, in particular to a control method, a device, equipment and a storage medium of heterogeneous network equipment.
Background
Along with the development of the Internet of things technology, the application field of the Internet of things technology relates to aspects, and the Internet of things technology is applied to the fields of infrastructure such as industry, agriculture, environment, traffic, logistics, security and the like, so that the intelligent development of the aspects is effectively promoted, limited resources are more reasonably used and distributed, and the industry efficiency and benefit are improved. The application in fields of home, medical health, education, finance, service industry, travel industry and the like which are closely related to life has great improvement in the aspects of service range, service mode, service quality and the like, and the application of the life quality of people to the Internet of things technology in the daily life of users is also gradually popularized. For example, in the internet of things technology such as smart home, different access devices are managed by using one internet of things gateway as various terminal devices, an access port of a sensing device and a protocol conversion center.
However, with the gradual development of technology, devices used by users and devices to be managed may belong to different networks, and in the prior art, only devices connected by the same network technology under the same gateway can be controlled and managed, and a control scheme for heterogeneous network devices is not provided yet.
Disclosure of Invention
The embodiment of the application provides a control method, a device, equipment and a storage medium of heterogeneous network equipment, and provides a technical scheme for controlling the equipment in the heterogeneous network.
In a first aspect, an embodiment of the present application may provide a method for controlling a heterogeneous network device, where the method is applied to a terminal device, and the method includes:
generating a sub-equipment control request, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of sub-equipment in a first network;
sending the sub-equipment control request to gateway equipment; the gateway equipment and the terminal equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
In a second aspect, an embodiment of the present application may provide a method for controlling a heterogeneous network device, applied to a gateway device, where the method includes:
Receiving a sub-equipment control request sent by a terminal equipment, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in a first network;
sending an operation request to the sub-equipment according to the sub-equipment control request; the gateway equipment and the terminal equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
In a third aspect, an embodiment of the present application may provide a method for controlling a heterogeneous network device, where the method is applied to a cloud service device, and the method includes:
receiving a sub-equipment authentication request sent by gateway equipment, wherein the sub-equipment authentication request comprises identification and identity information of sub-equipment;
authenticating the sub-equipment according to the sub-equipment authentication request, and generating an access identifier in a first network for the sub-equipment after the authentication is passed;
and sending the access identification of the sub-equipment in the first network to the gateway equipment.
In a fourth aspect, an embodiment of the present application may provide a control apparatus for a heterogeneous network device, including: the processing module, the sending module and the receiving module;
the processing module is used for generating a sub-equipment control request, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in a first network;
The sending module is used for sending the sub-equipment control request to gateway equipment; the gateway equipment and the control device of the heterogeneous network equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
In a fifth aspect, an embodiment of the present application may provide a control apparatus for a heterogeneous network device, including: the processing module, the receiving module and the sending module;
the receiving module is used for receiving a sub-equipment control request sent by the terminal equipment, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in the first network;
the sending module is used for sending an operation request to the sub-equipment according to the sub-equipment control request; the control device of the heterogeneous network device communicates with the terminal device through the first network, and the control device of the heterogeneous network device communicates with the sub-device through the second network.
In a sixth aspect, an embodiment of the present application may provide a control apparatus for a heterogeneous network device, including:
the receiving module is used for receiving a sub-equipment authentication request sent by the gateway equipment, wherein the sub-equipment authentication request comprises the identification and the identity information of the sub-equipment;
The processing module is used for authenticating the sub-equipment according to the sub-equipment authentication request and generating an access identifier in a first network for the sub-equipment after the authentication is passed;
and the sending module is used for sending the access identifier of the sub-equipment in the first network to the gateway equipment.
In a seventh aspect, embodiments of the present application may provide a terminal device, including:
a processor, a memory, a receiver, and a transmitter;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory, such that the processor performs the method for controlling a heterogeneous network device provided in the first aspect.
In an eighth aspect, embodiments of the present application may provide a gateway device, including:
a processor, a memory, a receiver, and a transmitter;
the memory stores computer-executable instructions;
the processor executes computer-executable instructions stored in the memory, such that the processor performs the method for controlling a heterogeneous network device provided in the second aspect.
In a ninth aspect, embodiments of the present application may provide a cloud service apparatus, including:
a processor, a memory, a receiver, and a transmitter;
The memory stores computer-executable instructions;
the processor executes the computer-executable instructions stored in the memory, so that the processor executes the method for controlling the heterogeneous network device provided in the third aspect.
In a tenth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the method for controlling a heterogeneous network device provided in the foregoing first aspect when the computer-executable instructions are executed by a processor.
In an eleventh aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the control method of the heterogeneous network device provided in the foregoing second aspect when the computer-executable instructions are executed by a processor.
In a twelfth aspect, embodiments of the present application may provide a computer-readable storage medium having stored therein computer-executable instructions for implementing the control method of the heterogeneous network device provided in the foregoing third aspect when the computer-executable instructions are executed by a processor.
In a thirteenth aspect, embodiments of the present application may provide a chip, including: the processing module is used for executing the control method of the heterogeneous network device provided by any one of the previous aspects.
In a fourteenth aspect, embodiments of the present application may provide a computer program product comprising a computer program which, when executed by a processor, implements the method for controlling a heterogeneous network device provided in any of the previous aspects.
According to the method, the device, the equipment and the storage medium for controlling the heterogeneous network equipment, in the scheme, the gateway equipment with the heterogeneous gateway capability is used for establishing connection between the terminal equipment and the sub-equipment which are respectively communicated in the first network and the second network, when the sub-equipment is required to be controlled, the terminal equipment can send a sub-equipment control request to the gateway equipment, the gateway equipment sends an operation request to the sub-equipment according to the sub-equipment control request, the sub-equipment is controlled, the control of equipment which does not need network access is realized, and the technical scheme for controlling the heterogeneous network equipment is provided.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, a brief description will be given below of the drawings that are needed in the embodiments or the prior art descriptions, and it is obvious that the drawings in the following description are some embodiments of the present application, and that other drawings can be obtained according to these drawings without inventive effort to a person skilled in the art.
Fig. 1 is an application scenario schematic diagram of a control method of a heterogeneous network device provided in an embodiment of the present application;
fig. 2 is a network architecture schematic diagram of a control method of a heterogeneous network device according to an embodiment of the present application;
fig. 3 is a flowchart of a first embodiment of a control method of a heterogeneous network device according to an embodiment of the present application;
fig. 4 is a schematic flow chart of a second embodiment of a control method of a heterogeneous network device provided in the embodiment of the present application;
fig. 5 is a schematic flow chart of a third embodiment of a control method of a heterogeneous network device provided in the embodiment of the present application;
fig. 6 is a flow chart of a fourth embodiment of a control method of a heterogeneous network device provided in the embodiment of the present application;
fig. 7 is a schematic structural diagram of a first embodiment of a control device of a heterogeneous network device according to an embodiment of the present application;
fig. 8 is a schematic structural diagram of a second embodiment of a control device of a heterogeneous network device according to the embodiment of the present application;
fig. 9 is a schematic structural diagram of a third embodiment of a control device of a heterogeneous network device provided in the embodiment of the present application;
fig. 10 is a schematic structural diagram of a terminal device according to the present embodiment;
fig. 11 is a schematic structural diagram of a gateway device according to the present embodiment;
fig. 12 is a schematic structural diagram of a cloud service device provided in this embodiment.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present application more clear, the technical solutions of the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
The terms first, second and the like in the description of embodiments of the present application, in the claims and in the above-described figures, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
In applications of the internet of things, the prior art does not provide a control scheme for devices in heterogeneous networks. Based on this, the present application provides a control scheme for heterogeneous network devices.
The whole idea of the scheme is based on the design of gateway equipment, the gateway equipment has a bridging function, and in the process of realizing the scheme, the inventor considers that the gateway equipment can be used as terminal equipment of a control end and bridging equipment among sub-equipment in a heterogeneous network to be controlled, and controls the sub-equipment through the gateway equipment.
Fig. 1 is an application scenario schematic diagram of a control method of a heterogeneous network device provided in an embodiment of the present application; fig. 2 is a network architecture schematic diagram of a control method of a heterogeneous network device according to the embodiment of the present application. As shown in fig. 1 and 2, the scene includes at least: a gateway device (also called gateway device) as a bridging device, a terminal device as a control end, and one or more sub-devices to be controlled. In this scenario, the communication network between the terminal device and the gateway device is different from the communication network between the gateway device and the sub-device.
Gateway devices support communication over networks of different protocols.
The terminal device may be a smart device capable of running an application program, such as a mobile phone, a tablet computer, or the like of the user.
The child device may be any device in an internet of things scenario, for example: the intelligent household appliances such as tablet personal computers, air conditioners, refrigerators, sound boxes and the like can also be intelligent household systems, vehicles and other equipment capable of establishing communication connection with the gateway.
In addition, the scene also comprises cloud service equipment, and the cloud service equipment can be called a cloud end, a cloud server or the like.
In a specific implementation of the solution of the present application, there is a Gateway Service on the device model of the Gateway (Gateway) device; that is, devices with gateway service have the ability to bridge the network access of other protocol devices. The Service identifies that the device on which it is installed has Gateway capability, the specific capabilities of which are as follows:
Figure PCTCN2020130938-APPB-000001
based on the above scenario, the technical scheme of the heterogeneous network device control method provided by the application is described below through several specific examples.
Fig. 3 is a flow chart of an embodiment one of a control method of a heterogeneous network device provided in an embodiment of the present application, as shown in fig. 3, in the implementation of this embodiment, three devices including a terminal device, a gateway device, and a sub-device are involved, where the terminal device and the gateway device communicate with each other through a first network, and the gateway device and the sub-device communicate with each other through a second network, where the first network and the second network are communication networks with different protocols. The control method of the heterogeneous network device specifically comprises the following steps:
S101: and generating a sub-equipment control request, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in the first network.
In this step, after the sub-device accesses the gateway device through the second network and performs configuration in the first network, the terminal device may obtain relevant information of the sub-device, and control the sub-device through the gateway device.
When the user needs to control the sub-equipment through the terminal equipment or the terminal equipment needs to control the sub-equipment according to a preset control command, a sub-equipment control request can be generated according to the operation of the user or the preset command. The request needs to include at least an access identifier, a service identifier, and an instance identifier of the sub-device in the first network.
In this scenario, it should be understood that a service refers to a separate set of functions that can be multiplexed at different types of application terminals, and that a service identity is a unique identity assigned to the service for use in controlling a subset of the devices. Alternatively, the same device may have the same two services.
Instance identification is used to identify methods, attributes, or events within a service. The attribute (property) is a minimum unit describing a state and a function of a terminal device (or an application terminal), and a method (action) is a specific function to implement a service, which cannot be accomplished by reading and writing of a single attribute. An event (event) is a specific information attribute identification of the terminal device actively reporting the hub. The operations, attributes, and events described above actually refer to different capabilities, and an instance identification (iid) may be set as a unique identification of different specific instances. I.e. the instance identity is the identity of any operation, or any attribute, or any event, that needs to be controlled.
In a specific implementation of this step, the terminal device needs to generate a sub-device control request, at least obtain a device capability set of the sub-device in the first network, and then generate the sub-device control request according to the device capability set of the sub-device in the first network.
The device capability set includes basic information of the child device and capability information, wherein the capability information includes attributes, methods and events. Specifically, the basic information of the sub-device includes the access identifier. Basic product information such as device type, manufacturer, model, etc. of the sub-devices can also be included.
S102: and sending a sub-device control request to the gateway device.
In this step, after the terminal device generates the sub-device control request, the sub-device control request is sent to the gateway device through the first network. The gateway equipment receives a sub-equipment control request sent by the terminal equipment, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in a first network; the instance identification is an identification of any of the capabilities of the method, attribute, and event.
S103: and sending an operation request to the sub-equipment according to the sub-equipment control request.
In this step, the gateway device may determine, after receiving the sub-device control request, a product identifier of the sub-device according to the access identifier included in the gateway device in the first network. Meanwhile, the gateway equipment can determine the operation content which is actually required to control the execution of the sub-equipment according to the service identifier and the instance identifier in the gateway equipment, and further generate an operation request.
After generating the operation request, the gateway device sends the operation request to the sub-device through the second network, thereby realizing the control of the heterogeneous network device.
Optionally, in a specific embodiment, the sub device executes the corresponding operation according to the operation request, and returns a response message to the gateway device through the second network after the execution is completed. The gateway device may convert the reply message into a reply message in the first network and return the reply message to the terminal device through the first network.
According to the heterogeneous network device control method, the gateway device with the heterogeneous gateway capability is used for establishing connection between the terminal device and the sub-device which are respectively communicated in the first network and the second network, when the terminal device needs to control the sub-device, the sub-device control request can be sent to the gateway device, the gateway device sends the operation request to the sub-device according to the sub-device control request, the sub-device is controlled, the control of the device which does not need network access is realized, and the technical scheme of heterogeneous network device control is provided.
Fig. 4 is a schematic flow chart of a second embodiment of a control method of a heterogeneous network device provided in the embodiment of the present application, as shown in fig. 4, where the method includes three processes of discovering a gateway device, scanning a sub-device, and configuring the sub-device in the control method of the heterogeneous network device, and the three processes may be continuously executed. And the method can be respectively executed under the triggering of a certain condition, and the scheme is not limited.
On the basis of the above embodiment, the control method of the heterogeneous network device provided in this embodiment includes the following steps:
1. process of discovering gateway device:
s201: the terminal device determines the gateway device.
In this step, at least the following ways may be implemented, where the terminal device is first required to discover a suitable gateway device, in preparation for controlling the sub-devices via the gateway device:
in a first way, a gateway-capable device is determined as the gateway device by a broadcast message for discovering the gateway-capable device in the first network.
The terminal device transmits a broadcast message and then determines a gateway-capable device as the gateway device based on the received response message.
In a specific implementation, the terminal device may locally send a broadcast message through an installed Application (APP), which is used to discover gateway-capable devices that are present in the local network, i.e. gateway devices. A generic shape interface needs to be defined here: getgateway device.
After any device in the network receives the broadcast message, determining whether the network has gateway capability or not, determining that the gateway device with gateway capability returns a response to the terminal device, and determining the gateway device according to the received response by the terminal device, wherein the number of the gateway devices can be one or more.
For example, the method can be used by: get map:// path/getgateway devicegateway device = 0, enabling discovery of gateway devices.
The second way, obtain the ability of the apparatus registered in said cloud service apparatus from the cloud service apparatus; and determining a device with gateway capability as the gateway device according to the capabilities of the plurality of devices.
In the scheme, the terminal equipment can interact with the cloud end, each equipment is registered in the cloud end after being accessed to the network, that is to say, the cloud end comprises capability information and the like of each gateway equipment, and the terminal equipment can acquire the capabilities of different equipment from the cloud service equipment, so that the gateway equipment is determined.
In a specific implementation manner, the terminal device can acquire the information from the cloud through the installed APP, and after each new device is registered to the cloud platform, the APP device can acquire the capability of the device from the cloud.
In the third mode, the terminal equipment can obtain a plurality of devices in the current network by sending a broadcast message, then directly establish connection with each target device, acquire the capability information of the device in a unicast mode, further find the gateway capability of the target device, and perceive the Type of the target device through the gateway Type attribute. By this method, it is perceived that those devices to which the APP can connect support gateway capability, thereby determining the gateway device.
2. Scanning sub-equipment process:
s202: a scan sub-device request is sent to the gateway device.
In this step, the terminal device needs to discover the sub-device, i.e., scan the sub-device, through the gateway device after confirming the gateway device. And the terminal equipment sends a scanning sub-equipment request for acquiring the product identification of the sub-equipment to be accessed to the network to the gateway through the first network.
And for the gateway equipment, receiving a scanning sub-equipment request sent by the terminal equipment.
In a specific implementation of this solution, it should be understood that if only one gateway device exists in the network, the terminal device only needs to send a request for scanning the sub-device to the gateway device, and if multiple gateway devices exist in the network, the terminal device needs to invoke all gateway devices to initiate a request for scanning the heterogeneous network device to be accessed.
S203: and according to the request of the scanning sub-equipment, calling the sub-equipment scanning function to scan the sub-equipment, and obtaining the product identification of the sub-equipment and the signal intensity of the sub-equipment.
In this step, after receiving the request of scanning the sub-device, the gateway device invokes the device scanning function to scan, so that the product identifier of the sub-device that is not yet accessed can be obtained, and meanwhile, the signal strength of each sub-device can be detected.
For example: the terminal equipment sends a scanning sub-equipment request to gateway equipment through the installed APP; the gateway device is invoked scanSubdevices action. The method is identified by Service ID and iid. The Gateway device initiates a scanning procedure, during which it can find the product identity of the child device that is not added to the heterogeneous network in which the Gateway is located, and the signal strength (Received Signal Strength Indication, rssi) obtained by the device to be connected to the heterogeneous network.
If the terminal equipment invokes the sub-equipment scanning function of the gateway equipment, the product identifiers and the corresponding rssi values of the sub-equipment to be accessed and different gateway equipment are obtained.
S204: and receiving the product identification of the sub-equipment and the signal strength of the sub-equipment returned by the gateway equipment.
In the step, all gateway devices return the scanned product identifiers and signal strengths of the sub-devices to the terminal device, and the scanning process of the sub-devices is completed.
3. Configuration of sub-device processes:
s205: and sending a sub-device authentication request to the gateway device.
In the step, after obtaining the product identifier and the signal strength of the sub-device returned by the gateway device, the terminal device sends a request for indicating the gateway device to authenticate the sub-device to the gateway device based on the product identifier and the signal strength of the sub-device.
In this scheme, it should be understood that if the terminal device invokes a plurality of gateway devices to scan the sub-devices, that is, if the number of the determined gateway devices is a plurality of gateway devices, the sub-device authentication request is sent to the gateway device with the highest signal strength acquired from the plurality of gateway devices according to the product identifier of the sub-device.
S206: and authenticating and accessing the sub-equipment according to the sub-equipment authentication request, and acquiring an access identifier, distributed by the cloud service equipment for the sub-equipment, in the first network.
In this step, after receiving the authentication request of the sub-device, the gateway device verifies the sub-device based on the product identifier and other basic information of the sub-device, and confirms the validity of the sub-device, and the sub-device also authenticates the cloud to complete the verification process of both sides, and the sub-device accesses the gateway device through another protocol, that is, the second network.
For example, the terminal device may select the Gateway device with the highest rssi obtained to perform the authentication sub-device setupSubdevice action (if only one Gateway device is directly selected). After the Gateway device receives the request, the sub device to be accessed in the heterogeneous network is firstly accessed to the heterogeneous network to which the Gateway belongs. Then initiating authentication between the sub-equipment and the access network, including authentication of the sub-equipment, authentication of the cloud end and the like; and (3) the total value, the authentication flow is that the cloud end confirms that the equipment is legal, and the equipment confirms that the cloud end is legal. After authentication is finished, the cloud end of the access network (i.e. the first network) allocates an access identifier to the sub-device, wherein the access identifier is an identifier of the sub-device in the network to be accessed (i.e. the first network).
In the process, a cloud (i.e. cloud service equipment) interacts with gateway equipment, and receives a sub-equipment authentication request sent by the gateway equipment, wherein the sub-equipment authentication request comprises identification and identity information of the sub-equipment; authenticating the sub-equipment according to the sub-equipment authentication request, and generating an access identifier in a first network for the sub-equipment after the authentication is passed; and sending the access identification of the sub-device in the first network to the gateway device.
S207: and sending the access identification of the sub-device in the first network to the terminal device.
The step is an optional step, after authentication and access processes of the sub-equipment are completed, the gateway equipment can also send the obtained access identifier of the sub-equipment in the first network to the terminal equipment, and the terminal equipment receives the access identifier of the sub-equipment in the first network, which is sent by the gateway equipment.
For example, after the gateway device performs the method, the access identifier of the sub-device in the first network obtained from the cloud is returned to the APP of the terminal device through the first network. The APP may use the access identity to confirm whether the child device was successfully accessed.
After completing the configuration access procedure of the sub-device, the gateway device needs to generate a virtual device on the gateway device for the sub-device, and the terminal device can indirectly control the sub-device by operating the virtual device, i.e. the virtual device can convert the message between the first network and the second network. Or the gateway device generates a device capability set (profile) capable of being identified by the first network for the sub-device, that is, a capability description file, where the profile includes basic information of the sub-device and capability information, and specifically, the basic information of the sub-device includes at least one of information of an access identifier, a manufacturer, a product category, a model, and the like in the first network, and the capability information includes an attribute, a method, an event, and the like. The process is described below by way of specific embodiments.
Fig. 5 is a schematic flow chart of a third embodiment of a method for controlling heterogeneous network devices provided in the embodiments of the present application, as shown in fig. 5, because a capability set of a sub-device in a first network needs to be obtained when a subsequent terminal device controls the sub-device, a terminal device of the capability set of the device may be obtained from a gateway device, or may also be directly obtained by interaction with a cloud. The present embodiment therefore briefly introduces a procedure after access of a child device, including obtaining a capability set of the child device on a first network and creation and status update of a shadow device.
On the basis of the above embodiment, after authenticating and accessing the sub-device, the control method of the heterogeneous network device further includes the following steps:
1. the process of acquiring the capability set of the sub-device in the first network:
s301: and generating the device capability set of the sub-device in the first network according to the device type of the sub-device and the device capability set in the second network.
In this scheme, the gateway device has two ways of acquiring the device capability set of the sub-device in the first network device, and the gateway device may locally generate the device capability set in the first network according to the device type of the sub-device and the information such as the device capability set of the sub-device in the second network.
In this scheme, the gateway device may complete the generation of the capability set of the sub-device in the current protocol, i.e. the first network, according to the device type of the sub-device. In particular, the present stage mainly relates to ZigBee devices and Bluetooth (BT) devices, and matching of the ZigBee devices or BT devices with the device types in the first building is achieved by generating a device capability set in the first network. And (3) corresponding the property in the second network to the property in the service in the first network, determining the service identifier belonging to the first network, and correspondingly generating unique identifiers such as specific attributes, events, methods and the like to obtain the capability information.
Another way may be to send the related content to the cloud, where the cloud generates the device capability set, specifically, steps S302-S304.
S302: and sending the device type of the sub-device and the device capability set of the sub-device in the second network to the cloud service device.
In the step, the gateway device sends a capability set generation request to the cloud service device, and the cloud service device receives the capability set generation request sent by the gateway device, wherein the capability set generation request comprises the device type of the sub-device and the device capability set of the sub-device in the second network.
S303: a device capability set in the first network is generated for the child device according to the capability set generation request.
In this step, the cloud device generates a corresponding device capability set in the first network according to the received information, the access identifier of the sub-device in the first network and the capability information in the second network, where the device capability set of the sub-device in the first network includes basic information and capability information of the sub-device, the capability information includes an attribute, a method and an event, and the basic information of the sub-device includes the access identifier in the first network.
S304: the device capability set of the sub-device in the first network is sent to the gateway device.
In the step, the cloud server equipment returns the generated equipment capability set of the sub-equipment in the first network to the gateway equipment, and the gateway equipment receives the equipment capability set of the sub-equipment in the first network returned by the cloud service equipment.
Optionally, in this embodiment, the gateway device may further generate the virtual device locally according to a device capability set of the sub-device in the first network.
Based on the above scheme, in a specific example, the Gateway device automatically generates a device capability set (profile) identifiable by the first network locally according to the device type of the child device; the new profile should contain the device type of the sub device, the service (service) identifier and the instance identifier in the service, and a unique instance identifier is allocated to each attribute, method and event.
Or the Gateway device acquires the device capability set identifiable by the sub-device in the first network and the access identifier of the sub-device from the cloud. The request needs to carry the device type of the sub-device and the device capability set (profile) identifiable by the sub-device in the second network; the cloud generates a corresponding profile identifiable by the first network according to the acquired profile identifiable by the second network and sends the profile identifiable by the first network to gateway. Gateway can generate a virtual device on it based on the received information. After the cloud platform generates the new profile, the shadow device may also be generated according to an instruction of automatically generating the shadow device or waiting for Gateway, where the shadow device is used as a mapping of the sub-device in the first network.
2. Shadow device creation and status update procedure:
s401: and generating a shadow device mapped by the child device in the first network according to the device capability set of the child device in the first network.
S402: the current state of the child device is obtained.
S403: and sending the current state of the child device to the cloud service device.
And for the cloud service equipment, receiving the current state of the sub-equipment sent by the gateway equipment.
S403: and updating the state of the shadow equipment according to the current state of the sub-equipment.
In the above step, after obtaining the device capability set of the sub-device in the first network, the cloud service device may locally generate mapping of the sub-device in the first network, that is, the shadow device, and in the subsequent process, the gateway device interacts with the sub-device through the second network, so that the current state of the sub-device may be obtained and sent to the cloud service device to update the state of the shadow device.
For example, if the Gateway device generates a device capability set of a child device in the first network locally, a request for creating a shadow device is sent to the cloud specific interface; the request carries the generated device capability set (profile) of the child device in the first network, wherein the profile contains basic information of the device and capability information (method, attribute and event) of the device. After the cloud creates the shadow device, the Gateway device obtains the current state of the sub-device and synchronizes the current state with the shadow device. Setting a full-quantity update mark as true when full-quantity update is performed; the full update flag needs to be turned off when a later state changes.
In summary, the gateway device and the cloud service device both acquire the device capability set of the sub-device in the first network, and when the terminal device controls the sub-device, the device capability set of the sub-device in the first network may be acquired from the gateway device or the cloud service device.
Fig. 6 is a flow chart of a fourth embodiment of a method for controlling heterogeneous network devices according to the embodiment of the present application, as shown in fig. 6, on the basis of any one of the embodiments described above, after the access of a sub-device is completed, a terminal device needs to obtain several other pieces of information, and then the sub-device may be controlled by a gateway device.
Specifically, the method for controlling heterogeneous network devices provided in this embodiment includes the following steps:
1. the process of obtaining the list of sub-devices:
s501: and sending a list acquisition request to the gateway device.
In this step, the list acquisition request sent by the terminal device to the gateway device is used to acquire a device list of the heterogeneous network bridged by the gateway device.
S502: and acquiring the sub-device list according to the list acquisition request.
After receiving the list acquisition request, the gateway device accesses the gateway device through a network different from the first network, registers the gateway device in the cloud end, gathers one or more pieces of sub-devices with access identifiers in the first network device, and obtains a sub-device list, wherein the sub-device list comprises at least one access identifier of a sub-device belonging to a different network from the terminal device.
S503: and sending the child device list to the terminal device.
After the gateway device obtains the sub-device list, it sends it to the terminal device through a network.
In summary, before the terminal device controls the sub-device, it needs to interact with the gateway to obtain the sub-device list, so that the user selects the sub-device to be controlled when controlling or setting the control command.
For example, an APP installed on a terminal device may obtain a list of heterogeneous network devices for which bridging is responsible, i.e., a child device list, from a Gateway device. The child device is a heterogeneous network device for which the Gateway device is responsible for bridging. Specifically, the method can be realized by calling a getSubDeviceList method.
2. The process of acquiring the device capability set:
s504: a device capability set acquisition request is sent to a gateway device.
The device capability set acquisition request is for acquiring a device capability set of the child device in the first network.
S505: and acquiring the device capability set of the sub-device in the first network according to the device capability set acquisition request.
In this step, after receiving the device capability set obtaining request, if the gateway device has previously obtained the device capability set of the sub-device in the first network device, the gateway device may directly obtain the device capability set of the sub-device in the first network from the locally stored content. Alternatively, the device capability set of the sub-device in the first network may be obtained in two manners provided in the embodiment shown in fig. 5, where the two manners of obtaining the device capability set in fig. 5 are generally performed before the terminal device obtains the device capability set, but in a specific implementation, the method is not limited to being performed when the terminal device needs to obtain the device capability set. The present solution is not limited in this regard.
In this solution, it should be understood that the device capability set of the sub-device in the first network includes basic information and capability information of the sub-device, where the capability information includes attributes, methods and events, and the basic information of the sub-device includes an access identifier in the first network.
S506: and transmitting the device capability set of the sub-device in the first network to the terminal device.
The gateway device returns the acquired device capability set to the terminal device through the first network, and the terminal device receives the device capability set of the sub-device to be controlled in the first network.
In summary, before the sub-device is controlled, the terminal device may interact with the gateway to obtain the device capability set of the sub-device in the first network, so that the user selects the sub-device to be controlled when controlling or setting the control command.
For example, an APP on a terminal device may also send a request to a Gateway device to obtain a heterogeneous network device capability set. The Gateway device replies to the APP according to the device capability set (Profile) that can be identified by the first network, obtained by the steps disclosed in the previous embodiments. Profile contains: basic information (access identification, information of manufacturer, etc.) and capability information (attribute, method, event) of the child device.
3. The sub-equipment control process comprises the following steps:
s507: and sending a sub-device control request to the gateway device.
S508: according to the sub-equipment control request, an operation request is sent to the sub-equipment
The sub-device control process is similar to the specific implementation process in the embodiment shown in fig. 3, and will not be described here again.
The virtual device in the gateway device may convert the received sub-device control request into an operation request for the sub-device and send the operation request to the sub-device. The sub-equipment executes corresponding operation according to the operation request, and returns a response message to the gateway equipment after the sub-equipment completes the execution. The virtual device in the gateway device may convert the response message into a response message in the first network and return the response message to the terminal device through the first network.
In summary, the method for controlling heterogeneous network devices provided in each embodiment of the present application relates to a process in which a terminal device discovers a gateway device, scans a sub-device, accesses the sub-device for authentication, obtains a sub-device list and a device capability set, and controls the sub-device in the heterogeneous network through the gateway device. The gateway equipment with heterogeneous gateway capability establishes connection between terminal equipment and sub-equipment which are respectively communicated in a first network and a second network, when the terminal equipment needs to control the sub-equipment, the gateway equipment can send an operation request to the sub-equipment according to the sub-equipment control request by sending the sub-equipment control request to the sub-equipment, the sub-equipment is controlled, the control of equipment which does not need network access is realized, and the technical scheme for controlling the heterogeneous network equipment is provided. Furthermore, a solution for upgrading the equipment in a cross-platform access scene of the equipment is also provided.
Fig. 7 is a schematic structural diagram of a first embodiment of a control apparatus for a heterogeneous network device according to an embodiment of the present application, and as shown in fig. 7, a control apparatus 10 for a heterogeneous network device includes: a processing module 11, a transmitting module 12 and a receiving module 13;
the processing module 11 is configured to generate a sub-device control request, where the sub-device control request includes an access identifier, a service identifier, and an instance identifier of a sub-device in a first network;
the sending module 12 is configured to send the sub-device control request to a gateway device; the gateway equipment and the control device of the heterogeneous network equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
Optionally, the instance identification is used to identify methods, attributes or events within a service.
On the basis of the above embodiment, optionally, the processing module 11 is specifically configured to:
generating a sub-equipment control request according to the operation of a user and a pre-acquired equipment capacity set of the sub-equipment in the first network;
the device capability set comprises basic information and capability information of the sub-device, wherein the capability information comprises attributes, methods and events, and the basic information of the sub-device comprises the access identifier.
Alternatively, in another embodiment of the control device 10 of the heterogeneous network device,
the sending module 12 is further configured to send a list obtaining request to the gateway device; the list acquisition request is used for acquiring a device list of the heterogeneous network bridged by the gateway device;
the receiving module 13 is further configured to receive the subset list sent by the gateway device, where the subset list includes at least one access identifier of a subset that belongs to a different network than the control device of the heterogeneous network device.
Alternatively, in another embodiment of the control device 10 of the heterogeneous network device,
the sending module 12 is further configured to send a device capability set obtaining request to the gateway device, where the device capability set obtaining request is used to obtain a device capability set of the sub-device in the first network;
the receiving module 13 is further configured to receive a device capability set of the sub-device in the first network, where the device capability set is sent by the gateway device.
Alternatively, in another embodiment of the control device 10 of the heterogeneous network device,
the sending module 12 is further configured to send a scanning sub-device request to the gateway device, where the scanning sub-device request is used to obtain a product identifier of a sub-device to be logged into the network;
The receiving module 13 is further configured to receive a product identifier of the sub-device and a signal strength of the sub-device returned by the gateway device;
the sending module 12 is further configured to send a sub-device authentication request to the gateway device according to the identifier of the sub-device and the signal strength of the sub-device, where the sub-device authentication request is used to instruct the gateway device to authenticate the sub-device.
Optionally, the receiving module 13 is further configured to receive an access identifier of the sub-device in the first network, where the access identifier is sent by the gateway device.
Alternatively, in another embodiment of the control device 10 of the heterogeneous network device,
the processing module 11 is further configured to determine a gateway-capable device as the gateway device through a broadcast message, where the broadcast message is used to discover the gateway-capable device in the first network;
or alternatively, the process may be performed,
the processing module 11 is further configured to obtain, from a cloud service device, a capability of a device registered with the cloud service device;
the processing module 11 is further configured to determine a device with gateway capability as the gateway device according to the capabilities of the plurality of devices.
Optionally, in another embodiment of the control apparatus 10 of a heterogeneous network device, if the determined number of gateway devices is a plurality of gateway devices, the sending module 12 is specifically configured to:
And sending the sub-equipment authentication request to the gateway equipment with the highest signal strength acquired from the gateway equipment according to the identification of the sub-equipment.
The control device of the heterogeneous network device provided in any of the foregoing embodiments is configured to execute the technical solution on the terminal device (APP) side in any of the foregoing method embodiments, and its implementation principle and technical effect are similar, and are not described herein again.
Fig. 8 is a schematic structural diagram of a second embodiment of a control device of a heterogeneous network device according to the embodiment of the present application, and as shown in fig. 8, a control device 20 of the heterogeneous network device includes: a processing module 21, a receiving module 22 and a transmitting module 23;
the receiving module 22 is configured to receive a sub-device control request sent by a terminal device, where the sub-device control request includes an access identifier of a sub-device in a first network, a service identifier, and an instance identifier;
the sending module 23 is configured to send an operation request to the sub-device according to the sub-device control request; the control device of the heterogeneous network device communicates with the terminal device through the first network, and the control device of the heterogeneous network device communicates with the sub-device through the second network.
Optionally, the instance identification is used to identify methods, attributes or events within a service.
Optionally, in another specific embodiment of the control apparatus 20 of the heterogeneous network device, the receiving module 22 is further configured to receive a list obtaining request sent by the terminal device, where the list obtaining request is used to obtain a device list of the heterogeneous network bridged by the gateway device;
the processing module 21 is configured to obtain a sub-device list according to the list obtaining request, where the sub-device list includes at least one access identifier of a sub-device that is authenticated to access by the gateway device and belongs to a different network from the terminal device;
the sending module 23 is further configured to send the subset list to the terminal device.
Alternatively, in another embodiment of the control means 20 of the heterogeneous network device,
the receiving module 22 is further configured to receive a device capability set acquisition request sent by the terminal device, where the device capability set acquisition request is used to acquire a device capability set of the sub-device in the first network;
the processing module 21 is further configured to obtain, according to the device capability set obtaining request, a device capability set of the sub-device in the first network, where the device capability set includes basic information of the sub-device and capability information, and the capability information includes an attribute, a method, and an event, and the basic information of the sub-device includes an access identifier in the first network;
The sending module 23 is further configured to send a device capability set of the sub-device in the first network to the terminal device.
Alternatively, in another embodiment of the control means 20 of the heterogeneous network device,
the receiving module 22 is further configured to receive a scan sub-device request sent by the terminal device;
the processing module 21 is further configured to invoke a sub-device scanning function to perform sub-device scanning according to the scanning sub-device request, so as to obtain a product identifier of the sub-device and a signal strength of the sub-device;
the sending module 23 is further configured to send the product identifier of the sub-device and the signal strength of the sub-device to the terminal device;
the receiving module 22 is further configured to receive a sub-device authentication request sent by the terminal device;
the processing module 21 is further configured to authenticate and access the sub-device according to the sub-device authentication request, and obtain an access identifier in the first network, which is allocated to the sub-device by the cloud service device.
Optionally, in another specific embodiment of the control device 20 of the heterogeneous network device, the sending module 23 is further configured to send an access identifier of the sub-device in the first network to the terminal device.
Optionally, in another embodiment of the control device 20 of the heterogeneous network device, the processing module 21 is specifically configured to:
and generating the device capability set of the sub-device in the first network according to the device type of the sub-device and the device capability set in the second network.
Optionally, in another specific embodiment of the control apparatus 20 of the heterogeneous network device, the sending module 23 is further configured to send, to the cloud service device, a device type of the sub-device and a device capability set of the sub-device in the second network;
the receiving module 22 is further configured to receive a device capability set of the sub-device in the first network returned by the cloud service device.
Optionally, in another specific embodiment of the control apparatus 20 of the heterogeneous network device, the processing module 21 is further configured to generate a virtual device according to a device capability set of the sub-device in the first network.
Optionally, in another specific embodiment of the control device 20 of the heterogeneous network device, the receiving module 22 is further configured to obtain a current state of the sub-device;
the sending module 23 is further configured to send the current state of the sub-device to the cloud service device.
The control device of the heterogeneous network device provided in any of the foregoing embodiments is configured to execute the technical solution on the gateway device (gateway) side in any of the foregoing method embodiments, and its implementation principle and technical effects are similar, and are not repeated herein.
Fig. 9 is a schematic structural diagram of a third embodiment of a control device of a heterogeneous network device according to the embodiment of the present application, and as shown in fig. 9, a control device 30 of the heterogeneous network device includes:
a receiving module 31, configured to receive a sub-device authentication request sent by a gateway device, where the sub-device authentication request includes an identifier and identity information of a sub-device;
a processing module 32, configured to authenticate the child device according to the child device authentication request, and generate an access identifier in a first network for the child device after the authentication is passed;
and a sending module 33, configured to send an access identifier of the sub-device in the first network to the gateway device.
Optionally, the receiving module 31 is further configured to receive a capability set generation request sent by the gateway device, where the capability set generation request includes a device type of the sub-device and a device capability set of the sub-device in a second network;
The processing module 32 is further configured to generate, according to the capability set generation request, a device capability set in the first network for the sub-device, where the device capability set includes basic information of the sub-device and capability information, and the capability information includes an attribute, a method, and an event, and the basic information of the sub-device includes an access identifier in the first network;
the sending module 33 is further configured to send a device capability set of the sub-device in the first network to the gateway device.
Optionally, in another specific implementation of the control apparatus 30 of the heterogeneous network device, the processing module 32 is further configured to generate a shadow device mapped by the sub-device in the first network according to a device capability set of the sub-device in the first network.
Optionally, in another specific implementation of the control apparatus 30 of the heterogeneous network device, the receiving module 31 is further configured to receive a current state of the sub-device sent by the gateway device;
the processing module 32 is further configured to update the state of the shadow device according to the current state of the child device.
The control device of the heterogeneous network device provided in any of the foregoing embodiments is configured to execute the technical solution on the cloud service device (cloud) side in any of the foregoing method embodiments, and the implementation principle and the technical effect are similar, and are not repeated herein.
Fig. 10 is a schematic structural diagram of a terminal device provided in this embodiment, as shown in fig. 10, the terminal device 100 includes:
a processor 111, a memory 112, a receiver 113, and a transmitter 114;
the memory 112 stores computer-executable instructions;
the processor 111 executes the computer-executable instructions stored in the memory 112, so that the processor 111 executes the terminal device side technical solution in any of the foregoing method embodiments.
Fig. 10 is a simple design of a terminal device, and the number of processors and memories in the terminal device is not limited in the embodiment of the present application, and fig. 10 only uses the number 1 as an example.
In a specific implementation of the terminal device shown in fig. 10, the memory, the processor, the receiver and the transmitter may be connected by a bus, or may be connected by other means. Alternatively, the memory may be integrated within the processor. In addition, the terminal equipment provided by the application also comprises other devices such as a communication interface, and the scheme is not limited.
Fig. 11 is a schematic structural diagram of a gateway device provided in this embodiment, as shown in fig. 11, the gateway device 200 includes:
a processor 211, a memory 212, a receiver 213, and a transmitter 214;
The memory 212 stores computer-executable instructions;
the processor 211 executes the computer-executable instructions stored in the memory 212, so that the processor 211 executes the gateway device side technical solution in any of the foregoing method embodiments.
Fig. 11 is a simple design of a gateway device, and the number of processors and memories in the gateway device is not limited in the embodiment of the present application, and fig. 11 is only taken as an example with the number 1.
In one specific implementation of the gateway device shown in fig. 11, the memory, the processor, the receiver, and the transmitter may be connected by a bus, or may be connected by other means. Alternatively, the memory may be integrated within the processor. In addition, the gateway device provided by the application further comprises other devices such as a communication interface, and the scheme is not limited.
Fig. 12 is a schematic structural diagram of a cloud service apparatus provided in this embodiment, and as shown in fig. 12, the cloud service apparatus 300 includes:
a processor 311, a memory 312, a receiver 313, and a transmitter 314;
the memory 312 stores computer-executable instructions;
the processor 311 executes the computer-executed instructions stored in the memory 312, so that the processor 311 executes the cloud service device side technical solution in any of the foregoing method embodiments.
Fig. 12 is a simple design of a gateway device, and the number of processors and memories in a cloud service device is not limited in the embodiment of the present application, and fig. 12 only uses the number 1 as an example for illustration.
In a specific implementation of the cloud service apparatus shown in fig. 12, the memory, the processor, the receiver, and the transmitter may be connected through a bus, or may be connected through another method. Alternatively, the memory may be integrated within the processor. In addition, the cloud service equipment provided by the application further comprises other devices such as a communication interface, and the scheme is not limited.
In the alternative, the processor may be a chip in a specific implementation of any of the above devices.
The embodiment of the application also provides a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the computer executable instructions are executed by a processor, the computer executable instructions are used for realizing the technical scheme of the terminal equipment in any method embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein computer executable instructions are stored in the computer readable storage medium, and when the computer executable instructions are executed by a processor, the computer executable instructions are used for realizing the technical scheme of the gateway device in any method embodiment.
The embodiment of the application also provides a computer readable storage medium, wherein computer execution instructions are stored in the computer readable storage medium, and when the computer execution instructions are executed by a processor, the computer execution instructions are used for realizing the technical scheme of the cloud service equipment in any method embodiment.
The embodiment of the application also provides a chip, which comprises: the processing module is used for realizing the scheme of the terminal equipment in any method embodiment.
The embodiment of the application also provides a chip, which comprises: the processing module is used for realizing the scheme of the gateway equipment in any method embodiment.
The embodiment of the application also provides a chip, which comprises: the processing module is used for realizing the scheme of the cloud service equipment in any method embodiment.
Further, in the implementation of any of the above chips, the chip further includes a storage module (e.g., a memory), where the storage module is configured to store instructions, and the processing module is configured to execute the instructions stored in the storage module, and execution of the instructions stored in the storage module causes the processing module to execute the technical solutions of the foregoing respective devices.
The embodiment of the application also provides a program, which when executed by a processor, is used for implementing the scheme of the terminal equipment in any of the foregoing method embodiments.
The embodiment of the application further provides a program, which when executed by a processor, is used for implementing the gateway device in any of the foregoing method embodiments.
The embodiment of the application also provides a program, which is used for realizing the scheme of the cloud service equipment in any of the method embodiments when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the technical scheme of the terminal equipment in the embodiment of the method when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, wherein the computer program realizes the technical scheme of the gateway device in the embodiment of the method when being executed by a processor.
The embodiment of the application also provides a computer program product, which comprises a computer program, and the computer program realizes the technical scheme of the cloud service equipment in the embodiment of the method when being executed by a processor.
In the several embodiments provided in this application, it should be understood that the disclosed apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, the division of the modules is merely a logical function division, and there may be additional divisions when actually implemented, for example, multiple modules may be combined or integrated into another system, or some features may be omitted or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed may be through some interfaces, indirect coupling or communication connection of modules, electrical, mechanical, or other forms.
In the specific implementation of any of the above devices, it should be understood that the processor may be a central processing unit (english: central Processing Unit, abbreviated as CPU), or may be another general purpose processor, a digital signal processor (english: digital Signal Processor, abbreviated as DSP), an application specific integrated circuit (english: application Specific Integrated Circuit, abbreviated as ASIC), or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like. The steps of a method disclosed in connection with the present application may be embodied directly in a hardware processor or in a combination of hardware and software modules within a processor.
All or part of the steps for implementing the method embodiments described above may be performed by hardware associated with program instructions. The foregoing program may be stored in a readable memory. The program, when executed, performs steps including the method embodiments described above; and the aforementioned memory (storage medium) includes: read-only memory (ROM), RAM, flash memory, hard disk, solid state disk, magnetic tape, floppy disk, optical disk, and any combination thereof.

Claims (54)

  1. A method for controlling heterogeneous network devices, applied to a terminal device, the method comprising:
    generating a sub-equipment control request, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of sub-equipment in a first network;
    sending the sub-equipment control request to gateway equipment; the gateway equipment and the terminal equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
  2. The method of claim 1, wherein the instance identification is used to identify methods, attributes, or events within a service.
  3. The method according to claim 1 or 2, wherein generating the sub-device control request comprises:
    generating a sub-equipment control request according to a pre-acquired equipment capacity set of the sub-equipment in the first network;
    the device capability set comprises basic information and capability information of the sub-device, wherein the capability information comprises attributes, methods and events, and the basic information of the sub-device comprises the access identifier.
  4. A method according to claim 3, characterized in that the method further comprises:
    Sending a list acquisition request to the gateway equipment, wherein the list acquisition request is used for acquiring an equipment list of a heterogeneous network bridged by the gateway equipment;
    and receiving the sub-equipment list sent by the gateway equipment, wherein the sub-equipment list comprises at least one access identifier of sub-equipment belonging to different networks with the terminal equipment.
  5. The method according to claim 3 or 4, characterized in that the method further comprises:
    sending a device capability set acquisition request to the gateway device, wherein the device capability set acquisition request is used for acquiring a device capability set of the sub-device in the first network;
    and receiving a device capability set of the sub-device in the first network, which is sent by the gateway device.
  6. The method according to any one of claims 1 to 5, further comprising:
    sending a scanning sub-equipment request to the gateway equipment, wherein the scanning sub-equipment request is used for acquiring a product identifier of the network sub-equipment to be accessed;
    receiving a product identifier of the sub-equipment and the signal strength of the sub-equipment returned by the gateway equipment;
    and sending a sub-equipment authentication request to gateway equipment according to the product identifier of the sub-equipment and the signal strength of the sub-equipment, wherein the sub-equipment authentication request is used for indicating the gateway equipment to authenticate the sub-equipment.
  7. The method of claim 6, wherein the method further comprises:
    and receiving an access identifier of the sub-equipment in the first network, which is sent by the gateway equipment.
  8. The method according to claim 6 or 7, wherein before said sending a scan sub-device request to the gateway device, the method further comprises:
    determining a gateway-capable device as the gateway device by a broadcast message, the broadcast message being used to discover gateway-capable devices in the first network;
    or alternatively, the process may be performed,
    acquiring the capacity of equipment registered in cloud service equipment from the cloud service equipment;
    and determining a device with gateway capability as the gateway device according to the capabilities of the plurality of devices.
  9. The method according to any one of claims 6 to 8, wherein if the determined number of gateway devices is a plurality, the sending a sub-device authentication request to the gateway device according to the identity of the sub-device and the signal strength of the sub-device includes:
    and sending the sub-equipment authentication request to the gateway equipment with the highest signal strength acquired from the gateway equipment according to the product identification of the sub-equipment.
  10. A method for controlling heterogeneous network devices, applied to a gateway device, the method comprising:
    receiving a sub-equipment control request sent by a terminal equipment, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in a first network;
    sending an operation request to the sub-equipment according to the sub-equipment control request; the gateway equipment and the terminal equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
  11. The method of claim 10, wherein the instance identification is used to identify methods, attributes, or events within a service.
  12. The method according to claim 10 or 11, characterized in that the method further comprises:
    receiving a list acquisition request sent by the terminal equipment, wherein the list acquisition request is used for acquiring an equipment list of a heterogeneous network bridged by the gateway equipment;
    acquiring a sub-equipment list according to the list acquisition request, wherein the sub-equipment list comprises at least one access identifier of sub-equipment which is authenticated and accessed by the gateway equipment and belongs to different networks with the terminal equipment;
    And sending the sub-equipment list to the terminal equipment.
  13. The method according to any one of claims 10 to 12, further comprising:
    receiving a device capability set acquisition request sent by the terminal device, wherein the device capability set acquisition request is used for acquiring a device capability set of the sub-device in the first network;
    acquiring a device capability set of the sub-device in the first network according to the device capability set acquisition request, wherein the device capability set comprises basic information and capability information of the sub-device, the capability information comprises a method, operation and event, and the basic information of the sub-device comprises an access identifier in the first network;
    and transmitting the device capability set of the sub-device in the first network to the terminal device.
  14. The method according to any one of claims 10 to 13, further comprising:
    receiving a scanning sub-equipment request sent by the terminal equipment;
    according to the request of the scanning sub-equipment, a sub-equipment scanning function is called to scan the sub-equipment, and the product identification of the sub-equipment and the signal intensity of the sub-equipment are obtained;
    Transmitting the product identification of the sub-equipment and the signal intensity of the sub-equipment to the terminal equipment;
    receiving a sub-equipment authentication request sent by the terminal equipment;
    and authenticating and accessing the sub-equipment according to the sub-equipment authentication request, and acquiring an access identifier, distributed by the cloud service equipment for the sub-equipment, in the first network.
  15. The method of claim 14, wherein the method further comprises:
    and sending the access identifier of the sub-equipment in the first network to the terminal equipment.
  16. The method of claim 13, wherein the obtaining the set of device capabilities of the child device in the first network comprises:
    and generating the device capability set of the sub-device in the first network according to the device type of the sub-device and the device capability set in the second network.
  17. The method of claim 13, wherein the obtaining the set of device capabilities of the child device in the first network comprises:
    sending a capability set generation request to the cloud service device, wherein the capability set generation request comprises the device type of the sub-device and the device capability set of the sub-device in the second network;
    And receiving a device capability set of the sub-device in the first network returned by the cloud service device.
  18. The method according to claim 16 or 17, characterized in that the method further comprises:
    and generating virtual equipment according to the equipment capability set of the sub equipment in the first network.
  19. The method according to any one of claims 16 to 18, further comprising:
    acquiring the current state of the sub-equipment;
    and sending the current state of the sub-equipment to the cloud service equipment.
  20. A method for controlling heterogeneous network devices, which is applied to cloud service devices, the method comprising:
    receiving a sub-equipment authentication request sent by gateway equipment, wherein the sub-equipment authentication request comprises identification and identity information of sub-equipment;
    authenticating the sub-equipment according to the sub-equipment authentication request, and generating an access identifier in a first network for the sub-equipment after the authentication is passed;
    and sending the access identification of the sub-equipment in the first network to the gateway equipment.
  21. The method of claim 20, wherein the method further comprises:
    receiving a capability set generation request sent by the gateway device, wherein the capability set generation request comprises the device type of the sub-device and the device capability set of the sub-device in a second network;
    Generating a device capability set in the first network for the sub-device according to the capability set generation request, wherein the device capability set comprises basic information and capability information of the sub-device, the capability information comprises attributes, methods and events, and the basic information of the sub-device comprises an access identifier in the first network;
    and sending the device capability set of the sub device in the first network to the gateway device.
  22. The method of claim 21, wherein the method further comprises:
    and generating a shadow device mapped by the child device in the first network according to the device capability set of the child device in the first network.
  23. The method of claim 21, wherein the method further comprises:
    receiving the current state of the sub-equipment sent by the gateway equipment;
    and updating the state of the shadow equipment according to the current state of the sub-equipment.
  24. A control apparatus for heterogeneous network devices, comprising: the processing module, the sending module and the receiving module;
    the processing module is used for generating a sub-equipment control request, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in a first network;
    The sending module is used for sending the sub-equipment control request to gateway equipment; the gateway equipment and the control device of the heterogeneous network equipment are communicated through the first network, and the gateway equipment and the sub-equipment are communicated through a second network.
  25. The apparatus of claim 24, wherein the instance identification is used to identify a method, attribute, or event within a service.
  26. The apparatus according to claim 24 or 25, wherein the processing module is specifically configured to:
    generating a sub-equipment control request according to the operation of a user and a pre-acquired equipment capacity set of the sub-equipment in the first network;
    the device capability set comprises basic information and capability information of the sub-device, wherein the capability information comprises attributes, methods and events, and the basic information of the sub-device comprises the access identifier.
  27. The apparatus of claim 26, wherein the device comprises a plurality of sensors,
    the sending module is further configured to send a list obtaining request to the gateway device, where the list obtaining request is used to obtain a device list of a heterogeneous network bridged by the gateway device;
    The receiving module is further configured to receive the subset list sent by the gateway device, where the subset list includes at least one access identifier of a subset that belongs to a different network than the control device of the heterogeneous network device.
  28. The apparatus of claim 26 or 27, wherein the device comprises a plurality of sensors,
    the sending module is further configured to send a device capability set acquisition request to the gateway device, where the device capability set acquisition request is used to acquire a device capability set of the sub-device in the first network;
    the receiving module is further configured to receive a device capability set of the sub-device in the first network, where the device capability set is sent by the gateway device.
  29. The device according to any one of claims 24 to 26, wherein,
    the sending module is further used for sending a scanning sub-equipment request to the gateway equipment, wherein the scanning sub-equipment request is used for obtaining a product identifier of the network sub-equipment to be accessed;
    the receiving module is also used for receiving the product identifier of the sub-equipment and the signal strength of the sub-equipment returned by the gateway equipment;
    the sending module is further configured to send a sub-device authentication request to the gateway device according to the product identifier of the sub-device and the signal strength of the sub-device, where the sub-device authentication request is used to instruct the gateway device to authenticate the sub-device.
  30. The apparatus of claim 29, wherein the receiving module is further configured to receive an access identification of the child device in the first network sent by the gateway device.
  31. The apparatus of claim 29 or 30, wherein the device comprises a plurality of sensors,
    the processing module is further configured to determine a gateway-capable device as the gateway device through a broadcast message, where the broadcast message is used to discover the gateway-capable device in the first network;
    or alternatively, the process may be performed,
    the processing module is further used for acquiring the capacity of equipment registered in the cloud service equipment from the cloud service equipment;
    the processing module is further configured to determine a device with gateway capability as the gateway device according to capabilities of the plurality of devices.
  32. The apparatus according to any one of claims 29 to 31, wherein if the determined number of gateway devices is a plurality, the sending module is specifically configured to:
    and sending the sub-equipment authentication request to the gateway equipment with the highest signal strength acquired from the gateway equipment according to the identification of the sub-equipment.
  33. A control apparatus for heterogeneous network devices, comprising: the processing module, the receiving module and the sending module;
    The receiving module is used for receiving a sub-equipment control request sent by the terminal equipment, wherein the sub-equipment control request comprises an access identifier, a service identifier and an instance identifier of the sub-equipment in the first network;
    the sending module is used for sending an operation request to the sub-equipment according to the sub-equipment control request; the control device of the heterogeneous network device communicates with the terminal device through the first network, and the control device of the heterogeneous network device communicates with the sub-device through the second network.
  34. The apparatus of claim 33, wherein the instance identification is used to identify a method, attribute, or event within a service.
  35. The apparatus of claim 33 or 34, wherein the device comprises a plurality of sensors,
    the receiving module is further configured to receive a list acquisition request sent by the terminal device, where the list acquisition request is used to acquire a device list of a heterogeneous network bridged by the gateway device;
    the processing module is used for acquiring a sub-equipment list according to the list acquisition request, wherein the sub-equipment list comprises at least one access identifier of sub-equipment which is authenticated and accessed by the gateway equipment and belongs to different networks with the terminal equipment;
    The sending module is further configured to send the sub-device list to the terminal device.
  36. The apparatus of claim 35, wherein the device comprises a plurality of sensors,
    the receiving module is further configured to receive a device capability set acquisition request sent by the terminal device, where the device capability set acquisition request is used to acquire a device capability set of the sub device in the first network;
    the processing module is further configured to obtain, according to the device capability set obtaining request, a device capability set of the sub-device in the first network, where the device capability set includes basic information of the sub-device and capability information, the capability information includes an attribute, a method, and an event, and the basic information of the sub-device includes an access identifier in the first network;
    the sending module is further configured to send a device capability set of the sub-device in the first network to the terminal device.
  37. The device according to any one of claims 33 to 36, wherein,
    the receiving module is also used for receiving a scanning sub-equipment request sent by the terminal equipment;
    the processing module is also used for calling a sub-equipment scanning function to scan the sub-equipment according to the sub-equipment scanning request to obtain the product identification of the sub-equipment and the signal intensity of the sub-equipment;
    The sending module is further used for sending the product identifier of the sub-equipment and the signal strength of the sub-equipment to the terminal equipment;
    the receiving module is also used for receiving a sub-equipment authentication request sent by the terminal equipment;
    the processing module is further used for authenticating and accessing the sub-equipment according to the sub-equipment authentication request, and acquiring an access identifier, distributed by the cloud service equipment for the sub-equipment, in the first network.
  38. The apparatus of claim 37, wherein the means for transmitting is further configured to transmit an access identification of the sub-device in the first network to the terminal device.
  39. The apparatus of claim 36, wherein the processing module is specifically configured to:
    and generating the device capability set of the sub-device in the first network according to the device type of the sub-device and the device capability set in the second network.
  40. The apparatus of claim 36, wherein the sending module is further configured to send a capability set generation request to the cloud service device, the capability set generation request including a device type of the child device and a device capability set of the child device in the second network;
    The receiving module is further configured to receive a device capability set of the sub-device in the first network, where the device capability set is returned by the cloud service device.
  41. The apparatus of claim 39 or 40, wherein the processing module is further configured to generate a virtual device from a set of device capabilities of the sub-device in the first network.
  42. The apparatus of any one of claims 39 to 41, wherein the receiving module is further configured to obtain a current state of the sub-device;
    the sending module is further configured to send the current state of the sub-device to the cloud service device.
  43. A control apparatus for heterogeneous network devices, comprising:
    the receiving module is used for receiving a sub-equipment authentication request sent by the gateway equipment, wherein the sub-equipment authentication request comprises the identification and the identity information of the sub-equipment;
    the processing module is used for authenticating the sub-equipment according to the sub-equipment authentication request and generating an access identifier in a first network for the sub-equipment after the authentication is passed;
    and the sending module is used for sending the access identifier of the sub-equipment in the first network to the gateway equipment.
  44. The apparatus of claim 43, wherein the receiving module is further configured to receive a capability set generation request sent by the gateway device, the capability set generation request including a device type of the child device and a device capability set of the child device in a second network;
    The processing module is further configured to generate, according to the capability set generation request, a device capability set in the first network for the child device, where the device capability set includes basic information and capability information of the child device, the capability information includes an attribute, a method, and an event, and the basic information of the child device includes an access identifier in the first network;
    the sending module is further configured to send a device capability set of the sub-device in the first network to the gateway device.
  45. The apparatus of claim 44, wherein the processing module is further configured to generate a shadow device to which the child device maps in the first network based on a set of device capabilities of the child device in the first network.
  46. The apparatus of claim 44, wherein the receiving module is further configured to receive a current state of the child device sent by the gateway device;
    the processing module is further configured to update a state of the shadow device according to a current state of the child device.
  47. A terminal device, comprising:
    a processor, a memory, a receiver, and a transmitter;
    The memory stores computer-executable instructions;
    the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of controlling a heterogeneous network device according to any one of claims 1 to 9.
  48. A gateway device, comprising:
    a processor, a memory, a receiver, and a transmitter;
    the memory stores computer-executable instructions;
    the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of controlling a heterogeneous network device according to any one of claims 10 to 19.
  49. A cloud service apparatus, characterized by comprising:
    a processor, a memory, a receiver, and a transmitter;
    the memory stores computer-executable instructions;
    the processor executing computer-executable instructions stored in the memory, causing the processor to perform the method of controlling a heterogeneous network device according to any one of claims 20 to 23.
  50. A computer readable storage medium having stored therein computer executable instructions for implementing the method of controlling a heterogeneous network device according to any of claims 1 to 9 when the computer executable instructions are executed by a processor.
  51. A computer readable storage medium having stored therein computer executable instructions for implementing the method of controlling a heterogeneous network device according to any of claims 10 to 19 when the computer executable instructions are executed by a processor.
  52. A computer readable storage medium having stored therein computer executable instructions for implementing the method of controlling a heterogeneous network device according to any of claims 20 to 23 when the computer executable instructions are executed by a processor.
  53. A chip, comprising: a processing module and a communication interface, the processing module being configured to perform the method for controlling a heterogeneous network device according to any one of claims 1 to 23.
  54. A computer program product comprising a computer program, characterized in that the computer program, when executed by a processor, implements the method of controlling a heterogeneous network device according to any of claims 1 to 23.
CN202080106374.5A 2020-11-23 2020-11-23 Control method, device, equipment and storage medium of heterogeneous network equipment Pending CN116349269A (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/130938 WO2022104806A1 (en) 2020-11-23 2020-11-23 Method and apparatus for controlling heterogeneous network devices, device, and storage medium

Publications (1)

Publication Number Publication Date
CN116349269A true CN116349269A (en) 2023-06-27

Family

ID=81708249

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202080106374.5A Pending CN116349269A (en) 2020-11-23 2020-11-23 Control method, device, equipment and storage medium of heterogeneous network equipment

Country Status (2)

Country Link
CN (1) CN116349269A (en)
WO (1) WO2022104806A1 (en)

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130212574A1 (en) * 2012-02-14 2013-08-15 Microsoft Corporation Sub-Device Discovery and Management
CN108337677B (en) * 2017-01-19 2020-10-09 阿里巴巴集团控股有限公司 Network authentication method and device
CN108769009B (en) * 2018-05-28 2021-01-19 深圳和而泰数据资源与云技术有限公司 Data communication method, intelligent device and intelligent gateway

Also Published As

Publication number Publication date
WO2022104806A1 (en) 2022-05-27

Similar Documents

Publication Publication Date Title
US20200136902A1 (en) Network management method and apparatus
CN107592367B (en) Resource sharing method and device for household appliances and computer readable storage medium
CN113841432A (en) Method and apparatus for providing connection with terminal for using edge computing service
CN113132185B (en) Equipment distribution network binding method, system, mobile terminal and storage medium
CN107113892B (en) Method and device for automatically networking gateway equipment
CN114902634A (en) Apparatus and method for providing information of application server in mobile communication system
CN112740642B (en) Communication method and multi-access edge computing server
CN109819498A (en) A kind of smart machine, the automatic distribution method and system of smart machine
CN107318119B (en) Household appliance networking method, household appliance and computer readable storage medium
CN114513379A (en) Binding method and terminal for intelligent household equipment
CN106612530B (en) Control method, device and system of networking equipment
CN114828075A (en) Wireless sensing measurement control method, device, equipment and storage medium
US10992578B2 (en) Message retargeting in machine-to-machine service layer communications
CN113196721B (en) Method and device for discovering Internet of things equipment and terminal equipment
CN112202877A (en) Gateway linkage method, gateway, cloud server and user terminal
CN105050028B (en) Method and device for controlling household electrical appliance
CN108322557B (en) Application equipment discovery method and device, computer equipment and storage medium
WO2015085573A1 (en) Method and device for communication using white spectrum
CN116349269A (en) Control method, device, equipment and storage medium of heterogeneous network equipment
CN114125725B (en) Broadcast message sending method, broadcast message receiving method, broadcast message sending device, broadcast message receiving device, and storage medium
CN111164951A (en) Service registration based on service capability requirements and preferences
CN112152850B (en) Internet of things equipment management method based on flash connection protocol and service terminal
CN115968543A (en) Resource mapping method, device, equipment and storage medium
JP2018532176A (en) Service element
CN110908293A (en) Shared electrical appliance control method and system based on NB-IOT

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