CN112738803B - Terminal equipment networking method and device and gateway equipment - Google Patents

Terminal equipment networking method and device and gateway equipment Download PDF

Info

Publication number
CN112738803B
CN112738803B CN201910963572.2A CN201910963572A CN112738803B CN 112738803 B CN112738803 B CN 112738803B CN 201910963572 A CN201910963572 A CN 201910963572A CN 112738803 B CN112738803 B CN 112738803B
Authority
CN
China
Prior art keywords
equipment
target
terminal
identifier
type
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.)
Active
Application number
CN201910963572.2A
Other languages
Chinese (zh)
Other versions
CN112738803A (en
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.)
Shenzhen Yunhai Internet Of Things Co ltd
Original Assignee
Shenzhen Yunhai Internet Of Things Co 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 Shenzhen Yunhai Internet Of Things Co ltd filed Critical Shenzhen Yunhai Internet Of Things Co ltd
Priority to CN201910963572.2A priority Critical patent/CN112738803B/en
Publication of CN112738803A publication Critical patent/CN112738803A/en
Application granted granted Critical
Publication of CN112738803B publication Critical patent/CN112738803B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/08Access security
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Security & Cryptography (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The application provides a terminal equipment networking method, a terminal equipment networking device and a terminal equipment, which are applicable to the technical field of data processing, wherein the method comprises the following steps: receiving a plurality of equipment identifiers broadcasted by a plurality of terminal equipment; extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier, and taking terminal equipment broadcasting the target identifier as target equipment; acquiring the equipment type and the equipment position of target equipment, and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position; and returning to execute the operation of extracting one non-extracted device identifier from the plurality of device identifiers until each terminal device completes identity registration. The embodiment of the application realizes unified automatic equipment information acquisition and identity registration of a large number of terminal equipment, and has the advantages of faster networking speed, higher efficiency and simpler and more convenient operation.

Description

Terminal equipment networking method and device and gateway equipment
Technical Field
The application belongs to the technical field of the Internet of things, and particularly relates to a terminal equipment networking method and terminal equipment.
Background
With the development of the internet of things technology, more and more terminal devices of the internet of things enter daily life and work of people. In order to normally use terminal equipment of the internet of things, the terminal equipment needs to be networked firstly, namely equipment type, unique identification, located position and other equipment information of the terminal equipment are added in a control end to register the identity of the terminal equipment, and now, equipment information is manually added at the control end by a user to realize networking of the terminal equipment, but for some scenes with large-batch networking requirements of the terminal equipment, the networking mode is extremely complicated in operation and low in efficiency.
Disclosure of Invention
In view of the above, the embodiment of the application provides a terminal device networking method and terminal device, which can solve the problem of low terminal device identity registration efficiency.
A first aspect of an embodiment of the present application provides a method for accessing a terminal device to a network, including:
receiving a plurality of equipment identifiers broadcasted by a plurality of terminal equipment, wherein each terminal equipment corresponds to one equipment identifier;
extracting an unextracted equipment identifier from a plurality of equipment identifiers, taking the extracted equipment identifier as a target identifier, and taking the terminal equipment broadcasting the target identifier as target equipment;
Acquiring the equipment type and the equipment position of the target equipment, and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position;
and returning to execute the operation of extracting one non-extracted device identifier from the plurality of device identifiers until each terminal device completes identity registration.
As a first possible implementation manner of the first aspect, before acquiring the device type and the device location of the target device, the method further includes:
and identifying the target device from a plurality of terminal devices.
As a second possible implementation manner of the first aspect, on the basis of the first possible implementation manner, the identifying the target device from the plurality of terminal devices includes:
sending a first instruction to the target equipment, wherein the first instruction is used for indicating the target equipment to perform multiple switching-on and switching-off operations;
and acquiring switching-on/off data of each terminal device in a first time period after the first instruction is sent, and identifying the target device from a plurality of terminal devices based on the switching-on/off data.
As a third possible implementation manner of the first aspect, on the basis of the second possible implementation manner, the switching-on/off data is a switching-on/off number, and the acquiring switching-on/off data of each terminal device in a first duration after the first instruction is sent includes:
Acquiring videos acquired by a plurality of terminal devices within a first time length after the first instruction is sent;
and respectively carrying out startup and shutdown identification on each terminal device by utilizing the video to obtain startup and shutdown times of each terminal device.
As a fourth possible implementation manner of the first aspect, on the basis of the third possible implementation manner, the performing, by using the video, on-off identification on each terminal device, to obtain on-off times of each terminal device includes:
the video is utilized to identify the display and the indicator lights of the plurality of terminal devices, and the plurality of terminal devices are classified and searched based on the identification results of the display and the indicator lights, so that a first type of device containing the display and a second type of device only containing the indicator lights are obtained;
on-off identification is carried out on the first type of equipment based on display video data of the first type of equipment in the video, so as to obtain the on-off times of the first type of equipment;
and on-off identification is carried out on the second type of equipment based on the pilot lamp video data of the second type of equipment in the video, so as to obtain the on-off times of the second type of equipment.
As a fourth possible implementation manner of the first aspect, on the basis of the third possible implementation manner and the fourth possible implementation manner, the performing, by using the video, on-off identification on each terminal device to obtain on-off times of each terminal device, further includes:
and extracting the audio data of the third class of equipment from the video, and carrying out startup and shutdown identification on the third class of equipment based on the audio data to obtain startup and shutdown times of the third class of equipment, wherein the third class of equipment refers to terminal equipment which does not contain a display or an indicator light.
A second aspect of an embodiment of the present application provides a terminal device network access apparatus, including:
the device comprises an identifier receiving module, a plurality of terminal devices and a plurality of terminal device identification module, wherein each terminal device corresponds to one device identifier;
the device identification extraction module is used for extracting an unextracted device identification from a plurality of device identifications, taking the extracted device identification as a target identification and taking the terminal device broadcasting the target identification as target equipment;
the identity registration module is used for acquiring the equipment type and the equipment position of the target equipment and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position;
And the return execution module is used for returning to execute the operation of extracting one non-extracted equipment identifier from the plurality of equipment identifiers until each terminal equipment completes identity registration.
A third aspect of an embodiment of the present application provides a network access system for a terminal device, including:
the terminal equipment is used for broadcasting a plurality of equipment identifiers to the gateway, wherein each terminal equipment corresponds to one equipment identifier;
the gateway device is used for extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier, and taking the terminal device broadcasting the target identifier as a target device;
the gateway device is further configured to obtain a device type and a device location of the target device, and perform identity registration on the target device based on the target identifier, the device type and the device location;
the gateway device is further configured to return to performing the operation of extracting one device identifier that is not extracted from the plurality of device identifiers until each terminal device completes identity registration.
A fourth aspect of the embodiment of the present application provides a gateway device, where the gateway device includes a memory and a processor, where the memory stores a computer program executable on the processor, and where the processor executes the computer program to implement the steps of the network access method of a terminal device according to any one of the first aspect.
A fifth aspect of an embodiment of the present application provides a computer-readable storage medium, comprising: a computer program is stored, characterized in that the computer program, when executed by a processor, implements the steps of the terminal device network access method according to any of the above first aspects.
A sixth aspect of an embodiment of the present application provides a computer program product, which when run on a terminal device, causes the terminal device to perform the terminal device networking method according to any one of the first aspects above.
Compared with the prior art, the embodiment of the application has the beneficial effects that: the existence of the terminal equipment is informed through the form of the broadcast equipment identification, and meanwhile, the equipment information of each terminal equipment is acquired through one-by-one positioning and searching and equipment type acquisition of each terminal equipment, and finally, the identity registration is carried out on the terminal equipment which acquires the equipment information each time, so that the unified automatic equipment information acquisition and the identity registration of a large number of terminal equipment are realized, and compared with the mode of manually inputting the equipment information one by one, the network access speed is faster, the efficiency is higher, and the operation is simpler and more convenient.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are needed in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic implementation flow chart of a network access method of a terminal device according to a first embodiment of the present application;
fig. 2 is a schematic implementation flow chart of a network access method of a terminal device according to a third embodiment of the present application;
fig. 3 is a schematic implementation flow chart of a network access method of a terminal device according to a fourth embodiment of the present application;
fig. 4 is a schematic implementation flow chart of a network access method of a terminal device according to a fifth embodiment of the present application;
fig. 5 is a schematic structural diagram of a network access device of a terminal device according to a seventh embodiment of the present application;
fig. 6 is a system interaction diagram of a network access system of a terminal device according to an eighth embodiment of the present application;
fig. 7 is a schematic diagram of a gateway device according to a ninth embodiment of the present application.
Detailed Description
In the following description, for purposes of explanation and not limitation, specific details are set forth such as the particular system architecture, techniques, etc., in order to provide a thorough understanding of the embodiments of the present application. It will be apparent, however, to one skilled in the art that the present application may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present application with unnecessary detail.
In order to illustrate the technical scheme of the application, the following description is made by specific examples.
In the embodiment of the application, the execution main body of the network access method of the terminal equipment is hardware equipment with a data receiving function and a certain data processing function, wherein the certain data processing function refers to the function of realizing the operations such as equipment identification extraction and the like in the embodiment of the application. The specific device type of the execution body is not limited herein, and the execution body can be selected or designed by a technician according to actual needs, and the execution body can be non-control end devices, such as gateway devices, or control end devices, such as computers or intelligent terminals, wherein if the execution body is a non-control end device, in the embodiment of the application, when the execution body performs identity registration operation, the execution body needs to send the acquired device information of the terminal device to the corresponding control end device to complete identity registration, for example, the gateway device sends the acquired device information to the intelligent mobile phone serving as the control end, so as to realize identity registration at the intelligent mobile phone end. The following description will be made on the embodiment by taking the execution body as a gateway device as an example.
In order to facilitate understanding of the present application, the embodiments of the present application are briefly described herein, and when a large number of terminal devices are networked by internet of things, if the user manually inputs the device information of the terminal devices to the control end one by one, a great deal of manpower is required to be consumed, and the time efficiency is extremely low.
In order to improve the network access operation efficiency of a large number of terminal devices, in the embodiment of the application, the terminal devices actively broadcast the device identification, the gateway device receives the unique identification of the terminal devices, and after receiving the unique identification of the terminal devices, the terminal devices are subjected to positioning searching and device type acquisition one by one to acquire the device information of the terminal devices, and finally the terminal devices which acquire the device information each time are subjected to identity registration, so that unified automatic device information acquisition and identity registration of the large number of terminal devices are realized. The details are as follows:
fig. 1 shows a flowchart of an implementation of a network access method of a terminal device according to an embodiment of the present application, which is described in detail below:
s101, receiving a plurality of device identifiers broadcasted by a plurality of terminal devices, wherein each terminal device corresponds to one device identifier.
In the embodiment of the application, the terminal equipment can be any internet of things equipment with a signal transmitting function, including but not limited to intelligent refrigerators, intelligent televisions, intelligent sound boxes and the like, and meanwhile, in order to be compatible with some old terminal equipment without the signal transmitting function, a user can also enable the terminal equipment to have the signal transmitting function by externally connecting an internet of things hardware module, so that the terminal equipment can be used as the terminal equipment capable of accessing the internet in batches in the embodiment of the application. The device identifiers are used for distinguishing different terminal devices of the Internet of things from each other so as to ensure the uniqueness of each terminal device in the Internet of things, so that the device identifiers are the unique identifiers of the terminal devices, broadcast from the terminal devices to the surrounding, and are received by the gateway device. By broadcasting-receiving the unique identification, the embodiment of the application can rapidly determine all terminal equipment needing to access the network so as to prepare for subsequent equipment information acquisition and batch network access. The specific type of the device identifier may be selected or set by a technician according to the actual identity registration requirement, for example, SN codes of the terminal devices may be used as corresponding device identifiers, or a unique identifier generating rule may be set by the technician to perform unique identifiers on the terminal devices.
In order to ensure normal communication between the terminal device and the gateway device, a specific signal frequency band can be preset to serve as a broadcast and receiving frequency band with unique identification, and the gateway device only needs to receive the unique identification in the receiving frequency band.
S102, extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier, and taking a terminal device broadcasting the target identifier as a target device.
After obtaining the device identifier of each terminal device, the embodiment of the application can perform device information obtaining and identity registration on the terminal devices one by one so as to realize network access to each terminal device, and specifically: and extracting one device identifier from all the obtained device identifiers, and taking the terminal device corresponding to the device identifier as the target device for identity registration. In order to prevent the repeated processing of one terminal device, the extracted device identifier is recorded each time, and only the non-extracted device identifier is extracted each time, and meanwhile, the specific extraction method is not limited herein, and can be set by a technician at will, including but not limited to, random extraction, or sequential extraction after sorting according to a preset sorting rule.
S103, acquiring the equipment type and the equipment position of the target equipment, and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position.
After the target equipment needing identity registration is selected, the embodiment of the application can continuously acquire the equipment type, the equipment position and other information of the target equipment so as to acquire the equipment information needed by the identity registration, and then the acquired equipment identification, equipment type and equipment position are utilized to carry out the identity registration on the target equipment, thereby completing the network access of the target equipment.
In consideration of the fact that the number of possible ways of acquiring the device type and the device position of the terminal device in actual situations is large, for example, the device type and the device position of the terminal device may be actively transmitted by the terminal device or manually input by a user, or the terminal device may be actively identified and acquired, so that the specific acquiring manner of the device type and the device position of the target device is not limited herein, and may be set by a technician according to actual requirements.
As an optional embodiment of the application, considering that the intelligent degree of a plurality of terminal devices of the Internet of things is higher at present, the acquisition and the transmission of the type and the position of the terminal devices can be realized, the step of acquiring the type and the position of the target device in the embodiment of the application comprises the following steps: and sending an information acquisition instruction to the target equipment, and receiving the equipment type and the equipment position sent by the target equipment.
In the embodiment of the application, the target equipment actively transmits the equipment type and the equipment position to the gateway equipment, and the gateway equipment only needs to receive the required equipment type and equipment position after sending the information acquisition instruction.
As another embodiment of the present application, considering that not all terminal devices can actively acquire and transmit data of their own types, and meanwhile, the device location of the terminal device is not fixed, for example, a sound box may be placed in a bedroom or a living room, so in practical application, it is often difficult to achieve device information acquisition of the target device by means of autonomous device information transmission, therefore, in the second embodiment of the present application, the target device is actively located in all terminal devices, so as to provide a basis for subsequently acquiring the device type and the device location of the target device, specifically, after step 102, before step 103, the method further includes:
the target device is identified from a plurality of terminal devices.
Because the number of terminal devices is large and the distributed positions are not fixed when the network is accessed in batches, the embodiment of the application needs to identify the target device from the terminal devices so as to ensure the accuracy and reliability of the information acquisition of the follow-up devices. The specific searching method is not limited herein, and may be set by a technician according to actual requirements, including but not limited to, for example, performing image or video recognition on the terminal device, and searching the target device from the image or video recognition.
As a specific implementation manner of searching for the target device, considering that the device identifier is generally information stored in the terminal device, the target device cannot be directly identified, that is, even if the device identifier of the target device is known, the target device cannot be directly identified. Therefore, in order to realize accurate identification and search of the target equipment, the embodiment of the application selects a mode of actively triggering the target equipment to perform specific operation, so that the target equipment is distinguished from other terminal equipment for identification, and the accuracy of identification is improved. The specific type of operation triggered is not limited herein, and may be set by the skilled person, including but not limited to, for example, turning on/off or flashing a screen.
As an alternative embodiment of the present application, the device type and the device position of the target device may be directly identified after the target device is found, so as to determine the required device information, for example, using an image or video to identify the device type, such as a television or a sound box, and determining the device position of the target device, such as in a living room or a bedroom, according to the location of the area where the image or video is captured.
Meanwhile, as can be seen from the above description, the non-control end device cannot directly register the identity when registering the identity, so that the method of registering the identity of the target device in the embodiment of the present application is not limited herein, for example, when the execution subject is a non-control end device such as a gateway device, the acquired device identifier, device type and device position of the target device need to be uniformly sent to the corresponding control end device, for example, a smart phone or a computer of a user, and the identity registration of the target device is performed by the control end device to achieve network access of the target device, and when the execution subject is a control end device such as a computer, the network access of the target device can be achieved only by directly registering the identity of the target device according to the device identifier, the device type and the device position of the target device.
In order to prevent the terminal device from being repeatedly accessed to the network or being registered by a plurality of different control end devices, the application can send an adding success information to the target device after the network access to the target device is completed, and the target device stops broadcasting the unique identification when receiving the adding success information, thereby ensuring that the target device can access to the network only once.
S104, returning to execute the operation of extracting an unextracted device identifier from the plurality of device identifiers until each terminal device completes identity registration.
After the identity registration of the single terminal device is completed, the embodiment of the application further performs identity registration one by one on the rest terminal devices to realize the network access to the batch terminal devices, specifically, the embodiment of the application returns to step S102 to realize the selection and the identity registration of the next target device, and the embodiment of the application stops the returning operation until the identity registration of all the terminal devices receiving the device identification is successful, and finally realizes the batch network access to all the terminal devices.
In the embodiment of the application, the unique identifier of the terminal equipment is actively broadcast by the terminal equipment, the gateway equipment receives the unique identifier of the terminal equipment, and meanwhile, after the unique identifier of the terminal equipment is received, the terminal equipment is subjected to positioning searching and equipment type acquisition one by one to acquire the equipment information of each terminal equipment, and finally, the terminal equipment which acquires the equipment information each time is subjected to identity registration, so that unified automatic equipment information acquisition and identity registration of a large number of terminal equipment are realized.
As a specific implementation manner of searching for the target device in the second embodiment of the present application, considering that the device identifier is generally information stored in the terminal device and cannot be directly identified, in order to implement accurate identification and searching for the target device, in the embodiment of the present application, a mode of actively triggering the target device to perform a switching-on/off operation is selected, so that the target device is distinguished from other terminal devices and is identified, thereby improving accuracy of identification, as shown in fig. 2, the step of searching for the target device specifically includes:
s201, a first instruction is sent to the target equipment, wherein the first instruction is used for indicating the target equipment to perform multiple switching-on and switching-off operations.
In the embodiment of the application, a first instruction is preset, the response mode of the first instruction is set in each terminal device to perform multiple switching operations, and when the target device is searched, the gateway device actively sends the first instruction to the target device, so that the target device performs multiple switching operations. The specific number of times of switching on and off is not limited herein, and may be set by a technician according to actual needs, for example, may be set to 2 to 4 times.
S202, obtaining switching-on/off data of each terminal device in a first time period after a first instruction is sent, and identifying target devices from a plurality of terminal devices based on the switching-on/off data.
Because the target device executes multiple startup and shutdown after receiving the first instruction, and meanwhile, the time required for startup and shutdown each time can be approximately estimated, the embodiment of the application can preset the total time (i.e. the first time) required for startup and shutdown each time approximately, for example, the total time can be set to be 1-3 minutes, and the startup and shutdown data of the terminal device in the first time is acquired after the first instruction is sent, so that the accurate acquisition of the startup and shutdown operation response condition of the terminal device is realized.
After the switching-on and switching-off data of each terminal device are obtained, if the switching-on and switching-off times of each terminal device are obtained, judging which terminal device has multiple switching-on and switching-off behaviors in the first duration according to the switching-on and switching-off data, and then searching the target device required by the embodiment of the application. The method for acquiring the switching-on/off data of each terminal device is not limited herein, and may be set by a technician, including but not limited to setting a camera in each area where the terminal device may be placed, acquiring a video of the terminal device in a first duration by using the camera, and analyzing the video to obtain the switching-on/off technical data required by the embodiment of the present application, or may also be manually input into the switching-on/off data of each terminal device after the technician observes the switching-on/off condition of each terminal device in the first duration.
As a specific implementation manner of obtaining startup and shutdown data in the third embodiment of the present application, as shown in fig. 3, the step of obtaining startup and shutdown data in the fourth embodiment of the present application specifically includes:
s301, acquiring videos acquired by a plurality of terminal devices within a first duration after a first instruction is sent.
In the embodiment of the application, the switching-on and switching-off times of each terminal device are determined in a video identification mode, so that accurate acquisition of switching-on and switching-off data is realized, wherein a specific video acquisition mode is not limited herein, and the specific video acquisition mode can be obtained by shooting each terminal device manually by a user or can be obtained by arranging a camera in each area where the terminal device is possibly placed in advance, and acquiring the video of each terminal device in a first duration by the camera.
S302, the video is utilized to conduct switching on and switching off identification on each terminal device, and the switching on and switching off times of each terminal device are obtained.
The embodiment of the application does not limit a specific on-off identification method, and can be set by technicians according to actual requirements, including but not limited to identifying display contents of a display screen of terminal equipment, judging whether on-off behaviors exist or not, and counting on-off times.
As a specific implementation manner of identifying the switching times of each terminal device based on video in the fourth embodiment of the present application, considering that in actual situations, the types of the terminal devices may be many, but not all the terminal devices are provided with displays, for example, most of routers are not provided with displays, so if the switching times are identified by only relying on the displays, it is inevitable that a part of the switching times of the terminal devices cannot be identified, and in order to ensure accurate identification of the switching times of the terminal devices, as shown in fig. 4, the steps of identifying the switching times of each terminal device in the fifth embodiment of the present application specifically include:
s401, utilizing videos to identify a display and an indicator light of a plurality of terminal devices, and classifying and searching the plurality of terminal devices based on the identification results of the display and the indicator light to obtain a first type of device containing the display and a second type of device containing only the indicator light.
According to the embodiment of the application, the terminal equipment is divided into a first type of equipment comprising a display and a second type of equipment comprising the display and the indicator lamp according to whether the display and the indicator lamp exist or not, and the specific type of the terminal equipment can be determined according to the condition of identifying each terminal equipment. The embodiment of the application does not limit the specific display and indicator lamp identification method, and can be set by a technician according to actual requirements, for example, whether the terminal equipment has a display or not can be identified by adopting some existing object identification algorithms, or in consideration of that all the terminal equipment is in a starting state when network access is performed, the luminous area in the terminal equipment can be identified, and whether the luminous area exceeds a preset threshold value is distinguished into the display or the indicator lamp.
S402, on-off identification is carried out on the first equipment based on display video data of the first equipment in the video, and on-off times of the first equipment are obtained.
After determining the types of the terminal devices, for the first type of device, the embodiment of the application directly determines the number of times of switching on and off the device according to the video data of the display, wherein a specific method for identifying the number of times of switching on and off based on the video data of the display is not limited herein, and the method can be selected or set by a technician by himself, including but not limited to, counting the number of times of switching on and off the display in the video, counting the corresponding number of times of switching on and off according to the number of times of switching on and off, or identifying the display content of the display to determine the corresponding number of times of switching on and off.
S403, on-off identification is carried out on the second type of equipment based on the pilot lamp video data of the second type of equipment in the video, and on-off times of the second type of equipment are obtained.
For the second type of device, the embodiment of the application can identify the on/off state of the video data of the indicator lamp, and the specific identification method is not limited herein, and can be set by a technician, including but not limited to counting the corresponding on/off times by detecting the on/off state of the indicator lamp.
As a specific implementation manner of identifying the number of times of switching on and off based on the video data of the indicator lamp, considering that in actual situations, a plurality of terminal devices are provided with a plurality of indicator lamps at the same time, and the indicator lamps are used for indicating different parameter situations of the terminal devices, such as a power indicator lamp, a switching on indicator lamp, a network indicator lamp, etc., therefore, when the identification is performed, a plurality of results of the number of times of switching on and off may exist, and in order to ensure the accuracy of the identification result, the steps of identifying the number of times of switching on in the embodiment of the application specifically include:
and counting the switching-on times corresponding to the on-off times of each indicator light of the terminal equipment, and taking the switching-on times closest to the switching-on times corresponding to the preset first instruction as the switching-on times of the terminal equipment.
As a specific implementation manner of identifying the switching times of each terminal device based on video in the fourth embodiment of the present application, on the basis of the fourth and fifth embodiments of the present application, considering that in actual situations, some terminal devices may not have a display or an indicator light, the method according to the fifth embodiment of the present application may not normally identify the switching times of the terminal devices, so in order to ensure accurate identification of the switching times of the terminal devices, the step of identifying the switching times of each terminal device in the sixth embodiment of the present application specifically includes:
Extracting audio data of third-class equipment from the video, and carrying out on-off identification on the third-class equipment based on the audio data to obtain the on-off times of the third-class equipment, wherein the third-class equipment refers to terminal equipment which does not contain a display or an indicator light.
In the embodiment of the application, terminal equipment which does not contain a display or an indicator light is classified as third equipment, and for the third equipment, the embodiment of the application extracts corresponding audio data from video, and takes the fact that the audio of the terminal equipment which is started and shut down is generally fixed, namely, the terminal equipment plays fixed audio in each startup or each shutdown in the multiple startup and shutdown process into consideration.
According to the embodiment of the application, on the basis of the fourth to sixth embodiments of the application, the device type of the target device is identified according to the video, so that the specific device type of the target device, such as a refrigerator or a television, is determined, and meanwhile, the device position of the target device is determined according to the video shooting place, so that the device information acquisition of the target device is realized.
In the embodiment of the application, after the equipment identifier is actively broadcast by the terminal equipment, the gateway equipment sends the corresponding on-off instruction according to the non-repeated selection target equipment of the equipment identifier, then carries out equipment identification on videos of the terminal equipment after sending the on-off instruction, carries out on-off times identification screening corresponding to different measurements on different kinds of equipment, thereby realizing accurate positioning of the target equipment, simultaneously carries out video identification on the target equipment to obtain the corresponding equipment type and equipment position, completes identity registration of the target equipment, and finally reselects new target equipment to repeat the operation until all the terminal equipment is successfully registered, thereby realizing unified automatic equipment information acquisition and identity registration on a large number of terminal equipment.
Corresponding to the method of the above embodiment, fig. 5 shows a block diagram of a network access device of a terminal device according to an embodiment of the present application, and for convenience of explanation, only a portion relevant to the embodiment of the present application is shown. The terminal device network access apparatus illustrated in fig. 5 may be an execution body of the terminal device network access method provided in the first embodiment.
Referring to fig. 5, the terminal device network access apparatus includes:
the identifier receiving module 51 is configured to receive device identifiers broadcast by a plurality of terminal devices, where each terminal device corresponds to one device identifier.
The identifier extracting module 52 is configured to extract an unextracted device identifier from a plurality of device identifiers, take the extracted device identifier as a target identifier, and take the terminal device broadcasting the target identifier as a target device.
The identity registration module 53 is configured to obtain a device type and a device location of the target device, and perform identity registration on the target device based on the target identifier, the device type, and the device location.
And a return execution module 54, configured to return to executing the operation of extracting an unextracted device identifier from the multiple device identifiers until each terminal device completes identity registration.
Further, the network access device of the terminal equipment further comprises:
and the equipment searching module is used for identifying the target equipment from a plurality of terminal equipment.
Further, the device searching module includes:
the instruction sending module is used for sending a first instruction to the target equipment, wherein the first instruction is used for indicating the target equipment to perform multiple switching operations.
The on-off processing module is used for acquiring on-off data of each terminal device in a first time period after the first instruction is sent, and identifying the target device from a plurality of terminal devices based on the on-off data.
Further, the on-off processing module includes:
the video acquisition module is used for acquiring videos acquired by the plurality of terminal devices in a first duration after the first instruction is sent out.
And the switching on/off identification module is used for respectively carrying out switching on/off identification on each terminal device by utilizing the video to obtain the switching on/off times of each terminal device.
Further, the on-off identification module includes:
and identifying the display and the indicator lights of the plurality of terminal devices by utilizing the video, and classifying and searching the plurality of terminal devices based on the identification results of the display and the indicator lights to obtain a first type device containing the display and a second type device only containing the indicator lights.
And on-off identification is carried out on the first type of equipment based on the display video data of the first type of equipment in the video, so as to obtain the on-off times of the first type of equipment.
And on-off identification is carried out on the second type of equipment based on the pilot lamp video data of the second type of equipment in the video, so as to obtain the on-off times of the second type of equipment.
Further, the on-off identification module further comprises:
and extracting the audio data of the third class of equipment from the video, and carrying out startup and shutdown identification on the third class of equipment based on the audio data to obtain startup and shutdown times of the third class of equipment, wherein the third class of equipment refers to terminal equipment which does not contain a display or an indicator light.
The process of implementing respective functions by each module in the terminal device networking device provided in the embodiment of the present application may refer to the description in each method embodiment, and will not be repeated here.
Corresponding to the method of the above embodiment, fig. 6 shows a system interaction diagram of the network access system of the terminal device provided by the embodiment of the present application, and for convenience of explanation, only the portion relevant to the embodiment of the present application is shown. Fig. 6 illustrates a gateway device in a network access system of a terminal device, which may be an execution body of the network access method of the terminal device provided in the first embodiment.
The terminal equipment network access system comprises gateway equipment and a plurality of terminal equipment.
And the terminal equipment is used for broadcasting a plurality of equipment identifiers to the gateway, wherein each terminal equipment corresponds to one equipment identifier.
The gateway device is used for extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier, and taking the terminal device broadcasting the target identifier as a target device.
The gateway device is further configured to obtain a device type and a device location of the target device, and perform identity registration on the target device based on the target identifier, the device type and the device location.
The gateway device is further configured to return to performing the operation of extracting one device identifier that is not extracted from the plurality of device identifiers until each terminal device completes identity registration.
Further, the gateway device is further configured to send addition success information to the plurality of terminal devices if a plurality of device identifiers are received.
The terminal device is further configured to stop broadcasting the device identifier if the addition success information is received.
Further, the gateway device is further configured to identify the target device from a plurality of terminal devices.
Further, the gateway device is specifically configured to send a first instruction to the target device, where the first instruction is used to instruct the target device to perform multiple power on/off operations.
And acquiring switching-on/off data of each terminal device in a first time period after the first instruction is sent, and identifying the target device from a plurality of terminal devices based on the switching-on/off data.
Further, the gateway device is specifically configured to obtain videos acquired by the plurality of terminal devices within a first duration after the first instruction is sent.
And respectively carrying out startup and shutdown identification on each terminal device by utilizing the video to obtain startup and shutdown times of each terminal device.
Further, the gateway device is specifically configured to perform display and indicator light identification on the plurality of terminal devices by using the video, and perform classification search on the plurality of terminal devices based on the display and indicator light identification results, so as to obtain a first device including a display and a second device including only an indicator light.
And on-off identification is carried out on the first type of equipment based on the display video data of the first type of equipment in the video, so as to obtain the on-off times of the first type of equipment.
And on-off identification is carried out on the second type of equipment based on the pilot lamp video data of the second type of equipment in the video, so as to obtain the on-off times of the second type of equipment.
Further, the gateway device is specifically configured to extract audio data of the third class device from the video, and perform on-off identification on the third class device based on the audio data, so as to obtain on-off times of the third class device, where the third class device is a terminal device that does not include a display or an indicator light.
The process implemented by each step in the network access system of the terminal device provided in the embodiment of the present application may refer to the description in each method embodiment, which is not repeated herein.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present application.
It should be understood that the terms "comprises" and/or "comprising," when used in this specification and the appended claims, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof.
It should also be understood that the term "and/or" as used in the present specification and the appended claims refers to any and all possible combinations of one or more of the associated listed items, and includes such combinations.
As used in the present description and the appended claims, the term "if" may be interpreted as "when..once" or "in response to a determination" or "in response to detection" depending on the context. Similarly, the phrase "if a determination" or "if a [ described condition or event ] is detected" may be interpreted in the context of meaning "upon determination" or "in response to determination" or "upon detection of a [ described condition or event ]" or "in response to detection of a [ described condition or event ]".
Furthermore, the terms "first," "second," "third," and the like in the description of the present specification and in the appended claims, are used for distinguishing between descriptions and not necessarily for indicating or implying a relative importance. It will also be understood that, although the terms "first," "second," etc. may be used herein in some embodiments of the application to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element. For example, a first table may be named a second table, and similarly, a second table may be named a first table without departing from the scope of the various described embodiments. The first table and the second table are both tables, but they are not the same table.
Reference in the specification to "one embodiment" or "some embodiments" or the like means that a particular feature, structure, or characteristic described in connection with the embodiment is included in one or more embodiments of the application. Thus, appearances of the phrases "in one embodiment," "in some embodiments," "in other embodiments," and the like in the specification are not necessarily all referring to the same embodiment, but mean "one or more but not all embodiments" unless expressly specified otherwise. The terms "comprising," "including," "having," and variations thereof mean "including but not limited to," unless expressly specified otherwise.
Fig. 7 is a schematic structural diagram of a gateway device according to an embodiment of the present application. As shown in fig. 7, the gateway apparatus 7 of this embodiment includes: at least one processor 70 (only one shown in fig. 7), a memory 71, said memory 71 having stored therein a computer program 72 executable on said processor 70. The processor 70, when executing the computer program 72, implements the steps of the gateway device networking method embodiments described above, such as steps 101 through 104 shown in fig. 1. Alternatively, the processor 70, when executing the computer program 72, performs the functions of the modules/units of the apparatus embodiments described above, such as the functions of the modules 51 to 54 shown in fig. 5.
The gateway device may include, but is not limited to, a processor 70, a memory 71. It will be appreciated by those skilled in the art that fig. 7 is merely an example of gateway device 7 and is not limiting of gateway device 7, and may include more or fewer components than shown, or may combine certain components, or different components, e.g., the gateway device may also include an input transmitting device, a network access device, a bus, etc.
The processor 70 may be a central processing unit (Central Processing Unit, CPU), or may be another general purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), an off-the-shelf programmable gate array (Field-Programmable Gate Array, FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 71 may in some embodiments be an internal storage unit of the gateway device 7, such as a hard disk or a memory of the gateway device 7. The memory 71 may be an external storage device of the gateway device 7, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) or the like, which are provided in the gateway device 7. Further, the memory 71 may also include both an internal storage unit and an external storage device of the gateway device 7. The memory 71 is used for storing an operating system, application programs, boot loader (BootLoader), data, other programs, etc., such as program codes of the computer program. The memory 71 may also be used for temporarily storing data that has been transmitted or is to be transmitted.
In addition, each functional unit in the embodiments of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
Embodiments of the present application also provide a computer readable storage medium storing a computer program which, when executed by a processor, implements steps for implementing the various method embodiments described above.
Embodiments of the present application provide a computer program product which, when run on a mobile terminal, causes the mobile terminal to perform steps that enable the implementation of the method embodiments described above.
The integrated modules/units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the present application may implement all or part of the flow of the method of the above embodiment, or may be implemented by a computer program to instruct related hardware, where the computer program may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the computer program may implement the steps of each of the method embodiments described above. Wherein the computer program comprises computer program code which may be in source code form, object code form, executable file or some intermediate form etc. The computer readable medium may include: any entity or device capable of carrying the computer program code, a recording medium, a U disk, a removable hard disk, a magnetic disk, an optical disk, a computer Memory, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), an electrical carrier signal, a telecommunications signal, a software distribution medium, and so forth.
In the foregoing embodiments, the descriptions of the embodiments are emphasized, and in part, not described or illustrated in any particular embodiment, reference is made to the related descriptions of other embodiments.
Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
The above embodiments are only for illustrating the technical solution of the present application, and not for limiting the same; although the application has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present application, and are intended to be included in the scope of the present application.

