WO2022228051A1 - 一种设备组网方法、电子设备及存储介质 - Google Patents

一种设备组网方法、电子设备及存储介质 Download PDF

Info

Publication number
WO2022228051A1
WO2022228051A1 PCT/CN2022/085166 CN2022085166W WO2022228051A1 WO 2022228051 A1 WO2022228051 A1 WO 2022228051A1 CN 2022085166 W CN2022085166 W CN 2022085166W WO 2022228051 A1 WO2022228051 A1 WO 2022228051A1
Authority
WO
WIPO (PCT)
Prior art keywords
electronic device
communication
time period
message
communication connection
Prior art date
Application number
PCT/CN2022/085166
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 JP2023566626A priority Critical patent/JP2024516668A/ja
Priority to EP22794523.5A priority patent/EP4311366A1/en
Publication of WO2022228051A1 publication Critical patent/WO2022228051A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/50Secure pairing of devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/10Protocols in which an application is distributed across nodes in the network
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/142Managing session states for stateless protocols; Signalling session states; State transitions; Keeping-state mechanisms
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/55Push-based network services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/23Manipulation of direct-mode connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/20Manipulation of established connections
    • H04W76/25Maintenance of established connections
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/18Self-organising networks, e.g. ad-hoc networks or sensor networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/08Network architectures or network communication protocols for network security for authentication of entities
    • H04L63/083Network architectures or network communication protocols for network security for authentication of entities using passwords
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/10Network architectures or network communication protocols for network security for controlling access to devices or network resources
    • H04L63/108Network architectures or network communication protocols for network security for controlling access to devices or network resources when the policy decisions are valid for a limited amount of time
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/18Network architectures or network communication protocols for network security using different networks or channels, e.g. using out of band channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication
    • H04W12/069Authentication using certificates or pre-shared keys
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/60Context-dependent security
    • H04W12/61Time-dependent
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W84/00Network topologies
    • H04W84/02Hierarchically pre-organised networks, e.g. paging networks, cellular networks, WLAN [Wireless Local Area Network] or WLL [Wireless Local Loop]
    • H04W84/10Small scale networks; Flat hierarchical networks
    • H04W84/12WLAN [Wireless Local Area Networks]

