WO2022041602A1 - Method and apparatus for managing devices in internet of things - Google Patents

Method and apparatus for managing devices in internet of things Download PDF

Info

Publication number
WO2022041602A1
WO2022041602A1 PCT/CN2020/139737 CN2020139737W WO2022041602A1 WO 2022041602 A1 WO2022041602 A1 WO 2022041602A1 CN 2020139737 W CN2020139737 W CN 2020139737W WO 2022041602 A1 WO2022041602 A1 WO 2022041602A1
Authority
WO
WIPO (PCT)
Prior art keywords
wake
time period
group
target
target device
Prior art date
Application number
PCT/CN2020/139737
Other languages
French (fr)
Chinese (zh)
Inventor
陶冬
Original Assignee
广州视源电子科技股份有限公司
广州视琨电子科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 广州视源电子科技股份有限公司, 广州视琨电子科技有限公司 filed Critical 广州视源电子科技股份有限公司
Publication of WO2022041602A1 publication Critical patent/WO2022041602A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • GPHYSICS
    • G16INFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR SPECIFIC APPLICATION FIELDS
    • G16YINFORMATION AND COMMUNICATION TECHNOLOGY SPECIALLY ADAPTED FOR THE INTERNET OF THINGS [IoT]
    • G16Y40/00IoT characterised by the purpose of the information processing
    • G16Y40/30Control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W56/00Synchronisation arrangements
    • 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/50Reducing energy consumption in communication networks in wire-line communication networks, e.g. low power modes or reduced link rate
    • 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

