Bluetooth communication method of electronic equipment, electronic equipment and storage medium

CN119299993APending Publication Date: 2025-01-10湖北星纪魅族集团有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411287557.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-09-13
Publication Date
2025-01-10

AI Technical Summary

Technical Problem

[0003]但是,由于苹果的iWatch系统不开源且需要绑定一台iPhone手机才能正常使用,这就导致iWatch无法与非苹果生态的可穿戴设备进行蓝牙通信

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119299993A_ABST
    Figure CN119299993A_ABST
Patent Text Reader

Abstract

The invention provides a Bluetooth communication method of an electronic device, the electronic device and a storage medium. The method applied to an IOS interconnection device comprises the steps that it is determined that the IOS interconnection device establishes a Bluetooth connection with an IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with an Android interconnection device; and carrying out Bluetooth communication with the Android interconnection device through the IOS terminal device.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the technical field of Bluetooth communication, and more specifically, to a Bluetooth communication method of an electronic device, an electronic device, and a storage medium. Background Art

[0002] With the popularization of wearable devices and mobile terminals, as well as the development of Internet of Things technology, there are more and more wearable devices that are connected to mobile phones via Bluetooth. Wearable devices cover many aspects of user life and work. For example, wearable devices include: smart watches, smart bracelets, XR glasses, Bluetooth speakers and other equipment.

[0003] However, since Apple's iWatch system is not open source and needs to be bound to an iPhone to be used normally, the iWatch cannot communicate with wearable devices outside the Apple ecosystem via Bluetooth. Summary of the invention

[0004] According to a first aspect of the present disclosure, a Bluetooth communication method of an electronic device is provided, which is applied to an IOS interconnected device, comprising:

[0005] Determine that the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with the Android interconnected device;

[0006] Bluetooth communication is performed between the IOS terminal device and the Android interconnected device.

[0007] According to a second aspect of the present disclosure, a communication method of an electronic device is provided, which is applied to an IOS terminal device, comprising:

[0008] Establish Bluetooth connections with IOS connected devices and Android connected devices respectively;

[0009] Assist the IOS interconnected device and the Android interconnected device to perform Bluetooth communication.

[0010] According to a third aspect of the present disclosure, an electronic device is provided, including a processor and a memory, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method described in the first aspect of the present disclosure.

[0011] According to a fourth aspect of the present disclosure, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the method described in the first aspect of the present disclosure is implemented. BRIEF DESCRIPTION OF THE DRAWINGS

[0012] In order to more clearly illustrate the technical solutions in the present disclosure or the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present disclosure. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0013] Figure 1 A block diagram of a Bluetooth communication system provided for one embodiment of the present disclosure;

[0014] Figure 2 A flowchart of a Bluetooth communication method provided for the first embodiment of the present disclosure;

[0015] Figure 3 A schematic diagram of a Bluetooth communication method provided by an embodiment of the present disclosure;

[0016] Figure 4 A schematic diagram of a Bluetooth communication method provided by another embodiment of the present disclosure;

[0017] Figure 5 A flowchart of a Bluetooth communication method provided for a second embodiment of the present disclosure;

[0018] Figure 6 A flowchart of a Bluetooth communication method provided in a third embodiment of the present disclosure;

[0019] Figure 7 A flowchart of a Bluetooth communication method provided in accordance with a fourth embodiment of the present disclosure;

[0020] Figure 8 A flowchart of a Bluetooth communication method provided in accordance with a fifth embodiment of the present disclosure;

[0021] Fig. 9 A block diagram of an electronic device provided for one embodiment of the present disclosure;

[0022] Fig.10 A block diagram of an electronic device provided for another embodiment of the present disclosure. DETAILED DESCRIPTION

[0023] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that the relative arrangement of components and steps, numerical expressions and numerical values ​​set forth in these embodiments do not limit the scope of the present disclosure unless otherwise specifically stated.

[0024] The following description of at least one exemplary embodiment is merely illustrative in nature and is in no way intended to limit the present disclosure, its application, or uses.

[0025] Technologies, methods, and equipment known to ordinary technicians in the relevant art may not be discussed in detail, but where appropriate, the technologies, methods, and equipment should be considered part of the specification.

[0026] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not limiting. Therefore, other examples of the exemplary embodiments may have different values.

[0027] It should be noted that like reference numerals and letters refer to similar items in the following figures, and therefore, once an item is defined in one figure, it need not be further discussed in subsequent figures.

[0028] Bluetooth Low Energy (Bluetooth LE, BLE, old trademark Bluetooth Smart), also known as low-power Bluetooth, is a personal area network technology designed and sold by the Bluetooth Technology Alliance. It is intended for emerging applications in healthcare, sports and fitness, beacons, security, home entertainment and other fields.

[0029] like Figure 1 As shown, the Bluetooth communication system 1000 of the embodiment of the present disclosure includes an iOS interconnected device 1100, an iOS terminal device 1200 and an Android interconnected device 1300.

[0030] In the embodiments of the present disclosure, any one of the IOS interconnected device 1100, the IOS terminal device 1200 and the Android interconnected device 1300 can be various handheld devices, vehicle-mounted devices, wearable devices, computing devices, etc. with BLE communication functions, which can establish BLE connections with other Bluetooth devices, such as mobile phones, tablets, head-mounted devices, bracelets, etc.

[0031] In an example, the IOS interconnected device 1100 may be an electronic product such as a bracelet or a watch equipped with an IOS system, the IOS terminal device 1200 may be an electronic product such as a mobile phone or a tablet computer equipped with an IOS system, and the Android interconnected device 1300 may be an electronic product such as a head-mounted device or a smart speaker equipped with an Android system.

[0032] Under normal circumstances, the iOS system set in the iOS interconnected device 1100 is not open source and cannot be interconnected with the Android interconnected device 1300 set with the Android system. However, in some application scenarios, users need to control each other through the iOS interconnected device 1100 and the Android interconnected device 1300.

[0033] Figure 2 A schematic diagram of a flow chart of a Bluetooth communication method provided by an embodiment of the present disclosure, wherein the execution subject of the method is an IOS interconnected device, such as Figure 2 As shown, the method includes:

[0034] Step 201, determine that the iOS interconnected device establishes a Bluetooth connection with the iOS terminal device, and the iOS terminal device establishes a Bluetooth connection with the Android interconnected device.

[0035] In this embodiment, the iOS terminal device can establish a Bluetooth connection with the iOS interconnected device and the Android interconnected device at the same time. The iOS interconnected device can be installed with a first application, and the iOS interconnected device can execute the method of this embodiment through the first application. Among them, the first application is an application for communicating with the Android interconnected device.

