Data configuration method and device of digital equipment, storage medium and electronic equipment

By adopting a dual-mode multi-dynamic connection method in artificial intelligence IoT devices, combined with GATT and ADV communication specifications, a configuration task queue is formed according to device priority, which solves the problem of slow data configuration transmission speed and improves transmission efficiency and compatibility.

CN118659971APending Publication Date: 2024-09-17ZHEJIANG FUTURE ELF ARTIFICIAL INTELLIGENCE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410551437.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-06
Publication Date
2024-09-17

AI Technical Summary

Technical Problem

In the existing technology, the data configuration transmission speed of artificial intelligence IoT devices is low, especially when the number of devices is large, resulting in long configuration time.

Method used

It adopts dual-mode multi-dynamic connection mode and performs direct connection data configuration through GATT communication specifications. It is suitable for devices with large data volume. It also uses ADV communication method for data configuration and forwarding, which is suitable for devices with small data volume. At the same time, it is formed according to the device priority. Configure task queues, configure data from low-priority devices to high-priority devices, and establish dynamic connections from high-priority devices to low-priority devices.

Benefits of technology

It improves the transmission efficiency of data configuration and ensures that devices with large data volume are preferentially transmitted through the GATT direct connection method, and devices with low data volume are transmitted through the ADV method, avoiding compatibility issues due to GATT connections and achieving faster configuration completion time.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118659971A
    Figure CN118659971A
Patent Text Reader

Abstract

The invention discloses a data configuration method and device for digital equipment, a storage medium and electronic equipment, and the method comprises the steps: carrying out the scanning of the digital equipment according to a bound list of to-be-configured digital equipment; selecting a digital device meeting the requirement of a direct connection mode from the scanned digital devices as a main node device, and selecting a digital device meeting the requirement of a dynamic connection mode as a dynamic node device; executing a configuration task according to an established first configuration task corresponding to the main node equipment and a second configuration task corresponding to the dynamic node equipment; the first configuration task adopts a first transmission mode suitable for the main node equipment, and the second configuration task adopts a second transmission mode suitable for the dynamic node equipment; therefore, while the transmission efficiency is ensured, the problem of compatibility of the client side due to the fact that the dynamic node equipment is connected with the configuration task through the GATT can be avoided.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of artificial intelligence Internet of Things technology, and more particularly to a data configuration method and device for digital devices. The present application also relates to a data configuration method and device for hotel smart devices, as well as a computer storage medium and an electronic device. Background Art

[0002] With the rapid development of technologies such as AI, IoT, cloud computing, and big data, AIOT (artificial intelligence Internet of Things) has been put into use in many industries. The integration of AI and IoT in actual projects is becoming more and more common. AIoT exists as a new form of IoT application. The difference from traditional IoT is that traditional IoT uses wired and wireless networks to achieve interconnection between things and people, while AIoT not only achieves interconnection between devices and scenarios, but also enables connection and data interoperability between things and things, people and things, things and people, people and things, and people and things and services, that is, empowering the Internet of Things through artificial intelligence technology to achieve mutual integration between all things.

[0003] Based on this, it is necessary to configure scene rules for scene-interconnected devices in the artificial intelligence Internet of Things so that devices can work together according to specific processes. For example, in a smart home scene, some rules can be set, such as when the light is low, the smart light automatically adjusts the brightness; when someone enters the room, the smart door lock automatically opens, etc., so as to achieve collaborative work between devices. Summary of the invention

[0004] The present application provides a data configuration method for a digital device to solve the problem of low data configuration transmission speed in the prior art.

[0005] The present application provides a data configuration method for a digital device, comprising:

[0006] Scanning digital devices according to the list of bound digital devices to be configured;

[0007] Selecting a digital device that meets the direct connection requirements from the scanned digital devices as a main node device, and selecting a digital device that meets the dynamic connection requirements as a dynamic node device;

[0008] According to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device, the configuration task is executed; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to the configuration task queue formed by the configuration task priority for the digital device to be configured that is not the master node device, the first configuration task performs data configuration from the low priority digital device to the high priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from the high priority digital device to the low priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0009] In some embodiments, scanning digital devices according to the list of bound digital devices to be configured includes:

[0010] Get the list of bound digital devices to be configured;

[0011] Prioritize the list of digital devices to be configured according to the digital device element dimension to generate a digital device priority sorting queue;

[0012] According to the current position, the digital device priority sorting queue is scanned to obtain the scanned digital devices.

[0013] In some embodiments, the step of selecting a digital device that meets the direct connection requirements from the scanned digital devices as a master node device and selecting a digital device that meets the dynamic connection requirements as a dynamic node device includes:

[0014] Determining the priority of the scanned digital device according to the digital device priority sorting queue;

[0015] According to the priorities of the scanned digital devices, a digital device that meets the direct connection requirements is selected as a main node device, and a digital device that meets the dynamic connection requirements is selected as a dynamic node device.

[0016] In some embodiments, selecting a digital device that meets the direct connection requirements as a master node device and selecting a digital device that meets the dynamic connection requirements as a dynamic node device according to the priorities of the scanned digital devices includes:

[0017] Selecting the digital device with the first priority from the scanned digital devices as the master node device;

[0018] Selecting the digital device with the second priority from the scanned digital devices as the dynamic node device;

[0019] or,

[0020] Selecting the digital device with the first priority from the scanned digital devices as the master node device;

[0021] Selecting the digital device with the second priority and the digital device with the third priority from the scanned digital devices as dynamic node devices;