Definitions

  • the present application relates to the technical field of the Internet of Things, and in particular, to a method and apparatus for device management in the Internet of Things.
  • the Internet of Things technology connects devices with the Internet through an agreed protocol (for example, the wifi protocol) to form a local area network. Intelligent management of devices in the local area network.
  • an agreed protocol for example, the wifi protocol
  • each device in the local area network since the clocks of each device in the local area network are independent of each other and there is no unified time reference, the clocks of each device are not synchronized, and each device in the local area network has an independent wake-up time period. Therefore, each device in the local area network uploads working data to the cloud server through the intermediate device in the local area network according to its own wake-up time period. As long as there is a device that needs to upload work data to the cloud server, it needs to wake up the intermediate device once, resulting in the failure of the local area network. High consumption.
  • the present application provides a method and apparatus for device management in the Internet of Things, so as to reduce the overall power consumption of the local area network.
  • the present application provides a device management method in the Internet of Things, including:
  • the first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information, and the access point of the first network is the first device;
  • the first device divides the second device into a target device group, and the target device group includes one or more second devices;
  • the first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
  • the first device divides the second device into a target device group, including:
  • the first device divides the second device into the target device group according to the self-awakening time period of the second device.
  • the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
  • the first device divides the second device into a target device group, including:
  • the classification instruction is used to indicate a functional category to which the second device belongs;
  • the second device is divided into target device groups according to the functional category to which the second device belongs.
  • the functional category to which the second device belongs is the same as the functional category to which each device in the target device group belongs.
  • the classification instruction is generated by the first device according to a user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
  • the method before the first device sends a wake-up time period to the target device group, the method further includes:
  • the first device After the first device divides the second device into a target device group, the first device determines the wake-up time period of the target device group according to the wake-up time period of each device in the target device group.
  • the method before the first device sends a wake-up time period to the target device group, the method further includes:
  • the first device obtains the wake-up time period of the target device group set by the user
  • the wake-up time period is generated by the first device according to the user's wake-up time period operation, or is sent by the first device after receiving other devices according to the user's wake-up time period operation.
  • the method further includes:
  • the first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
  • the method further includes:
  • the first device When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
  • the present application provides an apparatus for managing devices in the Internet of Things, including:
  • a sending module used by the first device to send clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the operating clock of the first device according to the clock synchronization information.
  • a processing module for the first device to divide the second device into a target device group, where the target device group includes one or more second devices;
  • the sending module is further configured for the first device to send the wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
  • the processing module when the first device divides the second device into the target device group, the processing module may be used to:
  • the first device divides the second device into a target device group according to its own wake-up time period of the second device.
  • the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
  • the processing module 52 when the first device divides the second device into the target device group, the processing module 52 may be configured to:
  • the classification instruction is used to indicate the functional category to which the second device belongs;
  • the second device is divided into target device groups according to the function category to which the second device belongs.
  • the functional class to which the second device belongs is the same as the functional class to which each device in the target device group belongs.
  • the classification instruction is generated by the first device according to the user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
  • the processing module before the first device sends the wake-up time period to the target device group, the processing module is further configured to:
  • the first device After the first device divides the second device into the target device group, the first device determines the wake-up time period of the target device group according to the wake-up time period of each device in the target device group.
  • the processing module before the first device sends the wake-up time period to the target device group, the processing module is further configured to:
  • the first device obtains the wake-up time period of the target device group set by the user; wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or, the first device receives other devices according to the user's wake-up time period operation sent.
  • the sending module is further configured to:
  • the first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
  • the sending module is further configured to:
  • the first device When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
  • the present application provides an electronic device, the electronic device comprising: at least one processor and a memory;
  • the memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory to perform the method described in any one of the first aspects of the embodiments of this application.
  • the present application provides a computer-readable storage medium, where program instructions are stored in the computer-readable storage medium, and when the program instructions are executed by a processor, the method described in any one of the first aspect of the embodiment of the application is implemented .
  • the present application provides a program product, the program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the data from the readable storage medium.
  • the computer program is executed by the at least one processor, so that the electronic device implements the method described in any one of the first aspect of the embodiments of the present application.
  • the present application provides a device management method and apparatus in the Internet of Things.
  • a first device sends clock synchronization information to a second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device.
  • the first device divides the second device into the target device group, and sends the wake-up time period to the target device group.
  • each second device in the target device group has the same wake-up time period, so that the first device only needs to be woken up once when the wake-up time period arrives, reducing the number of times the first device is woken up and reducing the overall power consumption of the local area network.
  • the order of uploading work data through the first device can be managed. Even if these wake-up devices wake up at the same time and upload work data through the first device, multiple wake-up devices can be avoided at the same time.
  • the first device is occupied, thereby avoiding the frequent switching between the sleep state and the wake-up state due to the need to upload working data of the wake-up device, and also reduces the overall power consumption of the local area network.
  • the wake-up devices in the same device group upload the work data in an orderly manner, which can also avoid the loss of the work data and the untimely upload.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application
  • FIG. 2 is a flowchart of a device management method in the Internet of Things provided by an embodiment of the present application
  • FIG. 3 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application.
  • FIG. 4 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a device management device in the Internet of Things provided by an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 7 is a block diagram of an apparatus 700 for device management in the Internet of Things according to an embodiment of the present application.
  • FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the illustrated application scenario is described by taking a local area network formed in a home as an example.
  • the mobile phone is used as a hotspot device, and devices such as refrigerators, TVs, air conditioners, and desk lamps are connected to the hotspot established by the mobile phone to access the network formed by the mobile phone.
  • devices such as refrigerators, TVs, air conditioners, and desk lamps need to upload working data to the cloud server through mobile phones to perform statistics and management on the operation information of each device in the local area network.
  • refrigerators, TVs, air conditioners, desk lamps and other devices need to be in the wake-up state when uploading working data to the cloud server, that is, each device is in the wake-up state when it needs to upload data, and returns to the sleep state after uploading data.
  • the device every time a device uploads working data to the cloud server through a mobile phone, the device needs to wake up the mobile phone, and then establish a communication connection with the mobile phone. When no device uploads data through the mobile phone, the mobile phone returns to the sleep state, thereby reducing the internal power of the local area network. consumption.
  • the clocks of refrigerators, TVs, air conditioners, desk lamps and other devices are independent of each other, and there is no unified time reference, so the clocks of each device are not synchronized.
  • Each device has an independent wake-up time period. This causes refrigerators, TVs, air conditioners, desk lamps and other devices to upload working data to the cloud server through intermediate devices in the local area network according to their respective wake-up time periods. Phones are frequently woken up, increasing power consumption.
  • a device such as a TV
  • other devices such as the projector
  • the projector starts to establish a connection with the mobile phone, but at this time , the phone is being occupied by another device, making the projector unable to use the phone. Therefore, in order not to increase the power consumption, the projector returns to the sleep state, and then wakes up every preset time to try to establish a connection with the mobile phone until the upload of the work data is completed.
  • the device frequently switches between wake-up and sleep, and attempts to establish a connection with the mobile phone every time it is in the wake-up state, which also increases the overall power consumption of the local area network.
  • the devices in the local area network cannot upload the work data normally when the wake-up time period arrives, the work data will not be uploaded in time, which will affect the statistics and management of the device operation information, which is not conducive to the centralized management of each device in the local area network. .
  • this application proposes that the WiFi6 protocol supports the target wakeup time (Target Wakeup Time, TWT) function and the clock synchronization (WLAN TimeSync) function. Wake-up time periods can be coordinated as needed.
  • the devices in the local area network access the local area network, they all need to access the hotspot of the intermediate device to connect to the local area network.
  • the refrigerator, TV, air conditioner, desk lamp and other devices in Figure 1 are connected to the hotspot turned on by the mobile phone to enter the local area network. Therefore, the running clock of the intermediate device can be synchronized to the devices connected to the network of the intermediate device.
  • the running clocks of the devices in the local area network can be synchronized, and the problem that the clocks of the devices in the local area network are not synchronized can be solved.
  • the intermediate device is also referred to as the master clock device in this application, and the other devices connected to the master clock device network are referred to in this application as the wake-up device.
  • the wake-up devices in each group have the same wake-up time period, so that the wake-up devices in each group use the master clock device to upload working data in an orderly manner, avoiding frequent wake-up of the master clock device and frequent wake-up and sleep of the wake-up device. switching, reducing the overall power consumption of the LAN.
  • the group management of the wake-up devices also improves the unified management of the wake-up devices and improves the overall intelligence of the local area network.
  • FIG. 2 is a flowchart of a device management method in the Internet of Things provided by an embodiment of the present application.
  • the execution subject of the embodiment of the present application is the first device, that is, the master clock device, wherein the master clock device is a device that can open a hotspot, wherein the master clock device can be used as an independent device to establish a hotspot, for example, a mobile phone, or other A hotspot can be established together with the devices.
  • a portable wifi can be plugged into a USB interface of a desktop computer to establish a hotspot, which is not limited in this application.
  • the method of the embodiment of the present application includes:
  • the first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
  • the access point of the first network is the first device.
  • the second device that is, the wake-up device
  • the master clock device such as FIG.
  • the mobile phone in 1 generates clock synchronization information, and encapsulates the clock synchronization information into a time synchronization data packet and sends it to the wake-up device.
  • the clock synchronization information includes the time point when the master clock device sends the time synchronization data packet, and the time synchronization data packet will record the transmission duration during the transmission process.
  • the wake-up device After the wake-up device receives the time synchronization data packet, it decompresses the time synchronization data packet to obtain the clock synchronization information and the transmission duration. According to the time point when the master clock device sends the time synchronization data packet and the transmission duration recorded in the clock synchronization information, the calculation is obtained. Wake up the running clock of the master clock when the device receives the time synchronization data packet, and adjust its own running clock so that the adjusted running clock is synchronized with the running clock of the master clock device. Among them, in the local area network, since the operation clock of each wake-up device connected to the master clock device is synchronized with the operation clock of the master clock device, the operation clocks of all devices in the local area network are synchronized.
  • the first device divides the second device into a target device group, where the target device group includes one or more second devices.
  • the wake-up device when the wake-up device is connected to the network of the master clock device, if the target device group can be divided, the wake-up device is divided into the target device group.
  • the target device group includes at least two a wake-up device.
  • the wake-up device when the wake-up device is connected to the network of the master clock device, there is no target device group matching the wake-up device. In this case, a new device group is created. The newly created device group only includes the wake-up device.
  • the new wake-up device When a new wake-up device is connected to the network of the master clock device, if it matches the newly created device group, the new wake-up device will be divided into the newly created device. in the device group.
  • the master clock device groups the plurality of wake-up devices, and divides each wake-up device into a matching target device group.
  • the master clock device configures and manages the wake-up time period for the wake-up devices in each device group.
  • the master clock device sends the wake-up time to the device group. period, so as to send the wake-up time period of the device group to the wake-up device when a wake-up device is divided into the device group.
  • the master clock device can directly configure the wake-up time period of the device group to the wake-up device, so that the wake-up devices in the same device group have the same wake-up time period. In this way, for the wake-up devices in the same device group, since they have the same wake-up time period, the wake-up devices in the same device group will switch from the sleep state to the wake-up state at the same time to upload working data.
  • one of the wake-up devices wakes the master clock device from the sleep state to the wake-up state and then uploads the work data.
  • the other A wake-up device can directly establish a connection with the master clock device, and use the master clock device to upload working data without waking up the master clock device again, reducing the number of times the master clock device is woken up.
  • each wake-up device uses the master clock device in the default order, or The master clock device controls the upload sequence of each wake-up device to avoid the problem of multiple wake-up devices occupying the master clock device at the same time, thereby avoiding the problem that the wake-up device frequently switches between the sleep state and the wake-up state.
  • the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device divides the second device into the target device group, and sends the wake-up time period to the target device group. In this way, each second device in the target device group has the same wake-up time period, so that the first device only needs to be woken up once when the wake-up time period arrives, reducing the number of times the first device is woken up and reducing the overall power consumption of the local area network. In addition, for the wake-up devices in the same device group, the order of uploading work data through the first device can be managed.
  • the wake-up devices in the same device group upload the work data in an orderly manner, which can also avoid the loss of the work data and the untimely upload.
  • FIG. 3 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application. As shown in ⁇ 3, on the basis of FIG. 2, the method of the embodiment of the present application includes:
  • the first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
  • the first device divides the second device into a target device group according to the self-awakening time period of the second device.
  • each wake-up device has its own wake-up time period, wherein, for example, the wake-up time period of the wake-up device itself may be set by the wake-up device during production, or the wake-up device may be set by the wake-up device before accessing the network of the master clock device. It is configured by the master clock device in other local area networks. When the wake-up device is connected to the network of the master clock device, the wake-up device will be divided into device groups according to the wake-up time period of the wake-up device itself.
  • the wake-up device will be divided into the device group; if there is no wake-up time of the existing wake-up device in the device group For a device group whose period is consistent with the wake-up time period of the wake-up device, a new device group is created, and the wake-up device is divided into the newly created device group.
  • the master clock device divides the wake-up devices with the same wake-up time period into a group according to the wake-up time period of each wake-up device.
  • the wake-up devices can be divided into device groups whose wake-up time period corresponding to the device group is closest to the wake-up time period of the wake-up device itself. For example, the wake-up time period for the wake-up device itself is 10.3s. If there is a device group with wake-up time periods of 10s and 20s, the wake-up device is divided into a device group with a wake-up time period of 10s, and the wake-up device wakes up The time period is adjusted to 10s.
  • the first device determines a wake-up time period corresponding to the target device group according to the wake-up time period of each device in the target device group.
  • the wake-up time period corresponding to the device group can be, for example, the wake-up time period of the wake-up device itself in the group, or the user can set the wake-up time period through the master clock device.
  • the wake-up time period corresponding to each device group can be, for example, the wake-up time period of the wake-up device itself in the group, or the user can set the wake-up time period through the master clock device.
  • the wake-up time periods of the wake-up devices in the device group are close.
  • the master clock device can select the wake-up time period of any wake-up device in the device group as the wake-up time period corresponding to the device group, or specify a wake-up time period for the device group, wherein the specified wake-up time period is the same as the wake-up time period.
  • the variance between wake-up time periods within a device group that wakes up a device itself is minimal.
  • S304 The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
  • the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device divides the second device into the target device group according to the self-awakening time period of the second device, and determines the wake-up time period corresponding to the target device group according to the self-awakening time period of each device in the target device group , sending the wake-up time period corresponding to the target device group to the second device, so that each second device in the target device group uploads data through the first device when the same wake-up time period arrives.
  • the number of wake-up times of the first device and the wake-up device is reduced, and the overall power consumption of the local area network is reduced.
  • the wake-up devices are grouped, and the wake-up devices in the same device group upload work data in an orderly manner, which can also avoid the loss of work data and the untimely upload.
  • FIG. 4 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application. As shown in ⁇ 4, on the basis of FIG. 2, the method of the embodiment of the present application includes:
  • the first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
  • the wake-up device when the wake-up device successfully connects to the network of the master clock device, if the master clock device is a device with a screen, the connected wake-up device, function options and input boxes are displayed on the screen of the master clock device.
  • the input box is used for the user to input the function options corresponding to the wake-up device when the function categories corresponding to the function options displayed on the screen do not match the function of the wake-up device.
  • the user selects the corresponding function option according to the function of the wake-up device or inputs the function option corresponding to the wake-up device in the input box, and inputs the classification instruction to the master clock device.
  • the user can also input the classification instruction through other devices with a screen.
  • the other device may be, for example, any wake-up device with a screen connected to the master clock device network, or a device with a screen connected to the master clock device through the interface entry address preset by the master clock device. Not limited.
  • the master clock device after receiving the classification instruction input by the user, obtains the function category of the wake-up device, and divides the wake-up device into corresponding device groups according to the function category of the wake-up device.
  • the function class to which the wake-up device belongs is the same as the function class to which each wake-up device in the corresponding device group belongs. For example, group audio devices into the same device group and smart toys into the same device group.
  • the first device acquires the wake-up time period corresponding to the target device group set by the user.
  • the wake-up time period is generated by the first device according to the user's wake-up time period operation, or the first device receives and sends the wake-up time period operation from other devices according to the user's wake-up time period.
  • the user sets the wake-up time period corresponding to each device group through the master clock device or other devices connected to the master clock device, so that the wake-up time periods of the wake-up devices in the device group are consistent.
  • S405 The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the same wake-up time period arrives.
  • the wake-up time period defaults to the wake-up time period corresponding to the device group.
  • the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device obtains the classification instruction input by the user, and classifies the second device into the target device group according to the function category to which the second device belongs. Next, the first device obtains the wake-up time period corresponding to the target device group set by the user, and sends the wake-up time period corresponding to the target device group to the second device, so that each second device in the target device group arrives at the same wake-up time period Upload data through the first device. The number of wake-up times of the first device and the wake-up device is reduced, and the overall power consumption of the local area network is reduced. In addition, the wake-up devices are grouped, and the wake-up devices in the same device group upload work data in an orderly manner, which can also avoid the loss of work data and the untimely upload.
  • the method of the present application further includes: the first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device and the running clock of the first device according to the clock synchronization information keep in sync.
  • the running clock of the wake-up device is consistent with the master clock device.
  • the running clocks between the wake-up devices and before the wake-up device and the master clock device are not synchronized after a period of time. Therefore, the user can preset the synchronization time period of the master clock device.
  • the master clock device sends clock synchronization information to the wake-up device, so that the second device can maintain synchronization with the operating clock of the first device according to the clock synchronization information. .
  • the method of the present application further includes: when the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up the target device group. of each device.
  • the wake-up device when the wake-up device wakes up and uploads data according to the wake-up time period, when the wake-up time arrives, the wake-up device can wake up autonomously, and enter the sleep state autonomously after the data upload is completed.
  • the master clock device sends a wake-up command to each device in the target device group when the wake-up time period corresponding to the target device group arrives to Wake up each device in the target device group.
  • the master clock device saves the wake-up time period corresponding to each device group.
  • the wake-up time period of each device group arrives, it starts to traverse the wake-up device.
  • the device sends a wake-up command to wake up each device in the target device group.
  • the master clock device finds that the wake-up device that should upload data has not uploaded data within the preset time, it sends a wake-up instruction to the corresponding wake-up device to wake up the wake-up device. In this way, it is possible to avoid untimely uploading of working data of the wake-up device, and to improve the intelligence of the local area network.
  • FIG. 5 is a schematic structural diagram of an apparatus for managing devices in the Internet of Things according to an embodiment of the present application.
  • the apparatus provided by this embodiment of the present application includes: a sending module 51 and a processing module 52 . in,
  • the sending module 51 is used for the first device to send clock synchronization information to the second device connected to the first network, so that the second device is synchronized with the operating clock of the first device according to the clock synchronization information.
  • the access to the first network point is the first device;
  • a processing module 52 configured for the first device to divide the second device into a target device group, where the target device group includes one or more second devices;
  • the sending module 51 is further configured for the first device to send a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
  • the processing module 52 when the first device divides the second device into the target device group, the processing module 52 may be configured to:
  • the first device divides the second device into a target device group according to its own wake-up time period of the second device.
  • the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
  • the processing module 52 when the first device divides the second device into the target device group, the processing module 52 may be configured to:
  • the classification instruction is used to indicate the functional category to which the second device belongs;
  • the second device is divided into target device groups according to the function category to which the second device belongs.
  • the functional class to which the second device belongs is the same as the functional class to which each device in the target device group belongs.
  • the classification instruction is generated by the first device according to the user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
  • the processing module 52 before the first device sends the wake-up time period to the target device group, the processing module 52 is further configured to:
  • the first device After the first device divides the second device into the target device group, the first device determines the wake-up time period corresponding to the target device group according to the wake-up time period of each device in the target device group.
  • the processing module 52 before the first device sends the wake-up time period to the target device group, the processing module 52 is further configured to:
  • the first device obtains the wake-up time period corresponding to the target device group set by the user; wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or the first device receives other devices according to the user's wake-up time period Action sent.
  • the sending module 51 is further configured to:
  • the first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
  • the sending module 51 is further configured to:
  • the first device When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
  • the apparatus of this embodiment can be used to execute the technical solution of any method embodiment described above, and the implementation principle and technical effect thereof are similar, and are not repeated here.
  • FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device in this embodiment may include: at least one processor 61 and a memory 62 . Figure 6 shows an electronic device with a processor as an example, wherein,
  • the memory 62 is used to store programs.
  • the program may include program code including computer operating instructions.
  • the memory 62 may include high-speed random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
  • the processor 61 is configured to execute the computer-executed instructions stored in the memory 62 to implement the device management method in the Internet of Things in the foregoing embodiment.
  • the processor 61 may be a central processing unit (Central Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application .
  • CPU Central Processing Unit
  • ASIC Application Specific Integrated Circuit
  • the memory 62 and the processor 61 can be connected to each other through a bus and complete mutual communication.
  • the bus can be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral device interconnect (Peripheral Component, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus and the like.
  • the bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
  • the memory 62 and the processor 61 can complete the same communication through an internal interface.
  • FIG. 7 is a block diagram of an apparatus 700 for device management in the Internet of Things, according to an exemplary embodiment.
  • apparatus 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
  • the apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, And the communication component 716 .
  • the processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations.
  • the processing component 702 can include one or more processors 720 to execute instructions to perform all or some of the steps of the methods described above.
  • processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components.
  • processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
  • Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. Memory 704 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
  • SRAM static random access memory
  • EEPROM electrically erasable programmable read only memory
  • EPROM erasable Programmable Read Only Memory
  • PROM Programmable Read Only Memory
  • ROM Read Only Memory
  • Magnetic Memory Flash Memory
  • Magnetic or Optical Disk Magnetic Disk
  • Power component 706 provides power to various components of device 700 .
  • Power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 700.
  • Multimedia component 708 includes screens that provide an output interface between the device 700 and the user.
  • the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user.
  • the touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action.
  • the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the apparatus 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
  • Audio component 710 is configured to output and/or input audio signals.
  • audio component 710 includes a microphone (MIC) that is configured to receive external audio signals when device 700 is in operating modes, such as calling mode, recording mode, and voice recognition mode.
  • the received audio signal may be further stored in memory 704 or transmitted via communication component 716 .
  • audio component 710 also includes a speaker for outputting audio signals.
  • the I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
  • Sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of device 700 .
  • the sensor assembly 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the orientation or acceleration/deceleration of the device 700 and the temperature change of the device 700 .
  • Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact.
  • Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications.
  • the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
  • Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices.
  • Device 700 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof.
  • the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel.
  • the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication.
  • NFC near field communication
  • the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra-wideband
  • Bluetooth Bluetooth
  • apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGA field programmable A gate array
  • controller microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
  • a non-transitory computer-readable storage medium including instructions, such as a memory 704 including instructions, executable by the processor 720 of the apparatus 700 to perform the method described above.
  • the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like.
  • the steps including the above method embodiments are executed; and the aforementioned storage medium includes: a read-only memory (Read-Only Memory, ROM), a random access memory (random access memory, RAM), a magnetic disk or Various media that can store program codes, such as optical discs.
  • ROM Read-Only Memory
  • RAM random access memory
  • magnetic disk or Various media that can store program codes, such as optical discs.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computing Systems (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Medical Informatics (AREA)
  • Automation & Control Theory (AREA)
  • Electric Clocks (AREA)

Abstract

The present application provides a method and apparatus for managing devices in the Internet of Things. The method comprises: a first device sends clock synchronization information to a second device that accesses a first network, so that the operating clock of the second device is synchronous with that of the first device; and the first device classifies the second device to a target device group, and sends a wake-up time period to the target device group, so that each second device in the target device group has the same wake-up time period. Therefore, the first device only needs to be awakened once when the wake-up time period arrives, reducing the number of times that the first device is awakened and reducing the overall power consumption of a local area network. In addition, wake-up devices in the same device group can be managed according to an order in which the wake-up devices upload work data by means of the first device, avoiding frequent switching between a sleep state and a wake-up state of the wake-up devices, and reducing the overall power consumption of the local area network.

Description

物联网内设备管理方法和装置Device management method and device in Internet of Things
本申请要求于2020年8月26日提交中国专利局、申请号为CN202010870299.1、发明名称为“物联网内设备管理方法和装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number CN202010870299.1 and the invention titled "Method and Device for Device Management in the Internet of Things", which was filed with the Chinese Patent Office on August 26, 2020, the entire contents of which are incorporated by reference in in this application.
技术领域technical field
本申请涉及物联网技术领域,尤其涉及一种物联网内设备管理方法和装置。The present application relates to the technical field of the Internet of Things, and in particular, to a method and apparatus for device management in the Internet of Things.
背景技术Background technique
物联网技术是通过约定的协议(例如,wifi协议)将设备与互联网连接起来,形成一个局域网,在该局域网内,设备将自身的工作数据通过局域网内的中间设备传输至云服务器,从而实现对局域网内设备的智能化管理。The Internet of Things technology connects devices with the Internet through an agreed protocol (for example, the wifi protocol) to form a local area network. Intelligent management of devices in the local area network.
然而,由于局域网内每台设备的时钟互相独立,且没有统一的时间基准,因而每台设备的时钟不同步,并且,局域网内每台设备具有独立的唤醒时间周期。因此,局域网内的各设备根据各自的唤醒时间周期,通过局域网内的中间设备向云服务器上传工作数据,只要有设备需要向云服务器上传工作数据,就需要唤醒一次中间设备,从而导致局域网的功耗高。However, since the clocks of each device in the local area network are independent of each other and there is no unified time reference, the clocks of each device are not synchronized, and each device in the local area network has an independent wake-up time period. Therefore, each device in the local area network uploads working data to the cloud server through the intermediate device in the local area network according to its own wake-up time period. As long as there is a device that needs to upload work data to the cloud server, it needs to wake up the intermediate device once, resulting in the failure of the local area network. High consumption.
发明内容SUMMARY OF THE INVENTION
本申请提供一种物联网内设备管理方法和装置,以降低局域网的整体功耗。The present application provides a method and apparatus for device management in the Internet of Things, so as to reduce the overall power consumption of the local area network.
第一方面,本申请提供一种物联网内设备管理方法,包括:In a first aspect, the present application provides a device management method in the Internet of Things, including:
第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据所述时钟同步信息与所述第一设备的运行时钟同步,所述第一网络的接入点为所述第一设备;The first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information, and the access point of the first network is the first device;
所述第一设备将所述第二设备划分至目标设备组,所述目标设备组包括一个或多个第二设备;The first device divides the second device into a target device group, and the target device group includes one or more second devices;
所述第一设备向所述目标设备组发送唤醒时间周期,以使所述目标设备组内的各第二设备在所述唤醒时间周期到达时通过所述第一设备上传数据。The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
在一些实施例中,所述第一设备将所述第二设备划分至目标设备组,包括:In some embodiments, the first device divides the second device into a target device group, including:
所述第一设备根据所述第二设备的自身唤醒时间周期,将所述第二设备划分至所述目标设备组。The first device divides the second device into the target device group according to the self-awakening time period of the second device.
在一些实施例中,所述第二设备的自身唤醒时间周期最接近所述目标设备组对应的唤醒时间周期。In some embodiments, the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
在一些实施例中,所述第一设备将所述第二设备划分至目标设备组,包括:In some embodiments, the first device divides the second device into a target device group, including:
获取用户输入的分类指令,所述分类指令用于指示所述第二设备所属的功能类别;obtaining a classification instruction input by a user, where the classification instruction is used to indicate a functional category to which the second device belongs;
根据所述第二设备所属的功能类别,将所述第二设备划分至目标设备组。The second device is divided into target device groups according to the functional category to which the second device belongs.
在一些实施例中,所述第二设备所属的功能类别与所述目标设备组内的各设备所属的功能类别相同。In some embodiments, the functional category to which the second device belongs is the same as the functional category to which each device in the target device group belongs.
在一些实施例中,所述分类指令是所述第一设备根据用户的分类操作生成的,或者,是所述第一设备接收其它设备根据用户的分类操作发送的。In some embodiments, the classification instruction is generated by the first device according to a user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
在一些实施例中,所述第一设备向所述目标设备组发送唤醒时间周期之前,还包括:In some embodiments, before the first device sends a wake-up time period to the target device group, the method further includes:
所述第一设备将所述第二设备划分至目标设备组之后,所述第一设备根据所述目标设备组内的各设备的自身唤醒时间周期,确定所述目标设备组的唤醒时间周期。After the first device divides the second device into a target device group, the first device determines the wake-up time period of the target device group according to the wake-up time period of each device in the target device group.
在一些实施例中,所述第一设备向所述目标设备组发送唤醒时间周期之前,还包括:In some embodiments, before the first device sends a wake-up time period to the target device group, the method further includes:
所述第一设备获取用户设置的所述目标设备组的唤醒时间周期;The first device obtains the wake-up time period of the target device group set by the user;
其中,所述唤醒时间周期是所述第一设备根据用户的唤醒时间周期操作生成的,或者,是所述第一设备接收其它设备根据用户的唤醒时间周期操作发送的。Wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or is sent by the first device after receiving other devices according to the user's wake-up time period operation.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述第一设备根据同步时间周期,向所述第二设备发送时钟同步信息,以使第二设备根据所述时钟同步信息与所述第一设备的运行时钟保持同步。The first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
在一些实施例中,所述方法还包括:In some embodiments, the method further includes:
所述第一设备在所述目标设备组对应的唤醒时间周期到达时,向所述目标设备组内的各设备发送唤醒指令,以唤醒所述目标设备组内的各设备。When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
第二方面,本申请提供一种物联网内设备管理装置,包括:In a second aspect, the present application provides an apparatus for managing devices in the Internet of Things, including:
发送模块,用于第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟同步,所述第一网络的接入点为所述第一设备;A sending module, used by the first device to send clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the operating clock of the first device according to the clock synchronization information. The access point of the first network for the first device;
处理模块,用于第一设备将第二设备划分至目标设备组,目标设备组包括一个或多个第二设备;a processing module for the first device to divide the second device into a target device group, where the target device group includes one or more second devices;
发送模块,还用于第一设备向目标设备组发送唤醒时间周期,以使目标设备组内的各第二设备在唤醒时间周期到达时通过第一设备上传数据。The sending module is further configured for the first device to send the wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
在一些实施例中,第一设备将第二设备划分至目标设备组时,处理模块可用于:In some embodiments, when the first device divides the second device into the target device group, the processing module may be used to:
第一设备根据第二设备的自身唤醒时间周期,将第二设备划分至目标设备组。The first device divides the second device into a target device group according to its own wake-up time period of the second device.
在一些实施例中,第二设备的自身唤醒时间周期最接近目标设备组对应的唤醒时间周期。In some embodiments, the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
在一些实施例中,第一设备将第二设备划分至目标设备组时,处理模块52可用于:In some embodiments, when the first device divides the second device into the target device group, the processing module 52 may be configured to:
获取用户输入的分类指令,分类指令用于指示第二设备所属的功能类别;obtaining a classification instruction input by the user, where the classification instruction is used to indicate the functional category to which the second device belongs;
根据第二设备所属的功能类别,将第二设备划分至目标设备组。The second device is divided into target device groups according to the function category to which the second device belongs.
在一些实施例中,第二设备所属的功能类别与目标设备组内的各设备所属的功能类别相同。In some embodiments, the functional class to which the second device belongs is the same as the functional class to which each device in the target device group belongs.
在一些实施例中,分类指令是第一设备根据用户的分类操作生成的,或者,是第一设备接收其它设备根据用户的分类操作发送的。In some embodiments, the classification instruction is generated by the first device according to the user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
在一些实施例中,第一设备向目标设备组发送唤醒时间周期之前,处理模块还用于:In some embodiments, before the first device sends the wake-up time period to the target device group, the processing module is further configured to:
第一设备将第二设备划分至目标设备组之后,第一设备根据目标设备组内的各设备的自身唤醒时间周期,确定目标设备组的唤醒时间周期。After the first device divides the second device into the target device group, the first device determines the wake-up time period of the target device group according to the wake-up time period of each device in the target device group.
在一些实施例中,第一设备向目标设备组发送唤醒时间周期之前,处理模块还用于:In some embodiments, before the first device sends the wake-up time period to the target device group, the processing module is further configured to:
第一设备获取用户设置的目标设备组的唤醒时间周期;其中,唤醒时间周期是第一设备根据用户的唤醒时间周期操作生成的,或者,是第一设备接收其它设备根据用户的唤醒时间周期操作发送的。The first device obtains the wake-up time period of the target device group set by the user; wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or, the first device receives other devices according to the user's wake-up time period operation sent.
在一些实施例中,所述发送模块,还用于:In some embodiments, the sending module is further configured to:
第一设备根据同步时间周期,向第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟保持同步。The first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
在一些实施例中,所述发送模块,还用于:In some embodiments, the sending module is further configured to:
第一设备在目标设备组对应的唤醒时间周期到达时,向目标设备组内的各设备发送唤醒指令,以唤醒目标设备组内的各设备。When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
第三方面,本申请提供一种电子设备,该电子设备包括:至少一个处理器和存储器;In a third aspect, the present application provides an electronic device, the electronic device comprising: at least one processor and a memory;
所述存储器存储计算机执行指令;所述至少一个处理器执行所述存储器存储的计算机执行指令,以执行本申请实施例第一方面任一项所述的方法。The memory stores computer-executable instructions; the at least one processor executes the computer-executable instructions stored in the memory to perform the method described in any one of the first aspects of the embodiments of this application.
第四方面,本申请提供一种计算机可读存储介质,该计算机可读存储介质中存储有程序指令,所述程序指令被处理器执行时实现申请实施例第一方面任一项所述的方法。In a fourth aspect, the present application provides a computer-readable storage medium, where program instructions are stored in the computer-readable storage medium, and when the program instructions are executed by a processor, the method described in any one of the first aspect of the embodiment of the application is implemented .
第五方面,本申请提供一种程序产品,所述程序产品包括计算机程序,所述计算机程序存储在可读存储介质中,电子设备的至少一个处理器可以从所述可读存储介质读取所述计算机程序,所述至少一个处理器执行所述计算机程序使得电子设备实施本申请申请实施例第一方面任一项所述的方法。In a fifth aspect, the present application provides a program product, the program product includes a computer program, the computer program is stored in a readable storage medium, and at least one processor of an electronic device can read the data from the readable storage medium. The computer program is executed by the at least one processor, so that the electronic device implements the method described in any one of the first aspect of the embodiments of the present application.
本申请提供一种物联网内设备管理方法和装置,第一设备向接入第一设备网络的第二设备发送时钟同步信息,使得第二设备的运行时钟与第一设备的运行时钟同步。然后,第一设备将第二设备划分至目标设备组,向目标设备组发送唤醒时间周期。这样可以使目标设备组内的各第二设备具有相同的唤醒时间周期,从而在唤醒时间周期到达时只需要唤醒一次第一设备,减少第一设备被唤醒的次数,减少局域网的整体功耗。并且,对于同一设备组内的唤醒设备,可以对其通过第一设备上传工作数据的顺序进行管理,即使这些唤醒设备在同一时刻唤醒通过第一设备上传工作数据,也能避免多个唤醒设备同时占用第一设备的情况,从而避免唤醒设备由于需要上传工作数据而 频繁的进行休眠状态和唤醒状态的切换,也减少了局域网的整体功耗。并且,同一设备组内的唤醒设备有序的进行工作数据的上传,也可以避免工作数据丢失以及上传不及时的情况。The present application provides a device management method and apparatus in the Internet of Things. A first device sends clock synchronization information to a second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device divides the second device into the target device group, and sends the wake-up time period to the target device group. In this way, each second device in the target device group has the same wake-up time period, so that the first device only needs to be woken up once when the wake-up time period arrives, reducing the number of times the first device is woken up and reducing the overall power consumption of the local area network. In addition, for the wake-up devices in the same device group, the order of uploading work data through the first device can be managed. Even if these wake-up devices wake up at the same time and upload work data through the first device, multiple wake-up devices can be avoided at the same time. The first device is occupied, thereby avoiding the frequent switching between the sleep state and the wake-up state due to the need to upload working data of the wake-up device, and also reduces the overall power consumption of the local area network. In addition, the wake-up devices in the same device group upload the work data in an orderly manner, which can also avoid the loss of the work data and the untimely upload.
附图说明Description of drawings
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作一简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions in the embodiments of the present application or related technologies, the following briefly introduces the accompanying drawings used in the description of the embodiments or related technologies. Obviously, the drawings in the following description are the For some embodiments of the application, for those of ordinary skill in the art, other drawings can also be obtained based on these drawings without any creative effort.
图1为本申请一实施例提供的应用场景的示意图;FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application;
图2为本申请一实施例提供的物联网内设备管理方法的流程图;FIG. 2 is a flowchart of a device management method in the Internet of Things provided by an embodiment of the present application;
图3为本申请另一实施例提供的物联网内设备管理方法的流程图;3 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application;
图4为本申请另一实施例提供的物联网内设备管理方法的流程图;FIG. 4 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application;
图5为本申请一实施例提供的物联网内设备管理装置的结构示意图;FIG. 5 is a schematic structural diagram of a device management device in the Internet of Things provided by an embodiment of the present application;
图6为本申请一实施例提供的电子设备的结构示意图;6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application;
图7为本申请一实施例示出的一种用于物联网内设备管理的装置700的框图。FIG. 7 is a block diagram of an apparatus 700 for device management in the Internet of Things according to an embodiment of the present application.
具体实施方式detailed description
为使本申请实施例的目的、技术方案和优点更加清楚,下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。In order to make the purposes, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described clearly and completely below with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments It is a part of the embodiments of the present application, but not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative work fall within the protection scope of the present application.
图1为本申请一实施例提供的应用场景的示意图。如图1所示,示出的应用场景以家庭中形成的局域网为例进行说明。在图1中,手机作为热点设备,冰箱、电视、空调、台灯等设备连接手机建立的热点,以接入手机形成的网络中。对于图1所示的局域网,冰箱、电视、空调、台灯等设备需要通过手机将工作数据上传到云服务器,以对局域网内各设备的运行信息进行统计和管理。其中,冰箱、电视、空调、台灯等设备在向云服务器上传工作数据时,需要各设备处于唤醒状态,即各设备在需要上传数据时处于唤醒状态,上传数据结束后回到休眠状态。并且,每次有设备通过手机向云服务器上传 工作数据时,需要该设备将手机唤醒,然后与手机建立通信连接,当没有设备通过手机上传数据时,手机回到休眠状态,从而减少局域网内功耗。FIG. 1 is a schematic diagram of an application scenario provided by an embodiment of the present application. As shown in FIG. 1 , the illustrated application scenario is described by taking a local area network formed in a home as an example. In Figure 1, the mobile phone is used as a hotspot device, and devices such as refrigerators, TVs, air conditioners, and desk lamps are connected to the hotspot established by the mobile phone to access the network formed by the mobile phone. For the local area network shown in Figure 1, devices such as refrigerators, TVs, air conditioners, and desk lamps need to upload working data to the cloud server through mobile phones to perform statistics and management on the operation information of each device in the local area network. Among them, refrigerators, TVs, air conditioners, desk lamps and other devices need to be in the wake-up state when uploading working data to the cloud server, that is, each device is in the wake-up state when it needs to upload data, and returns to the sleep state after uploading data. Moreover, every time a device uploads working data to the cloud server through a mobile phone, the device needs to wake up the mobile phone, and then establish a communication connection with the mobile phone. When no device uploads data through the mobile phone, the mobile phone returns to the sleep state, thereby reducing the internal power of the local area network. consumption.
相关技术中,冰箱、电视、空调、台灯等设备之间的时钟互相独立,且没有统一的时间基准,因而每台设备的时钟不同步,并且,冰箱、电视、空调、台灯等设备中的每台设备具有独立的唤醒时间周期。这就导致冰箱、电视、空调、台灯等设备根据各自的唤醒时间周期,通过局域网内的中间设备向云服务器上传工作数据,只要有设备需要向云服务器上传工作数据,就需要唤醒一次手机,使得手机频繁被唤醒,增加了功耗。In the related art, the clocks of refrigerators, TVs, air conditioners, desk lamps and other devices are independent of each other, and there is no unified time reference, so the clocks of each device are not synchronized. Each device has an independent wake-up time period. This causes refrigerators, TVs, air conditioners, desk lamps and other devices to upload working data to the cloud server through intermediate devices in the local area network according to their respective wake-up time periods. Phones are frequently woken up, increasing power consumption.
并且,当有设备,例如电视,正在通过手机上传工作数据时,如果其他设备,例如投影仪的一个唤醒时间周期达到,需要唤醒来上传工作数据,投影仪开始建立与手机的连接,但是此时,手机正在被另一设备占用,导致投影仪无法使用手机。因此,为不增加功耗,投影仪回到休眠状态,以后每隔预设时间唤醒一次,尝试与手机建立连接,直至完成工作数据的上传。然而,设备频繁的进行唤醒和休眠的切换,以及每次处于唤醒状态时就尝试与手机建立连接,也增加了局域网的整体功耗。并且,当有一台设备由于手机被其他设备占用而频繁的进行唤醒和休眠的切换时,也会引起其他设备无法在唤醒时间周期到达时正常上传工作数据,从而频繁的进行唤醒和休眠的切换,也增加了局域网的整体功耗。And, when a device, such as a TV, is uploading work data through the mobile phone, if other devices, such as the projector, reach a wake-up time period and need to wake up to upload the work data, the projector starts to establish a connection with the mobile phone, but at this time , the phone is being occupied by another device, making the projector unable to use the phone. Therefore, in order not to increase the power consumption, the projector returns to the sleep state, and then wakes up every preset time to try to establish a connection with the mobile phone until the upload of the work data is completed. However, the device frequently switches between wake-up and sleep, and attempts to establish a connection with the mobile phone every time it is in the wake-up state, which also increases the overall power consumption of the local area network. In addition, when a device frequently switches between wake-up and sleep because the mobile phone is occupied by other devices, it will also cause other devices to fail to upload work data normally when the wake-up time period arrives, thus frequently switching between wake-up and sleep. It also increases the overall power consumption of the LAN.
并且,如果局域网内的设备在唤醒时间周期到达时无法正常上传工作数据,会导致工作数据上传不及时,从而影响对设备运行信息的统计和管理,从而不利于对局域网内的各设备的集中管理。Moreover, if the devices in the local area network cannot upload the work data normally when the wake-up time period arrives, the work data will not be uploaded in time, which will affect the statistics and management of the device operation information, which is not conducive to the centralized management of each device in the local area network. .
因此,为解决相关技术中存在的至少一个问题,本申请提出:WiFi6协议支持目标唤醒时间(Target Wakeup Time,TWT)功能以及时钟同步(WLAN TimeSync)功能,基于此,局域网内的设备之间的唤醒时间周期可以根据需求进行协调。又由于,局域网内的设备在接入局域网时,均需要接入中间设备的热点从而连接入局域网中,例如,图1中的冰箱、电视、空调、台灯等设备连接手机开启的热点而进入局域网中,因此,可以将中间设备的运行时钟同步到接入该中间设备网络的设备中。这样,可以使局域网内各设备的运行时钟同步,解决局域网内各设备时钟不同步的问题。并且,通过中间设备,本申请中将中间设备也称为主时钟设备,对接入主时钟设备网络的其他设备, 本申请将接入中间设备网络的其他设备称为唤醒设备,进行分组,每组中的唤醒设备具有同一的唤醒时间周期,这样,每组中的唤醒设备之间有序使用主时钟设备上传工作数据,避免了主时钟设备被频繁的唤醒以及唤醒设备频繁的进行唤醒和休眠的切换,降低局域网的整体功耗。并且,对唤醒设备进行分组管理,也提高了对唤醒设备的统一管理,提高局域网整体的智能化。Therefore, in order to solve at least one problem existing in the related art, this application proposes that the WiFi6 protocol supports the target wakeup time (Target Wakeup Time, TWT) function and the clock synchronization (WLAN TimeSync) function. Wake-up time periods can be coordinated as needed. In addition, when the devices in the local area network access the local area network, they all need to access the hotspot of the intermediate device to connect to the local area network. For example, the refrigerator, TV, air conditioner, desk lamp and other devices in Figure 1 are connected to the hotspot turned on by the mobile phone to enter the local area network. Therefore, the running clock of the intermediate device can be synchronized to the devices connected to the network of the intermediate device. In this way, the running clocks of the devices in the local area network can be synchronized, and the problem that the clocks of the devices in the local area network are not synchronized can be solved. In addition, through the intermediate device, the intermediate device is also referred to as the master clock device in this application, and the other devices connected to the master clock device network are referred to in this application as the wake-up device. The wake-up devices in each group have the same wake-up time period, so that the wake-up devices in each group use the master clock device to upload working data in an orderly manner, avoiding frequent wake-up of the master clock device and frequent wake-up and sleep of the wake-up device. switching, reducing the overall power consumption of the LAN. In addition, the group management of the wake-up devices also improves the unified management of the wake-up devices and improves the overall intelligence of the local area network.
图2为本申请一实施例提供的物联网内设备管理方法的流程图。本申请实施例的执行主体为第一设备,即主时钟设备,其中,主时钟设备为可以开热点的设备,其中,主时钟设备可以是作为一个独立设备建立热点,例如,手机,或者与其他设备一起建立热点,例如,随身wifi插入到台式电脑的USB接口处也可以建立热点,本申请对此不限制。如图2所示,本申请实施例的方法包括:FIG. 2 is a flowchart of a device management method in the Internet of Things provided by an embodiment of the present application. The execution subject of the embodiment of the present application is the first device, that is, the master clock device, wherein the master clock device is a device that can open a hotspot, wherein the master clock device can be used as an independent device to establish a hotspot, for example, a mobile phone, or other A hotspot can be established together with the devices. For example, a portable wifi can be plugged into a USB interface of a desktop computer to establish a hotspot, which is not limited in this application. As shown in FIG. 2, the method of the embodiment of the present application includes:
S201、第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟同步。S201. The first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
其中,第一网络的接入点为第一设备。The access point of the first network is the first device.
本实施例中,当第二设备(即唤醒设备),例如,图1中的冰箱、电视、空调、台灯,连接主时钟设备建立的热点,接入到局域网中时,主时钟设备,例如图1中的手机,生成时钟同步信息,并将时钟同步信息封装成一时间同步数据包发送给唤醒设备。其中,时钟同步信息中包含主时钟设备发出时间同步数据包的时间点,并且时间同步数据包在传输过程中会记录传输的时长。In this embodiment, when the second device (that is, the wake-up device), such as a refrigerator, a TV, an air conditioner, and a desk lamp in FIG. 1 , is connected to a hotspot established by the master clock device, and is connected to the local area network, the master clock device, such as FIG. The mobile phone in 1 generates clock synchronization information, and encapsulates the clock synchronization information into a time synchronization data packet and sends it to the wake-up device. The clock synchronization information includes the time point when the master clock device sends the time synchronization data packet, and the time synchronization data packet will record the transmission duration during the transmission process.
唤醒设备接收到时间同步数据包后,对时间同步数据包进行解压,获取时钟同步信息以及传输时长,根据时钟同步信息中记录的主时钟设备发出时间同步数据包的时间点以及传输时长,计算获得唤醒设备接收到时间同步数据包时主时钟的运行时钟,并调整自身的运行时钟,使调整后的运行时钟与主时钟设备的运行时钟同步。其中,在局域网内,由于连接主时钟设备的每台唤醒设备的运行时钟均是与主时钟设备的运行时钟同步,因此,局域网内的所有设备的运行时钟时同步的。After the wake-up device receives the time synchronization data packet, it decompresses the time synchronization data packet to obtain the clock synchronization information and the transmission duration. According to the time point when the master clock device sends the time synchronization data packet and the transmission duration recorded in the clock synchronization information, the calculation is obtained. Wake up the running clock of the master clock when the device receives the time synchronization data packet, and adjust its own running clock so that the adjusted running clock is synchronized with the running clock of the master clock device. Among them, in the local area network, since the operation clock of each wake-up device connected to the master clock device is synchronized with the operation clock of the master clock device, the operation clocks of all devices in the local area network are synchronized.
S202、第一设备将第二设备划分至目标设备组,目标设备组包括一个或多个第二设备。S202. The first device divides the second device into a target device group, where the target device group includes one or more second devices.
本实施例中,例如,在唤醒设备接入主时钟设备的网络时,如果目标设备组可以是已经划分好,则将该唤醒设备划分至目标设备组,此时,目标设 备组中包含至少两个唤醒设备。或者,在唤醒设备接入主时钟设备的网络时,没有与该唤醒设备匹配的目标设备组,此时,新建一个设备组。其中,该新建的设备组中仅包括该唤醒设备,当有新的唤醒设备接入主时钟设备的网络时,如果与该新建的设备组匹配,则将该新的唤醒设备划分至该新建的设备组中。In this embodiment, for example, when the wake-up device is connected to the network of the master clock device, if the target device group can be divided, the wake-up device is divided into the target device group. At this time, the target device group includes at least two a wake-up device. Or, when the wake-up device is connected to the network of the master clock device, there is no target device group matching the wake-up device. In this case, a new device group is created. The newly created device group only includes the wake-up device. When a new wake-up device is connected to the network of the master clock device, if it matches the newly created device group, the new wake-up device will be divided into the newly created device. in the device group.
再例如,当接入主时钟设备的网络的唤醒设备的数目达到预设数量时,主时钟设备对该多个唤醒设备进行分组,将每个唤醒设备划分到与其匹配的目标设备组中。For another example, when the number of wake-up devices connected to the network of the master clock device reaches a preset number, the master clock device groups the plurality of wake-up devices, and divides each wake-up device into a matching target device group.
S203、第一设备向目标设备组的唤醒时间周期,以使目标设备组内的各第二设备在唤醒时间周期到达时通过第一设备上传数据。S203 , the wake-up time period of the first device to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
本实施例中,主时钟设备对每个设备组内的唤醒设备进行唤醒时间周期的配置和管理,当有唤醒设备被划分至一个新的设备组时,主时钟设备向该设备组发送唤醒时间周期,以在有唤醒设备被划分到该设备组时,将该设备组的唤醒时间周期发送给唤醒设备。并且,之后如果还有唤醒设备被划分到该设备组,主时钟设备可以直接将该设备组的唤醒时间周期配置给唤醒设备,从而使得同一设备组中的唤醒设备具有相同的唤醒时间周期。这样,对于同一设备组内的唤醒设备,由于具有相同的唤醒时间周期,同一设备组的唤醒设备会在同一时刻由休眠状态切换为唤醒状态,进行工作数据的上传。In this embodiment, the master clock device configures and manages the wake-up time period for the wake-up devices in each device group. When a wake-up device is divided into a new device group, the master clock device sends the wake-up time to the device group. period, so as to send the wake-up time period of the device group to the wake-up device when a wake-up device is divided into the device group. Moreover, if there are other wake-up devices that are divided into the device group, the master clock device can directly configure the wake-up time period of the device group to the wake-up device, so that the wake-up devices in the same device group have the same wake-up time period. In this way, for the wake-up devices in the same device group, since they have the same wake-up time period, the wake-up devices in the same device group will switch from the sleep state to the wake-up state at the same time to upload working data.
对于同一设备组的唤醒设备,在同一时刻进行工作数据的上传时,其中一个唤醒设备将主时钟设备由休眠状态唤醒为唤醒状态后进行工作数据上传,在该唤醒设备完成工作数据上传后,另一唤醒设备可直接与主时钟设备建立连接,使用主时钟设备进行工作数据上传,而不需要再次唤醒主时钟设备,减少主时钟设备被唤醒的次数。For the wake-up devices in the same device group, when uploading work data at the same time, one of the wake-up devices wakes the master clock device from the sleep state to the wake-up state and then uploads the work data. After the wake-up device completes the work data upload, the other A wake-up device can directly establish a connection with the master clock device, and use the master clock device to upload working data without waking up the master clock device again, reducing the number of times the master clock device is woken up.
并且,同一设备组的唤醒设备在同一时刻进行工作数据的上传时,各唤醒设备通过主时钟设备上传工作数据的顺序可以进行统一的协调,例如,各唤醒设备按照默认顺序使用主时钟设备,或者主时钟设备对各唤醒设备的上传顺序进行管控,避免在同一时刻有多个唤醒设备占用主时钟设备的问题,从而避免了唤醒设备频繁的进行休眠状态与唤醒状态切换的问题。Moreover, when the wake-up devices of the same device group upload working data at the same time, the order in which each wake-up device uploads the work data through the master clock device can be coordinated uniformly. For example, each wake-up device uses the master clock device in the default order, or The master clock device controls the upload sequence of each wake-up device to avoid the problem of multiple wake-up devices occupying the master clock device at the same time, thereby avoiding the problem that the wake-up device frequently switches between the sleep state and the wake-up state.
本实施例,第一设备向接入第一设备网络的第二设备发送时钟同步信息,使得第二设备的运行时钟与第一设备的运行时钟同步。然后,第一设备将第 二设备划分至目标设备组,向目标设备组发送唤醒时间周期。这样可以使目标设备组内的各第二设备具有相同的唤醒时间周期,从而在醒时间周期到达时只需要唤醒一次第一设备,减少第一设备被唤醒的次数,减少局域网的整体功耗。并且,对于同一设备组内的唤醒设备,可以对其通过第一设备上传工作数据的顺序进行管理,即使这些唤醒设备在同一时刻唤醒通过第一设备上传工作数据,也能避免多个唤醒设备同时占用第一设备的情况,从而避免唤醒设备由于需要上传工作数据而频繁的进行休眠状态和唤醒状态的切换,也减少了局域网的整体功耗。并且,同一设备组内的唤醒设备有序的进行工作数据的上传,也可以避免工作数据丢失以及上传不及时的情况。In this embodiment, the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device divides the second device into the target device group, and sends the wake-up time period to the target device group. In this way, each second device in the target device group has the same wake-up time period, so that the first device only needs to be woken up once when the wake-up time period arrives, reducing the number of times the first device is woken up and reducing the overall power consumption of the local area network. In addition, for the wake-up devices in the same device group, the order of uploading work data through the first device can be managed. Even if these wake-up devices wake up at the same time and upload work data through the first device, multiple wake-up devices can be avoided at the same time. The first device is occupied, thereby avoiding the frequent switching between the sleep state and the wake-up state due to the need to upload working data of the wake-up device, and also reduces the overall power consumption of the local area network. In addition, the wake-up devices in the same device group upload the work data in an orderly manner, which can also avoid the loss of the work data and the untimely upload.
图3为本申请另一实施例提供的物联网内设备管理方法的流程图。如士3所示,在图2的基础上,本申请实施例的方法包括:FIG. 3 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application. As shown in ±3, on the basis of FIG. 2, the method of the embodiment of the present application includes:
S301、第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟同步。S301. The first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
本实施例中,S301的实现方式可参考S201,此处不再赘述。In this embodiment, for the implementation of S301, reference may be made to S201, which will not be repeated here.
S302、第一设备根据第二设备的自身唤醒时间周期,将第二设备划分至目标设备组。S302. The first device divides the second device into a target device group according to the self-awakening time period of the second device.
本实施例中,每个唤醒设备具有自身的唤醒时间周期,其中,唤醒设备自身的唤醒时间周期例如可以是唤醒设备在生产时设置的,或者是唤醒设备在接入主时钟设备的网络前由其他局域网中的主时钟设备配置的。在唤醒设备接入主时钟设备的网络时,将根据唤醒设备自身的唤醒时间周期,将唤醒设备划分至设备组中。其中,若存在设备组内已有唤醒设备的唤醒时间周期与该唤醒设备的自身唤醒时间周期一致,则将唤醒设备划分至该设备组中;若不存在设备组内已有唤醒设备的唤醒时间周期与该唤醒设备的自身唤醒时间周期一致的设备组,则新建一个设备组,该将唤醒设备划分至该新建的设备组中。In this embodiment, each wake-up device has its own wake-up time period, wherein, for example, the wake-up time period of the wake-up device itself may be set by the wake-up device during production, or the wake-up device may be set by the wake-up device before accessing the network of the master clock device. It is configured by the master clock device in other local area networks. When the wake-up device is connected to the network of the master clock device, the wake-up device will be divided into device groups according to the wake-up time period of the wake-up device itself. Among them, if the wake-up time period of the existing wake-up device in the device group is consistent with the wake-up time period of the wake-up device itself, the wake-up device will be divided into the device group; if there is no wake-up time of the existing wake-up device in the device group For a device group whose period is consistent with the wake-up time period of the wake-up device, a new device group is created, and the wake-up device is divided into the newly created device group.
或者,当接入主时钟设备的唤醒设备的数量超过预设数量时,主时钟设备根据每个唤醒设备自身的唤醒时间周期,将自身唤醒时间周期一致的唤醒设备划分为一组。Or, when the number of wake-up devices connected to the master clock device exceeds the preset number, the master clock device divides the wake-up devices with the same wake-up time period into a group according to the wake-up time period of each wake-up device.
或者,当接入主时钟设备网络的唤醒设备的数量较多时,或者局域网内唤醒设备之间其自身的唤醒时间周期大多数不相同时,如果将自身唤醒时间 周期一致的唤醒设备划分为一组,则划分的设备组较多,且每个设备组内的唤醒设备较少,对于解决相关技术存在的问题效果较差。因此,可将唤醒设备划分为到设备组对应的唤醒时间周期最接近唤醒设备自身的唤醒时间周期的设备组中。例如,唤醒设备自身的唤醒时间周期为10.3s,如果存在唤醒时间周期分别为10s、20s的设备组,则将该唤醒设备划分到唤醒时间周期为10s的设备组,并将该唤醒设备的唤醒时间周期调整为10s。Or, when the number of wake-up devices connected to the master clock device network is large, or when most of the wake-up devices in the LAN have different wake-up time periods, if the wake-up devices with the same wake-up time period are divided into a group , there are many device groups divided, and each device group has fewer wake-up devices, which is less effective for solving the problems existing in the related art. Therefore, the wake-up devices can be divided into device groups whose wake-up time period corresponding to the device group is closest to the wake-up time period of the wake-up device itself. For example, the wake-up time period for the wake-up device itself is 10.3s. If there is a device group with wake-up time periods of 10s and 20s, the wake-up device is divided into a device group with a wake-up time period of 10s, and the wake-up device wakes up The time period is adjusted to 10s.
S303、第一设备根据目标设备组内的各设备的自身唤醒时间周期,确定目标设备组对应的唤醒时间周期。S303. The first device determines a wake-up time period corresponding to the target device group according to the wake-up time period of each device in the target device group.
本实施例中,如果将自身唤醒时间周期一致的唤醒设备划分为一个设备组,则设备组对应的唤醒时间周期例如可以为组内唤醒设备自身的唤醒时间周期,或者,用户通过主时钟设备设置每个设备组对应的唤醒时间周期。In this embodiment, if the wake-up devices with the same wake-up time period are divided into a device group, the wake-up time period corresponding to the device group can be, for example, the wake-up time period of the wake-up device itself in the group, or the user can set the wake-up time period through the master clock device. The wake-up time period corresponding to each device group.
如果将唤醒设备划分为到一个唤醒时间周期最接近唤醒设备自身的唤醒时间周期的设备组中,则设备组内唤醒设备的唤醒时间周期接近。此时,主时钟设备可以选择设备组内任一唤醒设备自身的唤醒时间周期作为该设备组对应的唤醒时间周期,或者,为该设备组指定一唤醒时间周期,其中,指定的唤醒时间周期与设备组内唤醒设备自身的唤醒时间周期之间的方差最小。If the wake-up devices are divided into a device group whose wake-up time period is closest to the wake-up time period of the wake-up device itself, the wake-up time periods of the wake-up devices in the device group are close. At this time, the master clock device can select the wake-up time period of any wake-up device in the device group as the wake-up time period corresponding to the device group, or specify a wake-up time period for the device group, wherein the specified wake-up time period is the same as the wake-up time period. The variance between wake-up time periods within a device group that wakes up a device itself is minimal.
S304、第一设备向目标设备组发送唤醒时间周期,以使目标设备组内的各第二设备在唤醒时间周期到达时通过第一设备上传数据。S304: The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
本实施例中,S304的实现方式可参考S203,此处不再赘述。In this embodiment, for the implementation of S304, reference may be made to S203, which will not be repeated here.
本实施例,第一设备向接入第一设备网络的第二设备发送时钟同步信息,使得第二设备的运行时钟与第一设备的运行时钟同步。然后,第一设备根据第二设备的自身唤醒时间周期,将第二设备划分至目标设备组,并且,根据目标设备组内的各设备的自身唤醒时间周期,确定目标设备组对应的唤醒时间周期,向第二设备发送目标设备组对应的唤醒时间周期,以使目标设备组内的各第二设备在同一唤醒时间周期到达时通过第一设备上传数据。减少了第一设备以及唤醒设备唤醒的次数,降低局域网的整体功耗。并且,将唤醒设备进行分组,同一设备组内的唤醒设备有序的进行工作数据的上传,也可以避免工作数据丢失以及上传不及时的情况。In this embodiment, the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device divides the second device into the target device group according to the self-awakening time period of the second device, and determines the wake-up time period corresponding to the target device group according to the self-awakening time period of each device in the target device group , sending the wake-up time period corresponding to the target device group to the second device, so that each second device in the target device group uploads data through the first device when the same wake-up time period arrives. The number of wake-up times of the first device and the wake-up device is reduced, and the overall power consumption of the local area network is reduced. In addition, the wake-up devices are grouped, and the wake-up devices in the same device group upload work data in an orderly manner, which can also avoid the loss of work data and the untimely upload.
图4为本申请另一实施例提供的物联网内设备管理方法的流程图。如士4所示,在图2的基础上,本申请实施例的方法包括:FIG. 4 is a flowchart of a device management method in the Internet of Things provided by another embodiment of the present application. As shown in ±4, on the basis of FIG. 2, the method of the embodiment of the present application includes:
S401、第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟同步。S401. The first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information.
本实施例中,S401的实现方式可参考S201,此处不再赘述。In this embodiment, for the implementation of S401, reference may be made to S201, which will not be repeated here.
S402、获取用户输入的分类指令,分类指令用于指示第二设备所属的功能类别。S402. Obtain a classification instruction input by the user, where the classification instruction is used to indicate a functional category to which the second device belongs.
本实施例中,在唤醒设备成功接入主时钟设备的网络时,若主时钟设备为带有屏幕的设备,则在主时钟设备的屏幕上显示接入的唤醒设备、功能选项以及输入框。其中,输入框用于在屏幕显示的功能选项对应的功能类别均与唤醒设备的功能不匹配时,用户输入唤醒设备对应的功能选项。In this embodiment, when the wake-up device successfully connects to the network of the master clock device, if the master clock device is a device with a screen, the connected wake-up device, function options and input boxes are displayed on the screen of the master clock device. The input box is used for the user to input the function options corresponding to the wake-up device when the function categories corresponding to the function options displayed on the screen do not match the function of the wake-up device.
用户根据唤醒设备的功能,选择对应的功能选项或在输入框中输入唤醒设备对应的功能选项,向主时钟设备输入分类指令。The user selects the corresponding function option according to the function of the wake-up device or inputs the function option corresponding to the wake-up device in the input box, and inputs the classification instruction to the master clock device.
需要说明的是,用户也可以通过其他带有屏幕的设备输入分类指令。其中,其他设备例如可以是接入主时钟设备网络的任一带有屏幕的唤醒设备,或者,通过主时钟设备预设的界面入口地址接入主时钟设备的带有屏幕的设备,本申请对此不限定。It should be noted that the user can also input the classification instruction through other devices with a screen. Among them, the other device may be, for example, any wake-up device with a screen connected to the master clock device network, or a device with a screen connected to the master clock device through the interface entry address preset by the master clock device. Not limited.
S403、根据第二设备所属的功能类别,将第二设备划分至目标设备组。S403. Divide the second device into a target device group according to the function category to which the second device belongs.
本实施例中,主时钟设备接收到用户输入的分类指令后,获取唤醒设备的功能类别,从而根据唤醒设备的功能类别,将唤醒设备划分至对应的设备组。在一实施例中,唤醒设备所属的功能类别与对应的设备组内的各唤醒设备所属的功能类别相同。例如,将音频设备划分到同一设备组,将智能玩具划分到同一设备组。In this embodiment, after receiving the classification instruction input by the user, the master clock device obtains the function category of the wake-up device, and divides the wake-up device into corresponding device groups according to the function category of the wake-up device. In one embodiment, the function class to which the wake-up device belongs is the same as the function class to which each wake-up device in the corresponding device group belongs. For example, group audio devices into the same device group and smart toys into the same device group.
S404、第一设备获取用户设置的目标设备组对应的唤醒时间周期。S404. The first device acquires the wake-up time period corresponding to the target device group set by the user.
其中,唤醒时间周期是第一设备根据用户的唤醒时间周期操作生成的,或者,是第一设备接收其它设备根据用户的唤醒时间周期操作发送的。The wake-up time period is generated by the first device according to the user's wake-up time period operation, or the first device receives and sends the wake-up time period operation from other devices according to the user's wake-up time period.
本实施例中,用户通过主时钟设备或者其他与主时钟设备连接的设备设置每个设备组对应的唤醒时间周期,使得设备组内唤醒设备的唤醒时间周期一致。In this embodiment, the user sets the wake-up time period corresponding to each device group through the master clock device or other devices connected to the master clock device, so that the wake-up time periods of the wake-up devices in the device group are consistent.
S405、第一设备向目标设备组发送唤醒时间周期,以使目标设备组内的各第二设备在同一唤醒时间周期到达时通过第一设备上传数据。S405: The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the same wake-up time period arrives.
本实施例中,S405的实现方式可参考S203,此处不再赘述。In this embodiment, for the implementation manner of S405, reference may be made to S203, which will not be repeated here.
需要说明的是,用户设备完成设备组的唤醒时间周期后,对于新划分至该设备组的唤醒设备,其唤醒时间周期默认为该设备组对应的唤醒时间周期。It should be noted that, after the user equipment completes the wake-up time period of the device group, for the wake-up device newly assigned to the device group, the wake-up time period defaults to the wake-up time period corresponding to the device group.
本实施例,第一设备向接入第一设备网络的第二设备发送时钟同步信息,使得第二设备的运行时钟与第一设备的运行时钟同步。然后,第一设备获取用户输入的分类指令,根据第二设备所属的功能类别,将第二设备划分至目标设备组。接着,第一设备获取用户设置的目标设备组对应的唤醒时间周期,向第二设备发送目标设备组对应的唤醒时间周期,以使目标设备组内的各第二设备在同一唤醒时间周期到达时通过第一设备上传数据。减少了第一设备以及唤醒设备唤醒的次数,降低局域网的整体功耗。并且,将唤醒设备进行分组,同一设备组内的唤醒设备有序的进行工作数据的上传,也可以避免工作数据丢失以及上传不及时的情况。In this embodiment, the first device sends clock synchronization information to the second device connected to the first device network, so that the running clock of the second device is synchronized with the running clock of the first device. Then, the first device obtains the classification instruction input by the user, and classifies the second device into the target device group according to the function category to which the second device belongs. Next, the first device obtains the wake-up time period corresponding to the target device group set by the user, and sends the wake-up time period corresponding to the target device group to the second device, so that each second device in the target device group arrives at the same wake-up time period Upload data through the first device. The number of wake-up times of the first device and the wake-up device is reduced, and the overall power consumption of the local area network is reduced. In addition, the wake-up devices are grouped, and the wake-up devices in the same device group upload work data in an orderly manner, which can also avoid the loss of work data and the untimely upload.
在上述任一实施例的基础上,本申请的方法还包括:第一设备根据同步时间周期,向第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟保持同步。On the basis of any of the above embodiments, the method of the present application further includes: the first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device and the running clock of the first device according to the clock synchronization information keep in sync.
本实施例中,虽然主时钟设备接入其网络的唤醒设备发送时钟同步信息,使唤醒设备的运行时钟与主时钟设备一致。但是,由于唤醒设备之间以及唤醒设备与主时钟设备之前的时钟精度不同,使得一段时间之后唤醒设备之间以及唤醒设备与主时钟设备之前的运行时钟不同步。因此,用户可以预设主时钟设备的同步时间周期,在同步时间周期到达时,主时钟设备向唤醒设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟保持同步。In this embodiment, although the wake-up device connected to its network by the master clock device sends clock synchronization information, the running clock of the wake-up device is consistent with the master clock device. However, due to the different clock precisions between the wake-up devices and before the wake-up device and the master clock device, the running clocks between the wake-up devices and before the wake-up device and the master clock device are not synchronized after a period of time. Therefore, the user can preset the synchronization time period of the master clock device. When the synchronization time period arrives, the master clock device sends clock synchronization information to the wake-up device, so that the second device can maintain synchronization with the operating clock of the first device according to the clock synchronization information. .
在上述任一实施例的基础上,本申请的方法还包括:第一设备在目标设备组对应的唤醒时间周期到达时,向目标设备组内的各设备发送唤醒指令,以唤醒目标设备组内的各设备。On the basis of any of the above embodiments, the method of the present application further includes: when the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up the target device group. of each device.
本实施例中,唤醒设备根据唤醒时间周期进行唤醒上传数据时,在唤醒时间到达时,唤醒设备可以自主唤醒,并在数据上传完成后,自主进入休眠状态。但是,当唤醒设备的自主唤醒功能出现异常,或者唤醒设备不具有自主唤醒功能时,主时钟设备在目标设备组对应的唤醒时间周期到达时,向目标设备组内的各设备发送唤醒指令,以唤醒目标设备组内的各设备。In this embodiment, when the wake-up device wakes up and uploads data according to the wake-up time period, when the wake-up time arrives, the wake-up device can wake up autonomously, and enter the sleep state autonomously after the data upload is completed. However, when the autonomous wake-up function of the wake-up device is abnormal, or the wake-up device does not have the autonomous wake-up function, the master clock device sends a wake-up command to each device in the target device group when the wake-up time period corresponding to the target device group arrives to Wake up each device in the target device group.
实现方式为:主时钟设备保存每个设备组对应的唤醒时间周期,在每个 设备组的唤醒时间周期到达时,开始遍历唤醒设备,如果没有唤醒设备上传数据,则向目标设备组内的各设备发送唤醒指令,以唤醒目标设备组内的各设备。或者,主时钟设备发现应该上传数据的唤醒设备在预设时间内没有上传数据,则向对应的唤醒设备发送唤醒指令,以唤醒该唤醒设备。这样,可以避免唤醒设备的工作数据上传不及时,提高局域网的智能化。The implementation method is as follows: the master clock device saves the wake-up time period corresponding to each device group. When the wake-up time period of each device group arrives, it starts to traverse the wake-up device. The device sends a wake-up command to wake up each device in the target device group. Or, when the master clock device finds that the wake-up device that should upload data has not uploaded data within the preset time, it sends a wake-up instruction to the corresponding wake-up device to wake up the wake-up device. In this way, it is possible to avoid untimely uploading of working data of the wake-up device, and to improve the intelligence of the local area network.
图5为本申请一实施例提供的物联网内设备管理装置的结构示意图。如图5所示,本申请实施例提供的装置包括:发送模块51和处理模块52。其中,FIG. 5 is a schematic structural diagram of an apparatus for managing devices in the Internet of Things according to an embodiment of the present application. As shown in FIG. 5 , the apparatus provided by this embodiment of the present application includes: a sending module 51 and a processing module 52 . in,
发送模块51,用于第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟同步,所述第一网络的接入点为所述第一设备;The sending module 51 is used for the first device to send clock synchronization information to the second device connected to the first network, so that the second device is synchronized with the operating clock of the first device according to the clock synchronization information. The access to the first network point is the first device;
处理模块52,用于第一设备将第二设备划分至目标设备组,目标设备组包括一个或多个第二设备;a processing module 52, configured for the first device to divide the second device into a target device group, where the target device group includes one or more second devices;
发送模块51,还用于第一设备向目标设备组发送唤醒时间周期,以使目标设备组内的各第二设备在唤醒时间周期到达时通过第一设备上传数据。The sending module 51 is further configured for the first device to send a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
在一些实施例中,第一设备将第二设备划分至目标设备组时,处理模块52可用于:In some embodiments, when the first device divides the second device into the target device group, the processing module 52 may be configured to:
第一设备根据第二设备的自身唤醒时间周期,将第二设备划分至目标设备组。The first device divides the second device into a target device group according to its own wake-up time period of the second device.
在一些实施例中,第二设备的自身唤醒时间周期最接近目标设备组对应的唤醒时间周期。In some embodiments, the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
在一些实施例中,第一设备将第二设备划分至目标设备组时,处理模块52可用于:In some embodiments, when the first device divides the second device into the target device group, the processing module 52 may be configured to:
获取用户输入的分类指令,分类指令用于指示第二设备所属的功能类别;obtaining a classification instruction input by the user, where the classification instruction is used to indicate the functional category to which the second device belongs;
根据第二设备所属的功能类别,将第二设备划分至目标设备组。The second device is divided into target device groups according to the function category to which the second device belongs.
在一些实施例中,第二设备所属的功能类别与目标设备组内的各设备所属的功能类别相同。In some embodiments, the functional class to which the second device belongs is the same as the functional class to which each device in the target device group belongs.
在一些实施例中,分类指令是第一设备根据用户的分类操作生成的,或者,是第一设备接收其它设备根据用户的分类操作发送的。In some embodiments, the classification instruction is generated by the first device according to the user's classification operation, or is received by the first device and sent from another device according to the user's classification operation.
在一些实施例中,第一设备向目标设备组发送唤醒时间周期之前,处理 模块52还用于:In some embodiments, before the first device sends the wake-up time period to the target device group, the processing module 52 is further configured to:
第一设备将第二设备划分至目标设备组之后,第一设备根据目标设备组内的各设备的自身唤醒时间周期,确定目标设备组对应的唤醒时间周期。After the first device divides the second device into the target device group, the first device determines the wake-up time period corresponding to the target device group according to the wake-up time period of each device in the target device group.
在一些实施例中,第一设备向目标设备组发送唤醒时间周期之前,处理模块52还用于:In some embodiments, before the first device sends the wake-up time period to the target device group, the processing module 52 is further configured to:
第一设备获取用户设置的目标设备组对应的唤醒时间周期;其中,唤醒时间周期是第一设备根据用户的唤醒时间周期操作生成的,或者,是第一设备接收其它设备根据用户的唤醒时间周期操作发送的。The first device obtains the wake-up time period corresponding to the target device group set by the user; wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or the first device receives other devices according to the user's wake-up time period Action sent.
在一些实施例中,所述发送模块51,还用于:In some embodiments, the sending module 51 is further configured to:
第一设备根据同步时间周期,向第二设备发送时钟同步信息,以使第二设备根据时钟同步信息与第一设备的运行时钟保持同步。The first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
在一些实施例中,所述发送模块51,还用于:In some embodiments, the sending module 51 is further configured to:
第一设备在目标设备组对应的唤醒时间周期到达时,向目标设备组内的各设备发送唤醒指令,以唤醒目标设备组内的各设备。When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
本实施例的装置,可以用于执行上述执行任一方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The apparatus of this embodiment can be used to execute the technical solution of any method embodiment described above, and the implementation principle and technical effect thereof are similar, and are not repeated here.
图6为本申请一实施例提供的电子设备的结构示意图,如图6所示,本实施例的电子设备可以包括:至少一个处理器61和存储器62。图6示出的是以一个处理器为例的电子设备,其中,FIG. 6 is a schematic structural diagram of an electronic device provided by an embodiment of the present application. As shown in FIG. 6 , the electronic device in this embodiment may include: at least one processor 61 and a memory 62 . Figure 6 shows an electronic device with a processor as an example, wherein,
存储器62,用于存放程序。在一实施例中,程序可以包括程序代码,所述程序代码包括计算机操作指令。存储器62可能包含高速随机存取存储器(random access memory,RAM),也可能还包括非易失性存储器(non-volatile memory),例如至少一个磁盘存储器。The memory 62 is used to store programs. In one embodiment, the program may include program code including computer operating instructions. The memory 62 may include high-speed random access memory (RAM), and may also include non-volatile memory (non-volatile memory), such as at least one disk storage.
处理器61,用于执行所述存储器62存储的计算机执行指令,以实现上述实施例中的物联网内设备管理方法。The processor 61 is configured to execute the computer-executed instructions stored in the memory 62 to implement the device management method in the Internet of Things in the foregoing embodiment.
其中,处理器61可能是一个中央处理器(Central Processing Unit,CPU),或者是特定集成电路(Application Specific Integrated Circuit,ASIC),或者是被配置成实施本申请实施例的一个或多个集成电路。The processor 61 may be a central processing unit (Central Processing Unit, CPU), or a specific integrated circuit (Application Specific Integrated Circuit, ASIC), or one or more integrated circuits configured to implement the embodiments of the present application .
可选的,在一实施例中,如果存储器62和处理器61独立实现,则存储器62和处理器61可以通过总线相互连接并完成相互间的通信。所述总线可 以是工业标准体系结构(Industry Standard Architecture,ISA)总线、外部设备互连(Peripheral Component,PCI)总线或扩展工业标准体系结构(Extended Industry Standard Architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等,但并不表示仅有一根总线或一种类型的总线。Optionally, in an embodiment, if the memory 62 and the processor 61 are implemented independently, the memory 62 and the processor 61 can be connected to each other through a bus and complete mutual communication. The bus can be an industry standard architecture (Industry Standard Architecture, ISA) bus, a peripheral device interconnect (Peripheral Component, PCI) bus or an extended industry standard architecture (Extended Industry Standard Architecture, EISA) bus and the like. The bus can be divided into an address bus, a data bus, a control bus, etc., but it does not mean that there is only one bus or one type of bus.
可选的,在一实施例中,如果存储器62和处理器61集成在一块芯片上实现,则存储器62和处理器61可以通过内部接口完成相同间的通信。Optionally, in an embodiment, if the memory 62 and the processor 61 are integrated on one chip, the memory 62 and the processor 61 can complete the same communication through an internal interface.
本实施例以上所述的电子设备,可以用于执行上述各方法实施例的技术方案,其实现原理和技术效果类似,此处不再赘述。The electronic device described above in this embodiment can be used to implement the technical solutions of the above method embodiments, and the implementation principles and technical effects thereof are similar, and are not repeated here.
图7是根据一示例性实施例示出的一种用于物联网内设备管理的装置700的框图。例如,装置700可以是移动电话,计算机,数字广播终端,消息收发设备,游戏控制台,平板设备,医疗设备,健身设备,个人数字助理等。FIG. 7 is a block diagram of an apparatus 700 for device management in the Internet of Things, according to an exemplary embodiment. For example, apparatus 700 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, fitness device, personal digital assistant, and the like.
参照图7,装置700可以包括以下一个或多个组件:处理组件702,存储器704,电力组件706,多媒体组件708,音频组件710,输入/输出(I/O)的接口712,传感器组件714,以及通信组件716。7, the apparatus 700 may include one or more of the following components: a processing component 702, a memory 704, a power component 706, a multimedia component 708, an audio component 710, an input/output (I/O) interface 712, a sensor component 714, And the communication component 716 .
处理组件702通常控制装置700的整体操作,诸如与显示,电话呼叫,数据通信,相机操作和记录操作相关联的操作。处理组件702可以包括一个或多个处理器720来执行指令,以完成上述的方法的全部或部分步骤。此外,处理组件702可以包括一个或多个模块,便于处理组件702和其他组件之间的交互。例如,处理组件702可以包括多媒体模块,以方便多媒体组件708和处理组件702之间的交互。The processing component 702 generally controls the overall operation of the device 700, such as operations associated with display, phone calls, data communications, camera operations, and recording operations. The processing component 702 can include one or more processors 720 to execute instructions to perform all or some of the steps of the methods described above. Additionally, processing component 702 may include one or more modules to facilitate interaction between processing component 702 and other components. For example, processing component 702 may include a multimedia module to facilitate interaction between multimedia component 708 and processing component 702.
存储器704被配置为存储各种类型的数据以支持在装置700的操作。这些数据的示例包括用于在装置700上操作的任何应用程序或方法的指令,联系人数据,电话簿数据,消息,图片,视频等。存储器704可以由任何类型的易失性或非易失性存储设备或者它们的组合实现,如静态随机存取存储器(SRAM),电可擦除可编程只读存储器(EEPROM),可擦除可编程只读存储器(EPROM),可编程只读存储器(PROM),只读存储器(ROM),磁存储器,快闪存储器,磁盘或光盘。 Memory 704 is configured to store various types of data to support operations at device 700 . Examples of such data include instructions for any application or method operating on device 700, contact data, phonebook data, messages, pictures, videos, and the like. Memory 704 may be implemented by any type of volatile or nonvolatile storage device or combination thereof, such as static random access memory (SRAM), electrically erasable programmable read only memory (EEPROM), erasable Programmable Read Only Memory (EPROM), Programmable Read Only Memory (PROM), Read Only Memory (ROM), Magnetic Memory, Flash Memory, Magnetic or Optical Disk.
电力组件706为装置700的各种组件提供电力。电力组件706可以包括电源管理系统,一个或多个电源,及其他与为装置700生成、管理和分配电 力相关联的组件。 Power component 706 provides power to various components of device 700 . Power components 706 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power to device 700.
多媒体组件708包括在所述装置700和用户之间的提供一个输出接口的屏幕。在一些实施例中,屏幕可以包括液晶显示器(LCD)和触摸面板(TP)。如果屏幕包括触摸面板,屏幕可以被实现为触摸屏,以接收来自用户的输入信号。触摸面板包括一个或多个触摸传感器以感测触摸、滑动和触摸面板上的手势。所述触摸传感器可以不仅感测触摸或滑动动作的边界,而且还检测与所述触摸或滑动操作相关的持续时间和压力。在一些实施例中,多媒体组件708包括一个前置摄像头和/或后置摄像头。当装置700处于操作模式,如拍摄模式或视频模式时,前置摄像头和/或后置摄像头可以接收外部的多媒体数据。每个前置摄像头和后置摄像头可以是一个固定的光学透镜系统或具有焦距和光学变焦能力。 Multimedia component 708 includes screens that provide an output interface between the device 700 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, swipe, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or swipe action, but also detect the duration and pressure associated with the touch or swipe action. In some embodiments, the multimedia component 708 includes a front-facing camera and/or a rear-facing camera. When the apparatus 700 is in an operation mode, such as a shooting mode or a video mode, the front camera and/or the rear camera may receive external multimedia data. Each of the front and rear cameras can be a fixed optical lens system or have focal length and optical zoom capability.
音频组件710被配置为输出和/或输入音频信号。例如,音频组件710包括一个麦克风(MIC),当装置700处于操作模式,如呼叫模式、记录模式和语音识别模式时,麦克风被配置为接收外部音频信号。所接收的音频信号可以被进一步存储在存储器704或经由通信组件716发送。在一些实施例中,音频组件710还包括一个扬声器,用于输出音频信号。 Audio component 710 is configured to output and/or input audio signals. For example, audio component 710 includes a microphone (MIC) that is configured to receive external audio signals when device 700 is in operating modes, such as calling mode, recording mode, and voice recognition mode. The received audio signal may be further stored in memory 704 or transmitted via communication component 716 . In some embodiments, audio component 710 also includes a speaker for outputting audio signals.
I/O接口712为处理组件702和外围接口模块之间提供接口,上述外围接口模块可以是键盘,点击轮,按钮等。这些按钮可包括但不限于:主页按钮、音量按钮、启动按钮和锁定按钮。The I/O interface 712 provides an interface between the processing component 702 and a peripheral interface module, which may be a keyboard, a click wheel, a button, or the like. These buttons may include, but are not limited to: home button, volume buttons, start button, and lock button.
传感器组件714包括一个或多个传感器,用于为装置700提供各个方面的状态评估。例如,传感器组件714可以检测到装置700的打开/关闭状态,组件的相对定位,例如所述组件为装置700的显示器和小键盘,传感器组件714还可以检测装置700或装置700一个组件的位置改变,用户与装置700接触的存在或不存在,装置700方位或加速/减速和装置700的温度变化。传感器组件714可以包括接近传感器,被配置用来在没有任何的物理接触时检测附近物体的存在。传感器组件714还可以包括光传感器,如CMOS或CCD图像传感器,用于在成像应用中使用。在一些实施例中,该传感器组件714还可以包括加速度传感器,陀螺仪传感器,磁传感器,压力传感器或温度传感器。 Sensor assembly 714 includes one or more sensors for providing status assessment of various aspects of device 700 . For example, the sensor assembly 714 can detect the open/closed state of the device 700, the relative positioning of components, such as the display and keypad of the device 700, and the sensor assembly 714 can also detect a change in the position of the device 700 or a component of the device 700 , the presence or absence of user contact with the device 700 , the orientation or acceleration/deceleration of the device 700 and the temperature change of the device 700 . Sensor assembly 714 may include a proximity sensor configured to detect the presence of nearby objects in the absence of any physical contact. Sensor assembly 714 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 714 may also include an acceleration sensor, a gyroscope sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
通信组件716被配置为便于装置700和其他设备之间有线或无线方式的 通信。装置700可以接入基于通信标准的无线网络,如WiFi,2G或3G,或它们的组合。在一个示例性实施例中,通信组件716经由广播信道接收来自外部广播管理系统的广播信号或广播相关信息。在一个示例性实施例中,所述通信组件716还包括近场通信(NFC)模块,以促进短程通信。例如,在NFC模块可基于射频识别(RFID)技术,红外数据协会(IrDA)技术,超宽带(UWB)技术,蓝牙(BT)技术和其他技术来实现。 Communication component 716 is configured to facilitate wired or wireless communication between apparatus 700 and other devices. Device 700 may access wireless networks based on communication standards, such as WiFi, 2G or 3G, or a combination thereof. In one exemplary embodiment, the communication component 716 receives broadcast signals or broadcast related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component 716 also includes a near field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, infrared data association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology and other technologies.
在示例性实施例中,装置700可以被一个或多个应用专用集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理设备(DSPD)、可编程逻辑器件(PLD)、现场可编程门阵列(FPGA)、控制器、微控制器、微处理器或其他电子元件实现,用于执行上述方法。In an exemplary embodiment, apparatus 700 may be implemented by one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable A gate array (FPGA), controller, microcontroller, microprocessor or other electronic component implementation is used to perform the above method.
在示例性实施例中,还提供了一种包括指令的非临时性计算机可读存储介质,例如包括指令的存储器704,上述指令可由装置700的处理器720执行以完成上述方法。例如,所述非临时性计算机可读存储介质可以是ROM、随机存取存储器(RAM)、CD-ROM、磁带、软盘和光数据存储设备等。本领域普通技术人员可以理解:实现上述各方法实施例的全部或部分步骤可以通过程序指令相关的硬件来完成。前述的程序可以存储于一计算机可读取存储介质中。该程序在执行时,执行包括上述各方法实施例的步骤;而前述的存储介质包括:只读存储器(Read-Only Memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。In an exemplary embodiment, there is also provided a non-transitory computer-readable storage medium including instructions, such as a memory 704 including instructions, executable by the processor 720 of the apparatus 700 to perform the method described above. For example, the non-transitory computer-readable storage medium may be ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like. Those of ordinary skill in the art can understand that all or part of the steps of implementing the above method embodiments may be completed by program instructions related to hardware. The aforementioned program can be stored in a computer-readable storage medium. When the program is executed, the steps including the above method embodiments are executed; and the aforementioned storage medium includes: a read-only memory (Read-Only Memory, ROM), a random access memory (random access memory, RAM), a magnetic disk or Various media that can store program codes, such as optical discs.
最后应说明的是:以上各实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述各实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分或者全部技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application, but not to limit them; although the present application has been described in detail with reference to the foregoing embodiments, those of ordinary skill in the art should understand that: The technical solutions described in the foregoing embodiments can still be modified, or some or all of the technical features thereof can be equivalently replaced; and these modifications or replacements do not make the essence of the corresponding technical solutions deviate from the technical solutions of the embodiments of the present application. Scope.

Claims (13)

  1. 一种物联网内设备管理方法,其中,包括:A device management method in the Internet of Things, comprising:
    第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据所述时钟同步信息与所述第一设备的运行时钟同步,所述第一网络的接入点为所述第一设备;The first device sends clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information, and the access point of the first network is the first device;
    所述第一设备将所述第二设备划分至目标设备组,所述目标设备组包括一个或多个第二设备;The first device divides the second device into a target device group, and the target device group includes one or more second devices;
    所述第一设备向所述目标设备组发送唤醒时间周期,以使所述目标设备组内的各第二设备在所述唤醒时间周期到达时通过所述第一设备上传数据。The first device sends a wake-up time period to the target device group, so that each second device in the target device group uploads data through the first device when the wake-up time period arrives.
  2. 根据权利要求1所述的方法,其中,所述第一设备将所述第二设备划分至目标设备组,包括:The method of claim 1, wherein the first device divides the second device into a target device group, comprising:
    所述第一设备根据所述第二设备的自身唤醒时间周期,将所述第二设备划分至所述目标设备组。The first device divides the second device into the target device group according to the self-awakening time period of the second device.
  3. 根据权利要求2所述的方法,其中,所述第二设备的自身唤醒时间周期最接近所述目标设备组对应的唤醒时间周期。The method according to claim 2, wherein the wake-up time period of the second device is closest to the wake-up time period corresponding to the target device group.
  4. 根据权利要求1所述的方法,其中,所述第一设备将所述第二设备划分至目标设备组,包括:The method of claim 1, wherein the first device divides the second device into a target device group, comprising:
    获取用户输入的分类指令,所述分类指令用于指示所述第二设备所属的功能类别;obtaining a classification instruction input by a user, where the classification instruction is used to indicate a functional category to which the second device belongs;
    根据所述第二设备所属的功能类别,将所述第二设备划分至目标设备组。The second device is divided into target device groups according to the functional category to which the second device belongs.
  5. 根据权利要求4所述的方法,其中,所述第二设备所属的功能类别与所述目标设备组内的各设备所属的功能类别相同。The method according to claim 4, wherein the functional class to which the second device belongs is the same as the functional class to which each device in the target device group belongs.
  6. 根据权利要求4所述的方法,其中,所述分类指令是所述第一设备根据用户的分类操作生成的,或者,是所述第一设备接收其它设备根据用户的分类操作发送的。The method according to claim 4, wherein the classification instruction is generated by the first device according to a user's classification operation, or received by the first device and sent by another device according to the user's classification operation.
  7. 根据权利要求1-6任一项所述的方法,其中,所述第一设备向所述目标设备组发送唤醒时间周期之前,还包括:The method according to any one of claims 1-6, wherein before the first device sends a wake-up time period to the target device group, the method further comprises:
    所述第一设备将所述第二设备划分至目标设备组之后,所述第一设备根据所述目标设备组内的各设备的自身唤醒时间周期,确定所述目标设备组的唤醒时间周期。After the first device divides the second device into a target device group, the first device determines the wake-up time period of the target device group according to the wake-up time period of each device in the target device group.
  8. 根据权利要求1-6任一项所述的方法,其中,所述第一设备向所述目标设备组发送唤醒时间周期之前,还包括:The method according to any one of claims 1-6, wherein before the first device sends a wake-up time period to the target device group, the method further comprises:
    所述第一设备获取用户设置的所述目标设备组的唤醒时间周期;The first device obtains the wake-up time period of the target device group set by the user;
    其中,所述唤醒时间周期是所述第一设备根据用户的唤醒时间周期操作生成的,或者,是所述第一设备接收其它设备根据用户的唤醒时间周期操作发送的。Wherein, the wake-up time period is generated by the first device according to the user's wake-up time period operation, or is sent by the first device after receiving other devices according to the user's wake-up time period operation.
  9. 根据权利要求1-6任一项所述的方法,其中,还包括:The method according to any one of claims 1-6, wherein, further comprising:
    所述第一设备根据同步时间周期,向所述第二设备发送时钟同步信息,以使第二设备根据所述时钟同步信息与所述第一设备的运行时钟保持同步。The first device sends clock synchronization information to the second device according to the synchronization time period, so that the second device keeps synchronization with the running clock of the first device according to the clock synchronization information.
  10. 根据权利要求1-6任一项所述方法,其中,所述方法还包括:The method according to any one of claims 1-6, wherein the method further comprises:
    所述第一设备在所述目标设备组对应的唤醒时间周期到达时,向所述目标设备组内的各设备发送唤醒指令,以唤醒所述目标设备组内的各设备。When the wake-up time period corresponding to the target device group arrives, the first device sends a wake-up instruction to each device in the target device group to wake up each device in the target device group.
  11. 一种物联网内设备管理装置,其中,包括:A device management device in the Internet of Things, comprising:
    发送模块,用于第一设备向接入第一网络的第二设备发送时钟同步信息,以使第二设备根据所述时钟同步信息与所述第一设备的运行时钟同步,所述第一网络的接入点为所述第一设备;A sending module, used by the first device to send clock synchronization information to a second device connected to the first network, so that the second device is synchronized with the running clock of the first device according to the clock synchronization information, and the first network The access point is the first device;
    处理模块,用于所述第一设备将所述第二设备划分至目标设备组,所述目标设备组包括一个或多个第二设备;a processing module, configured for the first device to divide the second device into a target device group, where the target device group includes one or more second devices;
    所述发送模块,还用于所述第一设备向所述目标设备组发送唤醒时间周期,以使所述目标设备组内的各第二设备在所述唤醒时间周期到达时通过所述第一设备上传数据。The sending module is further configured for the first device to send a wake-up time period to the target device group, so that each second device in the target device group passes the first wake-up time period when the wake-up time period arrives. Device uploads data.
  12. 一种电子设备,其中,包括:存储器和至少一个处理器,存储器用于存储程序指令,处理器用于调用存储器中的程序指令执行如权利要求1-10任一项所述的物联网内设备管理方法。An electronic device, comprising: a memory and at least one processor, the memory is used for storing program instructions, and the processor is used for calling the program instructions in the memory to execute the device management in the Internet of Things according to any one of claims 1-10 method.
  13. 一种可读存储介质,其中,所述可读存储介质上存储有计算机程序;所述计算机程序被执行时,实现如权利要求1-10任一项所述的物联网内设备管理方法。A readable storage medium, wherein a computer program is stored on the readable storage medium; when the computer program is executed, the device management method in the Internet of Things according to any one of claims 1-10 is implemented.
PCT/CN2020/139737 2020-08-26 2020-12-26 Method and apparatus for managing devices in internet of things WO2022041602A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010870299.1A CN112019616B (en) 2020-08-26 2020-08-26 Equipment management method and device in Internet of things
CN202010870299.1 2020-08-26

Publications (1)

Publication Number Publication Date
WO2022041602A1 true WO2022041602A1 (en) 2022-03-03

Family

ID=73502211

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139737 WO2022041602A1 (en) 2020-08-26 2020-12-26 Method and apparatus for managing devices in internet of things

Country Status (2)

Country Link
CN (1) CN112019616B (en)
WO (1) WO2022041602A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024095226A1 (en) * 2022-11-03 2024-05-10 Wiliot, LTD. Localized group access for ambient internet of things (iot) devices

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112019616B (en) * 2020-08-26 2022-12-20 广州视源电子科技股份有限公司 Equipment management method and device in Internet of things
CN112954021B (en) * 2021-01-29 2022-08-05 广州技象科技有限公司 Wake-up adjustment processing method and device based on multi-device data
CN115250544A (en) * 2021-04-28 2022-10-28 华为技术有限公司 Equipment networking method, electronic equipment and storage medium
CN114245443A (en) * 2021-11-11 2022-03-25 华为技术有限公司 Wake-up alignment method, system and related device
CN117950343A (en) * 2022-10-28 2024-04-30 华为技术有限公司 Device control system, method, device, readable storage medium, and chip
CN116846681B (en) * 2023-08-25 2023-11-21 荣耀终端有限公司 Device connection method, electronic device, and computer-readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269993A1 (en) * 2015-03-12 2016-09-15 Chittabrata Ghosh Techniques for implicit indication of trigger frame start times
CN106470090A (en) * 2015-08-19 2017-03-01 中兴通讯股份有限公司 Control the transmission from multi-user installation via request clearance technique
CN107979866A (en) * 2016-10-25 2018-05-01 华为技术有限公司 Awakening method and equipment
US20200045634A1 (en) * 2018-08-03 2020-02-06 Apple Inc. Target Wake Time Scheme for Multicast Communication
CN112019616A (en) * 2020-08-26 2020-12-01 广州视源电子科技股份有限公司 Equipment management method and device in Internet of things

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107770851B (en) * 2016-08-16 2020-11-06 华为技术有限公司 Method and device for waking up wireless equipment
CN109429300B (en) * 2017-08-30 2021-11-12 珠海市魅族科技有限公司 Communication method and device of wireless local area network, access point equipment and site equipment
CN109548121B (en) * 2017-09-22 2022-03-18 珠海市魅族科技有限公司 Communication method and device of wireless local area network, access point equipment and site equipment
CN111327385A (en) * 2018-12-13 2020-06-23 阿里巴巴集团控股有限公司 Clock synchronization method, device and equipment of Internet of things equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160269993A1 (en) * 2015-03-12 2016-09-15 Chittabrata Ghosh Techniques for implicit indication of trigger frame start times
CN106470090A (en) * 2015-08-19 2017-03-01 中兴通讯股份有限公司 Control the transmission from multi-user installation via request clearance technique
CN107979866A (en) * 2016-10-25 2018-05-01 华为技术有限公司 Awakening method and equipment
US20200045634A1 (en) * 2018-08-03 2020-02-06 Apple Inc. Target Wake Time Scheme for Multicast Communication
CN112019616A (en) * 2020-08-26 2020-12-01 广州视源电子科技股份有限公司 Equipment management method and device in Internet of things

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024095226A1 (en) * 2022-11-03 2024-05-10 Wiliot, LTD. Localized group access for ambient internet of things (iot) devices

Also Published As

Publication number Publication date
CN112019616B (en) 2022-12-20
CN112019616A (en) 2020-12-01

Similar Documents

Publication Publication Date Title
WO2022041602A1 (en) Method and apparatus for managing devices in internet of things
US11924869B2 (en) Method and device for configuration and adjusting search space parameter
US9999093B2 (en) Method, apparatus and computer-readable medium for updating connection parameter of low-power Bluetooth device
KR101837333B1 (en) Method and apparatus for awakening electronic device
JP6355735B2 (en) Method and apparatus for initiating an energy saving mode
US10031575B2 (en) Method and device for waking up MCU chip
WO2017084270A1 (en) System, method and apparatus for grouping smart devices
WO2017084269A1 (en) Method and apparatus for controlling a smart device
JP2018519678A (en) Wireless access point access method, apparatus, program, and recording medium
JP2017532855A (en) Method and apparatus for operating intelligent electrical equipment
EP4013003A1 (en) Communication protocol switching method, apparatus and system
CN104330996A (en) Remote control method and device
WO2021046674A1 (en) Data processing method and apparatus, and electronic device and computer readable storage medium
CN105182809A (en) Method for adjusting light transmittance of intelligent curtain, intelligent curtain and device
CN112037787A (en) Wake-up control method, device and computer readable storage medium
JP2017527924A (en) Home smart socket control method, apparatus, program, and recording medium
US20220338195A1 (en) Method for indicating buffered downlink data, downlink data acquisition method and access point
CN112201242A (en) Method and device for waking up equipment, electronic equipment and storage medium
JP2018503150A (en) Method, apparatus, program and recording medium for processing touch screen point reports
CN105578391B (en) Information processing method, device and system and terminal equipment
CN114158018A (en) Data transmission method and device, Bluetooth slave device and Bluetooth master device
WO2020038157A1 (en) Nan-based intelligent management method and related product
US11265793B2 (en) Method and apparatus for determining motion state of user equipment
WO2019095141A1 (en) User equipment access control method and device
CN110896567A (en) Data transmission method and device based on WIFI

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20951268

Country of ref document: EP

Kind code of ref document: A1