[0036] In some embodiments, the IOS interconnected device can be bound to the IOS terminal device in advance. After the binding is completed, when the Bluetooth function of the IOS interconnected device and the IOS terminal device is turned on, the IOS interconnected device and the IOS terminal device can establish a Bluetooth connection.

[0037] In some embodiments, when the iOS interconnected device has not been bound to the iOS terminal device, the iOS interconnected device may provide a first binding interface through a first application to guide the user to implement the binding of the iOS interconnected device and the iOS terminal device through the first binding interface. Alternatively, a second application may be installed in the iOS terminal device, and the iOS terminal device provides a second binding interface through the second application to guide the user to implement the binding of the iOS interconnected device and the iOS terminal device through the second binding interface. The second application is an application for communicating with an Android interconnected device.

[0038] In some embodiments, before executing step 201, the method may also include: in response to the first application of the IOS interconnected device being started, detecting whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device; in response to the IOS interconnected device not establishing a Bluetooth connection with the IOS terminal device, waking up the second application of the IOS terminal device so that the IOS terminal device establishes a Bluetooth connection with the IOS interconnected device.

[0039] In this embodiment, when the IOS interconnected device is bound to the IOS terminal device in advance, if the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, the second application of the IOS terminal device can be awakened. This process can be implemented through the IOS private protocol, and this application will not go into details. When the second application is awakened, the IOS terminal device will establish a Bluetooth connection with the IOS interconnected device through the second application.

[0040] In this embodiment, when the first application is started, the IOS interconnected device can detect through the first application whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device, and when the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, wake up the second application of the IOS terminal device.

[0041] In some embodiments, the IOS interconnected device detects through a first application whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device. Specifically, the IOS interconnected device sends a second query message to the IOS terminal device through the first application, and the second query message is used to confirm whether the IOS terminal device has established a Bluetooth connection with the IOS interconnected device; the IOS interconnected device responds to the confirmation response received from the second query message and determines that the IOS interconnected device has established a Bluetooth connection with the IOS terminal device.

[0042] In this embodiment, the IOS terminal device detects whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device when receiving the second query message. When the IOS terminal device detects that the IOS interconnected device has established a Bluetooth connection with the IOS terminal device, the IOS terminal device returns a confirmation response of the second query message to the IOS interconnected device; when the IOS terminal device detects that the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, the IOS terminal device returns a negative response of the second query message to the IOS interconnected device.

[0043] In some embodiments, the IOS interconnected device detects whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device through the first application, or the IOS interconnected device detects the second state information in the first application indicating whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device to detect whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device. Specifically, the IOS interconnected device may determine that the interconnected device has established a Bluetooth connection with the IOS terminal device when the second state information indicates connection; the IOS interconnected device may determine that the interconnected device has not established a Bluetooth connection with the IOS terminal device when the second state information indicates non-connection.

[0044] In some embodiments, the IOS interconnected device wakes up the second application of the IOS terminal device, which may be that the IOS interconnected device sends a wake-up instruction to the IOS terminal device, and the IOS terminal device starts the second application in response to the wake-up instruction.

[0045] Through this embodiment, when the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, the IOS interconnected device can establish a Bluetooth connection with the IOS terminal device by waking up the second application of the IOS terminal device.

[0046] In some embodiments, when the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, the second application of the IOS terminal device may not be turned on. If the second application of the IOS terminal device is not turned on, the IOS interconnected device will not be able to communicate with the Android interconnected device through the IOS terminal device through Bluetooth. Therefore, the method may also include: in response to the IOS interconnected device establishing a Bluetooth connection with the IOS terminal device, detecting whether the second application of the IOS terminal device is turned on; in response to the second application not being turned on, waking up the second application.

[0047] In this embodiment, the subsequent step of executing Bluetooth communication between the IOS terminal device and the Android interconnected device requires the IOS terminal device to start a second application. Therefore, when it is determined that the IOS interconnected device and the IOS terminal device have established a Bluetooth connection and the IOS terminal device has not started the second application, the second application of the IOS terminal device is woken up to enable the IOS terminal device to assist the IOS interconnected device and the Android interconnected device in Bluetooth communication through the second application.

[0048] In some embodiments, determining that an IOS terminal device has established a Bluetooth connection with an Android connected device includes: sending a first query message to the IOS terminal device, the first query message being used to confirm whether the IOS terminal device has established a Bluetooth connection with the Android connected device; in response to receiving a confirmation response to the first query message, determining that the IOS terminal device has established a Bluetooth connection with the Android connected device, the confirmation response to the first query message including identification information of the Android connected device.

[0049] In this embodiment, when the IOS terminal device receives the first query message, it detects whether the IOS terminal device has established a Bluetooth connection with the Android interconnected device. When the IOS terminal device detects that the IOS terminal device has established a Bluetooth connection with the Android interconnected device, it returns a confirmation response of the first query message to the IOS interconnected device; when the IOS terminal device detects that the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, it returns a negative response of the first query message to the IOS interconnected device.

[0050] When the iOS terminal device establishes a Bluetooth connection with the Android connected device, the iOS terminal device can obtain the identification information of the Android connected device, and generate a confirmation response of the first query message according to the identification information of the Android connected device, so that the confirmation response of the first query message includes the identification information of the Android connected device. The identification information of the Android connected device can be used to uniquely identify the Android connected device, for example, the identification information of the Android connected device can be the Bluetooth MAC address of the Android connected device.

[0051] Through this embodiment, the IOS interconnected device can obtain the identification information of the Android interconnected device that establishes a Bluetooth connection with the IOS terminal device, so that the IOS interconnected device can subsequently scan the first BLE broadcast sent by the Android interconnected device according to the identification information of the Android interconnected device, and the IOS interconnected device can subsequently generate a communication message with the Android interconnected device as the sending and receiving target according to the identification information of the Android interconnected device.

[0052] In some embodiments, the confirmation response of the first query message may include at least first status information indicating the Bluetooth connection status between the iOS terminal device and the Android connected device. On this basis, the confirmation response of the first query message may also include any one or more of the following: identification information of the iOS terminal device, the name of the iOS terminal device, the name of the Android connected device, the type of the Android connected device, etc.

[0053] In some embodiments, the first query message and the aforementioned second query message may be the same message or different messages, which is not limited here.

[0054] Through this embodiment, the IOS interconnected device can detect whether the IOS terminal device has established a Bluetooth connection with the Android interconnected device.

[0055] In some embodiments, the method may further include: in response to determining that the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, sending a second message to the IOS terminal device, so that the IOS terminal device establishes a Bluetooth connection with the Android interconnected device according to the second message.

