CN114173321A - Equipment communication connection establishing method and equipment communication system - Google Patents

Equipment communication connection establishing method and equipment communication system Download PDF

Info

Publication number
CN114173321A
CN114173321A CN202010946833.2A CN202010946833A CN114173321A CN 114173321 A CN114173321 A CN 114173321A CN 202010946833 A CN202010946833 A CN 202010946833A CN 114173321 A CN114173321 A CN 114173321A
Authority
CN
China
Prior art keywords
electronic device
user
event information
electronic
instruction
Prior art date
Legal status (The legal status 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 status listed.)
Granted
Application number
CN202010946833.2A
Other languages
Chinese (zh)
Other versions
CN114173321B (en
Inventor
熊元峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202010946833.2A priority Critical patent/CN114173321B/en
Publication of CN114173321A publication Critical patent/CN114173321A/en
Application granted granted Critical
Publication of CN114173321B publication Critical patent/CN114173321B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W8/00Network data management
    • H04W8/22Processing or transfer of terminal data, e.g. status or physical capabilities
    • H04W8/24Transfer of terminal data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/02Protecting privacy or anonymity, e.g. protecting personally identifiable information [PII]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/11Allocation or use of connection identifiers
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Abstract

The method comprises the steps that the second electronic device is connected with the first electronic device and the third electronic device which log in the same user ID, whether the electronic device logged in with the same user ID is in a use state at the current moment is judged, and other electronic devices related to the user ID are recommended for the electronic device which is in use at the current moment, so that the used electronic device is connected with the recommended other electronic devices. According to the method, the user ID and the used state of the equipment are combined to achieve connection between the equipment, privacy of the user can be better protected, meanwhile, the user does not need to manually switch connection between the equipment, and user experience is improved.

Description

Equipment communication connection establishing method and equipment communication system
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a device communication connection establishment method and a device communication system.
Background
With the advancement of technology, wireless connection technology is becoming more popular among users, especially for use in some intelligent electronic devices, such as wireless headsets. Wireless headsets are typically used after establishing a connection with a user's electronic device. If the user has a plurality of electronic devices, the wireless headset needs to switch the connection among the plurality of electronic devices. For example, a plurality of electronic devices of a user may be paired with a wireless headset, and after pairing, the user may click the paired headset on a mobile phone or other paired electronic devices, thereby establishing a connection between the headset and one device of the user. However, when the user switches the use of these devices, frequent manual switching of the connection between these devices and the wireless headset is required. The users are switched in a complicated mode, the operation is complicated, and the user experience is reduced.
Disclosure of Invention
In view of this, the present invention provides a device communication connection establishing method and a device communication system, which can automatically determine whether a device of a user is used at the current time, so that a wireless headset is automatically connected to the currently used device without manual operation of the user. Meanwhile, the user ID is combined with the state of the used equipment, so that the privacy of the user is better protected from being invaded, and the experience of the user is improved.
Some embodiments of the present application provide a device communication connection establishment method. The present application is described below in terms of several aspects, embodiments and advantages of which are mutually referenced.
In a first aspect, the present invention provides a device communication connection establishing method, applied to a system formed by a first electronic device, a second electronic device, a third electronic device, and a fourth electronic device, where the method includes: the second electronic equipment is connected with the first electronic equipment and the third electronic equipment through the same user ID; in response to the second electronic device determining that the first electronic device is in a used state at the current moment, the second electronic device sends a first instruction to the first electronic device, wherein the first instruction is used for indicating the first electronic device to establish connection with a fourth electronic device; responding to the received first instruction, and establishing connection between the first electronic equipment and the fourth electronic equipment; in response to the second electronic device determining that the third electronic device is in a used state at the current moment, the second electronic device sends a second instruction to the first electronic device and sends a third instruction to the third electronic device, wherein the second instruction is used for indicating that the first electronic device is disconnected from the fourth electronic device, and the third instruction is used for indicating that the third electronic device is connected with the fourth electronic device; in response to the received second instruction, the first electronic device is disconnected from the fourth electronic device; and responding to the received third instruction, and the third electronic equipment establishes connection with the fourth electronic equipment.
According to the method, the second electronic device is connected with the plurality of electronic devices logged in with the same user ID, the electronic devices currently used by the user can be automatically identified, such as the first electronic device, and then the other electronic device, such as the fourth electronic device, is pushed to the first electronic device currently used, so that the fourth electronic device is connected with the first electronic device, and in the switching process, the fourth electronic device can only be connected with the electronic device with the same user ID.
In a possible implementation of the first aspect, the determining, by the second electronic device, that the first electronic device and/or the third electronic device is in the used state at the current time includes: the first electronic device and/or the third electronic device receives event information input by a user, wherein the event information is used for representing the operation of the user on the first electronic device and/or the third electronic device; the first electronic equipment and/or the third electronic equipment sends the event information to the second electronic equipment; the second electronic device determines a state in which the first electronic device and/or the third electronic device is used according to the received event information. The second electronic device can effectively identify whether the first electronic device and/or the third electronic device is used by the user through the operation of the user at least at the current moment aiming at the first electronic device and/or the third electronic device.
In one possible implementation of the first aspect, the event information input by the user includes: the event information input by the user includes event information input by the user at the current time or event information input by the user within a preset time interval from the current time.
In one possible implementation of the first aspect, the event information includes: the first electronic device and/or the third electronic device receives data generated by a sensor of the first electronic device and/or the third electronic device when a user operates the first electronic device and/or the third electronic device. For example, a user's finger slides the screen and the touch sensor receives data generated by a user's motion such as sliding or clicking.
In a possible implementation of the first aspect, the determining, by the second electronic device, that the first electronic device and/or the third electronic device is in the used state according to the received event information includes: in response to receiving the event information, the second electronic device inputs the event information into a neural recognition network within the second electronic device, wherein the neural network may be a model that has been trained, e.g., a convolutional neural network model, a deep neural network model. Meanwhile, the model can be continuously trained and updated through the acquired data in the continuous recognition. And outputting a first probability value by the neural recognition network; in response to the received first probability value being greater than or equal to a preset probability threshold, the second electronic device determines a state in which the first electronic device and/or the third electronic device is in use. The event information input by the user aiming at the first electronic equipment is identified through the trained neural network model, whether the first electronic equipment is used by the user or not is judged, the judgment accuracy can be effectively improved, and meanwhile, the method is simple and convenient to apply.
In a possible implementation of the first aspect, the neural recognition network is trained for event information received by the second electronic device within a preset time. That is, the event information input by the user at the current time and in a period of time before the current time of the electronic device may be used as the training sample set when the neural network is trained. The neural network model can effectively improve the accuracy of recognition by training the operation of the user in a period of time as a training sample set.
In a possible implementation of the first aspect, the first instruction, the second instruction, and the third instruction include a device identifier of the fourth electronic device.
In a possible implementation of the first aspect, the instruction to establish a connection with a fourth electronic device includes: a device identification of the fourth electronic device, at least one of a device name, a communication address, a device ID, and a MAC address of the fourth electronic device.
In a possible implementation of the first aspect, the establishing, by the second electronic device, a connection with the first electronic device and the third electronic device through the same user ID includes: the method comprises the steps that a first electronic device receives a user ID input by a user; the third electronic equipment receives the same user ID input by the user and received by the first electronic equipment; the second electronic device acquires the user IDs from the first electronic device and the third electronic device respectively, and establishes connection with the first electronic device and the third electronic device. The user ID acquired by the second electronic equipment from the first electronic equipment is the user ID preprocessed by the first electronic equipment, and the preprocessing comprises encryption processing on the user ID; the user ID acquired by the second electronic device from the third electronic device is a user ID preprocessed by the third electronic device, and the preprocessing includes an encryption process on the user ID. By encrypting the user ID, the identity information of the user can be better protected.
In a second aspect, the present application provides a device communication system, the system comprising: first electronic equipment, second electronic equipment, third electronic equipment and fourth electronic equipment, this system includes: the second electronic equipment is used for establishing connection with the first electronic equipment and the third electronic equipment through the same user ID; in response to the second electronic device determining that the first electronic device is in a used state at the current moment, the second electronic device is used for sending a first instruction to the first electronic device, wherein the first instruction is used for indicating the first electronic device to establish connection with a fourth electronic device; responding to the received first instruction, and establishing connection between the first electronic equipment and the fourth electronic equipment; in response to the second electronic device determining that the third electronic device is in a used state at the current moment, the second electronic device is configured to send a second instruction to the first electronic device, and send a third instruction to the third electronic device, where the second instruction is used to instruct the first electronic device to disconnect from the fourth electronic device, and the third instruction is used to instruct the third electronic device to establish connection with the fourth electronic device; in response to the received second instruction, the first electronic device is used for disconnecting from the fourth electronic device; and responding to the received third instruction, and the third electronic equipment is used for establishing connection with the fourth electronic equipment.
According to the method, the second electronic device is connected with the electronic devices logged in with the same user ID, the electronic device currently used by the user can be automatically identified, such as the first electronic device, and then the other electronic device, such as the fourth electronic device, is pushed to the first electronic device currently used, so that the fourth electronic device is connected with the first electronic device, and in the switching process, the fourth electronic device can only be connected with the electronic device with the same user ID.
In a possible implementation of the second aspect, the determining, by the second electronic device, a state in which the first electronic device and/or the third electronic device is used at the current time includes: the first electronic device and/or the third electronic device is used for receiving event information input by a user, and the event information is used for representing the operation of the user on the first electronic device and/or the third electronic device; the first electronic equipment and/or the third electronic equipment are used for sending the event information to the second electronic equipment; the second electronic device is used for determining the state of the first electronic device used according to the received event information. The operation of the user aiming at the first electronic equipment at least at the current moment is convenient for the second electronic equipment to effectively identify whether the first electronic equipment is used by the user.
In one possible implementation of the second aspect, the event information input by the user includes event information input by the user at the current time, or event information input by the user within a preset time interval from the current time.
In one possible implementation of the second aspect, the event information includes: the first electronic device and/or the third electronic device are used for receiving data generated by a sensor of the first electronic device and/or the third electronic device when a user operates the first electronic device and/or the third electronic device. For example, a user's finger slides the screen and the touch sensor receives data generated by a user's motion such as sliding or clicking.
In a possible implementation of the second aspect, the determining, by the second electronic device, a state in which the first electronic device and/or the third electronic device is used according to the received event information includes: in response to receiving the event information, the second electronic device is configured to input the event information into a neural recognition network within the second electronic device and output a first probability value by the neural recognition network; in response to the received first probability value being greater than or equal to a preset probability threshold, the second electronic device is configured to determine a state in which the first electronic device and/or the third electronic device is in use. The event information input by the user aiming at the first electronic equipment is identified through the trained neural network model, whether the first electronic equipment is used by the user or not is judged, the judgment accuracy can be effectively improved, and meanwhile, the method is simple and convenient to apply.
In a possible implementation of the second aspect, the neural recognition network is trained for event information received by the second electronic device within a preset time. That is, the event information input by the user at the current time and in a period of time before the current time of the electronic device may be used as the training sample set when the neural network is trained. The neural network model can effectively improve the accuracy of recognition by training the operation of the user in a period of time as a training sample set.
In a possible implementation of the second aspect, the first instruction, the second instruction, and the third instruction include: a device identification of the fourth electronic device.
In one possible implementation of the second aspect described above, the device identification of the fourth electronic device comprises at least one of a device name, a communication address, a device ID and a MAC address.
In a possible implementation of the second aspect, the second electronic device is configured to establish connection with the first electronic device and a third electronic device through the same user ID, and includes: the first electronic equipment is used for receiving a user ID input by a user; the third electronic equipment is used for receiving the same user ID input by the user and received by the first electronic equipment; the second electronic device is used for acquiring the user ID from the first electronic device and the third electronic device respectively and establishing connection with the first electronic device and the third electronic device. The user ID acquired by the second electronic equipment from the first electronic equipment is the user ID preprocessed by the first electronic equipment, and the preprocessing comprises encryption processing on the user ID; the user ID acquired by the second electronic device from the third electronic device is a user ID preprocessed by the third electronic device, and the preprocessing includes an encryption process on the user ID. By encrypting the user ID, the identity information of the user can be better protected.
In a third aspect, the present invention provides a method for establishing a device communication connection, which is applied to a second electronic device, where the second electronic device establishes a connection with a first electronic device and a third electronic device through a same user ID; in response to the second electronic device determining that the first electronic device is in a used state at the current moment, the second electronic device sends a first instruction to the first electronic device, wherein the first instruction is used for indicating the first electronic device to establish connection with a fourth electronic device; so that the first electronic equipment and the fourth electronic equipment are connected; in response to the second electronic device determining that the third electronic device is in a used state at the current moment, the second electronic device sends a second instruction to the first electronic device and sends a third instruction to the third electronic device, wherein the second instruction is used for indicating that the first electronic device is disconnected from the fourth electronic device, and the third instruction is used for indicating that the third electronic device is connected with the fourth electronic device; so that the first electronic device is disconnected from the fourth electronic device, and the third electronic device is connected with the fourth electronic device.
According to the method, the used state of the electronic equipment is combined with the user ID of the electronic equipment to realize connection with another electronic equipment, privacy of a user can be better protected, meanwhile, the user does not need to manually switch connection among the equipment, and user experience is improved.
In a possible implementation of the foregoing third aspect, the determining, by the second electronic device, that the first electronic device and/or the third electronic device is in the used state at the current time includes: the first electronic device and/or the third electronic device receives event information input by a user, wherein the event information is used for representing the operation of the user on the first electronic device and/or the third electronic device; the first electronic equipment and/or the third electronic equipment sends the event information to the second electronic equipment; the second electronic device determines a state in which the first electronic device and/or the third electronic device is used according to the received event information. The operation of the user aiming at the first electronic equipment at least at the current moment is convenient for the second electronic equipment to effectively identify whether the first electronic equipment is used by the user.
In a possible implementation of the third aspect, the event information input by the user includes event information input by the user at the current time, or event information input by the user within a preset time interval from the current time.
In one possible implementation of the third aspect, the event information includes: the first electronic device and/or the third electronic device receives data generated by a sensor of the first electronic device and/or the third electronic device when a user operates the first electronic device and/or the third electronic device. For example, a user's finger slides the screen and the touch sensor receives data generated by a user's motion such as sliding or clicking.
In a possible implementation of the foregoing third aspect, the determining, by the second electronic device, that the first electronic device and/or the third electronic device is in the used state according to the received event information includes: in response to receiving the event information, the second electronic device inputting the event information into a neural recognition network within the second electronic device and outputting a first probability value by the neural recognition network; in response to the received first probability value being greater than or equal to a preset probability threshold, the second electronic device determines a state in which the first electronic device and/or the third electronic device is in use. The event information input by the user aiming at the first electronic equipment is identified through the trained neural network model, whether the first electronic equipment is used by the user or not is judged, the judgment accuracy can be effectively improved, and meanwhile, the method is simple and convenient to apply.
In a possible implementation of the third aspect, the neural recognition network is trained for event information received by the second electronic device within a preset time. That is, the event information input by the user at the current time and in a period of time before the current time of the electronic device may be used as the training sample set when the neural network is trained. The neural network model can effectively improve the accuracy of recognition by training the operation of the user in a period of time as a training sample set.
In a possible implementation of the third aspect, the first instruction, the second instruction, and the third instruction include a device identifier of the fourth electronic device.
In a possible implementation of the third aspect, the device identifier of the fourth electronic device includes: at least one of a device name, a communication address, a device ID, and a MAC address of the fourth electronic device.
In a possible implementation of the third aspect, the establishing, by the second electronic device, a connection with the first electronic device and the third electronic device through the same user ID includes: the second electronic device acquires the user IDs from the first electronic device and the third electronic device respectively, and establishes connection with the first electronic device and the third electronic device. The user ID acquired by the second electronic equipment from the first electronic equipment is the user ID preprocessed by the first electronic equipment, and the preprocessing comprises encryption processing on the user ID; the user ID acquired by the second electronic device from the third electronic device is a user ID preprocessed by the third electronic device, and the preprocessing includes an encryption process on the user ID. By encrypting the user ID, the identity information of the user can be better protected.
In a possible implementation of the third aspect, the second electronic device stores, in the database, state information of the first electronic device and the third electronic device, which have the same user ID, and a connection status between the first electronic device and the fourth electronic device, respectively, where the state information includes a used state and an unused state of the first electronic device. And the equipment with the same user ID is managed uniformly, so that the inquiry and the management are facilitated.
In a fourth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, causes the processor to execute the method of the first aspect.
In a fifth aspect, the present application discloses a computer program product comprising instructions which, when run on a computer, cause the computer to perform the method according to the embodiments of the first aspect.
In a sixth aspect, the present application discloses an electronic device comprising a processor and a memory for storing a computer program, which, when run on the electronic device, causes the processor to perform the method according to the embodiment of the first aspect.
Drawings
FIG. 1a is a diagram of a device communication system architecture according to an embodiment of the present application;
FIG. 1b is a schematic diagram illustrating a connection state of a device communication system according to an embodiment of the present application;
FIG. 1c is a schematic diagram of a connection state of a device communication system according to an embodiment of the present application;
FIG. 2a is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 2b is a block diagram of a software architecture of an electronic device according to an embodiment of the present application;
FIG. 2c is a schematic structural diagram of another electronic device according to an embodiment of the present application;
fig. 3a is a flowchart of a device communication connection establishment method according to an embodiment of the present application;
fig. 3b is a flowchart of a process for determining a used state of a mobile phone according to another embodiment of the present application;
FIG. 4a is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 4b is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 5a is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 5b is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 5c is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 5d is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 6a is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 6b is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 6c is a schematic interface diagram of a mobile phone according to an embodiment of the present application;
FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
FIG. 8 is a block diagram of a system on a chip according to some embodiments of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
Fig. 1a to fig. 1c are schematic diagrams illustrating a structure and a connection state of a device communication system according to an embodiment of the present application.
As shown in fig. 1a, the system includes a handset 110, a tablet 111, a cloud server 120, and a wireless headset 130. The mobile phone 110, the tablet 111, and the wireless headset 130 may all be bound to a specific user Identity (ID), and the mobile phone 110 has been paired with the headset 130 and the tablet 111. When the user logs in the user ID on the handset 110 and the tablet 111, the cloud server 120 will connect with the handset 110 and the tablet 111. And the cloud server may acquire information of the headset paired with the handset 110 and the tablet 111, for example, information of a name, a communication address, and the like of the headset.
As shown in fig. 1b, when the user uses the mobile phone 110, the cloud server 120 acquires, from the mobile phone 110, a user ID and event information input by the user on the mobile phone 110, the event information being used to represent an operation of the user on the mobile phone 110, and data corresponding to the operation being generated by the mobile phone 110. For example, when the user uses the mobile phone 110, the user presses the power-on key, and after the mobile phone 110 lights up, the data information of the lighted up screen is sent to the cloud server 120, or the user slides on the screen of the mobile phone 110, and corresponding data is detected by sensors such as a touch sensor and a pressure sensor of the mobile phone 110, and the mobile phone 110 sends the event information to the cloud server 120, or the cloud server obtains the event information from the mobile phone 110. After the cloud server 120 obtains the event information, the event information is input into a trained Neural network, where a Convolutional Neural Network (CNN) may be used as an example of the Neural network. Event information is identified via the neural network to determine whether the handset 110 is being used by the user. When the cloud server 120 recognizes that the mobile phone 110 is in the used state through the neural network, the cloud server 120 may acquire a device identifier of the headset, such as a name and a communication address of the headset, and send a connection instruction to the mobile phone 110, and after receiving the connection instruction with the headset 130 sent by the cloud server 120, the mobile phone 110 establishes a connection with the headset 130. Therefore, the automatic connection between the earphone 130 and the mobile phone 110 is realized, the connection between the mobile phone 110 and the earphone 130 does not need to be manually operated by a user, and the use comfort of the user is improved. In this embodiment, the device identifier may further include information such as a device ID, a MAC (Media Access Control Address) Address, and the like of the headset 130.
As shown in fig. 1c, when the user uses the tablet 111 instead of the mobile phone 110, the cloud server 120 obtains event information input by the user for the tablet 111, and identifies the event information through the neural network, when it is identified that the user is currently using the tablet 111, the cloud server 120 sends an instruction for disconnecting from the earphone 130 to the mobile phone 110, and sends an instruction for establishing connection with the earphone 130 to the tablet 111, after the mobile phone 110 receives the disconnection instruction, the mobile phone is disconnected from the earphone 130, and the tablet receives the connection instruction to establish connection with the earphone 130. Thereby realizing automatic switching connection between the earphone and a plurality of devices. In addition, the cloud server 120 only sends the headset 130 to the electronic device with the user ID, such as the mobile phone 110 and the tablet 111, so that the headset is prevented from being connected to the electronic device of another user, the privacy of the user is better protected, and the user experience is improved.
The above embodiment has been described with the mobile phone 110 as the first electronic device, the cloud server 120 as the second electronic device, the tablet 111 as the third electronic device, and the earphone 130 as the fourth electronic device. The first electronic device and the third electronic device in the system may be any electronic devices having a wireless communication function. For example, the device may be a mobile phone, a tablet computer, a notebook computer, an ultra mobile personal computer, a Personal Digital Assistant (PDA), a television, or a wearable device with a communication function, such as a watch, a bracelet, or the like. The second electronic device is an intermediate device, and may be, for example, an electronic device that establishes a communication connection with the first electronic device and a third electronic device, such as a cloud server, a relay, a local server, and the like. The fourth electronic device may be a headset, a sound box, a mobile phone, etc. The device type of the electronic device is not particularly limited in this application.
Optionally, in an embodiment of the application, when the fourth electronic device is an electronic device capable of being in communication connection with the second electronic device, such as a mobile phone, a tablet, or a computer, a user may log in the same user ID on the first electronic device, the third electronic device, or the fourth electronic device at the same time, so that the second electronic device may establish connection with the first electronic device, the third electronic device, or the fourth electronic device at the same time, and when the second electronic device identifies that the first electronic device or the third electronic device is in a used state, the used state of the first electronic device or the third electronic device may also be sent to the fourth electronic device, so that the fourth electronic device establishes connection with the first electronic device or the third electronic device.
It should be noted that, although the first electronic device, for example, the mobile phone 110, the second electronic device, for example, the cloud server 120, the third electronic device, for example, the tablet 111, and the fourth electronic device, for example, the earphone 130 are taken as examples, and whether the first electronic device and the third electronic device are in the used state is determined by the second electronic device, in the device communication connection establishment method provided in the embodiment of the present application, whether the first electronic device is in the used state may also be identified by the first electronic device, and whether the third electronic device is in the used state may also be identified by the third electronic device, which is not limited in the embodiment of the present application. For example, the device communication connection establishment method provided in the embodiment of the present application may further identify, by the first electronic device, whether the first electronic device is used, and when it is determined that the first electronic device is used, the second electronic device recommends the fourth electronic device to the first electronic device, so as to establish a connection between the first electronic device and the fourth electronic device.
In the embodiment of the application, the earphone and the mobile phone or the tablet may be connected by a wireless short-range communication technology, and the connection may be a wireless communication technology such as Bluetooth (BT), Near Field Communication (NFC), Infrared (IR), and the like. The Bluetooth may also include classic Bluetooth and Bluetooth Low Energy (BLE), among others.
The following describes a technical solution of the present application with reference to specific structures of the first electronic device, the second electronic device, and the third electronic device in the system shown in fig. 1.
The following describes a configuration of an electronic device that is a first electronic device, a second electronic device, or a third electronic device.
For example, fig. 2a shows a schematic structural diagram of an electronic device. The electronic device 210 may be implemented as a cloud server as shown in fig. 1, or may be implemented as other electronic devices, such as a mobile phone, a tablet, a computer, and so on.
The device 210 may include one or more processors 211 coupled to a controller hub 213. For at least one embodiment, the controller hub 213 communicates with the processor 211 via a multi-drop Bus such as a Front Side Bus (FSB), a point-to-point interface such as a Quick Path Interconnect (QPI), or similar connection 216. Processor 211 executes instructions that control general types of data processing operations. In one embodiment, Controller Hub 213 includes, but is not limited to, a Graphics Memory Controller Hub (GMCH) (not shown) and an Input/Output Hub (IOH) (which may be on separate chips) (not shown), where the GMCH includes a Memory and a Graphics Controller and is coupled to the IOH.
The device 210 may also include a coprocessor 212 and memory 214 coupled to the controller hub 213. Alternatively, one or both of the memory and GMCH may be integrated within the processor (as described herein), with the memory 214 and coprocessor 212 coupled directly to the processor 211 and controller hub 213, with the controller hub 213 in a single chip with the IOH. The Memory 214 may be, for example, a Dynamic Random Access Memory (DRAM), a Phase Change Memory (PCM), or a combination of the two. In one embodiment, coprocessor 212 is a special-Purpose processor, such as, for example, a high-throughput MIC processor (MIC), a network or communication processor, compression engine, graphics processor, General Purpose Graphics Processor (GPGPU), embedded processor, or the like. The optional nature of coprocessor 212 is represented in FIG. 2a by dashed lines.
Memory 214, which is a computer-readable storage medium, may include one or more tangible, non-transitory computer-readable media for storing data and/or instructions. For example, the memory 214 may include any suitable non-volatile memory, such as flash memory, and/or any suitable non-volatile storage device, such as one or more Hard-Disk drives (Hard-Disk drives, hdd (s)), one or more Compact Disks (CD) drives, and/or one or more Digital Versatile Disks (DVD) drives.
In one embodiment of the present application, the memory 214, which is a computer readable storage medium, stores a neural network model, which may be a model trained on the device 210 or a model trained on another device and stored in the memory 214 of the device 210. In an embodiment of the present application, when the device 210 is used as the second electronic device and the user is using the first electronic device, the device 210 may determine whether the first electronic device is used by the user based on the neural network model and the received event information input to the first electronic device by the current user. When the device 210 determines that the first electronic device is used by the user at the current time, the device 210 may send the device identifier of the fourth electronic device to the first electronic device being used by the user, so that the first electronic device and the fourth electronic device establish a connection.
Further, in another embodiment of the present application, the device 210 itself may serve as the first electronic device or the third electronic device that establishes a connection with the third electronic device, and determine whether itself is in a used state. For example, when the device 210 is used as a first electronic device and a user operates the device 210, the device 210 receives event information input by the user, identifies whether the device is used by the user at the current time through the neural network model stored in the memory 214, and when the device is determined to be used, sends a used state to a second electronic device, and the second electronic device recommends a fourth electronic device to the device 210, so that the device 210 establishes a connection with the fourth electronic device.
In one embodiment, the device 210 may further include a Network Interface Controller (NIC) 216. Network interface 216 may include a transceiver to provide a radio interface for device 210 to communicate with any other suitable device (e.g., front end module, antenna, etc.). In various embodiments, the network interface 216 may be integrated with other components of the device 210.
In one embodiment of the present application, the network interface 216 may implement the communication process in the above-described embodiment. For example, when the device 210 is used as a second electronic device, the network interface 216 may enable the device 210 to receive event information input by a user for the first electronic device or a third electronic device, and may also send an instruction to establish a connection with a fourth electronic device to the first electronic device or the third electronic device through the interface 216.
The device 210 may further include an Input/Output (I/O) device 215. I/O215 may include: a user interface designed to enable a user to interact with the device 1200; the design of the peripheral component interface enables peripheral components to also interact with the device 210; and/or sensors are designed to determine environmental conditions and/or location information associated with device 210.
For example, when the device 210 is used as the first electronic device or the third electronic device, the device 210 receives event information input by a user through the I/O215, and may also display that a connection is established with the fourth electronic device through a user interface.
It is noted that fig. 2a is merely exemplary. That is, although fig. 2a shows that the apparatus 210 includes a plurality of devices, such as the processor 211, the controller hub 213, and the memory 214, in practical applications, the apparatus using the methods of the present application may include only a part of the devices of the apparatus 210, for example, only the processor 211 and the NIC216 may be included. The properties of the optional device in fig. 2a are shown in dashed lines.
Fig. 2b is a block diagram of the software structure of the electronic device 210 according to the embodiment of the present invention.
The layered architecture divides the software into several layers, each layer having a clear role and division of labor. The layers communicate with each other through a software interface. In some embodiments, the system is divided into three layers, namely a page service layer, an application service layer and a data management layer from top to bottom.
As shown in fig. 2b, the data management layer may include a data acquisition module, a data storage module, and the like. The data acquisition module is used for receiving various data. For example, taking the system of fig. 1 as an example, when the electronic device 210 is implemented as a second electronic device, and the user is currently using a first electronic device, the data obtaining module is configured to obtain, from the first electronic device, a user ID currently logged in at the first electronic device, and obtain event information (data generated by clicking a finger of the user, sliding a display screen of the first electronic device, and the like) input by the user for the first electronic device at least at the current time. The data storage module is used for storing the data acquired by the data acquisition module, the data processed by the application service layer and the like.
The application service layer can comprise a logic operation module, an operation module and the like. The logic operation module may include some predefined functions, for example, a function for identifying whether the first electronic device is in a used state, such as a neural recognition network model. The operation module is used for operating the service logic module and obtaining a corresponding logic result, for example, obtaining a state that the first electronic device is used or a state that the third electronic device is used.
The page service layer may include a query module, a call output module, and the like. The query module is used for searching data or equipment corresponding to the identifier according to the corresponding identifier. For example, the query module may query for multiple devices with the same user ID based on the user ID. For example, when the first electronic device in fig. 1 is in a used state, the query module may query a fourth electronic device that is associated with the first electronic device and that may establish a communication connection, according to the user ID logged in on the first electronic device. The call output module is used for calling out the data or the address of the equipment inquired by the inquiry module and outputting a logic result according to the address of the equipment. For example, the call output module sends the state data that the first electronic device is used to the fourth electronic device.
An exemplary structure of a headphone as an example of the fourth electronic device is described below.
For example, fig. 2c shows a schematic structural diagram of an electronic device. Referring to fig. 2c, the electronic device 220 may be implemented as a wireless headset as shown in fig. 1, or may be implemented as other electronic devices, for example, wearable devices such as a mobile phone, a smart watch, smart glasses, and the like. The electronic device 220 may include a processor 221, an internal memory 222, a wireless communication module 223, and an audio module 224. The audio module 224 may include a receiver 24 b. For other wearable devices, audio module 224 optionally further includes speaker 25 a.
It is to be understood that the illustrated structure of the embodiment of the invention does not limit the electronic device 220. In other embodiments of the present application, the electronic device 220 may include more or fewer components than shown, or combine certain components, or split certain components, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
The processor 221 may generate operation control signals according to the instruction operation code and the timing signal, so as to complete the control of instruction fetching and instruction execution.
In one embodiment of the present application, the processor 221 may store instructions for implementing the device communication connection establishment method according to the present application through the internal memory 220. For example, the electronic device 220 is implemented as a wireless headset as shown in fig. 1, after the device communication connection establishment method instruction is executed, the electronic device 220 receives a request for establishing a connection with the first electronic device or the third electronic device, and establishes a connection with the first electronic device or the third electronic device through the wireless communication module 224.
In another embodiment of the present application, if the electronic device 220 has already established a connection with the first electronic device and a third electronic device is currently being used, before the electronic device 220 is connected with the third electronic device in the currently used state, the processor 210 disconnects the connection with the first electronic device that has already been connected and then establishes a connection with the third electronic device that is currently being used.
The wireless communication module 240 may provide a solution for wireless communication applied to the electronic device 200, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), Bluetooth (BT), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 240 may be one or more devices integrating at least one communication processing module. The wireless communication module 240 receives electromagnetic waves, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 210. The wireless communication module 240 may also receive a signal to be transmitted from the processor 210, frequency modulate it, amplify it, and radiate it as electromagnetic waves.
The electronic device 220 may implement audio functions via an audio module 224, such as a speaker 251, a microphone 252, and a processor. Such as music playing, recording, etc.
The receiver 24b, also called "earpiece", is used to convert the electrical audio signal into an acoustic signal. When the electronic device 220 establishes a connection with a device with the same user ID, it can receive the audio signal of the connected device and broadcast the audio to the user through the receiver 24 b.
Embodiments of the present application associate a user ID with a used state of an electronic device to enable secure connection with another electronic device of the same user ID. Meanwhile, manual operation is not needed, and user experience is improved.
The method for establishing a communication connection of a device is described below with reference to specific embodiments.
Fig. 3a shows a flow chart of a device communication connection establishment method. The method is applied to a system shown in fig. 1, where the system includes a first electronic device, a second electronic device, a third electronic device, and a fourth electronic device, and specifically, the first electronic device takes a mobile phone as an example, the second electronic device takes a cloud server as an example, the third electronic device takes a tablet as an example, and the fourth electronic device takes an earphone as an example. In embodiments of the application, the handset and the tablet are associated with the headset respectively, for example, the handset and the tablet have the same user ID as the headset, or the handset and the tablet are paired with two devices of the headset. Wherein, a mobile phone can be associated with a plurality of electronic devices, for example, a mobile phone can be associated with a plurality of earphones. One headset may also be associated with multiple electronic devices, such as a cell phone and a tablet. In the following embodiments, a method for establishing a communication connection between a device and a headset in a scenario where the headset is associated with a handset and a tablet is first described. In this scenario, the headset and the handset or tablet implement automatic connection establishment. As shown in fig. 3a, the method comprises the steps of:
in step S310, the mobile phone receives a user ID input by the user. The user firstly registers the user ID on the mobile phone, for example, the user ID is registered as an account, and after the user logs in the account, the mobile phone is connected with the cloud server. The cloud server can obtain information such as a communication address and a name of the headset paired with the mobile phone from the mobile phone.
Step S320, based on the user ID, the cloud server establishes communication connection with the mobile phone. The cloud server acquires a user ID, inputs the user ID into a user ID identification network to acquire a user ID identity, and finds the earphone associated with the user ID based on the user ID. The information such as the user ID and the address and name of the earphone can be acquired from the mobile phone by the cloud server, or the information such as the user ID and the address and name of the earphone can be sent to the cloud server by the mobile phone.
In the embodiment of the application, before the cloud server acquires the user ID, the mobile phone further needs to preprocess the information such as the user ID, that is, encrypt, desensitize, and the like the user ID, so that the user identity information is effectively protected.
In the embodiment of the application, the cloud server needs to identify the state of the used mobile phone at the current moment and establish connection between the earphone and the used mobile phone or tablet. In the following steps, a process of establishing a connection between the handset and the headset will be described in detail.
In step S330, the mobile phone receives data generated by the mobile phone for the operation of the mobile phone by the user at least at the current time. Such data generated for the operation of the mobile phone may be referred to as event information input by the user. For example, after the user clicks or slides the screen of the mobile phone, the touch position, touch time, and other data are generated by the touch sensor of the mobile phone. Pressure data generated by a pressure sensor, a temperature sensor generated by a temperature sensor, and the like may be used.
In the embodiment of the application, the event information input at least at the current moment comprises the event information input by the user at the current moment or the event information input by the user at the current moment and a period of time before the current moment. For example, the current time Tn is 10 am, the mobile phone may use the event information input by the user at 10 am as the determination data for determining whether the mobile phone is used, or the mobile phone may receive the event information input by the user from 9 am, 55 minutes to the current time Tn10 am on the same day. According to the method and the device, the event information in a period of time is used as the input event information, so that whether the mobile phone is in a used state at the current moment can be judged more accurately.
In the embodiment of the application, before the cloud server acquires the user ID, the mobile phone further needs to preprocess the information such as the user ID, that is, encrypt, desensitize, and the like the user ID, so that the user identity information is effectively protected.
In step S340, the cloud server acquires the event information in step S330. The mobile phone may send the event information to the cloud server, or the cloud server may obtain the event information from the mobile phone, which is not limited herein.
In step S350, the cloud server determines whether the current time of the mobile phone is in a used state based on the event information.
In the embodiment of the application, a neural recognition network model may be stored in the cloud server, and the cloud server inputs the event information into the neural recognition network model, and calculates the probability value of the use of the mobile phone by using the neural recognition network model. And when the probability value reaches a set threshold value, judging that the mobile phone is in a used state, and when the probability value is smaller than the preset threshold value, selecting to judge that the mobile phone is not used. For example, if the calculated probability value is 0.9, the set threshold value is 0.8, and the probability value is greater than 0 and the set threshold value is 0.8, it is determined that the mobile phone is in the use state.
For example, the neural recognition network model is stored in the mobile phone, and the processor of the mobile phone transmits the acquired event information input by the user to the neural recognition network model to determine whether the mobile phone is in the use state, and transmits the use state of the mobile phone to the cloud server.
As shown in fig. 3a, when the cloud server determines that the mobile phone is in a used state at the current time, steps S360-S370 are performed, and in step S360, the cloud server sends the device identifier (name or communication address) of the headset to the mobile phone. In step S370, the headset establishes a connection with the used handset. For example, the headset establishes a bluetooth connection with a cell phone, etc. When the cloud server judges that the mobile phone is not in the used state at the current moment, the cloud server continues to execute the step S340 to the step S350.
In the embodiment of the application, the cloud server may store the devices having the user ID, such as a mobile phone and a tablet, and the state information (usage) of each device, the connection condition with the headset in the corresponding device attribute table, and store the connection condition in the database, so that the cloud server manages the usage state and the connection state of each device. The device attribute table is shown in table 1.
TABLE 1 device Attribute Table
NO. User ID Device usage Whether to connect earphone or not
1 XXXX1 Mobile phone 01 is used Is that
2 XXXX1 Plate 02 is not in use Whether or not
As can be seen from the table, the devices having the user ID number "xxxx 1" are the mobile phone 01 and the tablet 02, respectively. The column of "device usage" lists the usage status of the mobile phone determined by the cloud server, including the state in which the mobile phone is used and the state in which the mobile phone is not used. As shown in table 1, the mobile phone 01 is in use, and the tablet 02 is not in use. Also, as can be seen from table 1, the connection condition of the mobile phone 01 and the headset is "yes", indicating that the mobile phone 01 currently in use is connected with the headset. Meanwhile, the connection condition of the tablet 02 and the earphones is "no", which indicates that the tablet 02 is not connected with the earphones. In the embodiment of the application, the cloud server can quickly inquire which devices with the same user ID exist, the service conditions of the devices and the connection condition of the devices and the earphones according to the device attribute table, so that the inquiry and the unified management are facilitated.
As shown in fig. 3a, when the user logs in the user ID on the tablet and switches from using the mobile phone to using the tablet, the system performs steps S381-S386. Before the user uses the tablet, the user also needs to input a user ID on the tablet for login, for example, before the user logs in the user ID on the mobile phone, the user ID that has already logged in is logged in, or the user logs in while the mobile phone is being used, or the user logs in when switching to use the tablet, so that the tablet and the cloud server establish a connection. The establishing of the connection between the tablet and the cloud server may include the step of the tablet receiving a user ID input by a user and the step of the tablet establishing the connection between the tablet and the cloud server, which is not shown in fig. 3a only. The content of the step of the tablet receiving the user ID input by the user and establishing the connection between the tablet and the cloud server may refer to the content of S310 and S320, and will not be described herein again.
In S381, the tablet receives event information input by the user for the tablet at least at the current time. The event information is used for representing data generated by the operation of the tablet by the user. For example, the user clicks or slides the tablet screen, and then touches the tablet with data such as touch position and touch time. Pressure data generated by a pressure sensor, a temperature sensor generated by a temperature sensor, and the like may be used.
In S382, the cloud server acquires event information input by the user for the tablet.
In S383, the cloud server determines whether the tablet is used at the current time based on the event information.
It should be noted that, in the above steps S381-S383, regarding the generation and acquisition of the event information and the judgment of whether the tablet is used or not, the same description as that of the mobile phone in S330-S350 is used, and specifically, the description in S330-S350 may be referred to. And will not be described in detail herein.
In S384, when the cloud server recognizes that the tablet is used at the current time, the cloud server first sends an instruction to disconnect the headset to the handset. And after the mobile phone receives the connection instruction of disconnecting from the earphone, disconnecting from the earphone.
In S385, the cloud server recommends the headset to the tablet being used. For example, the cloud server sends the device name and the communication address of the headset to the tablet to enable the tablet to establish a connection with the headset. The automatic switching connection between the earphone and the current used equipment is realized.
In an embodiment of the application, after the connection is switched, that is, the headset is originally connected to the mobile phone 01, and the connection is switched to be established with the tablet 02, because the state of the device changes after the connection is switched, the cloud server updates the states of the device use condition and the headset connection state in the device attribute table, which is specifically shown in table 2.
TABLE 2 device Attribute Table
NO. User ID Device usage Whether to connect earphone or not
1 XXXX1 The mobile phone 01 is not used Whether or not
2 XXXX1 The flat plate 02 is used Is that
In another embodiment of the present application, when a user newly adds a device, such as a mobile phone 03, and registers the mobile phone 03 with a user ID, and the mobile phone 03 and the headset are already paired, the cloud server may add the newly added mobile phone 03 to a list, such as the list shown in table 3. When the user uses the mobile phone 03 next time, the cloud server can quickly find the mobile phone 03 with the user ID "XXXX 1" and the corresponding headset according to the device attribute list, and send the headset to the mobile phone 03.
TABLE 3 device Attribute Table
NO. User ID Device usage Whether to connect earphone or not
1 XXXX1 The mobile phone 01 is not used Whether or not
2 XXXX1 The flat plate 02 is used Is that
3 XXXX1 The mobile phone 03 is not used Whether or not
In an embodiment of the application, when the user unbinds the handset from the headset, the cloud server removes the handset from the list. Or the mobile phone 01 quits the account number logged in by the user ID, the information of the mobile phone 01 is deleted from the equipment attribute table. The unbinding may be that the device deletes a specific device from the paired bluetooth device list, so that the connection between the two devices will not be automatically established next time. For example, the mobile phone 03 and the headset are already paired, the headset can be deleted from the paired device list of the mobile phone 03, and even when the bluetooth is turned on for the next time, the mobile phone 03 and the headset cannot automatically establish a connection.
According to the method for establishing the device communication connection, the user ID and the used state of the first electronic device or the third electronic device are combined, so that the used first electronic device or the used third electronic device is automatically connected with the fourth electronic device, and the fourth electronic device is only connected with the first electronic device or the third electronic device with the same user ID, so that the mobile phone is prevented from being connected with earphones of other users, the privacy of the users is better protected, and the user experience is improved.
In the embodiment of the present application, the first electronic device and the third electronic device are taken as examples to determine the usage state of the device, but other embodiments of the present application may further include a fifth electronic device, a sixth electronic device, and the like that log in the same user ID and need to be determined whether to be in the usage state. The number of electronic devices having the same user ID is not limited in the present application.
In the embodiment of the present application, in step S340, the neural recognition network model may be trained on other electronic devices and stored in the cloud server, or trained in the cloud server.
When the user does not select the headset in advance, in step S350, the cloud server may also first send a confirmation request to the mobile phone to remind the user to select the headset available for connection.
The following describes the judgment that the mobile phone is used, which is obtained by training the neural recognition network model in the cloud server.
Referring to fig. 3b, fig. 3b shows a flow of the determination process of the state that the mobile phone is used, and the flow chart includes the following steps:
in step S331, the cloud server acquires event information input by the user. The event information input by the user comprises event information input by the user aiming at the electronic equipment at a specific certain moment or event information input by the user within a certain period of time. The event information may be data generated by a user through operations of clicking, sliding, pressing a switch key, and the like on a screen of the electronic device. For example, a specific point in time, for example, 2 point 55 time sharing, is the operation of the user on the mobile phone, and the data generated by the mobile phone is used as the event information input by the user. Or, the operation of the user on the mobile phone is carried out within 5 minutes from 2 o 'clock 50 to 2 o' clock 55, and the data generated by the mobile phone is used as the event information input by the user.
The electronic device may include a mobile phone in the present application, and may also be another mobile phone, or another electronic device, such as a tablet computer.
In step S332, the event information obtained in step S331 is used as a training sample set, and is input to a neural network for training, for example, input to a convolutional neural network for training, so as to obtain a model for identifying whether the mobile phone is used, that is, a neural identification network model. In the present application, reference may be made to a scene training method in the prior art for a specific training process of a neural recognition network model, which is not described in detail herein.
In steps S333 to S334, the cloud server acquires event information input by the user for the mobile phone at least at the current time. And inputting the event information into a trained neural recognition network model, and recognizing whether the mobile phone is in a used state at the current moment through the neural network model. The specific identification process is already described in step S350, and is not described herein.
The embodiment of the application judges whether the mobile phone is in the used state or not through the neural recognition network model, and can effectively improve the judgment accuracy so that the earphone is effectively connected with the used mobile phone.
On the basis of the foregoing embodiments, the following contents may also be included as possible implementation methods.
The following is a description of an operation of the user switching a connection among a plurality of handsets.
Scene 1
In scenario 1 applied in the embodiment of the present application, when a plurality of mobile phones with user IDs logged in by a user are frequently used by turns, the user may select a connection setting on the mobile phone to connect to a mobile phone that wants to keep connected. The toggling between the headset and each handset is avoided.
Referring to fig. 4a, fig. 4a shows a schematic interface diagram of a handset. As shown in fig. 4a, in the interface 410, the user can set the connection of the handset to the specified headset folders 3. For example, a user setting icon 411 is included in the interface 410. The interface diagram shown in fig. 4b is entered by clicking the user setting icon 411, and in fig. 4b, the interface 420 includes options for determining the connection mode of the headset and the mobile phone, for example, various options such as "always connect", "custom set", "random connect", and the like are set. When the user selects the option of 'always keep connected', the earphone will not be switched to connect when the user uses another mobile phone, and always keep connected with the current mobile phone. If the user does not want to define the devices to connect, a random connection may be selected. The random connection refers to switching connection of devices such as an earphone and the like according to a state of the user using the mobile phone, so that the earphone can be connected to the device currently used by the user, where a specific connection method may refer to relevant contents of the embodiment described in fig. 3a, and details are not described here again. In addition, the user can select the time length connected with the earphone through self-defined setting. For example, as shown in fig. 4b, the user selects the custom setting option, and the pull-down option, including 5-point, 10-point, 30-point or custom setting option, is popped up, and the user can select according to his own needs, that is, when the user selects 5 minutes, the current connection duration between the handset horo P40 and the headset Flypods3 is at least 5 minutes, during which, the handset and the headset will not disconnect the handset horo P40 and the headset Flypods3 due to the change of the use state of other devices (such as the tablet 02), and the headset Flypods3 is connected with other devices (such as the tablet 2) in the use state. The method is more flexible to use. By providing the selection of the connection duration setting of the earphone and the mobile phone, the earphone can be connected with the mobile phone in a relatively stable state according to the requirement, unnecessary frequent switching caused by the fact that a user may have a plurality of mobile phones in a use state is avoided, and the user experience is effectively improved.
Scene 2
In scenario 2 applied in the embodiment of the present application, a user changes a mobile phone 01 originally used to a mobile phone 02, and connects an earphone to the mobile phone 02.
In some embodiments of the present application, the user may have multiple headsets, for example, referring to fig. 5a, fig. 5a shows an interface schematic diagram of a mobile phone, as shown in fig. 5a, in an interface 510 of a mobile phone 01, paired devices, headsets flycodes 3, headset B22-TWS and headset AM55 are displayed. The user can click one of the earphones which the user wants to connect, for example, the user clicks the folders 3, the mobile phone interface 510 can prompt the user whether to connect the device or not in a text mode, and after the user confirms that the user is connected with the earphones 3, the cloud server sends the earphones 3 to the mobile phone which is being used at the current moment, so that the earphones 3 are connected with the used mobile phone. As shown in fig. 5b, after the user confirms the connection, the cell phone interface 520 displays "currently connected devices, passwords 3".
When the user switches the handset, referring to fig. 5c, for switching from using handset 01 to using handset 02, on the interface 520 of handset 01 is the connection that has been established 11:28 points before the current time. At the current time 11:28 points, the user is operating on the interface 530 of the cell phone 02, and the user operates by sliding, clicking, or the like on the screen of the cell phone 02, so that the cloud server recognizes that the user is currently using the cell phone 02. As shown in fig. 5c, the user's finger slides on the interface 530 of the mobile phone 02, and then highlights the screen and clicks the video application, and after these operations, the mobile phone 02 transfers the data generated by the user's operation to the cloud server. The cloud server acquires the data, identifies the data generated by the operation of the user on the mobile phone 02, and identifies that the user is currently using the mobile phone 02, so that the cloud server informs the mobile phone 01 of disconnecting from the earphones 3 and informs the mobile phone 02 of establishing connection with the earphones 3. Referring to fig. 5d, the headset folders 3 will be disconnected from the cell phone 01, and the disconnection from the headset folders 3 is displayed on the interface 540 of the cell phone 01. And the earphone establishes connection with the mobile phone 02 and displays the connection with the earphones passwords 3 on the interface 550 of the mobile phone 02 connection.
According to the method, the used state of the mobile phone is combined with the user ID, automatic connection between two devices is achieved, the devices are associated with the user ID, for example, the earphone is only connected with the mobile phone associated with the user ID, privacy of the user can be better protected, meanwhile, the user does not need to manually switch connection between the devices, and user experience is improved.
Scene 3
With reference to the scenario 2, in the scenario 3 applied in the embodiment of the present application, the user uses the mobile phone 02 instead of the originally used mobile phone 01, and the headset that the user wants to connect to on the mobile phone 02 cannot be contacted due to an abnormal situation.
Referring to fig. 6a, 6a shows that the user selects headset B22-TWS on the handset 02, and the user is prompted on the interface 610 of the handset 02 "does the user select to establish a connection with the B22-TWS device? ", when the user selects" yes "then the cloud server attempts to connect the handset 02 with headset B22-TWS. When the connection fails, as shown in fig. 6b, the interface 620 of the mobile phone 02 prompts "devices cannot be connected with passwords 3, possibly for the following reasons: is the device not powered on, or is not within connection range, is another device attempted to connect? ". And when the user clicks "yes", the cloud server recognizes that the user is currently using the mobile phone 02 according to the condition that the connection between the mobile phone 01 and the earphones 3 is successful, and then the cloud server may recommend to the mobile phone 02 to connect earphones 3, as shown in fig. 6c, and connectable earphones 3 recommended to the mobile phone 02 by the cloud server are displayed on the interface 630 of the mobile phone 02. The user can select whether to select the headphones Flypods3 as desired. So that the user can visually know the conditions of the plurality of earphones and can directly select the earphone suitable for connection.
It should be noted that the constituent devices, the respective parameters, and the device names of the systems mentioned in the embodiments of the present application are merely exemplary illustrations, and are not limited herein for the convenience of understanding the process of establishing the communication connection between the devices.
According to the method for establishing the communication connection of the equipment, the user ID and the used state of the equipment are combined to realize the connection between the equipment, so that the privacy of the user can be better protected, meanwhile, the user does not need to manually switch the connection between the equipment, and the user experience is improved.
Referring to fig. 7, the present application further provides an electronic device comprising:
a memory 710 for storing instructions for execution by one or more processors of the device, an
A processor 720 for executing the method explained in the above embodiments with reference to fig. 3a and 3 b.
The present application also provides a computer-readable storage medium, which stores a computer program, which, when executed by a processor, causes the processor to perform the method explained in fig. 3a and 3b in the above embodiments.
The present application also provides a computer program product comprising instructions which, when run on an electronic device, cause a processor to perform the method of fig. 3a and 3b in the above embodiments.
Referring now to fig. 8, shown is a block diagram of a SoC (System on Chip) 1300 in accordance with an embodiment of the present application. In fig. 8, like parts have the same reference numerals. In addition, the dashed box is an optional feature of more advanced socs. In fig. 8, the SoC1300 includes: an interconnect unit 1350 coupled to the application processor 1310; a system agent unit 1380; a bus controller unit 1390; an integrated memory controller unit 1340; a set or one or more coprocessors 1320 which may include integrated graphics logic, an image processor, an audio processor, and a video processor; a Static Random Access Memory (SRAM) unit 1330; a Direct Memory Access (DMA) unit 1360. In one embodiment, the coprocessor 1320 includes a special-purpose processor, such as, for example, a network or communication processor, compression engine, GPGPU, a high-throughput MIC processor, embedded processor, or the like.
Included in Static Random Access Memory (SRAM) unit 1330 may be one or more computer-readable media for storing data and/or instructions. A computer-readable storage medium may have stored therein instructions, in particular, temporary and permanent copies of the instructions. The instructions may include: when executed by at least one unit in the processor, the Soc1300 is enabled to execute the method for establishing a device communication connection according to the foregoing embodiment, which may specifically refer to the method explained in fig. 3a and fig. 3b in the foregoing embodiment, and will not be described herein again.
Embodiments of the mechanisms disclosed herein may be implemented in hardware, software, firmware, or a combination of these implementations. Embodiments of the application may be implemented as computer programs or program code executing on programmable systems comprising at least one processor, a storage system (including volatile and non-volatile memory and/or storage elements), at least one input device, and at least one output device.
Program code may be applied to input instructions to perform the functions described herein and generate output information. The output information may be applied to one or more output devices in a known manner. For purposes of this Application, a processing system includes any system having a Processor such as, for example, a Digital Signal Processor (DSP), a microcontroller, an Application Specific Integrated Circuit (ASIC), or a microprocessor.
The program code may be implemented in a high level procedural or object oriented programming language to communicate with a processing system. The program code can also be implemented in assembly or machine language, if desired. Indeed, the mechanisms described in this application are not limited in scope to any particular programming language. In any case, the language may be a compiled or interpreted language.
In some cases, the disclosed embodiments may be implemented in hardware, firmware, software, or any combination thereof. The disclosed embodiments may also be implemented as instructions carried by or stored on one or more transitory or non-transitory machine-readable (e.g., computer-readable) storage media, which may be read and executed by one or more processors. For example, the instructions may be distributed via a network or via other computer readable media. Thus, a machine-readable medium may include any mechanism for storing or transmitting information in a form readable by a machine (e.g., a computer), including, but not limited to, floppy diskettes, optical disks, Compact disk Read Only memories (CD-ROMs), magneto-optical disks, Read Only Memories (ROMs), Random Access Memories (RAMs), Erasable Programmable Read Only Memories (EPROMs), Electrically Erasable Programmable Read Only Memories (EEPROMs), magnetic or optical cards, flash Memory, or a tangible machine-readable Memory for transmitting information (e.g., carrier waves, infrared signals, digital signals, etc.) using the Internet in electrical, optical, acoustical or other forms of propagated signals. Thus, a machine-readable medium includes any type of machine-readable medium suitable for storing or transmitting electronic instructions or information in a form readable by a machine (e.g., a computer).
In the drawings, some features of the structures or methods may be shown in a particular arrangement and/or order. However, it is to be understood that such specific arrangement and/or ordering may not be required. Rather, in some embodiments, the features may be arranged in a manner and/or order different from that shown in the figures. In addition, the inclusion of a structural or methodical feature in a particular figure is not meant to imply that such feature is required in all embodiments, and in some embodiments, may not be included or may be combined with other features.
It should be noted that, in the embodiments of the apparatuses in the present application, each unit/module is a logical unit/module, and physically, one logical unit/module may be one physical unit/module, or may be a part of one physical unit/module, and may also be implemented by a combination of multiple physical units/modules, where the physical implementation manner of the logical unit/module itself is not the most important, and the combination of the functions implemented by the logical unit/module is the key to solve the technical problem provided by the present application. Furthermore, in order to highlight the innovative part of the present application, the above-mentioned device embodiments of the present application do not introduce units/modules which are not so closely related to solve the technical problems presented in the present application, which does not indicate that no other units/modules exist in the above-mentioned device embodiments.
It is noted that, in the examples and descriptions of this patent, relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, the use of the verb "comprise a" to define an element does not exclude the presence of another, same element in a process, method, article, or apparatus that comprises the element.
While the present application has been shown and described with reference to certain preferred embodiments thereof, it will be understood by those of ordinary skill in the art that various changes in form and details may be made therein without departing from the spirit and scope of the present application.