[0022] or,

[0023] Selecting the digital device with the first priority and the digital device with the second priority from the scanned digital devices as the master node devices;

[0024] The digital device with the third priority and the digital device with the fourth priority are selected from the scanned digital devices as the dynamic node devices.

[0025] In some embodiments, the configuration task queue formed according to the configuration task priority for the to-be-configured digital device that is not a master node device includes:

[0026] Dividing the configuration tasks according to the identification information of the to-be-configured digital device that is not a master node device;

[0027] According to the number of elements in the divided configuration tasks, the to-be-configured digital devices that are not master node devices are prioritized to form the configuration task queue.

[0028] In some embodiments, the first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, including:

[0029] According to the direct connection mode, data configuration is performed on the master node device using a point-to-point transmission mode for the current configuration task;

[0030] After the master node device completes the current configuration task, the first configuration task adopts a broadcast transmission method to perform data configuration from a low-priority digital device in the configuration task queue to a high-priority digital device.

[0031] In some embodiments, the second configuration task sequentially establishes dynamic connections from high-priority digital devices to low-priority digital devices and performs data configuration, including:

[0032] By adopting a point-to-point transmission mode, dynamic connections are established in sequence from the high-priority digital device in the configuration task queue to the low-priority digital device, and data configuration is performed.

[0033] In some embodiments, the point-to-point transmission method is used to establish dynamic connections and perform data configuration from the high-priority digital device in the configuration task queue to the low-priority digital device in sequence, including:

[0034] The connection relationship established with the current dynamic node device is used to complete the configuration task of the current dynamic node device;

[0035] Disconnecting the dynamic connection relationship with the current dynamic node device;

[0036] According to the sorting of high-priority digital devices to low-priority digital devices in the configuration task queue, the next priority digital device that needs to be configured is obtained, and a new dynamic connection relationship is established, and the configuration task continues to be executed. The above process is repeated until all configuration tasks in the configuration task queue are completed.

[0037] In some embodiments, it also includes:

[0038] When the dynamic node device fails to establish a dynamic connection, adding the dynamic node device as a common node device to the end of the configuration task queue;

[0039] The master node device adopts the first transmission mode to perform data configuration on the common node device added to the end of the queue.

[0040] In some embodiments, when the dynamic node device fails to establish a dynamic connection, adding the dynamic node device as a common node device to the end of the configuration task queue includes:

[0041] When the dynamic node device fails to establish a dynamic connection, reconnect according to the connection time or the number of connections;

[0042] If the reconnection fails, the dynamic node device is added to the end of the configuration task queue as a common node device.

[0043] In some embodiments, it also includes:

[0044] The first transmission mode is the GATT communication standard, and the second transmission mode is the ADV communication mode.

[0045] The present application also provides a data configuration device for a digital device, comprising:

[0046] A scanning unit, used for scanning digital devices according to a list of bound digital devices to be configured;

[0047] A selection unit, used to select a digital device that meets the direct connection requirements from the scanned digital devices as a main node device, and select a digital device that meets the dynamic connection requirements as a dynamic node device;

[0048] An execution unit is used to execute configuration tasks according to a first configuration task corresponding to the master node device and a second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to a configuration task queue formed according to the configuration task priority of the digital device to be configured that is not a master node device, the first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from a high-priority digital device to a low-priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0049] The present application also provides a data configuration method applied to a hotel smart device, the method being applied to a hotel client, comprising:

[0050] The hotel client scans the intelligent electronic devices according to the list of intelligent electronic devices to be configured that have been bound to the hotel room;

[0051] Selecting an intelligent electronic device that meets the direct connection requirements from the scanned intelligent electronic devices as a main node device, and selecting an intelligent electronic device that meets the dynamic connection requirements as a dynamic node device;

[0052] According to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device, the configuration task is executed; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to the configuration task queue formed by the configuration task priority for the to-be-configured intelligent electronic device that is not the master node device, the first configuration task performs data configuration from the low-priority intelligent electronic device to the high-priority intelligent electronic device, and the second configuration task establishes dynamic connection and performs data configuration from the high-priority intelligent electronic device to the low-priority intelligent electronic device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0053] The present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0054] When the program is read and executed by the processor, the program executes the data configuration method of the digital device as described above, or executes the data configuration method applied to the hotel smart device as described above.

[0055] The present application also provides an electronic device, comprising:

[0056] processor;

[0057] The memory is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor, it executes the data configuration method of the digital device as described above, or executes the data configuration method applied to the hotel smart device as described above.

[0058] Compared with the prior art, this application has the following advantages:

[0059] The present application provides a data configuration method for digital devices. Through a dual-mode multi-dynamic connection method, it can ensure that digital devices with large data volumes perform data configuration in accordance with the GATT communication specification direct connection method, and digital devices with small data volumes perform data configuration forwarding in accordance with the ADV communication method, making full use of the GATT direct connection to ensure data transmission efficiency, and using ADV to ensure the coverage of transmission, that is, it can ensure that large data volumes are preferentially transmitted in accordance with the GATT direct connection method, and low data volumes are transmitted in accordance with the ADV method. In this embodiment, by selecting dynamic node devices, it is possible to ensure transmission efficiency while avoiding client-side compatibility issues caused by the dynamic node devices connecting to the configuration task through GATT. BRIEF DESCRIPTION OF THE DRAWINGS

[0060] Figure 1 It is a flow chart of a data configuration method for a digital device provided by the present application;

[0061] Figure 2 is a timing diagram of an embodiment of a data configuration method for a digital device provided by the present application;