Claims (9)

1. A method for accessing a network by a terminal device, comprising:
receiving a plurality of device identifiers actively broadcasted by a plurality of terminal devices, wherein each terminal device corresponds to one device identifier;
extracting an unextracted equipment identifier from a plurality of equipment identifiers, taking the extracted equipment identifier as a target identifier, and taking the terminal equipment broadcasting the target identifier as target equipment;
identifying the target equipment from a plurality of terminal equipment, acquiring the equipment type and the equipment position of the target equipment, and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position;
returning to execute the operation of extracting an unextracted equipment identifier from the plurality of equipment identifiers until each terminal equipment completes identity registration;
and when the target equipment receives the successful adding information, stopping broadcasting the equipment identification.
2. The terminal device network access method of claim 1, wherein the identifying the target device from the plurality of terminal devices comprises:
Sending a first instruction to the target equipment, wherein the first instruction is used for indicating the target equipment to perform multiple switching-on and switching-off operations;
and acquiring switching-on/off data of each terminal device in a first time period after the first instruction is sent, and identifying the target device from a plurality of terminal devices based on the switching-on/off data.
3. The network access method of the terminal device according to claim 2, wherein the switching-on/off data is switching-on/off times, and the obtaining switching-on/off data of each terminal device in a first duration after the first instruction is sent out includes:
acquiring videos acquired by a plurality of terminal devices within a first time length after the first instruction is sent;
and respectively carrying out startup and shutdown identification on each terminal device by utilizing the video to obtain startup and shutdown times of each terminal device.
4. The method for accessing a network of a terminal device according to claim 3, wherein the step of using the video to identify the powering on/off of each terminal device to obtain the number of times of powering on/off of each terminal device comprises:
the video is utilized to identify the display and the indicator lights of the plurality of terminal devices, and the plurality of terminal devices are classified and searched based on the identification results of the display and the indicator lights, so that a first type of device containing the display and a second type of device only containing the indicator lights are obtained;
On-off identification is carried out on the first type of equipment based on display video data of the first type of equipment in the video, so as to obtain the on-off times of the first type of equipment;
and on-off identification is carried out on the second type of equipment based on the pilot lamp video data of the second type of equipment in the video, so as to obtain the on-off times of the second type of equipment.
5. The method for accessing a network of a terminal device according to claim 3 or 4, wherein the step of using the video to identify the switching on/off of each terminal device to obtain the switching on/off times of each terminal device, further comprises:
extracting audio data of third-class equipment from the video, and carrying out on-off identification on the third-class equipment based on the audio data to obtain the on-off times of the third-class equipment, wherein the third-class equipment refers to terminal equipment which does not contain a display or an indicator light.
6. A terminal device networking device, comprising:
the device comprises an identifier receiving module, a plurality of terminal devices and a control module, wherein the identifier receiving module is used for receiving device identifiers actively broadcasted by a plurality of terminal devices, and each terminal device corresponds to one device identifier;
The device comprises an identifier extraction module, a target device and a terminal device, wherein the identifier extraction module is used for extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier and taking the terminal device broadcasting the target identifier as a target device, and the target device stops broadcasting the device identifier when receiving the successful adding information;
the device searching module is used for identifying the target device from a plurality of terminal devices;
the identity registration module is used for acquiring the equipment type and the equipment position of the target equipment and registering the identity of the target equipment based on the target identification, the equipment type and the equipment position;
and the return execution module is used for returning to execute the operation of extracting one non-extracted equipment identifier from the plurality of equipment identifiers until each terminal equipment completes identity registration.
7. A network access system for a terminal device, comprising: gateway equipment and a plurality of terminal equipments;
the terminal devices are used for actively broadcasting a plurality of device identifiers to the gateway, wherein each terminal device corresponds to one device identifier;
The gateway device is used for extracting an unextracted device identifier from a plurality of device identifiers, taking the extracted device identifier as a target identifier, and taking the terminal device broadcasting the target identifier as a target device;
the gateway device is further configured to identify the target device from a plurality of terminal devices, obtain a device type and a device location of the target device, and perform identity registration on the target device based on the target identifier, the device type and the device location;
the gateway device is further configured to return to performing the operation of extracting one device identifier that is not extracted from the plurality of device identifiers until each terminal device completes identity registration;
the terminal device is further configured to stop broadcasting the device identifier if the addition success information is received.
8. A gateway device comprising a memory, a processor, the memory having stored thereon a computer program executable on the processor, the processor executing the computer program to perform the steps of the method according to any of claims 1 to 5.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed by a processor implements the steps of the method according to any one of claims 1 to 5.
CN201910963572.2A 2019-10-11 2019-10-11 Terminal equipment networking method and device and gateway equipment Active CN112738803B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910963572.2A CN112738803B (en) 2019-10-11 2019-10-11 Terminal equipment networking method and device and gateway equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910963572.2A CN112738803B (en) 2019-10-11 2019-10-11 Terminal equipment networking method and device and gateway equipment