Definitions

  • the present application relates to the field of communication technologies, and in particular, to a device networking method, an electronic device, and a storage medium.
  • multiple electronic devices may determine a preset electronic device (such as a TV, a router, or a mobile phone) as a central device when networking. Further, each electronic device other than the central device can establish a communication connection (eg, Bluetooth connection, Wi-Fi connection, etc.) with the central device as a peripheral device to form a local area network with a star topology. In this way, the central device, as a central node, can be used to manage and control each peripheral device in the local area network to complete corresponding work tasks.
  • a preset electronic device such as a TV, a router, or a mobile phone
  • Embodiments of the present application provide a device networking method, an electronic device, and a storage medium, which are used to solve the problem of high communication delay between a first electronic device and a second electronic device.
  • a device networking method which is applied in a communication system; the communication system includes a plurality of electronic devices.
  • the method includes: establishing a first communication connection between the first electronic device and the second electronic device; the first communication connection includes connecting the first electronic device and the second electronic device through a first communication manner and a second communication manner;
  • the message sent by the second electronic device is received within the first time period; the first electronic device confirms that the first communication connection with the second electronic device is valid within the second time period according to the message; the first electronic device The device performs business communication with the second electronic device through the second communication method within the second time period.
  • the first electronic device when the first electronic device establishes the first communication connection with the second electronic device, the first electronic device receives the message sent by the second electronic device within the first time period through the first communication method, and the first electronic device The electronic device can confirm that the first communication connection with the second electronic device is valid within the second time period according to the message, that is, the first electronic device confirms according to the message to maintain the connection with the second electronic device within the second time period (that is, to ensure that live), so that the first electronic device conducts business communication with the second electronic device through the second communication method within the second time period.
  • the first electronic device confirms that the second electronic device is kept alive in the second time period according to the message
  • the first electronic device and the second electronic device can directly conduct business communication in the second time period, and do not need to Before conducting business communication, the keep-alive is confirmed, thereby increasing the communication delay.
  • the first electronic device and the second electronic device establish the first communication connection through the first communication mode and the second communication mode, the first electronic device receives the message sent by the second electronic device, the first electronic device and the The second electronic device can use different communication modes for business communication, which improves communication reliability.
  • the method before the first electronic device receives the message sent by the second electronic device within the first time period through the first communication method, the method further includes: the first electronic device Through the first communication mode and the second communication mode, the request message is broadcast or unicast in the first time period; the request message is used to instruct the first electronic device to request to maintain the first communication connection with the second electronic device.
  • the first electronic device can broadcast or unicast the request message within the first time period through the first communication method and the second communication method, so that the second electronic device can reply to the message according to the request message, Communication reliability is improved.
  • the first electronic device when the first communication connection is valid within the second time period, stores the connection information of the second communication connection; Performing business communication with the second electronic device through the second communication method within the time period includes: the first electronic device recovers the first communication connection established with the second electronic device according to the connection information and performs business communication.
  • the first electronic device can quickly restore the first communication connection established with the second electronic device and perform service communication according to the connection information (for example, the information of the second electronic device), the communication time is further improved. extension.
  • the priority of the first electronic device is higher than the priority of the second electronic device; the priority is used to indicate the hardware performance of the device, and the hardware performance of the device with a higher priority is higher than that of the second electronic device.
  • the first electronic device confirms the priority of the second electronic device when establishing the first communication connection with the second electronic device, if the priority of the first electronic device is higher than the priority of the second electronic device level, the first electronic device confirms that the first communication connection with the second electronic device is valid within the second time period according to the message, that is, the first electronic device with high priority confirms which device among the first electronic device and the second electronic device Sending request messages and receiving messages further improves communication reliability.
  • the first time period is set periodically; the first time period is the first set first time period; the method further includes: when the first electronic device When the first time period is the second set first time period, the first electronic device determines to disconnect from the second electronic device; or, when the first electronic device is the set continuous N times the first time period, the first electronic device determines to disconnect from the second electronic device; or, when the first time period and the second time period at least partially overlap, and the first electronic device is within the second time period When no response message is received within the first time period, the first electronic device determines to disconnect from the second electronic device.
  • the first electronic device determines to disconnect from the second electronic device, which is beneficial to improve communication reliability.
  • the method further includes: when the first electronic device and the second electronic device perform service communication again, the first electronic device re-establishes the first communication connection with the second electronic device.
  • the first electronic device determines to disconnect from the second electronic device, if the first electronic device and the second electronic device perform business communication again, the first electronic device re-establishes the first electronic device with the second electronic device. a communication connection, so that business communication can be carried out normally, and the reliability of communication is improved.
  • the message includes one of a response message, a query message, or a service message.
  • the first electronic device since the message may be a response message, an inquiry message, or a service message, the first electronic device receives a response message, or an inquiry message or a service message sent by the second electronic device. In the case of any type of service message, the first electronic device can confirm that the first communication connection with the second electronic device is valid within the second time period, which further improves communication reliability.
  • the method further includes: when the first electronic device remains in a static state within a first time period, and the first electronic device receives a response message sent by the second electronic device The number of times is greater than the first preset number of times, the first electronic device adjusts the first time period to be the third time period; the length of the third time period is greater than the length of the first time period.
  • the first electronic device when the first electronic device remains in a static state for a long time, and the number of times the first electronic device receives the response message sent by the second electronic device is greater than the first preset number of times. Then, the first electronic device can adjust the first time period to the third time period, because the length of the third time period is greater than the length of the first time period, that is, the first electronic device adopts a slow-down manner to receive the transmission from the second electronic device packets, which is beneficial to reduce the power consumption of the device.
  • the method further includes: when the first electronic device is in a preset scene within the first time period, and the first electronic device receives a response message sent by the second electronic device When the number of times is greater than the second preset number of times, the first electronic device adjusts the first time period to be the fourth time period; the length of the fourth time period is less than the length of the first time period.
  • the first electronic device when the first electronic device is in the preset scene for a long time, and the number of times the first electronic device receives the response message sent by the second electronic device is greater than the second preset number of times, the first electronic device can Adjust the first time period to the fourth time period, because the length of the fourth time period is less than the length of the first time period, that is, the first electronic device adopts the accelerated mode to receive the message sent by the second electronic device, ensuring that the first electronic device The device remains connected to the second electronic device.
  • the method further includes: when the preset scene where the first electronic device is located changes, the first electronic device restores the fourth time period to the first time period; It is assumed that the scene change includes that the first electronic device changes from off-screen display to bright-screen display.
  • the first electronic device when the first electronic device changes from off-screen display to bright-screen display, the first electronic device resumes the first time period and receives the message within the first time period, which is beneficial to reduce power consumption of the device .
  • the method further includes: when the scene where the first electronic device is located changes, the first electronic device restores the fourth time period to the first time period; a preset scene The change includes a change in the usage state of the first electronic device.
  • the first electronic device restores the first time period and receives the message within the first time period, which is beneficial to reduce power consumption of the device.
  • the method further includes: when the scene where the first electronic device is located changes, the first electronic device rediscovers surrounding devices and establishes a first communication connection; the scene occurs
  • the changes include changes in absolute positions, changes in spatial positions, and changes in vehicles; the first electronic device receives messages sent from surrounding devices within a first period of time through a first communication method.
  • the first electronic device rediscovers the surrounding devices and establishes the first communication connection; the first electronic device Through the first communication manner, the message sent from the surrounding device is received within the first time period, so that the first electronic device can maintain connection with the surrounding device, thereby improving communication reliability.
  • the method further includes: when the last electronic device among all the electronic devices that establish the first communication connection with the first electronic device is offline, the first electronic device rediscovers the surrounding device, and establishes a first communication connection; the first electronic device receives the message sent from the surrounding device in the first time period by using the first communication method.
  • the first electronic device rediscovers the surrounding devices and establishes the first communication connection; then, the first electronic device communicates with the first electronic device. Through the first communication manner, the message sent from the surrounding device is received within the first time period, so that the first electronic device can maintain connection with the surrounding device, thereby improving communication reliability.
  • the method further includes: when the network state of the communication system where the multiple electronic devices are located changes, the first electronic device sends a network change message to the second electronic device, and Reconfirm the physical communication method when establishing the first communication connection with the second electronic device.
  • the first electronic device when the network status of multiple electronic devices changes (such as network interruption, network delay, etc.), the first electronic device notifies the second electronic device that the network has changed, and re-confirms with the second electronic device
  • the physical communication mode when the first communication connection is established improves communication reliability.
  • the method further includes: the first electronic device determines, according to the periodic connection established between the first application on the first electronic device and the cloud server of the first application, the first electronic device's Wake-up period; the first application is any application on the first electronic device; the first electronic device synchronizes the wake-up period to the second electronic device; the wake-up period is the same as the periodically set first time period.
  • the first electronic device sets the periodic first time period according to the wake-up period, that is, the wake-up period is the same as the period of the periodically set first time period, so that the first electronic device and the second electronic device Receiving packets during the wake-up period is beneficial to reducing device power consumption.
  • the method further includes: the first electronic device displays a first interface in response to the user's operation on the second application; the first interface includes maintaining a first communication with the first electronic device At least one electronic device is connected; the at least one electronic device includes a second electronic device; the first electronic device performs business communication with the second electronic device in response to a user's operation on the second electronic device.
  • the first interface of the first electronic device can directly display at least one electronic device that maintains the first communication connection with the first electronic device, and the at least one electronic device includes the second electronic device, therefore in the first
  • an electronic device wants to perform business communication with the second electronic device it can directly perform business communication with the second electronic device without scanning the second electronic device, which reduces the waiting time of the user and improves the user experience.
  • the first interface further includes at least one electronic device disconnected from the first electronic device.
  • the first interface since the first interface also displays at least one electronic device that is disconnected from the first electronic device, in this way, when the user holds the first electronic device, it needs to communicate with any one of the at least one electronic device.
  • the user can directly click on the electronic device to establish a first communication connection between the electronic device and the first electronic device, which improves user experience.
  • the first interface further includes indication information; the indication information is used to indicate that the third electronic device is being scanned; the third electronic device is one of the plurality of electronic devices and is disconnected from the first electronic device A connected device; or, the third electronic device is a device that establishes a first communication connection with the first electronic device for the first time.
  • the user can know the third electronic device that is disconnected from the first electronic device according to the indication information displayed on the first interface; or the electronic device that establishes the first communication connection with the first electronic device for the first time has Conducive to further improve the user experience.
  • the first electronic device includes a processor; the processor includes multiple processing cores; the multiple processing cores include low-power consumption cores; the method further includes: the first electronic device passes The low-power-consumption core receives the message sent by the second electronic device within the first time period.
  • an electronic device which is a first electronic device; the electronic device includes a memory and one or more processors; the memory stores computer program code, and the computer program code includes computer instructions, when the computer instructions are When executed, the processor causes the electronic device to perform the following steps: the first electronic device establishes a first communication connection with the second electronic device; the first communication connection includes the first electronic device and the second electronic device communicate with the second electronic device through the first communication method The first electronic device receives the message sent by the second electronic device within the first time period through the first communication method; the first electronic device confirms that the first communication with the second electronic device is connected to the second electronic device according to the message. It is valid within the time period; the first electronic device performs business communication with the second electronic device through the second communication method within the second time period.
  • Make the electronic device further perform the following steps: the first electronic device broadcasts or unicasts the request message within the first time period through the first communication mode and the second communication mode; the request message is used to instruct the first electronic device to request and communicate with the first electronic device.
  • the second electronic device maintains the first communication connection.
  • the first electronic device when the first communication connection is valid within the second time period, saves connection information of the second communication connection; when the computer instruction is executed by the processor At the time, the electronic device is caused to specifically execute the following steps: the first electronic device restores the first communication connection established with the second electronic device according to the connection information and performs service communication.
  • the priority of the first electronic device is higher than the priority of the second electronic device; the priority is used to indicate the hardware performance of the device, and the hardware performance of the device with a higher priority is higher than that of the second electronic device.
  • the first time period is set periodically; the first time period is the first set first time period; when the computer instructions are executed by the processor, the The electronic device further performs the following steps: when the first time period is the first time period set for the second time, the first electronic device determines to disconnect from the second electronic device; When the first time period of the electronic device is a set first time period of consecutive N times, the first electronic device determines to disconnect from the second electronic device; or, when the first time period and the second time period at least partially overlap , and when the first electronic device does not receive a response message in the first time period within the second time period, the first electronic device determines to disconnect from the second electronic device.
  • the electronic device when the computer instruction is executed by the processor, the electronic device further executes the following steps: when the first electronic device and the second electronic device perform business communication again, the first electronic device Re-establish the first communication connection with the second electronic device.
  • the message includes one of a response message, a query message, or a service message.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following steps: when the first electronic device remains in a stationary state for the first time period, and the first electronic device The number of times of receiving the response message sent by the second electronic device is greater than the first preset number of times, and the first electronic device adjusts the first time period to be a third time period; the length of the third time period is greater than the length of the first time period.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further executes the following steps: when the first electronic device is in a preset scene within a first time period, and the first When the number of times the electronic device receives the response message sent by the second electronic device is greater than the second preset number of times, the first electronic device adjusts the first time period to be the fourth time period; the length of the fourth time period is less than the length of the first time period .
  • the electronic device when the computer instruction is executed by the processor, the electronic device further executes the following steps: when the preset scene where the first electronic device is located changes, the first electronic device will The fourth time period is restored to the first time period; the change of the preset scene includes that the first electronic device changes from off-screen display to bright-screen display.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further executes the following steps: when the scene in which the first electronic device is located changes, the first electronic device stores the fourth The time period is restored to the first time period; the change of the preset scene includes the change of the use state of the first electronic device.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further executes the following steps: when the scene where the first electronic device is located changes, the first electronic device rediscovers the surrounding and establishes a first communication connection; changes in the scene include changes in absolute positions, changes in spatial positions, and changes in vehicles; the first electronic device receives messages sent from surrounding devices within a first period of time through a first communication method 's message.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further executes the following steps: when the first electronic device establishes a first communication connection with the first electronic device, the last electronic device When the device is offline, the first electronic device rediscovers the surrounding devices and establishes a first communication connection; the first electronic device receives the messages sent from the surrounding devices within the first time period through the first communication method.
  • the electronic device when the computer instructions are executed by the processor, the electronic device further executes the following steps: when the network state of the communication system where the multiple electronic devices are located changes, the first electronic device The device sends a network change message to the second electronic device, and reconfirms the physical communication mode when establishing the first communication connection with the second electronic device.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following steps: the first electronic device performs the following steps according to the first application on the first electronic device and the cloud server of the first application
  • the established periodic connection determines the wake-up cycle of the first electronic device; the first application is any application on the first electronic device; the first electronic device synchronizes the wake-up cycle to the second electronic device; the wake-up cycle and the periodically set
  • the first time period is the same.
  • the electronic device when the computer instructions are executed by the processor, the electronic device is caused to further perform the following steps: the first electronic device displays the first interface in response to the user's operation on the second application; the first electronic device displays the first interface; An interface includes at least one electronic device that maintains a first communication connection with the first electronic device; the at least one electronic device includes a second electronic device; the first electronic device responds to the user's operation on the second electronic device and communicates with the second electronic device business communication.
  • the first interface further includes at least one electronic device disconnected from the first electronic device.
  • the first interface further includes indication information; the indication information is used to indicate that the third electronic device is being scanned; the third electronic device is one of the plurality of electronic devices and is disconnected from the first electronic device A connected device; or, the third electronic device is a device that establishes a first communication connection with the first electronic device for the first time.
  • the first electronic device includes a processor; the processor includes multiple processing cores; the multiple processing cores include low-power consumption cores; when the computer instructions are executed by the processor, the The electronic device further performs the following steps: the first electronic device receives the message sent by the second electronic device within the first time period through the low power consumption core.
  • a communication system including a plurality of electronic devices; the plurality of electronic devices include a first electronic device and a second electronic device; the first electronic device is any one of the plurality of electronic devices, and the second electronic device It is other electronic devices except the first electronic device among the plurality of electronic devices; the first electronic device is used to execute the device networking method described in the first aspect or a possible design of the first aspect.
  • a computer-readable storage medium which is characterized in that it includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device can execute the first aspect or a possible design of the first aspect.
  • the device networking method is provided, which is characterized in that it includes computer instructions, and when the computer instructions are executed on an electronic device, the electronic device can execute the first aspect or a possible design of the first aspect.
  • a computer program product includes computer instructions that, when the computer instructions are run on an electronic device, cause the electronic device to perform as described in the first aspect or a possible design of the first aspect Device networking method.
  • FIG. 1 is a schematic structural diagram of a network composed of an AP and a STA according to an embodiment of the present application;
  • FIG. 2 is a schematic flowchart of networking between an AP and a STA according to an embodiment of the present application
  • FIG. 3 is a schematic structural diagram of a network formed by a master and a slave according to an embodiment of the present application
  • FIG. 4 is a schematic flowchart of networking between a master and a slave according to an embodiment of the present application
  • FIG. 5 is a schematic interface diagram of a mobile phone according to an embodiment of the present application.
  • FIG. 6 is a schematic structural diagram of a hyperterminal according to an embodiment of the present application.
  • FIG. 7 is a schematic structural diagram of another hyperterminal provided by an embodiment of the present application.
  • FIG. 8 is a schematic structural diagram of another hyperterminal provided by an embodiment of the present application.
  • FIG. 9 is a schematic structural diagram of an electronic device provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a communication system provided by an embodiment of the present application.
  • 11a is a schematic flowchart of a device networking method according to an embodiment of the present application.
  • FIG. 11b is a schematic diagram of the relationship between a first time period and a second time period according to an embodiment of the present application.
  • FIG. 11c is another schematic diagram of the relationship between the first time period and the second time period provided by the embodiment of the present application.
  • FIG. 11d is another schematic diagram of the relationship between the first time period and the second time period provided by an embodiment of the present application.
  • FIG. 12 is a schematic flowchart of a device handshake connection provided by an embodiment of the present application.
  • FIG. 13 is a schematic flowchart of another device handshake connection provided by an embodiment of the present application.
  • FIG. 14 is a schematic flowchart of another device handshake connection provided by an embodiment of the present application.
  • 15 is a schematic diagram of triggering a heartbeat query within a wake-up period according to an embodiment of the present application
  • 16 is a schematic diagram of another mobile phone interface provided by an embodiment of the present application.
  • FIG. 17 is a schematic structural diagram of a chip system provided by an embodiment of the present application.
  • 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 .
  • words such as "first” and "second” are used to distinguish the same or similar items with basically the same function and effect.
  • 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.
  • words such as “exemplary” or “for example” are used to represent examples, illustrations or illustrations. Any embodiments or designs described in the embodiments of the present application as “exemplary” or “such as” should not be construed as preferred or advantageous over other embodiments or designs. Rather, the use of words such as “exemplary” or “such as” is intended to present the related concepts in a specific manner to facilitate understanding.
  • the network architecture and service scenarios described in the embodiments of the present application are for the purpose of illustrating the technical solutions of the embodiments of the present application more clearly, and do not constitute limitations on the technical solutions provided by the embodiments of the present application.
  • the technical solutions provided in the embodiments of the present application are also applicable to similar technical problems.
  • a local area network with a star topology can be a network composed of a wireless access point (AP) and a client (station, STA) through wireless-fidelity (Wi-Fi) communication; It can be a network composed of a master device (master) and a slave device (slave) through classic Bluetooth (basic rate, BR)/low energy Bluetooth (bluetooth low energy, BLE) communication.
  • AP-STA-cloud server and the network composed of master and slave may be referred to as a "vertical" network.
  • the networking process of the local area network with the star topology includes device discovery, device authentication, and device keep-alive (referred to as keep-alive).
  • device discovery refers to the central device discovering surrounding peripheral devices (or peripheral devices discovering surrounding central devices);
  • device authentication refers to the central device certifying the discovered peripheral devices. If the authentication is passed, the central device can communicate with the peripheral devices. Establishing a connection; keeping the device connected refers to the business communication between the central device and the peripheral device by sending packets, so that the central device and the peripheral device always maintain a connection relationship.
  • the network formed by the AP and the STA may be a wireless local area network (wireless local area network, WLAN).
  • WLAN wireless local area network
  • STA1, STA2, ..., STAN can establish a communication connection with the AP through Wi-Fi; then, STA1, STA2, ..., STAN can communicate with the AP, and access the remote through the AP cloud server.
  • the AP may be a wireless router or an electronic device with a Wi-Fi function module.
  • FIG. 2 takes the AP as a wireless router as an example for illustration.
  • the STA scans the surrounding APs through Wi-Fi, and then the AP sends a service set identifier (SSID) to the STA.
  • SSID service set identifier
  • the STA selects the corresponding SSID And enter the password for authentication; if the authentication is passed (that is, the password is correct), the STA negotiates the communication channel with the AP, and communicates through the communication channel.
  • the AP sends a beacon frame to the STA, and the STA periodically monitors the beacon frame sent by the AP to keep alive.
  • the manner in which the STA shown in FIG. 2 discovers the connected AP and keeps it alive may also be referred to as the Soft AP manner.
  • slaveA, slaveB, ..., slaveN can establish a communication connection with the master through BLE/BR, and then slaveA, slaveB, ..., slaveN can conduct business communication with the master.
  • the slave can send a broadcast message (such as ADV_IND or ADV_DIRECT_IND) in the broadcast channel, and the broadcast message is used to indicate that the state of the slave is the connectable state; the master can scan in the broadcast channel, when When the master receives the broadcast message, the master discovers the slave and sends a scan request to the slave; when the slave receives the scan request, it replies to the master that sent the connection request with a scan response (scan response).
  • a broadcast message such as ADV_IND or ADV_DIRECT_IND
  • the scan response returned by the slave may be, for example, CONNECT_REQ.
  • the master sends a connection request to the slave.
  • the slave receives the connection request
  • the master and the slave agree to establish a connection and communicate in the same channel.
  • the master and the slave may use a generic attribute protocol (generic attribute profile, GATT) to communicate.
  • GATT generic attribute profile
  • the master and the slave are networked through BLE communication, in some embodiments, as shown in FIG. 4 , the master will periodically send connection events to the slave, and the slave will periodically monitor the connection events sent by the master to perform keep alive.
  • the master and the slave are networked through the BR communication method, the master and the slave will always be in a keep-alive state.
  • slaveA, slaveB, ⁇ , slaveN and master include multiple devices of the same type, multiple devices of the same type are prone to mismatch; There is no direct communication between slaves, and communication needs to be established through the remote cloud server. On the other hand, if the communication medium of slaveA, slaveB, ⁇ , slaveN and the master is different, the slave and the master cannot be networked.
  • the central device in the network composed of AP and STA, or in the network composed of master and slave, when the central device does not exist (for example, the device is not powered on, or the device is damaged), the network does not exist, so that the peripheral devices Unable to communicate.
  • the central device exists (for example, works normally)
  • the network composed of the peripheral devices and the central device exists
  • the central device located in the local area network of the star topology can conduct business communication with the peripheral devices, but the peripheral devices cannot directly communicate with each other. business communication.
  • a Wi-Fi networking ie, AP and STA networking
  • the interface of the mobile phone displays the scan control 1, and after the user clicks the scan control 1, the mobile phone starts to shake hands with the surrounding online devices. Connected (i.e. the phone starts scanning for devices around it that are online). After a period of scanning, the interface of the mobile phone will display the device that has completed the handshake connection with the mobile phone, and then, after the user clicks any device (such as a computer) on the interface of the mobile phone, the mobile phone and the device can conduct business communication. It can be seen that when the mobile phone scans the surrounding online devices, the user needs to wait for a long time, which will reduce the user experience.
  • the interface displayed by the mobile phone also includes devices (such as Bluetooth headsets and air purifiers) that are in business communication with the mobile phone.
  • the embodiments of the present application provide a device networking method, which is applied in a communication network; the communication network does not depend on a general AP-STA or a star network composed of master-slaves.
  • the method enables multiple electronic devices to automatically form a communication network (referred to as an ad hoc network), that is, any two electronic devices between multiple electronic devices can discover and authenticate each other and establish a long connection.
  • the long connection is a periodic handshake. Connection (also known as handshake keep-alive).
  • handshake keep-alive also known as handshake keep-alive
  • a soft bus is built into the device, so that the devices can form an ad hoc network.
  • the soft bus has the ability of discovery and connection, which can provide high throughput, low latency, high reliability, safe and reliable communication channel between various electronic devices, and provide wireless proximity localized access between various electronic devices.
  • Distributed intelligent communication highway network When a soft bus is built into an electronic device, the electronic device has the ability to discover and be discovered.
  • the ad hoc network of multiple electronic devices may be an ad hoc network between multiple peripheral devices, or may be an ad hoc network between a central device and multiple peripheral devices.
  • a new network composed of multiple electronic devices is also referred to as a "horizontal" network; wherein, a "horizontal" network means that electronic devices do not depend on the remote cloud server, and automatically communicate with each other. composed network.
  • the ad hoc network of a plurality of electronic devices may be an ad hoc network between devices with peer-to-peer communication roles, such as between peer-to-peer devices (STAs) in a "vertical" network of AP-STA; Slave “vertical” network peers (slave); or, in the absence of existing AP-STA network, master-slave network, roleless communication-capable isolated peers, group each other network of networks.
  • STAs peer-to-peer devices
  • slave Slave “vertical” network peers
  • roleless communication-capable isolated peers group each other network of networks.
  • the device networking method provided in the embodiments of the present application can be applied to different fields (for example, the 1+8+N consumer product field and the industrial equipment field, etc.).
  • “1” refers to mobile phones
  • “8” refers to car devices, speakers, headphones, watches/bands, tablets, large screens, personal computers (PC), augmented reality (AR) ) devices/virtual reality (VR) devices, etc.
  • “N” refers to the internet of things (IoT).
  • the applicable application scenarios of the method include but are not limited to: office scenarios, sports scenarios, family scenarios, entertainment scenarios, educational scenarios, and industrial production usage scenarios, etc.
  • a plurality of electronic devices may form a "hyper terminal” in different scenarios, and each electronic device in the "hyper terminal” can be interconnected to perform cooperative work.
  • a certain electronic device such as a TV, router, mobile phone, etc.
  • each electronic device except the central control device can be used as a
  • the slave device establishes a communication connection (eg, Bluetooth connection, Wi-Fi connection, etc.) with the central control device.
  • the central control device as a central node, can be used to manage and control other subordinate devices to complete the corresponding work.
  • the user can install an application (application, APP) in the central control device, and the user can operate the slave devices connected to it in the APP of the central control device, which greatly improves the user experience.
  • application application, APP
  • the central control may be, for example, a rich device
  • the slave device may be, for example, a thin device.
  • the priority of rich devices is higher than that of thin devices.
  • a rich device refers to a device with relatively strong central processing unit (CPU), memory, hard disk, and network capability of the rich device.
  • Thin devices refer to devices with relatively weak CPU, memory, hard disk, and network capabilities.
  • the rich device may be, for example, a mobile phone, a tablet computer (PAD), a personal computer (personal computer, PC), a smart screen, and the like.
  • Thin devices may be, for example, smart watches, earphones, smart glasses, and the like. This application does not limit this.
  • the mobile phone of the rich device is selected as the central control device.
  • users can operate TVs, tablets, computers and wireless Bluetooth headsets in the APP installed on their mobile phones.
  • the user can turn on the TV through the installed APP on the mobile phone.
  • the various electronic devices that constitute the "Hyper Terminal” are different.
  • the electronic devices that make up the "super terminal” include mobile phones, tablet computers (PADs)/personal computers (PCs), smart screens, and smart home appliances (such as smart lights, smart switches, smart refrigerators, smart ovens, smart door locks, smart curtains, etc.).
  • PAD/PC, smart screen and smart home appliances establish a connection with the mobile phone through access technologies (for example, Wi-Fi, Bluetooth, USB, Ethernet, etc.), and then the user only needs to operate the mobile phone to Control other devices in real time.
  • the user can operate the mobile phone to turn on (or turn off) smart lights, smart switches, etc.
  • the terminal devices constituting the "super terminal" include mobile phones, smart watches, earphones, smart bracelets, and the like. Taking mobile phones as rich devices as an example, smart watches, earphones, and smart bracelets establish connections with mobile phones through access technologies (for example, Wi-Fi, Bluetooth, USB, Ethernet, etc.) Control other devices.
  • the user can operate the mobile phone to turn on the headset, so that the user can listen to music (or make a call) through the headset.
  • the device networking method provided in the embodiments of the present application can be applied to mobile phones, tablets, personal computers (PCs), personal digital assistants (PDAs), smart watches, netbooks, and wearable electronic devices.
  • PCs personal computers
  • PDAs personal digital assistants
  • smart watches netbooks
  • wearable electronic devices an augmented reality (AR) device, a virtual reality (VR) device, an in-vehicle device, a smart car, a smart audio device, and other electronic devices
  • AR augmented reality
  • VR virtual reality
  • in-vehicle device a smart car
  • smart audio device and other electronic devices
  • the electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1 , Antenna 2, Mobile Communication Module 150, Wireless Communication Module 160, Audio Module 170, Speaker 170A, Receiver 170B, Microphone 170C, Headphone Interface 170D, Sensor Module 180, Key 190, Motor 191, Indicator 192, Camera 193, Display Screen 194, and a subscriber identification module (subscriber identification module, SIM) card interface 195 and so on.
  • SIM subscriber identification module
  • the above sensor module 180 may include a pressure sensor 180A, a gyro sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, Sensors such as ambient light sensor 180L and bone conduction sensor 180M.
  • the structure illustrated in this embodiment does not constitute a specific limitation on the electronic device 100 .
  • the electronic device 100 may include more or fewer components than shown, or some components may be combined, or some components may be split, or a different arrangement of components.
  • the illustrated components may be implemented in hardware, software, or a combination of software and hardware.
  • the processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (application processor, AP), a modem processor, a graphics processor (graphics processing unit, GPU), an image signal processor (image signal processor, ISP), controller, memory, video codec, digital signal processor (digital signal processor, DSP), baseband processor, and/or neural-network processing unit (NPU) Wait. Wherein, different processing units may be independent devices, or may be integrated in one or more processors.
  • application processor application processor, AP
  • modem processor graphics processor
  • graphics processor graphics processor
  • ISP image signal processor
  • controller memory
  • video codec digital signal processor
  • DSP digital signal processor
  • NPU neural-network processing unit
  • the controller may be the nerve center and command center of the electronic device 100 .
  • the controller can generate an operation control signal according to the instruction operation code and timing signal, and complete the control of fetching and executing instructions.
  • a memory may also be provided in the processor 110 for storing instructions and data.
  • the memory in processor 110 is cache memory. This memory may hold instructions or data that have just been used or recycled by the processor 110 . If processor 110 needs to use the instruction or data again, it can be called directly from the memory. Repeated accesses are avoided and the latency of the processor 110 is reduced, thereby increasing the efficiency of the system.
  • the processor 110 may include one or more interfaces.
  • the interface may include an integrated circuit (inter-integrated circuit, I2C) interface, an integrated circuit built-in audio (inter-integrated circuit sound, I2S) interface, a pulse code modulation (pulse code modulation, PCM) interface, a universal asynchronous transceiver (universal asynchronous transmitter) receiver/transmitter, UART) interface, mobile industry processor interface (MIPI), general-purpose input/output (GPIO) interface, subscriber identity module (SIM) interface, and / or universal serial bus (universal serial bus, USB) interface, etc.
  • I2C integrated circuit
  • I2S integrated circuit built-in audio
  • PCM pulse code modulation
  • PCM pulse code modulation
  • UART universal asynchronous transceiver
  • MIPI mobile industry processor interface
  • GPIO general-purpose input/output
  • SIM subscriber identity module
  • USB universal serial bus
  • the interface connection relationship between the modules illustrated in this embodiment is only a schematic illustration, and does not constitute a structural limitation of the electronic device.
  • the electronic device may also adopt different interface connection manners in the foregoing embodiments, or a combination of multiple interface connection manners.
  • the charging management module 140 is used to receive charging input from the charger.
  • the charger may be a wireless charger or a wired charger.
  • the charging management module 140 may receive charging input from the wired charger through the USB interface 130 .
  • the charging management module 140 may receive wireless charging input through a wireless charging coil of the electronic device. While the charging management module 140 charges the battery 142 , it can also supply power to the electronic device through the power management module 141 .
  • the power management module 141 is used for connecting the battery 142 , the charging management module 140 and the processor 110 .
  • the power management module 141 receives input from the battery 142 and/or the charging management module 140, and supplies power to the processor 110, the internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160.
  • the power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle times, battery health status (leakage, impedance).
  • the power management module 141 may also be provided in the processor 110 .
  • the power management module 141 and the charging management module 140 may also be provided in the same device.
  • the wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modulation and demodulation processor, the baseband processor, and the like.
  • Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals.
  • Each antenna in electronic device 100 may be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization.
  • the antenna 1 can be multiplexed as a diversity antenna of the wireless local area network. In other embodiments, the antenna may be used in conjunction with a tuning switch.
  • the mobile communication module 150 may provide wireless communication solutions including 2G/3G/4G/5G etc. applied on the electronic device 100 .
  • the mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA) and the like.
  • the mobile communication module 150 can receive electromagnetic waves from the antenna 1, filter and amplify the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation.
  • LNA low noise amplifier
  • the mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and then turn it into an electromagnetic wave for radiation through the antenna 1 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the processor 110 .
  • at least part of the functional modules of the mobile communication module 150 may be provided in the same device as at least part of the modules of the processor 110 .
  • the modem processor may include a modulator and a demodulator.
  • the modulator is used to modulate the low frequency baseband signal to be sent into a medium and high frequency signal.
  • the demodulator is used to demodulate the received electromagnetic wave signal into a low frequency baseband signal. Then the demodulator transmits the demodulated low-frequency baseband signal to the baseband processor for processing.
  • the low frequency baseband signal is processed by the baseband processor and passed to the application processor.
  • the application processor outputs sound signals through audio devices (not limited to the speaker 170A, the receiver 170B, etc.), or displays images or videos through the display screen 194 .
  • the modem processor may be a stand-alone device.
  • the modem processor may be independent of the processor 110, and may be provided in the same device as the mobile communication module 150 or other functional modules.
  • the wireless communication module 160 can provide applications on the electronic device 100 including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation Satellite system (global navigation satellite system, GNSS), frequency modulation (frequency modulation, FM), near field communication technology (near field communication, NFC), infrared technology (infrared, IR) and other wireless communication solutions.
  • WLAN wireless local area networks
  • Wi-Fi wireless fidelity
  • BT global navigation Satellite system
  • GNSS global navigation satellite system
  • frequency modulation frequency modulation, FM
  • NFC near field communication technology
  • infrared technology infrared, IR
  • the wireless communication module 160 may be one or more devices integrating at least one communication processing module.
  • the wireless communication module 160 receives electromagnetic waves via the antenna 2 , frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110 .
  • the wireless communication module 160 can also receive the signal to be sent from the processor 110 , perform frequency modulation on it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2 .
  • the antenna 1 of the electronic device 100 is coupled with the mobile communication module 150, and the antenna 2 is coupled with the wireless communication module 160, so that the electronic device 100 can communicate with the network and other devices through wireless communication technology.
  • the wireless communication technology may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), broadband Code Division Multiple Access (WCDMA), Time Division Code Division Multiple Access (TD-SCDMA), Long Term Evolution (LTE), BT, GNSS, WLAN, NFC , FM, and/or IR technology, etc.
  • the GNSS may include global positioning system (global positioning system, GPS), global navigation satellite system (global navigation satellite system, GLONASS), Beidou navigation satellite system (beidou navigation satellite system, BDS), quasi-zenith satellite system (quasi -zenith satellite system, QZSS) and/or satellite based augmentation systems (SBAS).
  • global positioning system global positioning system, GPS
  • global navigation satellite system global navigation satellite system, GLONASS
  • Beidou navigation satellite system beidou navigation satellite system, BDS
  • quasi-zenith satellite system quadsi -zenith satellite system, QZSS
  • SBAS satellite based augmentation systems
  • the electronic device 100 implements a display function through a GPU, a display screen 194, an application processor, and the like.
  • the GPU is a microprocessor for image processing, and is connected to the display screen 194 and the application processor.
  • the GPU is used to perform mathematical and geometric calculations for graphics rendering.
  • Processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
  • Display screen 194 is used to display images, videos, and the like.
  • the display screen 194 includes a display panel.
  • the display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (active-matrix organic light).
  • LED liquid crystal display
  • OLED organic light-emitting diode
  • AMOLED organic light-emitting diode
  • FLED flexible light-emitting diode
  • Mini-LED Micro-OLED, Micro-OLED, quantum dot light-emitting diode (quantum dot light emitting diodes, QLED), etc.
  • the electronic device 100 may implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, an application processor, and the like.
  • the ISP is used to process the data fed back by the camera 193 .
  • the shutter is opened, the light is transmitted to the camera photosensitive element through the lens, the light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing, and converts it into an image visible to the naked eye.
  • ISP can also perform algorithm optimization on image noise, brightness, and skin tone.
  • ISP can also optimize the exposure, color temperature and other parameters of the shooting scene.
  • the ISP may be provided in the camera 193 .
  • Camera 193 is used to capture still images or video.
  • the object is projected through the lens to generate an optical image onto the photosensitive element.
  • the photosensitive element may be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor.
  • CMOS complementary metal-oxide-semiconductor
  • the photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP to convert it into a digital image signal.
  • the ISP outputs the digital image signal to the DSP for processing.
  • DSP converts digital image signals into standard RGB, YUV and other formats of image signals.
  • the electronic device may include 1 or N cameras 193 , where N is a positive integer greater than 1.
  • a digital signal processor is used to process digital signals, in addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device selects the frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy, etc.
  • Video codecs are used to compress or decompress digital video.
  • the electronic device 100 may support one or more video codecs.
  • the electronic device can play or record videos in various encoding formats, such as: moving picture experts group (moving picture experts group, MPEG) 1, MPEG2, MPEG3, MPEG4 and so on.
  • MPEG moving picture experts group
  • MPEG2 moving picture experts group
  • MPEG3 MPEG4
  • MPEG4 moving picture experts group
  • the NPU is a neural-network (NN) computing processor.
  • NN neural-network
  • applications such as intelligent cognition of electronic devices can be realized, such as image recognition, face recognition, speech recognition, text understanding, etc.
  • the external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100 .
  • the external memory card communicates with the processor 110 through the external memory interface 120 to realize the data storage function. For example to save files like music, video etc in external memory card.
  • Internal memory 121 may be used to store computer executable program code, which includes instructions.
  • the processor 110 executes various functional applications and data processing of the electronic device 100 by executing the instructions stored in the internal memory 121 .
  • the processor 110 may execute instructions stored in the internal memory 121, and the internal memory 121 may include a program storage area and a storage data area.
  • the storage program area can store an operating system, an application program required for at least one function (such as a sound playback function, an image playback function, etc.), and the like.
  • the storage data area may store data (such as audio data, phone book, etc.) created during the use of the electronic device 100 and the like.
  • the internal memory 121 may include high-speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, universal flash storage (UFS), and the like.
  • the electronic device 100 may implement audio functions through an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, an application processor, and the like. Such as music playback, recording, etc.
  • the audio module 170 is used for converting digital audio information into analog audio signal output, and also for converting analog audio input into digital audio signal. Audio module 170 may also be used to encode and decode audio signals. In some embodiments, the audio module 170 may be provided in the processor 110 , or some functional modules of the audio module 170 may be provided in the processor 110 . Speaker 170A, also referred to as a "speaker”, is used to convert audio electrical signals into sound signals. The receiver 170B, also referred to as “earpiece”, is used to convert audio electrical signals into sound signals. The microphone 170C, also called “microphone” or “microphone”, is used to convert sound signals into electrical signals.
  • the earphone jack 170D is used to connect wired earphones.
  • the earphone interface 170D may be a USB interface 130, or a 3.5mm open mobile terminal platform (OMTP) standard interface, a cellular telecommunications industry association of the USA (CTIA) standard interface .
  • OMTP open mobile terminal platform
  • CTIA cellular telecommunications industry association of the USA
  • the keys 190 include a power-on key, a volume key, and the like. Keys 190 may be mechanical keys. It can also be a touch key. Motor 191 can generate vibrating cues. The motor 191 can be used for vibrating alerts for incoming calls, and can also be used for touch vibration feedback.
  • the indicator 192 can be an indicator light, which can be used to indicate the charging state, the change of the power, and can also be used to indicate a message, a missed call, a notification, and the like.
  • the SIM card interface 195 is used to connect a SIM card. The SIM card can be contacted and separated from the electronic device 100 by inserting into the SIM card interface 195 or pulling out from the SIM card interface 195 .
  • the electronic device 100 may support 1 or N SIM card interfaces, where N is a positive integer greater than 1.
  • the SIM card interface 195 can support Nano SIM card, Micro SIM card, SIM card and so on.
  • a device networking method provided by an embodiment of the present application is applied to a communication system 200.
  • the communication system 200 includes multiple electronic devices (for example, including mobile phones, earphones, smart screens, wristbands, tablets, etc. ); wherein, the multiple electronic devices can discover each other and authenticate each other, and if the authentication is passed, any two electronic devices in the multiple electronic devices can establish a communication connection (for example, a first communication connection) with each other, and keep it alive, thereby completing the networking process of the communication system 200 .
  • a communication connection for example, a first communication connection
  • the above-mentioned plurality of electronic devices may specifically include a first electronic device and a second electronic device.
  • the first electronic device is any one of the plurality of electronic devices
  • the second electronic device is any one of the plurality of electronic devices except the first electronic device.
  • the first electronic device may be device 1, and the second electronic device may be device 2;
  • the second electronic device is device 3; alternatively, the first electronic device is device 3, and the second electronic device is device 2; alternatively, the first electronic device and the second electronic device can be any other two of device 1, device 2, and device 3
  • the combination between the devices is not limited in this embodiment of the present application.
  • the first electronic device has the ability to discover the second electronic device, and at the same time, the first electronic device can also be discovered by the second electronic device.
  • the second electronic device has the capability of discovering the first electronic device, and at the same time, the second electronic device can also be discovered by the first electronic device.
  • the first electronic device and the second electronic device that discover each other can be authenticated, and if the authentication is passed, the first electronic device and the second electronic device establish a communication connection.
  • the first electronic device and the second electronic device may establish a communication connection through at least two physical communication methods.
  • the at least two physical communication modes may include a first communication mode and a second communication mode, that is, the first electronic device and the second electronic device are connected through the first communication mode and the second communication mode.
  • the at least two physical communication modes may be connected physical layer communication modes, or may be connectionless physical layer communication modes.
  • the physical layer communication method with connection can be, for example, Wi-Fi connection, or other physical layer connection methods; the physical layer communication method without connection can be, for example, Bluetooth (BR, BLE, etc.) connection, network port connection, or other physical connection methods , which is not limited in this application.
  • FIG. 11a is a schematic flowchart of a device networking method provided by an embodiment of the present application. As shown in FIG. 11a, the method includes:
  • the first electronic device sends a discovery message to the second electronic device.
  • the discovery message is used to indicate that the first electronic device can be discovered by other electronic devices.
  • the second electronic device scans the surrounding devices.
  • the second electronic device receives the discovery message sent by the first electronic device, that is, the second electronic device discovers the first electronic device by scanning.
  • the second electronic device sends a discovery message to the first electronic device.
  • the first electronic device scans the surrounding devices, and when the first electronic device receives the discovery message sent by the second electronic device, that is, the first electronic device discovers the second electronic device by scanning.
  • both the first electronic device and the second electronic device can serve as sender devices to send discovery messages, and can also serve as scanner devices to perform scanning. In this way, both the first electronic device and the second electronic device have discovery and discovery capabilities. Accordingly, each of the plurality of electronic devices has discovery and discovery capabilities.
  • the first electronic device sends an authentication message to the second electronic device.
  • the authentication message is used to indicate device information of the first electronic device; the device information includes the SSID, account information, and communication medium (also referred to as a communication method) of the first electronic device.
  • the SSID is used to indicate the name of the first electronic device (for example, Huawei P30); the account information is used to indicate the account information of the user using the first electronic device (for example, the user's mobile phone number, mailbox, etc.).
  • the communication medium is used to instruct the first electronic device to perform network communication.
  • the communication medium includes but is not limited to the following: wireless local area network (WLAN), peer-to-peer (P2P), BR, BLE, power line communication (PLC) .
  • the second electronic device sends an authentication message to the first electronic device.
  • the authentication message sent by the second electronic device reference may be made to the above-mentioned example description of the authentication message sent by the first electronic device, which will not be described in detail here.
  • the first electronic device After the first electronic device and the second electronic device exchange device information, the first electronic device performs authentication according to the device information sent by the second electronic device; at the same time, the second electronic device performs authentication according to the device information sent by the first electronic device. If the SSIDs of the first electronic device and the second electronic device are the same, the first electronic device and the second electronic device automatically establish a communication connection. Exemplarily, when the first electronic device is a Huawei P30 and the second electronic device is a Huawei MAX, the first electronic device and the second electronic device automatically establish a communication connection. If the SSIDs of the first electronic device and the second electronic device are different, the first electronic device and the second electronic device establish a communication connection through user authorization.
  • the user may select the SSID of the second electronic device in the first electronic device and input a password, so that the first electronic device and the second electronic device establish a communication connection. If the account information of the first electronic device and the second electronic device are the same, that is, the first electronic device and the second electronic device belong to the same user, then the first electronic device and the second electronic device can directly establish a communication connection.
  • the first electronic device and the second electronic device may establish a communication connection through at least two physical communication modes (eg, the first communication mode and the second communication mode) described in the foregoing embodiments.
  • at least two physical communication modes eg, the first communication mode and the second communication mode
  • establishing a long connection specifically refers to maintaining the first communication connection between the first electronic device and the second electronic device.
  • the first electronic device and the second electronic device can periodically trigger a heartbeat query, so that the first electronic device and the second electronic device can maintain a long connection state.
  • long connection refers to a regular and rhythmic (ie, periodic) discovery or connection means.
  • long connection is applicable to various physical layer communication modes with and without connection.
  • the connection with connection may be, for example, a Wi-Fi connection;
  • the connection without connection may be, for example, a Bluetooth connection, a network port connection, and the like.
  • the connection and non-connection may also be other connection manners, which are not limited in this application.
  • the first electronic device and the second electronic device can maintain a long connection through the first communication method and the second communication method.
  • the first communication method and the second communication method are not limited to the methods of maintaining the connection according to the traditional definitions of the communication protocols of the physical communication methods, and may also only save the connection information.
  • the connection information is used to quickly restore the long connection established by the physical communication method, or quickly use the physical communication method to perform a long connection.
  • the connection information may be, for example, relevant parameters or relevant information (such as information of the peer device) required when establishing and restoring the connection.
  • the first electronic device and the second electronic device may establish a long connection through a BLE advertisement frame.
  • the first electronic device and the second electronic device may establish a communication connection through the communication method of the BR.
  • the first electronic device and the second electronic device may establish a long connection through a connectionless IoT protocol (constrained application protocol, Coap) message.
  • a connectionless IoT protocol constrained application protocol, Coap
  • the first electronic device and the second electronic device when the first electronic device and the second electronic device establish a communication connection through USB, Ethernet, WLAN, PLC and other communication methods, and the first electronic device and the second electronic device perform service communication through IP, the first electronic device A persistent connection can be established with the second electronic device through a transmission control protocol (transmission control protocol, TCP), and a keepalive mechanism is used to maintain the persistent connection.
  • TCP transmission control protocol
  • the P2P will directly enable the first electronic device and the second electronic device to establish a long connection.
  • the periodic triggering of the heartbeat query by the first electronic device and the second electronic device refers to: the first electronic device receives the message sent by the second electronic device within the first time period through the first communication method; and then, The first electronic device confirms that the first communication connection with the second electronic device is valid within the second time period according to the message. It should be noted that, the first electronic device receives the message sent by the second electronic device in the first time period through the first communication method, which may be in various forms (for example, a response message, an inquiry message, or a service message). message, etc.).
  • the first period of time is set periodically.
  • the length of the first time period can be constant, or can be dynamically changed (eg, increase or decrease).
  • the interval between two adjacent first time periods is the start of this time to the start of the next time; or the end of this time to the end of the next time. This application does not limit this.
  • the start time of the second time period is the same as the time when the first electronic device receives the message, and the end time of the second time period is a segment after the first electronic device receives the message time.
  • the end time of the second time period is greater than or equal to the start time (or end time) of the Nth first time period.
  • FIG. 11b illustrates by taking an example that the end time of the second time period is equal to the start time of the Nth first time period.
  • the start time of the second time period is the same as the start time of the first time period this time (for example, the first time period of the first time), and the start time of the second time period
  • the end time is a period of time after the start time of the first time period.
  • the end time of the second time period is greater than or equal to the start time (or end time) of the Nth first time period.
  • FIG. 11c illustrates by taking an example that the end time of the second time period is equal to the start time of the Nth first time period.
  • the start time of the second time period is the same as the end time of the first time period of this time (eg, the first time period of the first time), and the end of the second time period The moment is a period of time after the end moment of the first period of time.
  • the end time of the second time period is greater than or equal to the start time (or end time) of the Nth first time period.
  • FIG. 11d illustrates by taking an example that the end time of the second time period is equal to the start time of the Nth first time period.
  • the first electronic device When the first electronic device confirms that the first communication connection with the second electronic device is valid within the second time period according to the message, the first electronic device conducts business with the second electronic device through the second communication method within the second time period communication.
  • the first electronic device can quickly restore the first communication connection established with the second electronic device according to the saved connection information, and perform service communication.
  • the first time period is set periodically, and it is assumed that the above-mentioned first time period is the first set first time period; the method further includes: when the first electronic device is in the first time period The first electronic device determines to disconnect from the second electronic device when the message is not received in the second set first time period; or, when the first electronic device is in the set continuous When no message is received in the first time period for N times (N>1), the first electronic device determines to disconnect from the second electronic device; or, when the first time period and the second time period at least partially overlap, and When the first electronic device does not receive the message within the first time period within the second time period, the first electronic device determines to disconnect from the second electronic device.
  • the first electronic device when the first electronic device and the second electronic device perform business communication again, the first electronic device re-establishes the first communication connection with the second electronic device.
  • the re-establishment of the first communication connection between the first electronic device and the second electronic device means that the first electronic device and the second electronic device scan and discover each other again, and then authenticate each other. If the authentication is passed, the first electronic device and the second electronic device re-establish the first communication connection.
  • the restoration of the first communication connection established by the first electronic device with the second electronic device refers to the fact that the first electronic device and the second electronic device restore the first communication connection established with the second electronic device.
  • the process of mutual scanning and discovery and mutual authentication is not required, but a request message is sent through the first electronic device, and a message replied by the second electronic device is received to restore the first communication connection.
  • the restoration of the first communication connection between the first electronic device and the second electronic device can be understood as the fact that the first communication connection established by the first electronic device and the second electronic device always exists, and the first communication connection is received within the first period of time by means of The first communication connection is maintained (ie keep alive).
  • multiple electronic devices all serve as sender devices to send handshake request messages (eg, send request messages), and multiple electronic devices all serve as receiver devices to reply handshake response messages (eg, reply messages).
  • multiple electronic devices broadcast the handshake response message as broadcaster devices.
  • the multiple electronic devices use one of the multiple electronic devices as the master device through negotiation, and other devices except the master device among the multiple electronic devices as the slave devices; on this basis, The master device can send a handshake request message to each slave device; then, each slave device replies with a handshake response message to the master device.
  • the first electronic device is any one of the multiple electronic devices
  • the second electronic device is any one of the multiple electronic devices except the first electronic device
  • the first electronic device and the second electronic device are The establishment of a long connection by the device indicates that a long connection can be established between any two electronic devices among the multiple electronic devices.
  • FIG. 12 , FIG. 13 and FIG. 14 the process of establishing a long connection between any two electronic devices among the plurality of electronic devices will be described in detail.
  • device 1 sends a handshake request message to device 2, and device 2 replies with a handshake response message to device 1; accordingly, the device 2 sends a handshake request message to device 1, and device 1 replies with a handshake response message to device 2.
  • the handshake request message may be, for example, "is online”.
  • device 1 sends a handshake request message to device 2, that is, device 1 asks whether device 2 is online. Then, device 2 detects its own network card status.
  • device 2 replies with a handshake response message, that is, device 2 replies "online”; when the network card status of device 2 is in the disconnected state, device 2
  • the handshake response message is not replied, i.e. device 2 is "not online”.
  • device 1 and device 2 can make device 1 and device 2 know that each other is "online”, and then device 1 and device 2 can complete the handshake connection.
  • online means that the electronic device is within the coverage of the communication network (or the electronic device is in a connected state with the communication network), has communication capability, and is able to communicate.
  • Offline means that the electronic device is not within the coverage of the communication network (or the electronic device is not connected to the communication network) and cannot communicate.
  • each electronic device in the plurality of electronic devices will send a handshake request message, and when each electronic device in the plurality of electronic devices replies with a handshake response message, that is, every two electronic devices in the plurality of electronic devices
  • the electronic devices complete the handshake connection with each other.
  • the above-mentioned handshake response message may be, for example, a query message.
  • the handshake connection is completed between the device 1 and the device 2, that is, the device 1 confirms that the first communication connection with the device 2 is valid within the second time period according to a message (eg, a query message). On this basis, device 1 and device 2 can directly perform service communication.
  • each of the plurality of electronic devices broadcasts a handshake response message; then, the first electronic device receives the handshake response message broadcast by other electronic devices other than the first electronic device.
  • the first electronic device receives the handshake response message broadcast by other electronic devices other than the first electronic device.
  • device 1 broadcasts a handshake response message
  • device 2 broadcasts a handshake response message
  • device 3 broadcasts a handshake response message.
  • device 1 receives the handshake response message broadcast by device 2 and device 3
  • device 2 receives the handshake response message broadcast by device 1 and device 3
  • device 3 receives the handshake response message broadcast by device 1 and device 2.
  • the device 1, device 2, and device 3 can complete the handshake connection with each other.
  • each electronic device in the plurality of electronic devices broadcasts a handshake response message, it indicates that each electronic device is "online", and then each electronic device can receive other electronic devices other than the electronic device.
  • the broadcast handshake response message is used to complete the handshake connection between every two electronic devices in the plurality of electronic devices.
  • the above-mentioned handshake response message may be, for example, a response message (acknowledge character, ACK).
  • ACK acknowledge character
  • the handshake connection is completed between the device 1 and the device 2, that is, the device 1 confirms that the first communication connection with the device 2 is valid within the second time period according to a message (eg, a response message). On this basis, device 1 and device 2 can directly perform service communication.
  • multiple electronic devices determine one master device through negotiation, and the remaining electronic devices except the master device serve as slave devices.
  • the master device sends a handshake request message to the slave device 1, and the master device 1 sends a handshake request to the slave device 2. information.
  • slave device 1 and slave device 2 receive the handshake request message sent by the master device, slave device 1 sends a handshake response message to the master device, and slave device 2 sends a handshake response message to the master device.
  • the slave device replies a handshake response message to the master device, it indicates that the slave device is "online”; when the slave device does not reply a handshake response message to the master device, it indicates that the slave device is "off-line”.
  • the slave devices in the multiple electronic devices return a handshake response message to the master device, it means that all the slave devices are "online", and then all the slave devices can complete the handshake connection with the master device.
  • the above-mentioned handshake response message may be, for example, a response message.
  • the handshake connection is completed between the device 1 and the device 2, that is, the device 1 confirms that the first communication connection with the device 2 is valid within the second time period according to a message (eg, a response message). On this basis, device 1 and device 2 can directly perform service communication.
  • a plurality of electronic devices determine a master device through negotiation. For example, among multiple electronic devices, the electronic device with the highest priority may be determined as the master device; or a master device may be determined in other ways, which is not limited in this application.
  • the priority is used to indicate the hardware performance of the device, and the hardware performance of a device with a higher priority is higher than that of a device with a lower priority.
  • Hardware performance includes one or more of processor performance, memory performance, hard disk performance, or network capability.
  • the processor performance eg CPU frequency
  • hard disk performance or network capability of a device with a high priority is stronger than that of a device with a lower priority (eg CPU frequency), hard disk performance or network capability.
  • the first electronic device confirms the priority of the second electronic device.
  • the second electronic device confirms the priority of the first electronic device.
  • the first electronic device confirms that the priority of the first electronic device is higher than the priority of the second electronic device.
  • the first electronic device confirms that the first communication connection with the second electronic device is within the second time period according to the message efficient. That is, the first electronic device with a higher priority is used to send the request message and receive the message.
  • the first electronic device and the second electronic device are in business communication (for example, through BR, BLE or P2P)
  • the first electronic device can confirm the communication with the first electronic device by receiving the service message sent by the second electronic device.
  • the first communication connection of the two electronic devices is valid for the second time period.
  • multiple electronic devices automatically form a communication network (referred to as an ad hoc network), that is, any two electronic devices between multiple electronic devices can discover and authenticate each other and establish a long connection. That is, the handshake connection is performed periodically (also called handshake keep-alive).
  • the handshake connection is performed periodically (also called handshake keep-alive).
  • any two electronic devices among the multiple electronic devices can perform business communication; and, since any two electronic devices among the multiple electronic devices periodically perform handshake connections, that is, Each electronic device can know in advance which online devices are around.
  • two electronic devices that need to conduct business communication can directly conduct business communication without mutual discovery and authentication first, and then business communication.
  • the discovery and authentication phases of the devices are omitted, the uncertainty of mutual discovery and authentication of devices is reduced, the communication delay is reduced, the communication reliability is improved, and the user experience is improved.
  • the first electronic device and the second electronic device may use the first communication method or the second communication method Make a handshake connection.
  • the first communication manner may be, for example, any one of WLAN, P2P, BR, BLE, and PLC
  • the second communication manner may be, for example, any one of WLAN, P2P, BR, BLE, and PLC.
  • the first communication manner and the second communication manner may or may not be the same.
  • the power consumption of the electronic device is different. Based on this, when the electronic device handshakes the connection, a communication medium that reduces the power consumption of the electronic device can be used.
  • the power consumption generated by the electronic device is from the smallest to the largest.
  • the order of the corresponding communication media is: BLE ⁇ BR ⁇ Wi-Fi ⁇ P2P ⁇ PLC.
  • the electronic device can select a communication medium with lower power consumption to perform a handshake connection, thereby reducing the power consumption of the electronic device.
  • the first electronic device and the second electronic device have exchanged device information with each other before establishing a persistent connection, where the device information includes a communication medium supported by the electronic device. That is to say, the first electronic device knows the communication media supported by the second electronic device, and the second electronic device knows the communication media supported by the first electronic device, so the first electronic device and the second electronic device can communicate with each other according to the communication media exchanged with each other. Handshake connection.
  • the first An electronic device may send a handshake request message to a second electronic device by using a BLE communication medium, and the second electronic device may reply a handshake response message by using a WLAN communication medium.
  • the first electronic device sends a handshake request message to the second electronic device by using a BLE communication medium, and the second electronic device uses BLE, WLAN, or may also use other communication media to reply to the handshake response message.
  • the first electronic device sends a handshake request message to the second electronic device using BLE, WLAN, and P2P communication media, and the second electronic device uses P2P communication media to reply to the handshake response message.
  • the first electronic device sends a handshake request message to the second electronic device using BLE, WLAN, and P2P communication media, and the second electronic device uses BLE, WLAN, and P2P communication media to reply to the handshake response message.
  • the first electronic device may trigger a heartbeat query according to the first time period.
  • the first electronic device may dynamically adjust the first time period for triggering the heartbeat query according to the state of the first electronic device.
  • the first electronic device is included in a static state and in a preset scene.
  • the first electronic device when the first electronic device is in a stationary state for a long time, the first electronic device may trigger a heartbeat query in a dynamic deceleration mode.
  • the first electronic device When the first electronic device is in the preset scene for a long time, the first electronic device can trigger the heartbeat inquiry in a dynamic acceleration mode.
  • the first electronic device may adjust the first time period to a third time period (for example, to 10 minutes).
  • the first electronic device can continue to Increase the length of the third time period (for example, increase to 30min), and so on.
  • the first electronic device adjusts the first time period to be the fourth time period (for example, from 5 minutes to 3 minutes).
  • the first electronic device can continue to Decrease the length of the fourth time period (eg, from 3 min to 1 min), and so on.
  • the first electronic device restores the fourth time period to the first time period.
  • the preset scene changes include: the first electronic device is changed from off-screen display to bright-screen display, and the use state of the first electronic device (for example, the user uses the first electronic device to read text, watch videos, and make language calls, etc.) changes, the absolute position of the first electronic device (for example, the position in the horizontal direction) changes, the spatial position (for example, latitude and longitude coordinates) of the first electronic , airplanes, elevators, etc.) change.
  • the first electronic device resumes the first time period. For another example, when the user holds the first electronic device from reading a text to watching a video, the first electronic device resumes the first time period. For another example, when the user holds the first electronic device and walks, the first electronic device resumes the first time period. For another example, when the user holds the first electronic device from taking a bus to taking a car, the first electronic device resumes the first time period.
  • the first electronic device when the absolute position of the first electronic device changes; or, the spatial position changes; or, when the vehicle changes, the first electronic device rediscovers the surrounding devices and establishes the first communication connection. Then, the first electronic device receives the response message sent by the surrounding device within the first time period by using the first communication method.
  • the first electronic device when the last electronic device is offline among all the electronic devices that establish a communication connection with the first electronic device, the first electronic device rediscovers the surrounding devices and establishes the first communication connection; the first electronic device passes the In the first communication mode, a response message sent from a peripheral device is received within a first time period.
  • the first electronic device when the network status of the communication system where the plurality of electronic devices are located changes, the first electronic device sends a network change message to the second electronic device, and reconfirms the establishment of the first communication connection with the second electronic device physical communication method.
  • the processor of the electronic device may be a general-purpose central processing unit (CPU), microprocessor, or the like.
  • the CPU may be a single-core processor (single-CPU) or a multi-core (multi-CPU) processor.
  • the module for triggering the heartbeat query by the first electronic device may be set on a low-power-consumption core (eg, SensorHub, M3 core). In this way, the power consumption of the device can be reduced.
  • a low-power-consumption core eg, SensorHub, M3 core
  • OTA over-the-air technology
  • the APP installed on the electronic device needs to be updated with the remote cloud server Therefore, it is necessary to periodically wake up the processor (such as a CPU) and related communication modules (such as a Wi-Fi chip) of the electronic device.
  • a heartbeat query can be triggered within the wake-up period of the electronic device (that is, the wake-up period is the same as the period of the periodically set first time period), thereby reducing power consumption of the device.
  • the CPU wake-up function of the electronic device is preferentially set inside the chip, followed by the low-power core, and then on the APP, so as to minimize the number and time of CPU wake-up of the electronic device. .
  • multiple electronic devices may agree on the same wake-up period through negotiation. For example, multiple electronic devices first negotiate to determine a master device, and other devices except the master device serve as slave devices. Then, the master device first determines its own wake-up period, and then the master device sends its own wake-up period to each slave device, so that the wake-up periods of multiple electronic devices are the same. In some embodiments, the master device may determine the wake-up period of the master device according to the periodic connection established between the APP installed on the master device and the remote cloud server.
  • the remote cloud server periodically pushes messages to the main device, and the main device sends messages to the main device according to the remote cloud server.
  • the period of push messages determines the wake-up period.
  • the main device may determine the wake-up period according to the period in which the remote cloud server pushes a message to an APP installed on the main device; The cycle of each APP push message determines the wake-up cycle.
  • multiple apps installed on the master device may negotiate with the remote cloud service , and set the period for the remote cloud service to push messages to multiple apps installed on the main device as the same period.
  • FIG. 15 it is a schematic diagram of triggering a heartbeat query in a wake-up period according to an embodiment of the present application. 14, it can be seen that the wake-up period of the first electronic device and the second electronic device is the same (for example, 5min), and the first electronic device and the second electronic device synchronize the wake-up clock and align the wake-up window; wherein, the wake-up window includes Wake state and background state. On this basis, the first electronic device and the second electronic device trigger a heartbeat query in a background state.
  • the first electronic device and the second electronic device while aligning the wake-up window, also align the window for triggering the heartbeat query, that is, the first electronic device and the second electronic device are in the same
  • the heartbeat query is triggered at all times, so that the CPU (or chip) can be used with the lowest power consumption by dynamically adjusting the duty cycle.
  • the first electronic device when the first electronic device is in a stationary state for a long time, the first electronic device will trigger the heartbeat inquiry in a slow-down mode. That is to say, the period for which the first electronic device triggers the heartbeat inquiry will always be prolonged (for example, from 5min to 10min, to 30min, 1hour or even longer).
  • the heartbeat inquiry period of the first electronic device ie the period of the periodically set first time period
  • the wake-up period for example, the heartbeat inquiry period is 10 minutes, and the wake-up period is 5 minutes
  • the first electronic device will forcibly wake up the first electronic device to trigger the heartbeat inquiry.
  • each electronic device in the plurality of electronic devices is aligned with the wake-up period, and the wake-up period of each electronic device is the same; on this basis, each electronic device can trigger a heartbeat inquiry within the wake-up period , so the power consumption of the device can be further reduced.
  • the application scenario as a home scenario and the first electronic device as a mobile phone as an example, exemplarily, as shown in Figure 16, when the user logs in to the APP on the mobile phone that controls the home smart device, the APP interface of the mobile phone will directly display that the handshake with the mobile phone is completed.
  • Connected devices e.g. smart screens, tablets, computers, speakers. That is to say, the APP interface of the mobile phone will directly display the currently online smart home devices.
  • the user can directly click on any online device to make the mobile phone communicate with the device. For example, the user can click on the speaker to play the music on the phone through the speaker.
  • the APP interface of the mobile phone also displays the smart home devices (such as mobile phones, etc.) that are not currently online.
  • the display modes of the online smart device and the offline smart device are inconsistent. For example, smart devices that are not online are grayed out.
  • the APP interface of the mobile phone will also display indication information. This indicator is used to indicate that the phone is scanning for other devices around it. It should be understood that the other device is a device that has not established a communication connection with the mobile phone; or a device that has established a communication connection with the mobile phone before, but is disconnected later.
  • the APP interface of the mobile phone also includes devices (such as Bluetooth headsets, air purifiers, etc.) that are in business communication with the mobile phone.
  • devices such as Bluetooth headsets, air purifiers, etc.
  • a user can use a Bluetooth headset to listen to music or make a call.
  • the APP interface of the mobile phone when the user needs to use the mobile phone to open any device in the smart home devices, the APP interface of the mobile phone will directly display the currently online device, so that the user can directly open the device through the mobile phone, saving the mobile phone Scan time for online devices, thereby reducing user waiting time and improving user experience.
  • An embodiment of the present application provides an electronic device, and the electronic device may include: a memory and one or more processors.
  • the memory is used to store computer program code comprising computer instructions.
  • the processor executes the computer instructions, the electronic device can perform various functions or steps performed by the electronic device in the foregoing method embodiments.
  • the structure of the electronic device reference may be made to the structure of the electronic device 100 shown in FIG. 9 .
  • the chip system 1800 includes at least one processor 1801 and at least one interface circuit 1802 .
  • the processor 1801 may be the processor 110 shown in FIG. 9 in the foregoing embodiment.
  • the interface circuit 1802 can be, for example, an interface circuit between the processor 110 and the external memory 120 ; or an interface circuit between the processor 110 and the internal memory 121 .
  • the above-mentioned processor 1801 and the interface circuit 1802 may be interconnected by wires.
  • the interface circuit 1802 may be used to receive signals from other devices, such as the memory of an electronic device.
  • the interface circuit 1802 may be used to send signals to other devices (eg, the processor 1801).
  • the interface circuit 1802 can read the instructions stored in the memory and send the instructions to the processor 1801 .
  • the electronic device can be made to execute each step executed by the mobile phone 180 in the above embodiment.
  • the chip system may also include other discrete devices, which are not specifically limited in this embodiment of the present application.
  • Embodiments of the present application further provide a computer storage medium, where the computer storage medium includes computer instructions, when the computer instructions are executed on an electronic device, the electronic device is made to perform each function or step performed by the electronic device in the above method embodiments .
  • Embodiments of the present application further provide a computer program product, which, when the computer program product runs on a computer, enables the computer to perform each function or step performed by the electronic device in the foregoing method embodiments.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are only illustrative.
  • the division of the modules or units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be Incorporation may either be integrated into another device, or some features may be omitted, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place, or may be distributed to multiple different places . Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it may be stored in a readable storage medium.
  • the technical solutions of the embodiments of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, which are stored in a storage medium , including several instructions to make a device (may be a single chip microcomputer, a chip, etc.) or a processor (processor) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (random access memory, RAM), magnetic disk or optical disk and other media that can store program codes.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

一种设备组网方法、电子设备及存储介质,涉及通信技术领域,可以解决第一电子设备和第二电子设备通信时延较高的问题。该方法应用于通信系统中,该通信系统包括多个电子设备。该方法包括:第一电子设备与第二电子设备建立第一通信连接;第一通信连接包括第一电子设备和第二电子设备通过第一通信方式和第二通信方式连接;第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文;第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效;第一电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信。

Description

一种设备组网方法、电子设备及存储介质
本申请要求于2021年04月28日提交国家知识产权局、申请号为202110464411.6、发明名称为“一种实现多种移动终端间互联的软总线方法”的中国专利申请的优先权,以及于2021年11月09日提交国家知识产权局、申请号为202111322529.1、发明名称为“一种设备组网方法、电子设备及存储介质”的中国专利申请的优先权,其全部内通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,尤其涉及一种设备组网方法、电子设备及存储介质。
背景技术
随着智能设备的发展,一个用户或者家庭中往往具备多个能够相互通信的电子设备。各类电子设备一般具有各自的设备特点,例如手机的便携性更好,电视屏幕的显示效果更好,而音箱的音质效果更好。为了充分发挥不同电子设备的设备特点,多个电子设备之间可以进行组网,从而将多个电子设备互联进行协同工作。
以星型拓扑结构的组网过程为例,多个电子设备在进行组网时可将预设的某一电子设备(例如电视、路由器或手机等)确定为中心设备。进而,除中心设备之外的每个电子设备可以作为外围设备与中心设备建立通信连接(例如蓝牙连接、Wi-Fi连接等),以形成星型拓扑结构的局域网。这样,中心设备作为中心节点可用于管理和控制该局域网中的各个外围设备,完成相应的工作任务。
但是,在每一次外围设备与外围设备进行业务通信之前,都需要先发现、认证,建立通信连接,然后才能进行业务通信。这样一来,就会导致外围设备与外围设备的通信时延较高,进而影响用户体验。
发明内容
本申请实施例提供一种设备组网方法,电子设备及存储介质,用于解决第一电子设备与第二电子设备通信时延较高的问题。
为达到上述目的,本申请的实施例采用如下技术方案:
第一方面,提供了一种设备组网方法,应用于通信系统中;该通信系统包括多个电子设备。该方法包括:第一电子设备与第二电子设备建立第一通信连接;第一通信连接包括第一电子设备和第二电子设备通过第一通信方式和第二通信方式连接;第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文;第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效;第一电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信。
基于第一方面,在第一电子设备与第二电子设备建立第一通信连接时,第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文,第一电子设备可以根据报文确认与第二电子设备的第一通信连接在第二时间段内有效,即第一电子设备根据报文确认与第二电子设备在第二时间段内保持连接(即保活),以使第一 电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信。由于第一电子设备根据报文确认与第二电子设备在第二时间段内保活,因此第一电子设备和第二电子设备在第二时间段内可以直接进行业务通信,不需要在每次进行业务通信之前,先确认保活,从而提高了通信时延。并且,由于第一电子设备和第二电子设备通过第一通信方式和第二通信方式建立的第一通信连接,因此,第一电子设备接收第二电子设备发送的报文、第一电子设备和第二电子设备进行业务通信可采用不同的通信方式,提高了通信可靠性。
在第一方面的一种可能的设计方式中,在第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文之前,该方法还包括:第一电子设备通过第一通信方式和第二通信方式,在第一时间段内广播或单播请求报文;请求报文用于指示第一电子设备请求与第二电子设备保持第一通信连接。
在这种设计方式中,第一电子设备可以通过第一通信方式和第二通信方式在第一时间段内广播或单播请求报文,以使第二电子设备根据请求报文回复报文,提高了通信可靠性。
在第一方面的一种可能的设计方式中,在第一通信连接在第二时间段内有效的情况下,第一电子设备保存有第二通信连接的连接信息;第一电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信,包括:第一电子设备根据连接信息恢复与第二电子设备建立的第一通信连接并进行业务通信。
在这种设计方式中,由于第一电子设备可以根据连接信息(例如第二电子设备的信息),快速恢复与第二电子设备建立的第一通信连接并进行业务通信,从而进一步提高了通信时延。
在第一方面的一种可能的设计方式中,第一电子设备的优先级高于第二电子设备的优先级;优先级用于指示设备的硬件性能,优先级高的设备的硬件性能高于优先级低的设备的硬件性能;硬件性能包括处理器性能、内存性能、硬盘性能或网络能力中的一个或多个;第一电子设备与第二电子设备建立第一通信连接,包括:第一电子设备与第二电子设备建立第一通信连接,并确定第二电子设备的优先级;第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效,包括:在第一电子设备根据第一电子设备的优先级高于第二电子设备的情况下,第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效。
在这种设计方式中,第一电子设备在与第二电子设备在建立第一通信连接时,确认第二电子设备的优先级,若第一电子设备的优先级高于第二电子设备的优先级,第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效,即优先级高的第一电子设备确认第一电子设备和第二电子设备中哪个设备发送请求报文和接收报文,进一步提高了通信可靠性。
在第一方面的一种可能的设计方式中,第一时间段时周期性设置的;第一时间段为所设置的第一次的第一时间段;该方法还包括:当第一电子设备在第一时间段为所设置的第二次的第一时间段时,第一电子设备确定与第二电子设备断开连接;或者,当第一电子设备在第一时间段为所设置的连续N次的第一时间段时,第一电子设备确定与第二电子设备断开连接;或者,当第一时间段和第二时间段至少部分重叠,且第 一电子设备在第二时间段内的第一时间段均未收到响应报文时,第一电子设备确定与第二电子设备断开连接。
在这种设计方式中,当第一电子设备长时间未收到第二电子设备发送的报文时,第一电子设备确定与第二电子设备断开连接,有利于提高通信可靠性。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备与第二电子设备再次进行业务通信时,第一电子设备重新与第二电子设备建立第一通信连接。
在这种设计方式中,当第一电子设备确定与第二电子设备断开连接时,若第一电子设备与第二电子设备再次进行业务通信,第一电子设备重新与第二电子设备建立第一通信连接,从而可以正常进行业务通信,提高了通信可靠性。
在第一方面的一种可能的设计方式中,报文包括响应报文、问询报文或者业务报文中的一种。
在这种设计方式中,由于报文可以是响应报文、或者问询报文或者业务报文,因此在第一电子设备接收到第二电子设备发送的响应报文、或者问询报文或者业务报文任意一种报文的情况下,第一电子设备都能确认与第二电子设备的第一通信连接在第二时间段内有效,进一步提高了通信可靠性。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备在第一时间段内保持静止状态,且第一电子设备接收所述第二电子设备发送的响应报文的次数大于第一预设次数,第一电子设备调整第一时间段为第三时间段;第三时间段的长度大于第一时间段的长度。
在这种设计方式中,当第一电子设备长时间保持静止状态,且第一电子设备接收第二电子设备发送的响应报文的次数大于第一预设次数。那么,第一电子设备可将第一时间段调整为第三时间段,由于第三时间段的长度大于第一时间段的长度,即第一电子设备采用降速的方式接收第二电子设备发送的报文,有利于减少设备功耗。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备在第一时间段内处于预设场景中,且第一电子设备接收第二电子设备发送的响应报文的次数大于第二预设次数时,第一电子设备调整第一时间段为第四时间段;第四时间段的长度小于第一时间段的长度。
在这种设计方式中,当第一电子设备长时间处于预设场景中,且第一电子设备接收第二电子设备发送的响应报文的次数大于第二预设次数时,第一电子设备可将第一时间段调整为第四时间段,由于第四时间段的长度小于第一时间段的长度,即第一电子设备采用加速的模式接收第二电子设备发送的报文,确保第一电子设备与第二电子设备保持连接。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备所处的预设场景发生变化时,第一电子设备将第四时间段恢复为第一时间段;预设场景发生变化包括第一电子设备由灭屏显示变为亮屏显示。
在这种设计方式中,当第一电子设备由灭屏显示变为亮屏显示时,第一电子设备恢复第一时间段,并在第一时间段内接收报文,有利于减少设备功耗。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备所处的场景发生变化时,第一电子设备将第四时间段恢复为第一时间段;预设场景发生变化包 括第一电子设备的使用状态发生变化。
在这种设计方式中,当第一电子设备的使用状态发生变化时,第一电子设备恢复第一时间段,并在第一时间段内接收报文,有利于减少设备功耗。
在第一方面的一种可能的设计方式中,该方法还包括:当第一电子设备所处的场景发生变化时,第一电子设备重新发现周围的设备,并建立第一通信连接;场景发生变化包括绝对位置发生变化、空间位置发生变化、交通工具发生变化;第一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的报文。
在这种设计方式中,当第一电子设备的绝对位置发生变化,空间位置发生变化以及交通工具发生变化时,第一电子设备重新发现周围的设备,并建立第一通信连接;第一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的报文,以使第一电子设备可以和周围的设备保持连接,提高了通信可靠性。
在第一方面的一种可能的设计方式中,该方法还包括:当与第一电子设备建立第一通信连接的所有电子设备中,最后一个电子设备离线时,第一电子设备重新发现周围的设备,并建立第一通信连接;第一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的报文。
在这种设计方式中,当与第一电子设备建立第一通信连接的所有电子设备都离线时,第一电子设备重新发现周围的设备,并建立第一通信连接;而后,第一电子设备通通过第一通信方式,在第一时间段内接收来自周围设备发送的报文,以使第一电子设备可以和周围设备保持连接,提高了通信可靠性。
在第一方面的一种可能的设计方式中,该方法还包括:当多个电子设备所处的通信系统的网络状态发生变化时,第一电子设备向第二电子设备发送网络变更消息,并重新确认与第二电子设备建立第一通信连接时的物理通信方式。
在这种设计方式中,当多个电子设备的网络状态发生变化(例如网络中断、网络延时等),第一电子设备通知第二电子设备网络发生了变化,并重新确认与第二电子设备建立第一通信连接时的物理通信方式,提高了通信可靠性。
在第一方面的一种可能的设计方式中,该方法还包括:第一电子设备根据第一电子设备上第一应用和第一应用的云服务器建立的周期性连接,确定第一电子设备的唤醒周期;第一应用为第一电子设备上的任一应用;第一电子设备将唤醒周期同步至第二电子设备;唤醒周期和周期性设置的第一时间段相同。
在这种设计方式中,第一电子设备根据唤醒周期设置周期性的第一时间段,即唤醒周期与周期性设置的第一时间段的周期相同,从而使第一电子设备和第二电子设备在唤醒周期内接收报文,有利于减少设备功耗。
在第一方面的一种可能的设计方式中,该方法还包括:第一电子设备响应于用户对第二应用的操作,显示第一界面;第一界面包括与第一电子设备保持第一通信连接的至少一个电子设备;至少一个电子设备包括第二电子设备;第一电子设备响应于用户对第二电子设备的操作,与第二电子设备进行业务通信。
在这种设计方式中,由于第一电子设备的第一界面可以直接显示与第一电子设备保持第一通信连接的至少一个电子设备,而至少一个电子设备中包括第二电子设备,因此在第一电子设备想要与第二电子设备进行业务通信时,不需要先扫描第二电子设 备,即可直接与其进行业务通信,减少了用户的等待时间,提高了用户体验。
在第一方面的一种可能的设计方式中,第一界面还包括与第一电子设备断开连接的至少一个电子设备。
在这种设计方式中,由于第一界面还显示与第一电子设备断开连接的至少一个电子设备,这样一来,当用户手持第一电子设备需要与至少一个电子设备中的任意一个电子设备进行业务通信时,用户可直接点击该电子设备,以使该电子设备与第一电子设备建立第一通信连接,提高了用户的体验。
在第一方面的一种可能的设计方式中,第一界面还包括指示信息;指示信息用于指示正在扫描第三电子设备;第三电子设备为多个电子设备中,与第一电子设备断开连接的设备;或者,第三电子设备为首次与第一电子设备建立第一通信连接的设备。
在这种设计方式中,用户可以根据第一界面显示的指示信息,知道与第一电子设备断开连接的第三电子设备;或者首次与第一电子设备建立第一通信连接的电子设备,有利于进一步提高用户体验。
在第一方面的一种可能的设计方式中,第一电子设备包括处理器;处理器包括多个处理核;多个处理核中包括低功耗核;该方法还包括:第一电子设备通过低功耗核,在第一时间段内接收第二电子设备发送的报文。
在这种设计方式中,通过将第一电子设备和第二电子设备保活的机制设置在低功耗核上,有利于减少设备功耗。
第二方面,提供一种电子设备,该电子设备为第一电子设备;电子设备包括存储器和一个或多个处理器;存储器中存储有计算机程序代码,计算机程序代码包括计算机指令,当计算机指令被处理器执行时,使得电子设备执行如下步骤:第一电子设备与第二电子设备建立第一通信连接;第一通信连接包括第一电子设备和第二电子设备通过第一通信方式和第二通信方式连接;第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文;第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效;第一电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信。
在第二方面的一种可能的设计方式中,在第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文之前,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:第一电子设备通过第一通信方式和第二通信方式,在第一时间段内广播或单播请求报文;请求报文用于指示第一电子设备请求与第二电子设备保持第一通信连接。
在第二方面的一种可能的设计方式中,在第一通信连接在第二时间段内有效的情况下,第一电子设备保存有第二通信连接的连接信息;当计算机指令被处理器执行时,使得电子设备具体执行如下步骤:第一电子设备根据连接信息恢复与第二电子设备建立的第一通信连接并进行业务通信。
在第二方面的一种可能的设计方式中,第一电子设备的优先级高于第二电子设备的优先级;优先级用于指示设备的硬件性能,优先级高的设备的硬件性能高于优先级低的设备的硬件性能;硬件性能包括处理器性能、内存性能、硬盘性能或网络能力中的一个或多个;当计算机指令被处理器执行时,使得电子设备具体执行如下步骤:第 一电子设备与第二电子设备建立第一通信连接,并确定第二电子设备的优先级;当计算机指令被处理器执行时,使得电子设备具体执行如下步骤:在第一电子设备根据第一电子设备的优先级高于第二电子设备的情况下,第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效。
在第二方面的一种可能的设计方式中,第一时间段时周期性设置的;第一时间段为所设置的第一次的第一时间段;当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备在第一时间段为所设置的第二次的第一时间段时,第一电子设备确定与第二电子设备断开连接;或者,当第一电子设备在第一时间段为所设置的连续N次的第一时间段时,第一电子设备确定与第二电子设备断开连接;或者,当第一时间段和第二时间段至少部分重叠,且第一电子设备在第二时间段内的第一时间段均未收到响应报文时,第一电子设备确定与第二电子设备断开连接。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备与第二电子设备再次进行业务通信时,第一电子设备重新与第二电子设备建立第一通信连接。
在第二方面的一种可能的设计方式中,报文包括响应报文、问询报文或者业务报文中的一种。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备在第一时间段内保持静止状态,且第一电子设备接收所述第二电子设备发送的响应报文的次数大于第一预设次数,第一电子设备调整第一时间段为第三时间段;第三时间段的长度大于第一时间段的长度。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备在第一时间段内处于预设场景中,且第一电子设备接收第二电子设备发送的响应报文的次数大于第二预设次数时,第一电子设备调整第一时间段为第四时间段;第四时间段的长度小于第一时间段的长度。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备所处的预设场景发生变化时,第一电子设备将第四时间段恢复为第一时间段;预设场景发生变化包括第一电子设备由灭屏显示变为亮屏显示。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备所处的场景发生变化时,第一电子设备将第四时间段恢复为第一时间段;预设场景发生变化包括第一电子设备的使用状态发生变化。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当第一电子设备所处的场景发生变化时,第一电子设备重新发现周围的设备,并建立第一通信连接;场景发生变化包括绝对位置发生变化、空间位置发生变化、交通工具发生变化;第一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的报文。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当与第一电子设备建立第一通信连接的所有电子设备中,最后一个电子设备离线时,第一电子设备重新发现周围的设备,并建立第一通信连接;第 一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的报文。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:当多个电子设备所处的通信系统的网络状态发生变化时,第一电子设备向第二电子设备发送网络变更消息,并重新确认与第二电子设备建立第一通信连接时的物理通信方式。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:第一电子设备根据第一电子设备上第一应用和第一应用的云服务器建立的周期性连接,确定第一电子设备的唤醒周期;第一应用为第一电子设备上的任一应用;第一电子设备将唤醒周期同步至第二电子设备;唤醒周期和周期性设置的第一时间段相同。
在第二方面的一种可能的设计方式中,当计算机指令被处理器执行时,使得电子设备还执行如下步骤:第一电子设备响应于用户对第二应用的操作,显示第一界面;第一界面包括与第一电子设备保持第一通信连接的至少一个电子设备;至少一个电子设备包括第二电子设备;第一电子设备响应于用户对第二电子设备的操作,与第二电子设备进行业务通信。
在第二方面的一种可能的设计方式中,第一界面还包括与第一电子设备断开连接的至少一个电子设备。
在第二方面的一种可能的设计方式中,第一界面还包括指示信息;指示信息用于指示正在扫描第三电子设备;第三电子设备为多个电子设备中,与第一电子设备断开连接的设备;或者,第三电子设备为首次与第一电子设备建立第一通信连接的设备。
在第二方面的一种可能的设计方式中,第一电子设备包括处理器;处理器包括多个处理核;多个处理核中包括低功耗核;当计算机指令被处理器执行时,使得电子设备还执行如下步骤:第一电子设备通过低功耗核,在第一时间段内接收第二电子设备发送的报文。
第三方面,提供一种通信系统,包括多个电子设备;多个电子设备包括第一电子设备和第二电子设备;第一电子设备为多个电子设备中任意一个电子设备,第二电子设备为多个电子设备中,除了第一电子设备以外的其他电子设备;第一电子设备用于执行上述第一方面或者第一方面的一种可能的设计中所述的设备组网方法。
第四方面,提供一种计算机可读存储介质,其特征在于,包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面或者第一方面的一种可能的设计中所述的设备组网方法。
第五方面,提供一种计算机程序产品,计算机程序产品包括计算机指令,当计算机指令在电子设备上运行时,使得电子设备执行如第一方面或者第一方面的一种可能的设计中所述的设备组网方法。
可以理解的是,上述第二方面及其任一种可能的设计方式所述的电子设备,第三方面所述的通信系统,第四方面所述的计算机可读存储介质以及第五方面所述的计算机程序产品所能达到的有益消息,可参考第一方面及其任一种可能的设计方式中的有益效果,此处不再赘述。
附图说明
图1为本申请实施例提供的一种AP与STA组成的网络的结构示意图;
图2为本申请实施例提供的AP与STA组网的流程示意图;
图3为本申请实施例提供的一种master与slave组成的网络的结构示意图;
图4为本申请实施例提供的master与slave组网的流程示意图;
图5为本申请实施例提供的一种手机的界面示意图;
图6为本申请实施例提供的一种超级终端的结构示意图;
图7为本申请实施例提供的另一种超级终端的结构示意图;
图8为本申请实施例提供的又一种超级终端的结构示意图;
图9为本申请实施例提供的一种电子设备的结构示意图;
图10为本申请实施例提供的一种通信系统的结构示意图;
图11a为本申请实施例提供的一种设备组网方法的流程示意图;
图11b为本申请实施例提供的一种第一时间段与第二时间段的关系示意图;
图11c为本申请实施例提供的另一种第一时间段与第二时间段的关系示意图;
图11d为本申请实施例提供的又一种第一时间段与第二时间段的关系示意图;
图12为本申请实施例提供的一种设备握手连接的流程示意图;
图13为本申请实施例提供的另一种设备握手连接的流程示意图;
图14为本申请实施例提供的又一种设备握手连接的流程示意图;
图15为本申请实施例提供的一种在唤醒周期内触发心跳问询的示意图;
图16为本申请实施例提供的另一种手机界面的示意图;
图17为本申请实施例提供的一种芯片系统的结构示意图。
具体实施方式
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行描述。其中,在本申请的描述中,除非另有说明,“/”表示前后关联的对象是一种“或”的关系,例如,A/B可以表示A或B;本申请中的“和/或”仅仅是一种描述关联对象的关联关系,表示可以存在三种关系,例如,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可以是单个,也可以是多个。另外,为了便于清楚描述本申请实施例的技术方案,在本申请的实施例中,采用了“第一”、“第二”等字样对功能和作用基本相同的相同项或相似项进行区分。本领域技术人员可以理解“第一”、“第二”等字样并不对数量和执行次序进行限定,并且“第一”、“第二”等字样也并不限定一定不同。同时,在本申请实施例中,“示例性的”或者“例如”等词用于表示作例子、例证或说明。本申请实施例中被描述为“示例性的”或者“例如”的任何实施例或设计方案不应被解释为比其它实施例或设计方案更优选或更具优势。确切而言,使用“示例性的”或者“例如”等词旨在以具体方式呈现相关概念,便于理解。
此外,本申请实施例描述的网络架构以及业务场景是为了更加清楚的说明本申请实施例的技术方案,并不构成对于本申请实施例提供的技术方案的限定,本领域普通 技术人员可知,随着网络架构的演变和新业务场景的出现,本申请实施例提供的技术方案对于类似的技术问题,同样适用。
星型拓扑结构的局域网可以为无线接入点(access point,AP)和客户端(station,STA)组成的网络通过无线保真(wireless-fidelity,Wi-Fi)的通信方式组成的网络;也可以为主设备(master)和从设备(slave)通过经典蓝牙(basic rate,BR)/低功耗蓝牙(bluetooth low energy,BLE)的通信方式组成的网络。在一些实施例中,AP-STA-云服务器组成的网络以及master与slave组成的网络可以称为一个“纵向”网络。
其中,星型拓扑结构的局域网的组网过程包括设备发现、设备认证和设备保持连接(简称保活)。其中,设备发现指的是中心设备发现周围的外围设备(或者外围设备发现周围的中心设备);设备认证指的是中心设备对发现的外围设备进行认证,若认证通过,中心设备可与外围设备建立连接;设备保持连接指的是中心设备与外围设备之间通过发送报文的方式进行业务通信,使得中心设备与外围设备一直保持连接关系。
其中,AP和STA组成的网络可以为一种无线局域网络(wireless local area networks,WLAN)。如图1所示,STA1、STA2、···、STAN可以通过Wi-Fi与AP建立通信连接;而后,STA1、STA2、···、STAN可以和AP进行业务通信,并通过AP访问远端的云服务器。其中,AP可以是无线路由器,也可以是具有Wi-Fi功能模块的电子设备,图2以AP为无线路由器为例进行示意。
结合图1,如图2所示,STA通过Wi-Fi扫描周围的AP,而后,AP向STA发送服务集标识(service set identifier,SSID),STA接收到AP发送的SSID后,选择相应的SSID并输入密码进行认证;若认证通过(即密码正确)时,STA与AP协商通信信道,并通过通信信道进行通信。最后,AP向STA发送信标(beacon)帧,STA周期性地监听AP发送的beacon帧,进行保活。在一些实施例中,图2所示的STA发现连接AP,并保活的方式也可以称为Soft AP方式。
在图2所示的AP与STA组成的网络中,一方面,当AP与STA进行保活时,会导致AP的功耗较高,并且,当两个STA需要进行业务通信时,首先要进行相互发现,认证。,然后才能进行业务通信,导致STA的通信时延较高。另一方面,AP与STA只能通过WLAN进行组网,不能通过其他通信介质进行组网。
如图3所示,slaveA、slaveB、···、slaveN可以通过BLE/BR与master建立通信连接,而后,slaveA、slaveB、···、slaveN可以和master进行业务通信。结合图3,如图4所示,slave可以在广播信道中发送广播消息(例如ADV_IND或者ADV_DIRECT_IND),该广播消息用于指示slave的状态为可连接状态;master可以在广播信道中进行扫描,当master接收到广播消息时,即master发现slave,并向slave发送扫描请求(scan request);当slave接收到扫描请求后,向发送连接请求的master回复扫描响应(scan response)。其中,slave回复的扫描响应例如可以为CONNECT_REQ。而后,master向slave发送连接请求,当slave接收到连接请求后,master和slave约定在相同的信道内建立连接,并进行通信。示例性的,master和slave可以采用普通属性协议(generic attribute profile,GATT)进行通信。当master和slave通过BLE的通信方式进行组网时,在一些实施例中,仍如图4所示,master会周期性的向slave发送连 接事件,slave周期性地监听master发送的连接事件,进行保活。另外,当master和slave通过BR的通信方式进行组网时,master和slave会一直处于保活状态。
在图3所示的master和slave之间组成的网络中,若slaveA、slaveB、···、slaveN和master包括多个同一类型的设备,则多个同类型的设备容易发生错配;并且,slave之间无法直接通信,需要通过远端的云服务器建立通信。另一方面,若slaveA、slaveB、···、slaveN与master的通信介质不同,则slave与master无法进行组网。
基于上述可知,在AP和STA组成的网络中,或者master和slave组成的网络中,当中心设备不存在(例如设备未通电,或者设备损坏)时,则网络不存在,使得各个外围设备之间无法通信。当中心设备存在(例如正常工作)时,且外围设备与中心设备组成的网络存在,位于星型拓扑结构的局域网内的中心设备能与外围设备进行业务通信,但各个外围设备之间不能直接进行业务通信。例如,Wi-Fi组网(即AP和STA组网)场景下,STA1和STA2之间不能直接进行业务通信。蓝牙组网(即slave和master组网)场景下,slaveA和slaveB之间不能直接进行业务通信。进而,在每一次外围设备与外围设备(例如STA1和STA2、slaveA和slaveB)尝试进行业务通信时,外围设备之间都需要进行相互发现;也就是说,外围设备向相互通信,必须先相互扫描或者发现,才能协商通信。这样一来,就会导致外围设备与外围设备的通信时延不可控,若用户使用通信应用有通信诉求时,可能需要用户长时间(秒级甚至分钟级)的等待,降低了用户体验。
示例性的,以手机为例,如图5所示,当用户手持手机需要打开电视机时,手机的界面显示扫描控件1,在用户点击扫描控制1后,手机开始与周围在线的设备进行握手连接(即手机开始扫描周围在线的设备)。在经过一段扫描时长后,手机的界面会显示与手机完成握手连接的设备,而后,用户点击手机界面的任一设备(例如电脑)后,手机与该设备可以进行业务通信。可以看出,在手机扫描周围在线的设备时,需要用户长时间的等待,这样就会降低用户体验。
需要说明的是,在图5中,手机显示的界面还包括与手机正在进行业务通信的设备(例如蓝牙耳机和空气净化器)。
基于此,本申请实施例提供一种设备组网方法,应用于通信网络中;该通信网络不依赖于通用的AP-STA,或者master-slave组成的星型网络。该方法可以使多个电子设备自动组成一个通信网络(简称自组网),即多个电子设备之间任意两个电子设备可以相互发现、认证并建立长连接,长连接即周期性的进行握手连接(也可以称为握手保活)。这样一来,在自组网内,多个电子设备中的任意两个电子设备均可以进行业务通信;并且,由于多个电子设备中任意两个电子设备之间周期性的进行握手连接,即每个电子设备都可以预先知道周围有哪些在线的设备,这样一来,需要进行业务通信的两个电子设备可以直接进行业务通信,不需要先进行相互发现、认证,然后再进行业务通信,从而省去了设备在通信阶段中,发现、认证的阶段,减少了设备相互发现、认证的不确定性,在降低通信时延的同时提高了通信可靠性,并提升了用户体验。
示例性的,通过在设备中内置软总线,以使设备之间可以自组网。其中,软总线具有发现与连接的能力,可以为各个电子设备之间提供高吞吐、低时延、高可靠、安全可信的通信信道,为各个电子设备之间提供无线接近本地化访问效果的分布式智慧 化通信高速公路网。当电子设备中内置软总线后,使得电子设备具有发现与被发现的能力。
需要说明的是,本申请实施例中,多个电子设备自组网可以是多个外围设备之间自组网,也可以是中心设备与多个外围设备之间自组网。例如,STA1、STA2、···、STAN之间自组网;或者,slaveA、slaveB、···、slaveN、master之间自组网。另外,在本申请中,多个电子设备之间组成的新的网络也称为“横向”网络;其中,“横向”网络指的是电子设备不依赖于远端的云服务器,相互之间自动组成的网络。示例性的,多个电子设备自组网可以为在通信角色对等的设备之间自组网,如存在AP-STA“纵向”网络的对等设备(STA)之间;或者,存在master-slave“纵向”网络的对等设备(slave)之间;或者,不存在现有AP-STA网络、master-slave网络的情况下,无角色的有通信能力的孤立对等设备之间,相互组网的网络。
在描述本申请实施例之前,先对本申请实施例的应用场景进行描述。
本申请实施例提供的设备组网方法可以应用于不同领域(例如1+8+N的消费品领域以及工业设备领域等)。其中,“1”指的是手机;“8”指的是车机、音箱、耳机、手表/手环、平板、大屏、个人计算机(personal computer,PC)、增强现实技术(augmented reality,AR)设备/虚拟现实(virtual reality,VR)设备等;“N”指的是物联网(internet of things,IoT)。
在此基础上,该方法适用的应用场景包括但不限于:办公场景、运动场景、家庭场景、娱乐场景、教育场景以及工业生产使用场景等。需要说明的是,多个电子设备可以在不同场景下组成一个“超级终端”,该“超级终端”中的各个电子设备之间可以互联进行协同工作。示例性的,在多个电子设备组成“超级终端”时,可将某一电子设备(例如电视、路由器、手机等)确定为中心控制设备,除中心控制设备之外的每个电子设备可作为从属设备与中心控制设备建立通信连接(例如蓝牙连接、Wi-Fi连接等)。这样一来,中心控制设备作为中心节点可用于管理和控制其他从属设备,完成相应的工作。在一些实施例中,用户可以在中心控制设备中安装应用(application,APP),用户可以在中心控制设备的APP中操作与其连接的从属设备,极大地提升了用户体验。
需要说明的是,中心控制例如可以为富设备,从属设备例如可以为瘦设备。一般情况下,富设备的优先级大于瘦设备的优先级。例如,富设备指的是富设备的中央处理器(central processing unit,CPU)、内存、硬盘、以及网络能力都比较强的设备。瘦设备指的是瘦设备的CPU、内存、硬盘、以及网络能力比较弱的设备。示例性的,富设备例如可以为手机、平板电脑(PAD)、个人计算机(personal computer,PC)、智慧屏等。瘦设备例如可以为智能手表、耳机、智能眼镜等。本申请对此不作限制。
在一些实施例中,如图6所示,选择富设备的手机作为中心控制设备。在此基础上,用户可以在手机上安装的APP中操作电视、平板、电脑以及无线蓝牙耳机。示例性的,用户可以在手机上通过安装的APP打开电视。
应理解,不同场景下,组成“超级终端”的各个电子设备不同。例如,在家庭场景下,如图7所示,组成“超级终端”的电子设备包括手机、平板电脑(PAD)/个人计算机(personal computer,PC)、智慧屏以及智能家电(例如智能灯、智能开关、 智能冰箱、智能烤箱、智能门锁、智能窗帘等)。以手机作为富设备为例,PAD/PC、智慧屏以及智能家电通过接入技术(例如,Wi-Fi、蓝牙、USB、以太网等)与手机建立连接,而后,用户只需要操作手机就可以实时的控制其他设备。例如,用户可以操作手机打开(或关闭)智能灯、智能开关等。又例如,在运动场景下,如图8所示,组成“超级终端”的端子设备包括手机、智能手表、耳机、智能手环等。以手机为富设备为例,智能手表、耳机、智能手环通过接入技术(例如,Wi-Fi、蓝牙、USB、以太网等)与手机建立连接,而后,用户只需要操作手机就可以实时控制其他设备。例如,用户可以操作手机打开耳机,以使用户可以通过耳机听音乐(或者打电话)。
示例性的,本申请实施例提供的设备组网方法可应用于手机、平板、个人计算机(personal computer,PC)、个人数字助理(personal digital assistant,PDA)、智能手表、上网本、可穿戴电子设备、增强现实技术(augmented reality,AR)设备、虚拟现实(virtual reality,VR)设备、车载设备、智能汽车、智能音响等电子设备中,本申请实施例对此不做任何限制。
如图9所示,为电子设备100的一种结构示意图。其中,电子设备100可以包括:处理器110,外部存储器接口120,内部存储器121,通用串行总线(universal serial bus,USB)接口130,充电管理模块140,电源管理模块141,电池142,天线1,天线2,移动通信模块150,无线通信模块160,音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,传感器模块180,按键190,马达191,指示器192,摄像头193,显示屏194,以及用户标识模块(subscriber identification module,SIM)卡接口195等。
其中,上述传感器模块180可以包括压力传感器180A,陀螺仪传感器180B,气压传感器180C,磁传感器180D,加速度传感器180E,距离传感器180F,接近光传感器180G,指纹传感器180H,温度传感器180J,触摸传感器180K,环境光传感器180L和骨传导传感器180M等传感器。
可以理解的是,本实施例示意的结构并不构成对电子设备100的具体限定。在另一些实施例中,电子设备100可以包括比图示更多或更少的部件,或者组合某些部件,或者拆分某些部件,或者不同的部件布置。图示的部件可以以硬件,软件或软件和硬件的组合实现。
处理器110可以包括一个或多个处理单元,例如:处理器110可以包括应用处理器(application processor,AP),调制解调处理器,图形处理器(graphics processing unit,GPU),图像信号处理器(image signal processor,ISP),控制器,存储器,视频编解码器,数字信号处理器(digital signal processor,DSP),基带处理器,和/或神经网络处理器(neural-network processing unit,NPU)等。其中,不同的处理单元可以是独立的器件,也可以集成在一个或多个处理器中。
控制器可以是电子设备100的神经中枢和指挥中心。控制器可以根据指令操作码和时序信号,产生操作控制信号,完成取指令和执行指令的控制。
处理器110中还可以设置存储器,用于存储指令和数据。在一些实施例中,处理器110中的存储器为高速缓冲存储器。该存储器可以保存处理器110刚用过或循环使用的指令或数据。如果处理器110需要再次使用该指令或数据,可从所述存储器中直 接调用。避免了重复存取,减少了处理器110的等待时间,因而提高了系统的效率。
在一些实施例中,处理器110可以包括一个或多个接口。接口可以包括集成电路(inter-integrated circuit,I2C)接口,集成电路内置音频(inter-integrated circuit sound,I2S)接口,脉冲编码调制(pulse code modulation,PCM)接口,通用异步收发传输器(universal asynchronous receiver/transmitter,UART)接口,移动产业处理器接口(mobile industry processor interface,MIPI),通用输入输出(general-purpose input/output,GPIO)接口,用户标识模块(subscriber identity module,SIM)接口,和/或通用串行总线(universal serial bus,USB)接口等。
可以理解的是,本实施例示意的各模块间的接口连接关系,只是示意性说明,并不构成对电子设备的结构限定。在另一些实施例中,电子设备也可以采用上述实施例中不同的接口连接方式,或多种接口连接方式的组合。
充电管理模块140用于从充电器接收充电输入。其中,充电器可以是无线充电器,也可以是有线充电器。在一些有线充电的实施例中,充电管理模块140可以通过USB接口130接收有线充电器的充电输入。在一些无线充电的实施例中,充电管理模块140可以通过电子设备的无线充电线圈接收无线充电输入。充电管理模块140为电池142充电的同时,还可以通过电源管理模块141为电子设备供电。
电源管理模块141用于连接电池142,充电管理模块140与处理器110。电源管理模块141接收电池142和/或充电管理模块140的输入,为处理器110,内部存储器121,外部存储器,显示屏194,摄像头193,和无线通信模块160等供电。电源管理模块141还可以用于监测电池容量,电池循环次数,电池健康状态(漏电,阻抗)等参数。在其他一些实施例中,电源管理模块141也可以设置于处理器110中。在另一些实施例中,电源管理模块141和充电管理模块140也可以设置于同一个器件中。
电子设备100的无线通信功能可以通过天线1,天线2,移动通信模块150,无线通信模块160,调制解调处理器以及基带处理器等实现。
天线1和天线2用于发射和接收电磁波信号。电子设备100中的每个天线可用于覆盖单个或多个通信频带。不同的天线还可以复用,以提高天线的利用率。例如:可以将天线1复用为无线局域网的分集天线。在另外一些实施例中,天线可以和调谐开关结合使用。
移动通信模块150可以提供应用在电子设备100上的包括2G/3G/4G/5G等无线通信的解决方案。移动通信模块150可以包括至少一个滤波器,开关,功率放大器,低噪声放大器(low noise amplifier,LNA)等。移动通信模块150可以由天线1接收电磁波,并对接收的电磁波进行滤波,放大等处理,传送至调制解调处理器进行解调。
移动通信模块150还可以对经调制解调处理器调制后的信号放大,经天线1转为电磁波辐射出去。在一些实施例中,移动通信模块150的至少部分功能模块可以被设置于处理器110中。在一些实施例中,移动通信模块150的至少部分功能模块可以与处理器110的至少部分模块被设置在同一个器件中。
调制解调处理器可以包括调制器和解调器。其中,调制器用于将待发送的低频基带信号调制成中高频信号。解调器用于将接收的电磁波信号解调为低频基带信号。随后解调器将解调得到的低频基带信号传送至基带处理器处理。低频基带信号经基带处 理器处理后,被传递给应用处理器。应用处理器通过音频设备(不限于扬声器170A,受话器170B等)输出声音信号,或通过显示屏194显示图像或视频。在一些实施例中,调制解调处理器可以是独立的器件。在另一些实施例中,调制解调处理器可以独立于处理器110,与移动通信模块150或其他功能模块设置在同一个器件中。
无线通信模块160可以提供应用在电子设备100上的包括无线局域网(wireless local area networks,WLAN)(如无线保真(wireless fidelity,Wi-Fi)网络),蓝牙(blue tooth,BT),全球导航卫星系统(global navigation satellite system,GNSS),调频(frequency modulation,FM),近距离无线通信技术(near field communication,NFC),红外技术(infrared,IR)等无线通信的解决方案。
无线通信模块160可以是集成至少一个通信处理模块的一个或多个器件。无线通信模块160经由天线2接收电磁波,将电磁波信号调频以及滤波处理,将处理后的信号发送到处理器110。无线通信模块160还可以从处理器110接收待发送的信号,对其进行调频,放大,经天线2转为电磁波辐射出去。
在一些实施例中,电子设备100的天线1和移动通信模块150耦合,天线2和无线通信模块160耦合,使得电子设备100可以通过无线通信技术与网络以及其他设备通信。所述无线通信技术可以包括全球移动通讯系统(global system for mobile communications,GSM),通用分组无线服务(general packet radio service,GPRS),码分多址接入(code division multiple access,CDMA),宽带码分多址(wideband code division multiple access,WCDMA),时分码分多址(time-division code division multiple access,TD-SCDMA),长期演进(long term evolution,LTE),BT,GNSS,WLAN,NFC,FM,和/或IR技术等。所述GNSS可以包括全球卫星定位系统(global positioning system,GPS),全球导航卫星系统(global navigation satellite system,GLONASS),北斗卫星导航系统(beidou navigation satellite system,BDS),准天顶卫星系统(quasi-zenith satellite system,QZSS)和/或星基增强系统(satellite based augmentation systems,SBAS)。
电子设备100通过GPU,显示屏194,以及应用处理器等实现显示功能。GPU为图像处理的微处理器,连接显示屏194和应用处理器。GPU用于执行数学和几何计算,用于图形渲染。处理器110可包括一个或多个GPU,其执行程序指令以生成或改变显示信息。
显示屏194用于显示图像,视频等。该显示屏194包括显示面板。显示面板可以采用液晶显示屏(liquid crystal display,LCD),有机发光二极管(organic light-emitting diode,OLED),有源矩阵有机发光二极体或主动矩阵有机发光二极体(active-matrix organic light emitting diode,AMOLED),柔性发光二极管(flex light-emitting diode,FLED),Mini-LED,Micro-OLED,Micro-OLED,量子点发光二极管(quantum dot light emitting diodes,QLED)等。
电子设备100可以通过ISP,摄像头193,视频编解码器,GPU,显示屏194以及应用处理器等实现拍摄功能。
ISP用于处理摄像头193反馈的数据。例如,拍照时,打开快门,光线通过镜头被传递到摄像头感光元件上,光信号转换为电信号,摄像头感光元件将所述电信号传 递给ISP处理,转化为肉眼可见的图像。ISP还可以对图像的噪点,亮度,肤色进行算法优化。ISP还可以对拍摄场景的曝光,色温等参数优化。在一些实施例中,ISP可以设置在摄像头193中。
摄像头193用于捕获静态图像或视频。物体通过镜头生成光学图像投射到感光元件。感光元件可以是电荷耦合器件(charge coupled device,CCD)或互补金属氧化物半导体(complementary metal-oxide-semiconductor,CMOS)光电晶体管。感光元件把光信号转换成电信号,之后将电信号传递给ISP转换成数字图像信号。ISP将数字图像信号输出到DSP加工处理。DSP将数字图像信号转换成标准的RGB,YUV等格式的图像信号。在一些实施例中,电子设备可以包括1个或N个摄像头193,N为大于1的正整数。
数字信号处理器用于处理数字信号,除了可以处理数字图像信号,还可以处理其他数字信号。例如,当电子设备在频点选择时,数字信号处理器用于对频点能量进行傅里叶变换等。
视频编解码器用于对数字视频压缩或解压缩。电子设备100可以支持一种或多种视频编解码器。这样,电子设备可以播放或录制多种编码格式的视频,例如:动态图像专家组(moving picture experts group,MPEG)1,MPEG2,MPEG3,MPEG4等。
NPU为神经网络(neural-network,NN)计算处理器,通过借鉴生物神经网络结构,例如借鉴人脑神经元之间传递模式,对输入信息快速处理,还可以不断的自学习。通过NPU可以实现电子设备的智能认知等应用,例如:图像识别,人脸识别,语音识别,文本理解等。
外部存储器接口120可以用于连接外部存储卡,例如Micro SD卡,实现扩展电子设备100的存储能力。外部存储卡通过外部存储器接口120与处理器110通信,实现数据存储功能。例如将音乐,视频等文件保存在外部存储卡中。
内部存储器121可以用于存储计算机可执行程序代码,所述可执行程序代码包括指令。处理器110通过运行存储在内部存储器121的指令,从而执行电子设备100的各种功能应用以及数据处理。例如,在本申请实施例中,处理器110可以通过执行存储在内部存储器121中的指令,内部存储器121可以包括存储程序区和存储数据区。
其中,存储程序区可存储操作系统,至少一个功能所需的应用程序(比如声音播放功能,图像播放功能等)等。存储数据区可存储电子设备100使用过程中所创建的数据(比如音频数据,电话本等)等。此外,内部存储器121可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件,闪存器件,通用闪存存储器(universal flash storage,UFS)等。
电子设备100可以通过音频模块170,扬声器170A,受话器170B,麦克风170C,耳机接口170D,以及应用处理器等实现音频功能。例如音乐播放,录音等。
音频模块170用于将数字音频信息转换成模拟音频信号输出,也用于将模拟音频输入转换为数字音频信号。音频模块170还可以用于对音频信号编码和解码。在一些实施例中,音频模块170可以设置于处理器110中,或将音频模块170的部分功能模块设置于处理器110中。扬声器170A,也称“喇叭”,用于将音频电信号转换为声音信号。受话器170B,也称“听筒”,用于将音频电信号转换成声音信号。麦克风170C, 也称“话筒”,“传声器”,用于将声音信号转换为电信号。
耳机接口170D用于连接有线耳机。耳机接口170D可以是USB接口130,也可以是3.5mm的开放移动电子设备100平台(open mobile terminal platform,OMTP)标准接口,美国蜂窝电信工业协会(cellular telecommunications industry association of the USA,CTIA)标准接口。
按键190包括开机键,音量键等。按键190可以是机械按键。也可以是触摸式按键。马达191可以产生振动提示。马达191可以用于来电振动提示,也可以用于触摸振动反馈。指示器192可以是指示灯,可以用于指示充电状态,电量变化,也可以用于指示消息,未接来电,通知等。SIM卡接口195用于连接SIM卡。SIM卡可以通过插入SIM卡接口195,或从SIM卡接口195拔出,实现和电子设备100的接触和分离。电子设备100可以支持1个或N个SIM卡接口,N为大于1的正整数。SIM卡接口195可以支持Nano SIM卡,Micro SIM卡,SIM卡等。
下面结合说明书附图,对本申请实施例提供的设备组网方法进行具体阐述。
本申请实施例提供的一种设备组网方法,应用于通信系统200中,如图10所示,该通信系统200包括多个电子设备(例如包括手机、耳机、智慧屏、手环、平板等);其中,该多个电子设备之间可以相互发现,并相互进行认证,若认证通过,则多个电子设备中任意两个电子设备相互之间可建立通信连接(例如第一通信连接),并保活,从而完成通信系统200的组网过程。
上述多个电子设备具体可以包括第一电子设备和第二电子设备。其中,第一电子设备为上述多个电子设备中任意一个电子设备,第二电子设备为上述多个电子设备中,除了第一电子设备以外的任意一个电子设备。以多个电子设备包括设备1、设备2和设备3为例,示例性的,第一电子设备可以为设备1,第二电子设备可以为设备2;或者,第一电子设备为设备2,第二电子设备为设备3;或者,第一电子设备为设备3,第二电子设备为设备2;或者,第一电子设备和第二电子设备可以为设备1、设备2和设备3中其他任意两个设备之间的组合,本申请实施例对此不作限定。
其中,第一电子设备具有发现第二电子设备的能力,同时,第一电子设备也可以被第二电子设备所发现。相应的,第二电子设备具有发现第一电子设备的能力,同时,第二电子设备也可以为被第一电子设备所发现。在此基础上,相互发现的第一电子设备和第二电子设备可以进行认证,若认证通过,则第一电子设备和第二电子设备建立通信连接。
示例性的,第一电子设备和第二电子设备可以通过至少两个物理通信方式建立通信连接。其中,至少两个物理通信方式可以包括第一通信方式和第二通信方式,即第一电子设备和第二电子设备通过第一通信方式和第二通信方式连接。至少两个物理通信方式可以为有连接的物理层通信方式,也可以为无连接的物理层通信方式。有连接的物理层通信方式例如可以为Wi-Fi连接,或者其他物理层连接方式;无连接的物理层通信方式例如可以为蓝牙(BR、BLE等)连接,网口连接,或者其他物理连接方式,本申请对此不进行限定。
图11a为本申请实施例提供的一种设备组网方法的流程示意图,如图11a所示,该方法包括:
S10、第一电子设备向第二电子设备发送发现消息。
其中,发现消息用于指示第一电子设备可被其他电子设备发现。
同时,第二电子设备扫描周边的设备。当第二电子设备接收到第一电子设备发送的发现消息时,即第二电子设备通过扫描发现第一电子设备。
相应地,第二电子设备向第一电子设备发送发现消息。同时,第一电子设备扫描周边的设备,当第一电子设备接收到第二电子设备发送的发现消息时,即第一电子设备通过扫描发现第二电子设备。
可以看出,第一电子设备和第二电子设备都可以作为发送方设备发送发现消息,也可以作为扫描方设备进行扫描。这样一来,第一电子设备和第二电子设备都具有发现和被发现能力。相应地,多个电子设备中的每个电子设备都具有发现和被发现的能力。
S20、第一电子设备向第二电子设备发送认证消息。
其中,该认证消息用于指示第一电子设备的设备信息;该设备信息包括第一电子设备的SSID、账号信息和通信介质(也可以称为通信方式)等。
其中,SSID用于指示第一电子设备的名称(例如华为P30);账号信息用于指示使用第一电子设备的用户的账号信息(例如用户的手机号、邮箱等)。通信介质用于指示第一电子设备进行网络通信时线路。示例性的,通信介质包括但不限于以下几种:无线局域网(wireless local area network,WLAN)、对等式网络(peer to peer,P2P)、BR、BLE、电力线通信(power line communication,PLC)。
相应地,第二电子设备向第一电子设备发送认证消息。其中,第二电子设备发送的认证消息可以参考上述第一电子设备发送的认证消息的举例说明,此处不再详述。
当第一电子设备和第二电子设备相互交换设备信息后,第一电子设备根据第二电子设备发送的设备信息进行认证;同时,第二电子设备根据第一电子设备发送的设备信息进行认证。若第一电子设备和第二电子设备的SSID相同,则第一电子设备和第二电子设备自动建立通信连接。示例性的,当第一电子设备为华为P30,第二电子设备为华为MAX时,第一电子设备和第二电子设备自动建立通信连接。若第一电子设备和第二电子设备的SSID不同,则第一电设备和第二电子设备通过用户授权建立通信连接。示例性的,用户可以在第一电子设备中选择第二电子设备的SSID并输入密码,以使得第一电子设备和第二电子设备建立通信连接。若第一电子设备和第二电子设备的账号信息相同,即第一电子设备和第二电子设备的属于同一用户的设备,那么第一电子设备和第二电子设备可直接建立通信连接。
示例性的,第一电子设备和第二电子设备可以通过上述实施例所述的至少两种物理通信方式(例如第一通信方式和第二通信方式)建立通信连接。对于至少两种物理通信方式的举例说明可以参考上述实施例,此处不再一一赘述。
S30、第一电子设备和第二电子设备建立长连接。
其中,建立长连接具体指的是第一电子设备和第二电子设备保持第一通信连接。
示例性的,第一电子设备和第二电子设备可以周期性地触发心跳问询,以使第一电子设和第二电子设备可以维持一种长连接的状态。其中,长连接指的是一种有规律和节拍(即具有周期性)的发现或者连接手段。在本申请中,长连接适用于有连接和 无连接的各种物理层通信方式。其中,有连接例如可以为Wi-Fi连接;无连接例如可以为蓝牙连接,网口连接等。当然,有连接和无连接还可以为其它连接方式,本申请对此不作限定。例如,第一电子设备和第二电子设备可以通过第一通信方式和第二通信方式保持长连接。第一通信方式第二通信方式不限于分别按照其物理通信方式的通信协议传统定义的保持连接的方式,也可以是仅保存连接信息。这些连接信息用于快速恢复该物理通信方式建立的长连接,或快速使用该物理通信方式进行长连接。示例性的,连接信息例如可以为建立恢复连接时需要的相关参数或相关信息(比如对端设备的信息)。
例如,当第一电子设备和第二电子设备通过BLE的通信方式建立通信连接时,第一电子设备和第二电子设备可以通过BLE的广播(advertisement)帧建立长连接。又例如,当第一电子设备和第二电子设备通过BR的通信方式建立通信连接时,BR会一直维持第一电子设备和第二电子设备的长连接。又例如,当第一电子设备和第二电子设备通过USB、以太网、WLAN、PLC等通信方式建立通信连接,并且第一电子设备和第二电子设备通过用户数据报协议(user datagram protocol,UDP)进行业务通信时,第一电子设备和第二电子设备可以通过无连接的物联网协议(constrained application protocol,Coap)报文建立长连接。又例如,当第一电子设备和第二电子设备通过USB、以太网、WLAN、PLC等通信方式建立通信连接,并且第一电子设备和第二电子设备通过IP进行业务通信时,第一电子设备和第二电子设备可以通过传输控制协议(transmission control protocol,TCP)建立长连接,并使用保活(keepalive)机制维持长连接。又例如,当第一电子设备和第二电子设备通过P2P的方式建立通信连接时,P2P会直接使第一电子设备和第二电子设备建立长连接。
其中,第一电子设备和第二电子设备周期性的触发心跳问询指的是:第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文;而后,第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效。需要说明的是,第一电子设备通过第一通信方式,在第一时间段内接收第二电子设备发送的报文可以各种形式的报文(例如,响应报文、问询报文或者业务报文等)。
在一些实施例中,第一时间段是周期性设置的。第一时间段的长度可以不变,也可以动态的变化(例如增加或减少)。在周期性设置的第一时间段中,相邻两个第一时间段之间的间隔为本次起始到下次起始;或者本次结束到下次结束。本申请对此不作限定。
在一些实施例中,如图11b所示,第二时间段的起始时刻与第一电子设备接收报文的时刻相同,第二时间段的结束时刻为第一电子设备接收报文后的一段时间。例如第二时间段的结束时刻大于或等于第N次第一时间段的起始时刻(或者结束时刻)。图11b以第二时间段的结束时刻等于第N次第一时间段的起始时刻为例进行示意。
在另一些实施例中,如图11c所示,第二时间段的起始时刻与本次第一时间段(例如第一次的第一时间段)的起始时刻相同,第二时间段的结束时刻为本次第一时间段的起始时刻后的一段时间。例如第二时间段的结束时刻大于或等于第N次第一时间段的起始时刻(或者结束时刻)。图11c以第二时间段的结束时刻等于第N次第一时间段的起始时刻为例进行示意。
在又一些实施例中,如图11d所示,第二时间段的起始时刻与本次第一时间段(例如第一次的第一时间段)的结束时刻相同,第二时间段的结束时刻为本次第一时间段的结束时刻后的一段时间。例如第二时间段的结束时刻大于或等于第N次第一时间段的起始时刻(或者结束时刻)。图11d以第二时间段的结束时刻等于第N次第一时间段的起始时刻为例进行示意。
当第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效时,第一电子设备在第二时间段内通过第二通信方式与第二电子设备进行业务通信。示例性的,第一电子设备可以根据保存的连接信息,快速恢复与第二电子设备建立的第一通信连接,并进行业务通信。
在一些实施例中,第一时间段时周期性设置的,假设上述第一时间段为所设置的第一次的第一时间段;该方法还包括:当第一电子设备在第一时间段为所设置的第二次的第一时间段未收到报文时,第一电子设备确定与第二电子设备断开连接;或者,当第一电子设备在第一时间段为所设置的连续N次(N>1)的第一时间段未收到报文时,第一电子设备确定与第二电子设备断开连接;或者,当第一时间段和第二时间段段至少部分重叠,且第一电子设备在第二时间段内的第一时间段未收到报文时,第一电子设备确定与第二电子设备断开连接。
在此基础上,当第一电子设备与第二电子设备再次进行业务通信时,第一电子设备重新与第二电子设备建立第一通信连接。
需要说明的是,第一电子设备与第二电子设备重新建立第一通信连接指的是,第一电子设备和第二电子设备重新相互扫描并发现,然后相互认证。若认证通过,则第一电子设备与第二电子设备重新建立第一通信连接。与第一电子设备恢复与第二电子设备建立的第一通信连接不同的是,第一电子设备恢复与第二电子设备建立的第一通信连接指的是,第一电子设备和第二电子设备不需要进行相互扫描发现,以及相互认证的过程,而是通过第一电子设备发送请求报文,并接收第二电子设备回复的报文,恢复第一通信连接。即第一电子设备和第二电子设备恢复第一通信连接可以理解为,第一电子设备与第二电子设备建立的第一通信连接一直存在,并通过在第一时间段内接收报文的方式保持第一通信连接(即保活)。
在一些实施例中,多个电子设备均作为发送方设备发送握手请求消息(例如发送请求报文),且多个电子设备均作为接收方设备回复握手响应消息(例如回复报文)。在另一些实施例中,多个电子设备均作为广播方设备广播握手响应消息。在又一些实施例中,多个电子设备通过协商将多个电子设备中的某一电子设备作为主设备,多个电子设备中除了主设备之外的其他设备作为从设备;在此基础上,主设备可以向每个从设备发送握手请求消息;而后,每个从设备向主设备回复握手响应消息。
需要说明的是,第一电子设备为多个电子设备中任意一个电子设备,第二电子设备为多个电子设备中除了第一电子设备以外的任意一个电子设备,第一电子设备和第二电子设备建立长连接说明多个电子设备中任意两个电子设备之间可以建立长连接。在此基础上,结合图12、图13以及图14,对多个电子设备中任意两个电子设备建立长连接的过程进行详细描述。
在一些实施例中,以多个电子设备包括设备1和设备2为例,如图12所示,设备 1向设备2发送握手请求消息,设备2向设备1回复握手响应消息;相应地,设备2向设备1发送握手请求消息,设备1向设备2回复握手响应消息。
其中,握手请求消息例如可以为“是否在线”。当设备1向设备2发送握手请求消息时,即设备1询问设备2是否在线。而后,设备2检测自身的网卡状态,当设备2的网卡状态为连接状态时,设备2回复握手响应消息,即设备2回复“在线”;当设备2的网卡状态为未连接状态时,设备2不回复握手响应消息,即设备2“不在线”。这样一来,设备1和设备2通过发送握手请求消息,并回复握手响应消息,可以使得设备1和设备2相互知道对方“在线”,进而使设备1和设备2完成握手连接。
需要说明的是,“在线”指的是电子设备在通信网络的覆盖范围内(或者说电子设备与通信网络处于连接状态),具有通信能力,能够进行通信。“不在线”指的是电子设备不在通信网络的覆盖范围内(或者说电子设备与通信网络处于未连接状态),不能进行通信。
在该实施例中,多个电子设备中的每个电子设备均会发送握手请求消息,当多个电子设备中的每个电子设备均回复握手响应消息时,即多个电子设备中每两个电子设备之间相互完成握手连接。需要说明的是,上述握手响应消息例如可以为问询报文。设备1与设备2之间完成握手连接即设备1根据报文(如问询报文)确认与设备2的第一通信连接在第二时间段内有效。在此基础上,设备1和设备2可以直接进行业务通信。
在另一些实施例中,多个电子设备中每个电子设备广播握手响应消息;而后,第一电子设备接收除第一电子设备之外的其他电子设备广播的握手响应消息。以多个电子设备包括设备1、设备2和设备3为例,示例性的,如图13所示,设备1广播握手响应消息,设备2广播握手响应消息,设备3广播握手响应消息。在此基础上,设备1接收设备2和设备3广播的握手响应消息,设备2接收设备1和设备3广播的握手响应消息,设备3接收设备1和设备2广播的握手响应消息。这样一来,可以使得设备1、设备2和设备3之间相互完成握手连接。
需要说明的是,对应握手响应消息的举例说明可以参考上述实施例,此处不再详述。应理解,当电子设备广播握手响应消息时,说明电子设备“在线”;当电子设备未广播握手响应消息时,说明电子设备“不在线”。
在该实施例中,若多个电子设备中的每个电子设备广播握手响应消息,说明每个电子设备均“在线”,而后,每个电子设备可接收出该电子设备之外的其他电子设备广播的握手响应消息,以使多个电子设备中每两个电子设备之间相互完成握手连接。需要说明的是,上述握手响应消息例如可以为响应报文(acknowledge character,ACK)。例如,设备1与设备2之间完成握手连接即设备1根据报文(如响应报文)确认与设备2的第一通信连接在第二时间段内有效。在此基础上,设备1和设备2可以直接进行业务通信。
在又一些实施例中,多个电子设备通过协商确定一个主设备,则除主设备之外的其余电子设备作为从设备。以多个电子设备包括主设备、从设备1和从设备2为例,示例性的,如图14所示,主设备向从设备1发送握手请求消息,主设备1向从设备2发送握手请求消息。而后,当从设备1和从设备2接收到主设备发送的握手请求消息 后,从设备1向主设备发送握手响应消息,从设备2向主设备发送握手响应消息。
需要说明的是,对于握手请求消息和握手响应消息的举例说明可以参考上述实施例,此处不再详述。从设备向主设备回复握手响应消息时,说明从设备“在线”;当从设备未向主设备回复握手响应消息时,说明从设备“不在线”。
在该实施例中,若多个电子设备中所有的从设备均向主设备回复握手响应消息,则说明所有的从设备均“在线”,而后,所有的从设备均可以与主设备完成握手连接。需要说明的是,上述握手响应消息例如可以为响应报文。例如,设备1与设备2之间完成握手连接即设备1根据报文(如响应报文)确认与设备2的第一通信连接在第二时间段内有效。在此基础上,设备1和设备2可以直接进行业务通信。
另外,多个电子设备通过协商确定一个主设备。例如可以将多个电子设备中,优先级最高的电子设备确定为主设备;或者通过其它方式确定一个主设备,本申请对此不作限定。其中,优先级用于指示设备的硬件性能,优先级高的设备的硬件性能高于优先级低的设备的硬件性能。硬件性能包括处理器性能、内存性能、硬盘性能或网络能力中的一个或多个。示例性的,优先级高的设备的处理器性能(例如CPU主频)、硬盘性能或网络能力都比优先级低的设备的处理器性能(例如CPU主频)、硬盘性能或网络能力强。
在一些实施例中,在第一电子设备与第二电子设备建立第一通信连接的过程中,第一电子设备确认第二电子设备的优先级。同时,在第一电子设备与第二电子设备建立第一通信连接的过程中,第二电子设备确认第一电子设备的优先级。在第一电子设备确认第一电子设备的优先级高于第二电子设备的优先级的情况下,第一电子设备根据报文确认与第二电子设备的第一通信连接在第二时间段内有效。即采用优先级较高的第一电子设备发送请求报文和接收报文。
需要说明的是,当第一电子设备和第二电子设备正在进行业务通信(例如通过BR、BLE或者P2P)时,第一电子设备可以通过接收第二电子设备发送的业务报文,确认与第二电子设备的第一通信连接在第二时间段内有效。
基于上述,在本申请实施例中,多个电子设备自动组成一个通信网络(简称自组网),即多个电子设备之间任意两个电子设备可以相互发现、认证并建立长连接,长连接即周期性的进行握手连接(也可以称为握手保活)。这样一来,在自组网内,多个电子设备中的任意两个电子设备均可以进行业务通信;并且,由于多个电子设备中任意两个电子设备之间周期性的进行握手连接,即每个电子设备都可以预先知道周围有哪些在线的设备,这样一来,需要进行业务通信的两个电子设备可以直接进行业务通信,不需要先进行相互发现、认证,然后再进行业务通信,从而省去了设备在通信阶段中,发现、认证的阶段,减少了设备相互发现、认证的不确定性,在降低通信时延的同时提高了通信可靠性,并提升了用户体验。
在一些实施例中,在第一电子设备和第二电子设备握手连接(即保持第一通信连接)的过程中,第一电子设备和第二电子设备可以通过第一通信方式或者第二通信方式进行握手连接。示例性的,第一通信方式例如可以为WLAN、P2P、BR、BLE、以及PLC中的任意一种;第二通信方式例如可以为WLAN、P2P、BR、BLE、以及PLC中的任意一种。在一些实施例中,第一通信方式和第二通信方式可以相同,也可以不 相同。
需要说明的是,由于每个通信介质的可靠性不同,导致电子设备采用不同通信介质进行握手连接时,电子设备的功耗不同。基于此,电子设备在握手连接时,可以采用使电子设备的功耗较低的通信介质。在一些实施例中,电子设备采用不同通信介质在握手连接时,电子设备产生的功耗有小到大对应的通信介质的顺序为:BLE<BR<Wi-Fi<P2P<PLC。在此基础上当电子设备包括多个通信介质时,电子设备可以选择功耗较低的通信介质进行握手连接,从而能够降低电子设备的功耗。
由上述实施例可知,第一电子设备和第二电子设备在建立长连接之前已经相互交换了设备信息,该设备信息包括电子设备支持的通信介质。也就是说,第一电子设备知道第二电子设备支持的通信介质,第二电子设备知道第一电子设备支持的通信介质,因此第一电子设备和第二电子设备可以根据相互交换的通信介质进行握手连接。
以第一电子设备支持的通信介质包括WLAN、P2P、BR、BLE、以及PLC;第二电子设备支持的通信介质包括WLAN、P2P、BR、BLE、以及PLC为例,在一些实施例中,第一电子设备可以采用BLE的通信介质向第二电子设备发送握手请求消息,第二电子设备可以采用WLAN的通信介质回复握手响应消息。在另一些实施例中,第一电子设备采用BLE的通信介质向第二电子设备发送握手请求消息,第二电子设备采用BLE、WLAN,或者还可以采用其它通信介质回复握手响应消息。在另一些实施例中,第一电子设备采用BLE、WLAN、P2P的通信介质向第二电子设备发送握手请求消息,第二电子设备采用P2P的通信介质回复握手响应消息。在另一些实施例中,第一电子设备采用BLE、WLAN、P2P的通信介质向第二电子设备发送握手请求消息,第二电子设备采用BLE、WLAN、P2P的通信介质回复握手响应消息。
在本申请实施例中,第一电子设备可以根据第一时间段触发心跳问询。在一些实施例中,第一电子设备可根据第一电子设备的状态动态地调整触发心跳问询的第一时间段。其中,第一电子设备包括在静止状态和处于预设场景中。
示例性的,当第一电子设备长时间处于静止状态时,第一电子设备可采用动态降速的模式触发心跳问询。当第一电子设备长时间处于预设场景中时,第一电子设备可采用动态加速的模式触发心跳问询。
以第一时间段为5min为例进行示意,示例性的,若第一电子设备在第一时间段内保持静止状态,且第一电子设备根据第一时间段进行心跳问询的次数大于第一预设次数(例如三次),那么,第一电子设备可以将第一时间段调整为第三时间段(例如调整为10min)。在此基础上,若第一电子设备依然处于静止状态,且第一电子设备根据第三时间段进行心跳问询的次数大于第一预设次数(例如三次),那么,第一电子设备可以继续增加第三时间段的长度(例如增加为30min),依次类推。
仍以第一时间段为5min为例进行示意,示例性的,若第一电子设备在第一时间段内处于预设场景中,且第一电子设备接收第二电子设备发送的报文的次数大于第二预设次数,第一电子设备调整第一时间段为第四时间段(例如从5min调整为3min)。在此基础上,若第一电子设备依然处于静止状态,且第一电子设备根据第四时间段进行心跳问询的次数大于第二预设次数(例如三次),那么,第一电子设备可继续减少第四时间段的长度(例如从3min减少为1min),依次类推。
在一些实施例中,当第一电子设备所处的预设场景发生变化时,第一电子设备将第四时间段恢复为第一时间段。示例性的,预设场景发生变化包括:第一电子设备由灭屏显示变为亮屏显示、第一电子设备的使用状态(如用户使用第一电子设备阅读文本、看视频以及语言通话等)发生变化、第一电子设备的绝对位置(例如水平方向上的位置)发生变化、第一电子设备的空间位置(例如经纬度坐标)发生变化以及第一电子设备所处的交通工具(如公交、汽车、飞机以及电梯等)发生变化。
例如,当用户手持第一电子设备由灭屏显示变为亮屏显示时,第一电子设备恢复第一时间段。又例如,用户手持第一电子设备由阅读文本变为看视频时,第一电子设备恢复第一时间段。又例如,用户手持第一电子设备步行时,第一电子设备恢复第一时间段。又例如,用户手持第一电子设备由乘坐公交变为乘坐汽车时,第一电子设备恢复第一时间段。
在一些实施例中,当第一电子设备的绝对位置发生变化;或者,空间位置发生变化;或者,交通工具发生变化时,第一电子设重新发现周围的设备,并建立第一通信连接。而后,第一电子设备通过第一通信方式,在第一时间段内接收周围设备发送的响应报文。
在一些实施例中,当与第一电子设备建立通信连接的所有电子设备中,最后一个电子设备离线时,第一电子设备重新发现周围的设备,并建立第一通信连接;第一电子设备通过第一通信方式,在第一时间段内接收来自周围设备发送的响应报文。
在一些实施例中,当多个电子设备所处的通信系统的网络状态发生变化时,第一电子设备向第二电子设备发送网络变更消息,并重新确认与第二电子设备建立第一通信连接时的物理通信方式。
在一些实施例中,电子设备的处理器可以是一个通用中央处理器(central processing unit,CPU),微处理器等。示例的,CPU可以为单核处理器(single-CPU),也可以为多核(multi-CPU)处理器。在CPU为多核处理器的情况下,第一电子设备触发心跳问询的模块可以设置在低功耗核上(例如,SensorHub,M3核)。这样一来,可以降低设备的功耗。
在此基础上,由于每个电子设备需要执行空中下载技术(over-the-air technology,OTA)对电子设备及SIM卡数据进行升级,以及电子设备上安装的APP需要与远端的云服务器进行通信,因此需要定期唤醒电子设备的处理器(如CPU)及相关通信模块(例如Wi-Fi芯片)。基于此,在本申请实施例中,可以在电子设备的唤醒周期内触发心跳问询(即唤醒周期与周期性设置的第一时间段的周期相同),从而能够降低设备功耗。
需要说明的是,电子设备的CPU唤醒功能优先设置在芯片内部,其次可以设置在低功耗核上,其次可以设置在APP上,以此来最大限度的降低电子设备的CPU的唤醒次数和时间。
示例性的,多个电子设备可以通过协商约定相同的唤醒周期。例如,多个电子设备首先协商确定一个主设备,除了主设备之外的其余设备作为从设备。而后,主设备先确定自身的唤醒周期,然后主设备将自身的唤醒周期发送给各个从设备,从而使得多个电子设备的唤醒周期相同。在一些实施例中,主设备可以根据主设备上安装的APP 与远端的云服务器建立的周期性的连接,确定主设备的唤醒周期。
以主设备上安装的APP为
Figure PCTCN2022085166-appb-000001
为例,示例性的,远端的云服务器会周期性的向主设备推送消息,主设备根据远端的云服务器向
Figure PCTCN2022085166-appb-000002
推送消息的周期确定唤醒周期。在一些实施例中,可以是主设备根据远端的云服务器向主设备上安装的一个APP推送消息的周期确定唤醒周期;也可以是主设备根据远端的云服务器向主设备上安装的多个APP推送消息的周期确定唤醒周期。在主设备根据远端的云服务器向主设备上安装的多个APP推送消息的周期确定唤醒周期的情况下,示例性的,主设备上安装的多个APP可以与远端的云服务进行协商,将远端的云服务向主设备上安装的多个APP推送消息的周期设置为相同周期。
如图15所示,为本申请实施例提供的一种在唤醒周期内触发心跳问询的示意图。参考图14可以看出,第一电子设备和第二电子设备的唤醒周期相同(例如为5min),并且第一电子设备和第二电子设备同步唤醒时钟,并对齐唤醒窗口;其中,唤醒窗口包括唤醒状态和后台状态。在此基础上,第一电子设备和第二电子设备在后台状态下触发心跳问询。
另外,仍如图15所示,第一电子设备和第二电子设备在对齐唤醒窗口的同时,也对齐了触发心跳问询的窗口,也就是说,第一电子设备和第二电子设备在同一时刻触发心跳问询,这样一来,通过动态调整占空比,能够使以最低功耗的方式使用CPU(或者芯片)。
需要说明的是,在第一电子设备长时间处于静止状态的情况下,第一电子设备会采用降速的模式触发心跳问询。也就是说,第一电子设备触发心跳问询的周期会一直延长(例如从5min到10min,再到30min,1hour甚至更长时间),在此基础上,若第一电子设备的心跳问询周期(即周期性设置的第一时间段的周期)大于唤醒周期(例如心跳问询周期为10min,唤醒周期为5min),则第一电子设备会强制唤醒第一电子设备触发心跳问询。
在该实施例中,由于多个电子设备中的每个电子设备对齐了唤醒周期,且每个电子设备的唤醒周期相同;在此基础上,每个电子设备可以在唤醒周期内触发心跳问询,因此能够进一步降低设备功耗。
以应用场景为家庭场景,第一电子设备为手机为例,示例性的,如图16所示,当用户登录手机上控制家庭智能设备的APP时,手机的APP界面会直接显示与手机完成握手连接的设备(例如智慧屏、平板、电脑、音箱)。也就是说,手机的APP界面会直接显示当前在线的智能家庭设备。而后,用户可以直接点击在线的任一设备,使手机与该设备进行业务通信。例如,用户可以点击音箱,通过音箱将手机上的音乐声音播放出来。
在一些实施例中,如图16所示,手机的APP界面还会显示当前不在线的智能家庭设备(例如手机等)。其中,在线的智能设备与不在线的智能设备的显示方式不一致。例如,不在线的智能设备显示灰色。另外,在一些实施例中,手机的APP界面还会显示指示信息。该指示信息用于指示手机正在扫描周围其他设备。应理解,该其他设备为与手机未建立过通信连接的设备;或者,与手机之前建立了通信连接,但是之后又断开连接的设备。
需要说明的是,在图16中,手机的APP界面还包括与手机正在进行业务通信的设备(例如蓝牙耳机、空气净化器等)。示例性的,用户可以使用蓝牙耳机听音乐或者打电话。
在该实施例中,在用户需要使用手机打开智能家庭设备中的任一设备时,手机的APP界面会直接显示当前在线的设备,这样一来,用户可以直接通过手机打开该设备,节省了手机扫描在线设备的时间,从而减少了用户的等待时间,提高了用户体验。
本申请实施例提供了一种电子设备,该电子设备可以包括:存储器和一个或多个处理器。该存储器用于存储计算机程序代码,该计算机程序代码包括计算机指令。当处理器执行计算机指令时,电子设备可执行上述方法实施例中电子设备执行的各个功能或者步骤。该电子设备的结构可以参考图9所示的电子设备100的结构。
本申请实施例还提供一种芯片系统,如图17所示,该芯片系统1800包括至少一个处理器1801和至少一个接口电路1802。其中,处理器1801可以是上述实施例中图9所示的处理器110。接口电路1802例如可以为处理器110和外部存储器120之间的接口电路;或者为处理器110和内部存储器121之间的接口电路。
上述处理器1801和接口电路1802可通过线路互联。例如,接口电路1802可用于从其它装置(例如电子设备的存储器)接收信号。又例如,接口电路1802可用于向其它装置(例如处理器1801)发送信号。示例性的,接口电路1802可读取存储器中存储的指令,并将该指令发送给处理器1801。当所述指令被处理器1801执行时,可使得电子设备执行上述实施例中手机180执行的各个步骤。当然,该芯片系统还可以包含其他分立器件,本申请实施例对此不作具体限定。
本申请实施例还提供一种计算机存储介质,该计算机存储介质包括计算机指令,当所述计算机指令在电子设备上运行时,使得该电子设备执行上述方法实施例中电子设备执行的各个功能或者步骤。
本申请实施例还提供一种计算机程序产品,当所述计算机程序产品在计算机上运行时,使得所述计算机执行上述方法实施例中电子设备执行的各个功能或者步骤。
通过以上实施方式的描述,所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,仅以上述各功能模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能模块完成,即将装置的内部结构划分成不同的功能模块,以完成以上描述的全部或者部分功能。
在本申请所提供的几个实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个装置,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是一个物理单元或多个物理单元,即可以位于一个地方,或者也可以分布到多个不同地方。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个可读取存储介质中。基于这样的理解,本申请实施例的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该软件产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是单片机,芯片等)或处理器(processor)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。
以上内容,仅为本申请的具体实施方式,但本申请的保护范围并不局限于此,任何在本申请揭露的技术范围内的变化或替换,都应涵盖在本申请的保护范围之内。因此,本申请的保护范围应以所述权利要求的保护范围为准。

Claims (22)

  1. 一种设备组网方法,其特征在于,应用于通信系统中;所述通信系统包括多个电子设备;所述方法包括:
    第一电子设备与第二电子设备建立第一通信连接;所述第一通信连接包括所述第一电子设备和所述第二电子设备通过第一通信方式和第二通信方式连接;
    所述第一电子设备通过第一通信方式,在第一时间段内接收所述第二电子设备发送的报文;
    所述第一电子设备根据所述报文确认与所述第二电子设备的所述第一通信连接在第二时间段内有效;
    所述第一电子设备在所述第二时间段内通过所述第二通信方式与所述第二电子设备进行业务通信。
  2. 根据权利要求1所述的方法,其特征在于,在所述第一电子设备通过第一通信方式,在第一时间段内接收所述第二电子设备发送的报文之前,所述方法还包括:
    所述第一电子设备通过所述第一通信方式或所述第二通信方式,在所述第一时间段内广播或单播请求报文;所述请求报文用于指示所述第一电子设备请求与所述第二电子设备保持所述第一通信连接。
  3. 根据权利要求1或2所述的方法,其特征在于,在所述第一通信连接在所述第二时间段内有效的情况下,所述第一电子设备保存有所述第一通信连接的连接信息;
    所述第一电子设备在所述第二时间段内通过第二通信方式与所述第二电子设备进行业务通信,包括:
    所述第一电子设备根据所述连接信息恢复与所述第二电子设备建立的所述第一通信连接并进行业务通信。
  4. 根据权利要求1或2所述的方法,其特征在于,所述第一电子设备的优先级高于所述第二电子设备的优先级;所述优先级用于指示设备的硬件性能,优先级高的设备的硬件性能高于优先级低的设备的硬件性能;所述硬件性能包括处理器性能、内存性能、硬盘性能或网络能力中的一个或多个;
    所述第一电子设备与第二电子设备建立第一通信连接,包括:
    所述第一电子设备与所述第二电子设备建立所述第一通信连接,并确定所述第二电子设备的优先级;
    所述第一电子设备根据所述报文确认与所述第二电子设备的所述第一通信连接在第二时间段内有效,包括:
    在所述第一电子设备根据所述第一电子设备的优先级高于所述第二电子设备的情况下,所述第一电子设备根据所述报文确认与所述第二电子设备的所述第一通信连接在第二时间段内有效。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,第一时间段是周期性设置的;所述第一时间段为所设置的第一次的第一时间段;所述方法还包括:
    当所述第一电子设备在所述第一时间段为所设置的第二次的第一时间段未收到报文时,所述第一电子设备确定与所述第二电子设备断开连接;或者,
    当所述第一电子设备在所述第一时间段为所设置的连续N次的第一时间段未收到 报文时,所述第一电子设备确定与所述第二电子设备断开连接;N>1;或者,
    当所述第一时间段和所述第二时间段至少部分重叠,且所述第一电子设备在所述第二时间段内的第一时间段未收到报文时,所述第一电子设备确定与所述第二电子设备断开连接。
  6. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备与所述第二电子设备再次进行业务通信时,所述第一电子设备重新与所述第二电子设备建立所述第一通信连接。
  7. 根据权利要求1-6任一项所述的方法,其特征在于,所述报文包括响应报文、问询报文或者业务报文中的一种。
  8. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备在第一时间段内保持静止状态,且所述第一电子设备接收所述第二电子设备发送的报文的次数大于第一预设次数,所述第一电子设备调整所述第一时间段为第二时间段;所述第三时间段的长度大于所述第一时间段的长度。
  9. 根据权利要求1-7任一项所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备在第一时间段内处于所述预设场景中,且所述第一电子设备接收所述第二电子设备发送的报文的次数大于第二预设次数时,所述第一电子设备调整所述第一时间段为第四时间段;所述第四时间段的长度小于所述第一时间段的长度。
  10. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备所处的预设场景发生变化时,所述第一电子设备将所述第四时间段恢复为所述第一时间段;所述预设场景发生变化包括所述第一电子设备由灭屏显示变为亮屏显示。
  11. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备所处的预设场景发生变化时,所述第一电子设备将所述第四时间段恢复为所述第一时间段;所述预设场景发生变化包括所述第一电子设备的使用状态发生变化。
  12. 根据权利要求9所述的方法,其特征在于,所述方法还包括:
    当所述第一电子设备所处的预设场景发生变化时,所述第一电子设备重新发现周围的设备,并建立所述第一通信连接;所述预设场景发生变化包括绝对位置发生变化、空间位置发生变化、交通工具发生变化;
    所述第一电子设备通过第一通信方式,在所述第一时间段内接收来自周围设备发送的报文。
  13. 根据权利要求1-11任一项所述的方法,其特征在于,所述方法还包括:
    当与所述第一电子设备建立第一通信连接的所有电子设备中,最后一个电子设备离线时,所述第一电子设备重新发现周围的设备,并建立所述第一通信连接;
    所述第一电子设备通过第一通信方式,在所述第一时间段内接收来自周围设备发送的报文。
  14. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    当所述多个电子设备所处的通信系统的网络状态发生变化时,所述第一电子设备向所述第二电子设备发送网络变更消息,并重新确认与所述第二电子设备建立所述第 一通信连接时的物理通信方式。
  15. 根据权利要求5所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备根据所述第一电子设备上第一应用和所述第一应用的云服务器建立的周期性连接,确定所述第一电子设备的唤醒周期;所述第一应用为所述第一电子设备上的任一应用;
    所述第一电子设备将所述唤醒周期同步至所述第二电子设备;所述唤醒周期和周期性设置的所述第一时间段相同。
  16. 根据权利要求15所述的方法,其特征在于,所述方法还包括:
    所述第一电子设备响应于用户对第二应用的操作,显示第一界面;所述第一界面包括与所述第一电子设备保持所述第一通信连接的至少一个电子设备;所述至少一个电子设备包括第二电子设备;
    所述第一电子设备响应于用户对所述第二电子设备的操作,与所述第二电子设备进行业务通信。
  17. 根据权利要求16所述的方法,其特征在于,
    所述第一界面还包括与所述第一电子设备断开连接的至少一个电子设备。
  18. 根据权利要求16或17所述的方法,其特征在于,
    所述第一界面还包括指示信息;所述指示信息用于指示正在扫描第三电子设备;所述第三电子设备为所述多个电子设备中,与所述第一电子设备断开连接的设备;或者,所述第三电子设备为首次与所述第一电子设备建立所述第一通信连接的设备。
  19. 根据权利要求1-18任一项所述的方法,其特征在于,所述第一电子设备包括处理器;所述处理器包括多个处理核;所述多个处理核中包括低功耗核;所述方法还包括:
    所述第一电子设备通过所述低功耗核,在所述第一时间段内接收所述第二电子设备发送的报文。
  20. 一种电子设备,其特征在于,所述电子设备为第一电子设备;所述电子设备包括存储器和一个或多个处理器;所述存储器中存储有计算机程序代码,所述计算机程序代码包括计算机指令,当所述计算机指令被所述处理器执行时,使得所述电子设备执行如权利要求1-19任一项所述的方法。
  21. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-19中任一项所述的方法。
  22. 一种计算机程序产品,其特征在于,所述计算机程序产品包括计算机指令,当所述计算机指令在电子设备上运行时,使得所述电子设备执行如权利要求1-19中任一项所述的方法。