[0056] In this embodiment, in response to receiving the second message, the iOS terminal device establishes a Bluetooth connection with the Android interconnected device.

[0057] In this embodiment, the IOS terminal device can be bound to the Android interconnected device in advance. After the binding is completed, when the IOS terminal device and the Android interconnected device are bound, the IOS terminal device and the Android interconnected device can establish a Bluetooth connection when both the IOS terminal device and the Android interconnected device turn on the Bluetooth function.

[0058] In some embodiments, when the Bluetooth function of both the IOS terminal device and the Android connected device is turned on, the Android connected device generally sends a second BLE broadcast corresponding to the IOS terminal device. When the IOS terminal device scans the second BLE broadcast sent by the Android connected device, the IOS terminal device sends a Bluetooth connection request to the Android connected device based on the second BLE broadcast. When the Android connected device receives the Bluetooth connection request, it establishes a Bluetooth connection with the IOS terminal device.

[0059] In some embodiments, when the IOS terminal device has not yet been bound to the Android connected device, the IOS terminal device can search for Bluetooth broadcast signals sent by surrounding Bluetooth devices, and provide a third binding interface for the searched Bluetooth device through a second application to guide the user to select the Android connected device to be bound through the third binding interface, thereby achieving binding of the IOS terminal device and the Android connected device.

[0060] In some embodiments, when the IOS terminal device has not been bound to the Android interconnected device, a third application may be installed in the Android interconnected device. In response to the binding operation triggered by the user, the Android interconnected device may search for Bluetooth broadcast signals sent by surrounding Bluetooth devices, and provide a fourth binding interface of the searched Bluetooth devices through the third application to guide the user to select the IOS terminal device to be bound through the fourth binding interface, thereby achieving the binding of the IOS terminal device and the Android interconnected device. The binding operation may include inputting a voice command to bind the Bluetooth device, or clicking a button to bind the Bluetooth device.

[0061] Through this embodiment, when the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, a second message can be sent to the IOS terminal device so that the IOS terminal device establishes a Bluetooth connection with the Android interconnected device.

[0062] In this embodiment, the IOS interconnected device determines that the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with the Android interconnected device, which can provide a communication basis for the subsequent IOS interconnected device to perform Bluetooth communication with the Android interconnected device through the IOS terminal device.

[0063] Step 202: Bluetooth communication is performed between the IOS terminal device and the Android interconnected device.

[0064] In this embodiment, the IOS interconnected device communicates with the Android interconnected device via Bluetooth through the IOS terminal device, so that the IOS interconnected device and the Android interconnected device can control each other.

[0065] Through this embodiment, the IOS interconnected device determines that it establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with the Android interconnected device. That is, Bluetooth communication can be performed between the IOS terminal device and the Android interconnected device, thereby enabling the IOS interconnected device to control the Android interconnected device and improve the user experience.

[0066] In some embodiments, performing Bluetooth communication between an IOS terminal device and an Android connected device may include: establishing a Bluetooth connection between the IOS terminal device and the Android connected device; and communicating with the Android connected device through the Bluetooth connection between the IOS connected device and the Android connected device.

[0067] In this embodiment, if Figure 3 As shown, when the IOS interconnected device establishes a Bluetooth connection with the Android interconnected device through the IOS terminal device, the IOS interconnected device can directly interact with the Android interconnected device through the Bluetooth connection between the IOS interconnected device and the Android interconnected device.

[0068] In some embodiments, the Android interconnected device may send a first BLE broadcast corresponding to the iOS interconnected device, or a second BLE broadcast corresponding to the iOS terminal device. The first BLE broadcast and the second BLE broadcast have different contents.

[0069] Under normal circumstances, the Android interconnected device sends a second BLE broadcast corresponding to the IOS terminal device. The IOS interconnected device scans the second BLE broadcast sent by the Android interconnected device, does not process the second BLE broadcast, and cannot directly establish a Bluetooth connection with the Android interconnected device according to the second BLE broadcast. Therefore, the IOS interconnected device can establish a Bluetooth connection with the Android interconnected device through the IOS terminal device.

[0070] In some embodiments, establishing a Bluetooth connection with an Android connected device through an IOS terminal device may include: sending a first message to the Android connected device through the IOS terminal device, so that the Android connected device sends a first BLE broadcast corresponding to the IOS connected device; scanning the first BLE broadcast sent by the Android connected device, and in response to scanning the first BLE broadcast sent by the Android connected device, initiating a Bluetooth connection to the Android connected device according to the first BLE broadcast.

[0071] In this embodiment, the IOS interconnected device may send a first message to the IOS terminal device, and the IOS terminal device forwards the first message to the Android interconnected device. Alternatively, the IOS interconnected device may send an instruction to the IOS terminal device to instruct the IOS terminal device to send the first message to the Android interconnected device, and the IOS terminal device sends the first message to the Android interconnected device in response to the instruction. When the Android interconnected device receives the first message, it sends a first BLE broadcast corresponding to the IOS interconnected device.

[0072] In some embodiments, the first message may include an instruction for controlling the Android connected device to send a first BLE broadcast corresponding to the iOS connected device. In this way, when the Android connected device receives the first message, it may send the first BLE broadcast in response to the instruction in the first message for controlling the Android connected device to send the first BLE broadcast corresponding to the iOS connected device.

[0073] In some embodiments, after receiving the first message, the Android connected device can send a third message to the IOS connected device through the IOS terminal device, where the third message may include any one or more of the following: identification information of the Android connected device, MTU (Maximum Transmission Unit) of the Android connected device, encryption information of the Android connected device, and content of the first BLE broadcast.

[0074] In the embodiment where the third message includes any one or more of the identification information of the Android interconnected device and the content of the first BLE broadcast, it is convenient for the iOS interconnected device to establish a Bluetooth connection with the Android interconnected device more quickly according to the third message. In the embodiment where the third message includes any one or more of the MTU of the Android interconnected device and the encryption information of the Android interconnected device, it is convenient for the iOS interconnected device to subsequently exchange data with the Android interconnected device.

[0075] When the iOS interconnected device scans the first BLE broadcast sent by the Android interconnected device, it can process the first BLE broadcast and initiate a Bluetooth connection to the Android interconnected device according to the first BLE broadcast, so that the iOS interconnected device establishes a Bluetooth connection with the Android interconnected device.

[0076] In this embodiment, the IOS interconnected device initiates a Bluetooth connection to the Android interconnected device according to the first BLE broadcast, and may send a fourth message to the Android interconnected device according to the first BLE broadcast. The fourth message may include any one or more of the following: identification information of the IOS terminal device, identification information of the IOS interconnected device, name of the IOS interconnected device, company identification (company ID) of the IOS interconnected device, category identification (category ID) of the IOS interconnected device, model identification (model ID) of the IOS interconnected device, and battery information of the IOS interconnected device.