Claims (20)

1. A device communication connection establishing method is applied to a system formed by first electronic equipment, second electronic equipment, third electronic equipment and fourth electronic equipment, and is characterized by comprising the following steps:
the second electronic equipment, the first electronic equipment and the third electronic equipment establish connection through the same user ID;
in response to the second electronic device determining that the first electronic device is in a state of being used at the current moment, the second electronic device sends a first instruction to the first electronic device, wherein the first instruction is used for indicating the first electronic device to establish connection with the fourth electronic device;
responding to the received first instruction, and establishing connection between the first electronic equipment and the fourth electronic equipment;
in response to the second electronic device determining that the third electronic device is in a state of being used at the current moment, the second electronic device sending a second instruction to the first electronic device, wherein the second instruction is used for indicating that the first electronic device is disconnected from the fourth electronic device, and sending a third instruction to the third electronic device, wherein the third instruction is used for indicating that the third electronic device is connected with the fourth electronic device;
in response to receiving the second instruction, the first electronic device disconnects from the fourth electronic device;
in response to the received third instruction, the third electronic device establishes a connection with the fourth electronic device.
2. The method of claim 1, wherein the second electronic device determining that the first electronic device and/or the third electronic device is in the used state at the current time comprises:
the first electronic device and/or the third electronic device receives event information input by a user, wherein the event information is used for representing the operation of the user on the first electronic device and/or the third electronic device;
the first electronic equipment and/or the third electronic equipment sends the event information to the second electronic equipment;
the second electronic device determines a state in which the first electronic device and/or the third electronic device is used according to the received event information.
3. The method according to claim 2, wherein the event information input by the user comprises event information input by the user at the current time or event information input by the user within a preset time interval from the current time.
4. The method according to any of claims 2-3, wherein the event information comprises:
the first electronic device and/or the third electronic device receive data generated by a sensor of the first electronic device and/or the third electronic device when a user operates the first electronic device and/or the third electronic device.
5. The method according to any one of claims 2-4, wherein the second electronic device determines, from the received event information, that the first electronic device and/or the third electronic device is in a used state, including:
in response to receiving the event information, the second electronic device inputting the event information into a neural recognition network within the second electronic device and outputting a first probability value by the neural recognition network;
in response to the received first probability value being greater than or equal to a preset probability threshold, the second electronic device determines a state in which the first electronic device and/or the third electronic device is in use.
6. The method of claim 5, wherein the neural recognition network is trained for the event information received by the second electronic device within a predetermined time.
7. The method of claim 1, wherein the first, second, and third instructions include a device identification of the fourth electronic device.
8. The method of claim 7, wherein the device identification of the fourth electronic device comprises: at least one of a device name, a communication address, a device ID, and a MAC address of the fourth electronic device.
9. The method of claim 1, wherein the second electronic device establishes a connection with the first electronic device and the third electronic device through the same user ID, and wherein the method comprises:
the first electronic equipment receives a user ID input by a user;
the third electronic equipment receives the user ID which is input by a user and is the same as the user ID received by the first electronic equipment;
the second electronic device obtains the user ID from the first electronic device and the third electronic device, respectively, and establishes a connection with the first electronic device and the third electronic device.
10. A device communication system, the system comprising: first electronic equipment, second electronic equipment, third electronic equipment and fourth electronic equipment, its characterized in that includes:
the second electronic equipment is used for establishing connection with the first electronic equipment and the third electronic equipment through the same user ID;
in response to the second electronic device determining that the first electronic device is in a state of being used at the current moment, the second electronic device is configured to send a first instruction to the first electronic device, wherein the first instruction is used for instructing the first electronic device to establish a connection with the fourth electronic device; responding to the received first instruction, and establishing connection between the first electronic equipment and the fourth electronic equipment;
in response to the second electronic device determining that the third electronic device is in a state of being used at the current moment, the second electronic device is configured to send a second instruction to the first electronic device, and send a third instruction to the third electronic device, wherein the second instruction is used for indicating that the first electronic device is disconnected from the fourth electronic device, and the third instruction is used for indicating that the third electronic device is connected to the fourth electronic device;
in response to receiving the second instruction, the first electronic device is configured to disconnect from the fourth electronic device;
in response to the received third instruction, the third electronic device is configured to establish a connection with the fourth electronic device.
11. The system of claim 10, wherein the second electronic device is configured to determine that the first electronic device and/or the third electronic device is in a used state at a current time, and wherein the determining comprises:
the first electronic device and/or the third electronic device is used for receiving event information input by a user, and the event information is used for representing the operation of the user on the first electronic device and/or the third electronic device;
the first electronic device and/or the third electronic device are used for sending the event information to the second electronic device;
the second electronic device is used for determining the state of the first electronic device used according to the received event information.
12. The system according to claim 11, wherein the event information input by the user comprises event information input by the user at the current time or event information input by the user within a preset time interval from the current time.
13. The system according to any of claims 11-12, wherein the event information comprises:
the first electronic device and/or the third electronic device are used for receiving data generated by a sensor of the first electronic device and/or the third electronic device when a user operates the first electronic device and/or the third electronic device.
14. The system according to any of claims 11-13, wherein the second electronic device is configured to determine, from the received event information, that the first electronic device and/or the third electronic device is in a used state, including:
in response to receiving the event information, the second electronic device is to input the event information into a neural recognition network within the second electronic device and output a first probability value by the neural recognition network;
in response to the received first probability value being greater than or equal to a preset probability threshold, the second electronic device is configured to determine a state in which the first electronic device and/or the third electronic device is in use.
15. The system of claim 14, wherein the neural recognition network is trained for the event information received by the second electronic device within a predetermined time.
16. The system of claim 10, wherein the first instructions, the second instructions, and the third instructions comprise a device identification of the fourth electronic device.
17. The system of claim 16, wherein the device identification of the fourth electronic device comprises: at least one of a device name, a communication address, a device ID, and a MAC address of the fourth electronic device.
18. The system according to claim 10, wherein the second electronic device is configured to establish a connection with the first electronic device and the third electronic device through the same user ID, and comprises:
the first electronic equipment is used for receiving a user ID input by a user;
the third electronic equipment is used for receiving the user ID which is input by a user and is the same as the user ID received by the first electronic equipment;
the second electronic device is configured to acquire the user ID from the first electronic device and the third electronic device, respectively, and establish a connection with the first electronic device and the third electronic device.
19. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, causes the processor to perform the method of any one of claims 1-9.
20. An electronic device comprising a processor and a memory for storing a computer program which, when run on the electronic device, causes the processor to perform the method of any of claims 1-9.
CN202010946833.2A 2020-09-10 2020-09-10 Equipment communication connection establishment method and equipment communication system Active CN114173321B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010946833.2A CN114173321B (en) 2020-09-10 2020-09-10 Equipment communication connection establishment method and equipment communication system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010946833.2A CN114173321B (en) 2020-09-10 2020-09-10 Equipment communication connection establishment method and equipment communication system