PCT/CN2022/085166 2021-04-28 2022-04-02 一种设备组网方法、电子设备及存储介质 WO2022228051A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
JP2023566626A JP2024516668A (ja) 2021-04-28 2022-04-02 デバイスネットワーキング方法、電子デバイス、及び記憶媒体
EP22794523.5A EP4311366A1 (en) 2021-04-28 2022-04-02 Device networking method, electronic device, and storage medium

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110464411.6 2021-04-28
CN202110464411 2021-04-28
CN202111322529.1A CN115250544A (zh) 2021-04-28 2021-11-09 一种设备组网方法、电子设备及存储介质
CN202111322529.1 2021-11-09

Publications (1)

Publication Number Publication Date
WO2022228051A1 true WO2022228051A1 (zh) 2022-11-03

Family

ID=83698357

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2022/085166 WO2022228051A1 (zh) 2021-04-28 2022-04-02 一种设备组网方法、电子设备及存储介质

Country Status (4)

Country Link
EP (1) EP4311366A1 (zh)
JP (1) JP2024516668A (zh)
CN (1) CN115250544A (zh)
WO (1) WO2022228051A1 (zh)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115664882A (zh) * 2022-12-12 2023-01-31 深圳开鸿数字产业发展有限公司 家居设备控制方法、遥控设备和存储介质
CN117156597B (zh) * 2023-01-20 2024-05-07 荣耀终端有限公司 基于自组网的设备处理方法、设备以及存储介质

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105357283A (zh) * 2015-10-20 2016-02-24 北京奇虎科技有限公司 智能可佩戴设备的长连接建立方法及服务器、终端
US20160088424A1 (en) * 2014-09-19 2016-03-24 Broadcom Corporation Bluetooth low energy automation mesh network
CN111556555A (zh) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 一种网络摄像机与网关低功耗保活方法及其系统
CN112019616A (zh) * 2020-08-26 2020-12-01 广州视源电子科技股份有限公司 物联网内设备管理方法和装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150125531A (ko) * 2014-04-30 2015-11-09 삼성전기주식회사 무선 통신 장치 및 이를 이용한 무선 통신 방법
US9730162B2 (en) * 2014-09-03 2017-08-08 Qualcomm Incorporated Power management for WLAN client devices using low energy signaling
US20180160334A1 (en) * 2016-12-06 2018-06-07 Qualcomm Incorporated Techniques for managing wlan ap-client mapping in a multi-radio systems
KR20190129219A (ko) * 2018-05-10 2019-11-20 주식회사 다이얼로그 세미컨덕터 코리아 무선랜 ap에 따른 전력 절감 최적화 방법 및 장치
JP7003962B2 (ja) * 2019-04-02 2022-01-21 カシオ計算機株式会社 電子機器、制御方法及びプログラム
CN111010693B (zh) * 2019-11-25 2023-10-03 华为技术有限公司 一种提供无线保真网络接入服务的方法及电子设备
CN111417140A (zh) * 2020-02-26 2020-07-14 翁磊 无线双通道通信方法、系统、设备和计算机设备

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160088424A1 (en) * 2014-09-19 2016-03-24 Broadcom Corporation Bluetooth low energy automation mesh network
CN105357283A (zh) * 2015-10-20 2016-02-24 北京奇虎科技有限公司 智能可佩戴设备的长连接建立方法及服务器、终端
CN111556555A (zh) * 2020-04-29 2020-08-18 杭州涂鸦信息技术有限公司 一种网络摄像机与网关低功耗保活方法及其系统
CN112019616A (zh) * 2020-08-26 2020-12-01 广州视源电子科技股份有限公司 物联网内设备管理方法和装置

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN115250544A (zh) 2022-10-28
EP4311366A4 (en) 2024-01-24
JP2024516668A (ja) 2024-04-16
EP4311366A1 (en) 2024-01-24