[0077] In the case where the fourth message includes any one or more of the identification information of the IOS terminal device, the identification information of the IOS interconnected device, the name of the IOS interconnected device, the company ID of the IOS interconnected device, and the category ID of the IOS interconnected device, it is convenient for the Android interconnected device to verify the IOS interconnected device according to the fourth message, and the Android interconnected device to establish a Bluetooth connection with the same IOS interconnected device, thereby establishing a Bluetooth connection with the IOS interconnected device more quickly. In the case where the fourth message includes the battery information of the IOS interconnected device, the battery information of the IOS interconnected device can be displayed through the Android interconnected device when the Android interconnected device establishes a Bluetooth connection with the IOS interconnected device, so that the user can view the battery information of the IOS interconnected device through the Android interconnected device.

[0078] When the Android interconnected device receives the fourth message, it verifies whether the IOS terminal device that establishes a Bluetooth connection with the IOS interconnected device and the IOS terminal device that establishes a Bluetooth connection with the Android interconnected device are the same based on the identification information of the IOS interconnected device and the identification information of the IOS terminal device. If the verification is successful, it returns a fifth message indicating a successful connection to the IOS interconnected device, wherein the fifth message may include the identification information of the Android interconnected device and the device information of the Android interconnected device. The identification information may be a Bluetooth MAC address, and the device information may include any one or more of the device name, model, and serial number.

[0079] In some embodiments, when the IOS interconnected device receives identification information of the Android interconnected device in advance, scanning the first BLE broadcast sent by the Android interconnected device may include: scanning the first BLE broadcast sent by the Android interconnected device according to the identification information of the Android interconnected device.

[0080] Through this embodiment, the iOS interconnected device can more quickly scan the first BLE broadcast sent by the Android interconnected device, and then more quickly establish a Bluetooth connection with the Android interconnected device.

[0081] In some embodiments, performing Bluetooth communication with an Android connected device via an IOS terminal device may include: sending a communication message to the IOS terminal device, and the IOS terminal device forwarding the communication message to the Android connected device in response to the receiving target of the communication message being the Android connected device.

[0082] In this embodiment, if Figure 4 As shown, there is no Bluetooth connection between the IOS interconnected device and the Android interconnected device. The IOS interconnected device can interact with the Android interconnected device indirectly through the Bluetooth connection between the IOS interconnected device and the IOS terminal device, and the Bluetooth connection between the IOS terminal device and the Android interconnected device.

[0083] In some embodiments, when an iOS interconnected device needs to interact with an Android interconnected device, the iOS interconnected device may send a communication message to an iOS terminal device; when the receiving target of the communication message is an Android interconnected device, the iOS terminal device forwards the communication message to the Android interconnected device, so that the Android interconnected device performs an operation corresponding to the communication message.

[0084] In some embodiments, the data processing capability of the IOS terminal device is stronger, while the data processing capability of the IOS interconnected device is weaker. Then, when the IOS interconnected device needs to interact with the Android interconnected device, the IOS interconnected device may send a communication message to the IOS terminal device. When the receiving target of the communication message is the Android interconnected device, the IOS terminal device parses the communication message and sends the parsed communication message to the Android interconnected device, so that the Android interconnected device performs an operation corresponding to the communication message according to the parsed communication message.

[0085] Through this embodiment, the IOS interconnected device can achieve more complex control over the Android interconnected device.

[0086] In some embodiments, before sending a communication message to the IOS terminal device, the method may further include: generating a communication message, wherein, when the receiving target of the communication message is an Android connected device, the communication message also includes identification information of the Android connected device.

[0087] In this embodiment, when the receiving target of the communication message is an Android connected device, a communication message including the identification information of the Android connected device is generated, so that when the IOS terminal device receives the communication message, it determines that the receiving target of the communication message is the Android connected device according to the identification information of the Android connected device contained in the communication message, so as to send the communication message to the Android connected device.

[0088] Figure 5 A schematic diagram of a flow chart of a Bluetooth communication method provided by an embodiment of the present disclosure, wherein the execution subject of the method is an IOS terminal device, such as Figure 5 As shown, the method includes:

[0089] Step 501, establish Bluetooth connections with the IOS interconnected device and the Android interconnected device respectively.

[0090] In this embodiment, the IOS terminal device can establish Bluetooth connections with both the IOS interconnected device and the Android interconnected device.

[0091] In some embodiments, the IOS interconnected device can be bound to the IOS terminal device in advance. After the binding is completed, when the Bluetooth function of the IOS interconnected device and the IOS terminal device is turned on, the IOS interconnected device and the IOS terminal device can establish a Bluetooth connection.

[0092] In some embodiments, when the IOS interconnected device has not been bound to the IOS terminal device, the IOS interconnected device may provide a first binding interface through a first application to guide the user to implement binding of the IOS interconnected device and the IOS terminal device through the first binding interface. Alternatively, a second application may be installed in the IOS terminal device, and the IOS terminal device provides a second binding interface through the second application to guide the user to implement binding of the IOS interconnected device and the IOS terminal device through the second binding interface.

[0093] In some embodiments, before executing step 501, the method may further include: waking up a second application of the IOS terminal device in response to the IOS interconnected device, starting the second application, and thereby establishing a Bluetooth connection with the IOS interconnected device.

[0094] Among them, the process of the IOS interconnected device waking up the second application of the IOS terminal device can be implemented through the IOS private protocol, which will not be repeated in this application.

[0095] In this embodiment, when the IOS interconnected device is bound to the IOS terminal device in advance, if the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, the second application of the IOS terminal device can be awakened. When the second application is awakened, the IOS terminal device will establish a Bluetooth connection with the IOS interconnected device through the second application.

[0096] In this embodiment, when the IOS interconnected device is bound to the IOS terminal device in advance, if the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device has not started the second application, then the IOS terminal device responds to the IOS interconnected device waking up the second application of the IOS terminal device and starts the second application, so that the IOS terminal device assists the IOS interconnected device and the Android interconnected device to communicate via Bluetooth through the second application.

[0097] Through this embodiment, when the IOS interconnected device has not established a Bluetooth connection with the IOS terminal device, the IOS interconnected device can establish a Bluetooth connection with the IOS terminal device by waking up the second application of the IOS terminal device.

[0098] In some embodiments, the method may further include: receiving a first query message sent by the IOS interconnected device, and returning a confirmation response of the first query message to the IOS interconnected device when the IOS terminal device establishes a Bluetooth connection with the Android interconnected device.