[0062] Figure 3 It is a node task diagram of an embodiment of a data configuration method for a digital device provided by the present application;

[0063] Figure 4 It is a structural schematic diagram of a data configuration device for a digital device provided by the present application;

[0064] Figure 5 It is a flow chart of a data configuration method applied to hotel smart devices provided by the present application;

[0065] Figure 6 It is a structural schematic diagram of a data configuration device applied to hotel smart devices provided by the present application;

[0066] Figure 7 It is a structural schematic diagram of an electronic device provided by this application. DETAILED DESCRIPTION

[0067] Many specific details are described in the following description to facilitate a full understanding of the present application. However, the present application can be implemented in many other ways than those described herein, and those skilled in the art can make similar generalizations without violating the connotation of the present application, so the present application is not limited by the specific implementation disclosed below.

[0068] The terms used in this application are only for the purpose of describing specific embodiments and are not intended to limit this application. The descriptions used in this application and the appended claims, such as "a", "first", and "second", are not limitations on quantity or sequence, but are used to distinguish the same type of information from each other.

[0069] Based on the above background technology, it can be known that in the artificial intelligence Internet of Things scenario, it is necessary to configure the scene rules for each device node in the scene linkage and send them to the corresponding device nodes to realize the control of the device nodes. The configuration data of the existing scene rules is sent through GATT (Generic Attribute Profile) or ADV (Advertising). Among them, using GATT for data configuration and distribution will take a long time when there are many device nodes. Using ADV for data configuration and distribution will result in low transmission speed due to its own transmission byte limitation.

[0070] In view of the problems existing in the prior art, the present application provides a data configuration method for a digital device, which adopts a dual-mode transmission mode and a dynamic transmission mode to realize parallel distributed data configuration transmission, which can be either synchronous or asynchronous transmission. Figure 1 As shown, Figure 1 This is a flow chart of a data configuration method for a digital device provided by the present application. The method may specifically include:

[0071] Step S101: Scanning digital devices according to the list of bound digital devices to be configured;

[0072] Step S102: Selecting a digital device that meets the direct connection requirements from the scanned digital devices as a master node device, and selecting a digital device that meets the dynamic connection requirements as a dynamic node device;

[0073] Step S103: Execute configuration tasks according to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to a configuration task queue formed according to the configuration task priority of the digital device to be configured that is not a master node device, the first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from a high-priority digital device to a low-priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0074] Before describing the above steps S101 to S103 of the present application in detail, some of the related technical data involved are explained as follows:

[0075] Scenario rules: refers to a series of conditions and actions defined according to the behavior or status of the device in a specific scenario. When these conditions are met, the corresponding actions or responses are triggered. In the Internet of Things (IoT), scenario rules can help realize the automated management and optimized operation of devices. For example, in the smart home scenario, rules can be defined to control the switching and adjustment of devices such as lights and air conditioners. When the indoor light is insufficient, the lights are automatically turned on; when the indoor temperature is too high, the air conditioner temperature is automatically lowered. These rules can be customized according to user preferences and actual needs to improve the convenience and comfort of life. In industrial automation scenarios, scenario rules can monitor the operating status and performance of equipment, detect abnormal situations in time and take corresponding measures. For example, when a device fails or is abnormal, an alarm notification can be automatically sent to relevant personnel so that the problem can be handled and solved in time. In short, scenario rules are a very important part of IoT applications. They can be flexibly configured according to actual needs to realize intelligent management and optimized operation of equipment.

[0076] Mesh network: a method of transmitting data and control instructions between network nodes through dynamic routing. In this embodiment, Mesh is a network protocol based on the extension of BLE (Bluetooth Low Energy) protocol. It can be generally understood that Bluetooth Mesh is a network protocol built on the basis of BLE protocol. BLE Mesh (Bluetooth mesh) network has been widely used in various smart home and industrial Internet of Things applications, with the characteristics of low power consumption, low cost, high performance and ease of use.

[0077] Element device: refers to a device node in a Mesh network that includes multiple elements, that is, a device includes multiple sub-devices, and each sub-device is an independent device. For example, a multi-key switch device, each key is an element; a lighting device includes multiple light sources, each light source is an element, etc.

[0078] The above is a brief description of some technical terms involved in this application. The following is a detailed description of steps S101 to S103 of this application.

[0079] Regarding step S101: scanning for digital devices is performed according to the list of bound digital devices to be configured.

[0080] In this embodiment, the digital device may be an intelligent electronic device with a wireless network function, such as a Bluetooth device. The bound digital device to be configured may be a device that has completed network configuration and has location information, such as the binding relationship between a digital device that has completed network configuration and the room in which it is located. Usually in an AIot scenario or in an Iot scenario, there will be a large number of Bluetooth devices in a room or a factory, and the corresponding functions are realized by controlling the Bluetooth devices. Therefore, there is a list of Bluetooth devices, that is, a list of digital devices to be configured.

[0081] The specific implementation process of step S101 may include:

[0082] Step S101 - 1 : obtaining a list of bound digital devices to be configured; in this embodiment, the bound digital devices to be configured may be a list of digital devices to be configured that have been bound to a room.

[0083] Step S101-2: Prioritizing the list of digital devices to be configured according to the digital device element dimension to generate a digital device priority ranking queue;

[0084] Step S101 - 3 : Scan the digital device priority sorting queue according to the current location to obtain the scanned digital devices.

[0085] Regarding step S102: a digital device that meets the direct connection requirements is selected from the scanned digital devices as a main node device, and a digital device that meets the dynamic connection requirements is selected as a dynamic node device.