Similar Documents

Publication Publication Date Title
WO2021004381A1 (zh) 一种投屏显示方法及电子设备
WO2021036835A1 (zh) 一种蓝牙搜索方法、系统及相关装置
WO2021027616A1 (zh) 一种通过遥控器实现一碰投屏的终端设备、方法以及系统
US9479224B2 (en) Apparatus and method for connecting to device in wireless terminal
WO2021043286A1 (zh) 蓝牙连接的方法和电子设备
WO2020107485A1 (zh) 一种蓝牙连接方法及设备
WO2021185141A1 (zh) Wi-Fi Aware的建链方法、系统、电子设备和存储介质
WO2021082829A1 (zh) 蓝牙连接方法及相关装置
WO2020133183A1 (zh) 音频数据的同步方法及设备
WO2022228051A1 (zh) 一种设备组网方法、电子设备及存储介质
WO2021043219A1 (zh) 一种蓝牙回连方法及相关装置
WO2021043170A1 (zh) 一种蓝牙连接方法及相关装置
WO2021043198A1 (zh) 一种蓝牙配对方法及相关装置
WO2021052245A1 (zh) 一种数据收发方法、电子设备与计算机可读存储介质
WO2021063189A1 (zh) 一种多设备之间的信息同步方法、系统及电子设备
WO2021017909A1 (zh) 一种通过nfc标签实现功能的方法、电子设备及系统
WO2022228083A1 (zh) 一种多设备建立连接的方法及设备
WO2022143071A1 (zh) 连接建立方法及电子设备
WO2022042265A1 (zh) 通信方法、终端设备及存储介质
WO2021115193A1 (zh) 一种设备组网方法、电子设备及系统
EP4311314A1 (en) Sleep scheduling method and device
WO2021104448A1 (zh) 一种密钥信息的同步方法、系统及设备
WO2021147660A1 (zh) 一种数据传输方法及设备
WO2022048371A1 (zh) 跨设备音频播放方法、移动终端、电子设备及存储介质
WO2020124371A1 (zh) 一种数据信道的建立方法及设备

Legal Events

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

Ref document number: 22794523

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2022794523

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 18288682

Country of ref document: US

Ref document number: 2023566626

Country of ref document: JP

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112023022105

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 2022794523

Country of ref document: EP

Effective date: 20231020

NENP Non-entry into the national phase

Ref country code: DE

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112023022105

Country of ref document: BR

Free format text: ESCLARECA, COM DOCUMENTOS COMPROBATORIOS, A DIVERGENCIA DAS DATAS DAS PRIORIDADES CONSTANTES NAS TRADUCOES DA FOLHA DE ROSTO APRESENTADAS NA PETICAO NO 8702300940496 DE 24/10/2023 E O DISPOSTO NOS DADOS INFORMADOS NO PEDIDO INTERNACIONAL. A EXIGENCIA DEVE SER RESPONDIDA EM ATE 60 (SESSENTA) DIAS DE SUA PUBLICACAO E DEVE SER REALIZADA POR MEIO DA PETICAO GRU CODIGO DE SERVICO 207.

ENP Entry into the national phase

Ref document number: 112023022105

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20231024