[0099] In this embodiment, when the IOS terminal device receives the first query message, it detects whether the IOS terminal device has established a Bluetooth connection with the Android interconnected device. When the IOS terminal device detects that the IOS terminal device has established a Bluetooth connection with the Android interconnected device, it returns a confirmation response of the first query message to the IOS interconnected device; when the IOS terminal device detects that the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, it returns a negative response of the first query message to the IOS interconnected device.

[0100] When the iOS terminal device establishes a Bluetooth connection with the Android connected device, the iOS terminal device can obtain the identification information of the Android connected device, and generate a confirmation response of the first query message according to the identification information of the Android connected device, so that the confirmation response of the first query message includes the identification information of the Android connected device. The identification information of the third electronic device can be used to uniquely identify the Android connected device, for example, the identification information of the Android connected device can be the Bluetooth MAC address of the Android connected device.

[0101] Through this embodiment, the IOS interconnected device can obtain the identification information of the Android interconnected device that establishes a Bluetooth connection with the IOS terminal device, so that the IOS interconnected device can subsequently scan the first BLE broadcast sent by the Android interconnected device according to the identification information of the Android interconnected device, and the IOS interconnected device can subsequently generate a communication message with the Android interconnected device as the sending and receiving target according to the identification information of the Android interconnected device.

[0102] In some embodiments, the confirmation response of the first query message may at least include first status information indicating the Bluetooth connection status between the iOS terminal device and the Android connected device. On this basis, the confirmation response of the first query message may also include any one or more of the following: identification information of the iOS terminal device, the name of the iOS terminal device, the name of the Android connected device, the type of the Android connected device, etc., so that the iOS connected device can determine the device corresponding to the first status information.

[0103] When the IOS interconnected device receives a confirmation response to the first query message, it determines that the IOS terminal device has established a Bluetooth connection with the Android interconnected device. When the IOS interconnected device receives a negative response to the first query message, it determines that the IOS terminal device has not established a Bluetooth connection with the Android interconnected device.

[0104] Through this embodiment, the IOS terminal device can detect whether it has established a Bluetooth connection with the IOS interconnected device and the Android interconnected device, and return the result to the IOS interconnected device.

[0105] In some embodiments, when the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, the method may further include: receiving a second message sent by the IOS interconnected device, and establishing a Bluetooth connection with the Android interconnected device according to the second message.

[0106] In this embodiment, the IOS terminal device can be bound to the Android interconnected device in advance. After the binding is completed, when the IOS terminal device and the Android interconnected device are bound, the IOS terminal device and the Android interconnected device can establish a Bluetooth connection when both the IOS terminal device and the Android interconnected device turn on the Bluetooth function.

[0107] In some embodiments, when the Bluetooth function of both the IOS terminal device and the Android connected device is turned on, the Android connected device generally sends a second BLE broadcast corresponding to the IOS terminal device. When the IOS terminal device scans the second BLE broadcast sent by the Android connected device, the IOS terminal device can send a Bluetooth connection request to the Android connected device based on the second BLE broadcast. When the Android connected device receives the Bluetooth connection request, it establishes a Bluetooth connection with the IOS terminal device.

[0108] In some embodiments, when the IOS terminal device has not yet been bound to the Android connected device, the IOS terminal device can search for Bluetooth broadcast signals sent by surrounding Bluetooth devices, and provide a third binding interface for the searched Bluetooth devices through a second application to guide the user to select the Android connected device to be bound through the third binding interface, thereby achieving binding of the IOS terminal device and the Android connected device.

[0109] In some embodiments, when the IOS terminal device has not been bound to the Android interconnected device, a third application may be installed in the Android interconnected device. In response to the binding operation triggered by the user, the Android interconnected device may search for Bluetooth broadcast signals sent by surrounding Bluetooth devices, and provide a fourth binding interface of the searched Bluetooth devices through the third application to guide the user to select the IOS terminal device to be bound through the fourth binding interface, thereby implementing the binding of the IOS terminal device and the Android interconnected device. The binding operation may include inputting a voice command to bind the Bluetooth device, or clicking a button to bind the Bluetooth device.

[0110] Through this embodiment, when the IOS terminal device has not established a Bluetooth connection with the Android interconnected device, a second message can be sent to the IOS terminal device so that the IOS terminal device establishes a Bluetooth connection with the Android interconnected device.

[0111] In this embodiment, the IOS interconnected device determines that the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with the Android interconnected device, which can provide a communication basis for the subsequent IOS interconnected device to perform Bluetooth communication with the Android interconnected device through the IOS terminal device.

[0112] Step 502, assisting the IOS interconnected device and the Android interconnected device to perform Bluetooth communication.

[0113] In this embodiment, the IOS interconnected device communicates with the Android interconnected device via Bluetooth through the IOS terminal device, so that the IOS interconnected device and the Android interconnected device can control each other.

[0114] Through this embodiment, the IOS terminal device, when establishing Bluetooth connections with the IOS interconnected device and the Android interconnected device respectively, assists the IOS interconnected device and the Android interconnected device to communicate with each other through Bluetooth, thereby realizing the control of the Android interconnected device by the IOS interconnected device and improving the user experience.

[0115] In some embodiments, assisting the IOS interconnected device and the Android interconnected device to perform Bluetooth communication may include: assisting the IOS interconnected device to establish a Bluetooth connection with the Android interconnected device.

[0116] In this embodiment, if Figure 3 As shown, when the IOS interconnected device establishes a Bluetooth connection with the Android interconnected device through the IOS terminal device, the IOS interconnected device can directly interact with the Android interconnected device through the Bluetooth connection between the IOS interconnected device and the Android interconnected device.

[0117] In some embodiments, the Android interconnected device may send a first BLE broadcast corresponding to the iOS interconnected device, or a second BLE broadcast corresponding to the iOS terminal device. The first BLE broadcast and the second BLE broadcast have different contents.

[0118] Under normal circumstances, the Android interconnected device sends a second BLE broadcast corresponding to the IOS terminal device. The IOS interconnected device scans the second BLE broadcast sent by the Android interconnected device, does not process the second BLE broadcast, and cannot directly establish a Bluetooth connection with the Android interconnected device according to the second BLE broadcast. Therefore, the IOS interconnected device can establish a Bluetooth connection with the Android interconnected device through the IOS terminal device.

[0119] In some embodiments, assisting an iOS connected device to establish a Bluetooth connection with an Android connected device may include: receiving a first message sent by the iOS connected device, sending the first message to the Android connected device, so that the Android connected device sends a BLE broadcast that can be scanned by the iOS connected device, so that the iOS connected device initiates a Bluetooth connection to the Android connected device according to the BLE broadcast of the Android connected device.