Publications (2)

Publication Number Publication Date
CN114173321A true CN114173321A (en) 2022-03-11
CN114173321B CN114173321B (en) 2023-07-11

Family

ID=80475594

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010946833.2A Active CN114173321B (en) 2020-09-10 2020-09-10 Equipment communication connection establishment method and equipment communication system

Country Status (1)

Country Link
CN (1) CN114173321B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023225869A1 (en) * 2022-05-24 2023-11-30 北京小米移动软件有限公司 Bluetooth device control method and apparatus, and device and storage medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132543A (en) * 2008-08-29 2011-07-20 索尼爱立信移动通讯有限公司 Remote user interface in multiphone environment
WO2011116676A1 (en) * 2010-03-22 2011-09-29 华为技术有限公司 State handover method and network equipment
CN104079542A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Information processing method and device management server

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102132543A (en) * 2008-08-29 2011-07-20 索尼爱立信移动通讯有限公司 Remote user interface in multiphone environment
WO2011116676A1 (en) * 2010-03-22 2011-09-29 华为技术有限公司 State handover method and network equipment
CN104079542A (en) * 2013-03-29 2014-10-01 联想(北京)有限公司 Information processing method and device management server

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023225869A1 (en) * 2022-05-24 2023-11-30 北京小米移动软件有限公司 Bluetooth device control method and apparatus, and device and storage medium