[0086] The direct connection mode can also be called a direct connection mode, which means that the devices in the Internet of Things can be directly connected to the Internet or other devices to achieve information sharing, collaboration and control between devices. This connection mode can be wired or wireless, and an intelligent ecosystem is built through various sensors, controllers, actuators and other devices. Unlike dynamic connection, direct connection means that devices can be directly connected without connecting through other devices or middleware. This connection mode can improve the response speed and data transmission efficiency between devices, and can also reduce the complexity and cost of the system. In this embodiment, it can be understood as a direct connection between the client and the Bluetooth device, and the client is an electronic device with an application service program installed. In the Internet of Things, direct connection can achieve information sharing and collaboration between devices, thereby achieving more efficient intelligent applications. For example, in the smart home scenario, the smart door lock can be directly connected to a smart phone or other smart device to achieve functions such as automatic door opening and remote control; in the smart medical scenario, the medical device can be directly connected to the doctor's mobile device to achieve real-time monitoring and diagnosis. In the hotel room management scenario, real-time control of smart devices or electronic devices in each room can be achieved.

[0087] The dynamic connection mode refers to that in the IoT system, devices can dynamically establish or disconnect connections as needed, thereby realizing information sharing, collaboration and control between devices. This connection mode can be wireless or wired, and an intelligent ecosystem is built through various sensors, controllers, actuators and other devices. Dynamic connection can make the IoT system more flexible and intelligent, and devices can be connected or disconnected according to actual needs, thereby achieving more efficient collaborative work. For example, in a smart home scenario, when the user leaves home, the smart door lock can automatically disconnect from the smartphone to ensure family safety; when the user returns home, the smart door lock can automatically establish a connection with the smartphone to realize the function of automatic door opening. Dynamic connection also provides more business opportunities for enterprises, such as smart home, smart medical care, smart manufacturing and other fields, and there are more application scenarios waiting to be developed in the future.

[0088] The specific implementation process of step S102 may include:

[0089] Step S102-1: determining the priority of the scanned digital device according to the digital device priority sorting queue;

[0090] Step S102-2: According to the priorities of the scanned digital devices, a digital device that meets the direct connection requirements is selected as a main node device, and a digital device that meets the dynamic connection requirements is selected as a dynamic node device.

[0091] The selection of the master node device and the dynamic node device in step S102-2 can be selected according to the priority level, and the digital device with the first priority in the priority sorting queue is determined as the digital device that meets the requirements of the direct connection method, and the digital devices ranked after the first priority are digital devices that meet the requirements of the dynamic connection method. The selection of the master node device and the dynamic node device is not limited to one digital device. For example, the master node device can be one, and the dynamic node device can be one, two or more. For another example, considering the stability of the data configuration, the master node device can be two. When one of them is abnormal, it can be directly connected to the other one, thereby ensuring the stability of the data configuration link. The dynamic node device can be one, two or more. Therefore, there is no limit to the number of master node devices and dynamic node devices selected, and the specific implementation process may include:

[0092] Step S102-2-11: Select the digital device with the first priority from the scanned digital devices as the master node device;

[0093] Step S102-2-12: Select the digital device with the second priority from the scanned digital devices as the dynamic node device;

[0094] or,

[0095] Step S102-2-21: Select the digital device with the first priority from the scanned digital devices as the master node device;

[0096] Step S102-2-21: Select the digital device with the second priority and the digital device with the third priority from the scanned digital devices as dynamic node devices;

[0097] or,

[0098] Step S102-2-31: Select the digital device with the first priority and the digital device with the second priority from the scanned digital devices as the master node devices;

[0099] Step S102-2-31: Select the digital device with the third priority and the digital device with the fourth priority from the scanned digital devices as the dynamic node devices.

[0100] It can be understood that in this embodiment, the digital device with the highest priority in the digital device priority sorting queue is used as the master node device, and the dynamic node devices are selected in sequence. In this embodiment, one master node device is selected and two dynamic node devices are selected. Whether the master node device or the dynamic node device can determine the number of node devices selected according to the number of digital devices or the number of elements included in the digital device.

[0101] Regarding step S103: according to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device, the configuration task is executed; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to a configuration task queue formed according to the configuration task priority of the digital device to be configured that is not a master node device, the first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, and the second configuration task establishes a dynamic connection from a high-priority digital device to a low-priority digital device in sequence and performs data configuration; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0102] In Bluetooth mesh, message transmission methods can include: ADV (Advertising Data Payload) bearer and GATT (Generic Attribute Profile Generic) bearer. ADV bearer uses the advertising state of BLE devices to send and receive messages. When a BLE device advertises, it periodically sends data packets that can be detected and processed by nearby devices. Messages sent by ADV bearer can be received by many nodes at the same time. GATT (Generic Atribute Profile) bearer sends and receives messages in a point-to-point topology, and GATT connections are exclusive. That is, a client can only connect to one Bluetooth device.

[0103] Therefore, in the step S103, the first transmission mode is a broadcast transmission mode, such as ADV. The second transmission mode is a point-to-point transmission mode, such as GATT.

[0104] like Figure 2 and Figure 3 As shown, the specific implementation process of executing the configuration task in step S103 may include:

[0105] Step S103-11: dividing the configuration tasks according to the identification information of the digital device to be configured that is not a master node device;

[0106] Step S103 - 12 : According to the number of elements in the divided configuration tasks, the digital devices to be configured that are not master node devices are prioritized to form the configuration task queue.

