WO2022204859A1 - 连接配置方法和装置 - Google Patents

连接配置方法和装置 Download PDF

Info

Publication number
WO2022204859A1
WO2022204859A1 PCT/CN2021/083521 CN2021083521W WO2022204859A1 WO 2022204859 A1 WO2022204859 A1 WO 2022204859A1 CN 2021083521 W CN2021083521 W CN 2021083521W WO 2022204859 A1 WO2022204859 A1 WO 2022204859A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
devices
topology
connection
connection relationship
Prior art date
Application number
PCT/CN2021/083521
Other languages
English (en)
French (fr)
Inventor
刘航
杨常青
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP21933546.0A priority Critical patent/EP4311180A4/en
Priority to PCT/CN2021/083521 priority patent/WO2022204859A1/zh
Priority to CN202180060225.4A priority patent/CN116250213A/zh
Publication of WO2022204859A1 publication Critical patent/WO2022204859A1/zh
Priority to US18/475,036 priority patent/US20240015073A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/12Discovery or management of network topologies
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2807Exchanging configuration information on appliance services in a home automation network
    • H04L12/2809Exchanging configuration information on appliance services in a home automation network indicating that an appliance service is present in a home automation network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/22Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks comprising specially adapted graphical user interfaces [GUI]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a connection configuration method and device.
  • connection between smart devices has greatly enriched people's daily life.
  • a user's smartphone can be connected to household devices such as a smart refrigerator, a smart vacuum cleaner, or a smart speaker, and the smart phone can be used to manage, control and transmit data to other connected household devices.
  • connection between a smartphone and a smart speaker usually, it is necessary to scan the QR code on the smartphone side, or enter the verification code and other information corresponding to the smart speaker to realize the connection between the smartphone and the smart speaker.
  • the two-dimensional code and verification code may be the two-dimensional code, character string and other information printed on the smart speaker box.
  • Embodiments of the present application provide a connection configuration method and device, which relate to the field of communication technologies, and can realize connection configuration of multiple short-distance devices, and the method is simple and efficient.
  • an embodiment of the present application provides a connection configuration method, including: acquiring device information of at least one second device; generating topology information according to the device information of at least one second device; and the topology information is used to indicate that the first device is connected to a A connection relationship between at least one second device, or a connection relationship between at least one second device, where 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.
  • the method further includes sending all or part of the first topology information, or sending information indicating or representing all or part of the first topology information, where the information is also used to indicate the above-mentioned first device A connection relationship with at least one second device, or a connection relationship between at least one second device.
  • the information sent here may be referred to as second topology information, and the second topology information may be the same as or different from the first topology information.
  • connection relationship is related to at least one service. In this way, based on the difference of services, a connection relationship suitable for its services can be established.
  • generating topology information includes: generating topology information according to input information from a user; wherein the input information includes drawing information or configuration information; , or obtained by the drawing operation of the connection between at least one second device; the configuration information is based on the attributes from the user, between the first device and at least one second device, or between at least one second device. Attribute configuration operation obtained. In this way, flexible configuration of topology information can be achieved, and a networking can be constructed according to the topology information, and efficient communication between devices can be implemented based on the networking.
  • generating the topology information includes: outputting at least one prompt information; generating topology information according to the information in response to the prompt information; wherein the information in response to the prompt information is used to provide information from the user, the first device and at least one device.
  • a second device establishes a connection relationship or establishes a connection relationship between at least one second device.
  • generating the topology information includes: generating topology information in response to a position change of the device identifier displayed on the interface; the device identifier is used to identify the device.
  • generating the topology information includes: generating topology information in response to a position change of the device identifier displayed on the interface; the device identifier is used to identify the device.
  • the method further includes: displaying a topology structure, where the topology structure includes connection relationships. In this way, the connection relationship between the devices can be seen more intuitively.
  • the topology structure also includes the relative distance and/or relative orientation between devices; wherein, the length of the connection line used to reflect the connection relationship is positively related to the relative distance, and/or, used to reflect the connection relationship.
  • the distance parameter between the devices corresponding to the connection relationship is marked on the connection line. In this way, a more accurate topology can be displayed based on relative distance and/or relative orientation.
  • acquiring device information of at least one second device includes: sending a query request, where the query request includes the identity information of the first device; receiving device information from at least one second device; wherein the identity of the first device The information is used to identify the first device.
  • the first device can acquire the device information of the second device based on the query request, and then can generate topology information adapted to its device information according to different device information of each device.
  • the device information of the second device is carried in the random access request or response message.
  • the first device can also acquire the device information of the second device based on the random access request or response message, and then can generate topology information adapted to its device information according to different device information of each device.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • an embodiment of the present application provides a connection configuration method, including: sending device information of a second device; receiving topology information from the first device, where the topology information includes a connection between the first device and at least one second device relationship, or a connection relationship between at least one second device, where the connection relationship is used to indicate the priority of the devices and/or the master-slave relationship between the devices.
  • the topology information received here may be the second topology information above.
  • the second topology information may include all or part of the first topology information, or information indicating or characterizing all or part of the first topology information.
  • sending the device information of the second device includes: 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 .
  • the first device can acquire the device information of the second device based on the query request, and then can generate topology information adapted to its device information according to different device information of each device.
  • the device information of the second device is carried in the random access request or response message.
  • the first device can also acquire the device information of the second device based on the random access request or response message, and then can generate topology information adapted to the device information of each device according to different device information of each device.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • connection configuration apparatus may be the first device, or may be a chip or a chip system in the first device.
  • the connection configuration device includes at least one of a display unit, a processing unit, and a communication unit.
  • the communication unit may be a communication interface or an interface circuit.
  • the communication unit is configured to perform the step of communicating with the second device, so that the first device implements a connection configuration method described in the first aspect or any possible implementation manner of the first aspect.
  • the display unit may be a display screen.
  • the display unit is configured to perform a display step, so that the first device implements a connection configuration method described in the first aspect or any possible implementation manner of the first aspect.
  • the processing unit may be a processor.
  • the connection configuration device may further comprise a storage unit, which may be a memory.
  • the storage unit is used for storing instructions, and the processing unit executes the instructions stored in the storage unit, so that the first device implements a connection configuration method described in the first aspect or any possible implementation manner of the first aspect .
  • the connection configuration means is a chip or a system of chips within the first device
  • the processing unit may be a processor.
  • the processing unit executes the instructions stored in the storage unit, so that the first device implements a connection configuration method described in the first aspect or any possible implementation manner of the first aspect.
  • the storage unit may be a storage unit (eg, a register, a cache, etc.) in the chip, or a storage unit (eg, a read-only memory, a random access memory, etc.) located outside the chip in the first device.
  • 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 according to the device information of at least one second device; the topology information is used to indicate the relationship between the first device and the at least one device.
  • the connection relationship between the second devices, or the connection relationship between at least one second device is used to indicate the priority of the devices and/or the master-slave relationship between the devices.
  • connection relationship is related to at least one service.
  • the processing unit is specifically configured to: generate topology information according to input information from a user; wherein the input information includes drawing information or configuration information; The device, or the drawing operation of the connection between the at least one second device; the configuration information is based on the attributes between the first device and the at least one second device from the user, or between the at least one second device. The properties of the configuration operation are obtained.
  • the communication unit is specifically configured to output at least one prompt information; the processing unit is specifically configured to generate topology information according to the information in response to the prompt information; wherein the information in response to the prompt information is used to provide information from the user.
  • the first device establishes a connection relationship with at least one second device or establishes a connection relationship between at least one second device.
  • the processing unit is specifically configured to: generate topology information in response to a position change of the device identifier displayed on the interface; the device identifier is used to identify the device.
  • the display unit is specifically used for: displaying a topology structure, where the topology structure includes connection relationships.
  • the topology structure also includes the relative distance and/or relative orientation between devices; wherein, the length of the connection line used to reflect the connection relationship is positively related to the relative distance, and/or, used to reflect the connection relationship.
  • the distance parameter between the devices corresponding to the connection relationship is marked on the connection line.
  • the communication unit is specifically configured to: send a query request, where the query request includes the identity information of the first device; receive device information from at least one second device; wherein the identity information of the first device is used to identify the first device. a device.
  • the device information of the second device is carried in the random access request or response message.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • connection configuration device may be the second device, or may be a chip or a chip system in the second device.
  • the connection configuration device includes a processing unit and a communication unit.
  • the communication unit may be a communication interface or an interface circuit.
  • the communication unit is configured to perform the step 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 manner of the second aspect.
  • the processing unit may be a processor.
  • the connection configuration device may further comprise a storage unit, which may be a memory.
  • the storage unit is used for storing instructions, and the processing unit executes the instructions stored in the storage unit, so that the second device implements a connection configuration method described in the second aspect or any possible implementation manner of the second aspect .
  • the processing unit may be a processor.
  • the processing unit executes the instructions stored in the storage unit, so that the second device implements a connection configuration method described in the second aspect or any possible implementation manner of the second aspect.
  • the storage unit may be a storage unit (eg, register, cache, etc.) within the chip, or may be a storage unit (eg, read-only memory, random access memory, etc.) located outside the chip in the second device.
  • the communication unit is configured to send device information of the second device; the communication unit is further configured to receive topology information from the first device, where the topology information includes a connection relationship between the first device and at least one second device, Or a connection relationship between at least one second device, where the connection relationship is used to indicate the priority of the devices and/or the master-slave relationship between the devices.
  • the communication unit is specifically configured to: receive a query request from the first device; the query instruction includes the identity information of the first device; and send the device information of the second device to the first device according to the query request.
  • the device information of the second device is carried in the random access request or response message.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • the embodiments of the present application provide a computer-readable storage medium, where a computer program or instruction is stored in the computer-readable storage medium, and when the computer program or instruction is run on a computer, the computer is made to execute any one of the first aspect.
  • the embodiments of the present application provide a computer program product including instructions, when the instructions are run on a computer, the computer is made to execute the connection configuration method described in any one of the implementations of the first aspect, or to execute any of the second aspect.
  • an embodiment of the present application provides a terminal, where the terminal includes the connection configuration apparatus described in the third aspect and various possible implementations of the third aspect, or the fourth aspect and various possible implementations of the fourth aspect Implement the connection configuration device described in the implementation.
  • the terminal may include electronic equipment such as a mobile phone, a tablet computer, a computer, a vehicle (or a vehicle in a vehicle), a smart wearable device, a smart manufacturing device, or a smart home device, and the electronic device can be implemented through a connection configuration device.
  • electronic equipment such as a mobile phone, a tablet computer, a computer, a vehicle (or a vehicle in a vehicle), a smart wearable device, a smart manufacturing device, or a smart home device
  • the electronic device can be implemented through a connection configuration device.
  • the connection configuration device described in the above embodiment includes but is not limited to: a chip, a module or an integrated circuit in the above terminal.
  • an embodiment of the present application provides a connection configuration device, the device includes a processor and a storage medium, the storage medium stores an instruction, and when the instruction is executed by the processor, the connection as described in any implementation manner of the first aspect is implemented.
  • the present application provides a chip or a chip system, the chip or chip system includes at least one processor and a communication interface, the communication interface and the at least one processor are interconnected by a line, and the at least one processor is used for running a computer program or instruction,
  • the connection configuration method described in any one of any implementation manners of the first aspect, or the connection configuration method described in any one of any implementation manners of the second aspect is performed.
  • the communication interface in the chip may be an input/output interface, a pin, a circuit, or the like.
  • the chip or chip system described above in this application further includes at least one memory, where instructions are stored in the at least one memory.
  • the memory may be a storage unit inside the chip, such as a register, a cache, etc., or a storage unit of the chip (eg, a read-only memory, a random access memory, etc.).
  • FIG. 1 is a schematic diagram of an interface for configuring a connection relationship according to an embodiment of the present application
  • FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • FIG. 3 is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • FIG. 4 is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a connection configuration method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an interface for generating topology information according to an embodiment of the present application.
  • FIG. 7 is a schematic diagram of another interface for generating topology information provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of another interface for generating topology information provided by an embodiment of the present application.
  • FIG. 9 is a schematic diagram of yet another interface for generating topology information according to an embodiment of the present application.
  • FIG. 10 is a schematic flowchart of obtaining device information according to an embodiment of the present application.
  • FIG. 11 is a schematic flowchart of another device information acquisition provided by an embodiment of the present application.
  • FIG. 12 is another schematic flowchart of acquiring device information according to an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of still another device information acquisition provided by an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of topology information transmission and diffusion provided by an embodiment of the present application.
  • 15 is a schematic flowchart of another topology information transfer and diffusion provided by an embodiment of the application.
  • FIG. 16 is another schematic flowchart of topology information transfer and diffusion provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • connection configuration apparatus provided by an embodiment of the present application.
  • 19 is a schematic diagram of a hardware structure of a control device provided by an embodiment of the application.
  • FIG. 20 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • words such as “first” and “second” are used to distinguish the same or similar items with basically the same function and effect.
  • the first value and the second value are only used to distinguish different values, and do not limit their order.
  • the words “first”, “second” and the like do not limit the quantity and execution order, and the words “first”, “second” and the like are not necessarily different.
  • At least one means one or more
  • plural means two or more.
  • And/or which describes the association relationship of the associated objects, indicates that there can be three kinds of relationships, for example, A and/or B, which can indicate: the existence of A alone, the existence of A and B at the same time, and the existence of B alone, where A, B can be singular or plural.
  • the character “/” generally indicates that the associated objects are an “or” relationship.
  • At least one item(s) below” or similar expressions thereof refer to any combination of these items, including any combination of single item(s) or plural items(s).
  • At least one (a) of a, b, or c can represent: a, b, c, a-b, a-c, b-c, or a-b-c, where a, b, c may be single or multiple .
  • Wireless short-range communication between devices has been widely used in various fields.
  • wireless short-range communication can be understood as not needing to go through a cellular network and/or the Internet, but only through a direct wireless connection between devices, or through a wireless relay (relay) of other devices.
  • the connection relationship between the smart phone and other devices can be configured by using the necessary information such as matching codes and QR codes for wireless short-distance networking. For example, when using a mobile phone to control the smart speaker, you can scan the QR code attached to the smart speaker with the smart phone to realize the one-to-one connection configuration between the smart phone and the smart speaker.
  • the connection with the smart audio device is realized by selecting the corresponding smart speaker device on the mobile phone terminal interface.
  • FIG. 1 is a schematic interface diagram of a connection configuration connection relationship provided by an embodiment of the present application.
  • the user turns on the smart speaker and selects the corresponding smart audio device on the mobile phone, the user needs to input the serial number corresponding to the audio device on the mobile phone interface to complete the connection between the smart phone and the smart audio.
  • the user can first open the device discovery function of the smart speaker, and scan the device with the smartphone, and the smartphone can display the interface shown in a in Figure 1, which includes the device scan, the device list, and the device list.
  • Corresponding multiple devices such as smart speakers 101, smart speakers 102, and smart speakers 103, etc.
  • the smart phone can display prompt information 104 , which is used to remind the user to input the serial number of the smart speaker 103 .
  • the user can complete the device connection between the smart phone and the smart speaker by inputting the serial number of the smart speaker 103 .
  • the smart phone and the smart speaker can exchange information, and then the smart speaker can be controlled to be turned on or off through the smart phone.
  • the interface may include an opening control 105 and a closing control 106 .
  • the turn-on control 105 and the turn-off control 106 can be used to control the turn-on or turn-off of the smart speaker through a smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in the smartphone.
  • the smartphone can also implement functions such as controlling the smart speaker to play songs stored in
  • connection process of the above devices is complicated, especially for the elderly or children, and the practicability is poor.
  • connection and management of multiple devices has the following problems:
  • connection relationship configuration needs to be completed one by one.
  • connection relationship between devices is not static, and the connection relationship between devices may change with the user's business requirements. For example, in the morning, the user plays the audio data corresponding to the TV through multiple speakers; in the afternoon, when the user needs to play the music in the smartphone through multiple speakers, at this time, a connection relationship between the mobile phone and multiple speakers needs to be established. Generally, when the connection relationship between devices is changed, it may be necessary to reconfigure the connection relationship.
  • WIFI wireless fidelity
  • a connection configuration method and device provided by the embodiments of the present application can acquire device information of at least one second device, and generate device information that is consistent with the device information of the second device based on the difference in the device information of each second device.
  • the adaptive topology information can realize the topology information generated based on different device information to construct the connection configuration relationship among the multiple devices.
  • connection configuration method may be applied in a smart home scenario.
  • devices such as smart phones, smart watches, tablet computers, smart refrigerators, smart TVs, smart vacuum cleaners or smart speakers in the home environment can build a communication network, and then devices such as smart phones or TVs can be used to realize communication within the network. Management, control and data transfer of other devices.
  • a device such as a smart phone or a TV can realize audio control, video control or control of other functions of other devices in the network.
  • FIG. 2 to FIG. 4 are schematic diagrams of device connection scenarios in different scenarios provided by the embodiments of the present application.
  • FIG. 2 is a scene where audio control is implemented based on device connection
  • FIG. 3 is a scene where video control is implemented based on device connection
  • FIG. 5 is a scene where mobile phone is fully connected based on device connection.
  • FIG. 2 is a schematic diagram of an application scenario provided by an embodiment of the present application.
  • the TV or set-top box 201 can construct a network between the devices with the smart speakers 202, 203, 204 and 205. After the networking is successfully constructed, The TV or set-top box 201 can control and manage the audio functions of multiple smart speakers in the network. For example, the TV or set-top box 201 can use the smart speaker 202 and the smart speaker 203 to play sound, and control the smart speaker 204 and the smart speaker 205 to turn off the sound.
  • FIG. 3 is a schematic diagram of another application scenario provided by an embodiment of the present application.
  • the projector 301 can be connected with a set-top box 302, a smart phone 303, a tablet computer (portable android device, PAD) 304, a personal computer (PC) 305, a game console terminal 306.
  • Augmented reality (AR) or virtual reality (VR) helmet 307 or other devices perform networking construction between devices.
  • the projector 301 can implement multiple Control and management of the video capabilities of the device.
  • the projector 301 can control the AR/VR headset 307 to play a video, and then the user can watch the video content transmitted by the projector 301 based on the AR or VR headset 307 .
  • FIG. 4 is a schematic diagram of still another application scenario provided by an embodiment of the present application.
  • the smart phone 401 in the scenario of realizing the full connection of the mobile phone, the smart phone 401 can construct the inter-device networking with other terminal devices such as the PAD 402, the PC 403, the watch 404 and the camera 405. After the networking is successfully constructed, the smart phone 401 can 401 can realize the control and management of multiple devices in the network. For example, the smart phone 401 can transfer the file to the PC 403 , and then the user can edit the file transferred by the smart phone 401 through the PC 403 .
  • the terminal equipment described in the embodiments of this application includes but is not limited to a mobile station (mobile station, MS), a mobile terminal (mobile terminal), a mobile phone (mobile phone), a mobile phone (handset), and a portable device ( portable equipment), etc.
  • 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 called a "cellular" phone), with Computers with wireless communication functions, etc.
  • the terminal equipment can also be computers with wireless transceiver functions, virtual reality terminal equipment, augmented reality terminal equipment, wireless terminals in industrial control, and wireless terminals in self-driving.
  • Terminals wireless terminals in remote medical, wireless terminals in smart grid or smart manufacturing, wireless terminals in transportation safety, drones, in smart city Wireless terminals, smart homes in smart homes or other wireless terminals, etc.
  • Terminals may be called by different names in different networks, for example: User Equipment, Mobile Station, Subscriber Unit, Station, Cell Phone, Personal Digital Assistant, Wireless Modem, Wireless Communication Device, Handheld Device, Laptop, Cordless Phone, Wireless local loop station, etc.
  • connection configuration method provided by the embodiments of the present application may also be applied in the field of smart cars.
  • the user's smartphone can establish a configuration connection relationship with devices such as the door lock of the car or the air conditioner in the car, and then the smartphone can be used to realize the opening function of the car door lock or the car air conditioner.
  • connection configuration method provided in the embodiment of the present application may also be applied in the medical and health field.
  • the user's smartphone, smart watch or tablet computer and other terminal devices can establish a configuration connection relationship with the sensor that obtains human body data, and then use the terminal device to monitor various indicators of the human body at any time, such as heart rate or blood pressure and other data, so as to ensure Human safety.
  • connection configuration method provided in the embodiment of the present application can be flexibly applied to In various fields or scenarios involving wireless short-range communication, this is not limited in this embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a connection configuration method provided by an embodiment of the present application. As shown in FIG. 5 , the method includes:
  • the first device acquires device information of at least one second device.
  • the first device may be a device that has relatively strong processing capability and can acquire device information of the second device.
  • the first device may be a terminal device with a human-computer interaction interface, such as a smartphone or a tablet. computer or computer etc.
  • the second device is a device that can be sensed by the first device.
  • the first device acquiring the device information of the at least one second device may be that the first device may acquire the device information of one second device or the device information of multiple second devices.
  • the device information of the second device may be information used to uniquely identify the device identity of the second device locally or globally.
  • the device information may include one or more of the following: device identification, identity information, or device information such as a device hardware address, a device temporary address, and the like.
  • the device identifier may be used to identify the device.
  • the device identifier may include an identifier composed of characters, character strings, or numbers, such as device (device) 1, device 2, or device 3.
  • the identity information can be used to identify the identity of the device, for example, the device identity information can include the name of the device, such as a brand A speaker, a brand B computer, or a brand C mobile phone.
  • the device hardware address can be used to identify the address of the device in the network, for example, the hardware address can include a local area network address (media access control address, MAC), such as 08:00:20:0A:8C:6D, etc. can be the hardware address of the device .
  • MAC media access control address
  • the device temporary address can be used to identify the address of the device in the local scope.
  • the device can randomly generate a random number from a large range, such as 0 to 2 48 -1, as a temporary address. Since, for example, the range is large enough, the probability that two or more devices generate the same random number is almost zero in the local range.
  • the temporary address of the device can also be used as the identity information of the device.
  • the device information of the first device or the device information of the second device may include other content according to an actual scenario, which is not limited in this embodiment of the present application.
  • the device information of the second device may be carried in the random access request or response message.
  • the first device may send a query instruction to the second device, where the query instruction includes device information of the first device; the second device receives the query instruction and sends a random access request or response to the first device information.
  • the random access request or response message includes device information of the second device. Then the first device can acquire device information of at least one second device.
  • the first device generates first topology information according to 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; the connection relationship is used to indicate the priority and / or a master-slave relationship between devices.
  • the first topology information may be displayed in the first device.
  • the information used to indicate the display in the first device may be the first topology information.
  • the first topology information may include: information representing a connection relationship between devices, information representing a relative distance between devices, or information representing a relative orientation between devices, and the like.
  • the priority of the device can be used to indicate the generation order of topology information or the transmission order of topology information, etc.
  • the first device when the priority of the first device is higher than that of the second device, the first device The device information of the second device generates topology information.
  • the first device when the device includes a third device, and the priority of the first device is higher than the priority of the third device, and the priority of the third device is higher than the priority of the second device, the first device can be prioritized based on the priority of the third device.
  • Device information generates topology information.
  • the priority may also be used in a scenario of transmitting topology information, for example, the topology information may be preferentially transmitted to a device with a high priority.
  • the priority of the device may be used to indicate the relationship between the devices being managed and managed. Devices with higher priority can manage devices with lower priority.
  • the master-slave relationship of the device can be used to represent attributes between devices.
  • the master node of the device can be a node with resource allocation or resource scheduling capabilities, and the master node manages the slave nodes.
  • the master node can schedule time and frequency for the slave nodes.
  • Resource the slave node of the device may be a node that obeys the scheduling of the master node, for example, the slave node may use the time-frequency resources scheduled by the master node to communicate.
  • the connection relationship is related to at least one service.
  • the service may represent the purpose of establishing a connection relationship.
  • the first device may establish a connection relationship with a device in the second device that can play music, such as a speaker, based on the purpose of playing music.
  • the first device sends the second topology information to the second device.
  • the second device receives the second topology information. Furthermore, the second device may implement the connection between the devices based on the second topology information.
  • the second topology information may be information representing a connection relationship between devices.
  • the second topology information includes or indicates a connection relationship between the first device and at least one of the second devices, or a connection relationship between at least one of the second devices, and the connection relationship uses Used to indicate the priority of devices and/or the master-slave relationship between devices.
  • 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, and then the second device can determine to establish a connection with the first device.
  • the second topology information in the step shown in S503 may include all or part of the first topology information in the step shown in S502, or may include all the information except the first topology information Or other information in the partial information, or may include information indicating or representing all or part of the first topology information, or information corresponding to all or part of the first topology information.
  • the first topology information in the step shown in S502 may include all or part of the first topology information in the step shown in S502, or may include all the information except the first topology information Or other information in the partial information, or may include information indicating or representing all or part of the first topology information, or information corresponding to all or part of the first topology information.
  • a connection configuration method provided by an embodiment of the present application can acquire the device information of at least one second device, and generate a topology adapted to the device information of the second device based on the difference in the device information of each second device information, the topology information generated based on the information of different devices can be realized, and the connection configuration relationship among the multiple devices can be constructed.
  • the tedious process of device configuration based on one-to-one in the prior art can be solved, the connection configuration process between multiple devices is simplified, and the method is simple and efficient.
  • generating the first topology information may include three manners.
  • mode 1 according to the input information from the user, generate topology information (as shown in the embodiment corresponding to FIG. 6 and FIG. 7 );
  • mode 2 generate topology information according to the input from the user to the instruction information sent by the device (as shown in FIG. 8 ) Corresponding embodiment);
  • Mode 3 Generate topology information according to the position change of the device identifier displayed on the interface of the device (the embodiment corresponding to FIG. 9 ).
  • the three methods are specifically described below. It should be noted that the content displayed on the desktop involved in the following drawings is only an example, and does not limit the actual application scenario.
  • Method 1 Generate topology information according to the input information from the user, and then display the topology structure.
  • the input information may include drawing information or configuration information; the topology structure includes a connection relationship.
  • the input information may include drawing information.
  • the drawing information is obtained from a user's drawing operation on a connection between the first device and at least one second device, or at least one second device.
  • the drawing operation may include a sliding operation, a clicking operation, or other operations.
  • the drawing operation includes a sliding operation
  • the user can slide from the position of device 1 to the position of device 2, thereby generating an arrow pointing from device 1 to device 2.
  • the drawing operation includes a click operation
  • the user can click device 1 and then click device 2 to generate an arrow pointing from device 1 to device 2; or, the user can click device 2 and then click device 1 to generate an arrow pointing from device 2 to device 1.
  • arrow the drawing operation includes a clicking operation
  • the arrow can indicate the affiliation between devices, for example, the one-way arrow can point to the slave node device, and the other end of the one-way arrow is the master node device; or the one-way arrow points to the master node device, and the other end of the one-way arrow is the master node device.
  • the one-way arrow can point to the slave node device, and the other end of the one-way arrow is the master node device.
  • slave node devices etc.
  • different colors or grayscales can also be used to represent different device types.
  • dark gray can be used to represent the master node device
  • light gray can be used to represent the slave node. Node devices, etc.
  • FIG. 6 is a schematic diagram of an interface for generating topology information according to an embodiment of the present application.
  • the first device is the PAD600 as an example.
  • the PAD600 can display the interface as shown in a in FIG.
  • the device information of multiple devices such as the device information of the device may be the device identification and so on.
  • the device identification may include: device 1 (or can be understood as the PAD600), device 2, device 3, device 4, device 5, device 6, device 7, or device 8 and other devices.
  • the topology structure 601 can be used to draw connections between devices, thereby generating topology information.
  • the user can draw a connection based on the device information of multiple devices in the topology structure 601, and the PAD 600 receives the drawing information generated by the user's drawing operation, and can generate the drawing information according to the drawing information. topology information, and then build the connection configuration between devices. For example, a user can draw a line connecting device 1 to device 6 and point to device 6 with an arrow. Among them, the arrow points to the slave node device.
  • the user can draw the connection between device 1 and device 2, and use the arrow to point to device 2; the user can draw the connection between device 1 and device 3, and use the arrow to point to device 3; the user can draw the connection between device 1 and device 4 , and use the arrow to point to device 4; the user can draw the line connecting device 1 and device 5, and use the arrow to point to device 5; the user can draw the line connecting device 4 and device 7, and use the arrow to point to device 7; and the user can draw the line between device 4 and device 7 Connect the device 8, and use the arrow to point to the device 8, and click the completion control 403 to generate topology information.
  • the PAD600 can display the interface as shown in b in Fig. 6, in which the topology structure constructed based on the topology information can be displayed.
  • the topology structure includes connection relationships.
  • the topology structure may include connection relationships among device 1, device 2, device 3, device 4, device 5, device 6, device 7, and device 8, constructed topology.
  • users can implement networking communication between devices based on the topology.
  • the user wants to rebuild the topology, he can click the cancel control 603 in the interface shown in b in FIG. 6 , and then perform the above process again.
  • the topology may also include relative distances and/or relative orientations between devices.
  • the length of the connection line used to reflect the connection relationship is positively correlated with the relative distance, and/or the connection line used to reflect the connection relationship is marked with a distance parameter between devices corresponding to the connection relationship.
  • the distance between devices is longer, the length of the connection between devices displayed in the topology is longer.
  • the relative distance between the device 1 and the device 6 can be 20m; the relative distance between the device 1 and the device 5 can be 10m; and the display device 8 may be the southeast direction of device 4 . It can be understood that the relative distance and/or relative orientation can be used to display a more accurate topology.
  • the input information may also include configuration information.
  • the configuration information is obtained based on a configuration operation of an attribute between the first device and at least one second device, or an attribute between at least one second device from a user.
  • the attribute between the devices can be that the device is a master node or a slave node.
  • This configuration operation can be used to configure the properties of each device individually, or the properties of multiple devices can be configured at once.
  • the configuration operation can be other operations such as click operation and input operation.
  • FIG. 7 is a schematic diagram of another interface for generating topology information according to an embodiment of the present application.
  • the first device is a computer 700 as an example.
  • the computer 700 can display the interface shown in FIG. 7 .
  • the interface may include a device list 701 and a device attribute configuration 702.
  • the device list 701 may display the device information of multiple devices obtained by the computer 700.
  • the device information of the device may be the device identifier. .
  • the device information may include: device 1 (or can be understood as the computer 700 ), device 2, device 3, device 4, device 5, and other devices.
  • the user can configure the properties of the device in the topology structure based on the device information in the device property configuration 702 , and the computer 700 receives the user's configuration operation for device properties, and can obtain topology information according to the configuration operation.
  • the user can click on the device 1 in the device list 701 and select to configure the properties of the device for the device 1, and the device property configuration 702 can display various information of the device corresponding to the device 1.
  • the user can select the option as the master node device of device 2, the option as the master node device of device 3, the option as the master node device of device 4 and the option as the master node device of device 5 in the solid line box 704, and click to save the settings Control 703, and then complete the generation of topology information of device 1, device 2, device 3, device 4, and device 5, and then construct a topology structure.
  • Mode 2 Generate topology information according to the input from the user to the instruction information sent by the device. Specifically, the first device outputs at least one prompt information; the first device generates topology information according to the information in response to the prompt information, and then displays the topology structure.
  • the information in response to the prompt information 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.
  • FIG. 8 is a schematic diagram of another interface for generating topology information according to an embodiment of the present application.
  • the first device may also store a history record of configuration connections made with at least one second device.
  • device 1 has established connection relationships with device 2, device 3, and device 4 before, and saves the corresponding historical records.
  • the device 1 receives the device information of the device 2, the device 3 and the device 4, the device 1 can display prompt information on the interface, such as the interface shown in FIG. 8 .
  • the prompt information 801 is displayed on the interface, and the prompt information 801 includes: whether to establish the connection relationship with the device 2, the device 3 and the device 4 according to the historical records.
  • the device 1 can establish connections with the device 2, the device 3 and the device 4 according to the determination information in response to the prompt information, and generate topology information.
  • the interface of the first device is presented, whether to use the first device to connect the several speaker devices of the B brand, when the user chooses to agree , to generate topology information.
  • the prompt information is presented on the interface only when the first device finds that there are several speaker devices of the same brand nearby within a fixed time window.
  • the interface of the first device is presented, whether to use the first device to connect the several speaker devices of brand B, when the user selects When agreed, generate topology information.
  • the user interface can prompt possible topology structures, for example, topology structure A, topology structure B, and topology structure C for users to choose. When one of them is selected, topology information is generated.
  • the first device when the first device is connected to the Internet, the first device may also acquire topology information among a large number of devices based on big data, and select topology information suitable for the first device. Subsequently, prompt information may be sent to the user, indicating whether to use the topology information obtained based on the big data.
  • Mode 3 Generate topology information according to the position change of the device identifier displayed on the interface of the device. Specifically, the first device generates topology information in response to a change in the position of the device identifier displayed on the interface, and then displays the topology structure.
  • the user may construct a connection relationship between devices through other operations such as a drag and drop operation.
  • FIG. 9 is a schematic diagram of still another interface for generating topology information according to an embodiment of the present application.
  • the interface shown may include a device list 901 and a topology structure 902 .
  • the device list 901 may display device information of multiple devices acquired by the smartphone 90900, for example, the device information of the device may be a device identifier.
  • the device information may include: device 1 (or can be understood as the smartphone 900 ), device 2, device 3, device 4, or device 5 and other devices.
  • the topology structure 902 may display a plurality of positions for setting nodes including the topology structure, and the positions corresponding to the topology structure 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.
  • the user can drag any device in the device list 901 to any position in the topology structure 902, and the smartphone 900 receives the device generated by the dragging.
  • the identified location changes, and topology information can be generated based on the location change and the topology presented in topology 902 .
  • a user may drag device 1 into position 1, device 2 into position 2, device 3 into position 3, device 4 into position 4, and device 5 into In position 5, and click the completion control 904, and then the smart phone 900 can generate topology information based on the changes of device 1, device 2, device 3, device 4 and device 5, and then establish a topology structure display as shown in b in Figure 9 interface.
  • the interface shown in b in FIG. 9 may also include multiple devices in the device list 905 that do not constitute a topology structure, such as other devices such as device 6 , device 7 , device 8 , and device 9 .
  • topology information can be achieved, and then a networking can be constructed according to the topology information, and efficient communication between devices can be implemented based on the networking.
  • S501 may include: the first device sends a query request, and the second device sends device information of the second device to the first device according to the query request.
  • 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.
  • the query request may further include: security key parameters or other information such as information used to characterize the first device as the master node.
  • security key parameters may include: personal area network security key parameters, etc., the security key parameters are used to ensure the reliability of communication between devices.
  • smart home B and smart home C that have been connected to mobile phone A respectively
  • smart home B and smart home C need to be connected, because they have both been connected to mobile phone A before, at this time, smart home B and smart home C may both be
  • personal area network security key parameters configured on mobile phone A.
  • the device information of the second device may be carried in the random access request or response message.
  • mode A the device information of the second device is carried in the random access request (the embodiment corresponding to FIG. 10 and FIG. 11 );
  • mode B the device information of the second device is carried in the response message (corresponding to FIG. 12 ) example).
  • Manner A The device information of the second device is carried in the random access request.
  • the process of acquiring the device information of the second device based on the random access request by the first device is described.
  • FIG. 10 is a schematic flowchart of acquiring device information according to an embodiment of the present application. As shown in Figure 10, the process of acquiring the device information may include:
  • the main interface device sends a nearby node query instruction to other devices.
  • 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, and the like.
  • the priority information of the main interface device may include information with a higher priority of the main interface device.
  • Adapted, other devices receive query instructions from the main interface device. S1002, other devices initiate a random access process to the high-priority device.
  • other devices may initiate a random access procedure to a high-priority device (such as a home interface device) based on different contents in the query message.
  • a high-priority device such as a home interface device
  • the process of other devices sending a random access request to the main interface device according to the query instruction may be: other devices receive the query instruction.
  • other devices determine that the priority of the main interface device is greater than other devices according to the information of the main interface device as the master node, or when the priority of the main interface device is determined to be greater than a certain threshold, other devices initiate random access to the main interface device ask.
  • the process of other devices sending a random access request to the main interface device according to the query instruction may be: The calculation is performed based on the security key parameter, and 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.
  • the random access request may also include device information of the third device.
  • the third device may be a device with another device as the main node.
  • the main interface device can obtain the device information of other devices, because the other devices can act as the master node of the third device and have already obtained the device information of the third device. Therefore, when another device sends a random access request to the main interface device according to the query instruction, the random access request may include device information of the other device and/or the third device.
  • FIG. 11 is a schematic flowchart of another device information acquisition provided by an embodiment of the present application. As shown in Figure 11, the process of acquiring device information may include:
  • the main interface device sends a nearby node query instruction to the main node device.
  • the master node device initiates a random access procedure to the high-priority device, and reports the node identity information and signal strength obtained by the master node device.
  • the random access request includes the identity information and signal strength of the third device.
  • the third device is a device using the second device as a master node.
  • the process in which the master node device initiates the random access process to the high-priority device in S1102 is similar to the process in which other devices initiate the random access process to the high-priority device in the step shown in S1002, and will not be repeated here.
  • the main interface device may obtain the signal strength of the main interface device and other devices and/or the third device based on the signal strength of the other device and/or the third device obtained in the random access request. Or the distance between the third devices, or, the location information of other devices and/or the third device, to obtain the specific orientation of the other devices and/or the third device.
  • Manner B The device information of the second device is carried in the response message.
  • the process of acquiring the device information of the second device by the first device based on the response message is described.
  • FIG. 12 is still another schematic flowchart of acquiring device information according to an embodiment of the present application. As shown in Figure 12, the process of acquiring the device information may include:
  • the main interface device sends a nearby node query instruction to other devices.
  • the other devices periodically send identity information within a period of time T1, and continuously send response messages N times.
  • the response message contains the identity information of the other device.
  • other devices may send a response message to a high-priority device (eg, a home interface device) based on different contents in the query message.
  • a high-priority device eg, a home interface device
  • the process of other devices sending a response message to the main interface device according to the query instruction may be: other devices receive the query instruction, when When other devices determine that the priority of the main interface device is higher than that of other devices according to the information of the main interface device as the master node, or determine that the priority of the main interface device is greater than a certain threshold, the other devices send a response message to the main interface device.
  • the process of other devices sending a response message to the main interface device according to the query instruction may be as follows: other devices receive the query instruction, and other devices based on security The key parameter is calculated, and when the calculation result of the security key parameter is consistent with that stored in other devices, the other devices send a response message to the main interface device.
  • the response message may also include device information of the third device.
  • the process of acquiring the device information of the third device is not repeated here.
  • the main interface device may obtain the distance between the main interface device and the other device and/or the third device based on the signal strength of the other device and/or the third device obtained in the response message, or, other devices and/or Or the location information of the third device to obtain the specific orientation of the other device and/or the third device.
  • the first device may also obtain the device of the second device based on a broadcast message sent by the second device. information.
  • FIG. 13 is a schematic flowchart of still another device information acquisition provided by an embodiment of the present application. As shown in Figure 13, the process of acquiring device information may include:
  • the discovery message may be a broadcast message, and the discovery message may carry identity information of other devices.
  • the main interface device can obtain device information of other devices sent from other devices.
  • the device information is, for example, identity information.
  • the broadcast message may also include device information of the third device.
  • the process of acquiring the device information of the third device is not repeated here.
  • the main interface device can obtain the distance between the main interface device and the other device and/or the third device based on the signal strength of the other device and/or the third device obtained in the broadcast message, or, other devices and/or Or the location information of the third device to obtain the specific orientation of the other device and/or the third device.
  • the first device can obtain device information of the second device based on random access requests, response messages or broadcast information, and then can generate topology information adapted to its device information according to different device information of each device.
  • a possible implementation manner further includes: transmission and diffusion of topology information. Specifically, at least one second device establishes a connection relationship between at least one second device and the first device according to the received second topology information; or, a connection relationship between at least one second device.
  • the transmission and diffusion of topological information can include two ways. Mode a: realize the transmission and diffusion of topology information based on broadcast messages and random access requests (the embodiments corresponding to FIG. 14 and FIG. 15 ); mode b: realize the transmission and diffusion of topology information based on broadcast messages (as shown in FIG. 16 ) example).
  • FIG. 14 is a schematic flowchart of topology information transmission and diffusion provided by an embodiment of the present application. As shown in Figure 14, the process of the topology information transmission may include:
  • the main interface device sends a system broadcast message to other devices.
  • the broadcast message includes priority information and/or topology configuration information of the main interface device.
  • the priority information of the main interface device may include information with a higher priority of the main interface device.
  • the process of other devices sending a random access request to the main interface device according to the broadcast message may be: other devices receive the broadcast message, When other devices determine the information of the main interface device as the master node, the other devices initiate a random access request to the main interface device.
  • the broadcast message sent by the main interface device includes topology configuration information
  • other devices can obtain topology configuration information from the main interface device.
  • the main interface device may determine the distance based on the signal strength obtained in the random access request.
  • the main interface device sends topology configuration information to the access node.
  • the access node may include other devices.
  • Other devices can determine their own attributes and the connection relationship with each device according to the topology configuration information.
  • the first device may also transmit topology information to the second device and/or the third device, and details are not described herein again.
  • FIG. 15 is a schematic flowchart of another topology information transfer and diffusion provided by an embodiment of the present application. As shown in Figure 15, the process of the topology information transmission may include:
  • the master node 1 sends a system broadcast message to the master node 2 .
  • the master node 2 can become a slave node and receive system broadcast messages before obtaining the configuration information.
  • the master node 2 initiates a random access procedure to the master node.
  • the master node includes master node 1 .
  • the master node 1 sends topology configuration information to the access node.
  • the access node includes the master node 2 . If applicable, the master node 2 can determine its own attributes and the connection relationship with each device according to the topology configuration information.
  • Mode b The transmission and diffusion of topology information are realized based on broadcast messages. Exemplarily, taking the master node in the first device or the second device and the topology information as topology configuration information as an example, the process of transferring and diffusing the topology information is described.
  • FIG. 16 is a schematic flowchart of yet another topology information transfer and diffusion provided by an embodiment of the present application. As shown in Figure 16, the process of the topology information transmission may include:
  • the master node 1 sends a system broadcast message to other devices.
  • the system broadcast message may include configuration information and the like. If applicable, other devices can obtain configuration information through system broadcast messages, and then build connections between devices.
  • the topology information generated based on the information of different devices can be implemented, and the connection configuration relationship among the multiple devices can be constructed.
  • the tedious process of device configuration based on one-to-one in the prior art can be solved, the connection configuration process between multiple devices is simplified, and the method is simple and efficient.
  • FIG. 17 is a schematic structural diagram of a terminal according to an embodiment of the present application.
  • the terminal 170 includes a connection configuration apparatus 180 . It can be understood that other components or other devices included in the terminal may be set according to actual application scenarios, which are not limited in this embodiment of the present application.
  • the above-mentioned terminal may execute the method described in the above-mentioned embodiment by using the connection configuration apparatus 180 . It can be understood that the manner in which the terminal controls the connection configuration apparatus 180 may be set according to an actual application scenario, which is not specifically limited in this embodiment of the present application.
  • FIG. 18 is a schematic structural diagram of a connection configuration apparatus provided by an embodiment of the present application.
  • the configuration apparatus 180 may be used in a communication device, circuit, hardware component or chip, and the connection configuration apparatus includes at least one of a display unit 1801 , a processing unit 1802 and a communication unit 1803 .
  • the display unit 1801 is used to support the display steps performed by the connection configuration device;
  • the processing unit 1802 is used to support the connection configuration device to perform information processing steps;
  • the communication unit 1803 is used to support the connection configuration device to perform data transmission or reception steps.
  • the connection configuration apparatus 180 may be the first device or the second device in this embodiment of the present application.
  • connection configuration apparatus 180 when the connection configuration apparatus 180 is a first device, an embodiment of the present application provides a connection configuration apparatus 180, including: a processing unit 1802, configured to acquire device information of at least one second device; the processing unit 1802, further is used to generate first topology information according to 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 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.
  • connection relationship is related to at least one service.
  • the processing unit 1802 is specifically configured to: generate topology information according to input information from a user; wherein the input information includes drawing information or configuration information; The configuration information is obtained from the drawing operation of the connection between two devices, or at least one second device; the configuration information is based on the attribute between the first device and the at least one second device, or the relationship between the at least one second device It is obtained from the configuration operation of the properties between.
  • the communication unit 1803 is specifically configured to output at least one prompt information; the processing unit 1802 is specifically configured to generate topology information according to the information in response to the prompt information; wherein the information in response to the prompt information is used for
  • the user's first device establishes a connection relationship with at least one second device or establishes a connection relationship between at least one second device.
  • the processing unit 1802 is specifically configured to: generate topology information in response to a position change of the device identifier displayed on the interface; the device identifier is used to identify the device.
  • the display unit 1801 is specifically configured to: display a topology structure, where the topology structure includes connection relationships.
  • the topology structure also includes the relative distance and/or relative orientation between devices; wherein, the length of the connection line used to reflect the connection relationship is positively related to the relative distance, and/or, used to reflect the connection relationship.
  • the distance parameter between the devices corresponding to the connection relationship is marked on the connection line.
  • the communication unit 1803 is specifically configured to: send a query request, where the query request includes the identity information of the first device; receive device information from at least one second device; wherein the identity information of the first device is used to identify first device.
  • the device information of the second device is carried in the random access request or response message.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • connection configuration apparatus 180 when the connection configuration apparatus 180 is a second device, an embodiment of the present application provides a connection configuration apparatus 180, including: a communication unit 1803, configured to send device information of the second device; the communication unit 1803, further configured to Receive second topology information from the first device, where the second topology information includes or indicates a connection relationship between the first device and at least one second device, or a connection relationship between at least one second device, and the connection relationship uses Used to indicate the priority of devices and/or the master-slave relationship between devices.
  • the communication unit 1803 is specifically configured to: receive a query request from the first device; the query instruction includes the identity information of the first device; and send the device information of the second device to the first device according to the query request.
  • the device information of the second device is carried in the random access request or response message.
  • the device information includes one or more of the following: device identification, identity information, device hardware address or device domain name.
  • the query request further includes one or more of the following: a security key parameter or information used to characterize the first device as a master node.
  • connection configuration apparatus 180 of each of the above solutions has the function of implementing the corresponding steps performed by the first device or the second device in the above method.
  • connection configuration apparatus 180 may further include: a storage unit 1804 .
  • the processing unit 1802 and the storage unit 1804 are connected through a communication line.
  • the storage unit 1804 may include one or more memories, which may be devices in one or more devices or circuits for storing programs or data.
  • the storage unit 1804 may exist independently, and is connected to the processing unit 1802 of the connection configuration device through a communication line.
  • the storage unit 1804 may also be integrated with the processing unit 1802.
  • the communication unit 1803 may be an input or output interface, a pin or a circuit, or the like.
  • the storage unit 1804 may store computer-implemented instructions for the radar or target device method, so that the processing unit 1802 executes the radar or target device method in the above embodiments.
  • the storage unit 1804 may be a register, a cache or a RAM, etc., and the storage unit 1804 may be integrated with the processing unit 1802 .
  • the storage unit 1804 may be a ROM or other type of static storage device that may store static information and instructions, and the storage unit 1804 may be separate from the processing unit 1802 .
  • FIG. 19 is a schematic diagram of the hardware structure of a control device provided by an embodiment of the application.
  • the control device includes a processor 1901, a communication line 1904 and at least one communication interface (exemplified in FIG. 19 ). Take the communication interface 1903 as an example for description).
  • the processor 1901 may be a general-purpose central processing unit (CPU), a microprocessor, an application-specific integrated circuit (ASIC), or one or more processors used to control the execution of the programs of the present application. integrated circuit.
  • CPU central processing unit
  • ASIC application-specific integrated circuit
  • Communication lines 1904 may include circuitry that communicates information between the aforementioned components.
  • the communication interface 1903 using any device such as a transceiver, is used to communicate with other devices or communication networks, such as Ethernet, wireless local area networks (WLAN) and the like.
  • devices or communication networks such as Ethernet, wireless local area networks (WLAN) and the like.
  • control device may also include a memory 1902 .
  • Memory 1902 may be read-only memory (ROM) or other type of static storage device that can store static information and instructions, random access memory (RAM) or other type of static storage device that can store information and instructions It can also be an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disk storage, CD-ROM storage (including compact discs, laser discs, optical discs, digital versatile discs, Blu-ray discs, etc.), magnetic disk storage media or other magnetic storage devices, or capable of carrying or storing desired program code in the form of instructions or data structures and capable of being executed by a computer Access any other medium without limitation.
  • the memory may exist independently and be connected to the processor through communication line 1904. The memory can also be integrated with the processor.
  • the memory 1902 is used for storing computer-executed instructions for executing the solution of the present application, and the execution is controlled by the processor 1901 .
  • the processor 1901 is configured to execute the computer-executed instructions stored in the memory 1902, thereby implementing the connection configuration method provided by the embodiment of the present application.
  • the computer-executed instructions in the embodiments of the present application may also be referred to as application code, which is not specifically limited in the embodiments of the present application.
  • the processor 1901 may include one or more CPUs, such as CPU0 and CPU1 in FIG. 19 .
  • control device may include multiple processors, such as the processor 1901 and the processor 1905 in FIG. 19 .
  • processors can be a single-core (single-CPU) processor or a multi-core (multi-CPU) processor.
  • a processor herein may refer to one or more devices, circuits, and/or processing cores for processing data (eg, computer program instructions).
  • the processor 1901 is configured to read the program in the memory 1902 and execute the method flow in S501-S503 as shown in FIG. 5 .
  • FIG. 20 is a schematic structural diagram of a chip according to an embodiment of the present application.
  • the chip 200 includes one or more (including two) processors 2020 and a communication interface 2030 .
  • memory 2040 stores the following elements: executable modules or data structures, or a subset thereof, or an extended set of them.
  • the memory 2040 may include a read-only memory and a random access memory, and provides instructions and data to the processor 2020.
  • a portion of memory 2040 may also include non-volatile random access memory (NVRAM).
  • NVRAM non-volatile random access memory
  • the memory 2040 , the communication interface 2030 , and the memory 2040 are coupled together through the bus system 2020 .
  • the bus system 2020 may also include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus.
  • various buses are labeled as bus system 2020 in FIG. 20 .
  • the methods described in the foregoing embodiments of the present application may be applied to the processor 2020, or implemented by the processor 2020.
  • the processor 2020 may be an integrated circuit chip with signal processing capability.
  • each step of the above method can be completed by the hardware integrated logic circuit in the processor 2020 or the instructions in the form of software.
  • the above-mentioned processor 2020 can be a general-purpose processor (for example, a microprocessor or a conventional processor), a digital signal processor (digital signal processing, DSP), an application specific integrated circuit (ASIC), an off-the-shelf programmable gate Array (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 the present invention .
  • a general-purpose processor for example, a microprocessor or a conventional processor
  • DSP digital signal processing
  • ASIC application specific integrated circuit
  • FPGA field-programmable gate array
  • the steps of the method disclosed in conjunction with the embodiments of the present application may be directly embodied as executed by a hardware decoding processor, or executed by a combination of hardware and software modules in the decoding processor.
  • the software module may be located in a storage medium mature in the field, such as random access memory, read-only memory, programmable read-only memory, or electrically erasable programmable read only memory (EEPROM).
  • the storage medium is located in the memory 2040, and the processor 2020 reads the information in the memory 2040, and completes the steps of the above method in combination with its hardware.
  • the instructions stored by the memory for execution by the processor may be implemented in the form of a computer program product.
  • the computer program product may be written in the memory in advance, or downloaded and installed in the memory in the form of software.
  • a computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the procedures or functions according to the embodiments of the present application are generated in whole or in part.
  • the computer may be a general purpose computer, special purpose computer, computer network, or other programmable device.
  • Computer instructions may be stored in or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be transmitted from a website site, computer, server, or data center over a wire (e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (eg infrared, wireless, microwave, etc.) means to transmit to another website site, computer, server or data center.
  • a wire e.g. Coaxial cable, optical fiber, digital subscriber line (DSL) or wireless (eg infrared, wireless, microwave, etc.
  • the computer readable storage medium may be Any available medium on which a computer can store or data storage device including a server, data center, etc., integrated with one or more available media.
  • available media may include magnetic media (eg, floppy disks, hard disks, or tapes), optical media (eg, Digital versatile disc (digital versatile disc, DVD)), or semiconductor media (for example, solid state disk (solid state disk, SSD)), etc.
  • Embodiments of the present application also provide a computer-readable storage medium.
  • the methods described in the above embodiments may be implemented in whole or in part by software, hardware, firmware or any combination thereof.
  • Computer-readable media can include both computer storage media and communication media and also include any medium that can transfer a computer program from one place to another.
  • the storage medium can be any target medium that can be accessed by a computer.
  • the computer readable medium may include compact disc read-only memory (CD-ROM), RAM, ROM, EEPROM or other optical disk storage; the computer readable medium may include magnetic disks memory or other disk storage devices.
  • any connecting line is properly termed a computer-readable medium.
  • Disk and disc includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk, and blu-ray disc, where disks usually reproduce data magnetically, while discs use lasers to optically reproduce data.

Abstract

本申请实施例提供一种连接配置方法和装置,涉及通信技术领域。方法包括:获取至少一个第二设备的设备信息;根据至少一个第二设备的设备信息,生成拓扑信息;拓扑信息用于指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。这样,能够提高多个短距离设备的连接配置的效率和便利性。

Description

连接配置方法和装置 技术领域
本申请涉及通信技术领域,尤其涉及一种连接配置方法和装置。
背景技术
智能设备间的连接,极大的丰富了人们的日常生活。例如,在智能家居环境下,用户的智能手机与智能冰箱、智能吸尘器或智能音箱等家居设备可以实现连接,并利用智能手机实现对连接内的其他家居设备的管理、控制和数据传输。
以智能手机与智能音箱的连接为例,通常情况下,需要在智能手机端扫描二维码,或者输入与该智能音箱相对应的验证码等信息,来实现智能手机与智能音箱的连接。其中二维码、验证码可能是印刷在智能音箱箱体上的二维码、字符串等信息。设备之间的短距通信为人们的生活提供了极大的便利。随着家居环境等领域中,围绕着用户的终端设备的数量越来越多,多设备的管理和连接也将愈加复杂。
综上,上述设备间的连接关系配置,过程繁琐,操作复杂,效率低下。
发明内容
本申请实施例提供一种连接配置方法和装置,涉及通信技术领域,可以实现多个短距离设备的连接配置,该方法简单高效。
第一方面,本申请实施例提供一种连接配置方法,包括:获取至少一个第二设备的设备信息;根据至少一个第二设备的设备信息,生成拓扑信息;拓扑信息用于指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。这里生成的拓扑信息可以称为第一拓扑信息。
进一步,所述方法还包括,发送所述第一拓扑信息的全部或者部分信息,或者发送指示或者表征所述第一拓扑信息的全部或者部分信息的信息,该信息同样用于指示上述第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系。这里发送的信息可以称为第二拓扑信息,所述第二拓扑信息可以与所述第一拓扑信息相同或者不同。
这样,可以解决现有方式中基于一对一进行设备配置的繁琐过程,简化了多个设备之间的连接配置过程,方法简单高效。
可能的实现方式中,连接关系与至少一种业务相关。这样,可以基于业务的不同,建立与其业务相适应的连接关系。
可能的实现方式中,生成拓扑信息,包括:根据来自用户的输入信息生成拓扑信息;其中,输入信息包括绘制信息或配置信息;绘制信息是来自用户的、对第一设备与至少一个第二设备,或者至少一个第二设备之间的连线的绘制操作得到的;配置信息是基于来自用户的、对第一设备与至少一个第二设备之间的属性,或者至少一个第二设备之间的属性的配置操作得到的。这样,可以实现拓扑信息的灵活配置,进而根据该拓扑信息构建组网, 可以基于组网实现设备间的高效通信。
可能的实现方式中,生成拓扑信息,包括:输出至少一个提示信息;根据响应于提示信息的信息,生成拓扑信息;其中,响应于提示信息的信息用于为来自用户的、第一设备与至少一个第二设备建立连接关系或者为至少一个第二设备之间建立连接关系。这样,可以实现拓扑信息的灵活配置,进而根据该拓扑信息构建组网,可以基于组网实现设备间的高效通信。
可能的实现方式中,生成拓扑信息,包括:响应于界面上显示的设备标识的位置改变,生成拓扑信息;设备标识用于识别设备。这样,可以实现拓扑信息的灵活配置,进而根据该拓扑信息构建组网,可以基于组网实现设备间的高效通信。
可能的实现方式中,方法还包括:显示拓扑结构,拓扑结构包含连接关系。这样,可以更直观的看到设备而间的连接关系。
可能的实现方式中,拓扑结构还包含设备之间的相对距离和/或相对方位;其中,用于反映连接关系的连线的长度与相对距离正相关,和/或,用于反映连接关系的连线上标注有连接关系对应的设备之间的距离参数。这样,可以基于相对距离和/或相对方位,显示更准确的拓扑结构。
可能的实现方式中,获取至少一个第二设备的设备信息,包括:发送查询请求,查询请求包含第一设备的身份信息;接收来自至少一个第二设备的设备信息;其中,第一设备的身份信息用于标识第一设备。这样,第一设备可以基于查询请求获取第二设备的设备信息,进而可以根据各设备不同的设备信息,生成与其设备信息相适应的拓扑信息。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。这样,第一设备也可以基于随机接入请求或响应消息获取第二设备的设备信息,进而可以根据各设备不同的设备信息,生成与其设备信息相适应的拓扑信息。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
第二方面,本申请实施例提供一种连接配置方法,包括:发送第二设备的设备信息;接收来自第一设备的拓扑信息,拓扑信息包括第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。这里接收的拓扑信息可以为上文中的第二拓扑信息。具体的,所述第二拓扑信息可以包括第一拓扑信息的全部或者部分信息,或者指示或者表征所述第一拓扑信息的全部或者部分信息的信息。
这样,可以解决现有方式中基于一对一进行设备配置的繁琐过程,简化了多个设备之间的连接配置过程,方法简单高效。
可能的实现方式中,发送第二设备的设备信息,包括:接收来自第一设备的查询请求;查询指令包括第一设备的身份信息;根据查询请求,向第一设备发送第二设备的设备信息。这样,第一设备可以基于查询请求获取第二设备的设备信息,进而可以根据各设备不同的设备信息,生成与其设备信息相适应的拓扑信息。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。这样, 第一设备也可以基于随机接入请求或响应消息获取第二设备的设备信息,进而可以根据各设备不同的设备信息,生成与其设备信息相适应的拓扑信息。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
第三方面,本申请实施例提供一种连接配置装置。该连接配置装置可以是第一设备,也可以是第一设备内的芯片或芯片系统。该连接配置装置包括显示单元、处理单元和通信单元中的至少一个。当该连接配置装置是第一设备时,该通信单元可以是通信接口或接口电路。该通信单元用于执行与第二设备进行通信的步骤,以使该第一设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种连接配置方法。当该连接配置装置是第一设备时,该显示单元可以是显示屏。该显示单元用于执行显示的步骤,以使该第一设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种连接配置方法。当该连接配置装置是第一设备时,该处理单元可以是处理器。该连接配置装置还可以包括存储单元,该存储单元可以是存储器。该存储单元用于存储指令,该处理单元执行该存储单元所存储的指令,以使该第一设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种连接配置方法。当该连接配置装置是第一设备内的芯片或者芯片系统时,该处理单元可以是处理器。该处理单元执行存储单元所存储的指令,以使该第一设备实现第一方面或第一方面的任意一种可能的实现方式中描述的一种连接配置方法。该存储单元可以是该芯片内的存储单元(例如,寄存器、缓存等),也可以是该第一设备内的位于该芯片外部的存储单元(例如,只读存储器、随机存取存储器等)。
示例性的,处理单元,用于获取至少一个第二设备的设备信息;处理单元,还用于根据至少一个第二设备的设备信息,生成拓扑信息;拓扑信息用于指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。
可能的实现方式中,连接关系与至少一种业务相关。
可能的实现方式中,处理单元,具体用于:根据来自用户的输入信息生成拓扑信息;其中,输入信息包括绘制信息或配置信息;绘制信息是来自用户的、对第一设备与至少一个第二设备,或者至少一个第二设备之间的连线的绘制操作得到的;配置信息是基于来自用户的、对第一设备与至少一个第二设备之间的属性,或者至少一个第二设备之间的属性的配置操作得到的。
可能的实现方式中,通信单元,具体用于输出至少一个提示信息;处理单元,具体用于根据响应于提示信息的信息,生成拓扑信息;其中,响应于提示信息的信息用于为来自用户的、第一设备与至少一个第二设备建立连接关系或者为至少一个第二设备之间建立连接关系。
可能的实现方式中,处理单元,具体用于:响应于界面上显示的设备标识的位置改变,生成拓扑信息;设备标识用于识别设备。
可能的实现方式中,显示单元,具体用于:显示拓扑结构,拓扑结构包含连接关系。
可能的实现方式中,拓扑结构还包含设备之间的相对距离和/或相对方位;其中,用于 反映连接关系的连线的长度与相对距离正相关,和/或,用于反映连接关系的连线上标注有连接关系对应的设备之间的距离参数。
可能的实现方式中,通信单元,具体用于:发送查询请求,查询请求包含第一设备的身份信息;接收来自至少一个第二设备的设备信息;其中,第一设备的身份信息用于标识第一设备。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
第四方面,本申请实施例提供一种连接配置装置。该连接配置装置可以是第二设备,也可以是第二设备内的芯片或芯片系统。该连接配置装置包括处理单元和通信单元。当该连接配置装置是第二设备时,该通信单元可以是通信接口或接口电路。该通信单元用于执行与第二设备进行通信的步骤,以使该第二设备实现第二方面或第二方面的任意一种可能的实现方式中描述的一种连接配置方法。当该连接配置装置是第二设备时,该处理单元可以是处理器。该连接配置装置还可以包括存储单元,该存储单元可以是存储器。该存储单元用于存储指令,该处理单元执行该存储单元所存储的指令,以使该第二设备实现第二方面或第二方面的任意一种可能的实现方式中描述的一种连接配置方法。当该连接配置装置是第二设备内的芯片或者芯片系统时,该处理单元可以是处理器。该处理单元执行存储单元所存储的指令,以使该第二设备实现第二方面或第二方面的任意一种可能的实现方式中描述的一种连接配置方法。该存储单元可以是该芯片内的存储单元(例如,寄存器、缓存等),也可以是该第二设备内的位于该芯片外部的存储单元(例如,只读存储器、随机存取存储器等)。
示例性的,通信单元,用于发送第二设备的设备信息;通信单元,还用于接收来自第一设备的拓扑信息,拓扑信息包括第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。
可能的实现方式中,通信单元,具体用于:接收来自第一设备的查询请求;查询指令包括第一设备的身份信息;根据查询请求,向第一设备发送第二设备的设备信息。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
第五方面,本申请实施例提供一种计算机可读存储介质,计算机可读存储介质中存储有计算机程序或指令,当计算机程序或指令在计算机上运行时,使得计算机执行如第一方面的任意一种实现方式中描述的连接配置方法,或如第二方面的任意一种实现方式中描述的连接配置方法。
第六方面,本申请实施例提供一种包括指令的计算机程序产品,当指令在计算机 上运行时,使得计算机执行第一方面任意一种实现方式中描述的连接配置方法,或执行第二方面任意一种实现方式中描述的连接配置方法。
第七方面,本申请实施例提供一种终端,该终端包括第三方面及第三方面的各种可能的实现方式中描述的连接配置装置,或第四方面及第四方面的各种可能的实现方式中描述的连接配置装置。
可能的实现方式中,该终端可以包括手机、平板电脑、计算机、车辆(或者车辆中的车机)、智能穿戴设备、智能制造设备或智能家居设备等电子设备,电子设备可以通过连接配置装置实施本申请实施例所描述的连接配置方法。其中,上述实施例所描述的连接配置装置包括但不限于:上述终端中的芯片、模组或者集成电路等。
第八方面,本申请实施例提供一种连接配置装置,该装置包括处理器和存储介质,存储介质存储有指令,指令被处理器运行时,实现如第一方面的任意的实现方式描述的连接配置方法,或第二方面的任意的实现方式描述的连接配置方法。
第九方面,本申请提供一种芯片或者芯片系统,该芯片或者芯片系统包括至少一个处理器和通信接口,通信接口和至少一个处理器通过线路互联,至少一个处理器用于运行计算机程序或指令,以进行第一方面的任意的实现方式中任一项所描述的连接配置方法,或第二方面的任意的实现方式中任一项所描述的连接配置方法。其中,芯片中的通信接口可以为输入/输出接口、管脚或电路等。
在一种可能的实现中,本申请中上述描述的芯片或者芯片系统还包括至少一个存储器,该至少一个存储器中存储有指令。该存储器可以为芯片内部的存储单元,例如,寄存器、缓存等,也可以是该芯片的存储单元(例如,只读存储器、随机存取存储器等)。
应当理解的是,本申请的第三方面至第九方面与本申请的第一方面至第二方面的技术方案相对应,各方面及对应的可行实施方式所取得的有益效果相似,不再赘述。
附图说明
图1为本申请实施例提供的一种配置连接关系的界面示意图;
图2为本申请实施例提供的一种应用场景的示意图;
图3为本申请实施例提供的另一种应用场景的示意图;
图4为本申请实施例提供的又一种应用场景的示意图;
图5为本申请实施例提供的一种连接配置方法的流程示意图;
图6为本申请实施例提供的一种生成拓扑信息的界面示意图;
图7为本申请实施例提供的另一种生成拓扑信息的界面示意图;
图8为本申请实施例提供的又一种生成拓扑信息的界面示意图;
图9为本申请实施例提供的一种生成拓扑信息的再一种界面示意图;
图10为本申请实施例提供的一种获取设备信息的流程示意图;
图11为本申请实施例提供的另一种设备信息获取的流程示意图;
图12为本申请实施例提供的又一种获取设备信息的流程示意图;
图13为本申请实施例提供的再一种设备信息获取的流程示意图;
图14为本申请实施例提供的一种拓扑信息传递和扩散的流程示意图;
图15为本申请实施例提供的一种另拓扑信息传递和扩散的流程示意图;
图16为本申请实施例提供的又一种拓扑信息传递和扩散的流程示意图;
图17为本申请实施例提供的一种终端的结构示意图;
图18为本申请实施例提供的一种连接配置装置的结构示意图;
图19为本申请实施例提供的一种控制设备的硬件结构示意图;
图20为本申请实施例提供的一种芯片的结构示意图。
具体实施方式
为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。例如,第一值和第二值仅仅是为了区分不同的值,并不对其先后顺序进行限定。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。
需要说明的是,本申请中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其他实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念。
本申请中,“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示:单独存在A,同时存在A和B,单独存在B的情况,其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项(个)”或其类似表达,是指的这些项中的任意组合,包括单项(个)或复数项(个)的任意组合。例如,a,b,或c中的至少一项(个),可以表示:a,b,c,a-b,a-c,b-c,或a-b-c,其中a,b,c可以是单个,也可以是多个。
随着终端设备尤其是智能手机的发展,设备之间的相互发现和连接,极大的丰富了人们的生活。设备间的无线短距通信在各个领域得到了广泛的应用。其中,无线短距通信可以理解为不需要经过蜂窝网络和/或互联网,只需要通过设备之间的直接(direct)的无线连接,或者经过其他设备无线中继(relay),就能实现设备间的相互通信。通常情况下,可以利用匹配码、二维码等必要信息对智能手机与其他设备进行无线短距组网的连接关系配置。例如,当利用手机控制智能音箱时,可以用智能手机扫描智能音箱上附带的二维码,实现智能手机与智能音箱间的一对一的连接关系配置。
或者,当智能音箱处在可发现或者可连接模式时,通过在手机端端界面选择对应的智能音箱设备,实现与智能音响设备的连接。
示例性的,图1为本申请实施例提供的一种连接配置连接关系的界面示意图。当用户打开智能音箱,并在手机端选择相应的智能音响设备之后,用户需要在手机界面输入该音响设备对应的序列号,完成智能手机与智能音响的连接。示例性的,用户可以先打开智能音箱的设备发现功能,并用智能手机进行设备扫描,智能手机可以显示如图1中的a所示的界面,该界面中包含设备扫描、设备列表以及该设备列表对应的多个设备,例如:智能音箱101、智能音箱102和智能音箱103等。当用户触发该智能音箱103 对应的控件,选择智能手机与智能音箱103连接时,该智能手机可以显示提示信息104,该提示信息用于提醒用户输入智能音箱103的序列号。用户输入该智能音箱103的序列号,就可以完成智能手机与智能音箱的设备连接。
当该连接关系配置成功后,智能手机与智能音箱可以进行信息交互,进而可以实现通过智能手机控制智能音响的开启或关闭。如图1中的b所示的界面,该界面中可以包括开启控件105以及关闭控件106。该开启控件105和关闭控件106,可以实现通过智能手机控制智能音箱的开启或关闭。
或者,智能手机也可以实现控制智能音响播放智能手机中存储的歌曲等功能。例如,当用户在图1中的b所示的界面中,触发开启控件105时,可以显示如图1中的c所示的界面。该界面中可以包括常听音乐、本地音乐以及在线音乐等。其中,该常听音乐可以包括音乐107、音乐108、音乐109以及音乐110等。当用户触发该音乐107对应的播放控件111时,该智能音箱可以播放音乐107。
然而,上述设备的连接过程复杂,尤其是对于老人或者小孩来说,实用性较差。以家居场景为例,多设备连接和管理存在以下问题:
首先,在家居环境下,并不总是智能手机与其他设备的单点连接,也可能存在其他智能设备之间的相互连接。例如,当用户视频播放需求时,电视可以与家庭中的多个音箱的连接。通常在这种情况,要在电视端输入音箱设备的验证码或者二维码相当困难。并且,通常的,当存在多个音箱设备时,需要逐个完成连接关系配置。
其次,设备之间的连接关系并非一成不变的,设备间的连接关系可能随着用户的业务需求发生变化。例如,上午,用户通过多个音箱播放电视对应的音频数据;下午,用户需要通过多个音箱播放智能手机中的音乐时,此时,需要建立手机与多个音箱连接关系。通常的,当设备之间的连接关系发生变更时,可能需要重新进行连接关系配置。
再次,相当多的智能设备可能并不存输入界面,因此,无法采用传统的匹配码、密码等信息来配置设备之间的连接关系。此时可能需要通过第三方设备来进行辅助。例如当智能音箱需要连接无线保真(wireless fidelity,WIFI)接入点时,通常需要手机与智能音箱先建立连接,然后输入对应的WIFI用户名、密码等信息,即传递对应的WIFI用户名、密码等信息到智能音箱,之后智能音箱才能利用该信息建立与WIFI的连接。
除了上述在多个设备进行无线短距通信的场景中,出现设备配置连接过程繁琐,操作复杂,进而难以对设备间进行合理的配置和管理的问题。类似的,在基于多个节点进行网络通信的场景中,也会出现由于缺乏对各节点合理的管理,产生影响网络通信的问题。示例性的,在基于无线网格网络(mesh)的网络连接下,各mesh网络下的节点以无线多跳的方式连接。当该网络中的任一节点进行通信时,节点将以抢占资源的方式选择可用的通信资源,因此mesh网络中缺乏对于各节点的资源调配的统一管理。这就导致了,当两个节点同时通信,且该两个节点同时抢占相同资源时,则就会产生资源冲突,进而导致通信失败。
有鉴于此,本申请实施例提供的一种连接配置方法和装置,可以获取至少一个第二设备的设备信息,并基于各第二设备的设备信息的不同,生成与其第二设备的设备 信息相适应的拓扑信息,可以实现基于不同设备信息生成的拓扑信息,构建该多个设备间的连接配置关系。可以解决现有方式中基于一对一进行设备连接配置的繁琐过程,简化了多个设备之间的连接配置过程,进而可以基于该配置关系构成的组网实现设备间的高效通信。
为了更好的理解本申请实施例的方法,下面首先对本申请实施例适用的应用场景进行描述。
可能的实现方式中,本申请实施例提供的连接配置方法可以应用于智能家居场景下。例如,家居环境中的智能手机、智能手表、平板电脑、智能冰箱、智能电视、智能吸尘器或智能音箱等设备可以构建通信组网,进而可以利用智能手机或电视机等设备实现对组网内的其他设备的管理、控制和数据传输。其中,智能手机或电视机等设备可以实现对组网内的其他设备的音频控制、视频控制或实现其他功能的控制。
示例性的,图2-图4为本申请实施例提供的不同场景下,设备连接的场景示意图。其中,图2为基于设备连接实现音频控制的场景,图3为基于设备连接实现视频控制的场景,图5为基于设备连接实现手机全连接的场景。
示例性的,图2为本申请实施例提供的一种应用场景的示意图。如图2所示,在实现音频控制的场景中,电视机或机顶盒201可以与智能音箱202、智能音箱203、智能音箱204和智能音箱205进行设备间的组网构建,组网构建成功后,电视机或机顶盒201可以实现对于组网内的多个智能音箱的音频功能的控制和管理。例如,电视机或机顶盒201可以利用智能音箱202和智能音箱203播放声音,并控制智能音箱204和智能音箱205关闭声音。
示例性的,图3为本申请实施例提供的另一种应用场景的示意图。如图3所示,在实现视频控制的场景中,投影仪301可以与机顶盒302、智能手机303、平板电脑(portable android device,PAD)304、个人计算机(personal computer,PC)305、游戏机终端306、增强现实(augmented reality,AR)或虚拟现实(virtual reality,VR)头盔307或其他设备进行设备间的组网构建,组网构建成功后,投影仪301可以实现对于组网内的多个设备的视频功能的控制和管理。例如,投影仪301可以控制AR/VR头盔307播放视频,进而用户可以基于AR或VR头盔307观看,由投影仪301传送的视频内容。
示例性的,图4为本申请实施例提供的又一种应用场景的示意图。如图4所示,在实现手机的全连接的场景中,智能手机401可以与PAD402、PC403、手表404和相机405等其他终端设备进行设备间的组网构建,组网构建成功后,智能手机401可以实现对于组网内的多个设备的控制和管理。例如,智能手机401可以将文件传动到PC403中,进而用户可以通过PC403对,由智能手机401传送来的文件进行编辑。
可以理解的是,本申请实施例中描述的终端设备,包括但不限于移动台(mobile station,MS)、移动终端(mobile terminal)、移动电话(mobile telephone)、手机(handset)及便携设备(portable equipment)等,该终端设备可以经无线接入网(radio access network,RAN)与一个或多个核心网进行通信,例如,终端设备可以是移动电话(或称为“蜂窝”电话)、具有无线通信功能的计算机等,终端设备还可以是带无线收发功能的电脑、虚拟现实终端设备、增强现实终端设备、工业控制(industrial control)中的无线终端、无人驾驶(self driving)中的无线终端、远程医疗(remote medical)中 的无线终端、智能电网(smart grid)或智能制造中的无线终端、运输安全(transportation safety)中的无线终端、无人机、智慧城市(smart city)中的无线终端、智慧家庭(smart home)中的智能家居或其他无线终端等等。在不同的网络中终端可以叫做不同的名称,例如:用户设备,移动台,用户单元,站台,蜂窝电话,个人数字助理,无线调制解调器,无线通信设备,手持设备,膝上型电脑,无绳电话,无线本地环路台等。
可能的实现方式中,本申请实施例提供的连接配置方法也可以应用于智能汽车领域中。例如,用户的智能手机可以与汽车的门锁或汽车内的空调等设备构建配置连接关系,进而可以利用智能手机实现对于汽车门锁或汽车空调等的开启功能。
可能的实现方式中,本申请实施例提供的连接配置方法也可以应用于在医疗健康领域。例如,用户的智能手机、智能手表或平板电脑等终端设备,可以与获取人体数据的传感器构建配置连接关系,进而可以利用终端设备随时监控人体的各项指标,如心率或血压等数据,进而保障人体安全。
可以理解的是,在上述无线短距通信组网的场景中,由于短距离构建的通信组网拥有耗能低以及成本低等优势,因此本申请实施例提供的连接配置方法可以灵活的应用于涉及无线短距通信的各领域或场景中,本申请实施例中对此不做限定。
下面以具体地实施例对本申请的技术方案以及本申请的技术方案如何解决上述技术问题进行详细说明。下面这几个具体的实施例可以独立实现,也可以相互结合,对于相同或相似的概念或过程可能在某些实施例中不再赘述。
示例性的,图5为本申请实施例提供的一种连接配置方法的流程示意图,如图5所示,该方法包括:
S501、第一设备获取至少一个第二设备的设备信息。
本申请实施例中,第一设备可以为处理能力较强,且可以获取第二设备的设备信息的设备,例如,该第一设备可以为存在人机交互界面的终端设备,如智能手机、平板电脑或计算机等。
本申请实施例中,第二设备为可以被第一设备感知的设备。第一设备获取至少一个第二设备的设备信息可以为,第一设备可以获取一个第二设备的设备信息或多个第二设备的设备信息。其中,第二设备的设备信息可以为用于在局部范围内或者在全球范围内唯一标识第二设备的设备身份的信息。
示例性的,该设备信息可以包括下述的一项或多项:设备标识、身份信息或设备硬件地址、设备临时地址等设备信息。
其中,设备标识可以用于识别设备,例如该设备标识可以包括由字符、字符串或数字等组成的标识,如设备(device)1、device2或device3等。
身份信息可以用于标识设备的身份的信息,例如该设备身份信息可以包括设备名称等,如A品牌音箱、B品牌计算机或C品牌手机等。
设备硬件地址可以用于标识设备在网络中的地址,例如该硬件地址可以包括局域网地址(media access control address,MAC),如08:00:20:0A:8C:6D等可以为设备的硬件地址。
设备临时地址可以用于标识设备在局部范围内的地址。其中通常的,设备可以从很大的一个范围内,例如0到2 48-1,随机生成一个随机数作为临时地址。由于例如该范 围足够大,在局部范围内,两个或者多个设备产生相同随机数的概率几乎为0。此时,设备临时地址也可以作为设备的身份信息。
可以理解的是,该第一设备的设备信息或第二设备的设备信息可以根据实际场景包括其他内容,本申请实施例中对此不做限定。可能的实现方式中,该第二设备的设备信息可以承载于随机接入请求或响应消息中。示例性的,第一设备可以向第二设备发送查询指令,其中,查询指令中包含第一设备的设备信息;第二设备接收到该查询指令,并向第一设备发送随机接入请求或响应消息。该随机接入请求或响应消息中包含第二设备的设备信息。则第一设备可以获取至少一个第二设备的设备信息。
S502、第一设备根据至少一个第二设备的设备信息,生成第一拓扑信息。
本申请实施例中,第一拓扑信息用于指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系;连接关系用于指示设备的优先级和/或设备之间的主从关系。示例性的,该第一拓扑信息可以在第一设备中的显示。其中,用于指示在第一设备中显示的信息可以为第一拓扑信息。例如,该第一拓扑信息可以包括:表示设备之间的连接关系的信息、表示设备之间的相对距离的信息、或者表示设备之间的相对方位的信息等。
其中,可选的,该设备的优先级可以用于指示拓扑信息的生成次序或拓扑信息的传递次序等,例如当第一设备的优先级高于第二设备时,第一设备可以优先基于第二设备的设备信息生成拓扑信息。当设备中包括第三设备,且第一设备的优先级高于第三设备的优先级,第三设备的优先级高于第二设备的优先级时,第一设备可以优先基于第三设备的设备信息生成拓扑信息。可选的,该优先级还可以用于传递拓扑信息的场景中,例如可以将该拓扑信息优先传递到优先级高的设备中。
可选的,该设备的优先级可以用于表示设备间管理与被管理的关系。优先级较高的设备可以管理优先级较低的设备。
该设备的主从关系可以用于表示设备间属性,例如设备的主节点可以为具有资源分配能力或资源调度能力的节点,该主节点管理从节点,例如,主节点可以为从节点调度时频资源;设备的从节点可以为听从主节点调度的节点,例如,该从节点可以使用主节点调度的时频资源进行通信。
本申请实施例中,该连接关系与至少一种业务相关。其中,该业务可以表示建立连接关系的用途。例如,当该业务为播放音乐时,第一设备可以基于播放音乐的用途,与第二设备中的可以播放音乐的设备,例如音箱,建立连接关系。
S503、第一设备向第二设备发送第二拓扑信息。
适应的,第二设备接收该第二拓扑信息。进而第二设备可以基于第二拓扑信息,实现设备间的连接。其中,该第二拓扑信息可以为表示设备之间的连接关系的信息。具体的,所述第二拓扑信息包括或者指示所述第一设备与至少一个所述第二设备之间的连接关系,或者至少一个所述第二设备之间的连接关系,所述连接关系用于指示设备的优先级和/或设备之间的主从关系。例如,第一设备将包含或者指示第一设备与第二设备之间的连接关系的第二拓扑信息发送至第二设备,进而第二设备可以确定与第一设备建立连接。
可以理解的是,S503所示的步骤中的第二拓扑信息,可以包括S502所示的步骤中 的第一拓扑信息中的全部或部分信息,或者,可以包括除所述一拓扑信息中的全部或者部分信息中的其它信息,又或者,可以包括指示或者表征所述第一拓扑信息的全部或者部分信息的信息,又或者包括对应于所述第一拓扑信息中的全部或者部分信息的信息。这里不做具体限定,可以根据需求实现。
综上,本申请实施例提供的一种连接配置方法,可以获取至少一个第二设备的设备信息,并基于各第二设备的设备信息的不同,生成与其第二设备的设备信息相适应的拓扑信息,可以实现基于不同设备信息生成的拓扑信息,构建该多个设备间的连接配置关系。可以解决现有方式中基于一对一进行设备配置的繁琐过程,简化了多个设备之间的连接配置过程,方法简单高效。
在图5对应的实施例的基础上,可能的实现方式中,S502所示的步骤中,生成第一拓扑信息的可以包括三种方式。其中,方式一:根据来自用户的输入信息,生成拓扑信息(如图6和图7对应的实施例);方式二:根据来自用户对于设备发出的指示信息的输入,生成拓扑信息(如图8对应的实施例);方式三:根据设备的界面上显示的设备标识的位置改变,生成拓扑信息(如图9对应的实施例)。下面具体说明该三种方式。需要说明的是,以下的附图中所涉及的桌面显示的内容仅仅是一种示例,不对实际的应用场景进行限定。
方式一:根据来自用户的输入信息生成拓扑信息,进而显示拓扑结构。本申请实施例中,该输入信息可以包括绘制信息或配置信息;该拓扑结构包含连接关系。
在方式一中,输入信息可以包括绘制信息。其中,绘制信息是来自用户的、对第一设备与至少一个第二设备,或者至少一个第二设备之间的连线的绘制操作得到。该绘制操作可以包括:滑动操作、点击操作或其他操作等。例如,当绘制操作包括滑动操作时,用户可以从设备1所在的位置滑动至设备2所在的位置,进而生成由设备1指向设备2的箭头。当该绘制操作包括点击操作时,用户可以点击设备1再点击设备2,进而生成由设备1指向设备2的箭头;或者,用户可以点击设备2再点击设备1,进而生成由设备2指向设备1的箭头。
其中,箭头可以表示,设备间的从属关系,例如可以用单向箭头指向从节点设备,单向箭头的另一端为主节点设备;或者用单向箭头指向主节点设备,单向箭头的另一端为从节点设备等。
可选的,除了上述用箭头表示设备为主节点或从节点外,也可以通过不同的颜色或灰度代表不同的设备的类型,例如,可以用深灰代表主节点设备,用浅灰代表从节点设备等。
示例性的,图6为本申请实施例提供的一种生成拓扑信息的界面示意图。如图6所示,以第一设备为PAD600为例。当PAD600接收到用户打开该PAD600中的设置功能或应用程序等后,PAD600可以显示如图6中的a所示的界面,该界面中可以包括拓扑结构601,该拓扑结构601中可以显示PAD600获取的多个设备的设备信息,如该设备的设备信息可以为设备标识等。该设备标识可以包括:设备1(或可以理解为该PAD600)、设备2、设备3、设备4、设备5、设备6、设备7或设备8等多个设备。该拓扑结构601中可以用于绘制设备间的连线,进而生成拓扑信息。
如图6中的a所示的界面中,用户可以在拓扑结构601中,基于多个设备的设备信息 绘制连线,PAD600接收到用户的绘制操作生成的绘制信息,并可以根据该绘制信息生成拓扑信息,进而构建设备间的连接配置。例如,用户可以绘制设备1与设备6的连线,并用箭头指向设备6。其中,该箭头指向从节点设备。类似的,用户可以绘制设备1与设备2的连线,并用箭头指向设备2;用户可以绘制设备1与设备3的连线,并用箭头指向设备3;用户可以绘制设备1与设备4的连线,并用箭头指向设备4;用户可以绘制设备1与设备5的连线,并用箭头指向设备5;用户可以绘制设备4与设备7的连线,并用箭头指向设备7;以及用户可以绘制设备4与设备8的连线,并用箭头指向设备8,并点击完成控件403,生成拓扑信息。
进而PAD600可以显示如图6中的b所示的界面,该界面中可以显示基于拓扑信息,构建的拓扑结构。其中,该拓扑结构包含连接关系。例如,如图6中的b所示的界面中,该拓扑结构中可以包括由设备1、设备2、设备3、设备4、设备5、设备6、设备7和设备8间的连线关系,构建的拓扑结构。后续,用户可以基于该拓扑结构,实现设备间的组网通信。可选的,当用户想要重新构建拓扑结构时,可以在图6中的b所示的界面中,点击取消控件603,进而重新执行上述过程。
可选的,拓扑结构也可以包含设备之间的相对距离和/或相对方位。其中,用于反映连接关系的连线的长度与相对距离正相关,和/或,用于反映连接关系的连线上标注有连接关系对应的设备之间的距离参数。例如,当设备间的距离越长,拓扑机构中显示的设备间的连线长度越长。示例性的,如图6中的b所示的界面,该拓扑结构中可以显示设备1与设备6间的相对距离可以为20m;设备1与设备5间的相对距离可以为10m;以及显示设备8可以为设备4的东南方向。可以理解的是,该相对距离和/或相对方位,可以用于显示更准确的拓扑结构。
在方式一中,输入信息也可以包括配置信息。其中,配置信息是基于来自用户的、对第一设备与至少一个第二设备之间的属性,或者至少一个第二设备之间的属性的配置操作得到的。该设备间的属性可以为,设备为主节点或者从节点。该配置操作可以用于分别配置每个设备的属性,或者可以一次配置多个设备的属性。该配置操作可以为点击操作和输入操作等其他操作。
示例性的,图7为本申请实施例提供的另一种生成拓扑信息的界面示意图。如图7所示,以第一设备为计算机700为例。计算机700接收到用户打开该计算机700中的设置功能或应用程序等后,计算机700可以显示如图7所示的界面。如图7所示的界面,该界面中可以包括设备列表701和设备属性配置702,该设备列表701中可以显示计算机700获取的多个设备的设备信息,如该设备的设备信息可以为设备标识。该设备信息可以包括:设备1(或可以理解为该计算机700)、设备2、设备3、设备4和设备5等多个设备。
如图7所示,用户可以在设备属性配置702中,基于设备信息配置设备在拓扑结构中的属性,计算机700接收到用户对于设备的属性的配置操作,并可以根据该配置操作得到拓扑信息。例如,用户可以在设备列表701中点击设备1,选择为设备1配置设备的属性,设备属性配置702可以显示该设备1对应的设备的多种信息。进而用户可以选择实线框704中的作为设备2主节点设备的选项、作为设备3主节点设备的选项、作为设备4主节点设备的选项以及作为设备5主节点设备的选项,并点击保存设置控件703,进而 完成设备1、设备2、设备3、设备4和设备5的拓扑信息的生成,进而构建拓扑结构。
方式二:根据来自用户对于设备发出的指示信息的输入,生成拓扑信息。具体的,第一设备输出至少一个提示信息;第一设备根据响应于提示信息的信息,生成拓扑信息,进而显示拓扑结构。
本申请实施例中,响应于提示信息的信息用于为来自用户的、第一设备与至少一个第二设备建立连接关系或者为至少一个第二设备之间建立连接关系。
示例性的,图8为本申请实施例提供的又一种生成拓扑信息的界面示意图。示例性的,第一设备也可以保存有与至少一个第二设备进行过配置连接的历史记录。例如,设备1之前已经与设备2、设备3和设备4建立过连接关系,并保存相应的历史记录。当设备1接收到设备2、设备3和设备4的设备信息时,设备1可以在该界面上显示提示信息,如图8所示的界面。该界面中显示提示信息801,该提示信息801中包括:请问是否按照历史记录建立与设备2、设备3和设备4的连接关系。当用户触发确定控件802时,设备1可以根据响应于提示信息的确定信息与设备2、设备3和设备4建立连接,生成拓扑信息。
示例性的,第一设备发现周围存在若干同品牌的音箱设备(例如B品牌)时候,第一设备的界面呈现,是否用第一设备连接该若干个B品牌的音箱设备,当用户选择同意时,生成拓扑信息。
可选的,只有第一设备在固定的时间窗口内发现周围存在若干同品牌的音箱设备时,才在界面呈现提示信息。
示例性的,第一设备发现周围存在若干A品牌的音箱设备和若干B品牌的音箱设备时候,第一设备的界面呈现,是否用第一设备连接该若干个B品牌的音箱设备,当用户选择同意时,生成拓扑信息。
可选的,也可以基于AI等算法或者用户的连接习惯等大数据分析,在用户界面可以提示可能的拓扑结构,例如,拓扑结构A,拓扑结构B,拓扑结构C,供用户选择,当用户选择其中一个时,生成拓扑信息。
可能的实现方式中,当第一设备连接互联网时,第一设备也可以基于大数据,获取海量设备间的拓扑信息,并选择适合第一设备的拓扑信息。后续可以向用户发送提示信息,指示是否使用基于大数据获取的拓扑信息。
方式三:根据设备的界面上显示的设备标识的位置改变,生成拓扑信息。具体的,第一设备响应于界面上显示的设备标识的位置改变,生成拓扑信息,进而显示拓扑结构。
本申请实施例中,用户可以通过拖拽操作等其他操作构建设备间的连接关系。
示例性的,图9为本申请实施例提供的一种生成拓扑信息的再一种界面示意图。如图9所示,以第一设备为智能手机900为例,智能手机900接收到用户打开该智能手机900中的设置功能或应用程序等后,智能手机900可以显示如图9中的a所示的界面,该界面中可以包括设备列表901和拓扑结构902。其中,该设备列表901中可以显示智能手机90900获取的多个设备的设备信息,如该设备的设备信息可以为设备标识。该设备信息可以包括:设备1(或可以理解为该智能手机900)、设备2、设备3、设备4或设备5等多个设备。该拓扑结构902中可以显示包括拓扑结构对应的多个用于设置节点的位置,该拓扑结构对应的位置可以包括:位置1、位置2、位置3、位置4、位置5、位置6、位 置7或位置8、位置9、位置10或位置11等位置。
示例性的,如图9中的a所示的界面中,用户可以将设备列表901中的任一设备拖拽到拓扑结构902中的任一位置,智能手机900接收到该拖拽产生的设备标识的位置改变,并可以根据该位置的改变和拓扑结构902中呈现的拓扑结构,生成拓扑信息。例如,用户可以将设备1拖拽到位置1中,将设备2拖拽到位置2中,将设备3拖拽到位置3中,将设备4拖拽到位置4中以及将设备5拖拽到位置5中,并点击完成控件904,进而智能手机900可以基于设备1、设备2、设备3、设备4和设备5的改变生成拓扑信息,进而建立拓扑结构显示如图9中的b所示的界面。另外,图9中的b所示的界面中,还可以包括未构成拓扑结构的设备列表905中的多个设备,例如设备6、设备7、设备8和设备9等其它设备。
可选的,当用户想要重新构建拓扑结构时,可以在图9中的b所示的界面中,点击取消控件903,进而重新执行上述拖拽操作构建拓扑结构,或者直接重新执行上述拖拽操作构建拓扑结构。
基于此,可以实现拓扑信息的灵活配置,进而根据该拓扑信息构建组网,可以基于组网实现设备间的高效通信。
在图5对应的实施例的基础上,可能的实现方式中,S501可以包括:第一设备发送查询请求,第二设备根据查询请求,向第一设备发送第二设备的设备信息。
本申请实施例中,查询请求包含第一设备的身份信息;第一设备的身份信息用于标识第一设备。
该查询请求中还可以包括:安全密钥参数或用于表征第一设备为主节点的信息等其他信息。其中,该安全密钥参数可以包括:个域网安全密钥参数等,该安全密钥参数用于保证设备间的通信的可靠性。
例如,对于分别连接过手机A的智能家居B和智能家居C,当智能家居B和智能家居C需要连接时,由于之前他们都连接过手机A,这此时智能家居B和智能家居C可能都存在手机A配置的个域网安全秘钥参数。
本申请实施例中,第二设备的设备信息可以承载于随机接入请求或响应消息中。其中,方式A:第二设备的设备信息承载于随机接入请求中(如图10和图11对应的实施例);方式B:第二设备的设备信息承载于响应消息中(如图12对应的实施例)。
方式A:第二设备的设备信息承载于随机接入请求中。示例性的,以第一设备为主界面设备以及第二设备为其他设备为例,描述第一设备基于随机接入请求获取第二设备的设备信息的过程。图10为本申请实施例提供的一种获取设备信息的流程示意图。如图10所示,该设备信息的获取的过程可以包括:
S1001、主界面设备向其他设备发送附近节点查询指令。
示例性的,该查询指令中可以包括:个域网安全密钥、主界面设备的优先级信息和/或主界面设备的身份信息等。其中,该主界面设备的优先级信息中可以包括该主界面设备的优先级较高的信息。
适应的,其他设备接收来自主界面设备的查询指令。S1002、其他设备向高优先级设备发起随机接入流程。
示例性的,其他设备可以基于查询消息中的不同的内容,向高优先级设备(例如 主界面设备)发起随机接入流程。
一种实现中,当主界面设备发送的查询指令中包括主界面设备为主节点的信息时,其他设备根据查询指令,向主界面设备发送随机接入请求的过程可以为:其他设备接收到查询指令,当其他设备根据主界面设备为主节点的信息,确定主界面设备的优先级大于其他设备时,或者确定主界面设备的优先级大于某一阈值时,其他设备向主界面设备发起随机接入请求。
另一种实现中,当主界面设备发送的查询指令中包括安全密钥参数时,其他设备根据查询指令,向主界面设备发送随机接入请求的过程可以为:其他设备接收到查询指令,其他设备基于安全密钥参数进行计算,当该安全密钥参数的计算结果与其他设备中存储的一致时,其他设备向主界面设备发起随机接入请求。
其中,该随机接入请求中也可以包括第三设备的设备信息。该第三设备可以为以其他设备为主节点的设备。例如,主界面设备可以获取其他设备的设备信息,由于其他设备可以作为第三设备的主节点,并已经获取第三设备的设备信息。因此,当其他设备根据查询指令,向主界面设备发送随机接入请求时,该随机接入请求中可以包括其他设备和/第三设备的设备信息。
示例性的,以第一设备为主界面设备,第二设备中的作为第三设备的主节点的设备为主节点设备为例,描述基于随机接入请求获取第二设备的设备信息的过程。图11为本申请实施例提供的另一种设备信息获取的流程示意图。如图11所示,该设备信息获取的过程可以包括:
S1101、主界面设备向主节点设备发送附近节点查询指令。
S1102、主节点设备向高优先级设备发起随机接入流程,上报其获取的节点身份信息和信号强度。
其中,该随机接入请求中包含第三设备的身份信息和信号强度。该第三设备为以第二设备作为主节点的设备。
S1102中主节点设备向高优先级设备发起随机接入流程的过程,与S1002所示的步骤中其他设备向高优先级设备发起随机接入流程的过程类似,在此不再赘述。
在图10和图11对应的实施例中,可选的,主界面设备可以基于随机接入请求中获取的,其他设备和/或第三设备的信号强度,得到主界面设备与其他设备和/或第三设备间的距离,或者,其他设备和/或第三设备的位置信息,得到其他设备和/或第三设备的具体方位。
方式B:第二设备的设备信息承载于响应消息中。示例性的,以第一设备为主界面设备以及第二设备为其他设备为例,描述第一设备基于响应消息获取第二设备的设备信息的过程。图12为本申请实施例提供的又一种获取设备信息的流程示意图。如图12所示,该设备信息的获取的过程可以包括:
S1201、主界面设备向其他设备发送附近节点查询指令。
S1202、其他设备在一段时间T1内周期性发送身份信息,连续发送N次响应消息。该响应消息中包含其他设备的身份信息。
示例性的,其他设备可以基于查询消息中的不同内容,向高优先级设备(例如主界面设备)发送响应消息。
一种实现中,当主界面设备发送的查询指令中包括主界面设备为主节点的信息时,其他设备根据查询指令,向主界面设备发送响应消息的过程可以为:其他设备接收到查询指令,当其他设备根据主界面设备为主节点的信息,确定主界面设备的优先级大于其他设备时,或者确定主界面设备的优先级大于某一阈值时,其他设备向主界面设备发送响应消息。
另一种实现中,当主界面设备发送的查询指令中包括安全密钥参数时,其他设备根据查询指令,向主界面设备发送响应消息的过程可以为:其他设备接收到查询指令,其他设备基于安全密钥参数进行计算,当该安全密钥参数的计算结果与其他设备中存储的一致时,其他设备向主界面设备发送响应消息。
其中,该响应消息中也可以包括第三设备的设备信息。获取该第三设备的设备信息的过程在此不再赘述。
可选的,主界面设备可以基于响应消息中获取的,其他设备和/或第三设备的信号强度,得到主界面设备与其他设备和/或第三设备间的距离,或者,其他设备和/或第三设备的位置信息,得到其他设备和/或第三设备的具体方位。
除了上述为通过方式一以或方式二,第一设备获取第二设备的设备信息的方法外,可能的实现方式中,第一设备也可以基于第二设备发送的广播消息获取第二设备的设备信息。
示例性的,以第一设备为主界面设备以及第二设备为其他设备为例,描述第一设备获取第二设备的设备信息的过程。图13为本申请实施例提供的再一种设备信息获取的流程示意图。如图13所示,该设备信息获取的过程可以包括:
S1301、其他设备向主界面设备周期性发送发现消息。
其中,该发现消息可以为广播消息,该发现消息中可以携带其他设备的身份信息。适应的,主界面设备可以获取来自其他设备发送的其他设备的设备信息。该设备信息例如身份信息。
其中,该广播消息中也可以包括第三设备的设备信息。获取该第三设备的设备信息的过程在此不再赘述。
可选的,主界面设备可以基于广播消息中获取的,其他设备和/或第三设备的信号强度,得到主界面设备与其他设备和/或第三设备间的距离,或者,其他设备和/或第三设备的位置信息,得到其他设备和/或第三设备的具体方位。
基于此,第一设备可以基于随机接入请求、响应消息或广播信息等方式获取第二设备的设备信息,进而可以根据各设备不同的设备信息,生成与其设备信息相适应的拓扑信息。
在图5对应的实施例的基础上,可能的实现方式中,还包括:拓扑信息的传递和扩散。具体的,至少一个第二设备根据接收到的所述第二拓扑信息,建立至少一个第二设备与第一设备间的连接关系;或者,至少一个第二设备之间的连接关系。
其中,拓扑信息的传递和扩散的方式可以包括两种。方式a:基于广播消息和随机接入请求实现拓扑信息的传递和扩散(如图14和图15对应的实施例);方式b:基于广播消息实现拓扑信息的传递和扩散(如图16对应的实施例)。
方式a:基于广播消息和随机接入请求实现拓扑信息的传递和扩散。示例性的,以 第一设备为主界面设备,第二设备为其他设备,以及第二拓扑信息为拓扑配置信息为例,描述拓扑信息的传递和扩散的过程。图14为本申请实施例提供的一种拓扑信息传递和扩散的流程示意图。如图14所示,该拓扑信息传递的过程可以包括:
S1401、主界面设备向其他设备发送系统广播消息。
其中,该广播消息中包含主界面设备的优先级信息和/或拓扑配置信息。其中,该主界面设备的优先级信息中可以包括该主界面设备的优先级较高的信息。
S1402、其他设备向高优先级设备发起随机接入流程。
示例性的,当主界面设备发送的广播消息中包括主界面设备为主节点的信息时,其他设备根据广播消息,向主界面设备发送随机接入请求的过程可以为:其他设备接收到广播消息,当其他设备确定主界面设备为主节点的信息时,其他设备向主界面设备发起随机接入请求。
可选的,当主界面设备发送的广播消息中包括拓扑配置信息时,其他设备可以获取来自主界面设备的拓扑配置信息。
可选的,主界面设备可以基于随机接入请求中获取的信号强度判定距离。
S1403、主界面设备向接入节点发送拓扑配置信息。
其中,该接入节点可以包括其他设备。其他设备可以根据拓扑配置信息确定自身属性,以及与各设备间的连接关系。
可选的,第一设备也可以向第二设备和/或第三设备传递拓扑信息,在此不再赘述。
示例性的,当第一设备为主节点1,主节点2为第一设备的主节点,以及拓扑信息为拓扑配置信息为例,描述拓扑信息的传递和扩散的过程。图15为本申请实施例提供的一种另拓扑信息传递和扩散的流程示意图。如图15所示,该拓扑信息传递的过程可以包括:
S1501、主节点1向主节点2发送系统广播消息。
其中,主节点2在未获得配置信息之前,可以变为从节点,并接收系统广播消息。
S1502、主节点2向主节点发起随机接入流程。
其中,该主节点包括主节点1。
S1503、主节点1向接入节点发送拓扑配置信息。
其中,该接入节点包括主节点2。适应的,主节点2可以根据拓扑配置信息,确定自身属性,以及与各设备间的连接关系。
方式b:基于广播消息实现拓扑信息的传递和扩散。示例性的,以第一设备或第二设备中的主节点,以及拓扑信息为拓扑配置信息为例,描述拓扑信息的传递和扩散的过程。图16为本申请实施例提供的又一种拓扑信息传递和扩散的流程示意图。如图16所示,该拓扑信息传递的过程可以包括:
S1601、主节点1向其他设备发送系统广播消息。
其中,该系统广播消息中可以包含配置信息等。适应的,其他设备可以通过系统广播消息获取配置信息,进而构建设备间的连接。
基于此,可以实现基于不同设备信息生成的拓扑信息,构建该多个设备间的连接配置关系。可以解决现有方式中基于一对一进行设备配置的繁琐过程,简化了多个设备之间的连接配置过程,方法简单高效。
可以理解的是,本申请实施例所提供的界面示意图仅作为一种示例,并不能作为本申请实施例的限定。
上面结合图5-图16,对本申请实施例提供的方法进行了说明,下面对本申请实施例提供的执行上述方法的装置进行描述。
示例性的,图17为本申请实施例提供的一种终端的结构示意图,如图17所示,终端170包括连接配置装置180。可以理解,终端所包括的其他部件或其他装置可以根据实际应用场景设定,本申请实施例不作限定。
本申请实施例中,上述终端可以通过连接配置装置180执行上述实施例所描述的方法。可以理解,终端对连接配置装置180进行控制的实现方式,可以根据实际应用场景设定,本申请实施例不作具体限定。
在图17所示的终端的基础上,为了更好地描述连接配置装置180,示例性的,图18为本申请实施例提供的一种连接配置装置的结构示意图,如图8所示,连接配置装置180可以用于通信设备、电路、硬件组件或者芯片中,该连接配置装置包括:显示单元1801、处理单元1802和通信单元1803中的至少一个。其中,显示单元1801用于支持连接配置装置执行的显示的步骤;处理单元1802用于支持连接配置装置执行信息处理的步骤;通信单元1803用于支持连接配置装置执行数据发送或接收的步骤。其中,该连接配置装置180可以是本申请实施例中的第一设备或第二设备。
具体的,当该连接配置装置180为第一设备时,本申请实施例提供一种连接配置装置180,包括:处理单元1802,用于获取至少一个第二设备的设备信息;处理单元1802,还用于根据至少一个第二设备的设备信息,生成第一拓扑信息;所述第一拓扑信息用于指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。
可能的实现方式中,连接关系与至少一种业务相关。
可能的实现方式中,处理单元1802,具体用于:根据来自用户的输入信息生成拓扑信息;其中,输入信息包括绘制信息或配置信息;绘制信息是来自用户的、对第一设备与至少一个第二设备,或者至少一个第二设备之间的连线的绘制操作得到的;配置信息是基于来自用户的、对第一设备与至少一个第二设备之间的属性,或者至少一个第二设备之间的属性的配置操作得到的。
可能的实现方式中,通信单元1803,具体用于输出至少一个提示信息;处理单元1802,具体用于根据响应于提示信息的信息,生成拓扑信息;其中,响应于提示信息的信息用于为来自用户的、第一设备与至少一个第二设备建立连接关系或者为至少一个第二设备之间建立连接关系。
可能的实现方式中,处理单元1802,具体用于:响应于界面上显示的设备标识的位置改变,生成拓扑信息;设备标识用于识别设备。
可能的实现方式中,显示单元1801,具体用于:显示拓扑结构,拓扑结构包含连接关系。
可能的实现方式中,拓扑结构还包含设备之间的相对距离和/或相对方位;其中,用于反映连接关系的连线的长度与相对距离正相关,和/或,用于反映连接关系的连线上标注有连接关系对应的设备之间的距离参数。
可能的实现方式中,通信单元1803,具体用于:发送查询请求,查询请求包含第一设备的身份信息;接收来自至少一个第二设备的设备信息;其中,第一设备的身份信息用于标识第一设备。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
具体的,当该连接配置装置180为第二设备时,本申请实施例提供一种连接配置装置180,包括:通信单元1803,用于发送第二设备的设备信息;通信单元1803,还用于接收来自第一设备的第二拓扑信息,所述第二拓扑信息包括或者指示第一设备与至少一个第二设备之间的连接关系,或者至少一个第二设备之间的连接关系,连接关系用于指示设备的优先级和/或设备之间的主从关系。
可能的实现方式中,通信单元1803,具体用于:接收来自第一设备的查询请求;查询指令包括第一设备的身份信息;根据查询请求,向第一设备发送第二设备的设备信息。
可能的实现方式中,第二设备的设备信息承载于随机接入请求或者响应消息中。
可能的实现方式中,设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
可能的实现方式中,查询请求还包括下述一项或多项:安全密钥参数或用于表征第一设备为主节点的信息。
可以理解的是,上述各个方案的连接配置装置180具有实现上述方法中第一设备或第二设备执行的相应步骤的功能。
在一种可能的实施例中,连接配置装置180还可以包括:存储单元1804。处理单元1802、存储单元1804通过通信线路相连。
存储单元1804可以包括一个或者多个存储器,存储器可以是一个或者多个设备、电路中用于存储程序或者数据的器件。
存储单元1804可以独立存在,通过通信线路与连接配置装置具有的处理单元1802相连。存储单元1804也可以和处理单元1802集成在一起。
其中,则通信单元1803可以是输入或者输出接口、管脚或者电路等。示例性的,存储单元1804可以存储雷达或目标设备的方法的计算机执行指令,以使处理单元1802执行上述实施例中雷达或目标设备的方法。存储单元1804可以是寄存器、缓存或者RAM等,存储单元1804可以和处理单元1802集成在一起。存储单元1804可以是ROM或者可存储静态信息和指令的其他类型的静态存储设备,存储单元1804可以与处理单元1802相独立。
示例性的,图19为本申请实施例提供的一种控制设备的硬件结构示意图,如图19所示,该控制设备包括处理器1901,通信线路1904以及至少一个通信接口(图19中示例性的以通信接口1903为例进行说明)。
处理器1901可以是一个通用中央处理器(central processing unit,CPU),微处理器,特定应用集成电路(application-specific integrated circuit,ASIC),或一个或多个 用于控制本申请方案程序执行的集成电路。
通信线路1904可包括在上述组件之间传送信息的电路。
通信接口1903,使用任何收发器一类的装置,用于与其他设备或通信网络通信,如以太网,无线局域网(wireless local area networks,WLAN)等。
可能的,该控制设备还可以包括存储器1902。
存储器1902可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其他类型的静态存储设备,随机存取存储器(random access memory,RAM)或者可存储信息和指令的其他类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其他光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其他磁存储设备、或者能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其他介质,但不限于此。存储器可以是独立存在,通过通信线路1904与处理器相连接。存储器也可以和处理器集成在一起。
其中,存储器1902用于存储执行本申请方案的计算机执行指令,并由处理器1901来控制执行。处理器1901用于执行存储器1902中存储的计算机执行指令,从而实现本申请实施例所提供的连接配置方法。
可能的,本申请实施例中的计算机执行指令也可以称之为应用程序代码,本申请实施例对此不作具体限定。
在具体实现中,作为一种实施例,处理器1901可以包括一个或多个CPU,例如图19中的CPU0和CPU1。
在具体实现中,作为一种实施例,控制设备可以包括多个处理器,例如图19中的处理器1901和处理器1905。这些处理器中的每一个可以是一个单核(single-CPU)处理器,也可以是一个多核(multi-CPU)处理器。这里的处理器可以指一个或多个设备、电路、和/或用于处理数据(例如计算机程序指令)的处理核。
本申请实施例一种可选的方式,处理器1901用于读取存储器1902中的程序并以执行如图5所示的S501-S503中的方法流程等。
示例性的,图20为本申请实施例提供的一种芯片的结构示意图。芯片200包括一个或两个以上(包括两个)处理器2020和通信接口2030。
在一些实施方式中,存储器2040存储了如下的元素:可执行模块或者数据结构,或者他们的子集,或者他们的扩展集。
本申请实施例中,存储器2040可以包括只读存储器和随机存取存储器,并向处理器2020提供指令和数据。存储器2040的一部分还可以包括非易失性随机存取存储器(non-volatile random access memory,NVRAM)。
本申请实施例中,存储器2040、通信接口2030以及存储器2040通过总线系统2020耦合在一起。其中,总线系统2020除包括数据总线之外,还可以包括电源总线、控制总线和状态信号总线等。为了便于描述,在图20中将各种总线都标为总线系统2020。
上述本申请实施例描述的方法可以应用于处理器2020中,或者由处理器2020实现。处理器2020可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上 述方法的各步骤可以通过处理器2020中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器2020可以是通用处理器(例如,微处理器或常规处理器)、数字信号处理器(digital signal processing,DSP)、专用集成电路(application specific integrated circuit,ASIC)、现成可编程门阵列(field-programmable gate array,FPGA)或者其他可编程逻辑器件、分立门、晶体管逻辑器件或分立硬件组件,处理器2020可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。
结合本申请实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。其中,软件模块可以位于随机存储器、只读存储器、可编程只读存储器或带电可擦写可编程存储器(electrically erasable programmable read only memory,EEPROM)等本领域成熟的存储介质中。该存储介质位于存储器2040,处理器2020读取存储器2040中的信息,结合其硬件完成上述方法的步骤。
在上述实施例中,存储器存储的供处理器执行的指令可以以计算机程序产品的形式实现。其中,计算机程序产品可以是事先写入在存储器中,也可以是以软件形式下载并安装在存储器中。
计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行计算机程序指令时,全部或部分地产生按照本申请实施例的流程或功能。计算机可以是通用计算机、专用计算机、计算机网络或者其他可编程装置。计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一计算机可读存储介质传输,例如,计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(digital subscriber line,DSL)或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。计算机可读存储介质可以是计算机能够存储的任何可用介质或者是包括一个或多个可用介质集成的服务器、数据中心等数据存储设备。例如,可用介质可以包括磁性介质(例如,软盘、硬盘或磁带)、光介质(例如,数字通用光盘(digital versatile disc,DVD))、或者半导体介质(例如,固态硬盘(solid state disk,SSD))等。
本申请实施例还提供了一种计算机可读存储介质。上述实施例中描述的方法可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。计算机可读介质可以包括计算机存储介质和通信介质,还可以包括任何可以将计算机程序从一个地方传送到另一个地方的介质。存储介质可以是可由计算机访问的任何目标介质。
作为一种可能的设计,计算机可读介质可以包括紧凑型光盘只读储存器(compact disc read-only memory,CD-ROM)、RAM、ROM、EEPROM或其它光盘存储器;计算机可读介质可以包括磁盘存储器或其它磁盘存储设备。而且,任何连接线也可以被适当地称为计算机可读介质。例如,如果使用同轴电缆,光纤电缆,双绞线,DSL或无线技术(如红外,无线电和微波)从网站,服务器或其它远程源传输软件,则同轴电缆,光纤电缆,双绞线,DSL或诸如红外,无线电和微波之类的无线技术包括在介质的定义中。如本文所使用的磁盘和光盘包括光盘(CD),激光盘,光盘,数字通用光盘(digital versatile disc,DVD),软盘和蓝光盘,其中磁盘通常以磁性方式再现数据,而光盘利用激光光学地再现数据。
上述的组合也应包括在计算机可读介质的范围内。以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。

Claims (35)

  1. 一种连接配置方法,其特征在于,包括:
    获取至少一个第二设备的设备信息;
    根据至少一个所述第二设备的设备信息,生成拓扑信息;所述拓扑信息用于指示第一设备与至少一个所述第二设备之间的连接关系,或者至少一个所述第二设备之间的连接关系,所述连接关系用于指示设备的优先级和/或设备之间的主从关系。
  2. 根据权利要求1所述的方法,其特征在于,所述连接关系与至少一种业务相关。
  3. 根据权利要求1或2所述的方法,其特征在于,所述生成拓扑信息,包括:
    根据来自用户的输入信息生成所述拓扑信息;
    其中,所述输入信息包括绘制信息或配置信息;所述绘制信息是来自用户的、对所述第一设备与至少一个所述第二设备,或者至少一个所述第二设备之间的连线的绘制操作得到的;所述配置信息是基于来自用户的、对所述第一设备与至少一个所述第二设备之间的属性,或者至少一个所述第二设备之间的属性的配置操作得到的。
  4. 根据权利要求1或2所述的方法,其特征在于,所述生成拓扑信息,包括:
    输出至少一个提示信息;
    根据响应于所述提示信息的信息,生成所述拓扑信息;
    其中,所述响应于所述提示信息的信息用于为来自用户的、所述第一设备与至少一个所述第二设备建立连接关系或者为至少一个所述第二设备之间建立连接关系。
  5. 根据权利要求1或2所述的方法,其特征在于,所述生成拓扑信息,包括:
    响应于界面上显示的设备标识的位置改变,生成所述拓扑信息;所述设备标识用于识别设备。
  6. 根据权利要求1-5任一项所述的方法,其特征在于,所述方法还包括:
    显示拓扑结构,所述拓扑结构包含所述连接关系。
  7. 根据权利要求6所述的方法,其特征在于,所述拓扑结构还包含设备之间的相对距离和/或相对方位;
    其中,用于反映所述连接关系的连线的长度与所述相对距离正相关,和/或,用于反映所述连接关系的连线上标注有所述连接关系对应的设备之间的距离参数。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述获取至少一个第二设备的设备信息,包括:
    发送查询请求,所述查询请求包含所述第一设备的身份信息;
    接收来自至少一个所述第二设备的设备信息;
    其中,所述第一设备的身份信息用于标识所述第一设备。
  9. 根据权利要求8所述的方法,其特征在于,所述第二设备的设备信息承载于随机接入请求或者响应消息中。
  10. 根据权利要求1-9任一项所述的方法,其特征在于,所述设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
  11. 根据权利要求8所述的方法,其特征在于,所述查询请求还包括下述一项或多项:安全密钥参数或用于表征所述第一设备为主节点的信息。
  12. 一种连接配置方法,其特征在于,包括:
    发送第二设备的设备信息;
    接收来自第一设备的拓扑信息,所述拓扑信息包括所述第一设备与至少一个所述第二设备之间的连接关系,或者至少一个所述第二设备之间的连接关系,所述连接关系用于指示设备的优先级和/或设备之间的主从关系。
  13. 根据权利要求12所述的方法,其特征在于,所述发送第二设备的设备信息,包括:
    接收来自所述第一设备的查询请求;所述查询指令包括所述第一设备的身份信息;
    根据所述查询请求,向所述第一设备发送第二设备的设备信息。
  14. 根据权利要求13所述的方法,其特征在于,所述第二设备的设备信息承载于随机接入请求或者响应消息中。
  15. 根据权利要求12-14任一项所述的方法,其特征在于,所述设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
  16. 根据权利要求13所述的方法,其特征在于,所述查询请求还包括下述一项或多项:安全密钥参数或用于表征所述第一设备为主节点的信息。
  17. 一种连接配置装置,其特征在于,包括:
    处理单元,用于获取至少一个第二设备的设备信息;
    所述处理单元,还用于根据至少一个所述第二设备的设备信息,生成拓扑信息;所述拓扑信息用于指示第一设备与至少一个所述第二设备之间的连接关系,或者至少一个所述第二设备之间的连接关系,所述连接关系用于指示设备的优先级和/或设备之间的主从关系。
  18. 根据权利要求17所述的装置,其特征在于,所述连接关系与至少一种业务相关。
  19. 根据权利要求17或18所述的装置,其特征在于,所述处理单元,具体用于:
    根据来自用户的输入信息生成所述拓扑信息;
    其中,所述输入信息包括绘制信息或配置信息;所述绘制信息是来自用户的、对所述第一设备与至少一个所述第二设备,或者至少一个所述第二设备之间的连线的绘制操作得到的;所述配置信息是基于来自用户的、对所述第一设备与至少一个所述第二设备之间的属性,或者至少一个所述第二设备之间的属性的配置操作得到的。
  20. 根据权利要求17或18所述的装置,其特征在于,
    通信单元,具体用于输出至少一个提示信息;
    所述处理单元,具体用于根据响应于所述提示信息的信息,生成所述拓扑信息;
    其中,所述响应于所述提示信息的信息用于为来自用户的、所述第一设备与至少一个所述第二设备建立连接关系或者为至少一个所述第二设备之间建立连接关系。
  21. 根据权利要求17或18所述的装置,其特征在于,所述处理单元,具体用于:
    响应于界面上显示的设备标识的位置改变,生成所述拓扑信息;所述设备标识用于识别设备。
  22. 根据权利要求17-21任一项所述的装置,其特征在于,所述显示单元,具体用于:
    显示拓扑结构,所述拓扑结构包含所述连接关系。
  23. 根据权利要求22所述的装置,其特征在于,所述拓扑结构还包含设备之间的相对距离和/或相对方位;
    其中,用于反映所述连接关系的连线的长度与所述相对距离正相关,和/或,用于反映 所述连接关系的连线上标注有所述连接关系对应的设备之间的距离参数。
  24. 根据权利要求17-23任一项所述的装置,其特征在于,所述通信单元,具体用于:
    发送查询请求,所述查询请求包含所述第一设备的身份信息;
    接收来自至少一个所述第二设备的设备信息;
    其中,所述第一设备的身份信息用于标识所述第一设备。
  25. 根据权利要求24所述的装置,其特征在于,所述第二设备的设备信息承载于随机接入请求或者响应消息中。
  26. 根据权利要求17-25任一项所述的装置,其特征在于,所述设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
  27. 根据权利要求24所述的装置,其特征在于,所述查询请求还包括下述一项或多项:安全密钥参数或用于表征所述第一设备为主节点的信息。
  28. 一种连接配置装置,其特征在于,包括:
    通信单元,用于发送第二设备的设备信息;
    所述通信单元,还用于接收来自第一设备的拓扑信息,所述拓扑信息包括所述第一设备与至少一个所述第二设备之间的连接关系,或者至少一个所述第二设备之间的连接关系,所述连接关系用于指示设备的优先级和/或设备之间的主从关系。
  29. 根据权利要求28所述的装置,其特征在于,所述通信单元,具体用于:
    接收来自所述第一设备的查询请求;所述查询指令包括所述第一设备的身份信息;
    根据所述查询请求,向所述第一设备发送第二设备的设备信息。
  30. 根据权利要求29所述的装置,其特征在于,所述第二设备的设备信息承载于随机接入请求或者响应消息中。
  31. 根据权利要求28-30任一项所述的装置,其特征在于,所述设备信息包括下述的一项或多项:设备标识、身份信息、设备硬件地址或设备域名。
  32. 根据权利要求29所述的装置,其特征在于,所述查询请求还包括下述一项或多项:安全密钥参数或用于表征所述第一设备为主节点的信息。
  33. 一种芯片,其特征在于,所述芯片包括至少一个处理器和通信接口,所述通信接口和所述至少一个处理器耦合,所述至少一个处理器用于运行计算机程序或指令,以实现如权利要求1-11中任一项所述的连接配置方法,或实现如权利要求12-16中任一项所述的连接配置方法。
  34. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中存储有指令,当所述指令被运行时,实现如权利要求1-11中任一项所述的连接配置方法,或实现如权利要求12-16中任一项所述的连接配置方法。
  35. 一种终端,其特征在于,所述终端包括如权利要求17-27任一项所述的连接配置装置,或包括如权利要求28-32任一项所述的连接配置装置。
PCT/CN2021/083521 2021-03-29 2021-03-29 连接配置方法和装置 WO2022204859A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
EP21933546.0A EP4311180A4 (en) 2021-03-29 2021-03-29 CONNECTION CONFIGURATION METHOD AND DEVICE
PCT/CN2021/083521 WO2022204859A1 (zh) 2021-03-29 2021-03-29 连接配置方法和装置
CN202180060225.4A CN116250213A (zh) 2021-03-29 2021-03-29 连接配置方法和装置
US18/475,036 US20240015073A1 (en) 2021-03-29 2023-09-26 Connection configuration method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2021/083521 WO2022204859A1 (zh) 2021-03-29 2021-03-29 连接配置方法和装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US18/475,036 Continuation US20240015073A1 (en) 2021-03-29 2023-09-26 Connection configuration method and apparatus

Publications (1)

Publication Number Publication Date
WO2022204859A1 true WO2022204859A1 (zh) 2022-10-06

Family

ID=83456894

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/083521 WO2022204859A1 (zh) 2021-03-29 2021-03-29 连接配置方法和装置

Country Status (4)

Country Link
US (1) US20240015073A1 (zh)
EP (1) EP4311180A4 (zh)
CN (1) CN116250213A (zh)
WO (1) WO2022204859A1 (zh)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173063A1 (en) * 2012-12-17 2014-06-19 Samsung Electronics Co., Ltd. System and method of controlling surrounding devices, based on topology
US20160299826A1 (en) * 2015-04-13 2016-10-13 Leviton Manufacturing Co., Inc. Device topology definition system
CN108206784A (zh) * 2016-12-19 2018-06-26 北京君正集成电路股份有限公司 智能家居的网络拓扑生成方法和装置
CN110780830A (zh) * 2018-07-31 2020-02-11 珠海格力电器股份有限公司 一种家居设备显示方法、装置、终端及可读存储介质
CN111641997A (zh) * 2020-06-16 2020-09-08 青岛亿联客信息技术有限公司 基于蓝牙Mesh网络的设备入网方法和装置、存储介质
CN111817935A (zh) * 2020-07-24 2020-10-23 广州云智通讯科技有限公司 一种互联网智能家居数据处理方法及系统
CN112039693A (zh) * 2020-08-17 2020-12-04 烽火通信科技股份有限公司 一种家庭组网网络拓扑管理的系统和方法

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7990897B2 (en) * 2009-03-11 2011-08-02 Sony Corporation Method and apparatus for a wireless home mesh network with network topology visualizer
US9331962B2 (en) * 2010-06-27 2016-05-03 Valens Semiconductor Ltd. Methods and systems for time sensitive networks
IN2015CH01656A (zh) * 2015-03-30 2015-04-24 Wipro Ltd
TWI619403B (zh) * 2016-07-18 2018-03-21 智易科技股份有限公司 移動式區域網路管理系統、方法與電腦可讀取儲存裝置

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140173063A1 (en) * 2012-12-17 2014-06-19 Samsung Electronics Co., Ltd. System and method of controlling surrounding devices, based on topology
US20160299826A1 (en) * 2015-04-13 2016-10-13 Leviton Manufacturing Co., Inc. Device topology definition system
CN108206784A (zh) * 2016-12-19 2018-06-26 北京君正集成电路股份有限公司 智能家居的网络拓扑生成方法和装置
CN110780830A (zh) * 2018-07-31 2020-02-11 珠海格力电器股份有限公司 一种家居设备显示方法、装置、终端及可读存储介质
CN111641997A (zh) * 2020-06-16 2020-09-08 青岛亿联客信息技术有限公司 基于蓝牙Mesh网络的设备入网方法和装置、存储介质
CN111817935A (zh) * 2020-07-24 2020-10-23 广州云智通讯科技有限公司 一种互联网智能家居数据处理方法及系统
CN112039693A (zh) * 2020-08-17 2020-12-04 烽火通信科技股份有限公司 一种家庭组网网络拓扑管理的系统和方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP4311180A4 *

Also Published As

Publication number Publication date
EP4311180A4 (en) 2024-04-24
US20240015073A1 (en) 2024-01-11
CN116250213A (zh) 2023-06-09
EP4311180A1 (en) 2024-01-24

Similar Documents

Publication Publication Date Title
US10693969B2 (en) Electronic device using logical channels for communication
AU2021269359B2 (en) Display method and apparatus
US11677812B2 (en) Lightweight IoT information model
US11445433B2 (en) Method of transmitting proximity service data and electronic device for the same
JP6396482B2 (ja) 無線通信システムにおけるブルートゥース低電力エネルギーを利用してオブジェクト送信サービスを行うための方法及び装置
KR102095436B1 (ko) 서비스 계층에서의 요청 처리
US8285259B2 (en) Resource aggregation in an opportunistic network
CN103856630B (zh) 用于控制蓝牙低能耗装置的移动终端和方法
WO2023083262A1 (zh) 基于多设备提供服务的方法、相关装置及系统
CN105933378B (zh) 无线联动控制方法及系统
CN108605371A (zh) 发现蓝牙设备的方法和蓝牙设备
CN108605373A (zh) 用于提供网络共享服务的方法和电子装置
KR102343301B1 (ko) 무선 연결을 위한 방법 및 그 전자 장치
WO2022204859A1 (zh) 连接配置方法和装置
US20160330251A1 (en) Method and device for sharing connection information in electronic device
WO2023142993A1 (zh) 一种探测方法、相关电子设备及系统
KR102238897B1 (ko) 근접 서비스 데이터 송신 방법 및 그 전자 장치
WO2023185593A1 (zh) 设备登录方法、电子设备及系统
WO2023066008A1 (zh) 活动管理方法及电子设备
WO2023051229A1 (zh) 用于标识设备的方法、装置、电子设备和介质
WO2021219118A1 (en) Capability based content rendering in multi-device
Firmansyah An energy-aware mobile gateway for Bluetooth low energy-powered Internet of Things devices

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 2021933546

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 2021933546

Country of ref document: EP

Effective date: 20231017