[0120] In this embodiment, the IOS interconnected device may send a first message to the IOS terminal device, and the IOS terminal device forwards the first message to the Android interconnected device. Alternatively, the IOS interconnected device may send an instruction to the IOS terminal device to instruct the IOS terminal device to send the first message to the Android interconnected device, and the IOS terminal device sends the first message to the Android interconnected device in response to the instruction. When the Android interconnected device receives the first message, it sends a first BLE broadcast corresponding to the IOS interconnected device.

[0121] In some embodiments, the first message may also include an instruction for controlling the Android connected device to send a first BLE broadcast corresponding to the iOS connected device. In this way, when the Android connected device receives the first message, it may send the first BLE broadcast in response to the instruction in the first message for controlling the Android connected device to send the first BLE broadcast corresponding to the iOS connected device.

[0122] In some embodiments, after receiving the first message, the Android connected device can send a third message to the IOS connected device through the IOS terminal device, where the third message may include any one or more of the following: identification information of the Android connected device, MTU (Maximum Transmission Unit) of the Android connected device, encryption information of the Android connected device, and content of the first BLE broadcast.

[0123] In the embodiment where the third message includes any one or more of the identification information of the Android interconnected device and the content of the first BLE broadcast, it is convenient for the iOS interconnected device to establish a Bluetooth connection with the Android interconnected device more quickly according to the third message. In the embodiment where the third message includes any one or more of the MTU of the Android interconnected device and the encryption information of the Android interconnected device, it is convenient for the iOS interconnected device to subsequently exchange data with the Android interconnected device.

[0124] When the iOS interconnected device scans the first BLE broadcast sent by the Android interconnected device, it can process the first BLE broadcast and initiate a Bluetooth connection to the Android interconnected device according to the first BLE broadcast, so that the iOS interconnected device establishes a Bluetooth connection with the Android interconnected device.

[0125] In this embodiment, the IOS interconnected device initiates a Bluetooth connection to the Android interconnected device according to the first BLE broadcast, and may send a fourth message to the Android interconnected device according to the first BLE broadcast. The fourth message may include any one or more of the following: identification information of the IOS terminal device, identification information of the IOS interconnected device, name of the IOS interconnected device, company identification (company ID) of the IOS interconnected device, category identification (category ID) of the IOS interconnected device, model identification (model ID) of the IOS interconnected device, and battery information of the IOS interconnected device.

[0126] In the case where the fourth message includes any one or more of the identification information of the IOS terminal device, the identification information of the IOS interconnected device, the name of the IOS interconnected device, the company ID of the IOS interconnected device, and the category ID of the IOS interconnected device, it is convenient for the Android interconnected device to verify the IOS interconnected device according to the fourth message, and the Android interconnected device to establish a Bluetooth connection with the same IOS interconnected device, thereby establishing a Bluetooth connection with the IOS interconnected device more quickly. In the case where the fourth message includes the battery information of the IOS interconnected device, the battery information of the IOS interconnected device can be displayed through the Android interconnected device when the Android interconnected device establishes a Bluetooth connection with the IOS interconnected device, so that the user can view the battery information of the IOS interconnected device through the Android interconnected device.

[0127] When receiving the fourth message, the Android interconnected device verifies whether the IOS terminal device that establishes a Bluetooth connection with the IOS interconnected device and the IOS terminal device that establishes a Bluetooth connection with the Android interconnected device are the same based on the identification information of the IOS interconnected device and the identification information of the IOS terminal device. If the verification is successful, the fifth message indicating a successful connection is returned to the IOS interconnected device, wherein the fifth message may include any one or more of the following: identification information of the Android interconnected device and device information of the Android interconnected device. The identification information may be a Bluetooth MAC address, and the device information may include any one or more of the device name, model, and serial number.

[0128] Through this embodiment, the iOS interconnected device can more quickly scan the first BLE broadcast sent by the Android interconnected device, and then more quickly establish a Bluetooth connection with the Android interconnected device.

[0129] In some embodiments, assisting an iOS interconnected device and an Android interconnected device to perform Bluetooth communication includes: receiving a communication message sent by an iOS interconnected device; in response to a receiving target of the communication message being an Android interconnected device, parsing the communication message, and sending the parsed communication message to the Android interconnected device, so that the Android interconnected device performs an operation corresponding to the communication message according to the parsed communication message.

[0130] In this embodiment, if Figure 4 As shown, there is no Bluetooth connection between the IOS interconnected device and the Android interconnected device. The IOS interconnected device can interact with the Android interconnected device indirectly through the Bluetooth connection between the IOS interconnected device and the IOS terminal device, and the Bluetooth connection between the IOS terminal device and the Android interconnected device.

[0131] In some embodiments, when an iOS interconnected device needs to interact with an Android interconnected device, the iOS interconnected device may send a communication message to an iOS terminal device; when the receiving target of the communication message is an Android interconnected device, the iOS terminal device forwards the communication message to the Android interconnected device, so that the Android interconnected device performs an operation corresponding to the communication message.

[0132] In some embodiments, the data processing capability of the IOS terminal device is stronger, while the data processing capability of the IOS interconnected device is weaker. Then, when the IOS interconnected device needs to interact with the Android interconnected device, the IOS interconnected device may send a communication message to the IOS terminal device. When the receiving target of the communication message is the Android interconnected device, the IOS terminal device parses the communication message and sends the parsed communication message to the Android interconnected device, so that the Android interconnected device performs an operation corresponding to the communication message according to the parsed communication message.

[0133] Through this embodiment, the IOS interconnected device can achieve more complex control over the Android interconnected device.

[0134] Figure 6 FIG. 1 is a flow chart of a Bluetooth communication method provided according to an embodiment of the present disclosure. Figure 6 As shown, the method may include:

[0135] Step 601: In response to the first application program of the IOS interconnected device being started, the IOS interconnected device detects whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device.

[0136] Step 602: In response to the IOS interconnected device not establishing a Bluetooth connection with the IOS terminal device, the IOS interconnected device wakes up the second application of the IOS terminal device.

[0137] Step 603: The IOS terminal device establishes a Bluetooth connection with the IOS interconnected device.

[0138] Step 604: The IOS interconnected device determines that the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device.

[0139] Step 605: The iOS interconnected device sends a first query message to the iOS terminal device, where the first query message is used to confirm whether the iOS terminal device has established a Bluetooth connection with the Android interconnected device.

[0140] Step 606: The iOS terminal device detects whether a Bluetooth connection is established between the iOS terminal device and the Android interconnected device based on the first query message.

[0141] Step 607: When the iOS terminal device detects that a Bluetooth connection is established between the iOS terminal device and the Android interconnected device, the iOS terminal device returns a confirmation response of the first query message to the iOS interconnected device.

[0142] Step 608: The iOS interconnected device determines that a Bluetooth connection is established between the iOS terminal device and the Android interconnected device in response to receiving a confirmation response to the first query message.

[0143] Step 609: When the iOS terminal device detects that the Bluetooth connection between the iOS terminal device and the Android interconnected device has not been established, the iOS terminal device returns a negative response to the first query message to the iOS interconnected device.

[0144] Step 610: In response to receiving a negative response to the first query message, the iOS interconnected device determines that the iOS terminal device has not established a Bluetooth connection with the Android interconnected device.

[0145] Step 611: In response to determining that the iOS terminal device has not established a Bluetooth connection with the Android interconnected device, the iOS interconnected device sends a second message to the iOS terminal device.

[0146] Step 612: The IOS terminal device establishes a Bluetooth connection with the Android interconnected device according to the second message.

[0147] After executing step 611, the iOS interconnected device may execute step 605 again after a set time to determine whether the iOS terminal device has established a Bluetooth connection with the Android interconnected device. The set time may be set in advance according to an application scenario or specific requirements. For example, the set time may be 10ms.

[0148] Figure 7 FIG. 1 is a flow chart of a Bluetooth communication method provided according to an embodiment of the present disclosure. Figure 7 As shown, the method may include:

[0149] Step 701: The IOS interconnected device sends a first message to the IOS terminal device.

[0150] Step 702: The iOS terminal device forwards the first message to the Android interconnected device.

[0151] Step 703: In response to receiving the first message, the Android interconnected device sends a first BLE broadcast corresponding to the iOS interconnected device.

[0152] Step 704: The iOS interconnected device scans the first BLE broadcast sent by the Android interconnected device.

[0153] Step 705: In response to scanning a first BLE broadcast sent by an Android connected device, the iOS connected device initiates a Bluetooth connection to the Android connected device according to the first BLE broadcast.

[0154] Step 706: The Android interconnected device establishes a Bluetooth connection with the IOS interconnected device.

[0155] Step 707: The iOS interconnected device sends a communication message to the Android interconnected device via the Bluetooth connection between the iOS interconnected device and the Android interconnected device.

[0156] Step 708: The Android interconnected device executes an operation corresponding to the communication message.

[0157] Figure 8 FIG. 1 is a flow chart of a Bluetooth communication method provided according to an embodiment of the present disclosure. Figure 8 As shown, the method may include:

[0158] Step 801: The IOS interconnected device sends a communication message to the IOS terminal device.

[0159] Step 802: In response to the fact that the receiving target of the communication message is an Android interconnected device, the iOS terminal device forwards the communication message to the Android interconnected device.

[0160] Step 803: the Android interconnected device executes an operation corresponding to the communication message.

[0161] This embodiment provides an electronic device 700, such as Fig. 9 As shown, it includes a processor 710 and a memory 720, the memory 720 is used to store a computer program, and the processor 710 is used to run the computer program to enable the method described in any embodiment of the present disclosure to be executed.

[0162] The processor 710 is used to execute computer instructions, which can be written in an instruction set of an architecture such as x83, Arm, RISC, MIPS, SSE, etc. The memory 720 includes, for example, ROM (read-only memory), RAM (random access memory), a non-volatile memory such as a hard disk, etc., which are not limited here.

[0163] For example, Fig.10 As shown, the electronic device 800 can be a mobile terminal such as a mobile phone, which includes but is not limited to: a communication module 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809 and at least some of the components of the processor 810.

[0164] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.10 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0165] It should be understood that in the embodiment of the present disclosure, the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of a static picture or video obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0166] In some embodiments, after receiving the first audio signal, the communication module 801 may transmit the first audio signal to the processor 810 for processing. The processor 810 may also send the sound signal collected by the microphone through the communication module 801.

[0167] In the disclosed embodiment, the network module 802 can perform wireless communication. Specifically, the network module 802 may include at least one short-range communication module, such as any module for short-range wireless communication based on short-range wireless communication protocols such as Hi-link protocol, Wi-Fi (IEEE 802.11 protocol), Mesh, Bluetooth, ZigBee, Thread, Z-Wave, NFC, UWB, Li-Fi, etc. The network module 802 may also include a remote communication module, such as any module for WLAN, GPRS, 2G / 3G / 6G / 5G remote communication.

[0168] The sensor 805 may include, for example, a distance sensor, wherein the distance sensor is used to detect a first distance between the electronic device and the user's body, and transmit the first distance to the processor 610 for processing.

[0169] The memory 809 can be used to store software programs or instructions and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instruction required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDR AM), a double data rate synchronous dynamic random access memory (DDR SDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present disclosure includes but is not limited to these and any other suitable types of memory.

[0170] The processor 810 may include one or more processing units; optionally, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.

[0171] It should be noted here that the electronic device provided by the embodiment of the present disclosure can implement all the method steps implemented by any of the above-mentioned method embodiments, and can achieve the same technical effects. The parts and beneficial effects of this embodiment that are the same as the method embodiment will not be described in detail here.

[0172] This embodiment provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a processor, the method described in any embodiment of the present disclosure is implemented.

[0173] The present disclosure may be a system, a method and / or a computer program product. The computer program product may include a computer-readable storage medium carrying computer-readable program instructions for causing a processor to implement various aspects of the present disclosure.

[0174] A computer-readable storage medium may be a tangible device that can hold and store instructions used by an instruction execution device. A computer-readable storage medium may be, for example, but not limited to, an electrical storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. More specific examples of computer-readable storage media (a non-exhaustive list) include: a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), a static random access memory (SRAM), a portable compact disk read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanical encoding device, such as a punch card or a raised structure in a groove on which instructions are stored, and any suitable combination of the foregoing. As used herein, a computer-readable storage medium is not to be interpreted as a transient signal per se, such as a radio wave or other freely propagating electromagnetic wave, an electromagnetic wave propagating through a waveguide or other transmission medium (e.g., a light pulse through a fiber optic cable), or an electrical signal transmitted through a wire.

[0175] The computer-readable program instructions described herein can be downloaded from a computer-readable storage medium to each computing / processing device, or downloaded to an external computer or external storage device via a network, such as the Internet, a local area network, a wide area network, and / or a wireless network. The network can include copper transmission cables, optical fiber transmissions, wireless transmissions, routers, firewalls, switches, gateway computers, and / or edge servers. The network adapter card or network interface in each computing / processing device receives the computer-readable program instructions from the network and forwards the computer-readable program instructions for storage in the computer-readable storage medium in each computing / processing device.

[0176] The computer program instructions for performing the operation of the present disclosure may be assembly instructions, instruction set architecture (ISA) instructions, machine instructions, machine-related instructions, microcode, firmware instructions, state setting data, or source code or object code written in any combination of one or more programming languages, including object-oriented programming languages, such as Smalltalk, C++, etc., and conventional procedural programming languages, such as "C" language or similar programming languages. Computer-readable program instructions may be executed completely on a user's computer, partially on a user's computer, as an independent software package, partially on a user's computer, partially on a remote computer, or completely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., using an Internet service provider to connect via the Internet). In some embodiments, an electronic circuit, such as a programmable logic circuit, a field programmable gate array (FPGA), or a programmable logic array (PLA), may be customized by utilizing the state information of the computer-readable program instructions, and the electronic circuit may execute the computer-readable program instructions, thereby realizing various aspects of the present disclosure.

[0177] Various aspects of the present disclosure are described herein with reference to the flowcharts and / or block diagrams of the methods, devices (systems) and computer program products according to the embodiments of the present disclosure. It should be understood that each box in the flowchart and / or block diagram and the combination of each box in the flowchart and / or block diagram can be implemented by computer-readable program instructions.

[0178] These computer-readable program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, thereby producing a machine, so that when these instructions are executed by the processor of the computer or other programmable data processing device, a device that implements the functions / actions specified in one or more boxes in the flowchart and / or block diagram is generated. These computer-readable program instructions can also be stored in a computer-readable storage medium, and these instructions cause the computer, programmable data processing device, and / or other equipment to work in a specific manner, so that the computer-readable medium storing the instructions includes a manufactured product, which includes instructions for implementing various aspects of the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0179] Computer-readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device so that a series of operating steps are performed on the computer, other programmable data processing apparatus, or other device to produce a computer-implemented process, thereby causing the instructions executed on the computer, other programmable data processing apparatus, or other device to implement the functions / actions specified in one or more boxes in the flowchart and / or block diagram.

[0180] The flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the systems, methods and computer program products according to multiple embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of an instruction, and the module, a program segment or a part of an instruction contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in a different order from the order marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or the flowchart, and the combination of the boxes in the block diagram and / or the flowchart can be implemented by a dedicated hardware-based system that performs the specified function or action, or can be implemented by a combination of dedicated hardware and computer instructions. It is well known to those skilled in the art that it is equivalent to implement it by hardware, implement it by software, and implement it by combining software and hardware.

[0181] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or technical improvements in the marketplace, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein. The scope of the present disclosure is defined by the appended claims.

Claims

1. A Bluetooth communication method for an electronic device, wherein: Applied to IOS interconnected devices, including: Determine that the IOS interconnected device establishes a Bluetooth connection with the IOS terminal device, and the IOS terminal device establishes a Bluetooth connection with the Android interconnected device; Bluetooth communication is performed between the IOS terminal device and the Android interconnected device.

2. The method according to claim 1, wherein: The Bluetooth communication between the IOS terminal device and the Android interconnected device includes: Establishing a Bluetooth connection between the IOS terminal device and the Android interconnected device; Communicate with the Android interconnected device through the Bluetooth connection between the IOS interconnected device and the Android interconnected device.

3. The method according to claim 2, wherein: The establishing of a Bluetooth connection between the IOS terminal device and the Android interconnected device includes: Sending a first message to the Android interconnected device through the IOS terminal device, so that the Android interconnected device sends a first BLE broadcast corresponding to the IOS interconnected device; Scan the first BLE broadcast sent by the Android connected device; In response to scanning a first BLE broadcast of the Android connected device, a Bluetooth connection is initiated to the Android connected device according to the first BLE broadcast.

4. The method according to claim 3, wherein: Determining that the IOS terminal device establishes a Bluetooth connection with the Android interconnected device includes: Sending a first query message to the IOS terminal device, where the first query message is used to confirm whether the IOS terminal device has established a Bluetooth connection with the Android interconnected device; In response to receiving a confirmation response to the first query message, determining that the iOS terminal device is connected to the Android interconnected device, the confirmation response to the first query message including identification information of the Android interconnected device; The scanning of the first BLE broadcast sent by the Android connected device includes: The first BLE broadcast sent by the Android interconnected device is scanned according to the identification information of the Android interconnected device.

5. The method according to claim 1, wherein: The communicating with the Android interconnected device through the IOS terminal device includes: A communication message is sent to the IOS terminal device, and the IOS terminal device is used to forward the communication message to the Android interconnected device in response to the receiving target of the communication message being the Android interconnected device.

6. The method according to claim 5, wherein: Determining that the IOS terminal device establishes a Bluetooth connection with the Android interconnected device includes: Sending a first query message to the IOS terminal device, where the first query message is used to confirm whether the IOS terminal device has established a Bluetooth connection with the Android interconnected device; In response to receiving a confirmation response to the first query message, determining that the iOS terminal device has established a Bluetooth connection with the Android interconnected device, the confirmation response to the first query message including identification information of the Android interconnected device; Before sending the communication message to the IOS terminal device, the method further includes: The communication message is generated, wherein, when the receiving target of the communication message is an Android interconnected device, the communication message further includes identification information of the Android interconnected device.

7. The method according to claim 1, wherein: The method further comprises: In response to the first application of the IOS interconnected device being started, detecting whether the IOS interconnected device has established a Bluetooth connection with the IOS terminal device, wherein the first application is an application for communicating with the Android interconnected device; In response to the IOS interconnected device not establishing a Bluetooth connection with the IOS terminal device, a second application of the IOS terminal device is awakened to establish a Bluetooth connection between the IOS terminal device and the IOS interconnected device, wherein the second application is an application for communicating with the Android interconnected device.

8. The method according to claim 1, wherein: The method further comprises: In response to the IOS interconnected device establishing a Bluetooth connection with the IOS terminal device, detecting whether a second application of the IOS terminal device is turned on; In response to the second application being not started, waking up the second application.

9. A communication method for an electronic device, wherein: Applied to IOS terminal devices, including: Establish Bluetooth connections with IOS connected devices and Android connected devices respectively; Assist the IOS interconnected device and the Android interconnected device to perform Bluetooth communication.

10. An electronic device, wherein: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and the computer program is used to control the processor to execute the method according to any one of claims 1 to 9.

11. A computer-readable storage medium having a computer program stored thereon, wherein the computer program implements the method according to any one of claims 1 to 9 when executed by a processor.