Also Published As

Publication number Publication date
CN114173321B (en) 2023-07-11

Similar Documents

Publication Publication Date Title
US9510163B2 (en) Method and apparatus for managing a group profile in a Wi-Fi direct communication system
CN106739946B (en) Starting method and device of automobile air conditioner
CN110278550B (en) Portable device, portable apparatus, and computer-readable medium
CN108391205B (en) Left and right channel switching method and device, readable storage medium and terminal
WO2019090726A1 (en) Method for selecting bluetooth device, terminal, and system
CN108988909B (en) Audio processing method and device, electronic equipment and computer readable storage medium
CN112911556A (en) Method for establishing classic Bluetooth connection between dual-mode Bluetooth devices and dual-mode Bluetooth device
JP2023543173A (en) Home device control method and device
JP2017531974A (en) Network connection method, device, system, program, and recording medium
CN113660650B (en) Method and related device for device reconnection
CN108733337B (en) Screen display method and device, electronic equipment and computer readable storage medium
CN105162889A (en) Device finding method and apparatus
CN106714126A (en) Downlink data transmission method, apparatus and device
US20160366715A1 (en) Information transmission device, information transmission method, non-transitory computer readable recording medium and portable terminal
CN107295591B (en) Call method, device, computer storage medium and mobile terminal
WO2019047143A1 (en) Paging message receiving method and device, and paging configuration method and device
CN105068651A (en) Method, device, terminal and server for controlling alarm clock
CN105704106B (en) A kind of visualization IVR implementation method and mobile terminal
US20170289155A1 (en) Communication between devices without establishing a persistent connection
CN105208089A (en) Information display method, apparatus and system
CN112997470A (en) Audio output control method and device, computer readable storage medium and electronic equipment
CN113853754A (en) In the bluetoothTMElectronic device and method for displaying external electronic device query list in network environment
CN104113620A (en) Contact list updating method, updating device and user terminal
CN112805988B (en) Call control method and device, computer readable storage medium and electronic equipment
WO2020132878A1 (en) Bluetooth service query method and electronic device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant