WO2023241566A1 - Networking method and system, and related apparatus - Google Patents

Networking method and system, and related apparatus Download PDF

Info

Publication number
WO2023241566A1
WO2023241566A1 PCT/CN2023/099897 CN2023099897W WO2023241566A1 WO 2023241566 A1 WO2023241566 A1 WO 2023241566A1 CN 2023099897 W CN2023099897 W CN 2023099897W WO 2023241566 A1 WO2023241566 A1 WO 2023241566A1
Authority
WO
WIPO (PCT)
Prior art keywords
central device
network
central
measurement
slave
Prior art date
Application number
PCT/CN2023/099897
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 WO2023241566A1 publication Critical patent/WO2023241566A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/02Arrangements for optimising operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks

Definitions

  • the present application relates to the field of communication technology, and in particular, to a networking method, system and related devices.
  • Multiple electronic devices can be networked in the form of a central network.
  • the central network there is a central device and multiple slave devices.
  • Each slave device can establish a communication connection with the central device to realize mutual communication between the central device and slave devices, and between slave devices in the network.
  • the communication between any two slave devices in the network needs to go through the central device.
  • the central device When there are a large number of slave devices in the central network, the central device will receive multiple messages from different devices at the same time. In this case, the communication request sent from the slave device to the central device is difficult to be processed in time. Therefore, in the above central network, the communication between the slave device and the slave device will be longer. High latency.
  • This application provides a networking method, system and related devices.
  • the method determines a main central device among the central devices of multiple secondary networks, and establishes a connection between the main central device and the central devices of other secondary networks. Establishing communication connections realizes the formation of multiple secondary networks into a high-level network.
  • the second secondary network includes a second central device and a slave device connected to the second central device; the first central device receives the second secondary device sent by the second central device.
  • the network information of the network; the first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein the first secondary network includes the first central device and the second secondary network.
  • the first high-level network includes a first central device, a second central device, a first slave device and a slave device connected to the second central device.
  • the network information of the high-level network includes network information of the first secondary network and the first slave device. Network information for the secondary network.
  • multiple slave devices on the same secondary network can communicate with each other without going through the main central device. This can not only reduce the number of requests received by the main central device, but also reduce the processing time of requests initiated by slave devices and improve Improve network communication efficiency and reduce latency.
  • measurement services and distributed collaboration services can also be performed.
  • the method before the first central device establishes a communication connection with the first slave device, the method further includes: the first central device sends a detection request, and the detection request is used to detect the slave device; the first central device receives the first A detection response sent from the slave device; in response to the detection response, the first central device sends a first networking request to the first slave device, and the first networking request is used to request to establish a communication connection with the first slave device.
  • any central device can form a secondary network with one or more slave devices.
  • the network information of the first secondary network includes: a device identification of the first central device, a device identification of the first slave device, a device type of the first central device, and a device type of the first slave device. and the connection relationship between the first central device and the first slave device;
  • the network information of the second secondary network includes the device identification of the second central device, the device identification of the slave device connected to the second central device, and the equipment of the second central device. type, the device type of the slave device connected to the second central device, and the connection relationship between the second central device and the slave device in the second secondary network.
  • the first central device receives the second network connection response sent by the third central device; after receiving the second network connection response, the first central device establishes a communication connection with the third central device; when the third central device
  • the first central device sends a second information acquisition request to the third central device. Used to request to obtain network information of the third secondary network.
  • the third secondary network includes a third central device and a slave device connected to the third central device; the first central device receives the third secondary network sent by the third central device.
  • the first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network, specifically including: the first central device based on the network information of the first secondary network Information, the network information of the second secondary network and the third secondary network determine the network information of the first high-level network.
  • the network information of the first high-level network includes the network information of the first secondary network and the network information of the second secondary network. and network information for third-level networks.
  • the first central device when the first central device goes online, the first central device sends a first online notification to the second central device and the third central device, and the first online notification is used to notify the second central device or the third central device.
  • the first central device of the three central devices goes online; the first central device establishes a communication connection with the second central device; the first central device establishes a communication connection with the third central device.
  • the first central device after determining the first central device as the main central device, when the second central device goes offline, the first central device determines that the second central device is offline; the first central device determines the isolated device, and the isolated device It is a slave device connected to the second central device before the second central device goes offline; the first central device sends a second networking request to the isolated device to request to establish a communication connection with the isolated device; the first central device establishes a communication connection with the isolated device Communication connection.
  • the main central device can establish a communication connection with the isolated device and take over the slave device (isolated device) originally connected to the secondary central device to ensure the normal operation of these isolated devices in the advanced network.
  • the slave device isolated device
  • these isolated devices can resume communication connections with the secondary central device.
  • the first central device when the first central device determines that the second central device is the main central device and the first central device is the secondary central device, the first central device sends the first secondary network to the second central device. network information.
  • the first network response includes the device type of the second central device; the first central device determines the second central device as the main central device, specifically including: the first central device based on the second central device The device type determines that the second central device is the main central device.
  • the first network response includes the hardware configuration information of the second central device; the first central device determines the second central device as the primary central device, and determines the first central device as the secondary central device, specifically including: : The first central device determines the second central device as the primary central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device, and determines the first central device as the secondary central device.
  • the hardware configuration information is used to indicate the device.
  • the hardware capabilities of the main center device are higher than the hardware capabilities of the secondary center device.
  • the central device with higher hardware capabilities can be determined as the main central device based on the hardware configuration information of the central device.
  • the first central device after determining the first central device as the main central device, receives a first measurement request sent by a measurement device in the first advanced network, and the first measurement request is used to request the first
  • the central device permits the measurement device to perform the first measurement service, and the measurement device is any device in the first advanced network that is different from the first central device; in response to the first measurement request, when the first central device is based on the service data of the first advanced network
  • the first central device sends the measurement result of the first measurement service to the measurement device; wherein the service data of the first high-level network includes the measurement data of the first high-level network and/or the first high-level network.
  • the measurement services to be performed in the network, and the measurement data of the first high-level network include data generated by the measurement services that have been performed in the first high-level network.
  • the first central device when the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the first central device sends the first measurement permission to the measurement device, and the first measurement The license is used to notify the measurement device that it is allowed to perform the first measurement service; the first central device receives the measurement result of the first measurement service sent by the measurement device; the first central device updates the service of the first advanced network based on the measurement result of the first measurement service data.
  • the first measurement service includes a measurement object and measurement content; wherein the measurement object is any device in the first advanced network that is different from the first central device; and the measurement content includes any one or more of the following: Items: the distance between the measuring equipment and the measuring object, the orientation relationship between the measuring equipment and the measuring object, the distance between the measuring equipment and the measuring object The included angle, the internal and external relationship between the measuring equipment and the measurement object.
  • measurement services can be carried out based on advanced networks.
  • unnecessary measurement services can be avoided and energy consumption can be reduced.
  • the first central device receives a second network connection request from the fourth central device, and the second network connection request is used to request and The central device establishes a communication connection; in response to the second network connection request, the first central device establishes a communication connection with the fourth central device; the first central device receives the network information of the fourth secondary network sent by the fourth central device, and the fourth time
  • the first-level network includes a fourth central device and slave devices connected to the fourth central device; the network information of the second-level network is determined based on the network information of the first-level network and the network information of the fourth-level network.
  • the second-level network includes the second-level network. A high-level network and a fourth-level network.
  • the first central device when the first central device cannot determine the measurement result of the first measurement service based on the service data of the second advanced network, the first central device sends the first measurement permission to the measurement device, and the first measurement The license is used to notify the measurement device that it is allowed to perform the first measurement service; the first central device receives the measurement result of the first measurement service sent by the measurement device; the first central device updates the service of the first advanced network based on the measurement result of the first measurement service data.
  • the first measurement service includes a measurement object and measurement content; wherein the measurement object is any device in the first advanced network that is different from the first central device; and the measurement content includes any one or more of the following: Items: the distance between the measuring equipment and the measured object, the azimuth relationship between the measuring equipment and the measured object, the angle between the measuring device and the measured object, and the internal and external relationship between the measuring equipment and the measured object.
  • the first central device when the first central device is determined to be the main central device, the first central device obtains the The equipment detection type and equipment power consumption type of the equipment in the second advanced network.
  • the equipment detection type includes active detection equipment and passive detection equipment, and the equipment power consumption type includes long-term power equipment and weak power equipment; the first central equipment is based on the advanced network.
  • the device detection type and device power consumption type of the device determine that the second central device is a backup device, the device detection type of the second central device is an active detection device, and the device power consumption type of the second central device is a long-term power device; first The central device sends network information of the second high-level network and/or service data of the second high-level network to the second central device.
  • this application provides a networking method, including: a second central device receives a first network connection request sent by the first central device, and the first network connection request is used to request to establish a communication connection with the central device; second The central device sends a first network connection response to the first central device; after the second central device sends the first network connection response to the first central device, the second central device establishes a communication connection with the first central device; when the first central device is determined When the central device is the main central device and the second central device is the secondary central device, the second central device receives the first information acquisition request sent by the first central device. The first information acquisition request is used to request to obtain the network of the second secondary network.
  • the second secondary network includes a second central device and a slave device connected to the second central device; the second central device sends network information of the second secondary network to the first central device.
  • the network information of the second secondary network includes: the device identification of the second central device, the device identification of the slave device connected to the second central device, the device type of the second central device, and the device type of the second central device.
  • the second central device determines that the first central device is offline; in response to the first offline notification, the second central device The device sends a third network connection request; the second central device receives the third network connection response sent by the third central device; after the second central device receives the third network connection response sent by the third central device, the second central device communicates with the third network connection request.
  • the network information of the secondary network determines the network information of the third high-level network based on the network information of the second secondary network and the network information of the third secondary network; wherein the third high-level network includes the second central device, The third central device, the slave device connected to the second central device, the slave device connected to the third central device, and the network information of the high-level network includes the network information of the second secondary network and the network information of the third secondary network.
  • the main central device goes offline, the remaining secondary central devices can re-identify the new main central device and form a new advanced network.
  • the devices in the new advanced network can be reorganized into the original advanced network.
  • the second central device after determining that the first central device is the main central device, when the second central device goes offline, the second central device sends a second offline notification to the first central device, and the second offline notification is used to Notify the first central device and the second central device to be offline.
  • the second central device when the second central device comes online, the second central device sends a second online notification to the first central device and the isolated device, and the second online notification is used to notify the first central device or the isolated device of the second online notification.
  • the second central device comes online.
  • the isolated device is a slave device connected to the second central device before the second central device goes offline; after the second central device sends a second online notification to the first central device, the second central device communicates with the first central device. Establish a communication connection; after the second central device sends a second online notification to the isolated device, the second central device establishes a communication connection with the isolated device.
  • the second central device when the second central device is the main central device, the second central device receives the network information of the first secondary network sent by the first central device.
  • the first secondary network includes the first central device and A slave device connected to the first central device; the second central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein the first high-level network includes the first The central device, the second central device, the slave device connected to the first central device, and the slave device connected to the second central device.
  • the network information of the high-level network includes the network information of the first secondary network and the network information of the second secondary network. Internet Information.
  • the second central device when the first central device is the main central device, the second central device receives the first measurement request sent by the measurement device in the second secondary network, and the first measurement request is used to request the second
  • the central device permits the measurement device to perform the first measurement service, and the measurement device is any device in the second secondary network that is different from the second central device; in response to the first measurement request, when the second central device is based on the second secondary network
  • the service data determines the measurement result of the first measurement service
  • the second central device sends the measurement result of the first measurement service to the measurement device; wherein the service data of the second secondary network includes the measurement data of the second secondary network and/or Or the measurement service to be performed in the second secondary network.
  • the measurement data of the second secondary network includes data generated by the measurement service that has been performed in the second secondary network.
  • the second central device when the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends the first measurement permission to the measurement device.
  • the measurement permission is used to notify the measurement device that it is allowed to perform the first measurement service; the second central device receives the measurement result of the first measurement service sent by the measurement device; the second central device updates the second secondary network based on the measurement result of the first measurement service business data.
  • the second central device when the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends a second measurement request to the first central device, The second measurement request is used to request the first central device to allow the measurement device to perform the first measurement service; when the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network, the second central device receives the second measurement request.
  • a central device sends the measurement result of the first measurement service; the second central device sends the measurement result of the first measurement service to the measurement device.
  • the second central device when the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the second central device receives the first measurement permission sent by the first central device, The first measurement license is used to notify the measurement device that it is allowed to perform the first measurement service; the second center device sends the first measurement license to the measurement device; the second center device receives the measurement result of the first measurement service sent by the measurement device; the second center device The device updates the service data of the second secondary network based on the measurement result of the first measurement service.
  • the second central device receives the measurement results of the first measurement service sent by the measurement device. After the result, the second central device sends the measurement result of the first measurement service to the first central device.
  • this application provides a system, including: a first central device, a second central device, a first slave device, and a slave device connected to the second central device; the first central device is used to establish a connection with the first slave device. Communication connection; the first central device is used to send a first network connection request, and the first network connection request is used to request to establish a communication connection with the central device; the first central device is used to receive the first network connection response sent by the second central device; After the first central device receives the first network connection response sent by the second central device, the first central device is used to establish a communication connection with the second central device; the first central device is used to connect the first central device and the second central device determine the primary central device and the secondary central device; when the first central device determines the first central device as the primary central device and the second central device as the secondary central device, the first central device is used to send the first information to the second central device Acquisition request.
  • the first information acquisition request is used to request to obtain network information of the second secondary network.
  • the second secondary network includes a second central device and a slave device connected to the second central device; the first central device is used to receive the second central device.
  • the network information of the second secondary network sent by the second central device; the first central device is used to determine the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein, the first central device
  • the primary network includes a first central device and a first slave device.
  • the first advanced network includes a first central device, a second central device, a first slave device and slave devices connected to the second central device. Network information of the advanced network Including network information of the first secondary network and network information of the second secondary network.
  • the second central device is configured to receive the first network connection request; the second central device is used to send the first network connection response to the first central device; after the second central device sends the first network connection response to the first central device, The second central device is used to establish a communication connection with the first central device; when it is determined that the first central device is the main central device and the second central device is the secondary central device, the second central device is used to receive the first information acquisition request; After the second central device receives the first information acquisition request, the second central device is used to send the network information of the second secondary network to the first central device; the first slave device is used to establish a communication connection with the first central device.
  • the first central device before the first central device establishes a communication connection with the first slave device: the first central device is also used to send a detection request, and the detection request is used to detect the slave device; the first central device is used to receive A detection response sent by the first slave device; in response to the detection response, the first central device is used to send a first networking request to the first slave device, and the first networking request is used to request to establish a communication connection with the first slave device.
  • the first slave device is further configured to receive a detection request sent by the first central device; in response to the detection request, the first slave device is configured to send a detection response to the first central device.
  • the network information of the first secondary network includes a device identification of the first central device, a device identification of the first slave device, a device type of the first central device, a device type of the first slave device, and The connection relationship between the first central device and the first slave device;
  • the network information of the second secondary network includes the device identification of the second central device, the device identification of the slave device connected to the second central device, and the device type of the second central device , the device type of the slave device connected to the second central device, and the connection relationship between the second central device and the slave device in the second secondary network.
  • the third secondary network includes a third central device and a slave device connected to the third central device; the first central device is used to receive the information of the third secondary network sent by the third central device.
  • Network information; the first central device is used to determine the network information of the first high-level network based on the network information of the first secondary network, the network information of the second secondary network and the third secondary network.
  • the network information of the first high-level network includes Network information of the first secondary network, network information of the second secondary network and network information of the third secondary network.
  • the third central device is used to send a second network connection response to the first central device; the third central device is used to establish a communication connection with the first central device; when the first central device determines that the first central device is the master central device, the second central device When the central device and the third central device are both sub-central devices, the third central device is used to receive the second information acquisition request; in response to the second information acquisition request, the third central device is used to send the third central device to the first central device. Network information for level networks.
  • the first central device after determining the first central device as the main central device, when the first central device goes offline, the first central device is configured to send a first offline notification to the second central device.
  • the first offline notification Used to notify the second central device that the first central device is offline.
  • the third central device is used to receive the third network connection request; the third central device is used to send the third network connection response to the second central device; the third central device is used to establish a communication connection with the second central device; when the second center When the device determines that the second central device is the main central device and the third central device is the secondary central device, the third central device is used to receive the third information acquisition request sent by the second central device; in response to the third information acquisition request, the third central device The central device is used to send network information of the third secondary network to the second central device.
  • the first central device is the main central device and the first central device comes back online:
  • the first central device is the main central device and the second central device is offline:
  • the first central device is used to receive the second online notification sent by the second central device, and the second online notification is used to notify the first central device that the second central device is online; the first central device is used to establish a communication connection with the second central device; The first central device is used to disconnect the communication connection with the isolated device.
  • the isolated device is a slave device connected to the second central device before the second central device goes offline.
  • the second central device is used to send a second online notification to the first central device and the isolated device.
  • the second online notification is used to notify the first central device or the isolated device that the second central device is online; the second central device is used to communicate with the first central device.
  • the device establishes a communication connection; the second central device is used to establish a communication connection with the isolated device.
  • the isolated device is used to receive the second online notification; the isolated device is used to establish a communication connection with the second central device; the isolated device is used to disconnect the communication connection with the first central device.
  • the first advanced network includes a first central device, a second central device, a slave device connected to the first central device, and a slave device connected to the second central device
  • the network information of the advanced network includes a third Network information for the primary network and network information for the second secondary network.
  • the first network response includes the device type of the second central device; the first central device is configured to determine the second central device as the main central device based on the device type of the second central device.
  • the first network response includes hardware configuration information of the second central device; the first central device is configured to determine the first central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device.
  • One central device is the main central device, and the second central device is determined to be the secondary central device.
  • the hardware configuration information is used to indicate the hardware capabilities of the device.
  • the hardware capabilities of the primary central device are higher than the hardware capabilities of the secondary central device.
  • the first central device is the main central device:
  • the measuring device is used to determine the first measurement service, and the measuring device is any device in the first advanced network that is different from the first central device; the measuring device is also used to send a first measurement request to the first central device, and the first measurement request is Requesting the first central device to allow the measurement device to perform the first measurement service.
  • the second central device determines the measurement result of the first measurement service based on the service data of the second secondary network: the second central device is used to send the measurement result of the first measurement service to the measurement device; the measurement device is used to receive the first measurement service. Measurement results of the measurement business.
  • the network information of the high-level network, the second-level network includes the first-level network and the fourth-level network.
  • the fourth central device is used to send a second network connection request to the first central device; the fourth central device is used to establish a communication connection with the first central device; the fourth central device is used to send a fourth secondary network to the first central device network information.
  • the present application provides an electronic device, which is a first central device and includes one or more processors and one or more memories.
  • the one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program codes.
  • the computer program codes include computer instructions that, when executed by the one or more processors, cause the communication device to perform The networking method in any possible implementation manner of the first aspect above.
  • embodiments of the present application provide a computer storage medium that includes computer instructions.
  • the first central device When the computer instructions are run on a first central device, the first central device causes the first central device to execute any of the possible implementations of the first aspect. networking method.
  • embodiments of the present application provide a computer program product.
  • the computer program product When the computer program product is run on a computer, it causes the computer to execute the networking method in any of the possible implementations of the first aspect.
  • Figure 1 is a schematic structural diagram of a system 10 provided by an embodiment of the present application.
  • Figures 2A and 2B are schematic diagrams of scenes in a multi-screen collaboration scenario provided by embodiments of the present application.
  • FIGS. 2C to 2D are schematic diagrams of a vehicle-mounted scenario provided by an embodiment of the present application.
  • Figures 2E to 2F are schematic diagrams of scenarios in a distributed collaboration scenario provided by embodiments of the present application.
  • Figure 3 is a schematic diagram of the hardware structure of an electronic device 100 provided by an embodiment of the present application.
  • Figure 4A is a schematic flow chart of a networking method provided by an embodiment of the present application.
  • Figure 4B is a schematic structural diagram of multiple secondary networks provided by embodiments of the present application.
  • Figure 5B is a schematic structural diagram of an advanced network provided by an embodiment of the present application.
  • Figure 6A is a schematic flow chart for reorganizing an advanced network after a central device goes offline according to an embodiment of the present application
  • Figure 6B is a schematic flow chart of reorganizing an advanced network after a central device comes back online according to an embodiment of the present application
  • Figure 6C is a schematic structural diagram of an advanced network reorganized after the central device goes offline according to an embodiment of the present application
  • Figure 7C is a schematic structural diagram of an advanced network reorganized after a sub-center device goes offline according to an embodiment of the present application
  • Figure 8 is a schematic flow chart for performing measurement services based on an advanced network provided by an embodiment of the present application.
  • Figure 9 is a schematic flowchart of executing distributed collaborative services based on an advanced network provided by an embodiment of the present application.
  • first and second are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
  • the method first establishes a secondary network.
  • the secondary network includes a central device and one or more slave devices, and each slave device establishes a communication connection with the central device.
  • a primary central device can be determined among multiple central devices, and the remaining central devices are secondary central devices.
  • the main central device establishes communication connections with each secondary central device, forming multiple secondary networks into a high-level network.
  • multiple slave devices of the same secondary network can communicate with each other without going through the main central device, that is, they can communicate with each other through the secondary central device of the secondary network.
  • the main central device can establish a communication connection with the secondary central device, forming multiple secondary networks into a high-level network.
  • the central device 11 can establish a communication connection with the central device 12 to form a first secondary network and a second secondary network into a high-level network.
  • the first secondary network and the second secondary network can also be combined.
  • advanced network The network is called the first advanced network.
  • the central device 11 is the main central device, which can be used to store network information and business data of the first advanced network, and can also be used to control the electronic equipment in the first advanced network to perform measurement services.
  • the measurement services can include Any one or more of the following: distance measurement, angle measurement, direction measurement, orientation measurement, measurement of internal and external relationships, measurement of existential relationships, etc.
  • the central device 12 is a secondary central device and can be used to store network information of the second secondary network.
  • any two slave devices, or any slave device and any central device in the first high-level network can communicate with each other based on the first high-level network.
  • multiple central devices in the system 10 may also include a central device 15 .
  • the central device 11 may be networked with one or more slave devices (for example, the slave device 13) to form a first secondary network.
  • the central device 12 may be networked with one or more slave devices (eg, slave devices 14) into a second secondary network.
  • the central device 15 may form a third secondary network with one or more other slave devices.
  • the central device 11 is the main central device, and the central device 15 and the central device 12 are the sub-central devices.
  • the central device 11 can establish communication connections with the central device 15 and the central device 12 respectively, and connect the first secondary network, the second secondary network and the third secondary network to form a second high-level network.
  • the communication connection established between the main central device and the secondary central device, the connection established between the central device and the slave device for example, the communication connection between the central device 11 and the central device 12, the communication connection between the central device 15 and the central device
  • the communication connection between the devices 12, the communication connection between the central device 11 and the slave device 13, etc. may be a Bluetooth connection, a wireless LAN connection or an Ultra Wideband (UWB) connection, etc.
  • the central device 11 can be a router
  • the central device 12 can be a smart TV
  • the slave device 13 can be a mobile phone
  • the slave device 14 can be a smart speaker
  • the central device 15 can be a computer.
  • system 10 shown in Figure 1 is only an example.
  • the system 10 may also include more secondary networks, more central devices or more slave devices, and the central device or slave devices in the system 10
  • the device can also be a tablet, a smart door lock, a projector and other electronic devices, which are not limited in this application.
  • the central device 11 can also be called the first central device
  • the central device 12 can also be called the second central device
  • the central device 15 can also be called the third central device or the fourth central device.
  • the slave device 13 can also be called the first slave device.
  • the central device 15 and one or more slave devices connected to the central device 15 may form a fourth secondary network.
  • Figures 2A and 2B show a schematic diagram of a multi-screen collaboration scenario provided by an embodiment of the present application.
  • the mobile phone 41 can receive and respond to the user's click operation on the operation guide 3001 in the document directory. Based on the distributed collaboration relationship between the mobile phone 41 and the tablet computer 42, it sends the first step to the tablet computer 42 through the advanced network where the mobile phone 41 and the tablet computer 42 are located.
  • the second information is used to instruct the tablet computer to display the text content of the operation guide.
  • the tablet computer 42 can receive and respond to the second information sent by the mobile phone 41 and display the interface 4100 in Figure 2F.
  • the interface 4100 may include a document window 4101, which may be used to display the text content of the operation guide.
  • processor 110 may include one or more interfaces.
  • Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • UART universal asynchronous receiver and transmitter
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
  • the GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
  • GPS global positioning system
  • GLONASS global navigation satellite system
  • BDS Beidou navigation satellite system
  • QZSS quasi-zenith satellite system
  • SBAS satellite based augmentation systems
  • NPU is a neural network (NN) computing processor.
  • NN neural network
  • Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • Microphone 170C also called “microphone” or “microphone” is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C.
  • the electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
  • FIG. 4A shows a schematic flowchart of a secondary network networking process provided by an embodiment of the present application.
  • the networking process of the secondary network may include the following steps:
  • the central device After the central device is turned on, it can send detection information to the surrounding areas in the form of broadcast. After the slave device receives the detection information sent by the central device, in response to the detection information, the slave device can send a detection response to the central device.
  • the central device can determine the detected slave device based on the received detection response. For example, the central device receives a detection response sent from device one, and the central device can determine that slave device one has been detected based on the detection response.
  • the detection response can include the device identification of slave device one, where the device identification can include any of the following: : Device name, Media Access Control MAC address and Internet Protocol IP address.
  • the central device may send a first networking request to the detected one or more slave devices respectively.
  • the first networking request is used to request communication with the slave device. Establish a communication connection.
  • the slave device receives and responds to the first networking request. If it is determined that the slave device has not established a communication connection with other central devices, the slave device can send a first response to the central device.
  • the first response can be used to inform the central device that the slave device can Establish a communication connection with the slave device.
  • the first response may include connection parameters of the slave device, and the connection parameters of the slave device may be used to establish a communication connection with the slave device.
  • the slave device in response to the first networking request, if it is determined that the slave device has not established a communication connection with other central devices, the slave device may establish a communication connection with the central device.
  • the central device Upon receiving and responding to the first response, the central device can directly establish a communication connection with the slave device.
  • the central device when the central device has a limit on the maximum number of connectable devices, after the central device receives the first response, in response to the first response, the central device can based on the number of slave devices that the central device has connected to The maximum number of connectable devices to the central device determines whether to establish a communication connection with the slave device. For example, when it is determined that the number of slave devices to which the central device has been connected is less than the maximum number of connectable devices of the central device, in response to the first response, the central device may establish a communication connection with the slave device. When it is determined that the number of slave devices connected to the central device is equal to the maximum number of central devices When the number of connectable devices is high, in response to the first response, the central device may not establish a communication connection with the slave device.
  • Table 1 shows network information of a secondary network.
  • the network information of the secondary network may include the device identifiers, device types, and connection relationships between the central device and the slave devices of all devices (central devices and slave devices) in the secondary network.
  • the device identification may include any of the following: device name, media access control MAC address, and Internet Protocol IP address.
  • Device types can include central devices and slave devices.
  • the connection relationship can be used to indicate whether a communication connection is established between two devices in the secondary network.
  • the secondary network includes two devices, whose device identifiers are U1 and U2 respectively.
  • the device type corresponding to the device ID U1 is the central device
  • the device type corresponding to the device ID U2 is the slave device
  • a communication connection is established between the device ID U1 and the device ID U2.
  • the device identifier of the central device is U1
  • the device identifier of the slave device is U2
  • a communication connection is established between the central device and the slave device.
  • the network information of the secondary network may also include the connection form between the central device and the slave devices of the secondary network, the hardware configuration of the central device, the hardware configuration of the slave devices, etc., which is not covered in this application. limited.
  • the central device can save the network information of the secondary network after the secondary network is established.
  • the central device can save the network information of the secondary network multiple times during the establishment process of the secondary network. For example, when the central device forms a secondary network with multiple slave devices, after establishing a communication connection with one of the slave devices, the central device can first save some of the network information of the secondary network related to the slave device, that is, first The device identification, device type, and connection relationship between the central device and the slave device are saved in the network information of the secondary network.
  • a first secondary network can be established with the central device 11 as the central device and electronic devices such as the slave device 13 as slave devices.
  • the above method can also be used to establish a second secondary network with the central device 12 as the central device and the slave device 14 as the slave device.
  • Other central devices can also establish a secondary network with one or more slave devices according to the above method.
  • the tablet computer 21 and the display 22 can use the method shown in Figure 4A to establish a secondary network.
  • the following takes the system 20 shown in FIG. 4B as an example to introduce the process of establishing multiple secondary networks.
  • FIG. 4B shows a schematic structural diagram of multiple secondary networks provided by the embodiment of the present application.
  • the system 20 includes multiple electronic devices, for example, central device A, central device B, central device C, slave device D, slave device E, slave device F, slave device G, slave device H, slave device Device I, slave J, slave K, slave L, slave M and slave N.
  • the central device may be the central device 11 in the embodiment shown in FIG. 4A
  • the slave device may be the slave device 13 in the embodiment shown in FIG. 4A.
  • the central device A can actively detect whether there are other electronic devices around and send a first networking request to the detected electronic devices. For example, when central device A detects slave device M, slave device D, and slave device L, central device A can send a first networking request to slave device D, slave device M, and slave device L respectively. Please The slave device that receives the first networking request is required to establish a communication connection with central device A. After receiving the first networking request sent by the central device A, the slave device D can send a first response to the central device A, informing the central device A that a communication connection can be established with the slave device D. After receiving the first response, the central device A can establish a communication connection with the slave device D.
  • central device A can also establish connections with slave device L and slave device M according to the above-mentioned process of establishing a communication connection with slave device D. Therefore, the above-mentioned electronic devices can form a secondary network A0 with the central device A as the central device and the slave devices D, L and M as slave devices. Among them, the central device A as the central device can save the network information of the secondary network.
  • a secondary network B0 with the central device B as the central device and the slave devices E, F, N and G as slave devices can also be established.
  • a secondary network C0 with the central device C as the central device and the slave devices K, J, I and H as slave devices can also be established.
  • Tables 2 to 4 respectively show the network information of the secondary network A0, the network information of the secondary network B0, and the network information of the secondary network C0.
  • the secondary network A0 includes four devices, whose device identifiers are A, D, L, and M respectively.
  • the device type corresponding to the device with the device identifier A is the central device
  • the device type corresponding to the device with the device identifiers D, L, and M is the slave device
  • the device with the device identifier A is the same as the device identifier D, L, respectively.
  • a communication connection is established between , M's devices.
  • the device identifier of the central device A is A
  • the device identifier of the slave device D is D
  • the device identifier of the slave device L is L
  • the device identifier of the slave device L is L
  • the device identifier of device M is M
  • central device A has established communication connections with slave device D, slave device L, and slave device M respectively.
  • the secondary network B0 includes five devices, whose device identifiers are B, E, F, G, and N respectively.
  • the device type corresponding to the device with the device ID B is the central device
  • the device type corresponding to the devices with the device IDs E, F, G, and N is the slave device
  • the device with the device ID B and the device ID E respectively Communication connections are established between the devices of , F, G, and N.
  • the device identifier of the central device B is B
  • the device identifier of the slave device E is E
  • the device identifier of the slave device F is F
  • the device identifier of the slave device E is F
  • the device identifier of device G is G
  • the device identifier of slave device N is N
  • central device B has established communication connections with slave device E, slave device F, slave device G, and slave device N respectively.
  • the secondary network C0 includes five devices, whose device identifiers are C, H, I, J, and K respectively.
  • the device type corresponding to the device with the device ID C is the central device
  • the device type corresponding to the device IDs H, I, J, and K is the slave device
  • the device with the device ID C and the device ID H respectively communication connections are established between the devices of I, J, and K.
  • the device identifier of the central device C is C
  • the device identifier of the slave device H is H
  • the device identifier of the slave device I is I
  • the device identifier of the slave device I is I
  • the device identifier of device J is J
  • the device identifier of slave device K is K
  • the central device C has established communication connections with slave device H, slave device I, slave device J, and slave device K respectively.
  • FIG. 5A shows a schematic flowchart of an advanced network establishment method provided by an embodiment of the present application.
  • the networking process of the high-level network can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks.
  • the following takes the first high-level network formed by the first secondary network and the second secondary network as an example to illustrate the process of establishing the high-level network.
  • the central device 11 sends a network connection request to request to establish a communication connection with the central device.
  • the central device 11 After the central device 11 establishes the first secondary network with other electronic devices such as the slave device 13, the central device 11 can send a network connection request to the surroundings in the form of a broadcast.
  • the network connection request is used to establish a communication connection with the central device.
  • the network connection request may include a device type acquisition request and/or a hardware configuration information acquisition request.
  • the device type acquisition request may be used to request the device receiving the network connection request to send the device type of the device.
  • the hardware configuration information acquisition request may be used The device that requests to receive the network connection request sends the hardware configuration information of the device to the central device 11.
  • the hardware configuration information (hereinafter referred to as hardware configuration) may include one of the device's memory space size, computing speed, power consumption, battery life, measurement device (Bluetooth module, IMU device, UWB device, WLAN module), etc. item or multiple items.
  • the network connection request can also be used to request the device that receives the network connection request to determine its device type.
  • the device that receives the network connection request is a central device
  • the network connection request can be used to request the central device to send the request to the central device.
  • Device 11 sends the device type and hardware configuration of the central device.
  • the network connection request can be used to request the slave device to send the device type of the slave device to the central device 11 .
  • the central device 12 may send a network connection response to the central device 11 , and the network connection response may include the device type of the central device 12 and/or the hardware configuration of the central device 12 .
  • the device type of the central device 12 is used to determine whether the central device 11 establishes a communication connection with the central device 12
  • the hardware configuration of the central device 12 is used to determine the main central device among the central device 11 and the central device 12 .
  • the above-mentioned cross-network response can be sent to the central device 11 through one response, or can be divided into multiple responses and sent to the central device 11, which is not limited in this application.
  • the slave device when the electronic device that receives the network connection request is a slave device, in response to the network connection request, the slave device can only send the device type of the slave device to the central device 11 without sending the hardware configuration of the slave device.
  • the network connection response sent by the central device may only include the hardware configuration of the central device, or may include the hardware configuration and device type of the central device.
  • the central device 11 may also determine whether the device sending the cross-network response is a central device by whether the received cross-network response includes hardware configuration.
  • the network connection response sent by the central device 12 to the central device 11 may only include the device type of the central device 12 to inform the central device 11 central equipment 12 is the main central equipment.
  • the central device 11 determines the central device 11 as the main central device based on the hardware configuration of the central device 11 and the hardware configuration of the central device 12.
  • the central device 11 After receiving the hardware configuration of the central device 12, the central device 11 can determine the main central device based on the hardware configuration of the central device 12 and the hardware configuration of the central device 11.
  • the process for the central device 11 to determine the main central device may include the following steps:
  • the central device 11 determines the hardware score of the central device 11 based on the hardware configuration of the central device 11 .
  • the calculation method of the hardware score of the central device 12 can refer to the calculation method of the hardware score of the central device 11, which will not be described again here.
  • the central device 11 determines that the central device with a higher hardware score is the main central device in the advanced network, and the remaining central devices are secondary central devices.
  • the hardware score of the central device 11 is higher than the hardware score of the central device 12 , indicating that the central device 11 has higher hardware capabilities. Therefore, the central device 11 is determined to be the main central device of the advanced network, and the central device 12 is the secondary center. equipment. In other embodiments, the hardware score of the central device 12 is higher than the hardware score of the central device 11 , indicating that the central device 12 has higher hardware capabilities. Therefore, the central device 12 is determined to be the main central device of the advanced network, and the central device 11 is Secondary center equipment.
  • the central device 11 can also determine the central device based on the network connection response sent by the central device 12 12 is the main central equipment.
  • the central device 11 may determine whether to establish a communication connection with the central device 12 based on the device type of the central device 12. In this embodiment, since the device type of the central device 12 is a central device, the central device 11 determines to establish a communication connection with the central device 12 .
  • the slave device 14 can send the device type of the slave device 14 (ie, slave device) to the central device 11, and the central device 11 receives Device from device 14 After the type, it may be determined not to establish a communication connection with the slave device 14 based on the device type of the slave device 14 .
  • the slave device 14 can send the device type of the slave device 14 (ie, slave device) to the central device 11, and the central device 11 receives Device from device 14 After the type, it may be determined not to establish a communication connection with the slave device 14 based on the device type of the slave device 14 .
  • the central device 11 sends an information acquisition request to the central device 12, which is used to request the central device 12 to send network information of the second secondary network.
  • the first secondary network where the central device 11 is located and the second secondary network where the central device 12 is located can be connected through the central device 11 and the central device 12 to form a first high-level network.
  • the first high-level network includes a central device 11, a central device 12, a slave device 13 and a slave device 14, where the main central device is the central device 11 and the secondary central device is the central device 12.
  • the central device 11 may send an information acquisition request to the central device 12 .
  • the information acquisition request may include the identification of the main central device, which may be used to notify the central device 12 that the main central device of the first high-level network is the central device 11, and request the central device 12 to send the network information of the second secondary network to the main central device.
  • Table 5 shows the network information of the second secondary network.
  • the second secondary network includes two devices, whose device identifiers are U12 and U14 respectively.
  • the device type corresponding to the device identification U12 is the central device
  • the device type corresponding to the device identification U14 is the slave device
  • a communication connection is established between the device identification U12 and the device identification U14.
  • the device identification of the central device 12 is U12
  • the device identification of the slave device 14 is U14
  • the difference between the central device 12 and the slave device 14 is A communication connection is established between them.
  • the central device 12 can also send an information acquisition request to the central device 11, requesting the central device 11 to send the network information of the first secondary network to the central device 12. Applications are not limited here.
  • the central device 12 sends the network information of the second secondary network where the central device 12 is located to the central device 11.
  • the secondary central device After receiving and responding to the information acquisition request, the secondary central device sends the network information of the secondary network where the central device is located to the main central device. That is, the central device 12 can send to the central device 11 the network information of the second secondary network where the central device 12 is located.
  • Internet Information For the network information of the second secondary network, please refer to the relevant description in Table 5 in the above step S505, which will not be described again here.
  • S507 The central device 11 saves the network information of the second secondary network.
  • the central device 11 may save the network information of the second secondary network in the network information of the first high-level network.
  • Table 6 shows network information of a first high-level network.
  • the first advanced network includes four devices, whose device identifiers are U11, U12, U13, and U14 respectively.
  • the devices with device identifiers U11 and U13 belong to the first secondary network
  • the devices with device identifiers U12 and U14 belong to the second secondary network.
  • the device type corresponding to the device identification U11 is the main central device
  • the device type corresponding to the device identification U12 is the secondary central device
  • the device type corresponding to the equipment identification U13 and U14 is the slave device.
  • the device with the device ID U11 has communication connections with the devices with the device IDs U12 and U13 respectively
  • the device with the device ID U12 has communication connections with the devices with the device IDs U11 and U14 respectively.
  • the first high-level network includes a first secondary network and a second secondary network.
  • the first secondary network includes a central device 11 and a slave device 13.
  • the device identifier of the central device 11 is U11, and the device identifier of the slave device 13 is U13.
  • a communication connection is established between the central device 11 and the slave device 13.
  • the second secondary network includes a central device 12 and a slave device 14.
  • the device identifier of the central device 12 is U12, and the device identifier of the slave device 14 is U14.
  • a communication connection is established between the central device 12 and the slave device 14.
  • a communication connection is established between the central device 11 and the central device 12, and the central device 11 is the main central device and the central device 12 is the secondary central device.
  • multiple secondary networks can be connected to form a high-level network.
  • the secondary network composed of the tablet computer 21 and the display can form a high-level network with other secondary networks based on the method shown in Figure 5A.
  • the secondary network composed of the car 31 and the mobile phone 32 can also form an advanced network with other secondary networks based on the method shown in Figure 5A above, etc., this application again No restrictions.
  • the main central device of the high-level network is selected from the central devices of the secondary network, rather than from all the devices of the high-level network, the selection efficiency of the central device is improved, and the efficiency of the network is also improved.
  • the slave device using the structure of the above-mentioned advanced network, the slave device only needs to pass through at most one relay device to communicate with the central device, that is, the communication in the advanced network has lower latency.
  • Figure 5B shows a schematic structural diagram of a high-level network that is merged into multiple secondary networks.
  • the high-level network 30 may include a secondary network A0, a secondary network B0 and a secondary network C0.
  • a secondary network A0 For the specific content of the above three secondary networks, please refer to the relevant descriptions in the embodiment shown in Figure 4B. This application will not go into details here.
  • the above three secondary networks can be combined into a high-level network using the method shown in Figure 5A.
  • the central device A can send a network connection request to surrounding electronic devices (for example, slave device E, slave device N, slave device F, central device B, etc.).
  • slave device E can send the device type of slave device E to central device A, which is used to inform central device A that the device type of slave device E is a slave device.
  • central device B can send the device type of central device B and the hardware configuration of central device B to central device A.
  • central device A determines that central device B is the central device, it can establish a communication connection with central device B to form an advanced network.
  • central device A can determine that the main central device of the advanced network is central device B based on the hardware configuration of central device A and the hardware configuration of central device B.
  • the central device C can send network connection requests to surrounding electronic devices.
  • central device B can send the device type of central device B to central device C, using Inform central device C and central device B to be the main central device.
  • central device C determines to establish a communication connection with central device B, and connects secondary network C0 to the high-level network with central device B as the central device. In this way, the above-mentioned high-level network composed of the secondary network A0 and the secondary network B0 can establish a connection with the secondary network C0 to form a larger high-level network 30.
  • the slave devices connected to the central device in each secondary network will not change.
  • the center device B as the main center device of the advanced network 30, can save the network information of the advanced network 30.
  • Table 7 shows network information of the advanced network 30 .
  • the advanced network 30 includes fourteen devices, whose device identifiers are A, B, C, D, E, F, G, H, I, J, K, L, M and N respectively.
  • the devices with device identifiers A, D, L, and M belong to the secondary network A0
  • the devices with device identifiers B, E, F, G, and N belong to the secondary network B0
  • the device identifiers are C, H
  • the devices of I, J and K belong to the secondary network C0.
  • the equipment type corresponding to the equipment with equipment identification B is the main central equipment
  • the equipment type corresponding to the equipment with equipment identifications A and C is secondary central equipment
  • the equipment identifications are D, E, F, G, H, I, J respectively.
  • K, L, M and N devices correspond to device types as slave devices.
  • the device with the device ID A has established communication connections with the devices with the device IDs B, D, L, and M respectively.
  • the device with the device ID B has communication connections with the devices with the device IDs A, C, E, F, G, and N respectively. Communication connections are established between devices, and communication connections are established between the device with the device identifier C and the devices with the device identifiers B, H, I, J, and K respectively.
  • the high-level network 30 includes a secondary network A0, a secondary network B0 and a secondary network C0.
  • a secondary network A0 For the specific content of the secondary network A0, the secondary network B0 and the secondary network C0, reference can be made to the relevant content in the embodiment shown in FIG. 4B and will not be described again here.
  • central device B has established communication connections with central device A and central device C respectively, and central device B is the main central device, and central device A and central device C are secondary central devices.
  • central device B as the main central device
  • central device A and central device C as sub-central devices
  • the remaining slave devices as slave devices.
  • Figure 6A shows a schematic flow chart of re-networking after the main central device goes offline.
  • the re-networking process after the main central device goes offline can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks.
  • the second high-level network includes a central device 11, a central device 12, a central device 15, a slave device 13 and a slave device 14.
  • the central device 11 and the slave device 13 form a network and the first secondary network is composed of the central device 12 and the slave device 14.
  • the central device 15 and one or more other slave devices form a third secondary network.
  • the central device 11 is the main central device, and the central device 11 establishes communication connections with the central device 15 and the central device 12 respectively.
  • the main central device i.e. central device 11
  • the process of re-networking of the remaining central devices and slave devices may include the following steps:
  • the central device 11 sends a first offline notification to the central device 15, which is used to notify the central device 15 that the central device 11 is offline.
  • a first offline notification may be sent to the central device 15 that is connected to the central device 11.
  • the first offline notification is used to notify the central device 15 that the central device 11 is offline.
  • the central device 11 can also send the first offline notification to the central device 12, or send the first offline notification to the central device 15 and the central device 12 respectively, which is not limited in this application.
  • the central device 11 when the central device 11 goes offline unexpectedly (for example, due to a power outage, malfunction, etc.), other central devices (the central device 12 and the central device 15) that were originally connected to the central device 11 can be configured based on the connection with the central device 11.
  • the communication connection determines that the central device 11 is offline.
  • the central device 12 may determine that the central device 11 is offline based on the disconnected communication connection between the central device 12 and the central device 11
  • the central device 15 may determine that the central device 11 is offline based on the disconnected communication connection between the central device 15 and the central device 11 .
  • the central device 15 establishes a communication connection with the central device 12.
  • the central device 15 determines the central device 15 as the new main central device.
  • the central device 15 and the central device 12 can establish a communication connection, form the first secondary network and the second secondary network into a new high-level network (i.e., a new high-level network), and based on the central
  • the hardware configuration of the device 15 and the hardware configuration of the central device 12 determine that the central device 15 is the main central device of the new advanced network.
  • steps S602 and S603 are steps executed by the central device 15 in response to the first offline notification. There is no time limit for these two steps. They can be executed at the same time, or one of them can be executed first, and then Execute another one.
  • the central device 15 in response to the first offline notification, when it is determined that no information indicating that the central device 11 is back online is received within a first time threshold (for example, 5 seconds, 15 seconds, etc.), the central device 15 can establish a communication connection with the central device 12, form a new advanced network and re-determine the new main central device. When it is determined that the central device 15 receives the information that the central device 11 comes back online within the first time threshold, the central device 15 can re-establish a communication connection with the central device 11 . In this way, when the central device 11 as the main central device goes offline for a short period of time and comes online again, the steps of establishing a new advanced network can be temporarily omitted to save power consumption.
  • a first time threshold for example, 5 seconds, 15 seconds, etc.
  • the central device 15 if the central device 15 receives information that the central device 11 is back online before the central device 15 establishes a communication connection with the central device 12, the central device 15 gives up establishing a communication connection with the central device 12 and communicates with the central device 12. The central device 11 re-establishes the communication connection.
  • the central device 15 can save the network information of the newly formed advanced network.
  • the network information of the newly formed advanced network please refer to the above. The relevant content in the embodiment shown in FIG. 5A will not be described again in this application.
  • the new advanced network can be reorganized into the original advanced network, that is, the advanced network before the main central device went offline.
  • the specific process of reorganizing the new high-level network into a second high-level network after the central device 11 comes back online may include following steps:
  • the central device 11 sends the first online notification to the central device 15 and the central device 12 respectively.
  • the central device 11 can determine the devices that had communication connections with the central device 11 before the central device 11 went offline based on the network information of the advanced network stored before the central device 11 went offline, and send notifications to these devices (such as the central device 15 , central device 12, etc.) to send the first online notification.
  • the first online notification may include online information, and the online information may be used to notify the device that receives the first online notification that the central device is back online, and request the device to re-establish a communication connection with the central device 11 .
  • the first online notification may also include the connection relationship of the central device 15 or the central device 12 in the second high-level network.
  • the first online notification sent by the central device 11 to the central device 15 may include online information and the connection relationship of the central device 15 in the second high-level network.
  • the connection relationship of the central device 15 in the second high-level network may include: central device 15 has established a communication connection with the central device 11, and the central device 15 has established a communication connection with the slave device 13.
  • the connection relationship between the central device 15 or the central device 12 in the second high-level network can be obtained from the network information of the second high-level network saved by the central device 11 .
  • the connection relationship of the central device 15 in the second high-level network can be used to instruct the central device 15 to disconnect communication connections other than the above-mentioned connection relationship of the central device 15 in the second high-level network.
  • the central device 15 and the central device 12 respectively re-establish communication connections with the central device 11 , and the central device 15 disconnects the communication connection with the central device 12 .
  • the central device 15 can also send agent service data to the central device 11.
  • the agent service data includes the central device 15 during the period when the central device 11 is offline.
  • the central device 11 can receive and save these agency business data.
  • the central device 11 is also connected to a slave device, the slave device originally connected to the central device 11 receives and responds to the first online notification and can re-establish communication with the central device 11 connect.
  • the slave device if the slave device has established communication connections with other central devices (such as central device 12) while the central device 11 is offline, the slave device can disconnect after receiving the first online notification sent by the central device 11. open and middle The communication connection of the central device 12 and the communication connection with the central device 11 are re-established.
  • the new advanced network can be reorganized into the original advanced network based on the network information of the original advanced network.
  • the specific process of data backup may include the following steps:
  • the central device 11 obtains the device detection type and device power consumption type of all central devices and slave devices in the advanced network.
  • Device detection types may include active detection devices (rich devices) and passive detection devices (poor devices).
  • rich devices are devices that have the ability to actively detect other devices
  • poor devices are devices that do not have the ability to actively detect other devices and can only be detected by rich devices.
  • the central devices are all rich devices, and the slave devices can be rich devices or poor devices.
  • the power consumption types of equipment can include long-term power equipment and weak power equipment.
  • long-term power equipment is an electronic device that is plugged in and has a continuous and stable power supply
  • weak-current equipment is an electronic device that uses the battery in the electronic device as a power source. Therefore, compared with long-duration equipment, weak-current equipment needs to consider power consumption issues more.
  • the central device 11 can obtain the device detection type and device power consumption type of each device in the high-level network through the communication connection in the second high-level network.
  • the central device 11 can obtain the device detection type and device power consumption type of the central device 15 through the communication connection between the central device 11 and the central device 15 .
  • the central device 15 can also be used as a relay, and the device detection type and device power consumption type of the slave device 13 can be obtained through the communication connection between the central device 15 and the slave device 13 and the communication connection between the central device 11 and the central device 15 .
  • the central device in the secondary network can actively obtain the device detection type and device power consumption type of each device in the secondary network, and combine the device detection types and device power consumption types of all devices in the secondary network.
  • the equipment power consumption type is sent to the central device 11. This application does not specifically limit the specific acquisition steps of the equipment detection type and equipment power consumption type.
  • the central device 11 determines the backup device based on the device detection type and device power consumption type.
  • the central device 11 may determine one or more backup devices based on the device detection type and device power consumption type of each device in the second advanced network.
  • an electronic device with a detection type of rich device and a power consumption type of long-term power device can be used as a backup device.
  • electronic equipment with detection type rich equipment and power consumption type weak current equipment can also be used as backup equipment.
  • the user can also set the backup device by himself and determine the priority of the backup device.
  • the selection priority of backup devices from high to low can be set to smart TVs, routers, and speakers (VUI).
  • the central device 11 sends the backup data to the backup device.
  • the central device 11 can send backup data to the backup device.
  • the backup data may include network information of the second high-level network.
  • the backup data may also include service data of the second high-level network.
  • the service data is data generated by measurement services, distributed collaboration services, communication services and other services performed by devices in the advanced network through the advanced network. For specific content, please refer to the relevant description in the embodiment shown in Figure 8 below. This application No details will be given here.
  • the backup device saves the backup data.
  • the advanced network can read the backup when the business data stored in the main center device or the network information of the advanced network cannot be read, is damaged, or the main center device unexpectedly goes offline.
  • Backup data in the device and ensure the normal operation of the advanced network based on the backup data (for example, perform measurement services, communication services, etc. that should be performed before unexpected situations occur).
  • the central device A and the central device C receive the first offline notification sent by the central device B.
  • the central device A and central device C can use the method shown in Figure 5A to form a secondary network A0 and a secondary network C0 as shown in Figure 6C, with central device A as the main central device, central device C as the secondary central device, and multiple Each slave device is an advanced network 40 of slave devices.
  • the advanced network 40 may include a central device A, a central device C, and a plurality of slave devices.
  • the plurality of slave devices include all slave devices in the secondary network A0 and the secondary network C0.
  • multiple slave devices in the high-level network 40 may also include one or more slave devices in the secondary network B0, that is, the central device A or the central device C may temporarily take over one or more of the secondary networks B0.
  • Multiple slave devices are Among them, the secondary network A0, the secondary network B0 and the secondary network C0.
  • the specific content of the above two secondary networks please refer to the relevant content in the embodiment shown in FIG. 4B.
  • the advanced network 40 can reorganize the advanced network 40 into the advanced network 30 shown in FIG. 5B according to the method shown in FIG. 6B.
  • Figure 7A shows a schematic diagram of the reorganization process of the advanced network when one or more sub-center devices of the advanced network are offline.
  • the re-networking process after the secondary central device goes offline can be applied to any high-level network.
  • the high-level network can be composed of two or more secondary networks. The following takes the first advanced network in the above embodiment as an example to describe the process of re-networking after the secondary central device (central device 12) goes offline.
  • the reorganization process of the first high-level network may include the following steps:
  • the central device 12 sends a second offline notification to the central device 11, which is used to notify the central device 11 that the central device 12 is offline.
  • the central device 12 when the central device 12 is offline, it may send a second offline notification to the main central device (the central device 11) to notify the central device 11 that the central device 12 is offline.
  • the central device 11 when the central device 12 goes offline unexpectedly, for example, when the central device 12 suddenly loses power, fails, etc., the central device 11 (main central device) can be based on the connection between the central device 11 and the central device 12 The situation determines whether the central device 12 is offline, that is, when the communication connection between the central device 11 and the central device 12 is disconnected, the central device 11 determines that the central device 12 is offline.
  • the central device 11 determines the isolated device based on the network information of the first high-level network.
  • the central device 11 may determine one or more isolated devices based on its stored network information of the first high-level network.
  • the one or more isolated devices refer to devices that have a connection relationship with the central device 12 in the first advanced network, such as the slave device 14 .
  • the central device 11 sends a second networking request to the isolated device, requesting the isolated device to establish a communication connection with the central device 11.
  • the central device may send a second networking request to the slave device 14 to request the slave device 14 to establish a communication connection with the central device 11 .
  • the central device 11 establishes a communication connection with the slave device 14.
  • the slave device 14 can establish a communication connection with the central device 11 to form the first high-level network into a new high-level network, which may also be called a third high-level network in this application.
  • the central device 11 may send second networking requests to the multiple isolated devices respectively. After receiving the second networking request, the multiple isolated devices can respectively establish communication connections with the central device 11 . Furthermore, in other embodiments, when the central device 11 determines that the number of connected electronic devices is greater than the maximum number of connectable devices of the central device 11 , the central device 11 stops establishing communication connections with other electronic devices.
  • the central device 11 can save the network information of the new high-level network, that is, the network information of the third high-level network.
  • Table 8 shows the network information of the third high-level network.
  • the third-level network includes three devices, whose device identifiers are U11, U13, and U14 respectively.
  • the devices with device identifiers U11 and U13 belong to the first secondary network
  • the devices with device identifiers U14 belong to the second secondary network.
  • the device type corresponding to the device with the device identifier U11 is the master central device
  • the device type corresponding to the devices with the device identifiers U13 and U14 is the slave device. Communication connections are established between the device with the device identifier U11 and the devices with the device identifiers U13 and U14 respectively.
  • the first high-level network includes a first secondary network and a second secondary network.
  • the first secondary network includes a central device 11 and a slave device 13.
  • the device identifier of the central device 11 is U11
  • the device identifier of the slave device 13 is U13.
  • a communication connection is established between the central device 11 and the slave device 13.
  • the second secondary network includes the slave device 14, and the central device of the second secondary network is in an abnormal state such as offline.
  • the device identifier of the slave device 14 is U14.
  • a communication connection is established between the central device 11 and the slave device 14 .
  • the slave device originally connected to the secondary central device can establish a communication connection with the main central device, and the main central device takes over to maintain its normal operation in the advanced network.
  • the new high-level network can be reorganized into the original high-level network.
  • the specific process of reorganizing the high-level network may include following steps:
  • the central device 12 sends the second online notification to the central device 11 and the slave device 14 respectively.
  • the central device 12 can determine, based on the network information of the second secondary network stored by the central device 12, the device that has established a communication connection with the central device 12 before the central device 12 goes offline (i.e., the central device 11 and the slave device 14), and sends a second online notification to the central device 11 and the slave device 14 respectively.
  • the second online notification can be used to notify the central device 11 or the slave device 14 and the central device 12 to go online again.
  • S706 The central device 11 disconnects the communication connection from the slave device 14.
  • the slave device 14 re-establishes a communication connection with the central device 12.
  • the central device 11 disconnects the communication connection with the slave device 14 , the central device 11 re-establishes the communication connection with the central device 12 , and the slave device 14 re-establishes the communication connection with the central device 12 .
  • the central device 11 may delete the network information of the third high-level network (shown in Table 8) that it saves.
  • the new high-level network can be reorganized into the original high-level network. In this way, it is possible to avoid having too many slave devices connected to the main central device, thus reducing the amount of tasks that the central device needs to process and improving the business execution efficiency of advanced networks.
  • the high-level network 50 includes a central device B and a plurality of slave devices.
  • the plurality of slave devices may include slave devices in the secondary network B0 (for example, slave device E, slave device F, slave device G, and slave device B0).
  • Device N may also include one or more slave devices (for example, slave device D, slave device H, slave device L, and slave device M, etc.) in the secondary network A0 or the secondary network C0.
  • the central device B may receive a second offline notification sent by the central device A.
  • the central device B may take over the central device A connection according to the method shown in FIG. 6A
  • One or more slave devices for example, slave device D, slave device L, slave device M, etc.
  • central device B can receive a second offline notification sent by central device C.
  • central device B can take over one or more slave devices connected to central device C ( For example, the slave device H) establishes a communication connection with the one or more slave devices respectively.
  • the advanced network 50 can reorganize the advanced network 50 into the advanced network shown in Figure 5B according to the method shown in Figure 7B. 30.
  • the following describes the method and process of performing measurement services based on advanced networks.
  • Figure 8 shows a schematic flow chart for performing measurement services based on an advanced network.
  • the measurement service execution process can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks.
  • the following takes the first advanced network as an example to describe the specific process of the advanced network performing measurement services.
  • the process of performing measurement services based on advanced networks may include the following steps:
  • the slave device 14 determines the first measurement service.
  • the first measurement service may include measurement content and measurement objects.
  • the measurement content may include any one or more of the following: ranging, angle measurement, direction finding, orientation measurement, detection of internal and external relationships between multiple electronic devices (for example, whether the slave device 14 is inside the slave device 13, etc. etc.), measure the existence relationship (for example, within the distance range of the first threshold from the slave device 14, whether there is the slave device 13, etc.).
  • the measurement object may be any one or more electronic devices in the first high-level network. For example, when the measurement content is ranging and the measurement object is the slave device 13 , the slave device 14 determines that the first measurement service is to measure the distance between the slave device 14 and the slave device 13 .
  • the slave device 14 may receive and respond to a user's operation on the slave device 14 to determine the first measurement.
  • Volume business For example, in the multi-screen collaboration scenario shown in FIG. 2A , the display 22 may receive and respond to the user's operation of moving the window on the display 22 and determine that the first measurement service is to measure the orientation of the tablet 21 relative to the display 22 .
  • the slave device 14 may also determine the first measurement information spontaneously. For example, an application program on the slave device 14 may spontaneously request to perform a first measurement service based on the needs of the application program running, and so on.
  • the slave device 14 may also determine the measurement method of the first measurement service.
  • the measurement method can be any one or more of the following: Bluetooth, ultrasonic, WLAN, IMU, UWB, etc.
  • the measurement method can be determined based on the measurement content. For example, when the measurement content is angle measurement, the measurement method is IMU.
  • the measurement method can also be determined based on the measurement device on the slave device 14. For example, when the slave device 14 only has a Bluetooth module, the measurement method can be Bluetooth. In other embodiments, the measurement method may also be determined by the central device 12 or the central device 11 .
  • slave devices or central devices in the first high-level network can also determine the first measurement service.
  • the determination of the first measurement service by the slave device 14 is used as an example. This application will not do this here. limited.
  • the slave device 14 sends a first measurement request to the central device 11 through the central device 12, to request the central device 11 to allow the slave device 14 to perform the first measurement service.
  • the slave device 14 may send a first measurement request to the central device 11 (main central device) based on the first advanced network using the central device 12 as a relay, requesting the central device 11 to allow the slave device 14 to perform the first measurement service.
  • the first measurement request may include the first measurement service and the device identification of the slave device 14 .
  • the device identification of the slave device 14 may be used to identify the slave device 14, and the device identification may include any of the following: a device name, a media access control MAC address, and an Internet Protocol IP address.
  • the first measurement request may also include a measurement device from the device 14, and the measurement device may include any one or more of the following: a Bluetooth module, an ultrasonic module, an IMU device, a UWB device, a WLAN module, and so on.
  • the measurement device of the slave device 14 may be used to determine which measurement method the slave device 14 uses to perform the first measurement service.
  • the measurement devices of the slave devices 14 may be stored in the central device 12 (sub-master central device) and/or the central device 11 (primary central device). Therefore, after the slave device 14 determines the first measurement service, there is no need to send the measurement device of the slave device 14 to the central device 12 .
  • the central device 11 determines whether to allow the first measurement request based on the service data of the first high-level network.
  • the central device 11 may determine whether to allow the first measurement request based on the service data of the first advanced network.
  • the service data of the first high-level network may include measurement data of the first high-level network and/or to-be-executed services of the first high-level network.
  • the measurement data of the first high-level network includes data generated by all measurement services that have been performed in the first high-level network, and the services to be performed in the first high-level network include all measurement services to be performed in the first high-level network.
  • Table 9 shows the measurement data of a first high-level network
  • Table 10 shows the services to be performed on a first high-level network.
  • the measurement data of the first advanced network may include measurement services and measurement results.
  • the measurement service is a measurement service that has been performed in the first advanced network
  • the measurement result is a measurement result corresponding to the above-mentioned measurement service.
  • the measurement services may include: the distance between the slave device 14 and the central device 11 , the azimuth relationship between the slave device 13 and the central device 12 , the internal and external relationship between the central device 12 and the central device 11 , the distance between the slave device 13 and the central device 12 , the distance between the slave device 13 and the central device 12 , the distance between the slave device 13 and the central device 12 , the distance between the slave device 13 and the central device 12 The directional distance from the central device 11.
  • the corresponding measurement results of these measurement services are: 3 meters, the slave device 13 is on the right side of the central device 12, the central device 12 is outside the central device 11, 5 meters, the slave device 13 is on 2 meters to the left of central equipment 11.
  • Table 9 in the first advanced network, the distance between the slave device 14 and the central device 11 is 3 meters, the slave device 13 is on the right side of the central device 12, the central device 12 is outside the central device 11, and the slave device 13 is The distance between the central device 12 and the slave device 13 is 2 meters to the left of the central device 11 .
  • the measurement data of the first high-level network shown in Table 9 is just an example, and may also include more, less, or different measurement services and measurement results, which is not limited in this application.
  • the measurement data of the first advanced network may include measurement services and measurement results.
  • the measurement service is a measurement service for which the corresponding measurement request has been permitted in the first advanced network but the measurement result has not yet been received.
  • the execution status may include: executing and not executing.
  • the measurement services may include: the directional distance between the slave device 13 and the central device 11, and the azimuth relationship between the central device 12 and the slave device 14.
  • the processing results corresponding to these two measurement services are: executing and not executing respectively. According to Table 10, it can be seen that in the first advanced network, the central device 11 has approved the measurement request for the measurement service "Measure the directional distance between the slave device 13 and the central device 11", and the central device 11 has performed the measurement request through the first advanced network.
  • the device of the measurement service has sent a measurement license, but has not yet received the measurement results of the measurement service.
  • the central device 11 has approved the measurement request for the measurement service "measuring the orientation relationship between the central device 12 and the slave device 14", but has not yet sent the measurement permission to the device performing the measurement service through the first advanced network.
  • to-be-executed services of the first high-level network shown in Table 10 are just an example, and may also include more, less, or different measurement services and execution states, which are not limited in this application.
  • the central device 11 when the central device 11 can determine the measurement result of the first measurement service based on the service data of the first high-level network, the central device 11 determines to allow the slave device 14 to perform the first measurement service. When the central device 11 cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines that the slave device 14 is not allowed to perform the first measurement service.
  • the central device 11 can determine the measurement result of the first measurement service based on the service data of the first advanced network.
  • Scenario 1 The measurement service in the service data of the first advanced network includes the first measurement service.
  • the central device 11 can based on the measurement service corresponding to the measurement service.
  • the measurement result determines the measurement result of the first measurement service. For example, when the first measurement service is to measure the distance between the slave device 14 and the central device 11, the central device 11 can determine based on the service data of the first advanced network that the measurement result of the first measurement service is: the slave device 14 and the central device 11 The distance is 3 meters.
  • the central device 11 may determine the measurement results of the first measurement service based on the measurement results corresponding to the measurement services. For example, when the first measurement service is to measure the directional distance between the slave device 13 and the central device 11, the central device 11 may complete the execution of the currently executing measurement service "Measure the directional distance between the slave device 13 and the central device 11", and After receiving the measurement result of the measurement service, the central device 11 determines the measurement result of the first measurement service. That is, the central device 11 can determine the measurement result of the first measurement service based on the measurement result reported to the central device 11 after the service to be executed is completed.
  • Scenario 2 The measurement results of the first measurement service can be deduced based on the measurement results corresponding to one or more measurement services in the service data of the first advanced network.
  • the first measurement service is "Measuring the directional distance between the slave device 13 and the central device 12"
  • the slave device 13 is on the right side of the central device 12
  • the distance between the slave device 13 and the central device 12 is 5 meters.
  • the measurement result of the first measurement service is "the slave device 13 is 5 meters to the right of the central device 12".
  • the first measurement service is "Measuring the distance between the central device 11 and the central device 12"
  • the slave device 13 is on the right side of the central device 12, and The distance between the slave device 13 and the central device 12 is 5 meters, and the slave device 13 is 2 meters to the left of the central device 11 .
  • the measurement result of the first measurement service is "the distance between the slave device 13 and the central device 12 is 7 meters”.
  • the measurement service being executed includes “Measuring the slave device 13" 13 and the directional distance from the central device 11".
  • the distance between the slave device 13 and the central device 11 can be determined based on the directional distance between the slave device 13 and the central device 11 . That is, after the measurement service being executed is completed and the measurement results are reported to the central device 11 , the central device 11 can determine the measurement results of the first measurement service.
  • the central device 11 has permitted the measurement service "Measurement Center” Measurement request corresponding to the "azimuth relationship between device 12 and slave device 14". Furthermore, based on the orientation relationship between the central device 12 and the slave device 14, the orientation relationship between the measurement slave device 14 and the central device 12 can be determined. That is, after the measurement service is completed and the measurement results are reported to the central device 11, the central device 11 can determine the measurement results of the first measurement service.
  • the first measurement service is angle measurement, measurement of internal and external relations, measurement of orientation, etc., it can also be determined in the same or similar manner as in the above embodiment whether it can be based on the first high-level measurement.
  • the service data of the network determines the measurement result of the first measurement service.
  • the central device 11 can determine that the slave device 14 is not allowed to perform the first measurement service, thereby reducing the execution of unnecessary services, thereby reducing the cost of the first measurement service. power consumption.
  • the measurement data in the network information of the first high-level network may also include a storage time.
  • Table 11 shows the measurement data of another first high-level network.
  • the measurement data of the first advanced network may include measurement services, measurement results and storage time.
  • the measurement service may be a measurement service that has been performed in the first advanced network.
  • the measurement result is the measurement result corresponding to the above-mentioned measurement service, and the storage time can be used to indicate the time for the central device 11 to save the measurement result corresponding to the measurement service.
  • the storage time of the data "the distance between the slave device 14 and the central device 11 is 3 meters" is 10:00, and "the distance between the slave device 14 and the central device 11 is 3 meters".
  • the central device 11 determines that the measurement result of the first measurement service can be determined based on one or more service data in the first advanced network's service data
  • the central device 11 also needs to determine the measurement result of the first measurement service based on the one or more service data.
  • the storage time determines whether the one or more business data is valid.
  • the central device 11 determines that the item or items of service data are If the service data is valid, the central device 11 determines that the measurement result of the first measurement service can be determined based on the service data of the first advanced network.
  • the central device 11 determines that the one or more If the service data is invalid, the central device 11 cannot determine the measurement result of the first measurement service based on the service data of the first advanced network.
  • the device in the advanced network when the device in the advanced network is in a mobile state, it can be determined based on the storage time of the service data of the advanced network whether the service data is valid, so as to avoid invalid service data affecting the execution of the measurement service.
  • the main central device (central device 11) and the secondary main central device (central device 12) in the first advanced network can periodically detect whether the locations of the central devices and slave devices connected to them have changed. When it is discovered that the location of a device has changed, the central device 11 promptly deletes the service data related to the device in the first advanced network from the network information of the first advanced network.
  • invalid service data can be deleted in time to avoid invalid service data affecting the execution of the measurement service.
  • the central device 11 determines to allow the first measurement request. At this time, the central device 11 may perform the following steps S804 to S807.
  • the central device 11 When the central device 11 can determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines to reject the first measurement request. At this time, the central device 11 executes the following step S808.
  • the central device 11 may determine The first measurement request is allowed. Otherwise, the central device 11 can reject the first measurement request and send a rejection notification to the slave device 14 through the first advanced network, notifying the slave device 14 that the execution of the first measurement service is not allowed.
  • the central device 11 when the central device 11 determines that there is an ongoing measurement service using the ultrasonic measurement method in the first advanced network, the central device 11 may, after determining that the ongoing measurement service has ended, permit the first A measurement request. In this way, interference to the measurement results caused by multiple devices emitting ultrasonic waves at the same time can be avoided.
  • the central device 11 sends the first measurement permission to the slave device 14 through the central device 12, which is used to notify the slave device 14 to allow the slave device 14 to perform the first measurement service.
  • the central device 11 may send the first measurement permission to the slave device 14 through the central device 12 . That is, the central device 11 may first send the first measurement permission to the central device 12, and the central device 12 receives and sends the first measurement permission to the slave device 14.
  • the first measurement permission may include permission information and a device identification of the measurement object.
  • the measurement object as the slave device 13 as an example (in the embodiments of this application, the measurement object is the slave device 13 as an example)
  • the first measurement permission includes license information and the device identification of the slave device 13 .
  • the permission information is used to notify the slave device 14 that the first measurement service can be performed.
  • the device identification of the slave device 13 is used to identify the slave device 13 during subsequent execution of the first measurement service.
  • the first measurement permission may also include a measurement mode.
  • the central device 11 may be based on the measurement device of the slave device 14 (the initiator of the first measurement request) and the slave device 13 (the measurement object of the first measurement request).
  • the measurement device determines the measurement method of the first measurement service. For example, when the measurement device of the slave device 14 and the measurement device of the slave device 13 both include Bluetooth modules, the central device 11 may determine that the measurement mode of the first measurement service is Bluetooth. In some embodiments, the central device 11 may also determine the measurement method based on the first measurement service.
  • the central device 11 determines that the measurement method of the first measurement service is measurement using an IMU device. It should be noted that, as the main central device of the first high-level network, the central device 11 can obtain the measurement devices of the slave device 14 and the measurement devices of the slave device 13 through the first high-level network.
  • the central device 11 may send a first measurement notification to the measurement object (for example, the slave device 13), notifying the slave device 13 to be The measurement object of the first measurement business.
  • the first measurement notification may also include the measurement method of the first measurement service.
  • the slave device 13 receives and responds to the first measurement notification and may perform auxiliary operations based on the measurement method to cooperate with the slave device 14 in performing the first measurement service.
  • the slave device 13 receives and responds to the first measurement notification, can turn on Bluetooth of the slave device 13, and transmit a Bluetooth signal.
  • the slave device 13 when the measurement mode of the first measurement service is ultrasonic wave, the slave device 13 receives and responds to the first measurement notification and determines a specific waveform as the device identifier of the slave device 13 for use after receiving the ultrasonic wave emitted by the slave device 14 , transmitting this specific waveform so that the echo reflected from the device 13 is recognized by the slave device 14, and so on.
  • S805 The slave device 14 performs the first measurement service.
  • the slave device 14 receives and responds to the first measurement permission and performs the first measurement service.
  • the slave device 14 receives the first measurement After the quantity is allowed, the first measurement service can be executed based on the measurement mode and the device identification of the slave device 13 .
  • the measurement method may be determined by the device 14 (refer to step S801), or may be obtained from the first measurement permission (refer to step S807).
  • the slave device 14 may receive and respond to the first measurement permission, determine the strength of the Bluetooth signal transmitted by the slave device 13 received by the slave device 14 based on the device identification of the slave device 13, and determine the strength of the Bluetooth signal transmitted by the slave device 13 based on the slave device 14.
  • the strength of the Bluetooth signal transmitted from device 13 received by device 14 determines the distance between slave device 14 and slave device 13 .
  • the specific determination method can refer to the following formula (2):
  • d represents the distance to be measured (in meters)
  • RSSI represents the received Bluetooth signal strength
  • A represents the Bluetooth signal strength when the transmitter and receiver are one meter apart
  • n represents the environmental attenuation factor.
  • the distance between the slave device 14 and the slave device 13 can also be determined based on the strength of the signal transmitted from the slave device 13 received by the slave device 14 .
  • the measurement mode is ultrasonic waves
  • the slave device 14 can emit ultrasonic waves, receive echoes reflected from the slave device 13 , and determine the distance between the slave device 14 and the slave device 13 based on the time of transmitting and receiving the echoes.
  • the slave device 14 can also perform the first measurement service based on an IMU device, a UWB device, or an ultrasonic module, and The measurement result of the first measurement service is determined through algorithms such as angle measurement, direction finding, and ranging. This application will not go into details here.
  • the slave device 14 sends the measurement result of the first measurement service to the central device 11 through the central device 12.
  • the slave device 14 may send the measurement result of the first measurement service to the central device 11 through the first advanced network, that is, the slave device 14 sends the measurement result of the first measurement service to the central device 12, and the central device 12 Receive and send the measurement result of the first measurement service to the central device 11 .
  • the measurement result of the first measurement service may be "the distance between the slave device 14 and the central device 13 is 5 meters.”
  • the measurement result of the first measurement service may be "tablet 21 is on the left side of display 22", or “tablet 21 is above display 22" ,etc.
  • the measurement result of the first measurement service may be "the mobile phone 32 is inside the car 31" or "the mobile phone 32 is outside the car 31", and so on.
  • the central device 12 may, after receiving the measurement result of the first measurement service, transfer the first measurement result to the central device 11.
  • the measurement results of the service are stored in the service data of the secondary network.
  • the service data of the second secondary network may include measurement data of the second secondary network and/or to-be-executed services of the second secondary network, where the measurement data of the second secondary network includes all completed services in the second secondary network.
  • the data generated by the executed measurement service, the to-be-executed services of the second secondary network include all the to-be-executed measurement services in the second secondary network.
  • the specific content of the service data of the second secondary network can be compared with the content of the service data of the first high-level network, and will not be described again here.
  • the central device 11 receives the measurement result of the first measurement service and saves the measurement result of the first measurement service to the first highest level. level network business data.
  • the center The device 11 updates the service data of the first advanced network and replaces the previous measurement result of the first measurement service with the latest measurement result of the first measurement service.
  • the business data of the advanced network stored in the main center device can be updated in time to avoid affecting the execution of the measurement service due to the failure of the service data stored in the main center device.
  • the central device 11 sends the measurement result of the first measurement service to the slave device 14 through the central device 12.
  • the central device 11 determines to send the measurement result of the first measurement service to the slave device 14 using the central device 12 as a relay.
  • the measurement result of the first measurement service may also be used to indicate that the slave device 14 does not perform the first measurement service.
  • measurement services can be performed based on advanced networks.
  • the main center device determines whether to execute the first measurement service, which not only avoids unnecessary measurement services and reduces power consumption, but also avoids conflicts that may occur during the execution of different measurement services, thereby avoiding affecting the measurement results.
  • the secondary central device when the secondary central device receives the first measurement request sent from the slave device and determines based on the first measurement request that the measurement object of the first measurement service belongs to the secondary network where the secondary central device is located , the secondary center device may determine whether to allow the slave device to perform the first measurement service based on the service data of the secondary network. For the specific determination method, reference may be made to the relevant content in the embodiment shown in FIG. 8 , which will not be described again in this application.
  • the slave device After the first measurement service is executed, the slave device may send the measurement result of the first measurement service to the secondary central device, and the secondary central device receives and saves the measurement result of the first measurement service.
  • the secondary center device can also send the measurement results of the first measurement service to the main center device of the advanced network, and the main center device can also receive and save the measurement results of the first measurement service.
  • the secondary central device determines whether the measurement service in the secondary network where it is located needs to be executed, which can greatly reduce the task load of the central device, and the measurement request can receive faster feedback, thereby improving the execution efficiency of the measurement service.
  • the secondary central device determines that the measurement object of the first measurement request it receives is an electronic device in the same secondary network, the secondary central device still needs to A first measurement request is sent to the central device to determine that there is no interference from other measurement services using ultrasonic waves during the execution of the first measurement service.
  • the device that initiates the first measurement service when the device that initiates the first measurement service cannot perform the first measurement service (for example, lacks a corresponding measurement device, etc.), the device that initiates the first measurement service can report to the main center of the advanced network The device sends a first measurement result request, which is used to request the main center device to determine and send the measurement result of the first measurement service to the device. It should be noted that the main center device may determine the measurement result of the first measurement service based on the service data of the advanced network and send the measurement result of the first measurement service to the device.
  • the main center device can determine to add one or more measurement services to the to-be-executed service, based on the one or more measurement services.
  • the measurement results can be deduced from the measurement results of the first measurement service.
  • the main center device may determine the measurement results of the first measurement service based on the measurement results of the one or more measurement services, and send a third measurement result to the device that initiated the first measurement service. 1. Measurement results of measurement services.
  • the backup device in the above embodiment can not only back up the network information of the advanced network, but also information, and can also back up business data of advanced networks.
  • the central device of the advanced network may periodically send the service data of the advanced network and/or the network information of the advanced network to one or more backup devices.
  • the central device of the advanced network determines the backup device, reference can be made to the relevant content in the foregoing embodiments, which will not be described again in this application.
  • the advanced network can read the backup device when the business data stored in the central device or the network information of the advanced network cannot be read, is damaged, or the central device goes offline unexpectedly. backup data, and based on the backup data to ensure the normal operation of the advanced network (for example, performing measurement services, communication services, etc. that should be performed before unexpected situations occur).
  • the advanced networking provided by the embodiment of the present application can also perform other services, such as the multi-screen collaborative service shown in Figure 2A to Figure 2B, the distributed service shown in Figure 2E to Figure 2F Collaborative business and so on.
  • the specific process of executing the above distributed collaboration service may include the following steps:
  • the slave device 14 determines that the cooperating device of the distributed collaborative service is the central device 11.
  • the slave device 14 may determine that the cooperative device of the distributed collaborative service is the central device 11 based on the user's operation on the slave device 14 . It can be understood that the cooperative device being the central device 11 here is only an exemplary illustration, and the slave device 14 can also determine other electronic devices as cooperative devices, which is not limited in this application.
  • the slave device 14 may also determine the cooperating device of the distributed collaboration service based on the electronic devices that have previously established a distributed collaboration relationship with the slave device 14 .
  • the slave device 14 after the slave device 14 determines that the cooperative device is the central device 11, the slave device 14 also needs to determine the orientation relationship between the central device 11 and the slave device 14 (for example, as shown in Figures 2A and 2B Multi-screen collaboration scenario, etc.), or determine the distance between the central device 11 and the slave device 14 (such as the distributed collaboration scenario shown in Figure 2E and Figure 2F, etc.). That is, when the slave device 14 determines that the cooperative device is the central device 11 , it can determine that the first measurement service of the slave device 14 is to measure the orientation relationship or distance between the slave device 14 and the central device 11 . in. For the specific process of executing the first measurement service, reference can be made to the embodiment shown in FIG. 8 , which will not be described again in this application.
  • S902 The slave device 14 sends a distributed collaboration relationship establishment request to the central device 11.
  • the slave device 11 can send a distributed collaboration relationship establishment request to the central device 11 through the first advanced network, using the central device 12 as a relay, for requesting the central device 11 and the slave device 14 Establish distributed collaborative relationships.
  • the slave device 14 receives and responds to the user's first operation on the slave device 14, and sends a first collaboration request to the central device 11 to request the central device 11 to perform a second operation.
  • the slave device 14 may receive and respond to the user's first operation on the slave device 14 and send a first collaboration request to the central device 11 through the first advanced network.
  • the first collaboration request is used to instruct the center.
  • the device 11 performs the second operation.
  • the first operation may be the user's operation of dragging the window on the tablet 21 to the right.
  • the first collaboration request may include window information and the location of the window on the tablet. 21, the first collaboration request may be used to instruct the display 22 to display the portion of the window that is not displayed on the tablet computer 21.
  • the first operation may be the user's click operation on the operation guide 3001 in the document directory displayed on the mobile phone 41 , and the first collaboration request may include information that can be used to instruct the tablet.
  • Computer 42 display operation The text of the guide, etc.
  • the central device 11 may perform a second operation.
  • the first collaboration request may be used to instruct the display 22 to display the part of the window that is not displayed on the tablet computer 21 , and then the second operation may be that the display 22 displays the window on the tablet computer 21 . Parts not shown in Computer 21.
  • the first collaboration request can be used to instruct the tablet computer 42 to display the text content of the operation guide, and the second operation can be that the tablet computer 42 displays the text content of the operation guide. ,etc.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device.
  • the computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means.
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated.
  • the available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.

Abstract

Disclosed in the present application are a networking method and system, and a related apparatus. The method comprises: firstly, establishing a plurality of secondary networks, wherein each secondary network comprises one central device and one or more slave devices, and each slave device establishes a communication connection with the central device; then determining a master central device from among a plurality of central devices, and determining the remaining central devices as secondary central devices; and the master central device establishing a communication connection with each secondary central device, so as to form a high-level network by means of the plurality of secondary networks. In this way, a plurality of slave devices of the same secondary network can communicate with each other without the need of a master central device, such that not only can the number of requests which are received by the master central device be reduced, but the processing time of the requests which are initiated by the slave devices can also be shortened, thereby improving the communication efficiency of the network, and reducing a time delay. In addition, on the basis of a high-level network, a measurement service and a distributed collaboration service can also be executed.

Description

一种组网方法、系统及相关装置A networking method, system and related devices
本申请要求于2022年6月16日提交中国专利局、申请号为202210680337.6、申请名称为“一种组网方法、系统及相关装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims priority to the Chinese patent application submitted to the China Patent Office on June 16, 2022, with application number 202210680337.6 and the application title "A networking method, system and related devices", the entire content of which is incorporated by reference. in this application.
技术领域Technical field
本申请涉及通信技术领域,尤其涉及一种组网方法、系统及相关装置。The present application relates to the field of communication technology, and in particular, to a networking method, system and related devices.
背景技术Background technique
随着通信技术的不断发展,越来越多的电子设备可以基于通信连接组网,实现同一个网络中多个电子设备之间的相互通信。With the continuous development of communication technology, more and more electronic devices can be networked based on communication connections to realize mutual communication between multiple electronic devices in the same network.
多个电子设备可以采用中心组网的形式组网。在中心组网中,存在一个中心设备和多个从设备,每个从设备可以与中心设备建立通信连接,实现网络中中心设备与从设备、从设备与从设备之间的互相通信。Multiple electronic devices can be networked in the form of a central network. In the central network, there is a central device and multiple slave devices. Each slave device can establish a communication connection with the central device to realize mutual communication between the central device and slave devices, and between slave devices in the network.
但是,采用中心组网的形式组网,网络中任意两个从设备之间的互相通信都需要经过中心设备,当中心组网中的从设备数量很多时,中心设备会同时接收多个由不同从设备发起的通信请求,在这种情况下,从设备向中心设备发送的通信请求很难得到及时的处理,因此,在上述中心组网中,从设备与从设备之间的通信会有较高的时延。However, in the form of central networking, the communication between any two slave devices in the network needs to go through the central device. When there are a large number of slave devices in the central network, the central device will receive multiple messages from different devices at the same time. In this case, the communication request sent from the slave device to the central device is difficult to be processed in time. Therefore, in the above central network, the communication between the slave device and the slave device will be longer. High latency.
发明内容Contents of the invention
本申请提供了一种组网方法、系统及相关装置,该方法通过在多个次级网络的中心设备中确定出一个主中心设备,并在主中心设备与其他次级网络的中心设备之间建立通信连接,实现了将多个次级网络组成为一个高级网络。This application provides a networking method, system and related devices. The method determines a main central device among the central devices of multiple secondary networks, and establishes a connection between the main central device and the central devices of other secondary networks. Establishing communication connections realizes the formation of multiple secondary networks into a high-level network.
第一方面,本申请提供了一种组网方法,包括:第一中心设备与第一从设备建立通信连接;第一中心设备发送第一串网请求,第一串网请求用于请求与中心设备建立通信连接;第一中心设备接收第二中心设备发送的第一串网响应;在第一中心设备接收第二中心设备发送的第一串网响应之后,第一中心设备与第二中心设备建立通信连接;当第一中心设备确定第一中心设备为主中心设备,确定第二中心设备为次中心设备时,第一中心设备向第二中心设备发送第一信息获取请求,第一信息获取请求用于请求获取第二次级网络的网络信息,第二次级网络包括第二中心设备以及与第二中心设备连接的从设备;第一中心设备接收第二中心设备发送的第二次级网络的网络信息;第一中心设备基于第一次级网络的网络信息和第二次级网络的网络信息确定第一高级网络的网络信息;其中,第一次级网络包括第一中心设备和第一从设备,第一高级网络包括第一中心设备、第二中心设备、第一从设备以及与第二中心设备连接的从设备,高级网络的网络信息包括第一次级网络的网络信息和第二次级网络的网络信息。In a first aspect, this application provides a networking method, which includes: a first central device establishes a communication connection with a first slave device; the first central device sends a first network string request, and the first network string request is used to request communication with the center The device establishes a communication connection; the first central device receives the first network connection response sent by the second central device; after the first central device receives the first network connection response sent by the second central device, the first central device and the second central device Establish a communication connection; when the first central device determines the first central device as the main central device and determines the second central device as the secondary central device, the first central device sends a first information acquisition request to the second central device, and the first information acquisition The request is used to request to obtain network information of the second secondary network. The second secondary network includes a second central device and a slave device connected to the second central device; the first central device receives the second secondary device sent by the second central device. The network information of the network; the first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein the first secondary network includes the first central device and the second secondary network. A slave device. The first high-level network includes a first central device, a second central device, a first slave device and a slave device connected to the second central device. The network information of the high-level network includes network information of the first secondary network and the first slave device. Network information for the secondary network.
采用上述方法,同一个次级网络的多个从设备不需要通过主中心设备就可以实现互相通信,不仅可以减少主中心设备接收的请求数量,还可以降低从设备发起的请求的处理时间,提高网络的通信效率,降低时延。此外,基于高级网络,还可以执行测量业务、分布式协同业务。 Using the above method, multiple slave devices on the same secondary network can communicate with each other without going through the main central device. This can not only reduce the number of requests received by the main central device, but also reduce the processing time of requests initiated by slave devices and improve Improve network communication efficiency and reduce latency. In addition, based on the advanced network, measurement services and distributed collaboration services can also be performed.
在一种可能的实现方式中,在第一中心设备与第一从设备建立通信连接之前,方法还包括:第一中心设备发送探测请求,探测请求用于探测从设备;第一中心设备接收第一从设备发送的探测响应;响应于探测响应,第一中心设备向第一从设备发送第一组网请求,第一组网请求用于请求与第一从设备建立通信连接。In a possible implementation, before the first central device establishes a communication connection with the first slave device, the method further includes: the first central device sends a detection request, and the detection request is used to detect the slave device; the first central device receives the first A detection response sent from the slave device; in response to the detection response, the first central device sends a first networking request to the first slave device, and the first networking request is used to request to establish a communication connection with the first slave device.
这样,任意一个中心设备都可以与一个或多个从设备组建一个次级网络。In this way, any central device can form a secondary network with one or more slave devices.
在一种可能的实现方式中,第一次级网络的网络信息包括:第一中心设备的设备标识、第一从设备的设备标识、第一中心设备的设备类型、第一从设备的设备类型和第一中心设备与第一从设备的连接关系;第二次级网络的网络信息包括第二中心设备的设备标识、与第二中心设备连接的从设备的设备标识、第二中心设备的设备类型、与第二中心设备连接的从设备的设备类型、第二中心设备与第二次级网络中从设备的连接关系。In a possible implementation, the network information of the first secondary network includes: a device identification of the first central device, a device identification of the first slave device, a device type of the first central device, and a device type of the first slave device. and the connection relationship between the first central device and the first slave device; the network information of the second secondary network includes the device identification of the second central device, the device identification of the slave device connected to the second central device, and the equipment of the second central device. type, the device type of the slave device connected to the second central device, and the connection relationship between the second central device and the slave device in the second secondary network.
在一种可能的实现方式中,第一中心设备接收第三中心设备发送的第二串网响应;在接收第二串网响应之后,第一中心设备与第三中心设备建立通信连接;当第一中心设备确定第一中心设备为主中心设备,第二中心设备和第三中心设备均为次中心设备时,第一中心设备向第三中心设备发送第二信息获取请求,第二信息获取请求用于请求获取第三次级网络的网络信息,第三次级网络包括第三中心设备和与第三中心设备连接的从设备;第一中心设备接收第三中心设备发送的第三次级网络的网络信息;第一中心设备基于第一次级网络的网络信息和第二次级网络的网络信息确定第一高级网络的网络信息,具体包括:第一中心设备基于第一次级网络的网络信息、第二次级网络的网络信息和第三次级网络确定第一高级网络的网络信息,第一高级网络的网络信息包括第一次级网络的网络信息、第二次级网络的网络信息和第三次级网络的网络信息。In a possible implementation, the first central device receives the second network connection response sent by the third central device; after receiving the second network connection response, the first central device establishes a communication connection with the third central device; when the third central device When a central device determines that the first central device is the main central device and the second central device and the third central device are both sub-central devices, the first central device sends a second information acquisition request to the third central device. Used to request to obtain network information of the third secondary network. The third secondary network includes a third central device and a slave device connected to the third central device; the first central device receives the third secondary network sent by the third central device. network information; the first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network, specifically including: the first central device based on the network information of the first secondary network Information, the network information of the second secondary network and the third secondary network determine the network information of the first high-level network. The network information of the first high-level network includes the network information of the first secondary network and the network information of the second secondary network. and network information for third-level networks.
这样,三个或更多的次级网络也可以采用上述方法组建为一个高级网络。In this way, three or more secondary networks can also be formed into a high-level network using the above method.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,当第一中心设备离线时,第一中心设备向第二中心设备发送第一离线通知,第一离线通知用于通知第二中心设备第一中心设备离线。In a possible implementation, after determining that the first central device is the main central device, when the first central device goes offline, the first central device sends a first offline notification to the second central device, and the first offline notification is used to Notify the second central device that the first central device is offline.
在一种可能的实现方式中,当第一中心设备上线时,第一中心设备向第二中心设备和第三中心设备发送第一上线通知,第一上线通知用于通知第二中心设备或第三中心设备第一中心设备上线;第一中心设备和第二中心设备建立通信连接;第一中心设备和第三中心设备建立通信连接。In a possible implementation, when the first central device goes online, the first central device sends a first online notification to the second central device and the third central device, and the first online notification is used to notify the second central device or the third central device. The first central device of the three central devices goes online; the first central device establishes a communication connection with the second central device; the first central device establishes a communication connection with the third central device.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,当第二中心设备离线时,第一中心设备确定第二中心设备离线;第一中心设备确定孤立设备,孤立设备是在第二中心设备离线之前与第二中心设备连接的从设备;第一中心设备向孤立设备发送第二组网请求,用于请求与孤立设备建立通信连接;第一中心设备与孤立设备建立通信连接。In a possible implementation, after determining the first central device as the main central device, when the second central device goes offline, the first central device determines that the second central device is offline; the first central device determines the isolated device, and the isolated device It is a slave device connected to the second central device before the second central device goes offline; the first central device sends a second networking request to the isolated device to request to establish a communication connection with the isolated device; the first central device establishes a communication connection with the isolated device Communication connection.
在一种可能的实现方式中,在第一中心设备与孤立设备建立通信连接之后,当第二中心设备上线时,第一中心设备接收第二中心设备发送的第二上线通知,第二上线通知用于通知 第一中心设备第二中心设备上线;在第一中心设备接收第二上线通知之后,第一中心设备与第二中心设备建立通信连接;第一中心设备断开与孤立设备之间的通信连接。In a possible implementation, after the first central device establishes a communication connection with the isolated device, when the second central device comes online, the first central device receives the second online notification sent by the second central device, and the second online notification for notification The first central device and the second central device go online; after the first central device receives the second online notification, the first central device establishes a communication connection with the second central device; the first central device disconnects the communication connection with the isolated device.
这样,在次中心设备离线的情况下,主中心设备可以与孤立设备建立通信连接,接管原本与该次中心设备连接的从设备(孤立设备),保证这些孤立设备在高级网络中的正常工作。而当该次中心设备重新上线之后,这些孤立设备又可以恢复与该次中心设备的通信连接。In this way, when the secondary central device is offline, the main central device can establish a communication connection with the isolated device and take over the slave device (isolated device) originally connected to the secondary central device to ensure the normal operation of these isolated devices in the advanced network. When the secondary central device comes back online, these isolated devices can resume communication connections with the secondary central device.
在一种可能的实现方式中,当第一中心设备确定第二中心设备为主中心设备,确定第一中心设备为次中心设备时,第一中心设备向第二中心设备发送第一次级网络的网络信息。In a possible implementation, when the first central device determines that the second central device is the main central device and the first central device is the secondary central device, the first central device sends the first secondary network to the second central device. network information.
在一种可能的实现方式中,第一串网响应包括第二中心设备的设备类型;第一中心设备确定第二中心设备为主中心设备,具体包括:第一中心设备基于第二中心设备的设备类型确定第二中心设备为主中心设备。In a possible implementation, the first network response includes the device type of the second central device; the first central device determines the second central device as the main central device, specifically including: the first central device based on the second central device The device type determines that the second central device is the main central device.
在一种可能的实现方式中,第一串网响应包括第二中心设备的硬件配置信息;第一中心设备确定第二中心设备为主中心设备,确定第一中心设备为次中心设备,具体包括:第一中心设备基于第一中心设备的硬件配置信息和第二中心设备的硬件配置信息确定第二中心设备为主中心设备,确定第一中心设备为次中心设备,硬件配置信息用于指示设备的硬件能力,主中心设备的硬件能力高于次中心设备的硬件能力。In a possible implementation, the first network response includes the hardware configuration information of the second central device; the first central device determines the second central device as the primary central device, and determines the first central device as the secondary central device, specifically including: : The first central device determines the second central device as the primary central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device, and determines the first central device as the secondary central device. The hardware configuration information is used to indicate the device. The hardware capabilities of the main center device are higher than the hardware capabilities of the secondary center device.
在一种可能的实现方式中,第一串网响应包括第二中心设备的硬件配置信息;第一中心设备确定第一中心设备为主中心设备,确定第二中心设备为次中心设备,具体包括:第一中心设备基于第一中心设备的硬件配置信息和第二中心设备的硬件配置信息确定第一中心设备为主中心设备,确定第二中心设备为次中心设备,硬件配置信息用于指示设备的硬件能力,主中心设备的硬件能力高于次中心设备的硬件能力。In a possible implementation, the first network response includes the hardware configuration information of the second central device; the first central device determines the first central device as the primary central device, and determines the second central device as the secondary central device, specifically including: : The first central device determines the first central device as the primary central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device, and determines the second central device as the secondary central device. The hardware configuration information is used to indicate the device. The hardware capabilities of the main center device are higher than the hardware capabilities of the secondary center device.
采用上述方式,可以基于中心设备的硬件配置信息确定硬件能力更高的中心设备为主中心设备。Using the above method, the central device with higher hardware capabilities can be determined as the main central device based on the hardware configuration information of the central device.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,第一中心设备接收第一高级网络中的测量设备发送的第一测量请求,第一测量请求用于请求第一中心设备许可测量设备执行第一测量业务,测量设备是第一高级网络中与第一中心设备不同的任一设备;响应于第一测量请求,当第一中心设备基于第一高级网络的业务数据确定出第一测量业务的测量结果时,第一中心设备向测量设备发送第一测量业务的测量结果;其中,第一高级网络的业务数据包括第一高级网络的测量数据和/或第一高级网络中待执行的测量业务,第一高级网络的测量数据包括第一高级网络中已经执行的测量业务产生的数据。In a possible implementation, after determining the first central device as the main central device, the first central device receives a first measurement request sent by a measurement device in the first advanced network, and the first measurement request is used to request the first The central device permits the measurement device to perform the first measurement service, and the measurement device is any device in the first advanced network that is different from the first central device; in response to the first measurement request, when the first central device is based on the service data of the first advanced network When the measurement result of the first measurement service is determined, the first central device sends the measurement result of the first measurement service to the measurement device; wherein the service data of the first high-level network includes the measurement data of the first high-level network and/or the first high-level network. The measurement services to be performed in the network, and the measurement data of the first high-level network include data generated by the measurement services that have been performed in the first high-level network.
在一种可能的实现方式中,当第一中心设备基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时,第一中心设备向测量设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第一中心设备接收测量设备发送的第一测量业务的测量结果;第一中心设备基于第一测量业务的测量结果更新第一高级网络的业务数据。In a possible implementation, when the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the first central device sends the first measurement permission to the measurement device, and the first measurement The license is used to notify the measurement device that it is allowed to perform the first measurement service; the first central device receives the measurement result of the first measurement service sent by the measurement device; the first central device updates the service of the first advanced network based on the measurement result of the first measurement service data.
在一种可能的实现方式中,第一测量业务包括测量对象和测量内容;其中,测量对象是第一高级网络中与第一中心设备不同的任一设备;测量内容包括以下任一项或多项:测量设备与测量对象之间的距离、测量设备与测量对象之间的方位关系、测量设备与测量对象之间 的夹角、测量设备与测量对象之间的内外关系。In a possible implementation, the first measurement service includes a measurement object and measurement content; wherein the measurement object is any device in the first advanced network that is different from the first central device; and the measurement content includes any one or more of the following: Items: the distance between the measuring equipment and the measuring object, the orientation relationship between the measuring equipment and the measuring object, the distance between the measuring equipment and the measuring object The included angle, the internal and external relationship between the measuring equipment and the measurement object.
这样,可以基于高级网络开展测量业务。此外,还可以避免执行不必要的测量业务,降低能耗。In this way, measurement services can be carried out based on advanced networks. In addition, unnecessary measurement services can be avoided and energy consumption can be reduced.
在一种可能的实现方式中,当确定第一中心设备为主中心设备时,第一中心设备获取第一高级网络中的设备的设备探测类型和设备耗电类型,设备探测类型包括主动探测设备和被动探测设备,设备耗电类型包括长电设备和弱电设备;第一中心设备基于第一高级网络中的设备的设备探测类型和设备耗电类型确定第二中心设备为备份设备,第二中心设备的设备探测类型为主动探测设备,且第二中心设备的设备耗电类型为长电设备;第一中心设备向第二中心设备发送第一高级网络的网络信息和/或第一高级网络的业务数据。In a possible implementation, when the first central device is determined to be the main central device, the first central device obtains the device detection type and device power consumption type of the device in the first advanced network, and the device detection type includes active detection of the device. and passive detection equipment, and the equipment power consumption types include long-term power equipment and weak power equipment; the first center device determines the second center device as a backup device based on the device detection type and device power consumption type of the device in the first advanced network, and the second center device The device detection type of the device is active detection device, and the device power consumption type of the second central device is long-term power device; the first central device sends the network information of the first advanced network and/or the network information of the first advanced network to the second central device. business data.
这样,可以通过备份数据增强高级网络中信息的稳定性。可以在主中心设备离线的情况下,维持高级网络的正常工作。In this way, the stability of information in advanced networks can be enhanced by backing up data. It can maintain the normal operation of the advanced network even when the main central device is offline.
在一种可能的实现方式中,在第一中心设备确定第一中心设备为主中心设备之后,第一中心设备接收第四中心设备的第二串网请求,第二串网请求用于请求与中心设备建立通信连接;响应于第二串网请求,第一中心设备与第四中心设备建立通信连接;第一中心设备接收第四中心设备发送的第四次级网络的网络信息,第四次级网络包括第四中心设备以及与第四中心设备连接的从设备;基于第一高级网络的网络信息和第四次级网络的网络信息确定第二高级网络的网络信息,第二高级网络包括第一高级网络和第四次级网络。In a possible implementation, after the first central device determines that the first central device is the main central device, the first central device receives a second network connection request from the fourth central device, and the second network connection request is used to request and The central device establishes a communication connection; in response to the second network connection request, the first central device establishes a communication connection with the fourth central device; the first central device receives the network information of the fourth secondary network sent by the fourth central device, and the fourth time The first-level network includes a fourth central device and slave devices connected to the fourth central device; the network information of the second-level network is determined based on the network information of the first-level network and the network information of the fourth-level network. The second-level network includes the second-level network. A high-level network and a fourth-level network.
这样,在高级网络组建完毕之后,高级网络也可以与其他次级网络建立通信连接,粗剪成一个更大的高级网络。In this way, after the high-level network is established, the high-level network can also establish communication connections with other secondary networks and rough-cut into a larger high-level network.
在一种可能的实现方式中,在第一中心设备与第四中心设备建立通信连接之后,第一中心设备接收第二高级网络中的测量设备发送的第一测量请求,第一测量请求用于请求第一中心设备许可测量设备执行第一测量业务,测量设备是第二高级网络中与第一中心设备不同的任一设备;响应于第一测量请求,当第一中心设备基于第二高级网络的业务数据确定出第一测量业务的测量结果时,第一中心设备向测量设备发送第一测量业务的测量结果;其中,第二高级网络的业务数据包括第二高级网络的测量数据和/或第二高级网络中待执行的测量业务,第二高级网络的测量数据包括第二高级网络中已经执行的测量业务产生的数据。In a possible implementation, after the first central device establishes a communication connection with the fourth central device, the first central device receives a first measurement request sent by a measurement device in the second advanced network, and the first measurement request is used to Requesting the first central device to allow the measurement device to perform the first measurement service, and the measurement device is any device in the second advanced network that is different from the first central device; in response to the first measurement request, when the first central device is based on the second advanced network When the measurement result of the first measurement service is determined from the service data, the first central device sends the measurement result of the first measurement service to the measurement device; wherein the service data of the second high-level network includes the measurement data of the second high-level network and/or The measurement service to be performed in the second high-level network, and the measurement data of the second high-level network include data generated by the measurement service that has been performed in the second high-level network.
在一种可能的实现方式中,当第一中心设备基于第二高级网络的业务数据无法确定出第一测量业务的测量结果时,第一中心设备向测量设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第一中心设备接收测量设备发送的第一测量业务的测量结果;第一中心设备基于第一测量业务的测量结果更新第一高级网络的业务数据。In a possible implementation, when the first central device cannot determine the measurement result of the first measurement service based on the service data of the second advanced network, the first central device sends the first measurement permission to the measurement device, and the first measurement The license is used to notify the measurement device that it is allowed to perform the first measurement service; the first central device receives the measurement result of the first measurement service sent by the measurement device; the first central device updates the service of the first advanced network based on the measurement result of the first measurement service data.
在一种可能的实现方式中,第一测量业务包括测量对象和测量内容;其中,测量对象是第一高级网络中与第一中心设备不同的任一设备;测量内容包括以下任一项或多项:测量设备与测量对象之间的距离、测量设备与测量对象之间的方位关系、测量设备与测量对象之间的夹角、测量设备与测量对象之间的内外关系。In a possible implementation, the first measurement service includes a measurement object and measurement content; wherein the measurement object is any device in the first advanced network that is different from the first central device; and the measurement content includes any one or more of the following: Items: the distance between the measuring equipment and the measured object, the azimuth relationship between the measuring equipment and the measured object, the angle between the measuring device and the measured object, and the internal and external relationship between the measuring equipment and the measured object.
在一种可能的实现方式中,当确定第一中心设备为主中心设备时,第一中心设备获取第 二高级网络中的设备的设备探测类型和设备耗电类型,设备探测类型包括主动探测设备和被动探测设备,设备耗电类型包括长电设备和弱电设备;第一中心设备基于第而高级网络中的设备的设备探测类型和设备耗电类型确定第二中心设备为备份设备,第二中心设备的设备探测类型为主动探测设备,且第二中心设备的设备耗电类型为长电设备;第一中心设备向第二中心设备发送第二高级网络的网络信息和/或第二高级网络的业务数据。In a possible implementation, when the first central device is determined to be the main central device, the first central device obtains the The equipment detection type and equipment power consumption type of the equipment in the second advanced network. The equipment detection type includes active detection equipment and passive detection equipment, and the equipment power consumption type includes long-term power equipment and weak power equipment; the first central equipment is based on the advanced network. The device detection type and device power consumption type of the device determine that the second central device is a backup device, the device detection type of the second central device is an active detection device, and the device power consumption type of the second central device is a long-term power device; first The central device sends network information of the second high-level network and/or service data of the second high-level network to the second central device.
第二方面,本申请提供了一种组网方法,包括:第二中心设备接收第一中心设备发送的第一串网请求,第一串网请求用于请求与中心设备建立通信连接;第二中心设备向第一中心设备发送第一串网响应;在第二中心设备向第一中心设备发送的第一串网响应之后,第二中心设备与第一中心设备建立通信连接;当确定第一中心设备为主中心设备,第二中心设备为次中心设备时,第二中心设备接收第一中心设备发送的第一信息获取请求,第一信息获取请求用于请求获取第二次级网络的网络信息,第二次级网络包括第二中心设备以及与第二中心设备连接的从设备;第二中心设备向第一中心设备发送第二次级网络的网络信息。In a second aspect, this application provides a networking method, including: a second central device receives a first network connection request sent by the first central device, and the first network connection request is used to request to establish a communication connection with the central device; second The central device sends a first network connection response to the first central device; after the second central device sends the first network connection response to the first central device, the second central device establishes a communication connection with the first central device; when the first central device is determined When the central device is the main central device and the second central device is the secondary central device, the second central device receives the first information acquisition request sent by the first central device. The first information acquisition request is used to request to obtain the network of the second secondary network. Information, the second secondary network includes a second central device and a slave device connected to the second central device; the second central device sends network information of the second secondary network to the first central device.
在一种可能的实现方式中,第二次级网络的网络信息包括:第二中心设备的设备标识、与第二中心设备连接的从设备的设备标识、第二中心设备的设备类型、与第二中心设备连接的从设备的设备类型、第二中心设备与第二次级网络中从设备的连接关系。In a possible implementation, the network information of the second secondary network includes: the device identification of the second central device, the device identification of the slave device connected to the second central device, the device type of the second central device, and the device type of the second central device. The device type of the slave device connected to the second central device, and the connection relationship between the second central device and the slave device in the second secondary network.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,当第一中心设备离线时,第二中心设备确定第一中心设备离线;响应于第一离线通知,第二中心设备发送第三串网请求;第二中心设备接收第三中心设备发送的第三串网响应;在第二中心设备接收第三中心设备发送的第三串网响应之后,第二中心设备与第三中心设备建立通信连接;当第二中心设备确定第二中心设备为主中心设备,第三中心设备为次中心设备时,第一中心设备向第二中心设备发送第三信息获取请求,第三信息获取请求用于请求获取第三次级网络的网络信息,第三次级网络包括第三中心设备以及与第三中心设备连接的从设备;第二中心设备接收第三中心设备发送的第三次级网络的网络信息;第二中心设备基于第二次级网络的网络信息和第三次级网络的网络信息确定第三高级网络的网络信息;其中,第三高级网络包括第二中心设备、第三中心设备、与第二中心设备连接的从设备、与第三中心设备连接的从设备,高级网络的网络信息包括第二次级网络的网络信息和第三次级网络的网络信息。In a possible implementation, after determining that the first central device is the main central device, when the first central device is offline, the second central device determines that the first central device is offline; in response to the first offline notification, the second central device The device sends a third network connection request; the second central device receives the third network connection response sent by the third central device; after the second central device receives the third network connection response sent by the third central device, the second central device communicates with the third network connection request. The three central devices establish a communication connection; when the second central device determines that the second central device is the main central device and the third central device is the secondary central device, the first central device sends a third information acquisition request to the second central device, and the third central device The information acquisition request is used to request to obtain network information of the third secondary network. The third secondary network includes a third central device and a slave device connected to the third central device; the second central device receives the third central device sent by the third central device. The network information of the secondary network; the second central device determines the network information of the third high-level network based on the network information of the second secondary network and the network information of the third secondary network; wherein the third high-level network includes the second central device, The third central device, the slave device connected to the second central device, the slave device connected to the third central device, and the network information of the high-level network includes the network information of the second secondary network and the network information of the third secondary network.
在一种可能的实现方式中,当第一中心设备上线时,第二中心设备接收第一中心设备发送的第一上线通知,第一上线通知用于通知第二中心设备第一中心设备上线;第二中心设备和第一中心设备建立通信连接;第二中心设备和第三中心设备断开通信连接。In a possible implementation, when the first central device comes online, the second central device receives the first online notification sent by the first central device, and the first online notification is used to notify the second central device that the first central device comes online; The second central device establishes a communication connection with the first central device; the second central device and the third central device disconnect the communication connection.
这样,在主中心设备离线的情况下,其余次中心设备可以重新确定出新的主中心设备,组建新的高级网络。而当原本的主中心设备重新上线时,新的高级网络中的设备可以重新组建为原本的高级网络。In this way, when the main central device goes offline, the remaining secondary central devices can re-identify the new main central device and form a new advanced network. When the original main center device comes back online, the devices in the new advanced network can be reorganized into the original advanced network.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,当第二中心设备离线时,第二中心设备向第一中心设备发送第二离线通知,第二离线通知用于通知第一中心设备第二中心设备离线。 In a possible implementation, after determining that the first central device is the main central device, when the second central device goes offline, the second central device sends a second offline notification to the first central device, and the second offline notification is used to Notify the first central device and the second central device to be offline.
在一种可能的实现方式中,当第二中心设备上线时,第二中心设备向第一中心设备和孤立设备发送第二上线通知,第二上线通知用于通知第一中心设备或孤立设备第二中心设备上线,孤立设备是第二中心设备离线之前与第二中心设备连接的从设备;在第二中心设备向第一中心设备发送第二上线通知之后,第二中心设备与第一中心设备建立通信连接;在第二中心设备向孤立设备发送第二上线通知之后,第二中心设备与孤立设备建立通信连接。In a possible implementation, when the second central device comes online, the second central device sends a second online notification to the first central device and the isolated device, and the second online notification is used to notify the first central device or the isolated device of the second online notification. The second central device comes online. The isolated device is a slave device connected to the second central device before the second central device goes offline; after the second central device sends a second online notification to the first central device, the second central device communicates with the first central device. Establish a communication connection; after the second central device sends a second online notification to the isolated device, the second central device establishes a communication connection with the isolated device.
在一种可能的实现方式中,当第二中心设备为主中心设备时,第二中心设备接收第一中心设备发送第一次级网络的网络信息,第一次级网络包括第一中心设备和与第一中心设备连接的从设备;第二中心设备基于第一次级网络的网络信息和第二次级网络的网络信息确定第一高级网络的网络信息;其中,第一高级网络包括第一中心设备、第二中心设备、与第一中心设备连接的从设备、以及与第二中心设备连接的从设备,高级网络的网络信息包括第一次级网络的网络信息和第二次级网络的网络信息。In a possible implementation, when the second central device is the main central device, the second central device receives the network information of the first secondary network sent by the first central device. The first secondary network includes the first central device and A slave device connected to the first central device; the second central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein the first high-level network includes the first The central device, the second central device, the slave device connected to the first central device, and the slave device connected to the second central device. The network information of the high-level network includes the network information of the first secondary network and the network information of the second secondary network. Internet Information.
在一种可能的实现方式中,当第一中心设备为主中心设备时,第二中心设备接收第二次级网络中的测量设备发送的第一测量请求,第一测量请求用于请求第二中心设备许可测量设备执行第一测量业务,测量设备是第二次级网络中与第二中心设备不同的任一设备;响应于第一测量请求,当第二中心设备基于第二次级网络的业务数据确定出第一测量业务的测量结果时,第二中心设备向测量设备发送第一测量业务的测量结果;其中,第二次级网络的业务数据包括第二次级网络的测量数据和/或第二次级网络中待执行的测量业务,第二次级网络的测量数据包括第二次级网络中已经执行的测量业务产生的数据。In a possible implementation, when the first central device is the main central device, the second central device receives the first measurement request sent by the measurement device in the second secondary network, and the first measurement request is used to request the second The central device permits the measurement device to perform the first measurement service, and the measurement device is any device in the second secondary network that is different from the second central device; in response to the first measurement request, when the second central device is based on the second secondary network When the service data determines the measurement result of the first measurement service, the second central device sends the measurement result of the first measurement service to the measurement device; wherein the service data of the second secondary network includes the measurement data of the second secondary network and/or Or the measurement service to be performed in the second secondary network. The measurement data of the second secondary network includes data generated by the measurement service that has been performed in the second secondary network.
在一种可能的实现方式中,当第二中心设备基于第二次级网络的业务数据无法确定出第一测量业务的测量结果时,第二中心设备向测量设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第二中心设备接收测量设备发送的第一测量业务的测量结果;第二中心设备基于第一测量业务的测量结果更新第二次级网络的业务数据。In a possible implementation, when the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends the first measurement permission to the measurement device. The measurement permission is used to notify the measurement device that it is allowed to perform the first measurement service; the second central device receives the measurement result of the first measurement service sent by the measurement device; the second central device updates the second secondary network based on the measurement result of the first measurement service business data.
在一种可能的实现方式中,当第二中心设备基于第二次级网络的业务数据无法确定出第一测量业务的测量结果时,第二中心设备向第一中心设备发送第二测量请求,第二测量请求用于请求第一中心设备许可测量设备执行第一测量业务;当第一中心设备基于第一高级网络的业务数据确定出第一测量业务的测量结果时,第二中心设备接收第一中心设备发送的第一测量业务的测量结果;第二中心设备向测量设备发送第一测量业务的测量结果。In a possible implementation, when the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends a second measurement request to the first central device, The second measurement request is used to request the first central device to allow the measurement device to perform the first measurement service; when the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network, the second central device receives the second measurement request. A central device sends the measurement result of the first measurement service; the second central device sends the measurement result of the first measurement service to the measurement device.
在一种可能的实现方式中,当第一中心设备基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时,第二中心设备接收第一中心设备发送的第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第二中心设备向测量设备发送第一测量许可;第二中心设备接收测量设备发送的第一测量业务的测量结果;第二中心设备基于第一测量业务的测量结果更新第二次级网络的业务数据。In a possible implementation, when the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the second central device receives the first measurement permission sent by the first central device, The first measurement license is used to notify the measurement device that it is allowed to perform the first measurement service; the second center device sends the first measurement license to the measurement device; the second center device receives the measurement result of the first measurement service sent by the measurement device; the second center device The device updates the service data of the second secondary network based on the measurement result of the first measurement service.
在一种可能的实现方式中,在第二中心设备接收测量设备发送的第一测量业务的测量结 果之后,第二中心设备向第一中心设备发送第一测量业务的测量结果。In a possible implementation, the second central device receives the measurement results of the first measurement service sent by the measurement device. After the result, the second central device sends the measurement result of the first measurement service to the first central device.
第三方面,本申请提供一种系统,包括:第一中心设备、第二中心设备、第一从设备和与第二中心设备连接的从设备;第一中心设备用于与第一从设备建立通信连接;第一中心设备用于发送第一串网请求,第一串网请求用于请求与中心设备建立通信连接;第一中心设备用于接收第二中心设备发送的第一串网响应;在第一中心设备接收第二中心设备发送的第一串网响应之后,第一中心设备用于与第二中心设备建立通信连接;第一中心设备用于在第一中心设备和第二中心设备中确定主中心设备和次中心设备;当第一中心设备确定第一中心设备为主中心设备,第二中心设备为次中心设备时,第一中心设备用于向第二中心设备发送第一信息获取请求,第一信息获取请求用于请求获取第二次级网络的网络信息,第二次级网络包括第二中心设备以及与第二中心设备连接的从设备;第一中心设备用于接收第二中心设备发送的第二次级网络的网络信息;第一中心设备用于基于第一次级网络的网络信息和第二次级网络的网络信息确定第一高级网络的网络信息;其中,第一次级网络包括第一中心设备和第一从设备,第一高级网络包括第一中心设备、第二中心设备、第一从设备以及与第二中心设备连接的从设备,高级网络的网络信息包括第一次级网络的网络信息和第二次级网络的网络信息。第二中心设备用于接收第一串网请求;第二中心设备用于向第一中心设备发送第一串网响应;在第二中心设备向第一中心设备发送的第一串网响应之后,第二中心设备用于与第一中心设备建立通信连接;当确定第一中心设备为主中心设备,第二中心设备为次中心设备时,第二中心设备用于接收第一信息获取请求;在第二中心设备接收第一信息获取请求之后,第二中心设备用于向第一中心设备发送第二次级网络的网络信息;第一从设备用于与第一中心设备建立通信连接。In a third aspect, this application provides a system, including: a first central device, a second central device, a first slave device, and a slave device connected to the second central device; the first central device is used to establish a connection with the first slave device. Communication connection; the first central device is used to send a first network connection request, and the first network connection request is used to request to establish a communication connection with the central device; the first central device is used to receive the first network connection response sent by the second central device; After the first central device receives the first network connection response sent by the second central device, the first central device is used to establish a communication connection with the second central device; the first central device is used to connect the first central device and the second central device determine the primary central device and the secondary central device; when the first central device determines the first central device as the primary central device and the second central device as the secondary central device, the first central device is used to send the first information to the second central device Acquisition request. The first information acquisition request is used to request to obtain network information of the second secondary network. The second secondary network includes a second central device and a slave device connected to the second central device; the first central device is used to receive the second central device. The network information of the second secondary network sent by the second central device; the first central device is used to determine the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network; wherein, the first central device The primary network includes a first central device and a first slave device. The first advanced network includes a first central device, a second central device, a first slave device and slave devices connected to the second central device. Network information of the advanced network Including network information of the first secondary network and network information of the second secondary network. The second central device is configured to receive the first network connection request; the second central device is used to send the first network connection response to the first central device; after the second central device sends the first network connection response to the first central device, The second central device is used to establish a communication connection with the first central device; when it is determined that the first central device is the main central device and the second central device is the secondary central device, the second central device is used to receive the first information acquisition request; After the second central device receives the first information acquisition request, the second central device is used to send the network information of the second secondary network to the first central device; the first slave device is used to establish a communication connection with the first central device.
在一种可能的实现方式中,在第一中心设备与第一从设备建立通信连接之前:第一中心设备还用于发送探测请求,探测请求用于探测从设备;第一中心设备用于接收第一从设备发送的探测响应;响应于探测响应,第一中心设备用于向第一从设备发送第一组网请求,第一组网请求用于请求与第一从设备建立通信连接。第一从设备还用于接收第一中心设备发送的探测请求;响应于探测请求,第一从设备用于向第一中心设备发送探测响应。In a possible implementation, before the first central device establishes a communication connection with the first slave device: the first central device is also used to send a detection request, and the detection request is used to detect the slave device; the first central device is used to receive A detection response sent by the first slave device; in response to the detection response, the first central device is used to send a first networking request to the first slave device, and the first networking request is used to request to establish a communication connection with the first slave device. The first slave device is further configured to receive a detection request sent by the first central device; in response to the detection request, the first slave device is configured to send a detection response to the first central device.
在一种可能的实现方式中,第一次级网络的网络信息包括第一中心设备的设备标识、第一从设备的设备标识、第一中心设备的设备类型、第一从设备的设备类型和第一中心设备与第一从设备的连接关系;第二次级网络的网络信息包括第二中心设备的设备标识、与第二中心设备连接的从设备的设备标识、第二中心设备的设备类型、与第二中心设备连接的从设备的设备类型、第二中心设备与第二次级网络中从设备的连接关系。In a possible implementation, the network information of the first secondary network includes a device identification of the first central device, a device identification of the first slave device, a device type of the first central device, a device type of the first slave device, and The connection relationship between the first central device and the first slave device; the network information of the second secondary network includes the device identification of the second central device, the device identification of the slave device connected to the second central device, and the device type of the second central device , the device type of the slave device connected to the second central device, and the connection relationship between the second central device and the slave device in the second secondary network.
在一种可能的实现方式中,系统还包括第三中心设备以及与第三中心设备连接的从设备。第一中心设备还用于接收第三中心设备发送的第二串网响应;在接收第二串网响应之后,第一中心设备用于与第三中心设备建立通信连接;第一中心设备还用于确定主中心设备;当第一中心设备确定第一中心设备为主中心设备,第二中心设备和第三中心设备均为次中心设备时,第一中心设备用于向第三中心设备发送第二信息获取请求,第二信息获取请求用于请求 获取第三次级网络的网络信息,第三次级网络包括第三中心设备和与第三中心设备连接的从设备;第一中心设备用于接收第三中心设备发送的第三次级网络的网络信息;第一中心设备用于基于第一次级网络的网络信息、第二次级网络的网络信息和第三次级网络确定第一高级网络的网络信息,第一高级网络的网络信息包括第一次级网络的网络信息、第二次级网络的网络信息和第三次级网络的网络信息。第三中心设备用于向第一中心设备发送第二串网响应;第三中心设备用于与第一中心设备建立通信连接;当第一中心设备确定第一中心设备为主中心设备,第二中心设备和第三中心设备均为次中心设备时,第三中心设备用于接收第二信息获取请求;响应于第二信息获取请求,第三中心设备用于向第一中心设备发送第三次级网络的网络信息。In a possible implementation, the system further includes a third central device and a slave device connected to the third central device. The first central device is also used to receive the second network connection response sent by the third central device; after receiving the second network connection response, the first central device is used to establish a communication connection with the third central device; the first central device is also used to To determine the main central device; when the first central device determines that the first central device is the main central device and the second central device and the third central device are both secondary central devices, the first central device is used to send the third central device to the third central device. Second information acquisition request, the second information acquisition request is used to request Obtain the network information of the third secondary network. The third secondary network includes a third central device and a slave device connected to the third central device; the first central device is used to receive the information of the third secondary network sent by the third central device. Network information; the first central device is used to determine the network information of the first high-level network based on the network information of the first secondary network, the network information of the second secondary network and the third secondary network. The network information of the first high-level network includes Network information of the first secondary network, network information of the second secondary network and network information of the third secondary network. The third central device is used to send a second network connection response to the first central device; the third central device is used to establish a communication connection with the first central device; when the first central device determines that the first central device is the master central device, the second central device When the central device and the third central device are both sub-central devices, the third central device is used to receive the second information acquisition request; in response to the second information acquisition request, the third central device is used to send the third central device to the first central device. Network information for level networks.
在一种可能的实现方式中,在确定第一中心设备为主中心设备之后,当第一中心设备离线时,第一中心设备用于向第二中心设备发送第一离线通知,第一离线通知用于通知第二中心设备第一中心设备离线。In a possible implementation, after determining the first central device as the main central device, when the first central device goes offline, the first central device is configured to send a first offline notification to the second central device. The first offline notification Used to notify the second central device that the first central device is offline.
在另一种可能的实现方式中,在确定第一中心设备为主中心设备之后,第二中心设备用于确定第一中心设备是否离线;当第二中心设备确定第一中心设备离线之后,第二中心设备用于发送第三串网请求;第二中心设备用于接收第三中心设备发送的第三串网响应;第二中心设备用于与第三中心设备建立通信连接;第二中心设备还用于确定主中心设备;当第二中心设备确定第二中心设备为主中心设备,第三中心设备为次中心设备时,第二中心设备用于向第三中心设备发送第三信息获取请求,第三信息获取请求用于请求获取第三次级网络的网络信息,第三次级网络包括第三中心设备以及与第三中心设备连接的从设备;第二中心设备用于接收第三中心设备发送的第三次级网络的网络信息;第二中心设备用于基于第二次级网络的网络信息和第三次级网络的网络信息确定第三高级网络的网络信息;其中,第三高级网络包括第二中心设备、第三中心设备、与第二中心设备连接的从设备、与第三中心设备连接的从设备,高级网络的网络信息包括第二次级网络的网络信息和第三次级网络的网络信息。第三中心设备用于接收第三串网请求;第三中心设备用于向第二中心设备发送第三串网响应;第三中心设备用于与第二中心设备建立通信连接;当第二中心设备确定第二中心设备为主中心设备,第三中心设备为次中心设备时,第三中心设备用于接收第二中心设备发送的第三信息获取请求;响应于第三信息获取请求,第三中心设备用于向第二中心设备发送第三次级网络的网络信息。In another possible implementation, after determining that the first central device is the main central device, the second central device is used to determine whether the first central device is offline; after the second central device determines that the first central device is offline, the second central device The second central device is used to send the third network connection request; the second central device is used to receive the third network connection response sent by the third central device; the second central device is used to establish a communication connection with the third central device; the second central device is It is also used to determine the main central device; when the second central device determines that the second central device is the main central device and the third central device is the secondary central device, the second central device is used to send a third information acquisition request to the third central device. , the third information acquisition request is used to request to obtain network information of the third secondary network. The third secondary network includes a third central device and a slave device connected to the third central device; the second central device is used to receive the third central device. The network information of the third secondary network sent by the device; the second central device is used to determine the network information of the third high-level network based on the network information of the second secondary network and the network information of the third secondary network; wherein, the third high-level network The network includes a second central device, a third central device, a slave device connected to the second central device, and a slave device connected to the third central device. The network information of the high-level network includes the network information of the second secondary network and the third Network information for level networks. The third central device is used to receive the third network connection request; the third central device is used to send the third network connection response to the second central device; the third central device is used to establish a communication connection with the second central device; when the second center When the device determines that the second central device is the main central device and the third central device is the secondary central device, the third central device is used to receive the third information acquisition request sent by the second central device; in response to the third information acquisition request, the third central device The central device is used to send network information of the third secondary network to the second central device.
在一种可能的实现方式中,当第一中心设备为主中心设备,且第一中心设备重新上线时:In a possible implementation, when the first central device is the main central device and the first central device comes back online:
第一中心设备用于向第二中心设备和第三中心设备发送第一上线通知,第一上线通知用于通知第二中心设备或第三中心设备第一中心设备上线;第一中心设备用于和第二中心设备建立通信连接;第一中心设备用于和第三中心设备建立通信连接。第二中心设备用于接收第一中心设备发送的第一上线通知;第二中心设备用于和第一中心设备建立通信连接;第二中心设备用于断开和第三中心设备的通信连接。第三中心设备用于接收第一中心设备发送的第一上线通知;第三中心设备用于断开与第二中心设备的通信连接。The first central device is used to send a first online notification to the second central device and the third central device. The first online notification is used to notify the second central device or the third central device that the first central device is online; the first central device is used to Establish a communication connection with the second central device; the first central device is used to establish a communication connection with the third central device. The second central device is used to receive the first online notification sent by the first central device; the second central device is used to establish a communication connection with the first central device; and the second central device is used to disconnect the communication connection with the third central device. The third central device is configured to receive the first online notification sent by the first central device; the third central device is configured to disconnect the communication connection with the second central device.
在一种可能的实现方式中,当第一中心设备为主中心设备,且第二中心设备离线时: In a possible implementation, when the first central device is the main central device and the second central device is offline:
第一中心设备用于确定第二中心设备离线;第一中心设备还用于确定孤立设备,孤立设备是在第二中心设备离线之前与第二中心设备连接的从设备;第一中心设备用于向孤立设备发送第二组网请求,用于请求与孤立设备建立通信连接;第一中心设备用于与孤立设备建立通信连接。孤立设备用于接收第二组网请求;孤立设备用于与第一中心设备建立通信连接。The first central device is used to determine that the second central device is offline; the first central device is also used to determine an isolated device, which is a slave device connected to the second central device before the second central device goes offline; the first central device is used to Send a second networking request to the isolated device to request to establish a communication connection with the isolated device; the first central device is used to establish a communication connection with the isolated device. The isolated device is used to receive the second networking request; the isolated device is used to establish a communication connection with the first central device.
在另一种可能的实现方式中,当第一中心设备为主中心设备,且第二中心设备离线时:第二中心设备用于向第一中心设备发送第二离线通知,第二离线通知用于通知第一中心设备第二中心设备离线。In another possible implementation, when the first central device is the main central device and the second central device is offline: the second central device is used to send a second offline notification to the first central device, and the second offline notification is Notifying the first central device that the second central device is offline.
在一种可能的实现方式中,在第一中心设备与孤立设备建立通信连接,且第二中心设备重新上线后:In a possible implementation, after the first central device establishes a communication connection with the isolated device and the second central device comes back online:
第一中心设备用于接收第二中心设备发送的第二上线通知,第二上线通知用于通知第一中心设备第二中心设备上线;第一中心设备用于与第二中心设备建立通信连接;第一中心设备用于断开与孤立设备之间的通信连接,孤立设备是第二中心设备离线之前与第二中心设备连接的从设备。第二中心设备用于向第一中心设备和孤立设备发送第二上线通知,第二上线通知用于通知第一中心设备或孤立设备第二中心设备上线;第二中心设备用于与第一中心设备建立通信连接;第二中心设备用于与孤立设备建立通信连接。孤立设备用于接收第二上线通知;孤立设备用于与第二中心设备建立通信连接;孤立设备用于断开与第一中心设备的通信连接。The first central device is used to receive the second online notification sent by the second central device, and the second online notification is used to notify the first central device that the second central device is online; the first central device is used to establish a communication connection with the second central device; The first central device is used to disconnect the communication connection with the isolated device. The isolated device is a slave device connected to the second central device before the second central device goes offline. The second central device is used to send a second online notification to the first central device and the isolated device. The second online notification is used to notify the first central device or the isolated device that the second central device is online; the second central device is used to communicate with the first central device. The device establishes a communication connection; the second central device is used to establish a communication connection with the isolated device. The isolated device is used to receive the second online notification; the isolated device is used to establish a communication connection with the second central device; the isolated device is used to disconnect the communication connection with the first central device.
在一种可能的实现方式中,当第一中心设备确定第二中心设备为主中心设备,确定第一中心设备为次中心设备时,第一中心设备用于向第二中心设备发送第一次级网络的网络信息;第二中心设备用于接收第一次级网络的网络信息;第二中心设备用于基于第一次级网络的网络信息和第二次级网络的网络信息确定第一高级网络的网络信息;其中,第一高级网络包括第一中心设备、第二中心设备、与第一中心设备连接的从设备、以及与第二中心设备连接的从设备,高级网络的网络信息包括第一次级网络的网络信息和第二次级网络的网络信息。In a possible implementation, when the first central device determines that the second central device is the main central device and the first central device is the secondary central device, the first central device is used to send the first central device to the second central device. The network information of the first-level network; the second central device is used to receive the network information of the first-level network; the second central device is used to determine the first-level network information based on the network information of the first-level network and the network information of the second-level network. Network information of the network; wherein, the first advanced network includes a first central device, a second central device, a slave device connected to the first central device, and a slave device connected to the second central device, and the network information of the advanced network includes a third Network information for the primary network and network information for the second secondary network.
在一种可能的实现方式中,第一串网响应包括第二中心设备的设备类型;第一中心设备用于基于第二中心设备的设备类型确定第二中心设备为主中心设备。In a possible implementation, the first network response includes the device type of the second central device; the first central device is configured to determine the second central device as the main central device based on the device type of the second central device.
在另一种可能的实现方式中,第一串网响应包括第二中心设备的硬件配置信息;第一中心设备用于基于第一中心设备的硬件配置信息和第二中心设备的硬件配置信息确定第二中心设备为主中心设备,确定第一中心设备为次中心设备,硬件配置信息用于指示设备的硬件能力,主中心设备的硬件能力高于次中心设备的硬件能力。In another possible implementation, the first network response includes the hardware configuration information of the second central device; the first central device is used to determine based on the hardware configuration information of the first central device and the hardware configuration information of the second central device. The second central device is the main central device, and the first central device is determined to be the secondary central device. The hardware configuration information is used to indicate the hardware capabilities of the device. The hardware capabilities of the primary central device are higher than the hardware capabilities of the secondary central device.
在一种可能的实现方式中,第一串网响应包括第二中心设备的硬件配置信息;第一中心设备用于基于第一中心设备的硬件配置信息和第二中心设备的硬件配置信息确定第一中心设备为主中心设备,确定第二中心设备为次中心设备,硬件配置信息用于指示设备的硬件能力,主中心设备的硬件能力高于次中心设备的硬件能力。In a possible implementation, the first network response includes hardware configuration information of the second central device; the first central device is configured to determine the first central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device. One central device is the main central device, and the second central device is determined to be the secondary central device. The hardware configuration information is used to indicate the hardware capabilities of the device. The hardware capabilities of the primary central device are higher than the hardware capabilities of the secondary central device.
在一种可能的实现方式中,在第一中心设备为主中心设备的情况下: In a possible implementation, when the first central device is the main central device:
测量设备用于确定第一测量业务,测量设备是第一高级网络中与第一中心设备不同的任一设备;测量设备还用于向第一中心设备发送第一测量请求,第一测量请求用于请求第一中心设备许可测量设备执行第一测量业务。The measuring device is used to determine the first measurement service, and the measuring device is any device in the first advanced network that is different from the first central device; the measuring device is also used to send a first measurement request to the first central device, and the first measurement request is Requesting the first central device to allow the measurement device to perform the first measurement service.
第一中心设备用于接收第一高级网络中的测量设备发送的第一测量请求;响应于第一测量请求,第一中心设备用于基于第一高级网络的业务数据判断是否能够确定出第一测量业务的测量结果;其中,第一高级网络的业务数据包括第一高级网络的测量数据和/或第一高级网络中待执行的测量业务,第一高级网络的测量数据包括第一高级网络中已经执行的测量业务产生的数据。The first central device is configured to receive the first measurement request sent by the measurement device in the first advanced network; in response to the first measurement request, the first central device is configured to determine whether the first measurement request can be determined based on the service data of the first advanced network. Measurement results of measurement services; wherein, the service data of the first advanced network includes measurement data of the first advanced network and/or measurement services to be performed in the first advanced network, and the measurement data of the first advanced network includes the measurement data of the first advanced network. Data generated by measurement operations that have been performed.
当第一中心设备基于第一高级网络的业务数据确定出第一测量业务的测量结果时:第一中心设备用于向测量设备发送第一测量业务的测量结果;测量设备用于接收第一测量业务的测量结果。When the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network: the first central device is used to send the measurement result of the first measurement service to the measurement device; the measurement device is used to receive the first measurement Business measurements.
当第一中心设备基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时:第一中心设备用于向测量设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第一中心设备接收测量设备发送的第一测量业务的测量结果;第一中心设备基于第一测量业务的测量结果更新第一高级网络的业务数据。测量设备用于接收第一测量许可;响应于第一测量许可,测量设备用于执行第一测量业务;测量设备用于向第一中心设备发送第一测量业务的测量结果。When the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network: the first central device is used to send a first measurement permission to the measurement device, and the first measurement permission is used to notify the measurement device that it is Allowing execution of the first measurement service; the first central device receives the measurement result of the first measurement service sent by the measurement device; and the first central device updates the service data of the first advanced network based on the measurement result of the first measurement service. The measuring device is configured to receive a first measurement permission; in response to the first measurement permission, the measuring device is configured to perform a first measurement service; and the measuring device is configured to send a measurement result of the first measurement service to the first central device.
在一种可能的实现方式中,第一测量业务包括测量对象和测量内容;其中,测量对象是第一高级网络中与第一中心设备不同的任一设备;测量内容包括以下任一项或多项:测量设备与测量对象之间的距离、测量设备与测量对象之间的方位关系、测量设备与测量对象之间的夹角、测量设备与测量对象之间的内外关系。In a possible implementation, the first measurement service includes a measurement object and measurement content; wherein the measurement object is any device in the first advanced network that is different from the first central device; and the measurement content includes any one or more of the following: Items: the distance between the measuring equipment and the measured object, the azimuth relationship between the measuring equipment and the measured object, the angle between the measuring device and the measured object, and the internal and external relationship between the measuring equipment and the measured object.
在一种可能的实现方式中,当确定第一中心设备为主中心设备时,第一中心设备用于获取第一高级网络中的设备的设备探测类型和设备耗电类型,设备探测类型包括主动探测设备和被动探测设备,设备耗电类型包括长电设备和弱电设备;第一中心设备用于基于第一高级网络中的设备的设备探测类型和设备耗电类型确定第二中心设备为备份设备,第二中心设备的设备探测类型为主动探测设备,且第二中心设备的设备耗电类型为长电设备;第一中心设备用于向第二中心设备发送第一高级网络的网络信息和/或第一高级网络的业务数据。第二中心设备用于向第一中心设备发送第二中心设的设备探测类型和设备耗电类型;第二中心设备用于接收第一高级网络的网络信息和/或第一高级网络的业务数据。In a possible implementation, when the first central device is determined to be the main central device, the first central device is used to obtain the device detection type and device power consumption type of the device in the first advanced network, and the device detection type includes active Detection equipment and passive detection equipment, the equipment power consumption types include long-term power equipment and weak power equipment; the first central device is used to determine the second central device as a backup device based on the equipment detection type and equipment power consumption type of the equipment in the first advanced network , the device detection type of the second central device is an active detection device, and the device power consumption type of the second central device is a long-term power device; the first central device is used to send network information of the first advanced network and/or to the second central device Or the business data of the first advanced network. The second central device is used to send the device detection type and device power consumption type of the second central device to the first central device; the second central device is used to receive network information of the first advanced network and/or service data of the first advanced network .
在一种可能的实现方式中,在第一中心设备为主中心设备的情况下:In a possible implementation, when the first central device is the main central device:
测量设备用于确定第一测量业务,测量设备是第二次级网络中与第二中心设备不同的任一设备;测量设备用于向第二中心设备发送第一测量请求,第一测量请求用于请求第二中心设备许可测量设备执行第一测量业务。The measuring device is used to determine the first measurement service, and the measuring device is any device in the second secondary network that is different from the second central device; the measuring device is used to send a first measurement request to the second central device, and the first measurement request is Requesting the second central device to allow the measurement device to perform the first measurement service.
第二中心设备用于接收第二次级网络中的测量设备发送的第一测量请求;响应于第一测量请求,第二中心设备用于判断基于第二次级网络的业务数据是否能够确定出第一测量业务的测量结果;其中,第二次级网络的业务数据包括第二次级网络的测量数据和/或第二次级网 络中待执行的测量业务,第二次级网络的测量数据包括第二次级网络中已经执行的测量业务产生的数据。The second central device is configured to receive the first measurement request sent by the measurement device in the second secondary network; in response to the first measurement request, the second central device is configured to determine whether the service data of the second secondary network can be determined. The measurement results of the first measurement service; wherein the service data of the second secondary network includes the measurement data of the second secondary network and/or the second secondary network The measurement service to be executed in the second secondary network includes the measurement data generated by the measurement service that has been executed in the second secondary network.
当第二中心设备基于第二次级网络的业务数据确定出第一测量业务的测量结果时:第二中心设备用于向测量设备发送第一测量业务的测量结果;测量设备用于接收第一测量业务的测量结果。When the second central device determines the measurement result of the first measurement service based on the service data of the second secondary network: the second central device is used to send the measurement result of the first measurement service to the measurement device; the measurement device is used to receive the first measurement service. Measurement results of the measurement business.
当第二中心设备基于第二次级网络的业务数据无法确定出第一测量业务的测量结果时:第二中心设备用于向测量设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务;第二中心设备用于接收测量设备发送的第一测量业务的测量结果;第二中心设备用于基于第一测量业务的测量结果更新第二次级网络的业务数据。测量设备用于接收第一测量许可;响应于第一测量许可,测量设备用于执行第一测量业务;测量设备用于向第二中心设备发送第一测量业务的测量结果。When the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network: the second central device is used to send the first measurement permission to the measurement device, and the first measurement permission is used to notify the measurement device Permitted to perform the first measurement service; the second central device is used to receive the measurement results of the first measurement service sent by the measurement device; the second central device is used to update the service data of the second secondary network based on the measurement results of the first measurement service . The measuring device is configured to receive a first measurement permission; in response to the first measurement permission, the measuring device is configured to perform a first measurement service; and the measuring device is configured to send a measurement result of the first measurement service to the second central device.
在另一种可能的实现方式中,当第二中心设备基于第二次级网络的业务数据无法确定出第一测量业务的测量结果时:In another possible implementation, when the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network:
第二中心设备用于向第一中心设备发送第二测量请求,第二测量请求用于请求第一中心设备许可测量设备执行第一测量业务。第一中心设备用于接收第二测量请求;响应于第二测量请求,第一中心设备用于判断第一中心设备基于第一高级网络的业务数据是否能够确定出第一测量业务的测量结果。The second central device is used to send a second measurement request to the first central device, and the second measurement request is used to request the first central device to allow the measurement device to perform the first measurement service. The first central device is configured to receive the second measurement request; in response to the second measurement request, the first central device is configured to determine whether the first central device can determine the measurement result of the first measurement service based on the service data of the first advanced network.
当第一中心设备基于第一高级网络的业务数据确定出第一测量业务的测量结果时:第一中心设备用于向第二中心设备发送第一测量业务的测量结果。第二中心设备用于接收第一测量业务的测量结果;第二中心设用于向测量设备发送第一测量业务的测量结果。When the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network: the first central device is configured to send the measurement result of the first measurement service to the second central device. The second central device is configured to receive the measurement results of the first measurement service; the second central device is configured to send the measurement results of the first measurement service to the measurement device.
当第一中心设备基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时:第一中心设备用于向第二中心设备发送第一测量许可,第一测量许可用于通知测量设备被许可执行第一测量业务。第二中心设备用于接收第一中心设备发送的第一测量许可;第二中心设备用于向测量设备发送第一测量许可;第二中心设备用于接收测量设备发送的第一测量业务的测量结果;第二中心设备用于基于第一测量业务的测量结果更新第二次级网络的业务数据。测量设备用于接收第一测量许可;响应于第一测量许可,测量设备用于执行第一测量业务;测量设备用于向第二中心设备发送第一测量业务的测量结果。When the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network: the first central device is used to send the first measurement permission to the second central device, and the first measurement permission is used to notify the measurement The device is permitted to perform the first measurement service. The second central device is used to receive the first measurement permission sent by the first central device; the second central device is used to send the first measurement permission to the measuring device; the second central device is used to receive the measurement of the first measurement service sent by the measuring device. Result: the second central device is used to update the service data of the second secondary network based on the measurement result of the first measurement service. The measuring device is configured to receive a first measurement permission; in response to the first measurement permission, the measuring device is configured to perform a first measurement service; and the measuring device is configured to send a measurement result of the first measurement service to the second central device.
在一种可能的实现方式中,在第二中心设备接收测量设备发送的第一测量业务的测量结果之后,第二中心设备还用于向第一中心设备发送第一测量业务的测量结果。第一中心设备用于接收第一测量业务的测量结果;第一中心设备还用于基于第一测量业务的测量结果更新第一高级网络的业务数据。In a possible implementation, after the second central device receives the measurement result of the first measurement service sent by the measurement device, the second central device is further configured to send the measurement result of the first measurement service to the first central device. The first central device is configured to receive the measurement result of the first measurement service; the first central device is also configured to update the service data of the first advanced network based on the measurement result of the first measurement service.
在一种可能的实现方式中,系统还包括第四中心设备以及与第四中心设备连接的从设备。在第一中心设备确定第一中心设备为主中心设备之后,第一中心设备还用于接收第四中心设备的第二串网请求,第二串网请求用于请求与中心设备建立通信连接;响应于第二串网请求,第一中心设备用于与第四中心设备建立通信连接;第一中心设备用于接收第四中心设备发送的第四次级网络的网络信息,第四次级网络包括第四中心设备以及与第四中心设备连接的从设备;第一中心设备用于基于第一高级网络的网络信息和第四次级网络的网络信息确定第二 高级网络的网络信息,第二高级网络包括第一高级网络和第四次级网络。第四中心设备用于向第一中心设备发送第二串网请求;第四中心设备用于与第一中心设备建立通信连接;第四中心设备用于向第一中心设备发送第四次级网络的网络信息。In a possible implementation, the system further includes a fourth central device and a slave device connected to the fourth central device. After the first central device determines that the first central device is the main central device, the first central device is also used to receive a second network connection request from the fourth central device, and the second network connection request is used to request to establish a communication connection with the central device; In response to the second network string request, the first central device is used to establish a communication connection with the fourth central device; the first central device is used to receive the network information of the fourth secondary network sent by the fourth central device, and the fourth secondary network It includes a fourth central device and a slave device connected to the fourth central device; the first central device is used to determine the second level based on the network information of the first high-level network and the network information of the fourth secondary network. The network information of the high-level network, the second-level network includes the first-level network and the fourth-level network. The fourth central device is used to send a second network connection request to the first central device; the fourth central device is used to establish a communication connection with the first central device; the fourth central device is used to send a fourth secondary network to the first central device network information.
第四方面,本申请提供了一种电子设备,为第一中心设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得通信装置执行上述第一方面任一项可能的实现方式中的组网方法。In a fourth aspect, the present application provides an electronic device, which is a first central device and includes one or more processors and one or more memories. The one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program codes. The computer program codes include computer instructions that, when executed by the one or more processors, cause the communication device to perform The networking method in any possible implementation manner of the first aspect above.
第五方面,本申请提供了另一种电子设备,为第二中心设备,包括一个或多个处理器和一个或多个存储器。该一个或多个存储器与一个或多个处理器耦合,一个或多个存储器用于存储计算机程序代码,计算机程序代码包括计算机指令,当一个或多个处理器执行计算机指令时,使得通信装置执行上述第二方面任一项可能的实现方式中的组网方法。In a fifth aspect, the present application provides another electronic device, which is a second central device, including one or more processors and one or more memories. The one or more memories are coupled to one or more processors, and the one or more memories are used to store computer program codes. The computer program codes include computer instructions that, when executed by the one or more processors, cause the communication device to perform The networking method in any possible implementation manner of the second aspect above.
第六方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在第一中心设备上运行时,使得第一中心设备执行上述第一方面任一项可能的实现方式中的组网方法。In a sixth aspect, embodiments of the present application provide a computer storage medium that includes computer instructions. When the computer instructions are run on a first central device, the first central device causes the first central device to execute any of the possible implementations of the first aspect. networking method.
第七方面,本申请实施例提供了一种计算机存储介质,包括计算机指令,当计算机指令在第二中心设备上运行时,使得第二中心设备执行上述第二方面任一项可能的实现方式中的组网方法。In a seventh aspect, embodiments of the present application provide a computer storage medium that includes computer instructions. When the computer instructions are run on a second central device, the second central device causes the second central device to execute any of the possible implementations of the second aspect. networking method.
第八方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第一方面任一项可能的实现方式中的组网方法。In an eighth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on a computer, it causes the computer to execute the networking method in any of the possible implementations of the first aspect.
第九方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在计算机上运行时,使得计算机执行上述第二方面任一项可能的实现方式中的组网方法。In a ninth aspect, embodiments of the present application provide a computer program product. When the computer program product is run on a computer, it causes the computer to execute the networking method in any of the possible implementations of the second aspect.
其中,第二方面至第九方面的有益效果,请参见第一方面的有益效果,不重复赘述。Among them, for the beneficial effects from the second aspect to the ninth aspect, please refer to the beneficial effects of the first aspect and will not be repeated.
附图说明Description of the drawings
图1为本申请实施例提供的系统10的结构示意图;Figure 1 is a schematic structural diagram of a system 10 provided by an embodiment of the present application;
图2A至图2B为本申请实施例提供的一种多屏协同场景下的场景示意图;Figures 2A and 2B are schematic diagrams of scenes in a multi-screen collaboration scenario provided by embodiments of the present application;
图2C至图2D为本申请实施例提供的一种车载场景下的场景示意图;Figures 2C to 2D are schematic diagrams of a vehicle-mounted scenario provided by an embodiment of the present application;
图2E至图2F为本申请实施例提供的一种分布式协同场景下的场景示意图;Figures 2E to 2F are schematic diagrams of scenarios in a distributed collaboration scenario provided by embodiments of the present application;
图3为本申请实施例提供的一种电子设备100的硬件结构示意图;Figure 3 is a schematic diagram of the hardware structure of an electronic device 100 provided by an embodiment of the present application;
图4A为本申请实施例提供的一种组网方法的流程示意图;Figure 4A is a schematic flow chart of a networking method provided by an embodiment of the present application;
图4B为本申请实施例提供的多种次级网络的结构示意图;Figure 4B is a schematic structural diagram of multiple secondary networks provided by embodiments of the present application;
图5A为本申请实施例提供的一种将多个次级网络连接组成一个高级网络的流程示意图;Figure 5A is a schematic flowchart of connecting multiple secondary networks to form a high-level network according to an embodiment of the present application;
图5B为本申请实施例提供的一种高级网络的结构示意图; Figure 5B is a schematic structural diagram of an advanced network provided by an embodiment of the present application;
图6A为本申请实施例提供的一种中心设备离线后重组高级网络的流程示意图;Figure 6A is a schematic flow chart for reorganizing an advanced network after a central device goes offline according to an embodiment of the present application;
图6B为本申请实施例提供的一种中心设备重新上线后重组高级网络的流程示意图;Figure 6B is a schematic flow chart of reorganizing an advanced network after a central device comes back online according to an embodiment of the present application;
图6C为本申请实施例提供的一种中心设备离线后重组的高级网络的结构示意图;Figure 6C is a schematic structural diagram of an advanced network reorganized after the central device goes offline according to an embodiment of the present application;
图7A为本申请实施例提供的一种次中心设备离线后重组高级网络的流程示意图;Figure 7A is a schematic flow chart for reorganizing an advanced network after a sub-center device goes offline according to an embodiment of the present application;
图7B为本申请实施例提供的一种次中心设备重新上线后重组高级网络的流程示意图;Figure 7B is a schematic flow chart of reorganizing an advanced network after a secondary center device comes back online according to an embodiment of the present application;
图7C为本申请实施例提供的一种次中心设备离线后重组的高级网络的结构示意图;Figure 7C is a schematic structural diagram of an advanced network reorganized after a sub-center device goes offline according to an embodiment of the present application;
图8为本申请实施例提供的一种基于高级网络执行测量业务的流程示意图;Figure 8 is a schematic flow chart for performing measurement services based on an advanced network provided by an embodiment of the present application;
图9为本申请实施例提供的一种基于高级网络执行分布式协同业务的流程示意图。Figure 9 is a schematic flowchart of executing distributed collaborative services based on an advanced network provided by an embodiment of the present application.
具体实施方式Detailed ways
下面将结合附图对本申请实施例中的技术方案进行清楚、详尽地描述。其中,在本申请实施例的描述中,除非另有说明,“/”表示或的意思,例如,A/B可以表示A或B;文本中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B这三种情况,另外,在本申请实施例的描述中,“多个”是指两个或多于两个。The technical solutions in the embodiments of the present application will be described clearly and in detail below with reference to the accompanying drawings. Among them, in the description of the embodiments of this application, unless otherwise stated, "/" means or, for example, A/B can mean A or B; "and/or" in the text is only a way to describe related objects. The association relationship means that there can be three relationships. For example, A and/or B can mean: A exists alone, A and B exist simultaneously, and B exists alone. In addition, in the description of the embodiment of the present application , "plurality" means two or more than two.
以下,术语“第一”、“第二”仅用于描述目的,而不能理解为暗示或暗示相对重要性或者隐含指明所指示的技术特征的数量。由此,限定有“第一”、“第二”的特征可以明示或者隐含地包括一个或者更多个该特征,在本申请实施例的描述中,除非另有说明,“多个”的含义是两个或两个以上。Hereinafter, the terms “first” and “second” are used for descriptive purposes only and shall not be understood as implying or implying relative importance or implicitly specifying the quantity of indicated technical features. Therefore, the features defined as “first” and “second” may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, “plurality” The meaning is two or more.
本申请提供了一种组网方法,该方法首先组建次级网络,次级网络中包括一个中心设备、一个或多个从设备,且每一个从设备与中心设备建立有通信连接。在组建多个次级网络之后,可以在多个中心设备中确定出一个主中心设备,其余中心设备为次中心设备。主中心设备与每个次中心设备建立通信连接,将多个次级网络组成一个高级网络。采用上述高级网络,同一个次级网络的多个从设备不需要通过主中心设备就可以实现互相通信,即可以通过该次级网络的次中心设备实现互通。这样,不仅可以减少主中心设备接收的请求数量,还可以降低从设备发起的请求的处理时间,从而提高高级网络的通信效率,降低时延。此外,基于该高级网络,还可以执行测量业务、分布式协同业务等等。This application provides a networking method. The method first establishes a secondary network. The secondary network includes a central device and one or more slave devices, and each slave device establishes a communication connection with the central device. After establishing multiple secondary networks, a primary central device can be determined among multiple central devices, and the remaining central devices are secondary central devices. The main central device establishes communication connections with each secondary central device, forming multiple secondary networks into a high-level network. Using the above-mentioned advanced network, multiple slave devices of the same secondary network can communicate with each other without going through the main central device, that is, they can communicate with each other through the secondary central device of the secondary network. In this way, not only can the number of requests received by the main central device be reduced, but also the processing time of requests initiated by the slave device can be reduced, thereby improving the communication efficiency of the advanced network and reducing the delay. In addition, based on this advanced network, measurement services, distributed collaboration services, etc. can also be performed.
下面介绍本申请实施例提供的一种系统。The following introduces a system provided by the embodiment of this application.
图1示出了本申请实施例提供的一种系统10的架构示意图。Figure 1 shows a schematic architectural diagram of a system 10 provided by an embodiment of the present application.
如图1所示,通信系统10可以包括多个中心设备和从设备。该多个中心设备可以包括中心设备11和中心设备12,多个从设备可以包括从设备13和从设备14。其中,中心设备11可以与一个或多个从设备(例如,从设备13)组网成第一次级网络。中心设备12可以与一个或多个从设备组网(例如,从设备14)成第二次级网络。该多个中心设备中可以确定其中一个中心设备为主中心设备(例如,中心设备11),其余中心设备为次中心设备(例如,中心设备12)。主中心设备可以与次中心设备建立通信连接,将多个次级网络组成一个高级网络。例如,中心设备11可以与中心设备12建立通信连接,将第一次级网络和第二次级网络组成一个高级网络,本申请实施例中也可以将由第一次级网络和第二次级网络组成的高级网 络称作第一高级网络。As shown in Figure 1, communication system 10 may include a plurality of central devices and slave devices. The plurality of central devices may include a central device 11 and a central device 12 , and the plurality of slave devices may include a slave device 13 and a slave device 14 . The central device 11 may be networked with one or more slave devices (for example, the slave device 13) to form a first secondary network. The central device 12 may be networked with one or more slave devices (eg, slave devices 14) into a second secondary network. Among the plurality of central devices, one central device may be determined to be the main central device (for example, the central device 11), and the remaining central devices are sub-central devices (for example, the central device 12). The main central device can establish a communication connection with the secondary central device, forming multiple secondary networks into a high-level network. For example, the central device 11 can establish a communication connection with the central device 12 to form a first secondary network and a second secondary network into a high-level network. In the embodiment of the present application, the first secondary network and the second secondary network can also be combined. advanced network The network is called the first advanced network.
在上述第一高级网络中,中心设备11为主中心设备,可用于存储第一高级网络的网络信息以及业务数据,也可用于控制第一高级网络中的电子设备执行测量业务,测量业务可以包括以下任一项或多项:测距、测角、测向、测方位、测量内外关系、测量存在关系等等。中心设备12为次中心设备,可用于存储第二次级网络的网络信息。此外,在第一高级网络中任意两个从设备、或任意从设备和任意中心设备可以基于该第一高级网络实现相互通信。In the above-mentioned first advanced network, the central device 11 is the main central device, which can be used to store network information and business data of the first advanced network, and can also be used to control the electronic equipment in the first advanced network to perform measurement services. The measurement services can include Any one or more of the following: distance measurement, angle measurement, direction measurement, orientation measurement, measurement of internal and external relationships, measurement of existential relationships, etc. The central device 12 is a secondary central device and can be used to store network information of the second secondary network. In addition, any two slave devices, or any slave device and any central device in the first high-level network can communicate with each other based on the first high-level network.
在一些实施例中,如图1所示,系统10中的多个中心设备还可以包括中心设备15。其中,中心设备11可以与一个或多个从设备(例如,从设备13)组网成第一次级网络。中心设备12可以与一个或多个从设备组网(例如,从设备14)成第二次级网络。中心设备15可以与其他一个或多个从设备组成第三次级网络。其中,中心设备11为主中心设备,中心设备15和中心设备12为次中心设备。中心设备11可以分别与中心设备15和中心设备12建立通信连接,将第一次级网络、第二次级网络和第三次级网络连接起来,组成第二高级网络。In some embodiments, as shown in FIG. 1 , multiple central devices in the system 10 may also include a central device 15 . The central device 11 may be networked with one or more slave devices (for example, the slave device 13) to form a first secondary network. The central device 12 may be networked with one or more slave devices (eg, slave devices 14) into a second secondary network. The central device 15 may form a third secondary network with one or more other slave devices. Among them, the central device 11 is the main central device, and the central device 15 and the central device 12 are the sub-central devices. The central device 11 can establish communication connections with the central device 15 and the central device 12 respectively, and connect the first secondary network, the second secondary network and the third secondary network to form a second high-level network.
在系统10中,主中心设备与次中心设备之间建立的通信连接、中心设备与从设备之间建立的连接(例如,中心设备11与中心设备12之间的通信连接、中心设备15与中心设备12之间的通信连接、中心设备11与从设备13之间的通信连接,等等)可以是蓝牙连接、无线局域网连接或超宽带(UWB)连接等等。In the system 10, the communication connection established between the main central device and the secondary central device, the connection established between the central device and the slave device (for example, the communication connection between the central device 11 and the central device 12, the communication connection between the central device 15 and the central device) The communication connection between the devices 12, the communication connection between the central device 11 and the slave device 13, etc.) may be a Bluetooth connection, a wireless LAN connection or an Ultra Wideband (UWB) connection, etc.
示例性的,在图1所示的系统10中,中心设备11可以是路由器,中心设备12可以是智能电视,从设备13可以是手机,从设备14可以是智能音箱,中心设备15可以是计算机。For example, in the system 10 shown in Figure 1, the central device 11 can be a router, the central device 12 can be a smart TV, the slave device 13 can be a mobile phone, the slave device 14 can be a smart speaker, and the central device 15 can be a computer. .
可以理解的是,图1所示的系统10只是一个范例,系统10中还可以包括更多的次级网络、更多的中心设备或更多的从设备,且系统10中的中心设备或从设备也可以是平板、智能门锁、投影仪等其他电子设备,本申请在此不做限定。It can be understood that the system 10 shown in Figure 1 is only an example. The system 10 may also include more secondary networks, more central devices or more slave devices, and the central device or slave devices in the system 10 The device can also be a tablet, a smart door lock, a projector and other electronic devices, which are not limited in this application.
需要说明的是,在本申请中,中心设备11也可以称作第一中心设备,中心设备12也可以称作第二中心设备,中心设备15也可以称作第三中心设备或第四中心设备,从设备13也可以称作第一从设备。此外,当中心设备15称作第四中心设备时,中心设备15以及与中心设备15连接的一个或多个从设备可以组成第四次级网络。It should be noted that in this application, the central device 11 can also be called the first central device, the central device 12 can also be called the second central device, and the central device 15 can also be called the third central device or the fourth central device. , the slave device 13 can also be called the first slave device. In addition, when the central device 15 is called a fourth central device, the central device 15 and one or more slave devices connected to the central device 15 may form a fourth secondary network.
下面介绍本申请实施例提供的高级网络的应用场景。The application scenarios of the advanced network provided by the embodiments of this application are introduced below.
图1所示的系统10可以应用于多屏协同场景中,实现不同中心设备之间、不同从设备之间、或是中心设备与从设备之间的文件拖拽互传。在多屏协同场景下,系统10可以包括多个具有屏幕的电子设备,例如平板电脑、显示器、膝上式计算机,等等。示例性的,以系统10包括平板电脑和显示器为例,该平板电脑和显示器可以是系统10中的中心设备(例如,中心设备11、中心设备12或中心设备15),也可以是系统10中的从设备(例如,从设备13或从设备14)。该平板电脑和显示器可以与其他中心设备和/或从设备组成高级网络。例如,该平板电脑和显示器可以采用下图4A所示的组网方法组成一个次级网络,再与其他次级网络的中心设备采用下图5A所示的组网方法将多个次级网络组成一个高级网络。平板电脑和显示器可以基于该高级网络互相通信,建立多屏协同关系。The system 10 shown in Figure 1 can be applied in a multi-screen collaboration scenario to realize drag-and-drop file transfer between different central devices, between different slave devices, or between a central device and slave devices. In a multi-screen collaboration scenario, the system 10 may include multiple electronic devices with screens, such as tablet computers, monitors, laptop computers, and so on. As an example, the system 10 includes a tablet computer and a display. The tablet computer and the display may be central devices in the system 10 (for example, central device 11, central device 12, or central device 15), or they may be central devices in the system 10. slave device (for example, slave device 13 or slave device 14). The tablet and display can form advanced networks with other central and/or slave devices. For example, the tablet computer and monitor can form a secondary network using the networking method shown in Figure 4A below, and then use the networking method shown in Figure 5A below to form multiple secondary networks with the central devices of other secondary networks. An advanced network. Tablets and monitors can communicate with each other based on this advanced network and establish a multi-screen collaborative relationship.
图2A至图2B示出了本申请实施例提供的一种多屏协同场景下的场景示意图。Figures 2A and 2B show a schematic diagram of a multi-screen collaboration scenario provided by an embodiment of the present application.
如图2A所示,在多屏协同场景下,以显示器22在平板电脑21的右侧为例,平板电脑21可以显示界面1000,其中,界面1000上显示有一个窗口1001,窗口1001可以是视频播 放窗口,也可以是文档显示窗口,还可以是图片显示窗口,等等,本申请在此不做限定。平板电脑21可以接收并响应于用户针对窗口1001的向右拖动操作,将窗口1001向右拖动。显示器22可以显示界面2000。例如,界面2000可以是桌面,桌面上可以显示一个或多个图标(例如,影视、回收站,等等)。As shown in Figure 2A, in a multi-screen collaboration scenario, taking the display 22 on the right side of the tablet computer 21 as an example, the tablet computer 21 can display an interface 1000, where a window 1001 is displayed on the interface 1000, and the window 1001 can be a video broadcast The display window can also be a document display window, a picture display window, etc. This application is not limited here. The tablet computer 21 may receive and respond to the user's right-drag operation on the window 1001 and drag the window 1001 to the right. Display 22 may display interface 2000. For example, the interface 2000 may be a desktop, and one or more icons (eg, movies, television, recycle bin, etc.) may be displayed on the desktop.
在平板电脑21检测到窗口1001被拖动到平板电脑21屏幕的右边缘之外的区域时,平板电脑21可以基于平板电脑21与显示器22之间的多屏协同关系,通过高级网络向显示器22发送第一信息,用于通知显示器22显示窗口1001在平板电脑21中未显示的部分。显示器22可以接收并响应于第一信息,显示窗口1001在平板电脑21中未显示的部分。When the tablet computer 21 detects that the window 1001 is dragged to an area outside the right edge of the screen of the tablet computer 21 , the tablet computer 21 can send a message to the display 22 through an advanced network based on the multi-screen collaboration relationship between the tablet computer 21 and the display 22 . The first information is sent to notify the display 22 to display the portion of the window 1001 that is not displayed on the tablet computer 21 . The display 22 may receive and respond to the first information by displaying a portion of the window 1001 that is not displayed on the tablet computer 21 .
示例性的,如图2B所示,平板电脑21显示有界面1100,显示器22显示有界面2100。其中,界面1100上显示有左窗口1101,左窗口1101是图2A中窗口1001的左侧部分。界面2100上显示有右窗口2101,右窗口2101是图2A中窗口1001的右侧部分,而且左窗口1101和右窗口2101可以共同组成窗口1001。For example, as shown in FIG. 2B , the tablet computer 21 displays an interface 1100 and the display 22 displays an interface 2100 . Among them, a left window 1101 is displayed on the interface 1100, and the left window 1101 is the left part of the window 1001 in Figure 2A. A right window 2101 is displayed on the interface 2100. The right window 2101 is the right part of the window 1001 in Figure 2A, and the left window 1101 and the right window 2101 can jointly form the window 1001.
需要说明的是,在显示器22在平板电脑21的右侧的情况下,当窗口1001被拖动到平板电脑21屏幕的其他边缘(左边缘、上边缘或下边缘)之外的区域时,显示器22依旧显示界面2000。It should be noted that when the display 22 is on the right side of the tablet computer 21, when the window 1001 is dragged to an area outside other edges (left edge, top edge or bottom edge) of the tablet computer 21 screen, the display 22 still displays interface 2000.
可以理解的是,在多屏协同场景下,除了平板电脑21界面中显示的窗口之外,其他文件(例如,图标、视频文件、文档,等等)也可以通过拖拽的方式从平板电脑21传输到显示器22上,或从显示器22传输到平板电脑21上。It can be understood that in a multi-screen collaboration scenario, in addition to the windows displayed in the tablet 21 interface, other files (such as icons, video files, documents, etc.) can also be dragged from the tablet 21 Transmitted to the display 22 , or transmitted from the display 22 to the tablet computer 21 .
由上述实施例可知,多屏协同场景下需要确定出平板电脑21和显示器22的方位关系,即确定出平板电脑21在显示器22的左侧、右侧、上侧或下侧,以便在后续拖拽平板电脑21上的文件时确定显示器22是否需要接收和/或显示该被拖拽的文件。亦即,在平板电脑21和显示器22建立多屏协同关系的前后,平板电脑21或显示器22需要基于平板电脑21和显示器22所在的高级网络确定出平板电脑21和显示器22的方位关系。其中,平板电脑21或显示器22基于该高级网络确定出平板电脑21和显示器22的方位关系的具体方式可以参考下属图8所示的实施例,本申请在此暂不详述。As can be seen from the above embodiments, in a multi-screen collaboration scenario, it is necessary to determine the orientation relationship between the tablet computer 21 and the display 22, that is, determine whether the tablet computer 21 is on the left, right, upper, or lower side of the display 22, so as to facilitate subsequent dragging. When dragging a file on the tablet computer 21, it is determined whether the display 22 needs to receive and/or display the dragged file. That is, before and after the tablet computer 21 and the display 22 establish a multi-screen collaboration relationship, the tablet computer 21 or the display 22 needs to determine the orientation relationship between the tablet computer 21 and the display 22 based on the high-level network where the tablet computer 21 and the display 22 are located. The specific method for determining the orientation relationship between the tablet computer 21 or the display 22 based on the advanced network can refer to the embodiment shown in FIG. 8 , which will not be described in detail here.
系统10也可以应用于车载场景中,通过测量手机、平板电脑等电子设备与车辆的内外关系,切换手机、平板电脑的语音模式。在这个应用场景下,系统10可以包括车、一个或多个具有音频模块的电子设备,例如手机、平板电脑、智能音箱,等等。示例性的,以系统10包括车和手机为例,车和手机可以是系统10中的中心设备(例如,中心设备11、中心设备12或中心设备15),也可以是系统10中的从设备(例如,从设备13或从设备14)。该车和手机可以与其他中心设备和/或从设备组成高级网络。例如,该车和手机可以采用下图4A所示的组网方法组成一个次级网络,再与其他次级网络的中心设备采用下图5A所示的组网方法将多个次级网络组成一个高级网络。车和手机可以基于该高级网络互相通信。The system 10 can also be applied in vehicle scenarios to switch the voice mode of mobile phones and tablets by measuring the internal and external relationship between mobile phones, tablets and other electronic devices and the vehicle. In this application scenario, the system 10 may include a car, one or more electronic devices with audio modules, such as mobile phones, tablets, smart speakers, etc. As an example, the system 10 includes a car and a mobile phone. The car and the mobile phone may be central devices in the system 10 (for example, the central device 11, the central device 12, or the central device 15), or they may be slave devices in the system 10. (eg Slave 13 or Slave 14). The car and phone can form an advanced network with other central devices and/or slave devices. For example, the car and mobile phone can use the networking method shown in Figure 4A below to form a secondary network, and then use the networking method shown in Figure 5A below to form multiple secondary networks with the central equipment of other secondary networks. Advanced networking. Cars and mobile phones can communicate with each other based on this advanced network.
图2C至图2D示出了本申请实施例提供的一种车载场景的场景示意图。Figures 2C to 2D show a schematic diagram of a vehicle-mounted scenario provided by an embodiment of the present application.
如图2C所示,手机32在车31的外部。在这种情况下,当手机32基于手机32和车31所在的高级网络确定出手机32在车31的外部时,手机32可以确定音频模式为第一音频模式,通过手机32的音频模块采集或播放音频文件。As shown in FIG. 2C , the mobile phone 32 is outside the car 31 . In this case, when the mobile phone 32 determines that the mobile phone 32 is outside the car 31 based on the advanced network where the mobile phone 32 and the car 31 are located, the mobile phone 32 can determine that the audio mode is the first audio mode, and the audio module of the mobile phone 32 collects or Play audio files.
如图2D所示,手机32在车31的内部。在这种情况下,当手机32基于手机32和车31 所在的高级网络确定出手机32在车31的内部时,手机可以确定音频模式为第二音频模式,通过车31的音频模块采集或播放音频文件。As shown in FIG. 2D , the mobile phone 32 is inside the car 31 . In this case, when phone 32 is based on phone 32 and car 31 When the advanced network where it is located determines that the mobile phone 32 is inside the car 31, the mobile phone can determine that the audio mode is the second audio mode, and collect or play audio files through the audio module of the car 31.
由上述实施例可知,在车载场景中,手机32需要通过车31和手机32所在的高级网络确定出手机32与车31的内外关系,这样,才可以基于手机32和车31的内外关系确定出音频模式。其中,基于高级网络确定手机32和车31的内外关系的具体方式可以参考下属图8所示的实施例,本申请在此暂不详述。It can be seen from the above embodiment that in the vehicle scenario, the mobile phone 32 needs to determine the internal and external relationship between the mobile phone 32 and the car 31 through the advanced network where the mobile phone 31 and the mobile phone 32 are located. In this way, the internal and external relationship between the mobile phone 32 and the car 31 can be determined. audio mode. Among them, the specific method of determining the internal and external relationship between the mobile phone 32 and the car 31 based on the advanced network can refer to the embodiment shown in FIG. 8 , which will not be described in detail here in this application.
系统10还可以应用于分布式协同场景中,通过高级网络实现不同中心设备之间、不同从设备之间、或是中心设备与从设备之间的分布式协同工作。在分布式协同场景下,示例性的,以系统10包括手机和平板电脑为例,该手机和平板电脑可以是系统10中的中心设备(例如,中心设备11、中心设备12或中心设备15),也可以是系统10中的从设备(例如,从设备13或从设备14)。该手机和平板电脑可以与其他中心设备和/或从设备组成高级网络。例如,该手机和平板电脑可以采用下图4A所示的组网方法组成一个次级网络,再与其他次级网络的中心设备采用下图5A所示的组网方法将多个次级网络组成一个高级网络。平板电脑和手机可以基于该高级网络互相通信,建立分布式协同关系。The system 10 can also be applied in distributed collaboration scenarios to achieve distributed collaborative work between different central devices, between different slave devices, or between central devices and slave devices through advanced networks. In a distributed collaboration scenario, for example, the system 10 includes a mobile phone and a tablet computer. The mobile phone and tablet computer may be the central device in the system 10 (for example, the central device 11, the central device 12, or the central device 15) , or it can be a slave device in the system 10 (for example, the slave device 13 or the slave device 14). The phones and tablets can form advanced networks with other central and/or slave devices. For example, the mobile phone and tablet computer can use the networking method shown in Figure 4A below to form a secondary network, and then use the networking method shown in Figure 5A below to form multiple secondary networks with the central equipment of other secondary networks. An advanced network. Tablets and mobile phones can communicate with each other based on this advanced network and establish a distributed collaborative relationship.
图2E至图2F示出了本申请实施例提供的分布式协同场景。Figures 2E to 2F illustrate distributed collaboration scenarios provided by embodiments of the present application.
如图2E所示,手机41与平板电脑42建立有分布式协同关系。手机41显示有界面3000,界面3000可以包括文档目录,文档目录可以包括一个或多个文档的名称,例如操作指南3001、会议流程、参会人员信息,等等。平板电脑42显示有界面4000,例如,界面4000可以是桌面,桌面上可以显示一个或多个图标(例如,影视、音乐,等等)。As shown in Figure 2E, a distributed collaboration relationship is established between the mobile phone 41 and the tablet computer 42. The mobile phone 41 displays an interface 3000. The interface 3000 may include a document directory. The document directory may include the names of one or more documents, such as operation guide 3001, meeting procedures, participant information, and so on. The tablet computer 42 displays an interface 4000. For example, the interface 4000 may be a desktop, and one or more icons (for example, movies, television, music, etc.) may be displayed on the desktop.
手机41可以接收并响应于用户针对文档目录中的操作指南3001的点击操作,基于手机41和平板电脑42的分布式协同关系,通过手机41和平板电脑42所在的高级网络向平板电脑42发送第二信息,第二信息用于指示平板电脑显示操作指南的正文内容。平板电脑42可以接收并响应于手机41发送的第二信息,显示图2F中的界面4100。如图2F所示,界面4100中可以包括文档窗口4101,该文档窗口4101可用于显示操作指南的正文内容。The mobile phone 41 can receive and respond to the user's click operation on the operation guide 3001 in the document directory. Based on the distributed collaboration relationship between the mobile phone 41 and the tablet computer 42, it sends the first step to the tablet computer 42 through the advanced network where the mobile phone 41 and the tablet computer 42 are located. The second information is used to instruct the tablet computer to display the text content of the operation guide. The tablet computer 42 can receive and respond to the second information sent by the mobile phone 41 and display the interface 4100 in Figure 2F. As shown in Figure 2F, the interface 4100 may include a document window 4101, which may be used to display the text content of the operation guide.
需要说明的是,在分布式协同场景下,手机41和平板电脑42还可以执行其他的协同工作,例如,平板电脑42可以调用手机41的通信模块实现语音通话、通过平板电脑42接听手机41的视频通话等等,本申请在此不做限定。It should be noted that in a distributed collaboration scenario, the mobile phone 41 and the tablet 42 can also perform other collaborative work. For example, the tablet 42 can call the communication module of the mobile phone 41 to implement voice calls, and answer the calls of the mobile phone 41 through the tablet 42 Video calls, etc. are not limited in this application.
在分布式协同场景下,需要确定出手机41和平板电脑42的距离关系,当手机41与平板电脑42的距离小于等于第一距离阈值时,手机41和平板电脑42可以建立分布式协同关系。因此,在手机41和平板电脑42建立分布式协同关系的前后,手机41或平板电脑42需要基于平板电脑42和手机41所在的高级网络确定出手机41和平板电脑42之间的距离。其中,基于高级网络确定手机41和平板电脑42之间距离的具体方式可以参考下属图8所示的实施例,本申请在此暂不详述。In a distributed collaboration scenario, the distance relationship between the mobile phone 41 and the tablet computer 42 needs to be determined. When the distance between the mobile phone 41 and the tablet computer 42 is less than or equal to the first distance threshold, the mobile phone 41 and the tablet computer 42 can establish a distributed collaboration relationship. Therefore, before and after the mobile phone 41 and the tablet computer 42 establish a distributed collaborative relationship, the mobile phone 41 or the tablet computer 42 needs to determine the distance between the mobile phone 41 and the tablet computer 42 based on the high-level network where the tablet computer 42 and the mobile phone 41 are located. The specific method of determining the distance between the mobile phone 41 and the tablet computer 42 based on the advanced network may refer to the embodiment shown in FIG. 8 , which will not be described in detail here.
图3示出了电子设备100的硬件结构示意图。FIG. 3 shows a schematic diagram of the hardware structure of the electronic device 100.
电子设备100可以是手机、平板电脑、桌面型计算机、膝上型计算机、手持计算机、笔记本电脑、超级移动个人计算机(ultra-mobile personal computer,UMPC)、上网本,以及蜂窝电话、个人数字助理(personal digital assistant,PDA)、增强现实(augmented reality,AR) 设备、虚拟现实(virtual reality,VR)设备、人工智能(artificial intelligence,AI)设备、可穿戴式设备、车载设备、智能家居设备和/或智慧城市设备,本申请实施例对该电子设备的具体类型不作特殊限制。The electronic device 100 may be a mobile phone, a tablet computer, a desktop computer, a laptop computer, a handheld computer, a notebook computer, an ultra-mobile personal computer (UMPC), a netbook, a cellular phone, a personal digital assistant (personal digital assistant) digital assistant (PDA), augmented reality (AR) device, virtual reality (VR) device, artificial intelligence (AI) device, wearable device, vehicle-mounted device, smart home device and/or smart city device, the embodiments of the present application are specific to the electronic device There are no special restrictions on the type.
电子设备100可以包括处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,传感器模块180,按键190,摄像头193,显示屏194等。其中传感器模块180可以包括陀螺仪传感器180B,加速度传感器180E,距离传感器180F,触摸传感器180K等。The electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2 , mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, sensor module 180, button 190, camera 193, display screen 194, etc. The sensor module 180 may include a gyroscope sensor 180B, an acceleration sensor 180E, a distance sensor 180F, a touch sensor 180K, etc.
可以理解的是,本发明实施例示意的结构并不构成对电子设备100的具体限定。在本申请另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。It can be understood that the structure illustrated in the embodiment of the present invention does not constitute a specific limitation on the electronic device 100 . In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figures, or some components may be combined, some components may be separated, or some components may be arranged differently. The components illustrated may be implemented in hardware, software, or a combination of software and hardware.
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processing unit (GPU), and an image signal processor. (image signal processor, ISP), controller, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural network processor (neural-network processing unit, NPU), etc. Among them, different processing units can be independent devices or integrated in one or more processors.
控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。The controller can generate operation control signals based on the instruction operation code and timing signals to complete the control of fetching and executing instructions.
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in processor 110 is cache memory. This memory may hold instructions or data that have been recently used or recycled by processor 110 . If the processor 110 needs to use the instructions or data again, it can be called directly from the memory. Repeated access is avoided and the waiting time of the processor 110 is reduced, thus improving the efficiency of the system.
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。In some embodiments, processor 110 may include one or more interfaces. Interfaces may include integrated circuit (inter-integrated circuit, I2C) interface, integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, pulse code modulation (pulse code modulation, PCM) interface, universal asynchronous receiver and transmitter (universal asynchronous receiver/transmitter (UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and /or universal serial bus (USB) interface, etc.
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备100的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。The charging management module 140 is used to receive charging input from the charger. Among them, the charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from the wired charger through the USB interface 130 . In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through the wireless charging coil of the electronic device 100 . While the charging management module 140 charges the battery 142, it can also provide power to the electronic device through the power management module 141.
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141 也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the display screen 194, the camera 193, the wireless communication module 160, and the like. The power management module 141 can also be used to monitor battery capacity, battery cycle times, battery health status (leakage, impedance) and other parameters. In some other embodiments, power management module 141 It may also be provided in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may also be provided in the same device.
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example: Antenna 1 can be reused as a diversity antenna for a wireless LAN. In other embodiments, antennas may be used in conjunction with tuning switches.
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。The mobile communication module 150 can provide solutions for wireless communication including 2G/3G/4G/5G applied on the electronic device 100 . The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves through the antenna 1, perform filtering, amplification and other processing on the received electromagnetic waves, and transmit them to the modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves through the antenna 1 for radiation. In some embodiments, at least part of the functional modules of the mobile communication module 150 may be disposed in the processor 110 . In some embodiments, at least part of the functional modules of the mobile communication module 150 and at least part of the modules of the processor 110 may be provided in the same device.
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(bluetooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号解调以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。The wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) network), Bluetooth (bluetooth, BT), and global navigation satellites. System (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2 , demodulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 . The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves through the antenna 2 for radiation.
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology. The wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code division multiple access (wideband code division multiple access, WCDMA), time division code division multiple access (time-division code division multiple access, TD-SCDMA), long term evolution (long term evolution, LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc. The GNSS may include global positioning system (GPS), global navigation satellite system (GLONASS), Beidou navigation satellite system (BDS), quasi-zenith satellite system (quasi) -zenith satellite system (QZSS) and/or satellite based augmentation systems (SBAS).
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。The electronic device 100 implements display functions through a GPU, a display screen 194, an application processor, and the like. The GPU is an image processing microprocessor and is connected to the display screen 194 and the application processor. GPUs are used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备100的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。 NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and can continuously learn by itself. Intelligent cognitive applications of the electronic device 100 can be implemented through the NPU, such as image recognition, face recognition, speech recognition, text understanding, etc.
内部存储器121可以包括一个或多个随机存取存储器(random access memory,RAM)和一个或多个非易失性存储器(non-volatile memory,NVM)。The internal memory 121 may include one or more random access memories (RAM) and one or more non-volatile memories (NVM).
随机存取存储器可以包括静态随机存储器(static random-access memory,SRAM)、动态随机存储器(dynamic random access memory,DRAM)、同步动态随机存储器(synchronous dynamic random access memory,SDRAM)、双倍资料率同步动态随机存取存储器(double data rate synchronous dynamic random access memory,DDR SDRAM,例如第五代DDR SDRAM一般称为DDR5SDRAM)等;非易失性存储器可以包括磁盘存储器件、快闪存储器(flash memory)。Random access memory can include static random-access memory (SRAM), dynamic random-access memory (DRAM), synchronous dynamic random-access memory (SDRAM), double data rate synchronous Dynamic random access memory (double data rate synchronous dynamic random access memory, DDR SDRAM, for example, the fifth generation DDR SDRAM is generally called DDR5SDRAM), etc.; non-volatile memory can include disk storage devices and flash memory (flash memory).
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。The electronic device 100 can implement audio functions through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone interface 170D, and the application processor. Such as music playback, recording, etc.
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 .
扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。电子设备100可以通过扬声器170A收听音乐,或收听免提通话。Speaker 170A, also called "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music through the speaker 170A, or listen to hands-free calls.
受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。当电子设备100接听电话或语音信息时,可以通过将受话器170B靠近人耳接听语音。Receiver 170B, also called "earpiece", is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a call or a voice message, the voice can be heard by bringing the receiver 170B close to the human ear.
麦克风170C,也称“话筒”,“传声器”,用于将声音信号转换为电信号。当拨打电话或发送语音信息时,用户可以通过人嘴靠近麦克风170C发声,将声音信号输入到麦克风170C。电子设备100可以设置至少一个麦克风170C。在另一些实施例中,电子设备100可以设置两个麦克风170C,除了采集声音信号,还可以实现降噪功能。在另一些实施例中,电子设备100还可以设置三个,四个或更多麦克风170C,实现采集声音信号,降噪,还可以识别声音来源,实现定向录音功能等。Microphone 170C, also called "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak close to the microphone 170C with the human mouth and input the sound signal to the microphone 170C. The electronic device 100 may be provided with at least one microphone 170C. In other embodiments, the electronic device 100 may be provided with two microphones 170C, which in addition to collecting sound signals, may also implement a noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify sound sources, and implement directional recording functions, etc.
陀螺仪传感器180B可以用于确定电子设备100的运动姿态。在一些实施例中,可以通过陀螺仪传感器180B确定电子设备100围绕三个轴(即,x,y和z轴)的角速度。陀螺仪传感器180B可以用于拍摄防抖。示例性的,当按下快门,陀螺仪传感器180B检测电子设备100抖动的角度,根据角度计算出镜头模组需要补偿的距离,让镜头通过反向运动抵消电子设备100的抖动,实现防抖。陀螺仪传感器180B还可以用于导航,体感游戏场景。The gyro sensor 180B may be used to determine the motion posture of the electronic device 100 . In some embodiments, the angular velocity of electronic device 100 about three axes (ie, x, y, and z axes) may be determined by gyro sensor 180B. The gyro sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyro sensor 180B detects the angle at which the electronic device 100 shakes, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shake of the electronic device 100 through reverse movement to achieve anti-shake. The gyro sensor 180B can also be used for navigation and somatosensory game scenes.
加速度传感器180E可检测电子设备100在各个方向上(一般为三轴)加速度的大小。当电子设备100静止时可检测出重力的大小及方向。还可以用于识别电子设备姿态,应用于横竖屏切换,计步器等应用。The acceleration sensor 180E can detect the acceleration of the electronic device 100 in various directions (generally three axes). When the electronic device 100 is stationary, the magnitude and direction of gravity can be detected. It can also be used to identify the posture of electronic devices and be used in horizontal and vertical screen switching, pedometer and other applications.
距离传感器180F,用于测量距离。电子设备100可以通过红外或激光测量距离。在一些实施例中,拍摄场景,电子设备100可以利用距离传感器180F测距以实现快速对焦。Distance sensor 180F for measuring distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 may utilize the distance sensor 180F to measure distance to achieve fast focusing.
触摸传感器180K,也称“触控器件”。触摸传感器180K可以设置于显示屏194,由触摸传感器180K与显示屏194组成触摸屏,也称“触控屏”。触摸传感器180K用于检测作用于其上或附近的触摸操作。触摸传感器可以将检测到的触摸操作传递给应用处理器,以确定触摸事件类型。可以通过显示屏194提供与触摸操作相关的视觉输出。在另一些实施例中,触摸传感器180K也可以设置于电子设备100的表面,与显示屏194所处的位置不同。 Touch sensor 180K, also known as "touch device". The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, which is also called a "touch screen". The touch sensor 180K is used to detect a touch operation on or near the touch sensor 180K. The touch sensor can pass the detected touch operation to the application processor to determine the touch event type. Visual output related to the touch operation may be provided through display screen 194 . In other embodiments, the touch sensor 180K may also be disposed on the surface of the electronic device 100 at a location different from that of the display screen 194 .
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。电子设备100可以接收按键输入,产生与电子设备100的用户设置以及功能控制有关的键信号输入。The buttons 190 include a power button, a volume button, etc. Key 190 may be a mechanical key. It can also be a touch button. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100 .
在本申请实施例中,中心设备(例如上述图1、图2A-图2F所示实施例中的中心设备11、中心设备12和中心设备15)的硬件结构可以参考上述图3所示电子设备100的硬件结构。从设备(例如上述图1、图2A-图2F所示实施例中的从设备13和从设备14)的硬件结构也可以参考上述图3所示电子设备100的硬件结构。In the embodiment of the present application, the hardware structure of the central device (such as the central device 11, the central device 12 and the central device 15 in the embodiment shown in FIGS. 1 and 2A-2F) can refer to the electronic device shown in FIG. 3. 100 hardware structure. The hardware structure of the slave device (such as the slave device 13 and the slave device 14 in the embodiment shown in FIG. 1 and FIG. 2A-FIG. 2F) can also refer to the hardware structure of the electronic device 100 shown in FIG. 3 above.
下面介绍本申请实施例中提供的一种组网方法。The following introduces a networking method provided in the embodiment of this application.
图4A示出了本申请实施例提供的一种次级网络的组网流程的流程示意图。FIG. 4A shows a schematic flowchart of a secondary network networking process provided by an embodiment of the present application.
其中,该次级网络的组网流程可以应用于任一个次级网络,在同一个次级网络下包括有一个中心设备、一个或多个从设备。The networking process of the secondary network can be applied to any secondary network, and the same secondary network includes a central device and one or more slave devices.
如图4A所示,次级网络的组网流程可以包括以下步骤:As shown in Figure 4A, the networking process of the secondary network may include the following steps:
S401,中心设备探测从设备。S401, the central device detects the slave device.
中心设备开机之后,可以以广播的形式向周围发送探测信息。从设备接收到中心设备发送的探测信息之后,响应于该探测信息,从设备可以向中心设备发送探测响应。中心设备可以基于接收到的探测响应,确定探测到的从设备。例如,中心设备接收到从设备一发送的探测响应,中心设备可以基于该探测响应确定探测到从设备一,探测响应可以包括该从设备一的设备标识,其中,设备标识可以包括如下任一种:设备名称、媒体存取控制MAC地址和网际协议IP地址。After the central device is turned on, it can send detection information to the surrounding areas in the form of broadcast. After the slave device receives the detection information sent by the central device, in response to the detection information, the slave device can send a detection response to the central device. The central device can determine the detected slave device based on the received detection response. For example, the central device receives a detection response sent from device one, and the central device can determine that slave device one has been detected based on the detection response. The detection response can include the device identification of slave device one, where the device identification can include any of the following: : Device name, Media Access Control MAC address and Internet Protocol IP address.
需要说明的是,中心设备可以通过蓝牙、无线局域网、UWB等方式中的一种或多种探测中心设备周围是否存在从设备。It should be noted that the central device can detect whether there are slave devices around the central device through one or more of Bluetooth, wireless LAN, UWB and other methods.
S402,中心设备向从设备发送第一组网请求,请求与从设备建立通信连接。S402: The central device sends a first networking request to the slave device, requesting to establish a communication connection with the slave device.
在中心设备探测到中心设备周围存在一个或多个从设备之后,中心设备可以向探测到的一个或多个从设备分别发送第一组网请求,该第一组网请求用于请求与从设备建立通信连接。After the central device detects the presence of one or more slave devices around the central device, the central device may send a first networking request to the detected one or more slave devices respectively. The first networking request is used to request communication with the slave device. Establish a communication connection.
S403,从设备向中心设备发送第一响应。S403. The slave device sends the first response to the central device.
从设备接收并响应于第一组网请求,在确定该从设备没有与其他中心设备建立通信连接的情况下,从设备可以向中心设备发送第一响应,第一响应可以用于告知中心设备可以与从设备建立通信连接。第一响应可以包括从设备的连接参数,从设备的连接参数可用于与从设备建立通信连接。The slave device receives and responds to the first networking request. If it is determined that the slave device has not established a communication connection with other central devices, the slave device can send a first response to the central device. The first response can be used to inform the central device that the slave device can Establish a communication connection with the slave device. The first response may include connection parameters of the slave device, and the connection parameters of the slave device may be used to establish a communication connection with the slave device.
在一种可能的实现方式中,响应于第一组网请求,在确定从设备没有与其他中心设备建立通信连接的情况下,从设备可以与中心设备建立通信连接。In a possible implementation manner, in response to the first networking request, if it is determined that the slave device has not established a communication connection with other central devices, the slave device may establish a communication connection with the central device.
S404,中心设备与从设备建立通信连接。S404: The central device establishes a communication connection with the slave device.
接收并响应于第一响应,中心设备可以直接与从设备建立通信连接。Upon receiving and responding to the first response, the central device can directly establish a communication connection with the slave device.
在一种可能的实现方式中,当中心设备有最大可连接设备数量限制时,中心设备在接收到第一响应之后,响应于第一响应,中心设备可以基于中心设备已经连接的从设备的数量和中心设备的最大可连接设备数量确定是否与从设备建立通信连接。例如,当确定中心设备已经连接的从设备的数量小于中心设备的最大可连接设备数量时,响应于第一响应,中心设备可以与从设备建立通信连接。当确定中心设备已经连接的从设备的数量等于中心设备的最大 可连接设备数量时,响应于第一响应,中心设备可以不与从设备建立通信连接。In a possible implementation, when the central device has a limit on the maximum number of connectable devices, after the central device receives the first response, in response to the first response, the central device can based on the number of slave devices that the central device has connected to The maximum number of connectable devices to the central device determines whether to establish a communication connection with the slave device. For example, when it is determined that the number of slave devices to which the central device has been connected is less than the maximum number of connectable devices of the central device, in response to the first response, the central device may establish a communication connection with the slave device. When it is determined that the number of slave devices connected to the central device is equal to the maximum number of central devices When the number of connectable devices is high, in response to the first response, the central device may not establish a communication connection with the slave device.
S405,中心设备保存中心设备所在的次级网络的网络信息。S405: The central device saves the network information of the secondary network where the central device is located.
示例性的,表1示出了一种次级网络的网络信息。By way of example, Table 1 shows network information of a secondary network.
表1次级网络的网络信息
Table 1 Network information of secondary network
如表1所示,次级网络的网络信息可以包括该次级网络中所有设备(中心设备和从设备)的设备标识、设备类型以及中心设备与从设备的连接关系。其中,设备标识可以包括如下任一种:设备名称、媒体存取控制MAC地址和网际协议IP地址。设备类型可以包括中心设备和从设备。连接关系可以用于指示次级网络中两个设备之间是否建立有通信连接。As shown in Table 1, the network information of the secondary network may include the device identifiers, device types, and connection relationships between the central device and the slave devices of all devices (central devices and slave devices) in the secondary network. The device identification may include any of the following: device name, media access control MAC address, and Internet Protocol IP address. Device types can include central devices and slave devices. The connection relationship can be used to indicate whether a communication connection is established between two devices in the secondary network.
具体的,如表1所示,该次级网络中,包括两个设备,其设备标识分别为U1和U2。其中,设备标识为U1的设备对应的设备类型为中心设备,设备标识为U2的设备对应的设备类型为从设备,且设备标识为U1的设备与设备标识为U2的设备之间建立有通信连接。根据表1所示的次级网络的网络信息可知,在该次级网络中,中心设备的设备标识为U1,从设备的设备标识为U2,且中心设备与从设备之间建立有通信连接。Specifically, as shown in Table 1, the secondary network includes two devices, whose device identifiers are U1 and U2 respectively. Among them, the device type corresponding to the device ID U1 is the central device, the device type corresponding to the device ID U2 is the slave device, and a communication connection is established between the device ID U1 and the device ID U2. . According to the network information of the secondary network shown in Table 1, in the secondary network, the device identifier of the central device is U1, the device identifier of the slave device is U2, and a communication connection is established between the central device and the slave device.
在一些实施例中,次级网络的网络信息还可以包括该次级网络的中心设备与从设备的连接形式、中心设备的硬件配置、从设备的硬件配置,等等,本申请在此不做限定。In some embodiments, the network information of the secondary network may also include the connection form between the central device and the slave devices of the secondary network, the hardware configuration of the central device, the hardware configuration of the slave devices, etc., which is not covered in this application. limited.
需要说明的是,中心设备可以在次级网络组建完毕之后保存该次级网络的网络信息。在另一种可能的实现方式中,中心设备可以在次级网络的组建过程中分多次保存次级网络的网络信息。例如,当中心设备与多个从设备组建次级网络时,中心设备可以在与其中一个从设备建立通信连接之后,可以先保存与该从设备相关的部分次级网络的网络信息,即先将该从设备的设备标识、设备类型、中心设备与该从设备的连接关系保存至次级网络的网络信息中。It should be noted that the central device can save the network information of the secondary network after the secondary network is established. In another possible implementation, the central device can save the network information of the secondary network multiple times during the establishment process of the secondary network. For example, when the central device forms a secondary network with multiple slave devices, after establishing a communication connection with one of the slave devices, the central device can first save some of the network information of the secondary network related to the slave device, that is, first The device identification, device type, and connection relationship between the central device and the slave device are saved in the network information of the secondary network.
采用上述方法,可以以中心设备11为中心设备、以从设备13等电子设备为从设备建立第一次级网络。类似的,也可以采用上述方式建立以中心设备12为中心设备、以从设备14为从设备的第二次级网络。其他中心设备也可以按照上述方法与一个或多个从设备建立次级网络,例如,在图2A所示的多屏协同场景中,平板电脑21和显示器22可以采用图4A所示方法建立一个次级网络;在图2C所示的车载场景中,车31和手机32也可以采用图4A所示方法建立一个次级网络;在图2E所示分布式协同场景中,手机41和平板电脑42也可以采用图4A所示方法建立一个次级网络,等等,本申请在此不做限定。Using the above method, a first secondary network can be established with the central device 11 as the central device and electronic devices such as the slave device 13 as slave devices. Similarly, the above method can also be used to establish a second secondary network with the central device 12 as the central device and the slave device 14 as the slave device. Other central devices can also establish a secondary network with one or more slave devices according to the above method. For example, in the multi-screen collaboration scenario shown in Figure 2A, the tablet computer 21 and the display 22 can use the method shown in Figure 4A to establish a secondary network. In the vehicle-mounted scenario shown in Figure 2C, the car 31 and the mobile phone 32 can also use the method shown in Figure 4A to establish a secondary network; in the distributed collaboration scenario shown in Figure 2E, the mobile phone 41 and the tablet computer 42 can also use the method shown in Figure 4A to establish a secondary network. A secondary network can be established using the method shown in Figure 4A, etc. This application is not limited here.
下面以图4B所示的系统20为例介绍多个次级网络的组建过程。The following takes the system 20 shown in FIG. 4B as an example to introduce the process of establishing multiple secondary networks.
示例性的,图4B示出了本申请实施例提供的多个次级网络的结构示意图。Exemplarily, FIG. 4B shows a schematic structural diagram of multiple secondary networks provided by the embodiment of the present application.
如图4B所示,系统20中包括多个电子设备,例如,中心设备A、中心设备B、中心设备C、从设备D、从设备E、从设备F、从设备G、从设备H、从设备I、从设备J、从设备K、从设备L、从设备M和从设备N。其中,中心设备可以是前述图4A所示实施例中的中心设备11,从设备可以是图4A所示实施例中的从设备13。As shown in FIG. 4B , the system 20 includes multiple electronic devices, for example, central device A, central device B, central device C, slave device D, slave device E, slave device F, slave device G, slave device H, slave device Device I, slave J, slave K, slave L, slave M and slave N. The central device may be the central device 11 in the embodiment shown in FIG. 4A, and the slave device may be the slave device 13 in the embodiment shown in FIG. 4A.
在中心设备A开机之后,中心设备A可以主动探测周围是否存在有其他电子设备,并向探测到的电子设备发送第一组网请求。例如,当中心设备A探测到从设备M、从设备D和从设备L时,中心设备A可以分别向从设备D、从设备M和从设备L发送第一组网请求,请 求接收第一组网请求的从设备与中心设备A建立通信连接。从设备D在接收到中心设备A发送的第一组网请求之后,可以向中心设备A发送第一响应,告知中心设备A可以与该从设备D建立通信连接。中心设备A接收第一响应之后,可以与从设备D建立通信连接。同样的,中心设备A可以按照上述与从设备D建立通信连接的过程,与从设备L和从设备M也建立连接。由此,上述电子设备可以组建一个以中心设备A为中心设备、从设备D、从设备L和从设备M为从设备的次级网络A0。其中,作为中心设备的中心设备A可以保存该次级网络的网络信息。类似的,在系统20中也可以组建以中心设备B为中心设备,以从设备E、从设备F、从设备N和从设备G为从设备的次级网络B0。在系统20中还可以组建以中心设备C为中心设备,从设备K、从设备J、从设备I和从设备H为从设备的次级网络C0。After the central device A is turned on, the central device A can actively detect whether there are other electronic devices around and send a first networking request to the detected electronic devices. For example, when central device A detects slave device M, slave device D, and slave device L, central device A can send a first networking request to slave device D, slave device M, and slave device L respectively. Please The slave device that receives the first networking request is required to establish a communication connection with central device A. After receiving the first networking request sent by the central device A, the slave device D can send a first response to the central device A, informing the central device A that a communication connection can be established with the slave device D. After receiving the first response, the central device A can establish a communication connection with the slave device D. Similarly, central device A can also establish connections with slave device L and slave device M according to the above-mentioned process of establishing a communication connection with slave device D. Therefore, the above-mentioned electronic devices can form a secondary network A0 with the central device A as the central device and the slave devices D, L and M as slave devices. Among them, the central device A as the central device can save the network information of the secondary network. Similarly, in the system 20, a secondary network B0 with the central device B as the central device and the slave devices E, F, N and G as slave devices can also be established. In the system 20, a secondary network C0 with the central device C as the central device and the slave devices K, J, I and H as slave devices can also be established.
示例性的,表2至表4分别示出了次级网络A0的网络信息、次级网络B0的网络信息、以及次级网络C0的网络信息。For example, Tables 2 to 4 respectively show the network information of the secondary network A0, the network information of the secondary network B0, and the network information of the secondary network C0.
表2次级网络A0的网络信息
Table 2 Network information of secondary network A0
如表2所示,该次级网络A0中,包括四个设备,其设备标识分别为A、D、L和M。其中,设备标识为A的设备对应的设备类型为中心设备,设备标识分别为D、L、M的设备对应的设备类型为从设备,且设备标识为A的设备分别与设备标识为D、L、M的设备之间建立有通信连接。根据表2所示的次级网络A0的网络信息可知,在次级网络A0中,中心设备A的设备标识为A,从设备D的设备标识为D,从设备L的设备标识为L,从设备M的设备标识为M,且中心设备A分别与从设备D、从设备L、从设备M建立有通信连接。As shown in Table 2, the secondary network A0 includes four devices, whose device identifiers are A, D, L, and M respectively. Among them, the device type corresponding to the device with the device identifier A is the central device, the device type corresponding to the device with the device identifiers D, L, and M is the slave device, and the device with the device identifier A is the same as the device identifier D, L, respectively. A communication connection is established between , M's devices. According to the network information of the secondary network A0 shown in Table 2, in the secondary network A0, the device identifier of the central device A is A, the device identifier of the slave device D is D, the device identifier of the slave device L is L, and the device identifier of the slave device L is L. The device identifier of device M is M, and central device A has established communication connections with slave device D, slave device L, and slave device M respectively.
表3次级网络B0的网络信息
Table 3 Network information of secondary network B0
如表3所示,该次级网络B0中,包括五个设备,其设备标识分别为B、E、F、G和N。其中,设备标识为B的设备对应的设备类型为中心设备,设备标识分别为E、F、G、N的设备对应的设备类型为从设备,且设备标识为B的设备分别与设备标识为E、F、G、N的设备之间建立有通信连接。根据表3所示的次级网络B0的网络信息可知,在次级网络B0中,中心设备B的设备标识为B,从设备E的设备标识为E,从设备F的设备标识为F,从设备G的设备标识为G,从设备N的设备标识为N,且中心设备B分别与从设备E、从设备F、从设备G、从设备N建立有通信连接。As shown in Table 3, the secondary network B0 includes five devices, whose device identifiers are B, E, F, G, and N respectively. Among them, the device type corresponding to the device with the device ID B is the central device, the device type corresponding to the devices with the device IDs E, F, G, and N is the slave device, and the device with the device ID B and the device ID E respectively Communication connections are established between the devices of , F, G, and N. According to the network information of the secondary network B0 shown in Table 3, in the secondary network B0, the device identifier of the central device B is B, the device identifier of the slave device E is E, the device identifier of the slave device F is F, and the device identifier of the slave device E is F. The device identifier of device G is G, the device identifier of slave device N is N, and central device B has established communication connections with slave device E, slave device F, slave device G, and slave device N respectively.
表4次级网络C0的网络信息

Table 4 Network information of secondary network C0

如表4所示,该次级网络C0中,包括五个设备,其设备标识分别为C、H、I、J和K。其中,设备标识为C的设备对应的设备类型为中心设备,设备标识分别为H、I、J、K的设备对应的设备类型为从设备,且设备标识为C的设备分别与设备标识为H、I、J、K的设备之间建立有通信连接。根据表4所示的次级网络C0的网络信息可知,在次级网络C0中,中心设备C的设备标识为C,从设备H的设备标识为H,从设备I的设备标识为I,从设备J的设备标识为J,从设备K的设备标识为K,且中心设备C分别与从设备H、从设备I、从设备J、从设备K建立有通信连接。As shown in Table 4, the secondary network C0 includes five devices, whose device identifiers are C, H, I, J, and K respectively. Among them, the device type corresponding to the device with the device ID C is the central device, the device type corresponding to the device IDs H, I, J, and K is the slave device, and the device with the device ID C and the device ID H respectively , communication connections are established between the devices of I, J, and K. According to the network information of the secondary network C0 shown in Table 4, in the secondary network C0, the device identifier of the central device C is C, the device identifier of the slave device H is H, the device identifier of the slave device I is I, and the device identifier of the slave device I is I. The device identifier of device J is J, the device identifier of slave device K is K, and the central device C has established communication connections with slave device H, slave device I, slave device J, and slave device K respectively.
图5A示出了本申请实施例提供的一种高级网络组建方法的流程示意图。FIG. 5A shows a schematic flowchart of an advanced network establishment method provided by an embodiment of the present application.
其中,该高级网络的组网流程可以应用于任一个高级网络,该高级网络可以由两个或两个以上的次级网络组成。下面以第一次级网络和第二次级网络组成第一高级网络为例,说明高级网络的组建流程。The networking process of the high-level network can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks. The following takes the first high-level network formed by the first secondary network and the second secondary network as an example to illustrate the process of establishing the high-level network.
在中心设备11与从设备13建立第一次级网络,中心设备12与从设备14建立第二次级网络的情况下,多个次级网络组成一个高级网络的具体流程如图5A所示,可以包括以下步骤:When the central device 11 and the slave device 13 establish a first secondary network, and the central device 12 and the slave device 14 establish a second secondary network, the specific process of multiple secondary networks forming a high-level network is shown in Figure 5A. The following steps can be included:
S501,中心设备11发送串网请求,用于请求与中心设备建立通信连接。S501. The central device 11 sends a network connection request to request to establish a communication connection with the central device.
在中心设备11与从设备13等其他电子设备建立第一次级网络之后,中心设备11可以以广播形式向周围发送串网请求。串网请求用于与中心设备建立通信连接。After the central device 11 establishes the first secondary network with other electronic devices such as the slave device 13, the central device 11 can send a network connection request to the surroundings in the form of a broadcast. The network connection request is used to establish a communication connection with the central device.
在一些实施例中,串网请求可以包括设备类型获取请求和/或硬件配置信息获取请求,设备类型获取请求可用于请求接收串网请求的设备发送该设备的设备类型,硬件配置信息获取请求可用于请求接收串网请求的设备向中心设备11发送该设备的硬件配置信息。其中,硬件配置信息(以下简称为硬件配置)可以包括设备的内存空间大小、运算速度、功耗大小、续航时间、测量器件(蓝牙模块、IMU器件、UWB器件、WLAN模块)等等中的一项或多项。In some embodiments, the network connection request may include a device type acquisition request and/or a hardware configuration information acquisition request. The device type acquisition request may be used to request the device receiving the network connection request to send the device type of the device. The hardware configuration information acquisition request may be used The device that requests to receive the network connection request sends the hardware configuration information of the device to the central device 11. Among them, the hardware configuration information (hereinafter referred to as hardware configuration) may include one of the device's memory space size, computing speed, power consumption, battery life, measurement device (Bluetooth module, IMU device, UWB device, WLAN module), etc. item or multiple items.
在一种可能的实现方式中,串网请求也可用于请求接收串网请求的设备判断其设备类型,当接收串网请求的设备为中心设备时,串网请求可用于请求该中心设备向中心设备11发送该中心设备的设备类型和硬件配置。当接收串网请求的设备为从设备时,串网请求可用于请求该从设备向中心设备11发送该从设备的设备类型。In a possible implementation, the network connection request can also be used to request the device that receives the network connection request to determine its device type. When the device that receives the network connection request is a central device, the network connection request can be used to request the central device to send the request to the central device. Device 11 sends the device type and hardware configuration of the central device. When the device receiving the network connection request is a slave device, the network connection request can be used to request the slave device to send the device type of the slave device to the central device 11 .
S502,中心设备12向中心设备11发送串网响应,包括中心设备12的设备类型和/或中心设备12的硬件配置。S502: The central device 12 sends a network connection response to the central device 11, including the device type of the central device 12 and/or the hardware configuration of the central device 12.
接收并响应于串网请求,中心设备12可以向中心设备11发送串网响应,串网响应可以包括中心设备12的设备类型和/或中心设备12的硬件配置。其中,中心设备12设备类型用于确定中心设备11是否与中心设备12建立通信连接,中心设备12的硬件配置用于在中心设备11与中心设备12中确定出主中心设备。需要说明的是,上述串网响应可以通过一个响应向中心设备11发送,也可以分成多个响应向中心设备11发送,本申请在此不做限定。After receiving and responding to the network connection request, the central device 12 may send a network connection response to the central device 11 , and the network connection response may include the device type of the central device 12 and/or the hardware configuration of the central device 12 . Among them, the device type of the central device 12 is used to determine whether the central device 11 establishes a communication connection with the central device 12 , and the hardware configuration of the central device 12 is used to determine the main central device among the central device 11 and the central device 12 . It should be noted that the above-mentioned cross-network response can be sent to the central device 11 through one response, or can be divided into multiple responses and sent to the central device 11, which is not limited in this application.
在一些实施例中,当接收串网请求的电子设备为从设备时,响应于串网请求,该从设备可以只向中心设备11发送该从设备的设备类型,无需发送该从设备的硬件配置。当接收串网 请求的电子设备为中心设备时,响应于串网请求,该中心设备发送的串网响应可以只包括中心设备的硬件配置,也可以包括该中心设备的硬件配置和设备类型。此时,中心设备11也可以通过接收的串网响应中是否包括硬件配置判断发送串网响应的设备是否为中心设备。In some embodiments, when the electronic device that receives the network connection request is a slave device, in response to the network connection request, the slave device can only send the device type of the slave device to the central device 11 without sending the hardware configuration of the slave device. . When receiving serial network When the requested electronic device is a central device, in response to the network connection request, the network connection response sent by the central device may only include the hardware configuration of the central device, or may include the hardware configuration and device type of the central device. At this time, the central device 11 may also determine whether the device sending the cross-network response is a central device by whether the received cross-network response includes hardware configuration.
在另一些实施例中,当中心设备12为主中心设备时,响应于串网请求,中心设备12向中心设备11发送的串网响应可以只包括中心设备12的设备类型,用于告知中心设备11中心设备12为主中心设备。In other embodiments, when the central device 12 is the main central device, in response to the network connection request, the network connection response sent by the central device 12 to the central device 11 may only include the device type of the central device 12 to inform the central device 11 central equipment 12 is the main central equipment.
S503,中心设备11基于中心设备11的硬件配置和中心设备12的硬件配置确定中心设备11为主中心设备。S503: The central device 11 determines the central device 11 as the main central device based on the hardware configuration of the central device 11 and the hardware configuration of the central device 12.
中心设备11在接收中心设备12的硬件配置之后,可以基于中心设备12的硬件配置和中心设备11的硬件配置确定出主中心设备。示例性的,中心设备11确定主中心设备的流程可以包括以下步骤:After receiving the hardware configuration of the central device 12, the central device 11 can determine the main central device based on the hardware configuration of the central device 12 and the hardware configuration of the central device 11. Exemplarily, the process for the central device 11 to determine the main central device may include the following steps:
1.中心设备11基于中心设备11的硬件配置确定中心设备11的硬件分数。1. The central device 11 determines the hardware score of the central device 11 based on the hardware configuration of the central device 11 .
中心设备11可以通过加权求和等方式确定中心设备11的硬件分数。例如,在中心设备11的硬件配置包括内存空间大小和运算速度的情况下,中心设备11的硬件分数可以通过下述公式(1)确定:
M=a*X+b*Y    公式(1)
The central device 11 may determine the hardware score of the central device 11 through weighted summation or other methods. For example, in the case where the hardware configuration of the central device 11 includes memory space size and computing speed, the hardware score of the central device 11 can be determined by the following formula (1):
M=a*X+b*Y Formula (1)
在公式(1)中,M代表硬件分数,a和b均为权值,分别代表内存空间大小和运算速度的权重,X代表内存空间大小(例如128GB、1T,等等),Y代表运算速度(例如每秒可执行一百万次浮点数运算、每秒可执行一万亿次浮点数运算,等等)。In formula (1), M represents the hardware score, a and b are both weights, representing the weight of memory space size and computing speed respectively, X represents the memory space size (such as 128GB, 1T, etc.), and Y represents the computing speed. (e.g. one million floating point operations per second, one trillion floating point operations per second, etc.).
2.中心设备11基于中心设备12的硬件配置确定中心设备12的硬件分数。2. The central device 11 determines the hardware score of the central device 12 based on the hardware configuration of the central device 12 .
中心设备12的硬件分数的计算方式可以参考中心设备11的硬件分数的计算方式,此处不再赘述。The calculation method of the hardware score of the central device 12 can refer to the calculation method of the hardware score of the central device 11, which will not be described again here.
3.中心设备11确定硬件分数更高的中心设备为高级网络中的主中心设备,其余中心设备为次中心设备。3. The central device 11 determines that the central device with a higher hardware score is the main central device in the advanced network, and the remaining central devices are secondary central devices.
在一些实施例中,中心设备11的硬件分数高于中心设备12的硬件分数,说明中心设备11的硬件能力更高,因此确定中心设备11为高级网络的主中心设备,中心设备12为次中心设备。在另一些实施例中,中心设备12的硬件分数高于中心设备11的硬件分数,说明中心设备12的硬件能力更高,因此确定中心设备12为高级网络的主中心设备,中心设备11则为次中心设备。In some embodiments, the hardware score of the central device 11 is higher than the hardware score of the central device 12 , indicating that the central device 11 has higher hardware capabilities. Therefore, the central device 11 is determined to be the main central device of the advanced network, and the central device 12 is the secondary center. equipment. In other embodiments, the hardware score of the central device 12 is higher than the hardware score of the central device 11 , indicating that the central device 12 has higher hardware capabilities. Therefore, the central device 12 is determined to be the main central device of the advanced network, and the central device 11 is Secondary center equipment.
在一种可能的实现方式中,当中心设备12发送的串网响应中包括中心设备12的设备类型为主中心设备时,中心设备11还可以基于中心设备12发送的串网响应确定出中心设备12为主中心设备。In a possible implementation, when the device type of the central device 12 is included in the network connection response sent by the central device 12 as the main central device, the central device 11 can also determine the central device based on the network connection response sent by the central device 12 12 is the main central equipment.
S504,中心设备11与中心设备12建立通信连接。S504: The central device 11 establishes a communication connection with the central device 12.
中心设备11在接收到中心设备12的设备类型之后,可以基于中心设备12的设备类型确定是否与中心设备12建立通信连接。在本实施例中,由于中心设备12的设备类型为中心设备,中心设备11确定与中心设备12建立通信连接。After receiving the device type of the central device 12, the central device 11 may determine whether to establish a communication connection with the central device 12 based on the device type of the central device 12. In this embodiment, since the device type of the central device 12 is a central device, the central device 11 determines to establish a communication connection with the central device 12 .
在一些实施例中当接收串网请求的设备为从设备时,以从设备14为例,从设备14可以向中心设备11发送从设备14的设备类型(即从设备),中心设备11在接收从设备14的设备 类型之后,可以基于从设备14的设备类型确定不与从设备14建立通信连接。In some embodiments, when the device receiving the cross-network request is a slave device, taking the slave device 14 as an example, the slave device 14 can send the device type of the slave device 14 (ie, slave device) to the central device 11, and the central device 11 receives Device from device 14 After the type, it may be determined not to establish a communication connection with the slave device 14 based on the device type of the slave device 14 .
S505,中心设备11向中心设备12发送信息获取请求,用于请求中心设备12发送第二次级网络的网络信息。S505: The central device 11 sends an information acquisition request to the central device 12, which is used to request the central device 12 to send network information of the second secondary network.
在中心设备11与中心设备12建立通信连接之后,中心设备11所在的第一次级网络和中心设备12所在的第二次级网络可以通过中心设备11和中心设备12连接起来,组成第一高级网络,第一高级网络包括中心设备11、中心设备12、从设备13和从设备14,其中主中心设备为中心设备11,次中心设备为中心设备12。After the central device 11 and the central device 12 establish a communication connection, the first secondary network where the central device 11 is located and the second secondary network where the central device 12 is located can be connected through the central device 11 and the central device 12 to form a first high-level network. Network, the first high-level network includes a central device 11, a central device 12, a slave device 13 and a slave device 14, where the main central device is the central device 11 and the secondary central device is the central device 12.
在确定第一高级网络的主中心设备为中心设备11的情况下,中心设备11可以向中心设备12发送信息获取请求。该信息获取请求可以包括主中心设备的标识,可用于通知中心设备12第一高级网络的主中心设备为中心设备11,并请求中心设备12向主中心设备发送第二次级网络的网络信息。When it is determined that the main central device of the first advanced network is the central device 11 , the central device 11 may send an information acquisition request to the central device 12 . The information acquisition request may include the identification of the main central device, which may be used to notify the central device 12 that the main central device of the first high-level network is the central device 11, and request the central device 12 to send the network information of the second secondary network to the main central device.
示例性的,表5示出了第二次级网络的网络信息。For example, Table 5 shows the network information of the second secondary network.
表5第二次级网络的网络信息
Table 5 Network information of the second secondary network
如表5所示,第二次级网络中,包括两个设备,其设备标识分别为U12和U14。其中,设备标识为U12的设备对应的设备类型为中心设备,设备标识为U14的设备对应的设备类型为从设备,且设备标识为U12的设备与设备标识为U14的设备之间建立有通信连接。根据表5所示的次级网络的网络信息可知,在该第二次级网络中,中心设备12的设备标识为U12,从设备14的设备标识为U14,且中心设备12与从设备14之间建立有通信连接。As shown in Table 5, the second secondary network includes two devices, whose device identifiers are U12 and U14 respectively. Among them, the device type corresponding to the device identification U12 is the central device, the device type corresponding to the device identification U14 is the slave device, and a communication connection is established between the device identification U12 and the device identification U14. . According to the network information of the secondary network shown in Table 5, in the second secondary network, the device identification of the central device 12 is U12, the device identification of the slave device 14 is U14, and the difference between the central device 12 and the slave device 14 is A communication connection is established between them.
可以理解的是,当确定主中心设备为中心设备12时,也可以由中心设备12向中心设备11发送信息获取请求,请求中心设备11向中心设备12发送第一次级网络的网络信息,本申请在此不做限定。It can be understood that when the main central device is determined to be the central device 12, the central device 12 can also send an information acquisition request to the central device 11, requesting the central device 11 to send the network information of the first secondary network to the central device 12. Applications are not limited here.
S506,中心设备12向中心设备11发送中心设备12所在的第二次级网络的网络信息。S506: The central device 12 sends the network information of the second secondary network where the central device 12 is located to the central device 11.
接收并响应于信息获取请求,次中心设备向主中心设备发送该中心设备所在的次级网络的网络信息,即,中心设备12可以向中心设备11发送中心设备12所在的第二次级网络的网络信息。其中,第二次级网络的网络信息可以参考上述步骤S505中表5的相关描述,此处不再赘述。After receiving and responding to the information acquisition request, the secondary central device sends the network information of the secondary network where the central device is located to the main central device. That is, the central device 12 can send to the central device 11 the network information of the second secondary network where the central device 12 is located. Internet Information. For the network information of the second secondary network, please refer to the relevant description in Table 5 in the above step S505, which will not be described again here.
S507,中心设备11保存第二次级网络的网络信息。S507: The central device 11 saves the network information of the second secondary network.
中心设备11在接收第二次级网络的网络信息之后,可以将第二次级网络的网络信息保存在第一高级网络的网络信息中。After receiving the network information of the second secondary network, the central device 11 may save the network information of the second secondary network in the network information of the first high-level network.
示例性的,以第一高级网络为例,表6示出了一种第一高级网络的网络信息。Illustratively, taking the first high-level network as an example, Table 6 shows network information of a first high-level network.
表6第一高级网络的网络信息

Table 6 Network information of the first advanced network

如表6所示,第一高级网络中,包括四个设备,其设备标识分别为U11、U12、U13和U14。其中,设备标识分别为U11和U13的设备属于第一次级网络,设备标识分别为U12和U14的设备属于第二次级网络。设备标识为U11的设备对应的设备类型为主中心设备,设备标识为U12的设备对应的设备类型为次中心设备,设备标识分别为U13、U14的设备对应的设备类型为从设备。设备标识为U11的设备分别与设备标识为U12、U13的设备之间建立有通信连接,设备标识为U12的设备分别与设备标识为U11、U14的设备之间建立有通信连接。根据表6所示的第一高级网络的网络信息可知,第一高级网络包括第一次级网络和第二次级网络。第一次级网络中包括中心设备11和从设备13,中心设备11的设备标识为U11,从设备13的设备标识为U13,中心设备11与从设备13之间建立有通信连接。第二次级网络中包括中心设备12和从设备14,中心设备12的设备标识为U12,从设备14的设备标识为U14,中心设备12与从设备14之间建立有通信连接。中心设备11与中心设备12之间建立有通信连接,且中心设备11为主中心设备,中心设备12为次中心设备。As shown in Table 6, the first advanced network includes four devices, whose device identifiers are U11, U12, U13, and U14 respectively. Among them, the devices with device identifiers U11 and U13 belong to the first secondary network, and the devices with device identifiers U12 and U14 belong to the second secondary network. The device type corresponding to the device identification U11 is the main central device, the device type corresponding to the device identification U12 is the secondary central device, and the device type corresponding to the equipment identification U13 and U14 is the slave device. The device with the device ID U11 has communication connections with the devices with the device IDs U12 and U13 respectively, and the device with the device ID U12 has communication connections with the devices with the device IDs U11 and U14 respectively. According to the network information of the first high-level network shown in Table 6, it can be seen that the first high-level network includes a first secondary network and a second secondary network. The first secondary network includes a central device 11 and a slave device 13. The device identifier of the central device 11 is U11, and the device identifier of the slave device 13 is U13. A communication connection is established between the central device 11 and the slave device 13. The second secondary network includes a central device 12 and a slave device 14. The device identifier of the central device 12 is U12, and the device identifier of the slave device 14 is U14. A communication connection is established between the central device 12 and the slave device 14. A communication connection is established between the central device 11 and the central device 12, and the central device 11 is the main central device and the central device 12 is the secondary central device.
采用上述方法,可以将多个次级网络连接起来,组成一个高级网络。例如,在图2A所示的多屏协同场景中,由平板电脑21和显示器组成的次级网络可以与其他次级网络基于图5A所示的方法组建一个高级网络。又例如,在图2C所示的车载场景中,由车31和手机32组成的次级网络也可以与其他次级网络基于上述图5A所示的方法组建一个高级网络,等等,本申请再次不做限定。Using the above method, multiple secondary networks can be connected to form a high-level network. For example, in the multi-screen collaboration scenario shown in Figure 2A, the secondary network composed of the tablet computer 21 and the display can form a high-level network with other secondary networks based on the method shown in Figure 5A. For another example, in the vehicle scenario shown in Figure 2C, the secondary network composed of the car 31 and the mobile phone 32 can also form an advanced network with other secondary networks based on the method shown in Figure 5A above, etc., this application again No restrictions.
由于高级网络的主中心设备是在次级网络的中心设备中选取的,而不是在高级网络的所有设备中选取的,提高了中心设备的选取效率,也提高了组网的效率。此外,采用上述高级网络的结构,从设备只需要经过至多一个中继设备就可以实现与中心设备的通信,即该高级网络中的通信具有更低的时延。Since the main central device of the high-level network is selected from the central devices of the secondary network, rather than from all the devices of the high-level network, the selection efficiency of the central device is improved, and the efficiency of the network is also improved. In addition, using the structure of the above-mentioned advanced network, the slave device only needs to pass through at most one relay device to communicate with the central device, that is, the communication in the advanced network has lower latency.
图5B示出了一种由多个次级网络合并成的高级网络的结构示意图。Figure 5B shows a schematic structural diagram of a high-level network that is merged into multiple secondary networks.
如图5B所示,高级网络30中可以包括次级网络A0、次级网络B0和次级网络C0,上述三个次级网络的具体内容可以参考上述图4B所示实施例中的相关描述,本申请在此不再赘述。上述三个次级网络可以采用图5A所示的方法合并为一个高级网络。As shown in Figure 5B, the high-level network 30 may include a secondary network A0, a secondary network B0 and a secondary network C0. For the specific content of the above three secondary networks, please refer to the relevant descriptions in the embodiment shown in Figure 4B. This application will not go into details here. The above three secondary networks can be combined into a high-level network using the method shown in Figure 5A.
示例性的,在次级网络A0组建完毕之后,中心设备A可以向周围的电子设备(例如,从设备E、从设备N、从设备F和中心设备B等等)发送串网请求。当从设备接收到该串网请求时,以从设备E为例,从设备E可以向中心设备A发送从设备E的设备类型,用于告知中心设备A从设备E的设备类型为从设备。当中心设备B接收到该串网请求时,中心设备B可以向中心设备A发送中心设备B的设备类型和中心设备B的硬件配置。中心设备A在确定中心设备B为中心设备之后,可以与中心设备B建立通信连接,组成一个高级网络。此外,中心设备A可以基于中心设备A的硬件配置和中心设备B的硬件配置确定出该高级网络的主中心设备为中心设备B。For example, after the secondary network A0 is established, the central device A can send a network connection request to surrounding electronic devices (for example, slave device E, slave device N, slave device F, central device B, etc.). When the slave device receives the network connection request, taking slave device E as an example, slave device E can send the device type of slave device E to central device A, which is used to inform central device A that the device type of slave device E is a slave device. When central device B receives the network connection request, central device B can send the device type of central device B and the hardware configuration of central device B to central device A. After central device A determines that central device B is the central device, it can establish a communication connection with central device B to form an advanced network. In addition, central device A can determine that the main central device of the advanced network is central device B based on the hardware configuration of central device A and the hardware configuration of central device B.
当次级网络C0组建完毕时,次级网络A0和次级网络B0已经组成一个高级网络,此时,中心设备C可以向周围的电子设备发送串网请求。在这种情况下,当中心设备B接收到中心设备C发送的串网请求时,中心设备B可以向中心设备C发送中心设备B的设备类型,用 于告知中心设备C中心设备B为主中心设备。中心设备C在接收到中心设备B的设备类型之后,确定与中心设备B建立通信连接,将次级网络C0连接到以中心设备B为中心设备的高级网络中。这样,上述由次级网络A0和次级网络B0组成的高级网络可以与次级网络C0建立连接,组成一个更大的高级网络30。When the secondary network C0 is completed, the secondary network A0 and the secondary network B0 have formed an advanced network. At this time, the central device C can send network connection requests to surrounding electronic devices. In this case, when central device B receives the network connection request sent by central device C, central device B can send the device type of central device B to central device C, using Inform central device C and central device B to be the main central device. After receiving the device type of central device B, central device C determines to establish a communication connection with central device B, and connects secondary network C0 to the high-level network with central device B as the central device. In this way, the above-mentioned high-level network composed of the secondary network A0 and the secondary network B0 can establish a connection with the secondary network C0 to form a larger high-level network 30.
需要说明的是,在次级网络的合并过程中,各个次级网络中,中心设备上连接的从设备不会发生变化。而且,中心设备B作为高级网络30的主中心设备可以保存高级网络30的网络信息。It should be noted that during the merging process of secondary networks, the slave devices connected to the central device in each secondary network will not change. Furthermore, the center device B, as the main center device of the advanced network 30, can save the network information of the advanced network 30.
示例性的,表7示出了高级网络30的网络信息。By way of example, Table 7 shows network information of the advanced network 30 .
如表7所示,高级网络30中,包括十四个设备,其设备标识分别为A、B、C、D、E、F、G、H、I、J、K、L、M和N。其中,设备标识分别为A、D、L和M的设备属于次级网络A0,设备标识分别为B、E、F、G和N的设备属于次级网络B0,设备标识分别为C、H、I、J和K的设备属于次级网络C0。设备标识为B的设备对应的设备类型为主中心设备,设备标识分别为A、C的设备对应的设备类型为次中心设备,设备标识分别为D、E、F、G、H、I、J、K、L、M和N的设备对应的设备类型为从设备。设备标识为A的设备分别与设备标识为B、D、L、M的设备之间建立有通信连接,设备标识为B的设备分别与设备标识为A、C、E、F、G、N的设备之间建立有通信连接,设备标识为C的设备分别与设备标识为B、H、I、J、K的设备之间建立有通信连接。根据表7所示的高级网络30的网络信息可知,高级网络30包括次级网络A0、次级网络B0和次级网络C0。其中,次级网络A0、次级网络B0和次级网络C0的具体内容可以参考上述图4B所示实施例中的相关内容,此处不再赘述。在高级网络30中,中心设备B分别与中心设备A、中心设备C之间建立有通信连接,且中心设备B为主中心设备,中心设备A和中心设备C为次中心设备。As shown in Table 7, the advanced network 30 includes fourteen devices, whose device identifiers are A, B, C, D, E, F, G, H, I, J, K, L, M and N respectively. Among them, the devices with device identifiers A, D, L, and M belong to the secondary network A0, and the devices with device identifiers B, E, F, G, and N belong to the secondary network B0, and the device identifiers are C, H, and The devices of I, J and K belong to the secondary network C0. The equipment type corresponding to the equipment with equipment identification B is the main central equipment, and the equipment type corresponding to the equipment with equipment identifications A and C is secondary central equipment, and the equipment identifications are D, E, F, G, H, I, J respectively. , K, L, M and N devices correspond to device types as slave devices. The device with the device ID A has established communication connections with the devices with the device IDs B, D, L, and M respectively. The device with the device ID B has communication connections with the devices with the device IDs A, C, E, F, G, and N respectively. Communication connections are established between devices, and communication connections are established between the device with the device identifier C and the devices with the device identifiers B, H, I, J, and K respectively. According to the network information of the high-level network 30 shown in Table 7, the high-level network 30 includes a secondary network A0, a secondary network B0 and a secondary network C0. For the specific content of the secondary network A0, the secondary network B0 and the secondary network C0, reference can be made to the relevant content in the embodiment shown in FIG. 4B and will not be described again here. In the advanced network 30, central device B has established communication connections with central device A and central device C respectively, and central device B is the main central device, and central device A and central device C are secondary central devices.
表7高级网络30的网络信息
Table 7 Network information of advanced network 30
这样,上述三个次级网络可以合并为一个以中心设备B为主中心设备、中心设备A和中心设备C为次中心设备、其余从设备为从设备的高级网络30。In this way, the above three secondary networks can be merged into an advanced network 30 with central device B as the main central device, central device A and central device C as sub-central devices, and the remaining slave devices as slave devices.
图6A示出了一种主中心设备离线之后重新组网的流程示意图。 Figure 6A shows a schematic flow chart of re-networking after the main central device goes offline.
该主中心设备离线之后重新组网流程可以应用于任一个高级网络,该高级网络可以由两个或两个以上的次级网络组成。下面以第二高级网络为例,说明主中心设备离线之后重新组网的流程。The re-networking process after the main central device goes offline can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks. The following takes the second-level network as an example to illustrate the process of re-networking after the main center device goes offline.
第二高级网络包括中心设备11、中心设备12、中心设备15、从设备13和从设备14,其中,中心设备11与从设备13组网第一次级网络、中心设备12与从设备14组成第二次级网络,中心设备15与其他一个或多个从设备组成第三次级网络。中心设备11为主中心设备,中心设备11分别与中心设备15和中心设备12建立通信连接。如图6A所示,在上述第二高级网络的主中心设备(即中心设备11)离线的情况下,其余中心设备和从设备重新组网的流程可以包括以下步骤:The second high-level network includes a central device 11, a central device 12, a central device 15, a slave device 13 and a slave device 14. The central device 11 and the slave device 13 form a network and the first secondary network is composed of the central device 12 and the slave device 14. In the second secondary network, the central device 15 and one or more other slave devices form a third secondary network. The central device 11 is the main central device, and the central device 11 establishes communication connections with the central device 15 and the central device 12 respectively. As shown in Figure 6A, when the main central device (i.e. central device 11) of the above-mentioned second advanced network is offline, the process of re-networking of the remaining central devices and slave devices may include the following steps:
S601,中心设备11向中心设备15发送第一离线通知,用于通知中心设备15中心设备11离线。S601. The central device 11 sends a first offline notification to the central device 15, which is used to notify the central device 15 that the central device 11 is offline.
中心设备11离线时,可以向与中心设备11有通信连接的中心设备15发送第一离线通知,该第一离线通知用于通知中心设备15,中心设备11已经离线。When the central device 11 is offline, a first offline notification may be sent to the central device 15 that is connected to the central device 11. The first offline notification is used to notify the central device 15 that the central device 11 is offline.
在一种可能的实现方式中,中心设备11也可以向中心设备12发送该第一离线通知,或是分别向中心设备15和中心设备12发送第一离线通知,本申请在此不做限定。In a possible implementation, the central device 11 can also send the first offline notification to the central device 12, or send the first offline notification to the central device 15 and the central device 12 respectively, which is not limited in this application.
在一些实施例中,当中心设备11意外离线时(例如,断电、故障等情况),原本与中心设备11连接的其他中心设备(中心设备12和中心设备15)可以基于与中心设备11的通信连接确定出中心设备11离线。例如,中心设备12可以基于中心设备12与中心设备11断开的通信连接确定中心设备11离线,中心设备15可以基于中心设备15与中心设备11断开的通信连接确定中心设备11离线。In some embodiments, when the central device 11 goes offline unexpectedly (for example, due to a power outage, malfunction, etc.), other central devices (the central device 12 and the central device 15) that were originally connected to the central device 11 can be configured based on the connection with the central device 11. The communication connection determines that the central device 11 is offline. For example, the central device 12 may determine that the central device 11 is offline based on the disconnected communication connection between the central device 12 and the central device 11 , and the central device 15 may determine that the central device 11 is offline based on the disconnected communication connection between the central device 15 and the central device 11 .
S602,中心设备15与中心设备12建立通信连接。S602: The central device 15 establishes a communication connection with the central device 12.
S603,中心设备15确定中心设备15为新的主中心设备。S603, the central device 15 determines the central device 15 as the new main central device.
接收并响应于第一离线通知,中心设备15与中心设备12可以建立通信连接,将第一次级网络和第二次级网络组建为新的高级网络(即新的高级网络),并基于中心设备15的硬件配置和中心设备12的硬件配置确定出中心设备15为新的高级网络的主中心设备。After receiving and responding to the first offline notification, the central device 15 and the central device 12 can establish a communication connection, form the first secondary network and the second secondary network into a new high-level network (i.e., a new high-level network), and based on the central The hardware configuration of the device 15 and the hardware configuration of the central device 12 determine that the central device 15 is the main central device of the new advanced network.
需要说明的是,步骤S602和步骤S603都是中心设备15响应于第一离线通知执行的步骤,这两个步骤在时间上没有先后顺序的限定,可以同时执行,也可以先执行其中一个,再执行另一个。It should be noted that both steps S602 and S603 are steps executed by the central device 15 in response to the first offline notification. There is no time limit for these two steps. They can be executed at the same time, or one of them can be executed first, and then Execute another one.
在一种可能的实现方式中,响应于第一离线通知,当确定在第一时间阈值内(例如,5秒,15秒,等等)没有接收到中心设备11重新上线的信息时,中心设备15可以与中心设备12建立通信连接,组成新的高级网络并重新确定新的主中心设备。当确定在第一时间阈值内,中心设备15接收到中心设备11重新上线的信息时,中心设备15可以与中心设备11重新建立通信连接。这样,在作为主中心设备的中心设备11短时间离线又重新上线的情况下,可以暂时不执行组建新的高级网络的步骤,节约功耗。In one possible implementation, in response to the first offline notification, when it is determined that no information indicating that the central device 11 is back online is received within a first time threshold (for example, 5 seconds, 15 seconds, etc.), the central device 15 can establish a communication connection with the central device 12, form a new advanced network and re-determine the new main central device. When it is determined that the central device 15 receives the information that the central device 11 comes back online within the first time threshold, the central device 15 can re-establish a communication connection with the central device 11 . In this way, when the central device 11 as the main central device goes offline for a short period of time and comes online again, the steps of establishing a new advanced network can be temporarily omitted to save power consumption.
其中,中心设备15与中心设备12建立通信连接并确定新的主中心设备的具体流程可以参考上述图5A所示实施例中的相关描述,本申请在此不再赘述。For the specific process of establishing a communication connection between the central device 15 and the central device 12 and determining a new main central device, reference can be made to the relevant description in the embodiment shown in FIG. 5A , which will not be described again in this application.
在一些实施例中,如果在中心设备15与中心设备12建立通信连接之前,中心设备15接收到中心设备11重新上线的信息,则中心设备15放弃与中心设备12建立通信连接,并与中 心设备11重新建立通信连接。In some embodiments, if the central device 15 receives information that the central device 11 is back online before the central device 15 establishes a communication connection with the central device 12, the central device 15 gives up establishing a communication connection with the central device 12 and communicates with the central device 12. The central device 11 re-establishes the communication connection.
在一些实施例中,在确定中心设备15为新的主中心设备之后,中心设备15可以保存新组建的高级网络的网络信息,该新的高级网络的网络信息的具体内容以及获取方式可以参考上述图5A所示实施例中的相关内容,本申请在此不再赘述。In some embodiments, after determining that the central device 15 is the new main central device, the central device 15 can save the network information of the newly formed advanced network. For the specific content and acquisition method of the network information of the new advanced network, please refer to the above. The relevant content in the embodiment shown in FIG. 5A will not be described again in this application.
这样,在高级网络的主中心设备离线的情况下,高级网络中的其他电子设备也可以迅速地确定出新的主中心设备,并组建新的高级网络,执行原有的高级网络需要执行的业务。这样可以大大降低由于主中心设备离线造成的业务中断时间,提高了高级网络执行业务的高效性和稳定性。In this way, when the main central device of the advanced network is offline, other electronic devices in the advanced network can quickly determine the new main central device and form a new advanced network to perform the services that the original advanced network needs to perform. . This can greatly reduce the service interruption time caused by the offline main center equipment, and improve the efficiency and stability of advanced network execution services.
在一些实施例中,在新的高级网络组建完成之后,原高级网络的主中心设备重新上线,则新的高级网络可以重组为原高级网络,即主中心设备离线之前的高级网络。In some embodiments, after the new advanced network is established and the main central device of the original advanced network comes online again, the new advanced network can be reorganized into the original advanced network, that is, the advanced network before the main central device went offline.
示例性的,第二高级网络在中心设备11离线后重组为新的高级网络之后,如图6B所示,新的高级网络在中心设备11重新上线后重组为第二高级网络的具体流程可以包括以下步骤:For example, after the second high-level network is reorganized into a new high-level network after the central device 11 goes offline, as shown in FIG. 6B , the specific process of reorganizing the new high-level network into a second high-level network after the central device 11 comes back online may include Following steps:
S604,中心设备11分别向中心设备15和中心设备12发送第一上线通知。S604: The central device 11 sends the first online notification to the central device 15 and the central device 12 respectively.
在中心设备11重新上线之后,中心设备11可以基于其离线之前存储的高级网络的网络信息确定在中心设备11离线之前,与中心设备11有通信连接的设备,并向这些设备(例如中心设备15、中心设备12,等等)发送第一上线通知。第一上线通知可以包括上线信息,该上线信息可用于通知接收第一上线通知的设备主中心设备重新上线,并请求该设备重新建立与中心设备11的通信连接。After the central device 11 comes back online, the central device 11 can determine the devices that had communication connections with the central device 11 before the central device 11 went offline based on the network information of the advanced network stored before the central device 11 went offline, and send notifications to these devices (such as the central device 15 , central device 12, etc.) to send the first online notification. The first online notification may include online information, and the online information may be used to notify the device that receives the first online notification that the central device is back online, and request the device to re-establish a communication connection with the central device 11 .
在一些实施例中,第一上线通知还可以包括中心设备15或中心设备12在第二高级网络中的连接关系。例如,中心设备11向中心设备15发送的第一上线通知可以包括上线信息和中心设备15在第二高级网络中的连接关系,中心设备15在第二高级网络中的连接关系可以包括:中心设备15与中心设备11建立有通信连接、中心设备15与从设备13建立有通信连接。其中,中心设备15或中心设备12在第二高级网络中的连接关系可以从中心设备11保存的第二高级网络的网络信息中获取。中心设备15在第二高级网络中的连接关系可用于指示中心设备15断开除了上述中心设备15在第二高级网络中的连接关系以外的通信连接。In some embodiments, the first online notification may also include the connection relationship of the central device 15 or the central device 12 in the second high-level network. For example, the first online notification sent by the central device 11 to the central device 15 may include online information and the connection relationship of the central device 15 in the second high-level network. The connection relationship of the central device 15 in the second high-level network may include: central device 15 has established a communication connection with the central device 11, and the central device 15 has established a communication connection with the slave device 13. The connection relationship between the central device 15 or the central device 12 in the second high-level network can be obtained from the network information of the second high-level network saved by the central device 11 . The connection relationship of the central device 15 in the second high-level network can be used to instruct the central device 15 to disconnect communication connections other than the above-mentioned connection relationship of the central device 15 in the second high-level network.
S605,中心设备15与中心设备12断开通信连接。S605, the central device 15 disconnects the communication connection from the central device 12.
S606,中心设备15与中心设备11重新建立通信连接。S606: The central device 15 re-establishes a communication connection with the central device 11.
S607,中心设备12与中心设备11重新建立通信连接。S607: The central device 12 re-establishes a communication connection with the central device 11.
接收并响应于第一上线通知,中心设备15、中心设备12分别与中心设备11重新建立通信连接,且中心设备15断开与中心设备12的通信连接。After receiving and responding to the first online notification, the central device 15 and the central device 12 respectively re-establish communication connections with the central device 11 , and the central device 15 disconnects the communication connection with the central device 12 .
在一些实施例中,在中心设备15与中心设备11重新建立通信连接之后,中心设备15还可以向中心设备11发送代理业务数据,该代理业务数据包括中心设备11离线期间,以中心设备15为新的主中心设备的高级网络执行的测量业务产生的数据。中心设备11可以接收并保存这些代理业务数据。In some embodiments, after the central device 15 re-establishes the communication connection with the central device 11, the central device 15 can also send agent service data to the central device 11. The agent service data includes the central device 15 during the period when the central device 11 is offline. The data generated by the measurement service performed by the advanced network of the new main center device. The central device 11 can receive and save these agency business data.
可以理解的是,如果在第二高级网络中,中心设备11还连接有从设备,则原本与中心设备11连接的从设备接收并响应于该第一上线通知,可以与中心设备11重新建立通信连接。在一些实施例中,如果该从设备已经在中心设备11离线期间与其他中心设备(例如中心设备12)建立通信连接,则从设备在接收到中心设备11发送的第一上线通知之后,可以断开与中 心设备12的通信连接并重新建立与中心设备11的通信连接。It can be understood that if in the second advanced network, the central device 11 is also connected to a slave device, the slave device originally connected to the central device 11 receives and responds to the first online notification and can re-establish communication with the central device 11 connect. In some embodiments, if the slave device has established communication connections with other central devices (such as central device 12) while the central device 11 is offline, the slave device can disconnect after receiving the first online notification sent by the central device 11. open and middle The communication connection of the central device 12 and the communication connection with the central device 11 are re-established.
这样,在原高级网络的主中心设备重新上线后,新的高级网络可以基于原高级网络的网络信息重组成原高级网络。In this way, after the main central device of the original advanced network comes back online, the new advanced network can be reorganized into the original advanced network based on the network information of the original advanced network.
在一种可能的实现方式中,除了在高级网络的主中心设备可以保存高级网络的网络信息,其他中心设备和/或从设备也可以保存该高级网络的网络信息作为备份,该其他中心设备和/或从设备在本申请实施例中也可以称作备份设备。以上述实施例中的第二高级网络为例,示例性的,数据备份的具体流程可以包括以下步骤:In a possible implementation, in addition to the main central device in the advanced network that can save the network information of the advanced network, other central devices and/or slave devices can also save the network information of the advanced network as backup. The other central devices and /or the slave device may also be called a backup device in the embodiment of this application. Taking the second advanced network in the above embodiment as an example, the specific process of data backup may include the following steps:
1.中心设备11获取高级网络中所有中心设备和从设备的设备探测类型和设备耗电类型。1. The central device 11 obtains the device detection type and device power consumption type of all central devices and slave devices in the advanced network.
设备探测类型可以包括主动探测设备(rich设备)和被动探测设备(poor设备)。其中,rich设备是有主动探测其他设备能力的设备,poor设备是没有主动探测其他设备的能力,只能被rich设备探测到的设备。中心设备均为rich设备,从设备可以是rich设备也可以是poor设备。Device detection types may include active detection devices (rich devices) and passive detection devices (poor devices). Among them, rich devices are devices that have the ability to actively detect other devices, and poor devices are devices that do not have the ability to actively detect other devices and can only be detected by rich devices. The central devices are all rich devices, and the slave devices can be rich devices or poor devices.
设备耗电类型可以包括长电设备和弱电设备。其中,长电设备是插电使用、有持续稳定的电源供应的电子设备,弱电设备是由电子设备中的电池作为电源使用的电子设备。因此,相较于长电设备,弱电设备更需要考虑功耗问题。The power consumption types of equipment can include long-term power equipment and weak power equipment. Among them, long-term power equipment is an electronic device that is plugged in and has a continuous and stable power supply, while weak-current equipment is an electronic device that uses the battery in the electronic device as a power source. Therefore, compared with long-duration equipment, weak-current equipment needs to consider power consumption issues more.
中心设备11可以通过第二高级网络中的通信连接获取高级网络中各个设备的设备探测类型和设备耗电类型。例如,中心设备11可以通过中心设备11与中心设备15的通信连接获取中心设备15的设备探测类型和设备耗电类型。也可以以中心设备15为中继,通过中心设备15与从设备13的通信连接、中心设备11与中心设备15的通信连接获取从设备13的设备探测类型和设备耗电类型。The central device 11 can obtain the device detection type and device power consumption type of each device in the high-level network through the communication connection in the second high-level network. For example, the central device 11 can obtain the device detection type and device power consumption type of the central device 15 through the communication connection between the central device 11 and the central device 15 . The central device 15 can also be used as a relay, and the device detection type and device power consumption type of the slave device 13 can be obtained through the communication connection between the central device 15 and the slave device 13 and the communication connection between the central device 11 and the central device 15 .
在一种可能的实现方式中,次级网络中的中心设备可以主动获取该次级网络中各个设备的设备探测类型和设备耗电类型,并将该次级网络中所有设备的设备探测类型和设备耗电类型发送给中心设备11,本申请对设备探测类型和设备耗电类型的具体获取步骤不做具体限定。In a possible implementation, the central device in the secondary network can actively obtain the device detection type and device power consumption type of each device in the secondary network, and combine the device detection types and device power consumption types of all devices in the secondary network. The equipment power consumption type is sent to the central device 11. This application does not specifically limit the specific acquisition steps of the equipment detection type and equipment power consumption type.
2.中心设备11基于设备的设备探测类型和设备耗电类型确定备份设备。2. The central device 11 determines the backup device based on the device detection type and device power consumption type.
中心设备11可以基于第二高级网络中各个设备的设备探测类型和设备耗电类型确定一个或多个备份设备。优选的,可以将探测类型为rich设备、耗电类型为长电设备的电子设备作为备份设备。次一级的,也可以将探测类型为rich设备、耗电类型为弱电设备的电子设备作为备份设备。The central device 11 may determine one or more backup devices based on the device detection type and device power consumption type of each device in the second advanced network. Preferably, an electronic device with a detection type of rich device and a power consumption type of long-term power device can be used as a backup device. At the next level, electronic equipment with detection type rich equipment and power consumption type weak current equipment can also be used as backup equipment.
在一种可能的实现方式中,用户也可以自行设置备份设备,并确定备份设备的优先级别。以智能家居场景为例,备份设备的选取优先级由高到低可以设定为智能电视、路由器、音箱(VUI)。In a possible implementation, the user can also set the backup device by himself and determine the priority of the backup device. Taking the smart home scenario as an example, the selection priority of backup devices from high to low can be set to smart TVs, routers, and speakers (VUI).
3.中心设备11向备份设备发送备份数据。3. The central device 11 sends the backup data to the backup device.
在确定备份设备之后,中心设备11可以向备份设备发送备份数据。After determining the backup device, the central device 11 can send backup data to the backup device.
在第二高级网络中,备份数据可以包括第二高级网络的网络信息。在一些实施例中,备份数据还可以包括第二高级网络的业务数据。该业务数据是高级网络中的设备通过高级网络执行的测量业务、分布式协同业务、通信业务等业务产生的数据,具体内容,可以参考下述图8所示实施例中的相关描述,本申请在此暂不详述。In the second high-level network, the backup data may include network information of the second high-level network. In some embodiments, the backup data may also include service data of the second high-level network. The service data is data generated by measurement services, distributed collaboration services, communication services and other services performed by devices in the advanced network through the advanced network. For specific content, please refer to the relevant description in the embodiment shown in Figure 8 below. This application No details will be given here.
4.备份设备保存备份数据。 4. The backup device saves the backup data.
这样,通过在备份设备保存备份数据,在主中心设备保存的业务数据或高级网络的网络信息等数据无法被读取、遭到损毁、主中心设备意外离线等情况下,高级网络可以读取备份设备中的备份数据,并基于备份数据保证高级网络的正常运行(例如,执行意外情况发生之前应该执行的测量业务、通信业务等等)。In this way, by saving the backup data in the backup device, the advanced network can read the backup when the business data stored in the main center device or the network information of the advanced network cannot be read, is damaged, or the main center device unexpectedly goes offline. Backup data in the device, and ensure the normal operation of the advanced network based on the backup data (for example, perform measurement services, communication services, etc. that should be performed before unexpected situations occur).
在图5B所示的高级网络30的主中心设备(中心设备B)离线之后,中心设备A和中心设备C接收到中心设备B发送的第一离线通知,响应于该第一离线通知,中心设备A和中心设备C可以采用图5A所示的方法,将次级网络A0和次级网络C0组成如图6C所示的一个以中心设备A为主中心设备,中心设备C为次中心设备,多个从设备为从设备的高级网络40。After the main central device (central device B) of the advanced network 30 shown in FIG. 5B goes offline, the central device A and the central device C receive the first offline notification sent by the central device B. In response to the first offline notification, the central device A and central device C can use the method shown in Figure 5A to form a secondary network A0 and a secondary network C0 as shown in Figure 6C, with central device A as the main central device, central device C as the secondary central device, and multiple Each slave device is an advanced network 40 of slave devices.
如图6C所示,高级网络40可以包括中心设备A、中心设备C以及多个从设备。高级网络40中,多个从设备包括次级网络A0和次级网络C0中的所有从设备。在一些实施例中,高级网络40中的多个从设备也可以包括一个或多个次级网络B0中的从设备,即中心设备A或者中心设备C可以暂时接管次级网络B0中的一个或多个从设备。其中,次级网络A0、次级网络B0和次级网络C0,上述两个次级网络的具体内容可以参考图4B所示实施例中的相关内容。As shown in FIG. 6C, the advanced network 40 may include a central device A, a central device C, and a plurality of slave devices. In the high-level network 40, the plurality of slave devices include all slave devices in the secondary network A0 and the secondary network C0. In some embodiments, multiple slave devices in the high-level network 40 may also include one or more slave devices in the secondary network B0, that is, the central device A or the central device C may temporarily take over one or more of the secondary networks B0. Multiple slave devices. Among them, the secondary network A0, the secondary network B0 and the secondary network C0. For the specific content of the above two secondary networks, please refer to the relevant content in the embodiment shown in FIG. 4B.
需要说明的是,当中心设备B重新上线之后,高级网络40可以按照图6B所示的方法将高级网络40重组为图5B所示的高级网络30。It should be noted that after the central device B comes back online, the advanced network 40 can reorganize the advanced network 40 into the advanced network 30 shown in FIG. 5B according to the method shown in FIG. 6B.
图7A示出了在高级网络的一个或多个次中心设备离线的情况下,高级网络的重组流程示意图。Figure 7A shows a schematic diagram of the reorganization process of the advanced network when one or more sub-center devices of the advanced network are offline.
该次中心设备离线之后重新组网流程可以应用于任一个高级网络,该高级网络可以由两个或两个以上的次级网络组成。下面以上述实施例中的第一高级网络为例,说明次中心设备(中心设备12)离线之后重新组网的流程。The re-networking process after the secondary central device goes offline can be applied to any high-level network. The high-level network can be composed of two or more secondary networks. The following takes the first advanced network in the above embodiment as an example to describe the process of re-networking after the secondary central device (central device 12) goes offline.
如图7A所示,在中心设备12离线的情况下,第一高级网络的重组流程可以包括以下步骤:As shown in Figure 7A, when the central device 12 is offline, the reorganization process of the first high-level network may include the following steps:
S701,中心设备12向中心设备11发送第二离线通知,用于通知中心设备11中心设备12离线。S701. The central device 12 sends a second offline notification to the central device 11, which is used to notify the central device 11 that the central device 12 is offline.
在第一高级网络中,中心设备12在离线时,可以向主中心设备(中心设备11)发送第二离线通知,用于通知中心设备11该中心设备12已经离线。In the first advanced network, when the central device 12 is offline, it may send a second offline notification to the main central device (the central device 11) to notify the central device 11 that the central device 12 is offline.
在一种可能的实现方式中,当中心设备12意外离线时,例如在中心设备12突然断电、故障等情况下,中心设备11(主中心设备)可以基于中心设备11与中心设备12的连接情况确定中心设备12是否离线,即当中心设备11与中心设备12的通信连接断开时,中心设备11确定中心设备12离线。In a possible implementation, when the central device 12 goes offline unexpectedly, for example, when the central device 12 suddenly loses power, fails, etc., the central device 11 (main central device) can be based on the connection between the central device 11 and the central device 12 The situation determines whether the central device 12 is offline, that is, when the communication connection between the central device 11 and the central device 12 is disconnected, the central device 11 determines that the central device 12 is offline.
S702,中心设备11基于第一高级网络的网络信息确定孤立设备。S702: The central device 11 determines the isolated device based on the network information of the first high-level network.
接收并响应于第二离线通知,中心设备11可以基于其存储的第一高级网络的网络信息,确定出一个或多个孤立设备。该一个或多个孤立设备是指,在第一高级网络中与中心设备12有连接关系的设备,例如从设备14。Upon receiving and responding to the second offline notification, the central device 11 may determine one or more isolated devices based on its stored network information of the first high-level network. The one or more isolated devices refer to devices that have a connection relationship with the central device 12 in the first advanced network, such as the slave device 14 .
S703,中心设备11向孤立设备发送第二组网请求,请求孤立设备与中心设备11建立通信连接。 S703. The central device 11 sends a second networking request to the isolated device, requesting the isolated device to establish a communication connection with the central device 11.
在确定出从设备14为孤立设备之后,中心设备可以向从设备14发送第二组网请求,请求从设备14与中心设备11建立通信连接。After determining that the slave device 14 is an isolated device, the central device may send a second networking request to the slave device 14 to request the slave device 14 to establish a communication connection with the central device 11 .
S704,中心设备11与从设备14建立通信连接。S704, the central device 11 establishes a communication connection with the slave device 14.
从设备14在接收第二组网请求之后,可以与中心设备11建立通信连接,将第一高级网络组建成新的高级网络,在本申请中也可以称作第三高级网络。After receiving the second networking request, the slave device 14 can establish a communication connection with the central device 11 to form the first high-level network into a new high-level network, which may also be called a third high-level network in this application.
可以理解的是,在一些实施例中,当存在多个孤立设备时,中心设备11可以分别向该多个孤立设备发送第二组网请求。该多个孤立设备在接收第二组网请求之后,可以分别与中心设备11建立通信连接。此外,在另一些实施例中,当中心设备11确定已经连接的电子设备的数量大于中心设备11的最大可连接设备数量时,中心设备11停止与其他电子设备建立通信连接。It can be understood that, in some embodiments, when there are multiple isolated devices, the central device 11 may send second networking requests to the multiple isolated devices respectively. After receiving the second networking request, the multiple isolated devices can respectively establish communication connections with the central device 11 . Furthermore, in other embodiments, when the central device 11 determines that the number of connected electronic devices is greater than the maximum number of connectable devices of the central device 11 , the central device 11 stops establishing communication connections with other electronic devices.
在一些实施例中,在中心设备11与一个或多个孤立设备建立通信连接之后,中心设备11可以保存新的高级网络的网络信息,即第三高级网络的网络信息。In some embodiments, after the central device 11 establishes a communication connection with one or more isolated devices, the central device 11 can save the network information of the new high-level network, that is, the network information of the third high-level network.
示例性的,表8示出了第三高级网络的网络信息。For example, Table 8 shows the network information of the third high-level network.
表8第三高级网络的网络信息
Table 8 Network information of the third advanced network
如表8所示,第三高级网络中,包括三个设备,其设备标识分别为U11、U13和U14。其中,设备标识分别为U11和U13的设备属于第一次级网络,设备标识分别U14的设备属于第二次级网络。设备标识为U11的设备对应的设备类型为主中心设备,设备标识分别为U13、U14的设备对应的设备类型为从设备。设备标识为U11的设备分别与设备标识为U13、U14的设备之间建立有通信连接。根据表8所示的第三高级网络的网络信息可知,第一高级网络包括第一次级网络和第二次级网络。第一次级网络中包括中心设备11和从设备13,中心设备11的设备标识为U11,从设备13的设备标识为U13,中心设备11与从设备13之间建立有通信连接。第二次级网络中包括从设备14,且第二次级网络的中心设备处于离线等异常状态,从设备14的设备标识为U14。中心设备11与从设备14之间建立有通信连接。As shown in Table 8, the third-level network includes three devices, whose device identifiers are U11, U13, and U14 respectively. Among them, the devices with device identifiers U11 and U13 belong to the first secondary network, and the devices with device identifiers U14 belong to the second secondary network. The device type corresponding to the device with the device identifier U11 is the master central device, and the device type corresponding to the devices with the device identifiers U13 and U14 is the slave device. Communication connections are established between the device with the device identifier U11 and the devices with the device identifiers U13 and U14 respectively. According to the network information of the third high-level network shown in Table 8, it can be seen that the first high-level network includes a first secondary network and a second secondary network. The first secondary network includes a central device 11 and a slave device 13. The device identifier of the central device 11 is U11, and the device identifier of the slave device 13 is U13. A communication connection is established between the central device 11 and the slave device 13. The second secondary network includes the slave device 14, and the central device of the second secondary network is in an abnormal state such as offline. The device identifier of the slave device 14 is U14. A communication connection is established between the central device 11 and the slave device 14 .
这样,在次中心设备离线的情况下,原本与该次中心设备连接的从设备可以与主中心设备建立通信连接,由主中心设备接管,维持其在高级网络中的正常运行。In this way, when the secondary central device is offline, the slave device originally connected to the secondary central device can establish a communication connection with the main central device, and the main central device takes over to maintain its normal operation in the advanced network.
在一些实施例中,当次中心设备重新上线后,新的高级网络可以重组为原高级网络。In some embodiments, when the secondary central device comes back online, the new high-level network can be reorganized into the original high-level network.
以新的高级网络为上述第三高级网络,原高级网络为第一高级网络为例,如图7B所示,在次中心设备(中心设备12)重新上线后,重组高级网络的具体流程可以包括以下步骤:Taking the new high-level network as the above-mentioned third high-level network and the original high-level network as the first high-level network as an example, as shown in Figure 7B, after the secondary central device (central device 12) comes back online, the specific process of reorganizing the high-level network may include Following steps:
S705,中心设备12分别向中心设备11和从设备14发送第二上线通知。S705: The central device 12 sends the second online notification to the central device 11 and the slave device 14 respectively.
在确定中心设备12上线之后,中心设备12可以基于中心设备12存储的第二次级网络的网络信息确定出在中心设备12离线之前,与中心设备12建立有通信连接的设备(即中心设备11与从设备14),并分别向中心设备11与从设备14发送第二上线通知,该第二上线通知可用于通知中心设备11或从设备14中心设备12重新上线。After determining that the central device 12 is online, the central device 12 can determine, based on the network information of the second secondary network stored by the central device 12, the device that has established a communication connection with the central device 12 before the central device 12 goes offline (i.e., the central device 11 and the slave device 14), and sends a second online notification to the central device 11 and the slave device 14 respectively. The second online notification can be used to notify the central device 11 or the slave device 14 and the central device 12 to go online again.
S706,中心设备11与从设备14断开通信连接。S706: The central device 11 disconnects the communication connection from the slave device 14.
S707,中心设备11与中心设备12重新建立通信连接。 S707: The central device 11 and the central device 12 re-establish a communication connection.
S708,从设备14与中心设备12重新建立通信连接。S708, the slave device 14 re-establishes a communication connection with the central device 12.
响应于第二上线通知,中心设备11断开与从设备14之间的通信连接,中心设备11与中心设备12重新建立通信连接,从设备14与中心设备12重新建立通信连接。In response to the second online notification, the central device 11 disconnects the communication connection with the slave device 14 , the central device 11 re-establishes the communication connection with the central device 12 , and the slave device 14 re-establishes the communication connection with the central device 12 .
在一些实施例中,中心设备11可以将其保存的第三高级网络的网络信息(表8所示)删除。In some embodiments, the central device 11 may delete the network information of the third high-level network (shown in Table 8) that it saves.
采用上述方法,在次中心设备重新上线之后,可以将新的高级网络重组为原高级网络。这样,可以避免主中心设备连接的从设备过多,从而降低中心设备需要处理的任务量,提高高级网络的业务执行效率。Using the above method, after the secondary center equipment comes back online, the new high-level network can be reorganized into the original high-level network. In this way, it is possible to avoid having too many slave devices connected to the main central device, thus reducing the amount of tasks that the central device needs to process and improving the business execution efficiency of advanced networks.
以图5B所示的高级网络30为例,在高级网络30中的两个次中心设备,即中心设备A和中心设备C都离线的情况下,其余电子设备可以基于图7A所示的方法组建为如图7C所示的高级网络50。Taking the advanced network 30 shown in Figure 5B as an example, when the two sub-central devices in the advanced network 30, namely the central device A and the central device C, are both offline, the remaining electronic devices can be established based on the method shown in Figure 7A It is the advanced network 50 shown in Figure 7C.
如图7C所示,高级网络50包括中心设备B和多个从设备,该多个从设备可以包括次级网络B0中的从设备(例如,从设备E、从设备F、从设备G和从设备N),也可以包括次级网络A0或次级网络C0中的一个或多个从设备(例如,从设备D、从设备H、从设备L和从设备M,等等)。As shown in FIG. 7C , the high-level network 50 includes a central device B and a plurality of slave devices. The plurality of slave devices may include slave devices in the secondary network B0 (for example, slave device E, slave device F, slave device G, and slave device B0). Device N) may also include one or more slave devices (for example, slave device D, slave device H, slave device L, and slave device M, etc.) in the secondary network A0 or the secondary network C0.
在高级网络30的中心设备A离线之后,中心设备B可以接收中心设备A发送的第二离线通知,响应于该第二离线通知,中心设备B可以按照图6A所示的方法接管中心设备A连接的一个或多个从设备(例如,从设备D、从设备L和从设备M,等等),即与该一个或多个从设备分别建立通信连接。同样的,在中心设备C离线之后,中心设备B可以接收中心设备C发送的第二离线通知,响应于该第二离线通知,中心设备B可以接管中心设备C连接的一个或多个从设备(例如,从设备H),即与该一个或多个从设备分别建立通信连接。After the central device A of the advanced network 30 goes offline, the central device B may receive a second offline notification sent by the central device A. In response to the second offline notification, the central device B may take over the central device A connection according to the method shown in FIG. 6A One or more slave devices (for example, slave device D, slave device L, slave device M, etc.), that is, communication connections are respectively established with the one or more slave devices. Similarly, after central device C goes offline, central device B can receive a second offline notification sent by central device C. In response to the second offline notification, central device B can take over one or more slave devices connected to central device C ( For example, the slave device H) establishes a communication connection with the one or more slave devices respectively.
需要说明的是,当高级网络30的次中心设备,即中心设备A和中心设备C重新上线之后,高级网络50可以按照图7B所示的方法将高级网络50重组为图5B所示的高级网络30。It should be noted that when the secondary central devices of the advanced network 30, namely central device A and central device C, come online again, the advanced network 50 can reorganize the advanced network 50 into the advanced network shown in Figure 5B according to the method shown in Figure 7B. 30.
下面介绍基于高级网络执行测量业务的方法流程。The following describes the method and process of performing measurement services based on advanced networks.
图8示出了一种基于高级网络执行测量业务的流程示意图。Figure 8 shows a schematic flow chart for performing measurement services based on an advanced network.
该测量业务的执行流程可以应用于任一个高级网络,该高级网络可以由两个或两个以上的次级网络组成。下面以第一高级网络为例,说明高级网络执行测量业务的具体流程。The measurement service execution process can be applied to any high-level network, and the high-level network can be composed of two or more secondary networks. The following takes the first advanced network as an example to describe the specific process of the advanced network performing measurement services.
如图8所示,基于高级网络执行测量业务的流程可以包括以下步骤:As shown in Figure 8, the process of performing measurement services based on advanced networks may include the following steps:
S801,从设备14确定第一测量业务。S801. The slave device 14 determines the first measurement service.
第一测量业务可以包括测量内容和测量对象。The first measurement service may include measurement content and measurement objects.
其中,测量内容可以包括以下任意一项或多项:测距、测角、测向、测方位、检测多个电子设备之间的内外关系(例如从设备14是否在从设备13的内部,等等)、测量存在关系(例如,在距离从设备14第一阈值的距离范围内,是否存在从设备13等等)。The measurement content may include any one or more of the following: ranging, angle measurement, direction finding, orientation measurement, detection of internal and external relationships between multiple electronic devices (for example, whether the slave device 14 is inside the slave device 13, etc. etc.), measure the existence relationship (for example, within the distance range of the first threshold from the slave device 14, whether there is the slave device 13, etc.).
测量对象可以是第一高级网络中的任意一个或多个电子设备。例如,当测量内容为测距,且测量对象从设备13时,从设备14确定第一测量业务为测量从设备14与从设备13之间的距离。The measurement object may be any one or more electronic devices in the first high-level network. For example, when the measurement content is ranging and the measurement object is the slave device 13 , the slave device 14 determines that the first measurement service is to measure the distance between the slave device 14 and the slave device 13 .
在一些实施例中,从设备14可以接收并响应于用户针对从设备14的操作,确定第一测 量业务。例如,在图2A所示的多屏协同场景中,显示器22可以接收并响应于用户移动显示器22上的窗口的操作,确定第一测量业务为测量平板电脑21相对于显示器22的方位。In some embodiments, the slave device 14 may receive and respond to a user's operation on the slave device 14 to determine the first measurement. Volume business. For example, in the multi-screen collaboration scenario shown in FIG. 2A , the display 22 may receive and respond to the user's operation of moving the window on the display 22 and determine that the first measurement service is to measure the orientation of the tablet 21 relative to the display 22 .
在另一些实施例中,从设备14也可以自发确定第一测量信息。例如,从设备14上的一个应用程序可以基于应用程序运行的需求自发请求执行第一测量业务,等等。In other embodiments, the slave device 14 may also determine the first measurement information spontaneously. For example, an application program on the slave device 14 may spontaneously request to perform a first measurement service based on the needs of the application program running, and so on.
在一种可能的实现方式中,在确定第一测量业务之后,或在确定第一测量业务的同时,从设备14也可以确定出第一测量业务的测量方式。测量方式可以是以下任意一种或多种:蓝牙、超声波、WLAN、IMU、UWB等等。测量方式可以基于测量内容确定,例如当测量内容为测角时,测量方式为IMU。在一些实施例中,测量方式也可以基于从设备14上的测量器件确定,例如,当从设备14只具有蓝牙模块时,测量方式可以是蓝牙。在另一些实施例中,测量方式也可以由中心设备12或中心设备11确定。In a possible implementation manner, after determining the first measurement service, or while determining the first measurement service, the slave device 14 may also determine the measurement method of the first measurement service. The measurement method can be any one or more of the following: Bluetooth, ultrasonic, WLAN, IMU, UWB, etc. The measurement method can be determined based on the measurement content. For example, when the measurement content is angle measurement, the measurement method is IMU. In some embodiments, the measurement method can also be determined based on the measurement device on the slave device 14. For example, when the slave device 14 only has a Bluetooth module, the measurement method can be Bluetooth. In other embodiments, the measurement method may also be determined by the central device 12 or the central device 11 .
可以理解的是,第一高级网络中的其他从设备或中心设备也可以确定第一测量业务,此处仅以从设备14确定出第一测量业务为例进行说明,本申请在此处不做限定。It can be understood that other slave devices or central devices in the first high-level network can also determine the first measurement service. Here, only the determination of the first measurement service by the slave device 14 is used as an example. This application will not do this here. limited.
S802,从设备14通过中心设备12向中心设备11发送第一测量请求,用于请求中心设备11许可从设备14执行第一测量业务。S802: The slave device 14 sends a first measurement request to the central device 11 through the central device 12, to request the central device 11 to allow the slave device 14 to perform the first measurement service.
在确定第一测量业务之后,从设备14可以基于第一高级网络,以中心设备12为中继向中心设备11(主中心设备)发送第一测量请求,请求中心设备11许可从设备14执行第一测量业务。After determining the first measurement service, the slave device 14 may send a first measurement request to the central device 11 (main central device) based on the first advanced network using the central device 12 as a relay, requesting the central device 11 to allow the slave device 14 to perform the first measurement service. 1. Measurement business.
第一测量请求可以包括第一测量业务和从设备14的设备标识。从设备14的设备标识可用于识别从设备14,设备标识可以包括如下任一种:设备名称、媒体存取控制MAC地址和网际协议IP地址。The first measurement request may include the first measurement service and the device identification of the slave device 14 . The device identification of the slave device 14 may be used to identify the slave device 14, and the device identification may include any of the following: a device name, a media access control MAC address, and an Internet Protocol IP address.
在一些实施例中,第一测量请求还可以包括从设备14的测量器件,测量器件可以包括以下任意一项或多项:蓝牙模块、超声波模块、IMU器件、UWB器件、WLAN模块,等等。从设备14的测量器件可用于确定从设备14使用哪一种测量方式执行第一测量业务。In some embodiments, the first measurement request may also include a measurement device from the device 14, and the measurement device may include any one or more of the following: a Bluetooth module, an ultrasonic module, an IMU device, a UWB device, a WLAN module, and so on. The measurement device of the slave device 14 may be used to determine which measurement method the slave device 14 uses to perform the first measurement service.
在另一些实施例中,在高级网络建立之后,中心设备12(次主中心设备)和/或中心设备11(主中心设备)中可以存储有从设备14的测量器件。因此,在从设备14确定第一测量业务后无需再向中心设备12发送从设备14的测量器件。In other embodiments, after the high-level network is established, the measurement devices of the slave devices 14 may be stored in the central device 12 (sub-master central device) and/or the central device 11 (primary central device). Therefore, after the slave device 14 determines the first measurement service, there is no need to send the measurement device of the slave device 14 to the central device 12 .
S803,中心设备11基于第一高级网络的业务数据确定是否许可第一测量请求。S803: The central device 11 determines whether to allow the first measurement request based on the service data of the first high-level network.
中心设备11在接收到第一测量请求之后,可以基于第一高级网络的业务数据确定是否许可第一测量请求。After receiving the first measurement request, the central device 11 may determine whether to allow the first measurement request based on the service data of the first advanced network.
第一高级网络的业务数据可以包括第一高级网络的测量数据和/或第一高级网络的待执行业务。其中,第一高级网络的测量数据包括第一高级网络中所有已经执行的测量业务产生的数据,第一高级网络的待执行业务包括第一高级网络中所有待执行的测量业务。The service data of the first high-level network may include measurement data of the first high-level network and/or to-be-executed services of the first high-level network. The measurement data of the first high-level network includes data generated by all measurement services that have been performed in the first high-level network, and the services to be performed in the first high-level network include all measurement services to be performed in the first high-level network.
示例性的,表9示出了一种第一高级网络的测量数据,表10示出了一种第一高级网络的待执行业务。For example, Table 9 shows the measurement data of a first high-level network, and Table 10 shows the services to be performed on a first high-level network.
表9第一高级网络的测量数据

Table 9 Measurement data of the first advanced network

如表9所示,第一高级网络的测量数据可以包括测量业务和测量结果。其中,测量业务是第一高级网络中已经执行的测量业务,测量结果是上述测量业务对应的测量结果。测量业务可以包括:从设备14和中心设备11的距离、从设备13与中心设备12的方位关系、中心设备12与中心设备11的内外关系、从设备13与中心设备12的距离、从设备13与中心设备11的有向距离,这些测量业务对应的测量结果分别为:3米、从设备13在中心设备12的右侧、中心设备12在中心设备11的外部、5米、从设备13在中心设备11的左侧2米处。根据表9可知,在第一高级网络中,从设备14和中心设备11的距离为3米、从设备13在中心设备12的右侧、中心设备12在中心设备11的外部、从设备13与中心设备12的距离为5米、从设备13在中心设备11的左侧2米处。As shown in Table 9, the measurement data of the first advanced network may include measurement services and measurement results. The measurement service is a measurement service that has been performed in the first advanced network, and the measurement result is a measurement result corresponding to the above-mentioned measurement service. The measurement services may include: the distance between the slave device 14 and the central device 11 , the azimuth relationship between the slave device 13 and the central device 12 , the internal and external relationship between the central device 12 and the central device 11 , the distance between the slave device 13 and the central device 12 , the distance between the slave device 13 and the central device 12 , the distance between the slave device 13 and the central device 12 The directional distance from the central device 11. The corresponding measurement results of these measurement services are: 3 meters, the slave device 13 is on the right side of the central device 12, the central device 12 is outside the central device 11, 5 meters, the slave device 13 is on 2 meters to the left of central equipment 11. According to Table 9, in the first advanced network, the distance between the slave device 14 and the central device 11 is 3 meters, the slave device 13 is on the right side of the central device 12, the central device 12 is outside the central device 11, and the slave device 13 is The distance between the central device 12 and the slave device 13 is 2 meters to the left of the central device 11 .
可以理解的是,表9所示的第一高级网络的测量数据只是一个范例,还可以包括更多、更少或者不同的测量业务和测量结果,本申请在此不做限定。It can be understood that the measurement data of the first high-level network shown in Table 9 is just an example, and may also include more, less, or different measurement services and measurement results, which is not limited in this application.
表10第一高级网络的待执行业务
Table 10: To-be-executed services of the first advanced network
如表10所示,第一高级网络的测量数据可以包括测量业务和测量结果。其中,测量业务是第一高级网络中已经许可对应的测量请求,但还未收到测量结果的测量业务,执行状态可以包括:执行中和未执行。测量业务可以包括:从设备13和中心设备11的有向距离、中心设备12与从设备14的方位关系,这两个测量业务对应的处理结果分别为:执行中和未执行。根据表10可知,在第一高级网络中,中心设备11已经许可测量业务“测量从设备13和中心设备11的有向距离”的测量请求,且中心设备11已经通过第一高级网络向执行该测量业务的设备发送了测量许可,但还未收到该测量业务的测量结果。中心设备11已经许可测量业务“测量中心设备12与从设备14的方位关系”的测量请求,但还未通过第一高级网向执行该测量业务的设备发送测量许可。As shown in Table 10, the measurement data of the first advanced network may include measurement services and measurement results. The measurement service is a measurement service for which the corresponding measurement request has been permitted in the first advanced network but the measurement result has not yet been received. The execution status may include: executing and not executing. The measurement services may include: the directional distance between the slave device 13 and the central device 11, and the azimuth relationship between the central device 12 and the slave device 14. The processing results corresponding to these two measurement services are: executing and not executing respectively. According to Table 10, it can be seen that in the first advanced network, the central device 11 has approved the measurement request for the measurement service "Measure the directional distance between the slave device 13 and the central device 11", and the central device 11 has performed the measurement request through the first advanced network. The device of the measurement service has sent a measurement license, but has not yet received the measurement results of the measurement service. The central device 11 has approved the measurement request for the measurement service "measuring the orientation relationship between the central device 12 and the slave device 14", but has not yet sent the measurement permission to the device performing the measurement service through the first advanced network.
可以理解的是,表10所示的第一高级网络的待执行业务只是一个范例,还可以包括更多或更少或者不同的测量业务和执行状态,本申请在此不做限定。It can be understood that the to-be-executed services of the first high-level network shown in Table 10 are just an example, and may also include more, less, or different measurement services and execution states, which are not limited in this application.
在一种可能的实现方式中,当中心设备11可以基于第一高级网络的业务数据确定出第一测量业务的测量结果时,中心设备11确定许可从设备14执行第一测量业务。当中心设备11基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时,中心设备11确定不允许从设备14执行第一测量业务。In a possible implementation, when the central device 11 can determine the measurement result of the first measurement service based on the service data of the first high-level network, the central device 11 determines to allow the slave device 14 to perform the first measurement service. When the central device 11 cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines that the slave device 14 is not allowed to perform the first measurement service.
当第一高级网络的业务数据满足以下情况时,中心设备11可以基于第一高级网络的业务数据确定出第一测量业务的测量结果。When the service data of the first advanced network meets the following conditions, the central device 11 can determine the measurement result of the first measurement service based on the service data of the first advanced network.
情况一:第一高级网络的业务数据中的测量业务包括第一测量业务。Scenario 1: The measurement service in the service data of the first advanced network includes the first measurement service.
以第一高级网络的业务数据包括表9所示的第一高级网络的测量数据为例:Take the service data of the first advanced network including the measurement data of the first advanced network shown in Table 9 as an example:
当表9中的测量业务中包括第一测量业务时,中心设备11可以基于该测量业务对应的测 量结果确定出第一测量业务的测量结果。例如,当第一测量业务为测量从设备14和中心设备11的距离时,中心设备11可以基于第一高级网络的业务数据确定出第一测量业务的测量结果为:从设备14和中心设备11的距离为3米。When the measurement service in Table 9 includes the first measurement service, the central device 11 can based on the measurement service corresponding to the measurement service. The measurement result determines the measurement result of the first measurement service. For example, when the first measurement service is to measure the distance between the slave device 14 and the central device 11, the central device 11 can determine based on the service data of the first advanced network that the measurement result of the first measurement service is: the slave device 14 and the central device 11 The distance is 3 meters.
以第一高级网络的业务数据包括表10所示的第一高级网络的待执行业务为例:Take the service data of the first high-level network including the to-be-executed services of the first high-level network shown in Table 10 as an example:
当表10中的测量业务中包括第一测量业务时,中心设备11可以基于该测量业务对应的测量结果确定出第一测量业务的测量结果。例如,当第一测量业务为测量从设备13和中心设备11的有向距离时,中心设备11可以在执行中的测量业务“测量从设备13和中心设备11的有向距离”执行完毕,且中心设备11接收到该测量业务的测量结果后,确定出第一测量业务的测量结果。即,中心设备11可以基于待执行的业务执行完毕之后向中心设备11上报的测量结果确定出第一测量业务的测量结果。When the measurement services in Table 10 include the first measurement service, the central device 11 may determine the measurement results of the first measurement service based on the measurement results corresponding to the measurement services. For example, when the first measurement service is to measure the directional distance between the slave device 13 and the central device 11, the central device 11 may complete the execution of the currently executing measurement service "Measure the directional distance between the slave device 13 and the central device 11", and After receiving the measurement result of the measurement service, the central device 11 determines the measurement result of the first measurement service. That is, the central device 11 can determine the measurement result of the first measurement service based on the measurement result reported to the central device 11 after the service to be executed is completed.
情况二:基于第一高级网络的业务数据中一个或多个测量业务对应的测量结果可以推算出第一测量业务的测量结果。Scenario 2: The measurement results of the first measurement service can be deduced based on the measurement results corresponding to one or more measurement services in the service data of the first advanced network.
以第一高级网络的业务数据包括表9所示的第一高级网络的测量数据为例:Take the service data of the first advanced network including the measurement data of the first advanced network shown in Table 9 as an example:
例如,当第一测量业务为“测量从设备13与中心设备12的有向距离”时,根据表9所示的第一高级网络的测量数据可知,从设备13在中心设备12的右侧,且从设备13与中心设备12的距离为5米。在这种情况下,可以上述两项测量结果确定出第一测量业务的测量结果为“从设备13在中心设备12的右侧5米处”。For example, when the first measurement service is "Measuring the directional distance between the slave device 13 and the central device 12", according to the measurement data of the first advanced network shown in Table 9, it can be seen that the slave device 13 is on the right side of the central device 12, And the distance between the slave device 13 and the central device 12 is 5 meters. In this case, it can be determined from the above two measurement results that the measurement result of the first measurement service is "the slave device 13 is 5 meters to the right of the central device 12".
又例如,当第一测量业务为“测量中心设备11与中心设备12的距离”时,根据表9所示的第一高级网络的测量数据可知,从设备13在中心设备12的右侧,且从设备13与中心设备12的距离为5米,且从设备13在中心设备11的左侧2米处。在这种情况下,可以上述三项测量结果确定出“中心设备11在中心设备12的右侧7米处”,即第一测量业务的测量结果为“从设备13与中心设备12的距离为7米”。For another example, when the first measurement service is "Measuring the distance between the central device 11 and the central device 12", according to the measurement data of the first advanced network shown in Table 9, it can be seen that the slave device 13 is on the right side of the central device 12, and The distance between the slave device 13 and the central device 12 is 5 meters, and the slave device 13 is 2 meters to the left of the central device 11 . In this case, it can be determined from the above three measurement results that "the central device 11 is 7 meters to the right of the central device 12", that is, the measurement result of the first measurement service is "the distance between the slave device 13 and the central device 12 is 7 meters".
类似的,以第一高级网络的业务数据包括表10所示的第一高级网络的待执行业务为例:Similarly, take the service data of the first advanced network including the to-be-executed services of the first advanced network shown in Table 10 as an example:
例如,当第一测量业务为“测量从设备13和中心设备11的有向距离”时,根据表10所示的第一高级网络的待执行业务可知,执行中的测量业务包括“测量从设备13和中心设备11的有向距离”。而基于从设备13和中心设备11的有向距离可以确定出从设备13和中心设备11的距离。即,在该执行中的测量业务执行完毕,并将测量结果向中心设备11上报之后,中心设备11可以确定出第一测量业务的测量结果。For example, when the first measurement service is "Measuring the directional distance between the slave device 13 and the central device 11", according to the to-be-executed services of the first advanced network shown in Table 10, the measurement service being executed includes "Measuring the slave device 13" 13 and the directional distance from the central device 11". The distance between the slave device 13 and the central device 11 can be determined based on the directional distance between the slave device 13 and the central device 11 . That is, after the measurement service being executed is completed and the measurement results are reported to the central device 11 , the central device 11 can determine the measurement results of the first measurement service.
又例如,当第一测量业务为“测量从设备14与中心设备12的方位关系”时,根据表10所示的第一高级网络的待执行业务可知,中心设备11已经许可测量业务“测量中心设备12与从设备14的方位关系”对应的测量请求。而且基于中心设备12与从设备14的方位关系,可以确定出测量从设备14与中心设备12的方位关系。即,在该测量业务执行完毕,并将测量结果向中心设备11上报之后,中心设备11可以确定出第一测量业务的测量结果。For another example, when the first measurement service is "Measuring the azimuth relationship between the slave device 14 and the central device 12", according to the to-be-executed services of the first advanced network shown in Table 10, the central device 11 has permitted the measurement service "Measurement Center" Measurement request corresponding to the "azimuth relationship between device 12 and slave device 14". Furthermore, based on the orientation relationship between the central device 12 and the slave device 14, the orientation relationship between the measurement slave device 14 and the central device 12 can be determined. That is, after the measurement service is completed and the measurement results are reported to the central device 11, the central device 11 can determine the measurement results of the first measurement service.
需要说明的是,此处的只是一些范例,当第一测量业务为测角、测量内外关系、测方位等业务时,也可以按照与上述实施例相同或相近的方式判断是否可以基于第一高级网络的业务数据确定出第一测量业务的测量结果。It should be noted that these are just some examples. When the first measurement service is angle measurement, measurement of internal and external relations, measurement of orientation, etc., it can also be determined in the same or similar manner as in the above embodiment whether it can be based on the first high-level measurement. The service data of the network determines the measurement result of the first measurement service.
这样,在基于第一高级网络的业务数据可以确定出第一测量业务的测量结果的情况下,中心设备11可以确定不允许从设备14执行第一测量业务,减少执行不必要的业务,从而降低功耗。 In this way, when the measurement result of the first measurement service can be determined based on the service data of the first advanced network, the central device 11 can determine that the slave device 14 is not allowed to perform the first measurement service, thereby reducing the execution of unnecessary services, thereby reducing the cost of the first measurement service. power consumption.
在一些实施例中,上述第一高级网络的网络信息中的测量数据还可以包括保存时间。In some embodiments, the measurement data in the network information of the first high-level network may also include a storage time.
示例性的,表11示出了另一种第一高级网络的测量数据中。For example, Table 11 shows the measurement data of another first high-level network.
表11第一高级网络的测量数据
Table 11 Measurement data of the first advanced network
如表11所示,第一高级网络的测量数据可以包括测量业务、测量结果和保存时间。其中,测量业务可以是第一高级网络中已经执行的测量业务。测量结果是上述测量业务对应的测量结果,保存时间可用于指示中心设备11保存该测量业务对应的测量结果的时间。根据表11所示的第一高级网络的测量数据可知,在第一高级网络中,“从设备14和中心设备11的距离为3米”这项数据的保存时间为10:00、“从设备13在中心设备12的右侧”这项数据的保存时间为08:45、“中心设备12在中心设备11的外部”这项数据的保存时间为09:54、“从设备13与中心设备12的距离为5米”这项数据的保存时间为10:02、“从设备13在中心设备11的左侧2米处”这项数据的保存时间为07:59。As shown in Table 11, the measurement data of the first advanced network may include measurement services, measurement results and storage time. The measurement service may be a measurement service that has been performed in the first advanced network. The measurement result is the measurement result corresponding to the above-mentioned measurement service, and the storage time can be used to indicate the time for the central device 11 to save the measurement result corresponding to the measurement service. According to the measurement data of the first advanced network shown in Table 11, in the first advanced network, the storage time of the data "the distance between the slave device 14 and the central device 11 is 3 meters" is 10:00, and "the distance between the slave device 14 and the central device 11 is 3 meters". 13 is on the right side of the central device 12" The saving time of this data is 08:45, the saving time of this data "the central device 12 is outside the central device 11" is 09:54, "the slave device 13 and the central device 12 The distance is 5 meters" The data is saved at 10:02, and the data "Slave device 13 is 2 meters to the left of the central device 11" is saved at 07:59.
在中心设备11确定能够基于第一高级网络的业务数据中的一项或多项业务数据确定出第一测量业务的测量结果的情况下,中心设备11还需要基于该一项或多项业务数据的保存时间确定该一项或多项业务数据是否有效。当第一高级网络中,用于确定第一测量业务的测量结果的一项或多项业务数据的保存时间与当前时间的间隔小于第二时间阈值时,中心设备11确定该一项或多项业务数据有效,则中心设备11确定能够基于第一高级网络的业务数据确定出第一测量业务的测量结果。当第一高级网络中,用于确定第一测量业务的测量结果的一项或多项业务数据的保存时间与当前时间的间隔大于等于第二时间阈值时,中心设备11确定该一项或多项业务数据无效,则中心设备11基于第一高级网络的业务数据不能确定出第一测量业务的测量结果。When the central device 11 determines that the measurement result of the first measurement service can be determined based on one or more service data in the first advanced network's service data, the central device 11 also needs to determine the measurement result of the first measurement service based on the one or more service data. The storage time determines whether the one or more business data is valid. When the interval between the storage time of one or more items of service data used to determine the measurement results of the first measurement service and the current time in the first advanced network is less than the second time threshold, the central device 11 determines that the item or items of service data are If the service data is valid, the central device 11 determines that the measurement result of the first measurement service can be determined based on the service data of the first advanced network. When, in the first advanced network, the interval between the storage time of one or more service data used to determine the measurement results of the first measurement service and the current time is greater than or equal to the second time threshold, the central device 11 determines that the one or more If the service data is invalid, the central device 11 cannot determine the measurement result of the first measurement service based on the service data of the first advanced network.
这样,当高级网络中的设备处于移动状态时,可以基于高级网络的业务数据的保存时间确定业务数据是否有效,避免被无效的业务数据影响测量业务的执行。In this way, when the device in the advanced network is in a mobile state, it can be determined based on the storage time of the service data of the advanced network whether the service data is valid, so as to avoid invalid service data affecting the execution of the measurement service.
在一些实施例中,第一高级网络中的主中心设备(中心设备11)和次主中心设备(中心设备12)可以周期性的探测与其连接的中心设备和从设备的位置是否发生变化,当发现一个设备的位置发生变化时,中心设备11及时将第一高级网络中与该设备相关的业务数据从第一高级网络的网络信息中删除。In some embodiments, the main central device (central device 11) and the secondary main central device (central device 12) in the first advanced network can periodically detect whether the locations of the central devices and slave devices connected to them have changed. When it is discovered that the location of a device has changed, the central device 11 promptly deletes the service data related to the device in the first advanced network from the network information of the first advanced network.
这样,当高级网络中的电子设备处于移动状态时,可以及时删除无效的业务数据,避免被无效的业务数据影响测量业务的执行。In this way, when the electronic equipment in the advanced network is in a mobile state, invalid service data can be deleted in time to avoid invalid service data affecting the execution of the measurement service.
当中心设备11基于第一高级网络的业务数据无法确定出第一测量业务的测量结果时,中心设备11确定许可第一测量请求,此时,中心设备11可以执行下述步骤S804至步骤S807。When the central device 11 cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines to allow the first measurement request. At this time, the central device 11 may perform the following steps S804 to S807.
当中心设备11可以基于第一高级网络的业务数据确定出第一测量业务的测量结果时,中心设备11确定拒绝第一测量请求,此时,中心设备11执行下述步骤S808。 When the central device 11 can determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines to reject the first measurement request. At this time, the central device 11 executes the following step S808.
在一些实施例中,当第一测量业务的测量方式是超声波时,当且仅当中心设备11确定第一高级网络中执行中的测量业务不存在采用超声波的测量方式时,中心设备11可以确定许可第一测量请求,否则,中心设备11可以拒绝第一测量请求,通过第一高级网络向从设备14发送拒绝通知,通知从设备14不允许执行第一测量业务。In some embodiments, when the measurement method of the first measurement service is ultrasonic wave, if and only if the central device 11 determines that the measurement service being executed in the first advanced network does not include a measurement method using ultrasonic wave, the central device 11 may determine The first measurement request is allowed. Otherwise, the central device 11 can reject the first measurement request and send a rejection notification to the slave device 14 through the first advanced network, notifying the slave device 14 that the execution of the first measurement service is not allowed.
在一种可能的实现方式中,当中心设备11确定第一高级网络中存在采用超声波的测量方式的执行中的测量业务时,中心设备11可以在确定该执行中的测量业务结束之后,许可第一测量请求。这样,可以避免由于多个设备同时发射超声波造成的对测量结果的干扰。In a possible implementation, when the central device 11 determines that there is an ongoing measurement service using the ultrasonic measurement method in the first advanced network, the central device 11 may, after determining that the ongoing measurement service has ended, permit the first A measurement request. In this way, interference to the measurement results caused by multiple devices emitting ultrasonic waves at the same time can be avoided.
S804,中心设备11通过中心设备12向从设备14发送第一测量许可,用于通知许可从设备14执行第一测量业务。S804: The central device 11 sends the first measurement permission to the slave device 14 through the central device 12, which is used to notify the slave device 14 to allow the slave device 14 to perform the first measurement service.
当中心设备11确定许可从设备14执行第一测量业务时,中心设备11可以通过中心设备12向从设备14发送第一测量许可。即,中心设备11可以先向中心设备12发送第一测量许可,中心设备12接收并向从设备14发送第一测量许可。When the central device 11 determines that the slave device 14 is allowed to perform the first measurement service, the central device 11 may send the first measurement permission to the slave device 14 through the central device 12 . That is, the central device 11 may first send the first measurement permission to the central device 12, and the central device 12 receives and sends the first measurement permission to the slave device 14.
在一些实施例中,第一测量许可可以包括许可信息和测量对象的设备标识。以测量对象为从设备13为例(本申请此处实施例中均以测量对象为从设备13为例进行说明),第一测量许可包括许可信息和从设备13的设备标识。其中,许可信息用于通知从设备14可以执行第一测量业务。从设备13的设备标识用于在后续执行第一测量业务的过程中识别从设备13。In some embodiments, the first measurement permission may include permission information and a device identification of the measurement object. Taking the measurement object as the slave device 13 as an example (in the embodiments of this application, the measurement object is the slave device 13 as an example), the first measurement permission includes license information and the device identification of the slave device 13 . The permission information is used to notify the slave device 14 that the first measurement service can be performed. The device identification of the slave device 13 is used to identify the slave device 13 during subsequent execution of the first measurement service.
在另一些实施例中,第一测量许可还可以包括测量方式。当从设备14发送的第一测量请求中不包括测量方式时,中心设备11可以基于从设备14(第一测量请求的发起方)的测量器件和从设备13(第一测量请求的测量对象)的测量器件确定出第一测量业务的测量方式。例如,当从设备14的测量器件和从设备13的测量器件都包括蓝牙模块时,中心设备11可以确定第一测量业务的测量方式为蓝牙。在一些实施例中,中心设备11也可以基于第一测量业务确定测量方式,例如,当第一测量业务为测角时,中心设备11确定第一测量业务的测量方式为采用IMU器件测量。需要说明的是,中心设备11作为第一高级网络的主中心设备,可以通过第一高级网络获取从设备14的测量器件和从设备13的测量器件。In other embodiments, the first measurement permission may also include a measurement mode. When the first measurement request sent by the slave device 14 does not include the measurement method, the central device 11 may be based on the measurement device of the slave device 14 (the initiator of the first measurement request) and the slave device 13 (the measurement object of the first measurement request). The measurement device determines the measurement method of the first measurement service. For example, when the measurement device of the slave device 14 and the measurement device of the slave device 13 both include Bluetooth modules, the central device 11 may determine that the measurement mode of the first measurement service is Bluetooth. In some embodiments, the central device 11 may also determine the measurement method based on the first measurement service. For example, when the first measurement service is angle measurement, the central device 11 determines that the measurement method of the first measurement service is measurement using an IMU device. It should be noted that, as the main central device of the first high-level network, the central device 11 can obtain the measurement devices of the slave device 14 and the measurement devices of the slave device 13 through the first high-level network.
在一些实施例中,当中心设备11确定许可从设备14执行第一测量业务时,可选的,中心设备11可以向测量对象(例如从设备13)发送第一测量通知,通知从设备13为第一测量业务的测量对象。第一测量通知还可以包括第一测量业务的测量方式。从设备13接收并响应于第一测量通知,可以基于测量方式执行辅助操作,用于配合从设备14执行第一测量业务。In some embodiments, when the central device 11 determines that the slave device 14 is allowed to perform the first measurement service, optionally, the central device 11 may send a first measurement notification to the measurement object (for example, the slave device 13), notifying the slave device 13 to be The measurement object of the first measurement business. The first measurement notification may also include the measurement method of the first measurement service. The slave device 13 receives and responds to the first measurement notification and may perform auxiliary operations based on the measurement method to cooperate with the slave device 14 in performing the first measurement service.
例如,当第一测量业务的测量方式为蓝牙时,从设备13接收并响应于第一测量通知,可以开启从设备13的蓝牙,并发射蓝牙信号。For example, when the measurement method of the first measurement service is Bluetooth, the slave device 13 receives and responds to the first measurement notification, can turn on Bluetooth of the slave device 13, and transmit a Bluetooth signal.
又例如,当第一测量业务的测量方式为超声波时,从设备13接收并响应于第一测量通知,确定特定波形作为从设备13的设备标识,用于在接收到从设备14发射的超声波之后,发射该特定波形,以便于从设备14识别出从设备13反射的回波,等等。For another example, when the measurement mode of the first measurement service is ultrasonic wave, the slave device 13 receives and responds to the first measurement notification and determines a specific waveform as the device identifier of the slave device 13 for use after receiving the ultrasonic wave emitted by the slave device 14 , transmitting this specific waveform so that the echo reflected from the device 13 is recognized by the slave device 14, and so on.
S805,从设备14执行第一测量业务。S805: The slave device 14 performs the first measurement service.
从设备14接收并响应于第一测量许可,执行第一测量业务。The slave device 14 receives and responds to the first measurement permission and performs the first measurement service.
以第一测量业务为测量从设备14与从设备13之间的距离为例,从设备14接收到第一测 量许可之后,可以基于测量方式和从设备13的设备标识执行第一测量业务。其中,测量方式可以是从设备14自行确定的(参考步骤S801),也可以是从第一测量许可中获取的(参考步骤S807)。Taking the first measurement service as an example of measuring the distance between the slave device 14 and the slave device 13, the slave device 14 receives the first measurement After the quantity is allowed, the first measurement service can be executed based on the measurement mode and the device identification of the slave device 13 . The measurement method may be determined by the device 14 (refer to step S801), or may be obtained from the first measurement permission (refer to step S807).
示例性的,当测量方式为蓝牙时,从设备14可以接收并响应于第一测量许可,基于从设备13的设备标识确定从设备14接收的从设备13发射的蓝牙信号的强度,并基于从设备14接收的从设备13发射的蓝牙信号的强度确定出从设备14与从设备13之间的距离。具体的确定方式可以参考下述公式(2):
For example, when the measurement mode is Bluetooth, the slave device 14 may receive and respond to the first measurement permission, determine the strength of the Bluetooth signal transmitted by the slave device 13 received by the slave device 14 based on the device identification of the slave device 13, and determine the strength of the Bluetooth signal transmitted by the slave device 13 based on the slave device 14. The strength of the Bluetooth signal transmitted from device 13 received by device 14 determines the distance between slave device 14 and slave device 13 . The specific determination method can refer to the following formula (2):
在上述公式(2)中,d代表要测量的距离(单位为米),RSSI代表接收的蓝牙信号强度,A代表发射端和接收端相隔一米时蓝牙信号强度,n代表环境衰减因子。在应用场景确定的情况下,A和n的取值是确定的,可以看做常量。则根据上述公式(2),可以基于从设备14接收的从设备13发射的蓝牙信号的强度确定出从设备14与从设备13之间的距离。In the above formula (2), d represents the distance to be measured (in meters), RSSI represents the received Bluetooth signal strength, A represents the Bluetooth signal strength when the transmitter and receiver are one meter apart, and n represents the environmental attenuation factor. When the application scenario is determined, the values of A and n are determined and can be regarded as constants. Then according to the above formula (2), the distance between the slave device 14 and the slave device 13 can be determined based on the strength of the Bluetooth signal transmitted from the slave device 13 received by the slave device 14 .
可以理解的是,当测量方式为WLAN等其他方式时,也可以基于从设备14接收到的从设备13发射的信号的强度来确定从设备14与从设备13之间的距离。当测量方式为超声波时,从设备14可以发射超声波,接收从设备13反射的回波,并基于发射与接收回波的时间来确定从设备14与从设备13之间的距离。此外,当第一测量业务为测量从设备14与从设备13之间的角度、方位或内外关系等业务时,从设备14也可以基于IMU器件、UWB器件或超声波模块执行第一测量业务,并通过测角、测向、测距等算法确定出第一测量业务的测量结果。本申请在此不再赘述。It can be understood that when the measurement method is WLAN or other other methods, the distance between the slave device 14 and the slave device 13 can also be determined based on the strength of the signal transmitted from the slave device 13 received by the slave device 14 . When the measurement mode is ultrasonic waves, the slave device 14 can emit ultrasonic waves, receive echoes reflected from the slave device 13 , and determine the distance between the slave device 14 and the slave device 13 based on the time of transmitting and receiving the echoes. In addition, when the first measurement service is a service such as measuring the angle, orientation, or internal and external relationship between the slave device 14 and the slave device 13, the slave device 14 can also perform the first measurement service based on an IMU device, a UWB device, or an ultrasonic module, and The measurement result of the first measurement service is determined through algorithms such as angle measurement, direction finding, and ranging. This application will not go into details here.
S806,从设备14通过中心设备12向中心设备11发送第一测量业务的测量结果。S806: The slave device 14 sends the measurement result of the first measurement service to the central device 11 through the central device 12.
在执行第一测量业务之后,从设备14可以通过第一高级网络向中心设备11发送第一测量业务的测量结果,即从设备14向中心设备12发送第一测量业务的测量结果,中心设备12接收并向中心设备11发送第一测量业务的测量结果。After performing the first measurement service, the slave device 14 may send the measurement result of the first measurement service to the central device 11 through the first advanced network, that is, the slave device 14 sends the measurement result of the first measurement service to the central device 12, and the central device 12 Receive and send the measurement result of the first measurement service to the central device 11 .
以第一测量业务为测量从设备14与从设备13之间的距离为例,第一测量业务的测量结果可以是“从设备14与中心设备13之间的距离为5米”。又例如,在图2A至图2B所示的多屏协同场景中,第一测量业务的测量结果可以是“平板电脑21在显示器22的左侧”,或“平板电脑21在显示器22的上方”,等等。又例如,在图2C和图2D所示的车载场景中,第一测量业务的测量结果可以是“手机32在车31的内部”或“手机32在车31的外部”,等等。Taking the first measurement service as measuring the distance between the slave device 14 and the slave device 13 as an example, the measurement result of the first measurement service may be "the distance between the slave device 14 and the central device 13 is 5 meters." For another example, in the multi-screen collaboration scenario shown in FIG. 2A to FIG. 2B , the measurement result of the first measurement service may be "tablet 21 is on the left side of display 22", or "tablet 21 is above display 22" ,etc. For another example, in the vehicle scenarios shown in FIG. 2C and FIG. 2D , the measurement result of the first measurement service may be "the mobile phone 32 is inside the car 31" or "the mobile phone 32 is outside the car 31", and so on.
在一些实施例中,在从设备14通过中心设备12向中心设备11发送第一测量业务的测量结果的过程中,中心设备12在接收到第一测量业务的测量结果之后,可以将第一测量业务的测量结果保存在第二次级网络的业务数据中。第二次级网络的业务数据可以包括第二次级网络的测量数据和/或第二次级网络的待执行业务,其中,第二次级网络的测量数据包括第二次级网络中所有已经执行的测量业务产生的数据,第二次级网络的待执行业务包括第二次级网络中所有待执行的测量业务。第二次级网络的业务数据的具体内容可以比照参考第一高级网络的业务数据的内容,此处不再赘述。In some embodiments, during the process of sending the measurement result of the first measurement service from the device 14 to the central device 11 through the central device 12, the central device 12 may, after receiving the measurement result of the first measurement service, transfer the first measurement result to the central device 11. The measurement results of the service are stored in the service data of the secondary network. The service data of the second secondary network may include measurement data of the second secondary network and/or to-be-executed services of the second secondary network, where the measurement data of the second secondary network includes all completed services in the second secondary network. The data generated by the executed measurement service, the to-be-executed services of the second secondary network include all the to-be-executed measurement services in the second secondary network. The specific content of the service data of the second secondary network can be compared with the content of the service data of the first high-level network, and will not be described again here.
S807,中心设备11保存第一测量业务的测量结果。S807: The central device 11 saves the measurement result of the first measurement service.
中心设备11接收第一测量业务的测量结果,并将第一测量业务的测量结果保存至第一高 级网络的业务数据中。The central device 11 receives the measurement result of the first measurement service and saves the measurement result of the first measurement service to the first highest level. level network business data.
在一些实施例中,当中心设备11存储的第一高级网络的业务数据中包括与第一测量业务相同的测量数据时,即中心设备11存储有之前的第一测量业务的测量结果时,中心设备11更新第一高级网络的业务数据,将之前的第一测量业务的测量结果更换为最新的第一测量业务的测量结果。In some embodiments, when the service data of the first high-level network stored by the central device 11 includes the same measurement data as the first measurement service, that is, when the central device 11 stores the previous measurement results of the first measurement service, the center The device 11 updates the service data of the first advanced network and replaces the previous measurement result of the first measurement service with the latest measurement result of the first measurement service.
这样,可以及时更新主中心设备中保存的高级网络的业务数据,避免由于主中心设备保存的业务数据的失效而影响测量业务的执行。In this way, the business data of the advanced network stored in the main center device can be updated in time to avoid affecting the execution of the measurement service due to the failure of the service data stored in the main center device.
S808,中心设备11通过中心设备12向从设备14发送第一测量业务的测量结果。S808: The central device 11 sends the measurement result of the first measurement service to the slave device 14 through the central device 12.
当中心设备11可以基于第一高级网络的业务数据确定出第一测量业务的测量结果时,中心设备11确定以中心设备12为中继向从设备14发送第一测量业务的测量结果。该第一测量业务的测量结果还可用于指示从设备14不执行第一测量业务。When the central device 11 can determine the measurement result of the first measurement service based on the service data of the first advanced network, the central device 11 determines to send the measurement result of the first measurement service to the slave device 14 using the central device 12 as a relay. The measurement result of the first measurement service may also be used to indicate that the slave device 14 does not perform the first measurement service.
采用上述方法,可以基于高级网络执行测量业务。此外,由主中心设备确定是否执行第一测量业务,不仅可以避免执行不必要的测量业务,减少功耗,还可以避免不同测量业务执行过程中可能产生的冲突,从而避免影响测量结果。Using the above method, measurement services can be performed based on advanced networks. In addition, the main center device determines whether to execute the first measurement service, which not only avoids unnecessary measurement services and reduces power consumption, but also avoids conflicts that may occur during the execution of different measurement services, thereby avoiding affecting the measurement results.
在一种可能的实现方式中,当次中心设备接收到从设备发送的第一测量请求,且基于第一测量请求确定出第一测量业务的测量对象属于该次中心设备所在的次级网络时,可以由次中心设备基于该次级网络的业务数据确定是否许可从设备执行该第一测量业务。具体的确定方式可以参考上述图8所示实施例中的相关内容,本申请在此不再赘述。在第一测量业务执行之后,从设备可以将第一测量业务的测量结果发送至次中心设备,次中心设备接收并保存该第一测量业务的测量结果。此外,次中心设备还可以将第一测量业务的测量结果发送至高级网络的主中心设备,主中心设备也可以接收并保存该第一测量业务的测量结果。In a possible implementation, when the secondary central device receives the first measurement request sent from the slave device and determines based on the first measurement request that the measurement object of the first measurement service belongs to the secondary network where the secondary central device is located , the secondary center device may determine whether to allow the slave device to perform the first measurement service based on the service data of the secondary network. For the specific determination method, reference may be made to the relevant content in the embodiment shown in FIG. 8 , which will not be described again in this application. After the first measurement service is executed, the slave device may send the measurement result of the first measurement service to the secondary central device, and the secondary central device receives and saves the measurement result of the first measurement service. In addition, the secondary center device can also send the measurement results of the first measurement service to the main center device of the advanced network, and the main center device can also receive and save the measurement results of the first measurement service.
采用上述方法,由次中心设备确定其所处次级网络中测量业务是否需要执行,可以大大减少中心设备的任务量,测量请求可以得到更快的反馈,从而提高测量业务的执行效率。Using the above method, the secondary central device determines whether the measurement service in the secondary network where it is located needs to be executed, which can greatly reduce the task load of the central device, and the measurement request can receive faster feedback, thereby improving the execution efficiency of the measurement service.
需要说明的是,当第一测量业务的测量方式为超声波时,即便次中心设备确定其接收到的第一测量请求的测量对象为同一个次级网络中的电子设备,次级中心设备仍需要向中心设备发送第一测量请求,以确定在第一测量业务的执行过程中,没有其他采用超声波的测量业务进行干扰。It should be noted that when the measurement mode of the first measurement service is ultrasonic, even if the secondary central device determines that the measurement object of the first measurement request it receives is an electronic device in the same secondary network, the secondary central device still needs to A first measurement request is sent to the central device to determine that there is no interference from other measurement services using ultrasonic waves during the execution of the first measurement service.
在一种可能的实现方式中,当发起第一测量业务的设备无法执行第一测量业务(例如缺少相应的测量器件,等等)时,发起第一测量业务的设备可以向高级网络的主中心设备发送第一测量结果请求,用于请求主中心设备确定并向该设备发送第一测量业务的测量结果。需要说明的是,主中心设备可以基于该高级网络的业务数据确定第一测量业务的测量结果并向该设备发送第一测量业务的测量结果。当主中心设备基于该高级网络的业务数据无法确定第一测量业务的测量结果时,主中心设备可以确定在待执行业务中增加一项或多项测量业务,基于该一项或多项测量业务的测量结果可以推算出第一测量业务的测量结果。主中心设备可以在该一项或多项测量业务执行完毕之后,基于该一项或多项测量业务的测量结果确定出第一测量业务的测量结果,并向发起第一测量业务的设备发送第一测量业务的测量结果。In a possible implementation, when the device that initiates the first measurement service cannot perform the first measurement service (for example, lacks a corresponding measurement device, etc.), the device that initiates the first measurement service can report to the main center of the advanced network The device sends a first measurement result request, which is used to request the main center device to determine and send the measurement result of the first measurement service to the device. It should be noted that the main center device may determine the measurement result of the first measurement service based on the service data of the advanced network and send the measurement result of the first measurement service to the device. When the main center device cannot determine the measurement result of the first measurement service based on the service data of the advanced network, the main center device can determine to add one or more measurement services to the to-be-executed service, based on the one or more measurement services. The measurement results can be deduced from the measurement results of the first measurement service. After the execution of the one or more measurement services is completed, the main center device may determine the measurement results of the first measurement service based on the measurement results of the one or more measurement services, and send a third measurement result to the device that initiated the first measurement service. 1. Measurement results of measurement services.
在一种可能的实现方式中,上述实施例中的备份设备,除了可以备份高级网络的网络信 息,还可以备份高级网络的业务数据。例如,高级网络的中心设备可以周期性的向一个或多个备份设备发送该高级网络的业务数据和/或该高级网络的网络信息。高级网络的中心设备确定备份设备的方式可以参考前述实施例中的相关内容,本申请在此不再赘述。In a possible implementation, the backup device in the above embodiment can not only back up the network information of the advanced network, but also information, and can also back up business data of advanced networks. For example, the central device of the advanced network may periodically send the service data of the advanced network and/or the network information of the advanced network to one or more backup devices. For the way in which the central device of the advanced network determines the backup device, reference can be made to the relevant content in the foregoing embodiments, which will not be described again in this application.
这样,通过在备份设备保存备份数据,在中心设备保存的业务数据或高级网络的网络信息等数据无法被读取、遭到损毁、中心设备意外离线等情况下,高级网络可以读取备份设备中的备份数据,并基于备份数据保证高级网络的正常运行(例如,执行意外情况发生之前应该执行的测量业务、通信业务等等)。In this way, by saving backup data in the backup device, the advanced network can read the backup device when the business data stored in the central device or the network information of the advanced network cannot be read, is damaged, or the central device goes offline unexpectedly. backup data, and based on the backup data to ensure the normal operation of the advanced network (for example, performing measurement services, communication services, etc. that should be performed before unexpected situations occur).
除了图8所示的测量业务之外,本申请实施例提供的高级组网还可以执行其他业务,例如图2A至图2B所示的多屏协同业务、图2E至图2F所示的分布式协同业务等等。In addition to the measurement service shown in Figure 8, the advanced networking provided by the embodiment of the present application can also perform other services, such as the multi-screen collaborative service shown in Figure 2A to Figure 2B, the distributed service shown in Figure 2E to Figure 2F Collaborative business and so on.
如图9所示,以第一高级网络执行分布式协同为例,执行上述分布式协同业务的具体流程可以包括以下步骤:As shown in Figure 9, taking the first advanced network to implement distributed collaboration as an example, the specific process of executing the above distributed collaboration service may include the following steps:
S901,从设备14确定分布式协同业务的合作设备为中心设备11。S901: The slave device 14 determines that the cooperating device of the distributed collaborative service is the central device 11.
从设备14可以基于用户针对从设备14的操作确定分布式协同业务的合作设备为中心设备11。可以理解的是,此处合作设备为中心设备11仅为示例性说明,从设备14也可以确定其他电子设备为合作设备,本申请在此不做限定。The slave device 14 may determine that the cooperative device of the distributed collaborative service is the central device 11 based on the user's operation on the slave device 14 . It can be understood that the cooperative device being the central device 11 here is only an exemplary illustration, and the slave device 14 can also determine other electronic devices as cooperative devices, which is not limited in this application.
在一种可能的实现方式中,从设备14也可基于先前与从设备14建立过分布式协同关系的电子设备确定出分布式协同业务的合作设备。In a possible implementation, the slave device 14 may also determine the cooperating device of the distributed collaboration service based on the electronic devices that have previously established a distributed collaboration relationship with the slave device 14 .
需要说明的是,在一些实施例中,在从设备14确定合作设备为中心设备11之后,从设备14还需要确定中心设备11与从设备14的方位关系(例如图2A和图2B所示的多屏协同场景,等等),或确定中心设备11与从设备14的距离(例如图2E和图2F所示的分布式协同场景,等等)。即,当从设备14确定合作设备为中心设备11时,可以确定从设备14的第一测量业务为测量从设备14与中心设备11的方位关系或距离。其中。执行第一测量业务的具体流程可以参考图8所示的实施例,本申请在此不再赘述。It should be noted that in some embodiments, after the slave device 14 determines that the cooperative device is the central device 11, the slave device 14 also needs to determine the orientation relationship between the central device 11 and the slave device 14 (for example, as shown in Figures 2A and 2B Multi-screen collaboration scenario, etc.), or determine the distance between the central device 11 and the slave device 14 (such as the distributed collaboration scenario shown in Figure 2E and Figure 2F, etc.). That is, when the slave device 14 determines that the cooperative device is the central device 11 , it can determine that the first measurement service of the slave device 14 is to measure the orientation relationship or distance between the slave device 14 and the central device 11 . in. For the specific process of executing the first measurement service, reference can be made to the embodiment shown in FIG. 8 , which will not be described again in this application.
S902,从设备14向中心设备11发送分布式协同关系建立请求。S902: The slave device 14 sends a distributed collaboration relationship establishment request to the central device 11.
在确定合作设备为中心设备11之后,从设备11可以通过第一高级网络,以中心设备12为中继,向中心设备11发送分布式协同关系建立请求,用于请求中心设备11与从设备14建立分布式协同关系。After determining that the cooperative device is the central device 11, the slave device 11 can send a distributed collaboration relationship establishment request to the central device 11 through the first advanced network, using the central device 12 as a relay, for requesting the central device 11 and the slave device 14 Establish distributed collaborative relationships.
S903,中心设备11与从设备14建立分布式协同关系。S903: The central device 11 establishes a distributed collaboration relationship with the slave device 14.
S904,从设备14接收并响应于用户针对从设备14的第一操作,向中心设备11发送第一协同请求,用于请求中心设备11执行第二操作。S904: The slave device 14 receives and responds to the user's first operation on the slave device 14, and sends a first collaboration request to the central device 11 to request the central device 11 to perform a second operation.
在建立分布式协同关系之后,从设备14可以接收并响应于用户针对从设备14的第一操作,通过第一高级网络向中心设备11发送第一协同请求,该第一协同请求用于指示中心设备11执行第二操作。After the distributed collaboration relationship is established, the slave device 14 may receive and respond to the user's first operation on the slave device 14 and send a first collaboration request to the central device 11 through the first advanced network. The first collaboration request is used to instruct the center. The device 11 performs the second operation.
例如,在图2A和图2B所示的多屏协同场景下,第一操作可以是用户针对平板电脑21上的窗口向右拖动的操作,第一协同请求可以包括窗口信息和窗口在平板电脑21中的显示信息,该第一协同请求可用于指示显示器22显示窗口在平板电脑21中未显示的部分。又例如,在图2E和图2F所示的分布式协同场景下,第一操作可以是用户针对手机41上显示的文档目录中操作指南3001的点击操作,第一协同请求可以包括可用于指示平板电脑42显示操作 指南的正文内容,等等。For example, in the multi-screen collaboration scenario shown in FIG. 2A and FIG. 2B , the first operation may be the user's operation of dragging the window on the tablet 21 to the right. The first collaboration request may include window information and the location of the window on the tablet. 21, the first collaboration request may be used to instruct the display 22 to display the portion of the window that is not displayed on the tablet computer 21. For another example, in the distributed collaboration scenario shown in FIG. 2E and FIG. 2F , the first operation may be the user's click operation on the operation guide 3001 in the document directory displayed on the mobile phone 41 , and the first collaboration request may include information that can be used to instruct the tablet. Computer 42 display operation The text of the guide, etc.
S905,中心设备11执行第二操作。S905, the central device 11 performs the second operation.
接收并响应于第一协同请求,中心设备11可以执行第二操作。Upon receiving and responding to the first collaboration request, the central device 11 may perform a second operation.
例如,在图2A和图2B所示的多屏协同场景下,第一协同请求可用于指示显示器22显示窗口在平板电脑21中未显示的部分,则第二操作可以是显示器22显示窗口在平板电脑21中未显示的部分。又例如,在图2E和图2F所示的分布式协同场景下,第一协同请求可用于指示平板电脑42显示操作指南的正文内容,则第二操作可以是平板电脑42显示操作指南的正文内容,等等。For example, in the multi-screen collaboration scenario shown in FIG. 2A and FIG. 2B , the first collaboration request may be used to instruct the display 22 to display the part of the window that is not displayed on the tablet computer 21 , and then the second operation may be that the display 22 displays the window on the tablet computer 21 . Parts not shown in Computer 21. For another example, in the distributed collaboration scenario shown in FIG. 2E and FIG. 2F , the first collaboration request can be used to instruct the tablet computer 42 to display the text content of the operation guide, and the second operation can be that the tablet computer 42 displays the text content of the operation guide. ,etc.
本申请的各实施方式可以任意进行组合,以实现不同的技术效果。The various embodiments of the present application can be combined arbitrarily to achieve different technical effects.
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘(solid state disk,SSD))等。In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions described in this application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in or transmitted from one computer-readable storage medium to another, e.g., the computer instructions may be transferred from a website, computer, server, or data center Transmission to another website, computer, server or data center through wired (such as coaxial cable, optical fiber, digital subscriber line) or wireless (such as infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more available media integrated. The available media may be magnetic media (eg, floppy disk, hard disk, magnetic tape), optical media (eg, DVD), or semiconductor media (eg, solid state disk (SSD)), etc.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,该流程可以由计算机程序来指令相关的硬件完成,该程序可存储于计算机可读取存储介质中,该程序在执行时,可包括如上述各方法实施例的流程。而前述的存储介质包括:ROM或随机存储记忆体RAM、磁碟或者光盘等各种可存储程序代码的介质。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments are implemented. This process can be completed by instructing relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When the program is executed, , may include the processes of the above method embodiments. The aforementioned storage media include: ROM, random access memory (RAM), magnetic disks, optical disks and other media that can store program codes.
总之,以上所述仅为本发明技术方案的实施例而已,并非用于限定本发明的保护范围。凡根据本发明的揭露,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。 In short, the above descriptions are only examples of the technical solutions of the present invention and are not intended to limit the scope of the present invention. Any modifications, equivalent substitutions, improvements, etc. made based on the disclosure of the present invention shall be included in the protection scope of the present invention.

Claims (23)

  1. 一种系统,其特征在于,包括:第一中心设备、第二中心设备、第一从设备和与所述第二中心设备连接的从设备;A system, characterized in that it includes: a first central device, a second central device, a first slave device, and a slave device connected to the second central device;
    所述第一中心设备用于与所述第一从设备建立通信连接;The first central device is used to establish a communication connection with the first slave device;
    所述第一中心设备用于发送第一串网请求,所述第一串网请求用于请求与中心设备建立通信连接;The first central device is used to send a first network connection request, and the first network connection request is used to request to establish a communication connection with the central device;
    所述第一中心设备用于接收所述第二中心设备发送的所述第一串网响应;The first central device is configured to receive the first network connection response sent by the second central device;
    在所述第一中心设备接收所述第二中心设备发送的第一串网响应之后,所述第一中心设备用于与所述第二中心设备建立通信连接;After the first central device receives the first network connection response sent by the second central device, the first central device is used to establish a communication connection with the second central device;
    所述第一中心设备用于在所述第一中心设备和所述第二中心设备中确定主中心设备和次中心设备;The first central device is used to determine a primary central device and a secondary central device among the first central device and the second central device;
    当所述第一中心设备确定所述第一中心设备为主中心设备,所述第二中心设备为次中心设备时,所述第一中心设备用于向所述第二中心设备发送第一信息获取请求,所述第一信息获取请求用于请求获取第二次级网络的网络信息,所述第二次级网络包括所述第二中心设备以及与第二中心设备连接的从设备;When the first central device determines that the first central device is the main central device and the second central device is the secondary central device, the first central device is used to send the first information to the second central device Acquisition request, the first information acquisition request is used to request the acquisition of network information of a second secondary network, the second secondary network includes the second central device and a slave device connected to the second central device;
    所述第一中心设备用于接收所述第二中心设备发送的所述第二次级网络的网络信息;The first central device is configured to receive the network information of the second secondary network sent by the second central device;
    所述第一中心设备用于基于所述第一次级网络的网络信息和所述第二次级网络的网络信息确定第一高级网络的网络信息;The first central device is configured to determine the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network;
    其中,第一次级网络包括所述第一中心设备和所述第一从设备,所述第一高级网络包括所述第一中心设备、所述第二中心设备、所述第一从设备以及与所述第二中心设备连接的从设备,所述高级网络的网络信息包括第一次级网络的网络信息和所述第二次级网络的网络信息;Wherein, the first secondary network includes the first central device and the first slave device, and the first high-level network includes the first central device, the second central device, the first slave device and A slave device connected to the second central device, the network information of the high-level network includes the network information of the first secondary network and the network information of the second secondary network;
    所述第二中心设备用于接收所述第一串网请求;The second central device is used to receive the first network connection request;
    所述第二中心设备用于向所述第一中心设备发送第一串网响应;The second central device is configured to send a first network connection response to the first central device;
    在所述第二中心设备向所述第一中心设备发送的第一串网响应之后,所述第二中心设备用于与所述第一中心设备建立通信连接;After the second central device sends the first network connection response to the first central device, the second central device is used to establish a communication connection with the first central device;
    当确定所述第一中心设备为主中心设备,所述第二中心设备为次中心设备时,所述第二中心设备用于接收所述第一信息获取请求;When it is determined that the first central device is the main central device and the second central device is the secondary central device, the second central device is used to receive the first information acquisition request;
    在所述第二中心设备接收所述第一信息获取请求之后,所述第二中心设备用于向所述第一中心设备发送所述第二次级网络的网络信息;After the second central device receives the first information acquisition request, the second central device is configured to send the network information of the second secondary network to the first central device;
    所述第一从设备用于与所述第一中心设备建立通信连接。The first slave device is used to establish a communication connection with the first central device.
  2. 根据权利要求1所述的系统,其特征在于,所述系统还包括:第三中心设备以及与所述第三中心设备连接的从设备;The system according to claim 1, characterized in that the system further includes: a third central device and a slave device connected to the third central device;
    所述第一中心设备用于接收第三中心设备发送的第二串网响应;The first central device is used to receive the second network connection response sent by the third central device;
    在接收所述第二串网响应之后,所述第一中心设备用于与所述第三中心设备建立通信连接;After receiving the second network connection response, the first central device is used to establish a communication connection with the third central device;
    当所述第一中心设备确定所述第一中心设备为主中心设备,所述第二中心设备和所述第三中心设备均为次中心设备时,所述第一中心设备用于向所述第三中心设备发送第二信息获取请求,所述第二信息获取请求用于请求获取第三次级网络的网络信息,所述第三次级网络包括所述第三中心设备和与所述第三中心设备连接的从设备; When the first central device determines that the first central device is the main central device and the second central device and the third central device are both sub-central devices, the first central device is used to report to the The third central device sends a second information acquisition request. The second information acquisition request is used to request to acquire network information of a third secondary network. The third secondary network includes the third central device and the third central device. Slave devices connected to three central devices;
    所述第一中心设备用于接收所述第三中心设备发送的所述第三次级网络的网络信息;The first central device is configured to receive the network information of the third secondary network sent by the third central device;
    所述第一中心设备用于基于所述第一次级网络的网络信息、所述第二次级网络的网络信息和第三次级网络确定第一高级网络的网络信息,所述第一高级网络的网络信息包括第一次级网络的网络信息、所述第二次级网络的网络信息和第三次级网络的网络信息;The first central device is configured to determine the network information of the first high-level network based on the network information of the first secondary network, the network information of the second secondary network and the third secondary network, the first high-level network The network information of the network includes the network information of the first secondary network, the network information of the second secondary network and the network information of the third secondary network;
    所述第三中心设备用于向所述第一中心设备发送所述第二串网响应;The third central device is configured to send the second network connection response to the first central device;
    所述第三中心设备用于与所述第一中心设备建立通信连接;The third central device is used to establish a communication connection with the first central device;
    当所述第一中心设备确定所述第一中心设备为主中心设备,所述第二中心设备和所述第三中心设备均为次中心设备时,所述第三中心设备用于接收所述第二信息获取请求;When the first central device determines that the first central device is the main central device and the second central device and the third central device are both sub-central devices, the third central device is configured to receive the Second information acquisition request;
    响应于所述第二信息获取请求,所述第三中心设备用于向所述第一中心设备发送所述第三次级网络的网络信息。In response to the second information acquisition request, the third central device is configured to send the network information of the third secondary network to the first central device.
  3. 根据权利要求1或2所述的系统,其特征在于,所述系统还包括第四中心设备以及与所述第四中心设备连接的从设备;The system according to claim 1 or 2, characterized in that the system further includes a fourth central device and a slave device connected to the fourth central device;
    当确定所述第一中心设备为主中心设备时,所述第一中心设备还用于接收所述第四中心设备的第二串网请求,所述第二串网请求用于请求与中心设备建立通信连接;When the first central device is determined to be the main central device, the first central device is also used to receive a second network connection request from the fourth central device. The second network connection request is used to request communication with the central device. Establish communication connections;
    响应于所述第二串网请求,所述第一中心设备用于与所述第四中心设备建立通信连接;In response to the second network connection request, the first central device is used to establish a communication connection with the fourth central device;
    所述第一中心设备用于接收所述第四中心设备发送的第四次级网络的网络信息,所述第四次级网络包括所述第四中心设备以及与所述第四中心设备连接的从设备;The first central device is configured to receive network information of a fourth secondary network sent by the fourth central device. The fourth secondary network includes the fourth central device and a network connected to the fourth central device. slave device;
    所述第一中心设备用于基于所述第一高级网络的网络信息和第四次级网络的网络信息确定第二高级网络的网络信息,所述第二高级网络包括所述第一高级网络和所述第四次级网络;The first central device is configured to determine the network information of the second high-level network based on the network information of the first high-level network and the network information of the fourth secondary network. The second high-level network includes the first high-level network and the network information of the fourth secondary network. the fourth secondary network;
    所述第四中心设备用于向所述第一中心设备发送所述第二串网请求;The fourth central device is configured to send the second network connection request to the first central device;
    所述第四中心设备用于与所述第一中心设备建立通信连接;The fourth central device is used to establish a communication connection with the first central device;
    所述第四中心设备用于向所述第一中心设备发送所述第四次级网络的网络信息。The fourth central device is configured to send network information of the fourth secondary network to the first central device.
  4. 一种组网方法,其特征在于,包括:A networking method, characterized by including:
    第一中心设备与第一从设备建立通信连接;The first central device establishes a communication connection with the first slave device;
    所述第一中心设备发送第一串网请求,所述第一串网请求用于请求与中心设备建立通信连接;The first central device sends a first network connection request, and the first network connection request is used to request to establish a communication connection with the central device;
    所述第一中心设备接收第二中心设备发送的第一串网响应;The first central device receives the first network string response sent by the second central device;
    在所述第一中心设备接收第二中心设备发送的第一串网响应之后,所述第一中心设备与所述第二中心设备建立通信连接;After the first central device receives the first network connection response sent by the second central device, the first central device establishes a communication connection with the second central device;
    当所述第一中心设备确定所述第一中心设备为主中心设备,确定所述第二中心设备为次中心设备时,所述第一中心设备向所述第二中心设备发送第一信息获取请求,所述第一信息获取请求用于请求获取第二次级网络的网络信息,所述第二次级网络包括所述第二中心设备以及与第二中心设备连接的从设备;When the first central device determines that the first central device is the main central device and determines that the second central device is the secondary central device, the first central device sends the first information acquisition to the second central device. Request, the first information acquisition request is used to request to acquire network information of a second secondary network, the second secondary network includes the second central device and a slave device connected to the second central device;
    所述第一中心设备接收所述第二中心设备发送的所述第二次级网络的网络信息;The first central device receives the network information of the second secondary network sent by the second central device;
    所述第一中心设备基于所述第一次级网络的网络信息和所述第二次级网络的网络信息确定第一高级网络的网络信息;The first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network;
    其中,第一次级网络包括所述第一中心设备和所述第一从设备,所述第一高级网络包括所述第一中心设备、所述第二中心设备、所述第一从设备以及与所述第二中心设备连接的从设备,所述高级网络的网络信息包括第一次级网络的网络信息和所述第二次级网络的网络信 息。Wherein, the first secondary network includes the first central device and the first slave device, and the first high-level network includes the first central device, the second central device, the first slave device and A slave device connected to the second central device, and the network information of the high-level network includes the network information of the first secondary network and the network information of the second secondary network. interest.
  5. 根据权利要求4所述的方法,其特征在于,在所述第一中心设备与所述第一从设备建立通信连接之前,所述方法还包括:The method according to claim 4, characterized in that, before the first central device establishes a communication connection with the first slave device, the method further includes:
    第一中心设备发送探测请求,所述探测请求用于探测从设备;The first central device sends a detection request, the detection request is used to detect the slave device;
    所述第一中心设备接收第一从设备发送的探测响应;The first central device receives the detection response sent by the first slave device;
    响应于所述探测响应,所述第一中心设备向所述第一从设备发送第一组网请求,所述第一组网请求用于请求与所述第一从设备建立通信连接。In response to the detection response, the first central device sends a first networking request to the first slave device, where the first networking request is used to request to establish a communication connection with the first slave device.
  6. 根据权利要求4或5所述的方法,其特征在于,所述方法还包括:The method according to claim 4 or 5, characterized in that the method further includes:
    所述第一中心设备接收第三中心设备发送的第二串网响应;The first central device receives the second network connection response sent by the third central device;
    在接收所述第二串网响应之后,所述第一中心设备与所述第三中心设备建立通信连接;After receiving the second network connection response, the first central device establishes a communication connection with the third central device;
    当所述第一中心设备确定所述第一中心设备为主中心设备,所述第二中心设备和所述第三中心设备均为次中心设备时,所述第一中心设备向所述第三中心设备发送第二信息获取请求,所述第二信息获取请求用于请求获取第三次级网络的网络信息,所述第三次级网络包括所述第三中心设备和与所述第三中心设备连接的从设备;When the first central device determines that the first central device is the main central device and the second central device and the third central device are both secondary central devices, the first central device sends a request to the third central device. The central device sends a second information acquisition request. The second information acquisition request is used to request to acquire network information of a third secondary network. The third secondary network includes the third central device and the third center. The slave device to which the device is connected;
    所述第一中心设备接收所述第三中心设备发送的所述第三次级网络的网络信息;The first central device receives the network information of the third secondary network sent by the third central device;
    所述第一中心设备基于所述第一次级网络的网络信息和所述第二次级网络的网络信息确定第一高级网络的网络信息,具体包括:The first central device determines the network information of the first high-level network based on the network information of the first secondary network and the network information of the second secondary network, specifically including:
    所述第一中心设备基于所述第一次级网络的网络信息、所述第二次级网络的网络信息和第三次级网络确定第一高级网络的网络信息,所述第一高级网络的网络信息包括第一次级网络的网络信息、所述第二次级网络的网络信息和第三次级网络的网络信息。The first central device determines the network information of the first high-level network based on the network information of the first secondary network, the network information of the second secondary network and the third secondary network, and the network information of the first high-level network The network information includes network information of the first secondary network, network information of the second secondary network and network information of the third secondary network.
  7. 根据权利要求6所述的方法,其特征在于,在确定所述第一中心设备为主中心设备之后,所述方法还包括:The method according to claim 6, characterized in that after determining the first central device as the main central device, the method further includes:
    当所述第一中心设备离线时,所述第一中心设备向所述第二中心设备发送第一离线通知,所述第一离线通知用于通知所述第二中心设备所述第一中心设备离线。When the first central device is offline, the first central device sends a first offline notification to the second central device, and the first offline notification is used to notify the second central device of the first central device Offline.
  8. 根据权利要求6或7所述的方法,其特征在于,当所述第一中心设备为主中心设备,且所述第一中心设备离线后又上线时,所述方法还包括:The method according to claim 6 or 7, characterized in that when the first central device is the main central device and the first central device goes online after being offline, the method further includes:
    所述第一中心设备向所述第二中心设备和所述第三中心设备发送第一上线通知,所述第一上线通知用于通知所述第二中心设备或所述第三中心设备所述第一中心设备上线;The first central device sends a first online notification to the second central device and the third central device, and the first online notification is used to notify the second central device or the third central device that The first central equipment comes online;
    所述第一中心设备和所述第二中心设备建立通信连接;The first central device and the second central device establish a communication connection;
    所述第一中心设备和所述第三中心设备建立通信连接。The first central device and the third central device establish a communication connection.
  9. 根据权利要求4-8中任一项所述的方法,其特征在于,在确定所述第一中心设备为主中心设备之后,所述方法还包括:The method according to any one of claims 4 to 8, characterized in that after determining the first central device as the main central device, the method further includes:
    当所述第二中心设备离线时,所述第一中心设备确定所述第二中心设备离线;When the second central device is offline, the first central device determines that the second central device is offline;
    所述第一中心设备确定孤立设备,所述孤立设备是在所述第二中心设备离线之前与所述第二中心设备连接的从设备;The first central device determines an isolated device, and the isolated device is a slave device connected to the second central device before the second central device goes offline;
    所述第一中心设备向所述孤立设备发送第二组网请求,用于请求与所述孤立设备建立通 信连接;The first central device sends a second networking request to the isolated device for requesting to establish communication with the isolated device. letter connection;
    所述第一中心设备与所述孤立设备建立通信连接。The first central device establishes a communication connection with the isolated device.
  10. 根据权利要求9所述的方法,其特征在于,在所述第一中心设备与所述孤立设备建立通信连接之后,所述方法还包括:The method according to claim 9, characterized in that, after the first central device establishes a communication connection with the isolated device, the method further includes:
    当所述第二中心设备上线时,所述第一中心设备接收所述第二中心设备发送的第二上线通知,所述第二上线通知用于通知所述第一中心设备所述第二中心设备上线;When the second central device comes online, the first central device receives a second online notification sent by the second central device. The second online notification is used to notify the first central device that the second center The device is online;
    在所述第一中心设备接收所述第二上线通知之后,所述第一中心设备与所述第二中心设备建立通信连接;After the first central device receives the second online notification, the first central device establishes a communication connection with the second central device;
    所述第一中心设备断开与所述孤立设备之间的通信连接。The first central device disconnects the communication connection with the isolated device.
  11. 根据权利要求4-10中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 4-10, characterized in that the method further includes:
    当所述第一中心设备确定所述第二中心设备为主中心设备,确定所述第一中心设备为次中心设备时,所述第一中心设备向所述第二中心设备发送第一次级网络的网络信息。When the first central device determines that the second central device is the primary central device and determines that the first central device is a secondary central device, the first central device sends a first secondary central device to the second central device. Network information for the network.
  12. 根据权利要求4-10所述的方法,其特征在于,所述第一串网响应包括所述第二中心设备的硬件配置信息;The method according to claims 4-10, characterized in that the first network connection response includes the hardware configuration information of the second central device;
    所述第一中心设备确定所述第一中心设备为主中心设备,确定所述第二中心设备为次中心设备,具体包括:The first central device determines the first central device as the main central device and determines the second central device as the secondary central device, specifically including:
    所述第一中心设备基于所述第一中心设备的硬件配置信息和所述第二中心设备的硬件配置信息确定所述第一中心设备为主中心设备,确定所述第二中心设备为次中心设备,所述硬件配置信息用于指示设备的硬件能力,所述主中心设备的硬件能力高于所述次中心设备的硬件能力。The first central device determines that the first central device is the primary central device based on the hardware configuration information of the first central device and the hardware configuration information of the second central device, and determines that the second central device is the secondary center. The hardware configuration information is used to indicate the hardware capability of the device, and the hardware capability of the primary central device is higher than the hardware capability of the secondary central device.
  13. 根据权利要求4-12中任一项所述的方法,其特征在于,在确定所述第一中心设备为主中心设备之后,所述方法还包括:The method according to any one of claims 4 to 12, characterized in that after determining the first central device as the main central device, the method further includes:
    所述第一中心设备接收所述第一高级网络中的测量设备发送的第一测量请求,所述第一测量请求用于请求所述第一中心设备许可所述测量设备执行第一测量业务,所述测量设备是所述第一高级网络中与所述第一中心设备不同的任一设备;The first central device receives a first measurement request sent by a measurement device in the first advanced network, where the first measurement request is used to request the first central device to allow the measurement device to perform a first measurement service, The measurement device is any device in the first advanced network that is different from the first central device;
    响应于所述第一测量请求,当所述第一中心设备基于所述第一高级网络的业务数据确定出所述第一测量业务的测量结果时,所述第一中心设备向所述测量设备发送所述第一测量业务的测量结果;In response to the first measurement request, when the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network, the first central device sends the measurement result to the measurement device. Send the measurement result of the first measurement service;
    其中,所述第一高级网络的业务数据包括所述第一高级网络的测量数据和/或所述第一高级网络中待执行的测量业务,所述第一高级网络的测量数据包括所述第一高级网络中已经执行的测量业务产生的数据。Wherein, the service data of the first advanced network includes measurement data of the first advanced network and/or measurement services to be performed in the first advanced network, and the measurement data of the first advanced network includes the measurement data of the first advanced network. Data generated by measurement services that have been performed in an advanced network.
  14. 根据权利要求13所述的方法,其特征在于,所述方法还包括:The method of claim 13, further comprising:
    当所述第一中心设备基于所述第一高级网络的业务数据无法确定出所述第一测量业务的测量结果时,所述第一中心设备向所述测量设备发送所述第一测量许可,所述第一测量许可用于通知所述测量设备被许可执行所述第一测量业务;When the first central device cannot determine the measurement result of the first measurement service based on the service data of the first advanced network, the first central device sends the first measurement permission to the measurement device, The first measurement permission is used to notify the measurement device that it is permitted to perform the first measurement service;
    所述第一中心设备接收所述测量设备发送的所述第一测量业务的测量结果; The first central device receives the measurement result of the first measurement service sent by the measurement device;
    所述第一中心设备基于所述第一测量业务的测量结果更新所述第一高级网络的业务数据。The first central device updates the service data of the first advanced network based on the measurement result of the first measurement service.
  15. 根据权利要求13或14所述的方法,其特征在于,当确定所述第一中心设备为主中心设备时,所述方法还包括:The method according to claim 13 or 14, characterized in that when the first central device is determined to be the main central device, the method further includes:
    所述第一中心设备获取所述第一高级网络中的设备的设备探测类型和设备耗电类型,所述设备探测类型包括主动探测设备和被动探测设备,所述设备耗电类型包括长电设备和弱电设备;The first central device obtains the device detection type and device power consumption type of the device in the first advanced network. The device detection type includes active detection equipment and passive detection equipment. The device power consumption type includes long-term power equipment. and weak current equipment;
    所述第一中心设备基于所述第一高级网络中的设备的设备探测类型和设备耗电类型确定所述第二中心设备为备份设备,所述第二中心设备的设备探测类型为主动探测设备,且所述第二中心设备的设备耗电类型为长电设备;The first central device determines that the second central device is a backup device based on the device detection type and device power consumption type of the device in the first advanced network, and the device detection type of the second central device is an active detection device. , and the equipment power consumption type of the second central equipment is a long-term power equipment;
    所述第一中心设备向所述第二中心设备发送所述第一高级网络的网络信息和/或所述第一高级网络的业务数据。The first central device sends the network information of the first advanced network and/or the service data of the first advanced network to the second central device.
  16. 根据权利要求1-12中任一项所述的方法,其特征在于,在所述第一中心设备确定所述第一中心设备为主中心设备之后,所述方法还包括:The method according to any one of claims 1-12, characterized in that, after the first central device determines the first central device as the main central device, the method further includes:
    所述第一中心设备接收第四中心设备的第二串网请求,所述第二串网请求用于请求与中心设备建立通信连接;The first central device receives a second network connection request from the fourth central device, and the second network connection request is used to request to establish a communication connection with the central device;
    响应于所述第二串网请求,所述第一中心设备与所述第四中心设备建立通信连接;In response to the second network connection request, the first central device establishes a communication connection with the fourth central device;
    所述第一中心设备接收所述第四中心设备发送的第四次级网络的网络信息,所述第四次级网络包括所述第四中心设备以及与所述第四中心设备连接的从设备;The first central device receives the network information of the fourth secondary network sent by the fourth central device. The fourth secondary network includes the fourth central device and a slave device connected to the fourth central device. ;
    所述第一中心设备基于所述第一高级网络的网络信息和第四次级网络的网络信息确定第二高级网络的网络信息,所述第二高级网络包括所述第一高级网络和所述第四次级网络。The first central device determines network information of a second high-level network based on network information of the first high-level network and network information of a fourth secondary network. The second high-level network includes the first high-level network and the network information of the fourth secondary network. Fourth level network.
  17. 一种组网方法,其特征在于,包括:A networking method, characterized by including:
    所述第二中心设备接收第一中心设备发送的第一串网请求,所述第一串网请求用于请求与中心设备建立通信连接;The second central device receives a first network connection request sent by the first central device, and the first network connection request is used to request to establish a communication connection with the central device;
    所述第二中心设备向所述第一中心设备发送第一串网响应;The second central device sends a first network connection response to the first central device;
    在所述第二中心设备向所述第一中心设备发送的第一串网响应之后,所述第二中心设备与所述第一中心设备建立通信连接;After the second central device sends the first network connection response to the first central device, the second central device establishes a communication connection with the first central device;
    当确定所述第一中心设备为主中心设备,所述第二中心设备为次中心设备时,所述第二中心设备接收所述第一中心设备发送的第一信息获取请求,所述第一信息获取请求用于请求获取第二次级网络的网络信息,所述第二次级网络包括所述第二中心设备以及与第二中心设备连接的从设备;When it is determined that the first central device is the primary central device and the second central device is the secondary central device, the second central device receives the first information acquisition request sent by the first central device, and the first central device The information acquisition request is used to request the acquisition of network information of the second secondary network. The second secondary network includes the second central device and the slave device connected to the second central device;
    所述第二中心设备向所述第一中心设备发送所述第二次级网络的网络信息。The second central device sends the network information of the second secondary network to the first central device.
  18. 根据权利要求17所述的方法,其特征在于,在确定所述第一中心设备为主中心设备之后,所述方法还包括:The method according to claim 17, characterized in that after determining the first central device as the main central device, the method further includes:
    当所述第一中心设备离线时,所述第二中心设备确定所述第一中心设备离线;When the first central device is offline, the second central device determines that the first central device is offline;
    响应于所述第一离线通知,所述第二中心设备发送第三串网请求;In response to the first offline notification, the second central device sends a third network connection request;
    所述第二中心设备接收第三中心设备发送的第三串网响应;The second central device receives the third network connection response sent by the third central device;
    在所述第二中心设备接收第三中心设备发送的第三串网响应之后,所述第二中心设备与 所述第三中心设备建立通信连接;After the second central device receives the third network connection response sent by the third central device, the second central device communicates with The third central device establishes a communication connection;
    当所述第二中心设备确定所述第二中心设备为主中心设备,所述第三中心设备为次中心设备时,所述第二中心设备向所述第三中心设备发送第三信息获取请求,所述第三信息获取请求用于请求获取第三次级网络的网络信息,所述第三次级网络包括所述第三中心设备以及与第三中心设备连接的从设备;When the second central device determines that the second central device is the main central device and the third central device is the secondary central device, the second central device sends a third information acquisition request to the third central device. , the third information acquisition request is used to request to obtain network information of a third secondary network, the third secondary network includes the third central device and a slave device connected to the third central device;
    所述第二中心设备接收所述第三中心设备发送的所述第三次级网络的网络信息;The second central device receives the network information of the third secondary network sent by the third central device;
    所述第二中心设备基于所述第二次级网络的网络信息和所述第三次级网络的网络信息确定第三高级网络的网络信息;The second central device determines the network information of the third high-level network based on the network information of the second secondary network and the network information of the third secondary network;
    其中,所述第三高级网络包括所述第二中心设备、所述第三中心设备、与所述第二中心设备连接的从设备、与所述第三中心设备连接的从设备,所述高级网络的网络信息包括第二次级网络的网络信息和所述第三次级网络的网络信息。Wherein, the third advanced network includes the second central device, the third central device, a slave device connected to the second central device, and a slave device connected to the third central device. The advanced network The network information of the network includes the network information of the second secondary network and the network information of the third secondary network.
  19. 根据权利要求17或18所述的方法,其特征在于,当所述第一中心设备为主中心设备时,所述方法包括:The method according to claim 17 or 18, characterized in that when the first central device is the main central device, the method includes:
    所述第二中心设备接收所述第二次级网络中的测量设备发送的第一测量请求,所述第一测量请求用于请求所述第二中心设备许可所述测量设备执行第一测量业务,所述测量设备是所述第二次级网络中与所述第二中心设备不同的任一设备;The second central device receives a first measurement request sent by the measurement device in the second secondary network, and the first measurement request is used to request the second central device to allow the measurement device to perform a first measurement service. , the measuring device is any device in the second secondary network that is different from the second central device;
    响应于所述第一测量请求,当所述第二中心设备基于所述第二次级网络的业务数据确定出所述第一测量业务的测量结果时,所述第二中心设备向所述测量设备发送所述第一测量业务的测量结果;In response to the first measurement request, when the second central device determines the measurement result of the first measurement service based on the service data of the second secondary network, the second central device The device sends the measurement result of the first measurement service;
    其中,所述第二次级网络的业务数据包括所述第二次级网络的测量数据和/或所述第二次级网络中待执行的测量业务,所述第二次级网络的测量数据包括所述第二次级网络中已经执行的测量业务产生的数据。Wherein, the service data of the second secondary network includes measurement data of the second secondary network and/or measurement services to be performed in the second secondary network. The measurement data of the second secondary network Including data generated by measurement services that have been performed in the second secondary network.
  20. 根据权利要求19所述的方法,其特征在于,所述方法还包括:The method of claim 19, further comprising:
    当所述第二中心设备基于所述第二次级网络的业务数据无法确定出所述第一测量业务的测量结果时,所述第二中心设备向所述测量设备发送所述第一测量许可,所述第一测量许可用于通知所述测量设备被许可执行所述第一测量业务;When the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends the first measurement permission to the measurement device. , the first measurement permission is used to notify the measurement device that it is allowed to perform the first measurement service;
    所述第二中心设备接收所述测量设备发送的所述第一测量业务的测量结果;The second central device receives the measurement result of the first measurement service sent by the measurement device;
    所述第二中心设备基于所述第一测量业务的测量结果更新所述第二次级网络的业务数据。The second central device updates the service data of the second secondary network based on the measurement result of the first measurement service.
  21. 根据权利要求19所述的方法,其特征在于,所述方法还包括:The method of claim 19, further comprising:
    当所述第二中心设备基于所述第二次级网络的业务数据无法确定出所述第一测量业务的测量结果时,所述第二中心设备向所述第一中心设备发送所述第二测量请求,所述第二测量请求用于请求所述第一中心设备许可所述测量设备执行第一测量业务;When the second central device cannot determine the measurement result of the first measurement service based on the service data of the second secondary network, the second central device sends the second central device to the first central device. A measurement request, the second measurement request is used to request the first central device to allow the measurement device to perform the first measurement service;
    当所述第一中心设备基于所述第一高级网络的业务数据确定出所述第一测量业务的测量结果时,所述第二中心设备接收所述第一中心设备发送的所述第一测量业务的测量结果;When the first central device determines the measurement result of the first measurement service based on the service data of the first advanced network, the second central device receives the first measurement sent by the first central device. business measurement results;
    所述第二中心设备向所述测量设备发送所述第一测量业务的测量结果。The second central device sends the measurement result of the first measurement service to the measurement device.
  22. 一种电子设备,其特征在于,包括:一个或多个处理器、一个或多个存储器;所述一个或多个存储器与所述一个或多个处理器耦合,所述一个或多个存储器用于存储计算机程序 代码,所述计算机程序代码包括计算机指令,当所述一个或多个处理器执行所述计算机指令时,使得所述电子设备执行上述权利要求4-21中任一项所述的方法。An electronic device, characterized in that it includes: one or more processors and one or more memories; the one or more memories are coupled to the one or more processors, and the one or more memories are used to for storing computer programs Code, the computer program code includes computer instructions that, when executed by the one or more processors, cause the electronic device to perform the method described in any one of claims 4-21.
  23. 一种计算机可读存储介质,包括计算机指令,其特征在于,当所述计算机指令在电子设备上运行时,使得所述电子设备执行上述权利要求4-21中任一项所述的方法。 A computer-readable storage medium includes computer instructions, characterized in that when the computer instructions are run on an electronic device, the electronic device is caused to execute the method described in any one of claims 4-21.
PCT/CN2023/099897 2022-06-16 2023-06-13 Networking method and system, and related apparatus WO2023241566A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210680337.6 2022-06-16
CN202210680337.6A CN117295183A (en) 2022-06-16 2022-06-16 Networking method, networking system and related device

Publications (1)

Publication Number Publication Date
WO2023241566A1 true WO2023241566A1 (en) 2023-12-21

Family

ID=89192278

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/099897 WO2023241566A1 (en) 2022-06-16 2023-06-13 Networking method and system, and related apparatus

Country Status (2)

Country Link
CN (1) CN117295183A (en)
WO (1) WO2023241566A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954819A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Equipment networking method, electronic equipment and system
CN113630333A (en) * 2020-05-08 2021-11-09 中国移动通信集团终端有限公司 Distributed networking system and method based on multi-gateway access
CN113873678A (en) * 2020-09-10 2021-12-31 华为技术有限公司 Method and electronic equipment for transmitting data
CN113872782A (en) * 2020-06-30 2021-12-31 漳州立达信光电子科技有限公司 Equipment networking method, control equipment and Internet of things system
CN113950120A (en) * 2021-10-14 2022-01-18 成都康特电子科技股份有限公司 Equipment networking method and device, terminal equipment and readable storage medium

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112954819A (en) * 2019-12-11 2021-06-11 华为技术有限公司 Equipment networking method, electronic equipment and system
CN113630333A (en) * 2020-05-08 2021-11-09 中国移动通信集团终端有限公司 Distributed networking system and method based on multi-gateway access
CN113872782A (en) * 2020-06-30 2021-12-31 漳州立达信光电子科技有限公司 Equipment networking method, control equipment and Internet of things system
CN113873678A (en) * 2020-09-10 2021-12-31 华为技术有限公司 Method and electronic equipment for transmitting data
CN113950120A (en) * 2021-10-14 2022-01-18 成都康特电子科技股份有限公司 Equipment networking method and device, terminal equipment and readable storage medium

Also Published As

Publication number Publication date
CN117295183A (en) 2023-12-26

Similar Documents

Publication Publication Date Title
WO2020249098A1 (en) Bluetooth communication method, tws bluetooth headset, and terminal
US11653398B2 (en) Bluetooth connection method and device
WO2020249062A1 (en) Voice communication method and related device
EP4024917B1 (en) Bluetooth connection method and electronic device
CN111369988A (en) Voice awakening method and electronic equipment
WO2020253844A1 (en) Method and device for processing multimedia information, and storage medium
WO2021063189A1 (en) Method and system for information synchronization between multiple devices, and electronic device
WO2021115193A1 (en) Device networking method, electronic device, and system
WO2022068513A1 (en) Wireless communication method and terminal device
WO2023160265A1 (en) Incoming call response method and corresponding terminal and communication system
CN110944307A (en) Data transmission method, terminal, server, device and storage medium
EP4171135A1 (en) Device control method, and related apparatus
WO2022213689A1 (en) Method and device for voice communicaiton between audio devices
CN113365274B (en) Network access method and electronic equipment
CN117062256B (en) Cross-equipment service transfer method, electronic equipment and system
CN114125789B (en) Communication method, terminal device and storage medium
CN113965715A (en) Equipment cooperative control method and device
WO2021043250A1 (en) Bluetooth communication method, and related device
WO2021027623A1 (en) Device capability discovery method and p2p device
WO2023241566A1 (en) Networking method and system, and related apparatus
US20230171691A1 (en) Data transmission method and apparatus, and storage medium
WO2022111657A1 (en) Wlan communication method and related apparatus
WO2022143724A1 (en) Channel quality evaluation method and related apparatus
WO2022016465A1 (en) Positioning measurement method, positioning measurement device, and storage medium
WO2021043277A1 (en) Method for configuring bluetooth connection parameter, and electronic device

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23823134

Country of ref document: EP

Kind code of ref document: A1