[0107] The identification information of the digital device to be configured may be the identification information of the MAC address. The MAC address may also be referred to as the Bluetooth MAC (Media Access Control) address, which is a 48-bit unique hardware identifier used to establish connections and communications between Bluetooth devices. In this embodiment, the configuration task may be divided according to the MAC address identifier of the digital device. The configuration task may be understood as a task of issuing scene rule data established for a Bluetooth device in a Bluetooth mesh network, that is, configuring the scene rule data to the corresponding device, thereby realizing the control of the intelligent electronic device (digital device) in the AIOT or IOT scenario. Each digital device may have the same or different scene rule data to realize the control in the application scenario. The digital device may differ in the amount of scene rule data included in the number of elements or sub-nodes used by the digital device. Generally, the more elements included in the digital device, the larger the amount of scene rule data. Of course, it is not excluded that the number of elements is small but the scene control is more complicated, resulting in a larger amount of scene rule data. Therefore, before executing step S103-1, the scene rule data to be configured, i.e., the configuration data, needs to be obtained first. In the hotel data configuration scenario, the configuration task may be configured for each room. Therefore, the scene rule data that needs to be configured in the current room may be obtained, and configuring the scene rule data to which device in the current room is the configuration task.

[0108] The configuration task queue may be obtained by priority sorting according to one or more combinations of the number of elements, data volume, signal strength, etc. of the digital device.

[0109] In the above, the master node device and the dynamic node device are determined, and the master node device is directly connected to the first configuration task, and the dynamic node device is dynamically connected to the second configuration task, so it is necessary to process the configuration task of the unconnected device.

[0110] Therefore, the specific implementation process of executing the configuration task in step S103 includes:

[0111] Step S103-21: According to the direct connection mode, the master node device is configured with data using a point-to-point transmission mode for the current configuration task; that is, the point-to-point transmission mode may be a GATT mode.

[0112] Step S103-22: After the master node device completes the current configuration task, the first configuration task uses a broadcast transmission mode to perform data configuration from a low-priority digital device in the configuration task queue to a high-priority digital device. That is, the broadcast transmission mode may be an ADV mode.

[0113] In this embodiment, the master node device can act as a relay node to forward data configuration from a low-priority device to a high-priority digital device.

[0114] The second configuration task in step S103 sequentially establishes dynamic connections from high-priority digital devices to low-priority digital devices and performs data configuration. The specific implementation process may include:

[0115] Step S103 - 3 : using a point-to-point transmission method, dynamically connect and configure data from the high-priority digital device in the configuration task queue to the low-priority digital device in turn.

[0116] In this embodiment, the second configuration task is a data configuration performed on a digital device that meets the requirements of the dynamic connection method as a dynamic node device. The point-to-point transmission method used for the second configuration task can also be a GATT method. In this embodiment, the dynamic node device may include two node devices, which are respectively connected to two second configuration tasks, such as: device 2 establishes a connection with the second configuration task A and performs data configuration, and device 3 establishes a connection with the second configuration task B and performs data configuration. When the second configuration tasks A and B are completed, devices 2 and 3 are disconnected from the second configuration task, and then connect to the next dynamic node device and perform data configuration until all configuration tasks in the configuration queue are completed. Therefore, the specific implementation process of step S103-3 may include:

[0117] Step S103-31: using the connection relationship established with the current dynamic node device to complete the configuration task of the current dynamic node device;

[0118] Step S103-32: disconnecting the dynamic connection relationship with the current dynamic node device;

[0119] Step S103-33: according to the order of the high-priority digital devices to the low-priority digital devices in the configuration task queue, obtain the digital devices that need to be configured in the next priority order, establish a new dynamic connection relationship, and continue to execute the configuration task;

[0120] Step S103-34: Repeat the above process until the configuration tasks included in the configuration task queue are completed.

[0121] It can be understood that dynamic connections are established in sequence from high-priority digital devices to low-priority digital devices in the configuration task queue. If the dynamic connection fails, the dynamic node device can be added to the end of the configuration task queue as an ordinary node device, and the master node device adopts the first transmission method (i.e., broadcast method) to perform data configuration on the ordinary node device added to the end of the queue.

[0122] It should be noted that for digital devices that fail to connect (may be caused by poor signal strength, etc.), reconnection can be performed within the connection time range or the connection number range. If the connection still cannot be successfully connected within the connection time range or the connection number range, it means that the digital device is far away and the signal is weak. Then the digital device is added to the end of the configuration task queue as an ordinary node device, and the master node device is used as a relay node to transmit data configuration to the ordinary node device added to the end of the queue using a broadcast transmission method to ensure the reliability of transmission. In order to ensure the timeliness of data configuration execution, the connection time range or the connection number range can be set according to demand. Of course, the digital device can also be directly added to the end of the queue after the first connection failure to continue the subsequent dynamic connection. The dynamic node device for which the configuration task is completed can be deleted from the configuration task queue so that the digital device with unfinished connection and data configuration is retained in the configuration task queue. Of course, the dynamic node device that has completed the configuration task can also be marked as completed without the need to delete it.

[0123] In this embodiment, a dual-mode multi-dynamic method is used to implement data configuration, that is, for a high-priority digital device as a master node device, the ADV method is used to perform data configuration (which can also be understood as data transmission) for the configuration task, and the second-highest priority digital device as a dynamic node device uses the GATT method for data configuration, thereby realizing the GATT+ADV dual-mode data transmission method, and the master node device is a GATT direct connection method, and the dynamic node device is a GATT dynamic multi-connection method. Therefore, in the scenario rule data configuration scenario, the transmission of data configuration can be achieved in a distributed manner. The GATT method, because of its own fast and stable characteristics of sending down, can use devices with large data volumes (devices with the highest priority in the device list) as master node devices, and select digital devices as dynamic node devices in order from high to low according to the data volume priority, thereby ensuring the sending speed; and the ADV method, because of its own wide coverage characteristics, sends data to devices with lower priority or weaker signals (farther away), thereby ensuring coverage.

[0124] Therefore, the data configuration method embodiment of the digital device provided by the present application can ensure that digital devices with large data volumes perform data configuration in accordance with the GATT direct connection method through a dual-mode multi-dynamic connection method, and digital devices with small data volumes perform data configuration forwarding in accordance with the ADV method, making full use of the GATT direct connection to ensure data transmission efficiency, and using ADV to ensure the coverage of transmission, that is: it can ensure that large data volumes are preferentially transmitted in accordance with the GATT direct connection method, and low data volumes are transmitted in accordance with the ADV method. In this embodiment, by selecting dynamic node devices, it is possible to ensure transmission efficiency while avoiding client-side compatibility issues caused by the dynamic node devices connecting to the configuration task through GATT.

[0125] The above is a detailed description of an embodiment of a data configuration method for a digital device provided by the present application. Corresponding to the embodiment of a data configuration method for a digital device provided above, the present application also discloses an embodiment of a data configuration device for a digital device. Figure 4 Since the device embodiment is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment. The device embodiment described below is only illustrative.

[0126] like Figure 4 As shown, Figure 4 The present application provides a structural schematic diagram of a data configuration device for a digital device. The device embodiment may include: a scanning unit 401, a selection unit 402 and an execution unit 403.

[0127] The scanning unit 401 is used to scan digital devices according to the list of bound digital devices to be configured.

[0128] The selection unit 402 is used to select a digital device that meets the direct connection requirements from the scanned digital devices as a main node device, and select a digital device that meets the dynamic connection requirements as a dynamic node device.

[0129] The execution unit 403 is used to execute configuration tasks according to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein, the execution of the configuration task includes: according to the configuration task queue formed by the configuration task priority for the digital device to be configured that is not the master node device, the first configuration task performs data configuration from the low-priority digital device to the high-priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from the high-priority digital device to the low-priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0130] The scanning unit 401 includes: an acquisition subunit, a generation subunit and a scanning subunit; the acquisition subunit is used to acquire a list of bound digital devices to be configured; the generation subunit is used to prioritize the list of digital devices to be configured according to the digital device element dimension and generate a digital device priority ranking queue; the scanning subunit is used to scan the digital device priority ranking queue according to the current position and acquire the scanned digital device.

[0131] The selection unit 402 includes: a determination subunit and a selection subunit; the determination subunit is used to determine the priority of the scanned digital device according to the digital device priority sorting queue; the selection subunit is used to select a digital device that meets the direct connection requirements as a main node device and select a digital device that meets the dynamic connection requirements as a dynamic node device according to the priority of the scanned digital device.

[0132] The specific implementation process of the selection unit 402 includes:

[0133] Selecting the digital device with the first priority from the scanned digital devices as the master node device;

[0134] Selecting the digital device with the second priority from the scanned digital devices as the dynamic node device;

[0135] or,

[0136] Selecting the digital device with the first priority from the scanned digital devices as the master node device;

[0137] Selecting the digital device with the second priority and the digital device with the third priority from the scanned digital devices as dynamic node devices;

[0138] or,

[0139] Selecting the digital device with the first priority and the digital device with the second priority from the scanned digital devices as the master node devices;

[0140] The digital device with the third priority and the digital device with the fourth priority are selected from the scanned digital devices as the dynamic node devices.

[0141] The execution unit 403 includes: a division subunit and a sorting subunit.

[0142] The division subunit is used to divide the configuration task according to the identification information of the digital device to be configured that is not a master node device;

[0143] The sorting subunit is used to sort the digital devices to be configured that are not master node devices by priority according to the number of elements in the divided configuration tasks to form the configuration task queue.

[0144] The execution unit 403 can be specifically used to configure the data of the master node device according to the direct connection method using a point-to-point transmission method for the current configuration data; according to the completion of the configuration task of the master node device for the current configuration data, the first configuration task uses a broadcast transmission method to configure data from the low-priority digital device in the configuration task queue to the high-priority digital device.

[0145] The execution unit 403 can be specifically used to establish dynamic connections and perform data configuration from the high-priority digital device in the configuration task queue to the low-priority digital device in sequence according to the point-to-point transmission mode. Specifically, when the current second configuration task is completed, the dynamic connection relationship with the dynamic node device is disconnected; from the high-priority digital device in the configuration task queue to the low-priority digital device, the digital device to be configured is obtained as a new dynamic node device and a new dynamic connection relationship is established; according to the new dynamic connection relationship, the data configuration is performed on the next second configuration task corresponding to the new dynamic node device until the configuration tasks contained in the configuration task queue are completed.

[0146] To ensure the comprehensiveness of data configuration coverage, it may also include: when the dynamic node device fails to establish a dynamic connection, the dynamic node device is added to the end of the configuration task queue as a common node device; and the master node device uses the first transmission method to perform data configuration on the common node device added to the end of the queue. Of course, if the dynamic connection fails, reconnection can also be performed through a preset connection time. If the reconnection also fails, the dynamic node device is added to the end of the configuration task queue as a common node device.