Publications (2)

Publication Number Publication Date
CN112738803A CN112738803A (en) 2021-04-30
CN112738803B true CN112738803B (en) 2023-09-05

Family

ID=75588740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910963572.2A Active CN112738803B (en) 2019-10-11 2019-10-11 Terminal equipment networking method and device and gateway equipment

Country Status (1)

Country Link
CN (1) CN112738803B (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102548033A (en) * 2011-10-17 2012-07-04 杭州曼宁科技有限公司 Reliable Internet of things networking layout method

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104243406A (en) * 2013-06-09 2014-12-24 中国移动通信集团公司 Terminal access authentication method and device in internet of things system
CN105978873B (en) * 2016-05-09 2020-08-14 腾讯科技(深圳)有限公司 Customized equipment registration method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102548033A (en) * 2011-10-17 2012-07-04 杭州曼宁科技有限公司 Reliable Internet of things networking layout method

Also Published As

Publication number Publication date
CN112738803A (en) 2021-04-30

Similar Documents

Publication Publication Date Title
CN108804299B (en) Application program exception handling method and device
CN108810116B (en) Message processing method and related product
US8769030B2 (en) Device event notification registration through direct interaction with mobile device
CN109067883B (en) Information pushing method and device
CN113038084B (en) State identification method, device and system
KR20140141584A (en) Communication device, control method, and program
CN114244644B (en) Control method and device for intelligent home, storage medium and electronic device
CN111596967A (en) Application function configuration method, terminal device, server and storage medium
EP3046349A1 (en) Method and device for sending a message
US20170005825A1 (en) Method and device for event notification in home network system
CN109561002B (en) Voice control method and device for household electrical appliance
CN112738803B (en) Terminal equipment networking method and device and gateway equipment
CN111818611B (en) Equipment binding method and device
CN109379749B (en) Router control method, system, equipment and router
CN108346274A (en) Detect method, apparatus, remote controler, UAV system and the medium of unmanned plane
CN110493818B (en) Detection method and device of wireless fidelity module, storage medium and electronic device
CN113839991A (en) Method and device for confirming equipment information, storage medium and electronic device
CN109410933B (en) Device control method and apparatus, storage medium, and electronic apparatus
CN116137611B (en) Traffic distribution method, device, equipment and medium
EP3477469A1 (en) Method and apparatus for application to receive information
CN110895937A (en) Method and device for acquiring voice control signaling
CN111343453B (en) Image quality standard adjusting method and device
CN114698064B (en) Bluetooth network distribution method, device, system and storage medium
CN110740347B (en) Video content detection system, method, device, server and storage medium
CN112543251B (en) Method, device and equipment for analyzing terminal short message and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant