A connection method and electronic device
By establishing a second connection between devices such as Bluetooth wireless mice and the PC, transmitting interactive data, and controlling the connection status, the problem of wireless device pairing relying on auxiliary devices is solved, and a fast and convenient connection process is achieved.
Patent Information
- Application Number
- CN202210115368.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-01-30
- Publication Date
- 2026-02-27
- Estimated Expiration
- 2042-01-30
AI Technical Summary
In existing technologies, devices such as Bluetooth wireless mice require auxiliary devices such as the laptop's Touchpad or TrackPoint to pair with a PC, and desktop computers cannot pair without external devices.
After establishing a second connection between the first electronic device and the second electronic device, interactive data is transmitted and a first connection is established based on the interactive data. The connection status is controlled, and electronic devices with multiple connection modes can achieve pairing without the need for external devices.
It enables quick and convenient connection between devices such as Bluetooth wireless mice and PCs, avoiding reliance on auxiliary devices and improving connection efficiency.
Smart Images

Figure CN114554465B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the field of communication technology, and in particular to a wireless connection method and an electronic device. BACKGROUND
[0002] With the development of electronic products, people have higher and higher requirements for the convenience of electronic products, and Bluetooth wireless mouse and keyboard and the like have emerged as the times require. For 2.4G Wireless (wireless) and Bluetooth dual-mode wireless mouse and the like, when connecting for the first time in Bluetooth mode, pairing operation needs to be performed on the mouse and the like and the PC end. Before pairing is completed, the Bluetooth wireless mouse and the like are completely unusable. However, in the pairing process of the mouse and the like and the PC end, some auxiliary devices need to be used to realize the pairing operation. For example, the Touchpad (touchpad) or TrackPoint (trackpoint) of a notebook computer can be used to temporarily perform the mouse function to complete the pairing operation of the Bluetooth wireless mouse and the like and the PC end. In this way, the notebook computer is relatively easy to realize the pairing operation, but for a desktop computer, without Touchpad or TrackPoint, pairing of the Bluetooth wireless mouse and the like and the PC end cannot be realized without connecting external devices. SUMMARY
[0003] The embodiments of the present application provide a connection method and an electronic device.
[0004] According to a first aspect of the present application, a connection method is provided, applied to a first electronic device, comprising: in response to obtaining a request for first-time establishment of a first connection with a second electronic device, delivering interaction data between the first electronic device and the second electronic device through a second connection;
[0005] establishing the first connection based at least on the interaction data, and controlling a connection state of the second connection after the first connection is established;
[0006] wherein the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a connection established at least based on a hardware mode.
[0007] According to an embodiment of the present application, the delivering of the interaction data between the first electronic device and the second electronic device through the second connection comprises: after the second connection with the second electronic device is established, in response to radiating outward or searching for a first signal, determining that the request for first-time establishment of the first connection with the second electronic device is obtained, and delivering the interaction data through the second connection; wherein in the process of radiating outward or searching for the first signal, a second signal is radiated outward or received, and the second signal is a signal used by the second connection.
[0008] According to an embodiment of the present application, the establishing the first connection based on at least the interaction data comprises: obtaining interaction data from the second electronic device, the interaction data being generated by the second electronic device in response to operation data from the first electronic device; and establishing the first connection if the interaction data matches successfully; wherein the interaction data can be transmitted through the first signal and / or the second signal.
[0009] According to an embodiment of the present application, the controlling the connection state of the second connection comprises: controlling the second connection to be in a disabled state; or obtaining to-be-transmitted data between the first electronic device and the second electronic device, and controlling the connection to be in a disabled state or an available state based on at least attribute information of the to-be-transmitted data.
[0010] According to an embodiment of the present application, the controlling the connection state of the second connection further comprises: obtaining connection states of the first connection and the second connection, and controlling to-be-transmitted data between the first electronic device and the second electronic device to be transmitted through the first connection and / or the second connection based on the connection states.
[0011] According to an embodiment of the present application, the controlling the connection state of the second connection further comprises: monitoring data information carried by the first signal and / or the second signal, and controlling a running state of itself based on at least the data information, or controlling the running state of itself based on the data information and motion information of itself.
[0012] According to an embodiment of the present application, the method further comprises: after being disconnected from the second electronic device, deleting connection information between the first electronic device and the second electronic device if a cleaning condition is met, the connection information at least including connection information of the first connection.
[0013] According to a second aspect of the present application, an electronic device is further provided, which comprises: a first communication chip, a second communication chip and a master control chip; wherein the second communication chip is configured to establish a second connection with a second electronic device, and in a case where the first communication chip obtains a request for establishing a first connection, the second communication chip is configured to transmit interaction data between the first electronic device and the second electronic device, so as to establish the first connection through the first communication chip; and the master control chip is configured to control at least a connection state of the second connection; wherein power consumption of the first electronic device and the second electronic device under the first connection is different from power consumption under the second connection.
[0014] According to an embodiment of the present application, the electronic device further comprises: a sensor circuit configured to obtain position information of the electronic device; and a radio frequency circuit configured to transceive wireless signals to transmit the position information and the part of the interaction data generated by the first electronic device to the second electronic device through the first connection or the second connection.
[0015] According to an embodiment of the present application, the first communication chip is a 2.4G wireless communication chip; and the second communication chip is a Bluetooth communication chip.
[0016] According to a third aspect of the present application, a connection device is further provided, which is applied to a first electronic device and comprises: a connection establishing module configured to, in response to obtaining a request for first-time establishment of a first connection with a second electronic device, transmit interaction data between the first electronic device and the second electronic device through a second connection; and a state control module configured to establish the first connection based at least on the interaction data, and control a connection state of the second connection after the first connection is established; wherein power consumption of the first electronic device and the second electronic device under the first connection is different from power consumption under the second connection, and the second connection is a connection established at least based on a hardware mode.
[0017] According to an embodiment of the present application, the connection establishing module comprises: a first interaction sub-module configured to, after the second connection with the second electronic device is established, determine the request for first-time establishment of the first connection with the second electronic device in response to radiating outward or searching for a first signal, and transmit the interaction data through the second connection; wherein in the process of radiating outward or searching for the first signal, a second signal is radiated outward or received, and the second signal is a signal used by the second connection.
[0018] According to an embodiment of the present application, the connection establishing module comprises: a data obtaining sub-module configured to obtain interaction data from the second electronic device, the interaction data being generated by the second electronic device in response to operation data from the first electronic device; and a connection sub-module configured to establish the first connection if the interaction data is matched successfully; wherein the interaction data can be propagated through the first signal and / or the second signal.
[0019] According to an embodiment of the present application, the state control module comprises: a disabling sub-module configured to control the second connection to be in a disabled state; or a first control sub-module configured to obtain to-be-transmitted data between the first electronic device and the second electronic device, and control the connection to be in a disabled state or an available state based at least on attribute information of the to-be-transmitted data.
[0020] According to an embodiment of the present application, the state control module further comprises a second control submodule, which obtains connection states of the first connection and the second connection, and controls transmission of the data to be transmitted between the first electronic device and the second electronic device in the first connection and / or the second connection based on the connection states.
[0021] According to an embodiment of the present application, the state control module further comprises a third control submodule, which monitors data information carried by the first signal and / or the second signal, and controls a running state of itself based on at least the data information, or controls the running state of itself based on the data information and motion information of itself.
[0022] According to an embodiment of the present application, the device further comprises an information cleaning module, which is configured to delete connection information between the second electronic device if a cleaning condition is met after the disconnection with the second electronic device, wherein the connection information at least comprises connection information of the first connection.
[0023] In the connection method and the electronic device according to the embodiments of the present application, when the first electronic device receives a request for establishing the first connection with the second electronic device for the first time, the first electronic device transmits interaction data between the first electronic device and the second electronic device through the second connection, establishes the first connection based on at least the interaction data, and controls a connection state of the second connection after the first connection is established. Thus, for the first electronic device with multiple connection modes, the connection with the second electronic device and the switching of the connection mode can be realized without using other additional devices, thereby effectively avoiding the problem that the second electronic device needs to use other additional devices when the first connection needs to be established, and enabling the second electronic device to quickly and conveniently establish the connection with the first electronic device.
[0024] It should be understood that the teachings of the present application do not require all the beneficial effects described above to be achieved, but a specific technical solution can achieve a specific technical effect, and other embodiments of the present application can also achieve beneficial effects not mentioned above. BRIEF DESCRIPTION OF DRAWINGS
[0025] The above and other objects, features and advantages of the exemplary embodiments of the present application will be more apparent from the following detailed description taken in conjunction with the accompanying drawings, in which:
[0026] In the drawings, identical or corresponding reference signs refer to identical or corresponding parts.
[0027] Figure 1 An implementation flowchart of the connection method according to the embodiments of the present application is shown;
[0028] Figure 2 A specific application example of the connection method of the embodiment of the present application is shown in the flowchart of the implementation process.
[0029] Figure 3 The composition structure of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0030] Figure 4 The composition structure of the electronic device in the specific application example of the embodiment of the present application is shown in the schematic diagram.
[0031] Figure 5 The implementation principle of the Bluetooth teletransmission module of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0032] Figure 6 The implementation principle of the 2.4G teletransmission module of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0033] Figure 7 The implementation principle of the power supply and charging circuit of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0034] Figure 8 The implementation principle of the key circuit of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0035] Figure 9 The implementation principle of the photoelectric sensor circuit of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0036] Figure 10 The implementation principle of the storage circuit of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0037] Figure 11 The implementation principle of the RF circuit of the electronic device of the embodiment of the present application is shown in the schematic diagram.
[0038] Figure 12 The composition structure of the connection device of the embodiment of the present application is shown in the schematic diagram. DETAILED DESCRIPTION
[0039] The principles and spirits of the present application will be described below with reference to a number of exemplary embodiments. It should be understood that these embodiments are given only to enable those skilled in the art to better understand and implement the present application, and do not limit the scope of the present application in any way. On the contrary, these embodiments are provided to make the present application more thorough and complete, and to fully convey the scope of the present application to those skilled in the art.
[0040] The technical solutions of the present application will be further described in detail below with reference to the drawings and specific embodiments.
[0041] Figure 1 The implementation flowchart of the connection method of the embodiment of the present application is shown in the schematic diagram.
[0042] Reference Figure 1 The embodiment of the application is a connection method applied to a first electronic device, and at least includes the following operation processes: operation 101, in response to obtaining a request for first-time establishment of a first connection with a second electronic device, transmitting interaction data between the first electronic device and the second electronic device through a second connection; operation 102, establishing the first connection based on at least the interaction data, and controlling the connection state of the second connection after the first connection is established; wherein the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a connection established based on at least a hardware mode.
[0043] In operation 101, in response to obtaining a request for first-time establishment of a first connection with a second electronic device, transmitting interaction data between the first electronic device and the second electronic device through a second connection.
[0044] In this embodiment of the application, the first electronic device can be a dual-mode wireless mouse, keyboard, wireless projector or other wireless human-computer interaction device with 2.4G wireless connection and Bluetooth connection functions. The second electronic device can be a notebook computer, desktop computer, general-purpose server or special-purpose server, etc.
[0045] It should be noted that in this embodiment of the application, the case where the second electronic device information is not stored in the first electronic device is regarded as that the first electronic device first-time establishes the first connection with the second electronic device. For example, it can include the case where the first electronic device has never established a connection with the second electronic device, and also include the case where the first electronic device has established a connection with the second electronic device, but the second electronic device information is not stored in the first electronic device or is deleted in the first electronic device. The specific second electronic device information can include device name, pairing code, connection account and password, etc.
[0046] In this embodiment of the application, the interaction data between the first electronic device and the second electronic device is transmitted through the second connection, which can be realized by the following operation: after the first electronic device and the second electronic device establish the second connection, in response to radiating outward or searching for a first signal, it is determined that the request for first-time establishment of the first connection with the second electronic device is obtained, and the interaction data is transmitted through the second connection; wherein in the process of radiating outward or searching for the first signal, a second signal is radiated outward or received, and the second signal is a signal used by the second connection.
[0047] In this embodiment of the present application, the first electronic device can actively send a request for establishing the first connection with the second electronic device through a key or other operation mode of the first electronic device. For example, a dual-mode wireless mouse with 2.4G connection function and Bluetooth connection function is switched from 2.4G connection mode to Bluetooth connection mode. The second electronic device can also search for the first electronic device, and if the first electronic device is found, the second electronic device initiates a request for establishing the first connection between the first electronic device and the second electronic device. At this time, the first electronic device passively receives the request for establishing the first connection with the second electronic device for the first time.
[0048] In this embodiment of the present application, the interaction data between the first electronic device and the second electronic device can be pairing data, operation data, input data, or device information.
[0049] In this embodiment of the present application, before the first connection between the first electronic device and the second electronic device is successfully established, the second electronic device maintains data interaction through the second connection with the first electronic device. For example, the notebook computer and the dual-mode mouse maintain data interaction through the USB radio transceiver. The dual-mode mouse is configured with a 2.4G wireless communication module and a Bluetooth wireless connection module, and the 2.4G wireless communication module is configured with a USB radio transceiver. Before the dual-mode mouse is successfully switched to connect with the notebook computer through the Bluetooth wireless connection module, data interaction through the USB radio transceiver is maintained to utilize the 2.4G wireless communication module of the dual-mode mouse to realize the interaction of pairing data, operation data, input data, or device information between the Bluetooth wireless connection module and the notebook computer.
[0050] Operation 102, establishing the first connection based at least on the interaction data, and controlling the connection state of the second connection after the first connection is established. Wherein, the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a connection established at least based on hardware.
[0051] In this embodiment of the present application, the second connection can be a connection between the first electronic device and the second electronic device realized through a USB radio transceiver, a cable, a wireless projector, or other hardware.
[0052] In this embodiment of the present application, the first connection can be established based at least on the interaction data by the following operations: obtaining interaction data from the second electronic device, the interaction data being generated by the second electronic device in response to operation data from the first electronic device, and if the interaction data is matched successfully, the first connection is established. Wherein, the interaction data can be propagated through the first signal and / or the second signal.
[0053] Specifically, two communication connection channels are configured between the first electronic device and the second electronic device, a signal transmitted through the first connection channel is referred to as a first signal, and a signal transmitted through the second connection channel is referred to as a second signal. After the first electronic device sends a request for obtaining the first connection with the second electronic device, the first electronic device and the second electronic device can simultaneously transmit signals through the two communication connection channels. For example, before the first connection is successfully established, the second electronic device can simultaneously transmit the first signal to the first electronic device through the first communication connection channel, transmit the second signal to the first electronic device through the second communication connection channel, or transmit the second signal to the first electronic device through the second communication connection channel to transmit interaction data. After the first connection is successfully established, the second electronic device can transmit the second signal to the first electronic device through the second communication connection channel, or simultaneously transmit the first signal to the first electronic device through the first communication connection channel, transmit the second signal to the first electronic device through the second communication connection channel, or transmit the second signal to the first electronic device through the second communication connection channel to transmit interaction data. Of course, after the first connection is successfully established, in order to save power consumption, the second electronic device can transmit the second signal to the first electronic device through the second communication connection channel to transmit interaction data.
[0054] It should be noted that, in the process of establishing the first connection, in addition to the interaction data transmitted through the second connection, other information can also be considered simultaneously. For example, the relative position information of the first electronic device and the second electronic device, the number of devices connected to the first electronic device, the number of devices connected to the second electronic device, the device state of the first electronic device, and the device state of the second electronic device, etc. For example, in the case where the number of devices connected to the second electronic device is less than or equal to 6, it is determined that the first connection can be established. In the case where the relative position information of the first electronic device and the second electronic device shows that the distance between the first electronic device and the second electronic device is less than or equal to 10 meters, it is determined that the first connection can be established.
[0055] In this embodiment of the present application, the first electronic device can be a dual-mode mouse, and the second electronic device can be a notebook computer. The dual-mode mouse is configured with a photoelectric sensor, a key sensor, a 2.4G module and a Bluetooth module. The signals collected by the photoelectric sensor and the key sensor can be transmitted through at least one of the 2.4G module and the Bluetooth module. The dual-mode mouse transmits and receives signals through a USB radio frequency transceiver in a 2.4G wireless communication mode. The notebook computer is first connected with the dual-mode mouse in the 2.4G wireless communication mode. Through a mode switching switch of the dual-mode mouse, a request for switching the connection mode of the dual-mode mouse and the notebook computer to a Bluetooth connection mode is sent. After receiving the request, the dual-mode mouse simultaneously sends the signals collected by the photoelectric sensor and the key sensor to the notebook computer through the 2.4G module and the Bluetooth module. The signals collected by the photoelectric sensor and the key sensor can include user input Bluetooth pairing information of the dual-mode mouse and the notebook computer, such as device information and a pairing code, and can also include current operation data of the notebook computer by the user, so as to ensure that the dual-mode mouse and the notebook computer are always in a connected state, the dual-mode mouse can operate the notebook computer, normal data interaction is ensured, and Bluetooth pairing of the dual-mode mouse and the notebook computer is realized. When the Bluetooth module has successfully completed Bluetooth pairing with the computer end, the Bluetooth module will receive a feedback instruction sent by the notebook computer end Bluetooth adapter, and it can be determined that the first connection is successfully established.
[0056] In this embodiment of the present application, the second connection can be controlled to be in a disabled state after the first connection is established. For example, referring back to the above example, the first electronic device is a dual-mode mouse, and the second electronic device is a notebook computer. After receiving the feedback instruction sent by the notebook computer end Bluetooth adapter, it can be determined that the first connection is successfully established. At this time, the 2.4G wireless communication module can be disabled to reduce the power consumption of the dual-mode mouse.
[0057] In another embodiment of the present application, after the first connection is established, the to-be-transmitted data between the first electronic device and the second electronic device can be obtained, and the second connection can be controlled to be in a disabled state or an available state based on at least the attribute information of the to-be-transmitted data. For example, the second electronic device is a notebook computer, and the to-be-transmitted data is mouse control information. In this case, the second connection is disabled. In the case that the to-be-transmitted data is touchpad or key data, the second connection can be kept in an available state, so that the input information of the touchpad and the keys of the second electronic device can be transmitted simultaneously.
[0058] In addition, in another embodiment of the present application, the second connection can be controlled to be in the disabled state or the available state according to the attribute information of the to-be-transmitted content and the content control after the first connection is established. For example, the to-be-transmitted data is a file, and the second connection can be controlled to be in the disabled state or the available state according to the attribute information and the content control in a similar transmission scenario. For example, the first electronic device is an electronic device with a storage function, and the second electronic device is a computer. In the case that the to-be-transmitted data is mouse control information and the content of the to-be-transmitted data is a file to be downloaded, the first connection or the second connection can be selected to download the file according to the size of the file to be downloaded. In the case that the first connection is selected to download the file, the second connection is disabled. In the case that the second connection is selected to download the file, the second connection is kept in the available state. Here, the first connection or the second connection can also be selected to transmit the to-be-transmitted data according to an application process for processing the to-be-transmitted data. Of course, the above is only an example, and other applicable methods can be used to control the second connection to be in the disabled state or the available state in actual applications.
[0059] In this embodiment of the present application, the connection state of the first connection and the second connection can be obtained after the first connection is established, and the to-be-transmitted data can be transmitted between the first electronic device and the second electronic device through the first connection and / or the second connection based on the connection state.
[0060] In this embodiment of the present application, the connection state can be evaluated by the connection quality of the first connection and the second connection. The connection quality of the first connection and the second connection is related to the relative position relationship between the first electronic device and the second electronic device, the device running state, the power, the number of connected devices, and the like. Therefore, at least one of the relative position relationship between the first electronic device and the second electronic device, the device running state, the power, and the number of connected devices can be obtained, and the to-be-transmitted data can be transmitted between the first electronic device and the second electronic device through the first connection and / or the second connection based on at least one of the relative position relationship between the first electronic device and the second electronic device, the device running state, the power, and the number of connected devices.
[0061] In an embodiment of the present application, the first electronic device is a dual-mode mouse configured with a 2.4G wireless connection mode and a Bluetooth connection mode, and the second electronic device is a computer. After the first connection is established, the positional relationship between the first electronic device and the second electronic device is obtained. In a case where the distance between the first electronic device and the second electronic device is less than or equal to a first set distance, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection. In a case where the distance between the first electronic device and the second electronic device is greater than a second set distance, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the second connection. In a case where the distance between the first electronic device and the second electronic device is greater than the first set distance and less than or equal to the second set distance, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection and the second connection. The first set distance is less than or equal to the second set distance.
[0062] In an embodiment of the present application, the first electronic device is a dual-mode mouse configured with a 2.4G wireless connection mode and a Bluetooth connection mode, and the second electronic device is a computer. After the first connection is established, the power of the first electronic device is obtained. In a case where the power of the first electronic device is less than or equal to a first set power, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection. In a case where the power of the first electronic device is greater than a second set power, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the second connection. In a case where the power of the first electronic device is greater than the first set power and less than or equal to the second set power, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection and the second connection.
[0063] In an embodiment of the present application, the first electronic device is a dual-mode mouse configured with a 2.4G wireless connection mode and a Bluetooth connection mode, and the second electronic device is a computer. After the first connection is established, the number of devices connected to the second electronic device is obtained. In a case where the number of devices connected to the second electronic device is less than or equal to a first set number, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection. In a case where the number of devices connected to the second electronic device is greater than a second set number, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the second connection. In a case where the number of devices connected to the second electronic device is greater than the first set number and less than or equal to the second set number, the transmission of the to-be-transmitted data between the first electronic device and the second electronic device is controlled to be performed in the first connection and the second connection.
[0064] In an embodiment of the present application, the first electronic device is a dual-mode mouse, the dual-mode mouse is configured with a master control chip, a 2.4G module and a Bluetooth module, the master control chip can send a disconnection instruction to the 2.4G module after the first connection is established, and the 2.4G module stops working. The mouse is connected to the second electronic device through the single connection mode of the Bluetooth module. The 2.4G module is in a standby state, and the master control chip keeps monitoring the Bluetooth signal connection state for a long time. When it is detected that the Bluetooth mode has been disconnected, the master control chip continuously sends 4 Bluetooth signal detection instructions. If data is still not received, the 2.4G module circuit is immediately started and broadcasts a 2.4G signal in the signal receiving range. At this time, the user only needs to manually insert the 2.4G receiver into the USB interface of the computer end, and the wireless connection of the 2.4G module can be automatically established.
[0065] In this embodiment of the present application, the data information carried by the first signal and / or the second signal is monitored after the first connection is established. The running state of the first electronic device is controlled based on at least the data information, or the running state of the first electronic device is controlled based on the data information and the motion information of the first electronic device.
[0066] For example, the first electronic device is a dual-mode mouse, and the second electronic device is a computer. After the first connection is established, if the mouse does not receive any data signal from the computer end, the master control chip of the mouse will continuously send a probe signal. If the number of sending times exceeds a certain number and any information still cannot be received, the mouse enters a deep sleep mode until the user moves the mouse again, so that the photoelectric sensor or the key sensor receives an instruction, and then enters a signal exploration stage.
[0067] In this embodiment of the present application, after the first electronic device is disconnected from the second electronic device, if the cleaning condition is met, the connection information between the first electronic device and the second electronic device is deleted. The connection information at least includes the connection information of the first connection.
[0068] In an embodiment of the present application, if the first electronic device is not connected to the second electronic device again within a set time after the first electronic device is disconnected from the second electronic device, the connection information between the first electronic device and the second electronic device is deleted. The connection information at least includes the connection information of the first connection. The connection information can include the device information and the pairing code of the second electronic device stored in the first electronic device.
[0069] In an embodiment of the present application, the first electronic device can be connected with multiple devices, and if the first electronic device is not connected with the second electronic device again within a set time after the first electronic device is disconnected from the second electronic device, the first electronic device can determine the timing of deleting the connection information between the first electronic device and the second electronic device according to the connection frequency of the first electronic device and the devices. The higher the connection frequency of the first electronic device and the second electronic device, the longer the connection information between the first electronic device and the second electronic device is kept. In this way, the connection frequency of the first electronic device and each device can be detected, and the timing of deleting the connection information between the first electronic device and the second electronic device after the first electronic device is disconnected from the second electronic device can be set according to the connection frequency of the first electronic device and each device. For example, for a device with a connection frequency less than 5 times per day, the connection information between the first electronic device and the second electronic device is deleted immediately after disconnection. For a device with a connection frequency greater than 10 times per day, the connection information between the first electronic device and the second electronic device is deleted 72 hours after disconnection. The timing of deleting the connection information between the first electronic device and the second electronic device can also be determined according to the length of each connection, etc. Of course, other ways of determining the timing of deleting the connection information between the first electronic device and the second electronic device can also be used, which are not limited in the present application.
[0070] Figure 2 A specific application example implementation flowchart of the connection method of the embodiment of the present application is shown.
[0071] Reference Figure 2 In this embodiment of the present application, the first electronic device is a dual-mode mouse configured with 2.4G wireless communication connection and Bluetooth connection, and the second electronic device is a computer.
[0072] When the user switches the mouse pairing mode to Bluetooth mode, the 2.4G wireless connection mode is kept in an available state during the process of searching and pairing Bluetooth signals of the dual-mode mouse. The user can insert the 2.4G wireless receiver with a USB interface of the dual-mode mouse into the USB interface of the computer during the initial pairing operation in the Bluetooth mode. Thus, the Bluetooth pairing operation of the mouse and the computer is completed using the 2.4G wireless connection of the mouse itself, and the 2.4G wireless connection is closed again when the mouse can accept or radiate interaction data between the computer in the Bluetooth connection mode, etc.
[0073] Figure 3 A composition structure diagram of the electronic device of the embodiment of the present application is shown.
[0074] Reference Figure 3The electronic device 30 comprises a first communication chip 301, a second communication chip 302, and a master chip 303; the second communication chip 302 is configured to establish a second connection with a second electronic device, and in a case where the first communication chip obtains a request for establishing a first connection, the second communication chip 302 is configured to transfer interaction data between the first electronic device and the second electronic device, so as to establish the first connection through the first communication chip; the master chip 303 is configured to control at least a connection state of the second connection; and the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection.
[0075] In this embodiment of the present application, the electronic device 30 further comprises a sensor circuit configured to obtain position information of the electronic device 30, and a radio frequency circuit configured to receive and transmit wireless signals, so as to transmit the position information and a part of the interaction data generated by the first electronic device to the second electronic device through the first connection or the second connection.
[0076] In this embodiment of the present application, the first communication chip is a 2.4G wireless communication chip, and the second communication chip 302 is a Bluetooth communication chip.
[0077] Figure 4 A composition structure schematic diagram of an electronic device in a specific application example of an embodiment of the present application is shown.
[0078] Reference Figure 4 In the specific application example of the embodiment of the present application, the electronic device is a dual-mode wireless mouse configured with a 2.4G wireless connection mode and a Bluetooth connection mode. The dual-mode wireless mouse comprises a master control circuit, a power supply and charging circuit, a key circuit, a photoelectric sensor circuit, a storage circuit, and an RF circuit. The master control circuit comprises a 2.4G electric transmission module IC and a Bluetooth electric transmission module IC, and the master control module is connected with the 2.4G electric transmission module IC and the Bluetooth electric transmission module IC through a logic AND gate circuit.
[0079] The electronic device can realize free switching between the 2.4G module and the Bluetooth mode, and the 2.4G module signal needs to be kept on for a period of time until the Bluetooth connection is completed and the initial pairing is successful, and the design of the master control chip 303 is very critical. When the key circuit initiates the switching of the Bluetooth mode, the master control chip 303 issues an instruction to turn on the Bluetooth mode function. The working mode of the master control circuit, the 2.4G circuit and the Bluetooth circuit remains in a fully functional state, and the coordinate information collected by the photoelectric sensor is sent out through the Bluetooth module and the 2.4G module at the same time, so as to keep the 2.4G module still able to receive coordinate information and provide screen cursor movement and key instruction feedback. The coordinate and key instruction sent through the Bluetooth information will be automatically discarded because the connection has not been successfully established. At this time, the user can complete the search and pairing operation of the computer end Bluetooth device through the 2.4G signal.
[0080] At this time, the operation instruction collected by the mouse photoelectric sensor and the key sensor is sent out through the 2.4G module and the Bluetooth module at the same time. When the Bluetooth module has successfully completed the pairing with the computer end, the Bluetooth module will receive the feedback instruction from the computer end Bluetooth adapter and transmit the successful pairing information to the master control chip 303. The master control chip 303 identifies that the Bluetooth module of the mouse has been successfully matched with the computer end Bluetooth adapter and the user operation is available.
[0081] The master control chip 303 sends a disconnection instruction to the 2.4G module circuit, and the 2.4G module stops working. The mouse remains in a single connection mode of the Bluetooth module. The 2.4G module is in a standby state.
[0082] The master control chip 303 keeps monitoring the connection state of the Bluetooth signal for a long time, and when it is detected that the Bluetooth mode has been disconnected, it sends 4 Bluetooth signal detection instructions in succession. If no data is still received, the working state of the 2.4G module circuit is immediately started and the 2.4G signal is broadcasted within the signal receiving range. At this time, the user only needs to manually insert the 2.4G receiver into the USB interface of the computer end, so as to automatically establish the 2.4G wireless connection between the dual-mode mouse and the computer.
[0083] If there is no data signal from the computer end at this time, the master control chip 303 will continue to send the exploration signal, and if the sending times exceed a certain number and no information can still be received, the mouse enters a deep sleep mode until the user moves the mouse again, so that the photoelectric sensor or the key sensor receives the instruction, and then enters the signal exploration stage.
[0084] The various circuit modules of the electronic device will be combined Figures 5-11 and described.
[0085] Figure 5 The implementation principle schematic diagram of the Bluetooth module of the electronic device of the embodiment of the application is shown.
[0086] In this embodiment of the application, the Bluetooth telecommunication module circuit adopts BK3431Q Bluetooth telecommunication module.
[0087] Figure 6 The implementation principle schematic diagram of the 2.4G telecommunication module of the electronic device of the embodiment of the application is shown.
[0088] In this embodiment of the application, the 2.4G telecommunication module circuit adopts BK2451 2.4G telecommunication module.
[0089] Figure 7 The implementation principle schematic diagram of the power supply charging circuit of the electronic device of the embodiment of the application is shown.
[0090] In this embodiment of the application, the power supply charging circuit includes a power supply, a voltage stabilizing circuit, a D3 diode, a D4 diode, a Q1 triode, and a D2 three-position switch; the voltage stabilizing circuit is configured as an ME4050 chip and its peripheral circuit; the corresponding end of the ME4050 chip is connected with the corresponding end of the Q1 triode and the D2 three-position switch through the power supply and the D3 diode respectively; the other end of the Q1 triode is connected with the corresponding end of the D2 three-position switch and the corresponding end of the D4 diode respectively; the other corresponding end of the D2 three-position switch is connected with the corresponding end of the M283 chip; and the positive pole of the D3 diode is also connected with the corresponding end of the M283 chip.
[0091] The ME4050 chip further includes a 5V-checker detection circuit and a charge circuit; the corresponding end of the 5V-checker detection circuit and the charge circuit is connected with the corresponding end of the ME4050 chip respectively.
[0092] The 5V-checker detection circuit includes an R3 resistor and an R4 resistor; one end of the R3 resistor is connected with the ME4050 chip, and the other end is connected with one end of the R4 resistor; the other end of the R4 resistor is grounded. The charge circuit includes an R5 resistor and an R6 resistor; one end of the R5 resistor is connected with a VCC3.0 input end, and the other end is connected with the other end of the R6 resistor and the corresponding end of the ME4050 chip respectively; the other end of the R6 resistor is grounded.
[0093] Thus, perfect compatibility of Bluetooth and 2.4G connection modes of the dual-mode wireless mouse can be realized, lithium battery is used for power supply, and seven-color decorative lights are freely breathed with the support of LED indications of low power, charging and full charging. In addition to the normal five keys (R, L, M, F4 / Right, F5 / Left), the mouse specially supports double-click operation of the fire key, and operation of media play key, Windows function key and DPI key, etc. Customized needs of users can be realized. The USB interface specification of the receiver dongle of the wireless mouse is usb1.1 Low speed, the report rate is 125, and the effective working distance can reach about 10 meters. The dongle supports 2.4G radio frequency wired keyboard or mouse to work with the dual-mode mouse at the same time. The USB interface specification of the wired keyboard or mouse is USB2.0 Full-speed, and the report rate can reach 500 during working. The report rates 250 / 500 can be switched through SW.
[0094] Figure 8 The implementation principle schematic diagram of the key circuit of the electronic device of the embodiment of the application is shown.
[0095] In this embodiment of the application, the key circuit can be realized by using the general key circuit in the art, and details are not described here.
[0096] Figure 9 The implementation principle schematic diagram of the photoelectric sensor circuit of the electronic device of the embodiment of the application is shown.
[0097] In this embodiment of the application, the photoelectric sensor circuit uses 3212 chip and its peripheral circuit, and the corresponding end of the photoelectric sensor is connected with the corresponding end of M283 chip.
[0098] Figure 10 The implementation principle schematic diagram of the storage circuit of the electronic device of the embodiment of the application is shown.
[0099] In this embodiment of the application, the storage circuit is set as 24C02-5 chip and its peripheral circuit, and the corresponding end of the 24C02-5 chip in the storage circuit is connected with the corresponding end of M283 chip.
[0100] Figure 11 The implementation principle schematic diagram of the RF circuit of the electronic device of the embodiment of the application is shown.
[0101] In this embodiment of the application, the RF (Radio Frequency) circuit can be realized by using the general key circuit in the art, and details are not described here.
[0102] Figure 12 The composition structure schematic diagram of the connecting device of the embodiment of the application is shown, and the composition structure schematic diagram of the connecting device of the embodiment of the application is shown.Figure 12 The connection device provided by the embodiment of the present application is applied to a first electronic device, and comprises: a connection establishing module 1201 configured to, in response to obtaining a request for first establishing a first connection with a second electronic device, deliver interaction data between the first electronic device and the second electronic device through a second connection; and a state control module 1202 configured to establish the first connection based on at least the interaction data, and control a connection state of the second connection after the first connection is established; wherein the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a connection established based on at least a hardware mode.
[0103] In the embodiment of the present application, the connection establishing module 1201 comprises: a first interaction sub-module configured to, in response to radiating outward or searching for a first signal after the second connection is established with the second electronic device, determine to obtain the request for first establishing the first connection with the second electronic device, and deliver the interaction data through the second connection; wherein in the process of radiating outward or searching for the first signal, a second signal is radiated outward or received, and the second signal is a signal used by the second connection.
[0104] In the embodiment of the present application, the connection establishing module 1201 comprises: a data obtaining sub-module configured to obtain interaction data from the second electronic device, wherein the interaction data is generated by the second electronic device in response to operation data from the first electronic device; and a connection sub-module configured to establish the first connection if the interaction data is matched successfully; wherein the interaction data can be propagated through the first signal and / or the second signal.
[0105] In the embodiment of the present application, the state control module 1202 comprises: a disabling sub-module configured to control the second connection to be in a disabled state; or a first control sub-module configured to obtain to-be-transmitted data between the first electronic device and the second electronic device, and control the connection to be in a disabled state or an available state based on at least attribute information of the to-be-transmitted data.
[0106] In the embodiment of the present application, the state control module 1202 further comprises: a second control sub-module configured to obtain connection states of the first connection and the second connection, and control to-be-transmitted data between the first electronic device and the second electronic device to be transmitted through the first connection and / or the second connection based on the connection states.
[0107] In this embodiment of the present application, the state control module 1202 further comprises a third control submodule, which monitors data information carried by the first signal and / or the second signal, and controls the running state of itself based on at least the data information, or controls the running state of itself based on the data information and motion information of itself.
[0108] In this embodiment of the present application, the apparatus further comprises an information cleaning module, configured to delete connection information between the second electronic device if a cleaning condition is met after the disconnection with the second electronic device, wherein the connection information at least includes connection information of the first connection.
[0109] In the connection method and the electronic device, when the first electronic device receives a request for establishing the first connection with the second electronic device for the first time, the first electronic device transmits interaction data between the first electronic device and the second electronic device through the second connection, establishes the first connection based on at least the interaction data, and controls the connection state of the second connection after the first connection is established. Thus, for the first electronic device with multiple connection modes, the connection with the second electronic device and the connection mode switching can be realized without using other additional devices, thereby effectively avoiding the problem that the second electronic device needs to establish the first connection with the aid of other additional devices, and enabling the second electronic device to quickly and conveniently establish the connection with the first electronic device.
[0110] It should be noted that the above description of the electronic device and the connection apparatus is similar to the description of the method described above. Figures 1 to 2 The method has similar beneficial effects as the method described above, and thus will not be described in detail. For technical details not disclosed in the electronic device and the connection apparatus of the present application, please refer to the description of the method described above. Figures 1 to 2 The method has similar beneficial effects as the method described above, and thus will not be described in detail. For technical details not disclosed in the electronic device and the connection apparatus of the present application, please refer to the description of the method described above. Figures 1 to 2 The method has similar beneficial effects as the method described above, and thus will not be described in detail. For technical details not disclosed in the electronic device and the connection apparatus of the present application, please refer to the description of the method described above.
[0111] It should be noted that in this document, the terms "comprising", "including", or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article, or apparatus that includes a list of elements not only includes those elements, but also includes other elements not explicitly listed, or inherent to such a process, method, article, or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article, or apparatus that includes the element.
[0112] In several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other manners. The above described device embodiments are merely exemplary. For example, the division of the units is only a logical function division. There can be another division manner for the actual implementation, for example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. In addition, the coupling or direct coupling or communication connection between the components shown or discussed can be indirect coupling or communication connection through some interfaces, devices or units, and can be electrical, mechanical or other forms.
[0113] The units described as separate components can or can not be physically separate, and the components shown as units can or can not be physical units; they can be located in one place, or distributed on multiple network units; and part or all of the units can be selected according to actual needs to achieve the purpose of the embodiment.
[0114] In addition, each functional unit in each embodiment of the present application can be integrated into one processing unit, or each unit can be a separate unit, or two or more units can be integrated into one unit; the integrated unit can be realized in the form of hardware or in the form of hardware plus software functional units.
[0115] Those of ordinary skill in the art can understand that all or part of the steps of the above method embodiments can be completed by a program instructing related hardware, and the foregoing program can be stored in a computer readable storage medium, and when the program is executed, the steps of the method embodiments are executed; and the foregoing storage medium includes mobile storage devices, read only memory (ROM), magnetic discs or optical discs, and various storage media that can store program codes.
[0116] Alternatively, the integrated units of the present application, if implemented in the form of software functional modules and sold or used as independent products, can also be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the embodiments of the present application can be embodied in the form of a software product, and the computer software product is stored in a storage medium, and includes several instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute all or part of the methods of the embodiments of the present application. The foregoing storage medium includes mobile storage devices, ROM, magnetic discs or optical discs, and various storage media that can store program codes.
[0117] The above merely provides the specific implementation of the present application, but the protection scope of the present application is not limited to this. Any person skilled in the art can easily think of the changes or replacements within the technical range disclosed by the present application, which should be covered in the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.
Claims
1. A connection method applied to a first electronic device, comprising: In response to a request to establish a first connection with a second electronic device for the first time, the interaction data between the first electronic device and the second electronic device is transmitted through the second connection; The first connection is established based at least on the interaction data, and the connection state of the second connection is controlled after the first connection is established; Wherein, the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a wireless connection established at least in hardware. Controlling the connection state of the second connection includes: Obtain the data to be transmitted between the first electronic device and the second electronic device, and control the second connection to be in a disabled or available state based at least on the attribute information of the data to be transmitted.
2. The method according to claim 1, wherein transmitting the interactive data between the first electronic device and the second electronic device via the second connection comprises: After establishing the second connection with the second electronic device, in response to radiating outward or detecting the first signal, a request to establish the first connection with the second electronic device for the first time is determined, and the interactive data is transmitted through the second connection; In the process of radiating or detecting the first signal, a second signal is radiated or received, which is the signal used by the second connection.
3. The method according to claim 2, wherein establishing the first connection based at least on the interaction data comprises: The interaction data is obtained from the second electronic device, which is generated by the second electronic device in response to operation data from the first electronic device; If the interaction data matches successfully, the first connection is established; The interactive data can be propagated through the first signal and / or the second signal.
4. The method according to any one of claims 1 to 3, wherein, Controlling the connection state of the second connection also includes: Obtain the connection status of the first connection and the second connection, and control the first electronic device and the second electronic device to transmit data to be transmitted through the first connection and / or the second connection based on the connection status.
5. The method according to any one of claims 1 to 3, wherein, Controlling the connection state of the second connection also includes: Monitor the data information carried by the first signal and / or the second signal, and control its own operating state based at least on the data information, or control its own operating state based on the data information and its own motion information.
6. The method according to claim 1, further comprising: After disconnecting from the second electronic device, if the cleanup conditions are met, the connection information between the second electronic device is deleted, and the connection information includes at least the connection information of the first connection.
7. An electronic device, serving as a first electronic device, comprising a first communication chip, a second communication chip, and a main control chip; wherein, The second communication chip is used to establish a second connection with the second electronic device. When the first communication chip receives a request to establish a first connection, the second communication chip transmits the interaction data between the first electronic device and the second electronic device so as to establish the first connection through the first communication chip. The main control chip is used at least to control the connection status of the second connection; Wherein, the power consumption of the first electronic device and the second electronic device under the first connection is different from the power consumption under the second connection, and the second connection is a wireless connection established at least in hardware. Controlling the connection state of the second connection includes: Obtain the data to be transmitted between the first electronic device and the second electronic device, and control the second connection to be in a disabled or available state based at least on the attribute information of the data to be transmitted.
8. The electronic device according to claim 7, further comprising: Sensor circuits are used to obtain the location information of electronic devices; as well as, A radio frequency circuit is used to transmit and receive wireless signals to transmit the location information and a portion of the interaction data generated by the first electronic device to the second electronic device via the first connection or the second connection.
9. The electronic device according to claim 7, The first communication chip is a Bluetooth communication chip; The second communication chip is a 2.4G wireless communication chip.
Citation Information
Patent Citations
Connection method and device of Bluetooth devices
CN105516905A
Wireless communication pairing method, wireless receiving device, wireless transmitting device and system
CN108513715A
Method and device for controlling equipment, storage medium, processor and terminal
CN112333779A