[0147] In this embodiment, a deleting unit is further included, which is used to delete the configured digital device from the configuration task queue.

[0148] The above is a description of an embodiment of a data configuration device for a digital device provided in the present application. For the specific content of the device embodiment, reference may be made to the content of the data configuration method embodiment for the digital device described above, which will not be described in detail here.

[0149] Based on the above, the present application also provides a data configuration method for hotel smart devices, such as Figure 5As shown, Figure 5 This is a flow chart of a data configuration method for hotel smart devices provided by the present application, which may include:

[0150] Step S501: the hotel client scans the intelligent electronic devices according to the list of intelligent electronic devices to be configured that have been bound to the hotel room;

[0151] Step S502: Selecting an intelligent electronic device that meets the direct connection requirements from the scanned intelligent electronic devices as a master node device, and selecting an intelligent electronic device that meets the dynamic connection requirements as a dynamic node device;

[0152] Step S503: Execute configuration tasks according to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein, the execution of the configuration task includes: according to a configuration task queue formed according to the configuration task priority of the to-be-configured intelligent electronic device that is not a master node device, the first configuration task performs data configuration from a low-priority intelligent electronic device to a high-priority intelligent electronic device, and the second configuration task establishes a dynamic connection and performs data configuration from a high-priority intelligent electronic device to a low-priority intelligent electronic device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0153] The specific contents of step S501 to step S503 can be combined with the contents of step S101 to step S103, which will not be described in detail here.

[0154] Based on the above, the present application also provides a data configuration device for hotel smart devices, such as Figure 6 As shown, Figure 6 This is a structural diagram of a data configuration device for hotel smart devices provided by the present application, the device comprising:

[0155] Scanning unit 601, used for the hotel client to scan the intelligent electronic devices according to the list of intelligent electronic devices to be configured that have been bound to the hotel room;

[0156] A selection unit 602 is used to select an intelligent electronic device that meets the direct connection requirements from the scanned intelligent electronic devices as a master node device, and select an intelligent electronic device that meets the dynamic connection requirements as a dynamic node device;

[0157] The execution unit 603 is used to execute the configuration task according to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to the configuration task queue formed according to the configuration task priority of the to-be-configured intelligent electronic device that is not the master node device, the first configuration task performs data configuration from the low-priority intelligent electronic device to the high-priority intelligent electronic device, and the second configuration task establishes dynamic connection and performs data configuration from the high-priority intelligent electronic device to the low-priority intelligent electronic device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

[0158] Based on the above content, the present application also provides a computer storage medium for storing data generated by a network platform, and a program for processing the data generated by the network platform;

[0159] When the program is read and executed by the processor, the program executes the data configuration method of the digital device as described above, or executes the data configuration method applied to the hotel smart device as described above.

[0160] Based on the above content, the present application also provides an electronic device, such as Figure 7 As shown, the electronic device includes: a processor 701 and a memory 702 .

[0161] The memory 702 is used to store a program for processing data generated by a network platform. When the program is read and executed by the processor 701, it executes the data configuration method for the digital device as described above, or executes the data configuration method for hotel smart devices as described above.

[0162] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant laws, regulations and standards of the relevant countries and regions, and provide corresponding operation entrances for users to choose to authorize or refuse.

[0163] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0164] The memory may include non-permanent storage in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.

[0165] 1. Computer-readable media includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. Information can be computer-readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape magnetic disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include non-transitory media such as modulated data signals and carrier waves.

[0166] 2. Those skilled in the art should understand that the embodiments of the present application can be provided as methods, systems or computer program products. Therefore, the present application can take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present application can take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0167] Although the present application is disclosed as above in the form of a preferred embodiment, it is not intended to limit the present application. Any technical personnel in this field may make possible changes and modifications without departing from the spirit and scope of the present application. Therefore, the scope of protection of the present application shall be based on the scope defined by the claims of the present application.

Claims

1. A data configuration method for a digital device, characterized in that: include: Scanning digital devices according to the list of bound digital devices to be configured; Selecting a digital device that meets the direct connection requirements from the scanned digital devices as a main node device, and selecting a digital device that meets the dynamic connection requirements as a dynamic node device; According to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device, the configuration task is executed; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to the configuration task queue formed by the configuration task priority for the digital device to be configured that is not the master node device, the first configuration task performs data configuration from the low priority digital device to the high priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from the high priority digital device to the low priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

2. The data configuration method of a digital device according to claim 1, characterized in that: The scanning of digital devices according to the list of bound digital devices to be configured includes: Get the list of bound digital devices to be configured; Prioritize the list of digital devices to be configured according to the digital device element dimension to generate a digital device priority sorting queue; According to the current position, the digital device priority sorting queue is scanned to obtain the scanned digital devices.

3. The data configuration method of a digital device according to claim 2, characterized in that: The step of selecting a digital device that meets the direct connection requirements from the scanned digital devices as a master node device and selecting a digital device that meets the dynamic connection requirements as a dynamic node device includes: Determining the priority of the scanned digital device according to the digital device priority sorting queue; According to the priorities of the scanned digital devices, a digital device that meets the direct connection requirements is selected as a main node device, and a digital device that meets the dynamic connection requirements is selected as a dynamic node device.

