Connection configuration method and apparatus
By acquiring device information to generate topology information, the problem of cumbersome connection configuration between smart devices is solved, and efficient connection and network management between devices are achieved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- HUAWEI TECH CO LTD
- Filing Date
- 2021-03-29
- Publication Date
- 2026-07-14
Smart Images

Figure CN116250213B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of communication technology, and in particular to a connection configuration method and apparatus. Background Technology
[0002] The connectivity between smart devices has greatly enriched people's daily lives. For example, in a smart home environment, users' smartphones can connect with home appliances such as smart refrigerators, smart vacuum cleaners, or smart speakers, and they can use their smartphones to manage, control, and transmit data to other connected home appliances.
[0003] Taking the connection between a smartphone and a smart speaker as an example, typically, the smartphone needs to scan a QR code or enter a verification code corresponding to the smart speaker to establish a connection. The QR code or verification code may be printed on the smart speaker itself, or be a string of text. Short-range communication between devices has provided great convenience to people's lives. However, as the number of terminal devices surrounding users in home environments and other areas increases, the management and connection of multiple devices will become increasingly complex.
[0004] In summary, configuring the connections between the aforementioned devices is a cumbersome, complex, and inefficient process. Summary of the Invention
[0005] This application provides a connection configuration method and apparatus, relating to the field of communication technology, which can realize the connection configuration of multiple short-range devices. The method is simple and efficient.
[0006] In a first aspect, embodiments of this application provide a connection configuration method, comprising: obtaining device information of at least one second device; generating topology information based on the device information of the at least one second device; the topology information being used to indicate the connection relationship between a first device and at least one second device, or the connection relationship between at least one second device, wherein the connection relationship is used to indicate the priority of the devices and / or the master-slave relationship between the devices. The topology information generated here may be referred to as first topology information.
[0007] Furthermore, the method also includes sending all or part of the first topology information, or sending information indicating or representing all or part of the first topology information, which is also used to indicate the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device. The information sent here may be referred to as second topology information, which may be the same as or different from the first topology information.
[0008] This solves the cumbersome process of configuring devices on a one-to-one basis in the existing methods, simplifies the connection configuration process between multiple devices, and is a simple and efficient method.
[0009] In possible implementations, the connection relationship is related to at least one business function. This allows for the establishment of connections tailored to different business functions.
[0010] One possible implementation involves generating topology information, including: generating topology information based on user input; wherein the input information includes drawing information or configuration information; the drawing information is obtained from the user through drawing operations on the connections between a first device and at least one second device, or between at least one second device; the configuration information is obtained from the user through configuring attributes between the first device and at least one second device, or between at least one second device. This allows for flexible configuration of the topology information, enabling the construction of a network based on this topology information, and facilitating efficient communication between devices based on the network.
[0011] One possible implementation involves generating topology information by: outputting at least one prompt message; generating topology information based on information responding to the prompt message; wherein the information responding to the prompt message is used to establish a connection relationship between a first device and at least one second device, or to establish a connection relationship between at least one second device. This allows for flexible configuration of the topology information, enabling the construction of a network based on this topology information, and facilitating efficient communication between devices.
[0012] One possible implementation involves generating topology information, including: generating topology information in response to a change in the position of a device identifier displayed on the interface; the device identifier is used to identify the device. This allows for flexible configuration of the topology information, enabling the construction of a network based on this information, and facilitating efficient communication between devices.
[0013] One possible implementation is to display the topology, which includes the connection relationships. This allows for a more intuitive view of the connections between devices.
[0014] In a possible implementation, the topology may also include the relative distances and / or relative orientations between devices; wherein the length of the lines reflecting the connection relationships is positively correlated with the relative distances, and / or, the lines reflecting the connection relationships are marked with distance parameters between the devices corresponding to the connection relationships. This allows for a more accurate display of the topology based on relative distances and / or relative orientations.
[0015] One possible implementation involves obtaining device information for at least one second device, including: sending a query request containing the identity information of a first device; and receiving device information from at least one second device, wherein the identity information of the first device is used to identify the first device. In this way, the first device can obtain the device information of the second devices based on the query request, and then generate topology information adapted to the different device information of each device.
[0016] In one possible implementation, the device information of the second device is carried in a random access request or response message. This allows the first device to obtain the device information of the second device based on the random access request or response message, and then generate topology information adapted to the different device information of each device.
[0017] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0018] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0019] Secondly, embodiments of this application provide a connection configuration method, including: sending device information of a second device; receiving topology information from a first device, the topology information including connection relationships between the first device and at least one second device, or connection relationships between at least one second device, the connection relationships being used to indicate device priority and / or master-slave relationships between devices. The received topology information may be the second topology information mentioned above. Specifically, the second topology information may include all or part of the information in the first topology information, or information indicating or representing all or part of the information in the first topology information.
[0020] This solves the cumbersome process of configuring devices on a one-to-one basis in the existing methods, simplifies the connection configuration process between multiple devices, and is a simple and efficient method.
[0021] One possible implementation involves sending the device information of the second device, including: receiving a query request from the first device; the query instruction including the identity information of the first device; and sending the device information of the second device to the first device according to the query request. In this way, the first device can obtain the device information of the second device based on the query request, and then generate topology information adapted to the different device information of each device.
[0022] In one possible implementation, the device information of the second device is carried in a random access request or response message. This allows the first device to obtain the device information of the second device based on the random access request or response message, and then generate topology information adapted to the different device information of each device.
[0023] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0024] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0025] Thirdly, embodiments of this application provide a connection configuration apparatus. The connection configuration apparatus may be a first device, or a chip or chip system within the first device. The connection configuration apparatus includes at least one of a display unit, a processing unit, and a communication unit. When the connection configuration apparatus is a first device, the communication unit may be a communication interface or interface circuit. The communication unit is used to perform steps of communicating with a second device, so that the first device implements a connection configuration method described in the first aspect or any possible implementation of the first aspect. When the connection configuration apparatus is a first device, the display unit may be a display screen. The display unit is used to perform display steps, so that the first device implements a connection configuration method described in the first aspect or any possible implementation of the first aspect. When the connection configuration apparatus is a first device, the processing unit may be a processor. The connection configuration apparatus may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to make the first device implement a connection configuration method described in the first aspect or any possible implementation of the first aspect. When the connection configuration apparatus is a chip or chip system within the first device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to cause the first device to implement a connection configuration method described in the first aspect or any possible implementation of the first aspect. The storage unit may be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the first device (e.g., a read-only memory, random access memory, etc.).
[0026] For example, the processing unit is configured to acquire device information of at least one second device; the processing unit is further configured to generate topology information based on the device information of at least one second device; the topology information is used to indicate the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device, and the connection relationship is used to indicate the priority of the devices and / or the master-slave relationship between the devices.
[0027] In possible implementations, the connection relationship is related to at least one business function.
[0028] In a possible implementation, the processing unit is specifically used to: generate topology information based on input information from the user; wherein the input information includes drawing information or configuration information; the drawing information is obtained from the user through drawing operations on the connection between the first device and at least one second device, or between at least one second device; the configuration information is obtained based on configuration operations from the user on the attributes between the first device and at least one second device, or between at least one second device.
[0029] In a possible implementation, the communication unit is specifically used to output at least one prompt message; the processing unit is specifically used to generate topology information based on the information in response to the prompt message; wherein the information in response to the prompt message is used to establish a connection relationship between the first device and at least one second device from the user, or to establish a connection relationship between at least one second device.
[0030] In a possible implementation, the processing unit is specifically used to: generate topology information in response to a change in the position of the device identifier displayed on the interface; the device identifier is used to identify the device.
[0031] In a possible implementation, the display unit is specifically used to display the topology, which includes connection relationships.
[0032] In possible implementations, the topology may also include the relative distance and / or relative orientation between devices; wherein the length of the connecting lines used to reflect the connection relationship is positively correlated with the relative distance, and / or the connecting lines used to reflect the connection relationship are marked with the distance parameters between the devices corresponding to the connection relationship.
[0033] In a possible implementation, the communication unit is specifically used for: sending a query request, the query request containing the identity information of the first device; and receiving device information from at least one second device; wherein the identity information of the first device is used to identify the first device.
[0034] In a possible implementation, the device information of the second device is carried in a random access request or response message.
[0035] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0036] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0037] Fourthly, embodiments of this application provide a connection configuration apparatus. The connection configuration apparatus may be a second device, or a chip or chip system within the second device. The connection configuration apparatus includes a processing unit and a communication unit. When the connection configuration apparatus is a second device, the communication unit may be a communication interface or interface circuit. The communication unit is used to perform steps of communicating with the second device, so that the second device implements a connection configuration method described in the second aspect or any possible implementation of the second aspect. When the connection configuration apparatus is a second device, the processing unit may be a processor. The connection configuration apparatus may further include a storage unit, which may be a memory. The storage unit is used to store instructions, and the processing unit executes the instructions stored in the storage unit to make the second device implement a connection configuration method described in the second aspect or any possible implementation of the second aspect. When the connection configuration apparatus is a chip or chip system within the second device, the processing unit may be a processor. The processing unit executes the instructions stored in the storage unit to make the second device implement a connection configuration method described in the second aspect or any possible implementation of the second aspect. The storage unit can be a storage unit within the chip (e.g., a register, cache, etc.) or a storage unit located outside the chip within the second device (e.g., a read-only memory, random access memory, etc.).
[0038] For example, the communication unit is used to send device information of the second device; the communication unit is also used to receive topology information from the first device, the topology information including the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device, the connection relationship being used to indicate the priority of the devices and / or the master-slave relationship between the devices.
[0039] In a possible implementation, the communication unit is specifically used for: receiving a query request from a first device; the query instruction includes the identity information of the first device; and sending the device information of the second device to the first device according to the query request.
[0040] In a possible implementation, the device information of the second device is carried in a random access request or response message.
[0041] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0042] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0043] Fifthly, embodiments of this application provide a computer-readable storage medium storing a computer program or instructions that, when executed on a computer, cause the computer to perform a connection configuration method as described in any implementation of the first aspect, or a connection configuration method as described in any implementation of the second aspect.
[0044] Sixthly, embodiments of this application provide a computer program product including instructions that, when executed on a computer, cause the computer to execute the connection configuration method described in any implementation of the first aspect, or to execute the connection configuration method described in any implementation of the second aspect.
[0045] In a seventh aspect, embodiments of this application provide a terminal that includes the connection configuration device described in the third aspect and various possible implementations of the third aspect, or the connection configuration device described in the fourth aspect and various possible implementations of the fourth aspect.
[0046] In possible implementations, the terminal may include electronic devices such as mobile phones, tablets, computers, vehicles (or in-vehicle infotainment systems), smart wearable devices, smart manufacturing equipment, or smart home devices. The electronic devices can implement the connection configuration method described in the embodiments of this application through a connection configuration device. The connection configuration device described in the above embodiments includes, but is not limited to, chips, modules, or integrated circuits in the aforementioned terminal.
[0047] Eighthly, embodiments of this application provide a connection configuration apparatus, which includes a processor and a storage medium. The storage medium stores instructions that, when executed by the processor, implement the connection configuration method described in any implementation of the first aspect or the connection configuration method described in any implementation of the second aspect.
[0048] Ninthly, this application provides a chip or chip system including at least one processor and a communication interface. The communication interface and the at least one processor are interconnected via a circuit. The at least one processor is used to run computer programs or instructions to perform the connection configuration method described in any implementation of the first aspect, or the connection configuration method described in any implementation of the second aspect. The communication interface in the chip can be an input / output interface, a pin, or a circuit, etc.
[0049] In one possible implementation, the chip or chip system described above in this application further includes at least one memory storing instructions. The memory can be an internal storage unit of the chip, such as a register or cache, or it can be a storage unit of the chip itself (e.g., read-only memory, random access memory, etc.).
[0050] It should be understood that the third to ninth aspects of this application correspond to the technical solutions of the first to second aspects of this application, and the beneficial effects obtained by each aspect and the corresponding feasible implementation are similar, and will not be repeated here. Attached Figure Description
[0051] Figure 1 A schematic diagram of an interface for configuring connection relationships provided in an embodiment of this application;
[0052] Figure 2 A schematic diagram illustrating an application scenario provided in an embodiment of this application;
[0053] Figure 3 A schematic diagram illustrating another application scenario provided by an embodiment of this application;
[0054] Figure 4 A schematic diagram illustrating yet another application scenario provided by an embodiment of this application;
[0055] Figure 5 A flowchart illustrating a connection configuration method provided in an embodiment of this application;
[0056] Figure 6 This is a schematic diagram of an interface for generating topology information provided in an embodiment of this application;
[0057] Figure 7 This is a schematic diagram of another interface for generating topology information provided in an embodiment of this application;
[0058] Figure 8 This is a schematic diagram of another interface for generating topology information provided in an embodiment of this application;
[0059] Figure 9 This application provides another schematic diagram of an interface for generating topology information.
[0060] Figure 10 This is a schematic diagram of a process for obtaining device information provided in an embodiment of this application;
[0061] Figure 11 A schematic diagram illustrating another process for obtaining device information provided in an embodiment of this application;
[0062] Figure 12 This is a schematic diagram of another process for obtaining device information provided in an embodiment of this application;
[0063] Figure 13 A schematic diagram illustrating another process for obtaining device information provided in an embodiment of this application;
[0064] Figure 14 A schematic diagram illustrating a topological information transmission and diffusion process provided in an embodiment of this application;
[0065] Figure 15 A schematic diagram illustrating a process for transmitting and diffusing topological information, provided as an embodiment of this application;
[0066] Figure 16 A schematic diagram illustrating another topological information transmission and diffusion process provided in an embodiment of this application;
[0067] Figure 17 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application;
[0068] Figure 18 This is a schematic diagram of the structure of a connection configuration device provided in an embodiment of this application;
[0069] Figure 19 This is a schematic diagram of the hardware structure of a control device provided in an embodiment of this application;
[0070] Figure 20 This is a schematic diagram of the structure of a chip provided in an embodiment of this application. Detailed Implementation
[0071] To facilitate a clear description of the technical solutions in the embodiments of this application, the terms "first" and "second" are used in the embodiments of this application to distinguish identical or similar items with essentially the same function and effect. For example, the first value and the second value are only used to distinguish different values and do not limit their order. Those skilled in the art will understand that the terms "first" and "second" do not limit the quantity or execution order, and the terms "first" and "second" are not necessarily different.
[0072] It should be noted that, in this application, the terms "exemplary" or "for example" are used to indicate that something is being described as an example, illustration, or illustration. Any embodiment or design described as "exemplary" or "for example" in this application should not be construed as being more preferred or advantageous than other embodiments or design solutions. Specifically, the use of terms such as "exemplary" or "for example" is intended to present the relevant concepts in a concrete manner.
[0073] In this application, "at least one" means one or more, and "more than one" means two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A alone, A and B simultaneously, or B alone, where A and B can be singular or plural. The character " / " generally indicates that the preceding and following related objects are in an "or" relationship. "At least one of the following" or similar expressions refer to any combination of these items, including any combination of single or plural items. For example, at least one of a, b, or c can mean: a, b, c, ab, ac, bc, or abc, where a, b, and c can be single or multiple.
[0074] With the development of terminal devices, especially smartphones, the discovery and connection between devices has greatly enriched people's lives. Wireless short-range communication between devices has been widely applied in various fields. Wireless short-range communication can be understood as communication between devices without needing cellular networks and / or the internet; it can be achieved through direct wireless connections between devices or through wireless relays from other devices. Typically, matching codes, QR codes, and other necessary information can be used to configure the connection relationship between smartphones and other devices for wireless short-range networking. For example, when controlling a smart speaker with a smartphone, the smartphone can scan the QR code attached to the smart speaker to configure a one-to-one connection between the smartphone and the smart speaker.
[0075] Alternatively, when the smart speaker is in discoverable or connectable mode, users can connect to the smart speaker by selecting the corresponding smart speaker device on the mobile app interface.
[0076] For example, Figure 1 This is a schematic diagram of an interface for configuring connection relationships provided in an embodiment of this application. When a user turns on the smart speaker and selects the corresponding smart speaker device on their mobile phone, the user needs to enter the serial number corresponding to the speaker device on the mobile phone interface to complete the connection between the smartphone and the smart speaker. For example, the user can first turn on the device discovery function of the smart speaker and scan for the device with their smartphone. The smartphone can display... Figure 1The interface shown in Figure 'a' includes a device scan, a device list, and multiple devices listed, such as smart speaker 101, smart speaker 102, and smart speaker 103. When a user triggers the control corresponding to smart speaker 103 and selects to connect their smartphone to smart speaker 103, the smartphone can display a prompt message 104, reminding the user to enter the serial number of smart speaker 103. Entering the serial number of smart speaker 103 completes the device connection between the smartphone and the smart speaker.
[0077] Once the connection is successfully configured, the smartphone and smart speaker can interact, allowing the smartphone to control the smart speaker's on / off state. For example... Figure 1 The interface shown in b can include an on / off control 105 and an off control 106. These on / off controls 105 and 106 allow the smart speaker to be turned on or off via a smartphone.
[0078] Alternatively, smartphones can also control smart speakers to play songs stored on the smartphone. For example, when a user... Figure 1 In the interface shown in b, when the control 105 is triggered, the following can be displayed: Figure 1 The interface shown in 'c' is an example of a smart speaker interface. This interface can include frequently listened music, local music, and online music. Frequently listened music may include music 107, music 108, music 109, and music 110. When the user triggers the playback control 111 corresponding to music 107, the smart speaker can play music 107.
[0079] However, the connection process for these devices is complex, especially for the elderly or children, making them less practical. Taking a home setting as an example, the connection and management of multiple devices presents the following problems:
[0080] First, in a home environment, connections between smartphones and other devices are not always one-to-one; there may also be interconnections between other smart devices. For example, when a user needs to play videos, the TV can connect to multiple speakers in the home. In such cases, entering verification codes or QR codes for the speaker devices on the TV is usually quite difficult. Furthermore, when multiple speaker devices are present, the connection relationships typically need to be configured one by one.
[0081] Secondly, the connectivity between devices is not static; it may change as the user's business needs evolve. For example, in the morning, a user might play audio data from a TV through multiple speakers; in the afternoon, the user might need to play music from their smartphone through multiple speakers. In this case, connections between the phone and multiple speakers need to be established. Typically, when the connectivity between devices changes, it may be necessary to reconfigure the connections.
[0082] Secondly, many smart devices may not have an input interface, therefore, traditional pairing codes and passwords cannot be used to configure connections between devices. In such cases, third-party devices may be necessary. For example, when a smart speaker needs to connect to a Wireless Fidelity (Wi-Fi) access point, the phone and smart speaker typically need to establish a connection first, and then the corresponding Wi-Fi username and password must be entered. This means the corresponding Wi-Fi username and password information is transmitted to the smart speaker, after which the smart speaker can use this information to establish a Wi-Fi connection.
[0083] Besides the aforementioned issues in scenarios involving short-range wireless communication among multiple devices, where cumbersome device configuration and connection processes lead to difficulties in proper configuration and management, similar problems arise in scenarios involving network communication across multiple nodes. For example, in a wireless mesh network, nodes connect via wireless multi-hops. When any node in the network communicates, it preemptively selects available communication resources, resulting in a lack of unified management of resource allocation across nodes. This leads to resource conflicts and communication failures when two nodes communicate simultaneously and both preempt the same resources.
[0084] In view of this, the connection configuration method and apparatus provided in this application can obtain device information of at least one second device, and generate topology information adapted to the device information of each second device based on the differences in the device information of each second device. This enables the construction of connection configuration relationships between multiple devices based on topology information generated from different device information. It solves the cumbersome process of one-to-one device connection configuration in existing methods, simplifies the connection configuration process between multiple devices, and enables efficient communication between devices through a network constructed based on this configuration relationship.
[0085] To better understand the methods of the embodiments of this application, the application scenarios to which the embodiments of this application are applicable are described below.
[0086] In possible implementations, the connection configuration method provided in this application can be applied to smart home scenarios. For example, devices such as smartphones, smartwatches, tablets, smart refrigerators, smart TVs, smart vacuum cleaners, or smart speakers in a home environment can form a communication network, thereby enabling the management, control, and data transmission of other devices within the network using smartphones or TVs. Specifically, smartphones or TVs can control audio, video, or other functions of other devices within the network.
[0087] For example, Figures 2-4 These are schematic diagrams illustrating device connection scenarios under different conditions provided in the embodiments of this application. Wherein, Figure 2 For scenarios where audio control is implemented based on device connectivity, Figure 3 For scenarios where video control is implemented based on device connectivity, Figure 5 This is for scenarios that enable full connectivity of mobile phones based on device connectivity.
[0088] For example, Figure 2 This is a schematic diagram illustrating an application scenario provided by an embodiment of this application. For example... Figure 2 As shown, in the scenario of implementing audio control, the TV or set-top box 201 can establish a network with smart speakers 202, 203, 204, and 205. After successful network establishment, the TV or set-top box 201 can control and manage the audio functions of multiple smart speakers within the network. For example, the TV or set-top box 201 can use smart speakers 202 and 203 to play sound and control smart speakers 204 and 205 to turn off the sound.
[0089] For example, Figure 3 This is a schematic diagram illustrating another application scenario provided by an embodiment of this application. For example... Figure 3 As shown, in a video control scenario, the projector 301 can form a network with a set-top box 302, a smartphone 303, a tablet computer (PAD) 304, a personal computer (PC) 305, a game console 306, an augmented reality (AR) or virtual reality (VR) headset 307, or other devices. Once the network is successfully established, the projector 301 can control and manage the video functions of multiple devices within the network. For example, the projector 301 can control the AR / VR headset 307 to play video, allowing users to view the video content transmitted by the projector 301 using the AR or VR headset 307.
[0090] For example, Figure 4 This is a schematic diagram illustrating another application scenario provided by an embodiment of this application. For example... Figure 4 As shown, in a scenario where full connectivity is achieved, the smartphone 401 can form a network with other terminal devices such as the PAD 402, PC 403, watch 404, and camera 405. After successful network formation, the smartphone 401 can control and manage multiple devices within the network. For example, the smartphone 401 can transfer files to the PC 403, allowing the user to edit the files transferred from the smartphone 401 via the PC 403.
[0091] It is understood that the terminal devices described in the embodiments of this application include, but are not limited to, mobile stations (MS), mobile terminals, mobile telephones, handsets, and portable equipment. The terminal device can communicate with one or more core networks via a radio access network (RAN). For example, the terminal device can be a mobile phone (or "cellular" phone), a computer with wireless communication capabilities, a computer with wireless transceiver capabilities, a virtual reality terminal device, an augmented reality terminal device, a wireless terminal in industrial control, a wireless terminal in self-driving, a wireless terminal in remote medical care, a wireless terminal in smart grid or smart manufacturing, a wireless terminal in transportation safety, a drone, a wireless terminal in a smart city, a smart home in a smart home, or other wireless terminals, etc. Terminals can be called by different names in different networks, such as: user equipment, mobile station, user unit, station, cellular phone, personal digital assistant, wireless modem, wireless communication equipment, handheld device, laptop, cordless phone, wireless local loop station, etc.
[0092] In possible implementations, the connection configuration method provided in this application embodiment can also be applied to the field of intelligent vehicles. For example, a user's smartphone can establish a configuration connection with devices such as car door locks or car air conditioning, thereby enabling the smartphone to unlock or control the car door locks or air conditioning.
[0093] In possible implementations, the connection configuration method provided in this application embodiment can also be applied in the medical and health field. For example, a user's smartphone, smartwatch, or tablet computer can establish a configuration connection with a sensor that acquires human body data, thereby enabling the terminal device to monitor various indicators of the human body at any time, such as heart rate or blood pressure, thereby ensuring human safety.
[0094] It is understood that in the above-mentioned wireless short-range communication networking scenario, since the communication network built over short distances has advantages such as low power consumption and low cost, the connection configuration method provided in this application embodiment can be flexibly applied to various fields or scenarios involving wireless short-range communication, and this application embodiment does not limit it.
[0095] The technical solution of this application and how the technical solution of this application solves the above-mentioned technical problems are described in detail below with specific embodiments. The following specific embodiments can be implemented independently or in combination with each other. The same or similar concepts or processes may not be described again in some embodiments.
[0096] For example, Figure 5 This is a flowchart illustrating a connection configuration method provided in an embodiment of this application, as shown below. Figure 5 As shown, the method includes:
[0097] S501, The first device obtains device information of at least one second device.
[0098] In this embodiment of the application, the first device can be a device with strong processing capabilities and capable of acquiring device information of the second device. For example, the first device can be a terminal device with a human-computer interaction interface, such as a smartphone, tablet computer, or computer.
[0099] In this embodiment, the second device is a device that can be perceived by the first device. The first device acquiring device information of at least one second device can mean acquiring device information of one or more second devices. The device information of the second device can be information used to uniquely identify the second device's identity within a local area or globally.
[0100] For example, the device information may include one or more of the following: device identifier, identity information, or device hardware address, device temporary address, etc.
[0101] The device identifier can be used to identify the device. For example, the device identifier can include an identifier composed of characters, strings, or numbers, such as device1, device2, or device3.
[0102] Identity information can be used to identify the identity of a device. For example, the device identity information may include the device name, such as a speaker of brand A, a computer of brand B, or a mobile phone of brand C.
[0103] A device hardware address can be used to identify the device's address on a network. For example, the hardware address can include a local area network address (MAC address), such as 08:00:20:0A:8C:6D, which can be the device's hardware address.
[0104] A device's temporary address can be used to identify a device within a local range. Typically, a device address can range from a wide range, such as 0 to 2. 48 -1 generates a random number as a temporary address. Since this range is sufficiently large, the probability of two or more devices generating the same random number within a local area is almost zero. In this case, the device's temporary address can also serve as the device's identity information.
[0105] It is understood that the device information of the first device or the second device may include other content depending on the actual scenario, and this application embodiment does not limit this. In a possible implementation, the device information of the second device may be carried in a random access request or response message. For example, the first device may send a query instruction to the second device, wherein the query instruction contains the device information of the first device; the second device receives the query instruction and sends a random access request or response message to the first device. This random access request or response message contains the device information of the second device. Thus, the first device can obtain the device information of at least one second device.
[0106] S502, the first device generates first topology information based on the device information of at least one second device.
[0107] In this embodiment, the first topology information is used to indicate the connection relationship between a first device and at least one second device, or the connection relationship between at least one second device; the connection relationship is used to indicate the priority of the devices and / or the master-slave relationship between the devices. For example, the first topology information can be displayed on the first device. The information used to indicate the display on the first device can be the first topology information. For example, the first topology information may include: information indicating the connection relationship between devices, information indicating the relative distance between devices, or information indicating the relative orientation between devices, etc.
[0108] Optionally, the device priority can be used to indicate the generation order or transmission order of topology information. For example, when the priority of the first device is higher than that of the second device, the first device can generate topology information based on the device information of the second device. When the device includes a third device, and the priority of the first device is higher than that of the third device, and the priority of the third device is higher than that of the second device, the first device can generate topology information based on the device information of the third device. Optionally, this priority can also be used in scenarios where topology information is transmitted, for example, the topology information can be preferentially transmitted to devices with higher priority.
[0109] Optionally, the priority of the device can be used to indicate the management and being managed relationship between devices. A higher-priority device can manage a lower-priority device.
[0110] The master-slave relationship of the device can be used to represent the attributes between devices. For example, the master node of the device can be a node with resource allocation or resource scheduling capabilities. The master node manages the slave nodes. For example, the master node can schedule time and frequency resources for the slave nodes. The slave nodes of the device can be nodes that obey the scheduling of the master node. For example, the slave node can use the time and frequency resources scheduled by the master node to communicate.
[0111] In this embodiment, the connection relationship is related to at least one service. The service can represent the purpose for establishing the connection relationship. For example, when the service is playing music, the first device can establish a connection relationship with a music-playing device in the second device, such as a speaker, based on the purpose of playing music.
[0112] S503, The first device sends the second topology information to the second device.
[0113] Accordingly, the second device receives the second topology information. The second device can then establish connections between devices based on the second topology information. This second topology information can represent the connection relationships between devices. Specifically, the second topology information includes or indicates the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device, wherein the connection relationship is used to indicate device priority and / or master-slave relationship between devices. For example, the first device sends the second topology information containing or indicating the connection relationship between the first device and the second device to the second device, thereby allowing the second device to determine whether to establish a connection with the first device.
[0114] It is understood that the second topology information in step S503 may include all or part of the information in the first topology information in step S502, or it may include other information besides all or part of the information in the first topology information, or it may include information indicating or representing all or part of the information in the first topology information, or it may include information corresponding to all or part of the information in the first topology information. No specific limitations are made here, and it can be implemented according to requirements.
[0115] In summary, the connection configuration method provided in this application can obtain device information of at least one second device and generate topology information adapted to the device information of each second device based on the differences in the device information of each second device. This allows for the construction of connection configuration relationships between multiple devices based on topology information generated from different device information. It solves the cumbersome process of one-to-one device configuration in existing methods, simplifies the connection configuration process between multiple devices, and is simple and efficient.
[0116] exist Figure 5 Based on the corresponding embodiments, in possible implementations, the step shown in S502, generating the first topology information can include three methods. Method one: Generating topology information (such as...) based on user input information. Figure 6 and Figure 7 Corresponding embodiment); Method 2: Generate topology information (such as...) based on the user's input of instructions to the device. Figure 8 Corresponding implementation examples); Method 3: Generate topology information (e.g., based on the change in the position of the device identifier displayed on the device interface) according to the device interface. Figure 9 (Corresponding embodiments). The three methods are described in detail below. It should be noted that the desktop display content shown in the following figures is merely an example and does not limit the actual application scenarios.
[0117] Method 1: Generate topology information based on user input, and then display the topology structure. In this embodiment, the input information may include drawing information or configuration information; the topology structure includes connection relationships.
[0118] In Method 1, the input information may include drawing information. This drawing information is obtained from a user's drawing operation on a connection between the first device and at least one second device, or between at least one second device. This drawing operation may include: a swipe operation, a click operation, or other operations. For example, when the drawing operation includes a swipe operation, the user can swipe from the location of device 1 to the location of device 2, thereby generating an arrow pointing from device 1 to device 2. When the drawing operation includes a click operation, the user can click on device 1 and then click on device 2, thereby generating an arrow pointing from device 1 to device 2; or, the user can click on device 2 and then click on device 1, thereby generating an arrow pointing from device 2 to device 1.
[0119] Arrows can represent the hierarchical relationship between devices. For example, a one-way arrow can point to a slave node device, and the other end of the one-way arrow can point to a master node device; or a one-way arrow can point to a master node device, and the other end of the one-way arrow can point to a slave node device, etc.
[0120] Alternatively, in addition to using arrows to indicate whether a device is a master node or a slave node, different colors or shades of gray can also be used to represent different types of devices. For example, dark gray can represent a master node device, and light gray can represent a slave node device.
[0121] For example, Figure 6 This is a schematic diagram of an interface for generating topology information, provided as an embodiment of this application. Figure 6 As shown, taking PAD600 as an example, when PAD600 receives a message from the user opening the settings function or application on PAD600, PAD600 can display something like this. Figure 6 The interface shown in Figure 'a' can include a topology structure 601. This topology structure 601 can display device information acquired by the PAD 600 from multiple devices, such as device identifiers. The device identifiers can include: Device 1 (or can be understood as the PAD 600), Device 2, Device 3, Device 4, Device 5, Device 6, Device 7, or Device 8, etc. The topology structure 601 can be used to draw connections between devices, thereby generating topology information.
[0122] like Figure 6In the interface shown in Figure 'a', the user can draw connections based on device information of multiple devices in the topology 601. The PAD 600 receives the drawing information generated by the user's drawing operation and can generate topology information based on this information, thereby constructing the connection configuration between devices. For example, the user can draw a connection between device 1 and device 6 and point an arrow to device 6. This arrow points to the slave node device. Similarly, the user can draw a connection between device 1 and device 2 and point an arrow to device 2; a connection between device 1 and device 3 and point an arrow to device 3; a connection between device 1 and device 4 and point an arrow to device 4; a connection between device 1 and device 5 and point an arrow to device 5; a connection between device 4 and device 7 and point an arrow to device 7; and a connection between device 4 and device 8 and point an arrow to device 8. Clicking the completion control 403 generates the topology information.
[0123] Therefore, the PAD600 can display such as Figure 6 The interface shown as 'b' displays a topology structure built based on topology information. This topology structure includes connection relationships. For example, as shown... Figure 6 In the interface shown as b, the topology can include the connections between devices 1, 2, 3, 4, 5, 6, 7, and 8, forming a topology structure. Users can then use this topology to implement network communication between devices. Optionally, when a user wants to rebuild the topology, they can... Figure 6 In the interface shown in b, click the cancel control 603 to re-execute the above process.
[0124] Optionally, the topology may also include the relative distances and / or relative orientations between devices. The length of the lines reflecting the connection relationships is positively correlated with the relative distances, and / or the lines reflecting the connection relationships are marked with distance parameters between the devices corresponding to the connection relationships. For example, the longer the distance between devices, the longer the length of the connection lines displayed in the topology. For example, such as... Figure 6 The interface shown in b above displays a topology where the relative distance between device 1 and device 6 can be 20m; the relative distance between device 1 and device 5 can be 10m; and device 8 can be located southeast of device 4. It is understood that these relative distances and / or relative orientations can be used to display a more accurate topology.
[0125] In Method 1, the input information may also include configuration information. This configuration information is obtained based on configuration operations from the user regarding attributes between the first device and at least one second device, or attributes between at least one second device. These device attributes can be either a master node or a slave node. The configuration operations can be used to configure the attributes of each device individually, or to configure the attributes of multiple devices simultaneously. These configuration operations can include click operations, input operations, and other operations.
[0126] For example, Figure 7 This is a schematic diagram of another interface for generating topology information provided in an embodiment of this application. For example... Figure 7 As shown, taking computer 700 as the first device as an example, after receiving a message from the user that the user has opened a settings function or application on computer 700, computer 700 can display the following: Figure 7 The interface shown. (As shown) Figure 7 The interface shown may include a device list 701 and a device attribute configuration 702. The device list 701 may display device information of multiple devices obtained by the computer 700, such as device identifiers. The device information may include multiple devices such as: device 1 (or can be understood as the computer 700), device 2, device 3, device 4, and device 5.
[0127] like Figure 7 As shown, in the device attribute configuration 702, the user can configure the device's attributes in the topology based on the device information. The computer 700 receives the user's configuration operation for the device attributes and can obtain the topology information based on this configuration operation. For example, the user can click on device 1 in the device list 701 and select to configure the device's attributes. The device attribute configuration 702 can display various information about the device corresponding to device 1. Then, the user can select the option in the solid-line box 704 to be the master node device of device 2, device 3, device 4, and device 5, and click the save settings control 703 to complete the generation of the topology information for device 1, device 2, device 3, device 4, and device 5, thereby constructing the topology structure.
[0128] Method 2: Generate topology information based on user input of instructions to the device. Specifically, the first device outputs at least one prompt message; the first device generates topology information based on the information in response to the prompt message, and then displays the topology structure.
[0129] In this embodiment of the application, the information in response to the prompt message is used to establish a connection relationship between the first device and at least one second device or to establish a connection relationship between at least one second device, from the user.
[0130] For example, Figure 8 This is a schematic diagram of another interface for generating topology information provided in an embodiment of this application. For example, the first device may also store a history of configuration connections with at least one second device. For instance, device 1 may have previously established connections with devices 2, 3, and 4, and stored the corresponding history. When device 1 receives device information from devices 2, 3, and 4, device 1 can display a prompt message on this interface, such as... Figure 8 The interface shown is illustrated. This interface displays prompt message 801, which includes the question: "Do you wish to establish a connection with devices 2, 3, and 4 according to the history?" When the user triggers the confirmation control 802, device 1 can establish a connection with devices 2, 3, and 4 based on the confirmation information in response to the prompt message, generating topology information.
[0131] For example, when the first device discovers that there are several speaker devices of the same brand (e.g., brand B) in the vicinity, the interface of the first device will display whether to use the first device to connect to the several speaker devices of brand B. When the user selects to agree, topology information is generated.
[0132] Optionally, a prompt message will only be displayed on the interface if the first device detects several speaker devices of the same brand in the vicinity within a fixed time window.
[0133] For example, when the first device detects that there are several speaker devices of brand A and several speaker devices of brand B in the vicinity, the interface of the first device displays whether to connect the first device to the several speaker devices of brand B. When the user selects to agree, topology information is generated.
[0134] Optionally, based on AI algorithms or big data analysis of user connection habits, possible topologies can be suggested on the user interface, such as topology A, topology B, and topology C, for the user to choose from. When the user selects one, topology information is generated.
[0135] In one possible implementation, when the first device is connected to the internet, it can also obtain massive amounts of topology information among devices based on big data, and select the topology information suitable for the first device. Subsequently, a prompt message can be sent to the user, indicating whether to use the topology information obtained based on big data.
[0136] Method 3: Generate topology information based on changes in the position of the device identifier displayed on the device's interface. Specifically, the first device responds to changes in the position of the device identifier displayed on the interface, generates topology information, and then displays the topology structure.
[0137] In this embodiment of the application, users can establish connection relationships between devices through drag-and-drop operations and other operations.
[0138] For example, Figure 9 This is a schematic diagram of another interface for generating topology information, provided as an embodiment of this application. For example... Figure 9 As shown, taking a smartphone 900 as an example, after the smartphone 900 receives a message from the user opening the settings function or application on the smartphone 900, the smartphone 900 can display the following: Figure 9 The interface shown in Figure 'a' includes a device list 901 and a topology structure 902. The device list 901 displays device information for multiple devices acquired by the smartphone 90900, such as device identifiers. This device information may include: Device 1 (or the smartphone 900), Device 2, Device 3, Device 4, or Device 5, etc. The topology structure 902 displays multiple locations for setting nodes, corresponding to the topology structure. These locations may include: Position 1, Position 2, Position 3, Position 4, Position 5, Position 6, Position 7 or Position 8, Position 9, Position 10 or Position 11, etc.
[0139] For example, such as Figure 9 In the interface shown in Figure 'a', the user can drag any device from the device list 901 to any position in the topology structure 902. The smartphone 900 receives the change in the device identifier's position caused by the drag and can generate topology information based on the change in position and the topology structure presented in topology structure 902. For example, the user can drag device 1 to position 1, device 2 to position 2, device 3 to position 3, device 4 to position 4, and device 5 to position 5, and click the completion control 904. The smartphone 900 can then generate topology information based on the changes to devices 1, 2, 3, 4, and 5, thereby establishing and displaying the topology structure as shown below. Figure 9 The interface shown in b is shown below. Additionally... Figure 9 The interface shown in b can also include multiple devices in the device list 905 that do not constitute a topology, such as device 6, device 7, device 8, and device 9, etc.
[0140] Optionally, when a user wants to rebuild the topology, they can... Figure 9 In the interface shown in b, click the cancel control 903 to re-execute the above drag-and-drop operation to build the topology, or directly re-execute the above drag-and-drop operation to build the topology.
[0141] Based on this, the topology information can be flexibly configured, and a network can be built according to the topology information, enabling efficient communication between devices.
[0142] exist Figure 5 Based on the corresponding embodiments, in possible implementations, S501 may include: the first device sending a query request, and the second device sending its device information to the first device according to the query request.
[0143] In this embodiment of the application, the query request includes the identity information of the first device; the identity information of the first device is used to identify the first device.
[0144] The query request may also include: security key parameters or other information such as information identifying the first device as the master node. The security key parameters may include: personal area network security key parameters, etc., which are used to ensure the reliability of communication between devices.
[0145] For example, if smart home devices B and C have been connected to mobile phone A respectively, when smart home devices B and C need to connect, since they have both been connected to mobile phone A before, smart home devices B and C may both have the personal area network security key parameters configured on mobile phone A.
[0146] In this embodiment, the device information of the second device can be carried in a random access request or response message. Specifically, in method A: the device information of the second device is carried in a random access request (e.g., ...). Figure 10 and Figure 11 Corresponding embodiment); Method B: The device information of the second device is carried in the response message (e.g. Figure 12 (Corresponding embodiment).
[0147] Method A: The device information of the second device is carried in a random access request. For example, taking the first device as the main interface device and the second device as another device, the process by which the first device obtains the device information of the second device based on a random access request is described. Figure 10 This is a schematic diagram illustrating a process for obtaining device information, provided as an embodiment of this application. Figure 10 As shown, the process of acquiring this device information may include:
[0148] S1001, The main interface device sends a query command for nearby nodes to other devices.
[0149] For example, the query instruction may include: a personal area network security key, priority information of the main interface device, and / or identity information of the main interface device. The priority information of the main interface device may include information indicating the higher priority of the main interface device.
[0150] Adaptively, other devices receive query commands from the main interface device. S1002, other devices initiate a random access procedure to the high-priority device.
[0151] For example, other devices can initiate a random access process to a high-priority device (such as the main interface device) based on different content in the query message.
[0152] In one implementation, when the query instruction sent by the main interface device includes information that the main interface device is the master node, the process by which other devices send random access requests to the main interface device according to the query instruction can be as follows: when other devices receive the query instruction, and when other devices determine that the priority of the main interface device is greater than that of other devices based on the information that the main interface device is the master node, or determine that the priority of the main interface device is greater than a certain threshold, other devices initiate random access requests to the main interface device.
[0153] In another implementation, when the query command sent by the main interface device includes a security key parameter, the process by which other devices send a random access request to the main interface device based on the query command can be as follows: when other devices receive the query command, they perform calculations based on the security key parameter. When the calculation result of the security key parameter is consistent with that stored in other devices, the other devices initiate a random access request to the main interface device.
[0154] The random access request may also include device information of a third device. This third device can be a device with another device as its master node. For example, the main interface device can obtain device information from other devices. Since these other devices can act as the master node of the third device and have already obtained its device information, when another device sends a random access request to the main interface device according to a query command, this random access request can include device information from both the other device and / or the third device.
[0155] For example, taking the first device as the main interface device and the device in the second device that serves as the main node of the third device as the main node device, the process of obtaining device information of the second device based on a random access request is described. Figure 11 This is a schematic diagram illustrating another process for obtaining device information provided in an embodiment of this application. For example... Figure 11 As shown, the process of acquiring device information may include:
[0156] S1101, The main interface device sends a nearby node query command to the main node device.
[0157] S1102. The master node device initiates a random access procedure to the high-priority device and reports the node identity information and signal strength it has obtained.
[0158] The random access request includes the identity information and signal strength of the third device. This third device is a device that uses the second device as its master node.
[0159] The process of the master node device initiating a random access procedure to a high-priority device in S1102 is similar to the process of other devices initiating a random access procedure to a high-priority device in steps shown in S1002, and will not be described again here.
[0160] exist Figure 10 and Figure 11 In a corresponding embodiment, optionally, the main interface device can obtain the distance between the main interface device and other devices and / or third devices based on the signal strength of other devices and / or third devices obtained in the random access request, or obtain the specific location of other devices and / or third devices based on the location information of other devices and / or third devices.
[0161] Method B: The device information of the second device is carried in the response message. For example, taking the first device as the main interface device and the second device as another device, the process of the first device obtaining the device information of the second device based on the response message is described. Figure 12 This is a schematic diagram illustrating another process for obtaining device information provided in an embodiment of this application. For example... Figure 12 As shown, the process of acquiring this device information may include:
[0162] S1201, The main interface device sends a nearby node query command to other devices.
[0163] S1202. Other devices periodically send identity information within a time period T1, and continuously send response messages N times. These response messages contain the identity information of the other devices.
[0164] For example, other devices can send response messages to high-priority devices (such as the main interface device) based on different content in the query message.
[0165] In one implementation, when the query command sent by the main interface device includes information that the main interface device is the master node, the process by which other devices send response messages to the main interface device according to the query command can be as follows: when other devices receive the query command, and when other devices determine that the priority of the main interface device is greater than that of other devices based on the information that the main interface device is the master node, or when they determine that the priority of the main interface device is greater than a certain threshold, other devices send response messages to the main interface device.
[0166] In another implementation, when the query command sent by the main interface device includes a security key parameter, the process by which other devices send a response message to the main interface device based on the query command can be as follows: other devices receive the query command, other devices perform calculations based on the security key parameter, and when the calculation result of the security key parameter is consistent with that stored in other devices, other devices send a response message to the main interface device.
[0167] The response message may also include device information for the third device. The process of obtaining this device information will not be described in detail here.
[0168] Optionally, the main interface device may obtain the distance between the main interface device and other devices and / or third devices based on the signal strength of other devices and / or third devices obtained from the response message, or obtain the specific location of other devices and / or third devices based on the location information of other devices and / or third devices.
[0169] In addition to the methods described above for the first device to obtain the device information of the second device through method one or method two, in other possible implementations, the first device may also obtain the device information of the second device based on a broadcast message sent by the second device.
[0170] For example, taking the first device as the main interface device and the second device as other devices, the process of the first device obtaining the device information of the second device is described. Figure 13 This is a schematic diagram illustrating another process for obtaining device information provided in an embodiment of this application. For example... Figure 13 As shown, the process of acquiring device information may include:
[0171] S1301. Other devices periodically send discovery messages to the main interface device.
[0172] This discovery message can be a broadcast message, and it may carry the identity information of other devices. Accordingly, the main interface device can obtain device information from other devices, such as their identity information.
[0173] The broadcast message may also include device information for a third device. The process of obtaining this device information will not be described in detail here.
[0174] Optionally, the main interface device can obtain the distance between the main interface device and other devices and / or third devices based on the signal strength of other devices and / or third devices obtained from the broadcast message, or obtain the specific location of other devices and / or third devices based on the location information of other devices and / or third devices.
[0175] Based on this, the first device can obtain the device information of the second device through random access requests, response messages or broadcast information, and then generate topology information that is adapted to the device information of each device according to the different device information of each device.
[0176] exist Figure 5 Based on the corresponding embodiments, possible implementations also include: the transmission and dissemination of topology information. Specifically, at least one second device establishes a connection relationship between at least one second device and the first device based on the received second topology information; or, a connection relationship between at least one second device.
[0177] The transmission and dissemination of topology information can include two methods. Method a: The transmission and dissemination of topology information is achieved based on broadcast messages and random access requests (e.g., Figure 14 and Figure 15 Corresponding implementation examples); Method b: Implementing the transmission and dissemination of topology information based on broadcast messages (e.g. Figure 16 (Corresponding embodiment).
[0178] Method a: The transmission and dissemination of topology information are achieved based on broadcast messages and random access requests. For example, taking the first device as the main interface device, the second device as other devices, and the second topology information as topology configuration information, the process of transmitting and disseminating topology information is described. Figure 14 This is a schematic diagram illustrating a process for topological information transmission and diffusion, provided as an embodiment of this application. Figure 14 As shown, the process of transmitting this topology information may include:
[0179] S1401, The main interface device sends system broadcast messages to other devices.
[0180] The broadcast message contains priority information and / or topology configuration information of the main interface device. The priority information of the main interface device may include information indicating higher priority for that main interface device.
[0181] S1402, Other devices initiate a random access procedure to higher priority devices.
[0182] For example, when the broadcast message sent by the main interface device includes information that the main interface device is the main node, the process by which other devices send random access requests to the main interface device based on the broadcast message can be as follows: when other devices receive the broadcast message and determine that the main interface device is the main node, the other devices initiate random access requests to the main interface device.
[0183] Optionally, when the broadcast message sent by the main interface device includes topology configuration information, other devices can obtain the topology configuration information from the main interface device.
[0184] Optionally, the main interface device can determine the distance based on the signal strength obtained from the random access request.
[0185] S1403. The main interface device sends topology configuration information to the access node.
[0186] The access node may include other devices. These other devices can determine their own attributes and connection relationships with other devices based on the topology configuration information.
[0187] Optionally, the first device may also transmit topology information to the second and / or third device, which will not be elaborated here.
[0188] For example, taking the first device as master node 1, master node 2 as the master node of the first device, and the topology information as topology configuration information as an example, the process of topology information transmission and diffusion is described. Figure 15 This is a schematic diagram illustrating an alternative topological information transmission and diffusion process provided in an embodiment of this application. For example... Figure 15 As shown, the process of transmitting this topology information may include:
[0189] S1501, Master Node 1 sends a system broadcast message to Master Node 2.
[0190] Before obtaining configuration information, master node 2 can become a slave node and receive system broadcast messages.
[0191] S1502, Master Node 2 initiates a random access procedure to the Master Node.
[0192] The master node includes master node 1.
[0193] S1503, Master Node 1 sends topology configuration information to the access nodes.
[0194] This access node includes Master Node 2. Accordingly, Master Node 2 can determine its own attributes and connection relationships with each device based on the topology configuration information.
[0195] Method b: Transmitting and disseminating topology information based on broadcast messages. For example, taking the master node in the first or second device, and the topology information as topology configuration information, the process of transmitting and disseminating topology information is described. Figure 16 This is a schematic diagram illustrating another process for topological information transmission and diffusion provided in an embodiment of this application. For example... Figure 16 As shown, the process of transmitting this topology information may include:
[0196] S1601, Master Node 1 sends system broadcast messages to other devices.
[0197] The system broadcast messages can include configuration information. Accordingly, other devices can obtain the configuration information through the system broadcast messages, thereby establishing connections between devices.
[0198] Based on this, topology information generated from different device information can be used to construct the connection configuration relationship between multiple devices. This solves the cumbersome process of configuring devices one-to-one in existing methods, simplifies the connection configuration process between multiple devices, and is simple and efficient.
[0199] It is understood that the interface diagrams provided in the embodiments of this application are only examples and should not be construed as limiting the embodiments of this application.
[0200] The above combination Figures 5-16 The methods provided in the embodiments of this application have been described. The apparatus for performing the above methods provided in the embodiments of this application is described below.
[0201] For example, Figure 17 This is a schematic diagram of the structure of a terminal provided in an embodiment of this application, such as... Figure 17 As shown, terminal 170 includes connection configuration device 180. It is understood that other components or other devices included in the terminal can be set according to the actual application scenario, and the embodiments of this application are not limited thereto.
[0202] In this embodiment, the terminal can execute the method described in the above embodiment through the connection configuration device 180. It is understood that the way the terminal controls the connection configuration device 180 can be set according to the actual application scenario, and this embodiment does not impose specific limitations.
[0203] exist Figure 17 Based on the terminal shown, in order to better describe the connection configuration device 180, exemplarily, Figure 18 This is a schematic diagram of the structure of a connection configuration device provided in an embodiment of this application, as shown below. Figure 8 As shown, the connection configuration device 180 can be used in a communication device, circuit, hardware component, or chip. The connection configuration device includes at least one of a display unit 1801, a processing unit 1802, and a communication unit 1803. The display unit 1801 supports the display step performed by the connection configuration device; the processing unit 1802 supports the information processing step performed by the connection configuration device; and the communication unit 1803 supports the data transmission or reception step performed by the connection configuration device. The connection configuration device 180 can be a first device or a second device in the embodiments of this application.
[0204] Specifically, when the connection configuration device 180 is a first device, this application embodiment provides a connection configuration device 180, including: a processing unit 1802, configured to acquire device information of at least one second device; the processing unit 1802 is further configured to generate first topology information based on the device information of at least one second device; the first topology information is used to indicate the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device, and the connection relationship is used to indicate the priority of the device and / or the master-slave relationship between the devices.
[0205] In possible implementations, the connection relationship is related to at least one business function.
[0206] In a possible implementation, the processing unit 1802 is specifically used to: generate topology information based on input information from the user; wherein the input information includes drawing information or configuration information; the drawing information is obtained from the user through drawing operations on the connection between the first device and at least one second device, or between at least one second device; the configuration information is obtained based on configuration operations from the user on the attributes between the first device and at least one second device, or between at least one second device.
[0207] In a possible implementation, the communication unit 1803 is specifically used to output at least one prompt message; the processing unit 1802 is specifically used to generate topology information based on the information in response to the prompt message; wherein the information in response to the prompt message is used to establish a connection relationship between the first device and at least one second device or to establish a connection relationship between at least one second device.
[0208] In a possible implementation, the processing unit 1802 is specifically used to: generate topology information in response to a change in the position of the device identifier displayed on the interface; the device identifier is used to identify the device.
[0209] In a possible implementation, the display unit 1801 is specifically used to display the topology, which includes connection relationships.
[0210] In possible implementations, the topology may also include the relative distance and / or relative orientation between devices; wherein the length of the connecting lines used to reflect the connection relationship is positively correlated with the relative distance, and / or the connecting lines used to reflect the connection relationship are marked with the distance parameters between the devices corresponding to the connection relationship.
[0211] In a possible implementation, the communication unit 1803 is specifically used for: sending a query request, the query request containing the identity information of the first device; and receiving device information from at least one second device; wherein the identity information of the first device is used to identify the first device.
[0212] In a possible implementation, the device information of the second device is carried in a random access request or response message.
[0213] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0214] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0215] Specifically, when the connection configuration device 180 is a second device, this application embodiment provides a connection configuration device 180, including: a communication unit 1803, used to send device information of the second device; the communication unit 1803 is also used to receive second topology information from a first device, the second topology information including or indicating the connection relationship between the first device and at least one second device, or the connection relationship between at least one second device, the connection relationship being used to indicate the priority of the device and / or the master-slave relationship between the devices.
[0216] In a possible implementation, the communication unit 1803 is specifically used for: receiving a query request from the first device; the query instruction includes the identity information of the first device; and sending the device information of the second device to the first device according to the query request.
[0217] In a possible implementation, the device information of the second device is carried in a random access request or response message.
[0218] In possible implementations, device information may include one or more of the following: device identifier, identity information, device hardware address, or device domain name.
[0219] In possible implementations, the query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
[0220] It is understood that the connection configuration device 180 of the above-described schemes has the function of implementing the corresponding steps performed by the first device or the second device in the above-described method.
[0221] In one possible embodiment, the connection configuration device 180 may further include a storage unit 1804. The processing unit 1802 and the storage unit 1804 are connected via a communication line.
[0222] Storage unit 1804 may include one or more memories, which may be devices in one or more devices or circuits used to store programs or data.
[0223] The storage unit 1804 can exist independently or be connected to the processing unit 1802 of the connection configuration device via a communication line. Alternatively, the storage unit 1804 can be integrated with the processing unit 1802.
[0224] The communication unit 1803 can be an input or output interface, pins, or circuits. For example, the storage unit 1804 can store computer-executable instructions for methods of the radar or target device, so that the processing unit 1802 can execute the methods of the radar or target device described in the above embodiments. The storage unit 1804 can be a register, cache, or RAM, and can be integrated with the processing unit 1802. The storage unit 1804 can be a ROM or other type of static storage device capable of storing static information and instructions, and can be independent of the processing unit 1802.
[0225] For example, Figure 19 This is a schematic diagram of the hardware structure of a control device provided in an embodiment of this application, such as... Figure 19 As shown, the control device includes a processor 1901, a communication line 1904, and at least one communication interface. Figure 19 (The example provided uses communication interface 1903 as an example.)
[0226] The processor 1901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more integrated circuits used to control the execution of the program of the present application.
[0227] Communication line 1904 may include circuitry for transmitting information between the aforementioned components.
[0228] Communication interface 1903 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN), etc.
[0229] Possibly, the control device may also include a memory 1902.
[0230] The memory 1902 may be a read-only memory (ROM) or other type of static storage device capable of storing static information and instructions, random access memory (RAM) or other type of dynamic storage device capable of storing information and instructions, or electrically erasable programmable read-only memory (EEPROM), compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical discs, laser discs, optical discs, digital versatile optical discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium capable of carrying or storing desired program code in the form of instructions or data structures and accessible by a computer, but not limited thereto. The memory may exist independently and be connected to the processor via communication line 1904. The memory may also be integrated with the processor.
[0231] The memory 1902 stores computer execution instructions for implementing the scheme of this application, and its execution is controlled by the processor 1901. The processor 1901 executes the computer execution instructions stored in the memory 1902, thereby implementing the connection configuration method provided in the embodiments of this application.
[0232] It is possible that the computer execution instructions in the embodiments of this application may also be referred to as application code, and the embodiments of this application do not specifically limit this.
[0233] In a specific implementation, as one example, the processor 1901 may include one or more CPUs, for example... Figure 19 CPU0 and CPU1 in the CPU.
[0234] In a specific implementation, as one example, the control device may include multiple processors, for example... Figure 19 Processors 1901 and 1905 are mentioned. Each of these processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor. Here, "processor" can refer to one or more devices, circuits, and / or processing cores used to process data (such as computer program instructions).
[0235] In one optional embodiment of this application, the processor 1901 is used to read a program from the memory 1902 and execute it as follows: Figure 5 The method flow in S501-S503 is shown.
[0236] For example, Figure 20 This is a schematic diagram of a chip structure provided in an embodiment of this application. The chip 200 includes one or more (including two) processors 2020 and a communication interface 2030.
[0237] In some implementations, memory 2040 stores elements such as executable modules or data structures, or subsets thereof, or extended sets thereof.
[0238] In this embodiment, memory 2040 may include read-only memory and random access memory, and provides instructions and data to processor 2020. A portion of memory 2040 may also include non-volatile random access memory (NVRAM).
[0239] In this embodiment, the memory 2040, the communication interface 2030, and the memory 2040 are coupled together via a bus system 2020. The bus system 2020 may include a data bus, as well as a power bus, a control bus, and a status signal bus. For ease of description, in... Figure 20 The general will label all buses as Bus System 2020.
[0240] The methods described in the embodiments of this application can be applied to, or implemented by, the processor 2020. The processor 2020 may be an integrated circuit chip with signal processing capabilities. During implementation, each step of the above methods can be completed by integrated logic circuits in the hardware of the processor 2020 or by instructions in software form. The processor 2020 may be a general-purpose processor (e.g., a microprocessor or conventional processor), a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gates, transistor logic devices, or discrete hardware components. The processor 2020 can implement or execute the methods, steps, and logic block diagrams disclosed in the embodiments of this invention.
[0241] The steps of the method disclosed in the embodiments of this application can be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software modules can be located in mature storage media in the art, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read-only memory (EEPROM). This storage medium is located in memory 2040, and processor 2020 reads information from memory 2040 and, in conjunction with its hardware, completes the steps of the above method.
[0242] In the above embodiments, the instructions stored in the memory for execution by the processor can be implemented in the form of a computer program product. This computer program product can be pre-written into the memory, or it can be downloaded and installed into the memory as software.
[0243] A computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, all or part of the flow or function according to the embodiments of this application is generated. 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 a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center via wired (e.g., coaxial cable, fiber optic, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) means. The computer-readable storage medium may be any available medium that a computer can store or a data storage device such as a server or data center that integrates one or more available media. For example, available media may include magnetic media (e.g., floppy disks, hard disks, or magnetic tapes), optical media (e.g., digital versatile discs (DVDs)), or semiconductor media (e.g., solid-state disks (SSDs)).
[0244] This application also provides a computer-readable storage medium. The methods described in the above embodiments can be implemented, in whole or in part, by software, hardware, firmware, or any combination thereof. The computer-readable medium may include computer storage media and communication media, and may also include any medium capable of transferring a computer program from one place to another. The storage medium can be any target medium accessible by a computer.
[0245] As one possible design, computer-readable media may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM, or other optical disc storage; computer-readable media may also include disk storage or other disk storage devices. Furthermore, any connecting cable may also be appropriately referred to as computer-readable media. For example, if software is transmitted from a website, server, or other remote source using coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave, then coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media. As used herein, disks and optical discs include optical discs (CD), laser discs, optical discs, digital versatile discs (DVD), floppy disks, and Blu-ray discs, where disks typically reproduce data magnetically, while optical discs optically reproduce data using lasers.
[0246] The above combinations should also be included within the scope of computer-readable media. The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the technical scope disclosed in the present invention should be included within the scope of protection of the present invention. Therefore, the scope of protection of the present invention should be determined by the scope of the claims.
Claims
1. A connection configuration method, characterized in that, include: Obtain device information for at least two second devices; Generate topology information based on the device information of at least two of the second devices; The topology information is used to indicate the connection relationship between the first device and at least two second devices, or the connection relationship between at least two second devices, and the connection relationship is used to indicate the priority of the devices or the master-slave relationship between the devices; The connection relationship is related to at least one service; The generated topology information includes: The topology information is generated based on input from the user. The input information includes drawing information or configuration information; the drawing information is obtained from the user's drawing operation on the connection between the first device and at least two second devices, or between at least two second devices; the configuration information is obtained from the user's configuration operation on the attributes between the first device and at least two second devices, or between at least two second devices.
2. A connection configuration method, characterized in that, include: Obtain device information for at least two second devices; Generate topology information based on the device information of at least two of the second devices; The topology information is used to indicate the connection relationship between the first device and at least two second devices, or the connection relationship between at least two second devices, and the connection relationship is used to indicate the priority of the devices or the master-slave relationship between the devices; The connection relationship is related to at least one service; The generated topology information includes: Output at least one prompt message; The topology information is generated based on the information in response to the prompt message; The information in response to the prompt message is used to establish a connection relationship between the first device and at least two second devices, or to establish a connection relationship between at least two second devices, from the user.
3. A connection configuration method, characterized in that, include: Obtain device information for at least two second devices; Generate topology information based on the device information of at least two of the second devices; The topology information is used to indicate the connection relationship between the first device and at least two second devices, or the connection relationship between at least two second devices, and the connection relationship is used to indicate the priority of the devices or the master-slave relationship between the devices; The connection relationship is related to at least one service; The generated topology information includes: The topology information is generated in response to a change in the position of the device identifier displayed on the interface; The device identifier is used to identify the device.
4. The method according to any one of claims 1-3, characterized in that, The method further includes: Display the topology, which includes the connection relationships.
5. The method according to claim 4, characterized in that, The topology also includes the relative distances and / or relative orientations between devices; Wherein, the length of the connecting line used to reflect the connection relationship is positively correlated with the relative distance, and / or, the connecting line used to reflect the connection relationship is marked with the distance parameter between the devices corresponding to the connection relationship.
6. The method according to any one of claims 1-3 and 5, characterized in that, The acquisition of device information for at least two second devices includes: Send a query request, the query request containing the identity information of the first device; Receive device information from at least two of the second devices; The identity information of the first device is used to identify the first device.
7. The method according to claim 6, characterized in that, The device information of the second device is carried in the random access request or response message.
8. The method according to any one of claims 1-3, 5, and 7, characterized in that, The device information includes one or more of the following: device identifier, identity information, device hardware address, or device domain name.
9. The method according to claim 6, characterized in that, The query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
10. A connection configuration method, characterized in that, include: Send device information for the second device; Receive topology information from a first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated based on input information from the user; wherein the input information includes drawing information or configuration information; the drawing information is obtained from the user's drawing operation on the connection between the first device and at least two second devices, or between at least two second devices; the configuration information is obtained based on the user's configuration operation on the attributes between the first device and at least two second devices, or between at least two second devices.
11. A connection configuration method, characterized in that, include: Send device information for the second device; Receive topology information from a first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated based on information in response to at least one prompt message; wherein the information in response to the prompt message is used to establish a connection relationship between the first device and at least two second devices from the user, or to establish a connection relationship between at least two second devices.
12. A connection configuration method, characterized in that, include: Send device information for the second device; Receive topology information from a first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated in response to a change in the position of the device identifier displayed on the interface; the device identifier is used to identify the device.
13. The method according to any one of claims 10-12, characterized in that, The device information of the second device being sent includes: Receive a query request from the first device; the query request includes the identity information of the first device. Based on the query request, the device information of the second device is sent to the first device.
14. The method according to claim 13, characterized in that, The device information of the second device is carried in the random access request or response message.
15. The method according to any one of claims 10-12, 14, characterized in that, The device information includes one or more of the following: device identifier, identity information, device hardware address, or device domain name.
16. The method according to claim 13, characterized in that, The query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
17. A connection configuration device, characterized in that, include: A processing unit is used to acquire device information from at least two second devices; The processing unit is further configured to generate topology information based on device information of at least two of the second devices; the topology information is used to indicate the connection relationship between the first device and at least two of the second devices, or the connection relationship between at least two of the second devices, the connection relationship being used to indicate the priority of the devices or the master-slave relationship between the devices; the connection relationship is related to at least one service; The processing unit is further configured to: The topology information is generated based on input from the user. The input information includes drawing information or configuration information; the drawing information is obtained from the user's drawing operations on the connection between the first device and at least two second devices, or between at least two second devices. The configuration information is obtained based on configuration operations from the user on attributes between the first device and at least two second devices, or on attributes between at least two second devices.
18. A connection configuration device, characterized in that, include: A processing unit is used to acquire device information from at least two second devices; The processing unit is further configured to generate topology information based on device information of at least two of the second devices; the topology information is used to indicate the connection relationship between the first device and at least two of the second devices, or the connection relationship between at least two of the second devices, the connection relationship being used to indicate the priority of the devices or the master-slave relationship between the devices; the connection relationship is related to at least one service; A communication unit, specifically used to output at least one prompt message; The processing unit is specifically configured to generate the topology information based on the information in response to the prompt information; The information in response to the prompt message is used to establish a connection relationship between the first device and at least two second devices, or to establish a connection relationship between at least two second devices, from the user.
19. A connection configuration device, characterized in that, include: A processing unit is used to acquire device information from at least two second devices; The processing unit is further configured to generate topology information based on device information of at least two of the second devices; the topology information is used to indicate the connection relationship between the first device and at least two of the second devices, or the connection relationship between at least two of the second devices, the connection relationship being used to indicate the priority of the devices or the master-slave relationship between the devices; the connection relationship is related to at least one service; The processing unit is specifically used for: The topology information is generated in response to a change in the position of the device identifier displayed on the interface; the device identifier is used to identify the device.
20. The apparatus according to any one of claims 17-19, characterized in that, The display unit is specifically used for: Display the topology, which includes the connection relationships.
21. The apparatus according to claim 20, characterized in that, The topology also includes the relative distances and / or relative orientations between devices; Wherein, the length of the connecting line used to reflect the connection relationship is positively correlated with the relative distance, and / or, the connecting line used to reflect the connection relationship is marked with the distance parameter between the devices corresponding to the connection relationship.
22. The apparatus according to any one of claims 17-19, 21, characterized in that, The communication unit is specifically used for: Send a query request, the query request containing the identity information of the first device; Receive device information from at least two of the second devices; The identity information of the first device is used to identify the first device.
23. The apparatus according to claim 22, characterized in that, The device information of the second device is carried in the random access request or response message.
24. The apparatus according to any one of claims 17-19, 21, and 23, characterized in that, The device information includes one or more of the following: device identifier, identity information, device hardware address, or device domain name.
25. The apparatus according to claim 22, characterized in that, The query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
26. A connection configuration device, characterized in that, include: The communication unit is used to send device information of the second device; The communication unit is further configured to receive topology information from the first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated based on input information from the user; wherein the input information includes drawing information or configuration information; the drawing information is obtained from the user's drawing operation on the connection between the first device and at least two second devices, or between at least two second devices; the configuration information is obtained based on the user's configuration operation on the attributes between the first device and at least two second devices, or between at least two second devices.
27. A connection configuration device, characterized in that, include: The communication unit is used to send device information of the second device; The communication unit is further configured to receive topology information from the first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated based on information in response to at least one prompt message; wherein the information in response to the prompt message is used to establish a connection relationship between the first device and at least two second devices from the user, or to establish a connection relationship between at least two second devices.
28. A connection configuration device, characterized in that, include: The communication unit is used to send device information of the second device; The communication unit is further configured to receive topology information from the first device, the topology information including connection relationships between the first device and at least two second devices, or connection relationships between at least two second devices, the connection relationships being used to indicate device priority or master-slave relationships between devices; the connection relationships are related to at least one service; The topology information is generated in response to a change in the position of the device identifier displayed on the interface; the device identifier is used to identify the device.
29. The apparatus according to any one of claims 26-28, characterized in that, The communication unit is specifically used for: Receive a query request from the first device; the query request includes the identity information of the first device. Based on the query request, the device information of the second device is sent to the first device.
30. The apparatus according to claim 29, characterized in that, The device information of the second device is carried in the random access request or response message.
31. The apparatus according to any one of claims 26-28 and 30, characterized in that, The device information includes one or more of the following: device identifier, identity information, device hardware address, or device domain name.
32. The apparatus according to claim 29, characterized in that, The query request may also include one or more of the following: security key parameters or information used to characterize the first device as the master node.
33. A chip, characterized in that, The chip includes at least one processor and a communication interface, the communication interface being coupled to the at least one processor, the at least one processor being configured to run a computer program or instructions to implement the connection configuration method as described in any one of claims 1-9, or to implement the connection configuration method as described in any one of claims 10-16.
34. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores instructions that, when executed, implement the connection configuration method as described in any one of claims 1-9, or implement the connection configuration method as described in any one of claims 10-16.
35. A terminal, characterized in that, The terminal includes the connection configuration device as described in any one of claims 17-25, or the connection configuration device as described in any one of claims 26-32.