4. The data configuration method of a digital device according to claim 3, characterized in that: The step of selecting, according to the priorities of the scanned digital devices, a digital device that meets the direct connection requirements as a master node device and a digital device that meets the dynamic connection requirements as a dynamic node device comprises: Selecting the digital device with the first priority from the scanned digital devices as the master node device; Selecting the digital device with the second priority from the scanned digital devices as the dynamic node device; or, Selecting the digital device with the first priority from the scanned digital devices as the master node device; Selecting the digital device with the second priority and the digital device with the third priority from the scanned digital devices as dynamic node devices; or, Selecting the digital device with the first priority and the digital device with the second priority from the scanned digital devices as the master node devices; The digital device with the third priority and the digital device with the fourth priority are selected from the scanned digital devices as the dynamic node devices.

5. The data configuration method of a digital device according to claim 1, characterized in that: The configuration task queue formed according to the configuration task priority for the to-be-configured digital device that is not a master node device includes: Dividing the configuration tasks according to the identification information of the to-be-configured digital device that is not a master node device; According to the number of elements in the divided configuration tasks, the to-be-configured digital devices that are not master node devices are prioritized to form the configuration task queue.

6. The data configuration method of a digital device according to claim 1, characterized in that: The first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, including: According to the direct connection mode, data configuration is performed on the master node device using a point-to-point transmission mode for the current configuration task; After the master node device completes the current configuration task, the first configuration task adopts a broadcast transmission method to perform data configuration from a low-priority digital device in the configuration task queue to a high-priority digital device.

7. The data configuration method of a digital device according to claim 1, characterized in that: The second configuration task sequentially establishes dynamic connections from high-priority digital devices to low-priority digital devices and performs data configuration, including: By adopting a point-to-point transmission mode, dynamic connections are established in sequence from the high-priority digital device in the configuration task queue to the low-priority digital device, and data configuration is performed.

8. The data configuration method of a digital device according to claim 7, characterized in that: The point-to-point transmission method is used to establish dynamic connections from the high-priority digital device in the configuration task queue to the low-priority digital device in sequence and perform data configuration, including: The connection relationship established with the current dynamic node device is used to complete the configuration task of the current dynamic node device; Disconnecting the dynamic connection relationship with the current dynamic node device; According to the sorting of high-priority digital devices to low-priority digital devices in the configuration task queue, the next priority digital device that needs to be configured is obtained, and a new dynamic connection relationship is established, and the configuration task continues to be executed. The above process is repeated until all configuration tasks in the configuration task queue are completed.

9. The data configuration method of a digital device according to claim 1, characterized in that: Also includes: When the dynamic node device fails to establish a dynamic connection, adding the dynamic node device as a common node device to the end of the configuration task queue; The master node device adopts the first transmission mode to perform data configuration on the common node device added to the end of the queue.

10. The data configuration method of a digital device according to claim 9, characterized in that: When the dynamic node device fails to establish a dynamic connection, adding the dynamic node device as a common node device to the end of the configuration task queue includes: When the dynamic node device fails to establish a dynamic connection, reconnect according to the connection time or the number of connections; If the reconnection fails, the dynamic node device is added to the end of the configuration task queue as a common node device.

11. The data configuration method of a digital device according to claim 1, characterized in that: Also includes: The first transmission mode is the GATT communication standard, and the second transmission mode is the ADV communication mode.

12. A data configuration device for a digital device, characterized in that: include: A scanning unit, used for scanning digital devices according to a list of bound digital devices to be configured; A selection unit, used to select a digital device that meets the direct connection requirements from the scanned digital devices as a main node device, and select a digital device that meets the dynamic connection requirements as a dynamic node device; An execution unit is used to execute configuration tasks according to a first configuration task corresponding to the master node device and a second configuration task corresponding to the dynamic node device; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to a configuration task queue formed according to the configuration task priority of the digital device to be configured that is not a master node device, the first configuration task performs data configuration from a low-priority digital device to a high-priority digital device, and the second configuration task establishes a dynamic connection and performs data configuration from a high-priority digital device to a low-priority digital device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

13. A data configuration method applied to hotel smart devices, characterized in that: The method is applied to the hotel client, including: The hotel client scans the intelligent electronic devices according to the list of intelligent electronic devices to be configured that have been bound to the hotel room; Selecting an intelligent electronic device that meets the direct connection requirements from the scanned intelligent electronic devices as a main node device, and selecting an intelligent electronic device that meets the dynamic connection requirements as a dynamic node device; According to the first configuration task corresponding to the master node device and the second configuration task corresponding to the dynamic node device, the configuration task is executed; the first configuration task adopts a first transmission method applicable to the master node device, and the second configuration task adopts a second transmission method applicable to the dynamic node device; wherein the execution of the configuration task includes: according to the configuration task queue formed by the configuration task priority for the to-be-configured intelligent electronic device that is not the master node device, the first configuration task performs data configuration from the low-priority intelligent electronic device to the high-priority intelligent electronic device, and the second configuration task establishes dynamic connection and performs data configuration from the high-priority intelligent electronic device to the low-priority intelligent electronic device in sequence; the above steps are executed until the configuration tasks contained in the configuration task queue are completed.

14. A computer storage medium for storing data generated by a network platform and a program for processing the data generated by the network platform; When the program is read and executed by the processor, the program executes the data configuration method for a digital device as described in any one of claims 1 to 11 above, or executes the data configuration method for a hotel smart device as described in claim 13 above.

15. An electronic device, comprising: processor; A memory for storing a program for processing data generated by a network platform, wherein when the program is read and executed by the processor, the program executes the data configuration method for a digital device as described in any one of claims 1 to 11 above, or executes the data configuration method for a hotel smart device as described in claim 13 above.