Wireless communication connection establishment method and device, terminal, storage medium and product

By introducing a second frequency hopping sequence during Bluetooth connection, the problem of low frequency matching probability is solved, and faster wireless communication connection establishment is achieved.

CN120379068APending Publication Date: 2025-07-25GUANGDONG OPPO MOBILE TELECOMMUNICATIONS CORP LTD
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510592848.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-08
Publication Date
2025-07-25

AI Technical Summary

Technical Problem

During the existing Bluetooth connection process, the probability of frequency matching between the initiator and the connected party is low, resulting in a longer time to establish a wireless communication connection and taking longer.

Method used

The second frequency hopping sequence is added on the basis of the first frequency hopping sequence. The second frequency hopping sequence includes a number of frequency points less than the first frequency hopping sequence. Frequency point matching is performed by the target frequency points in the second frequency hopping sequence or the target frequency points of the first frequency hopping sequence and the second frequency hopping sequence to improve the probability of frequency point matching.

Benefits of technology

It improves the establishment speed of wireless communication connections, reduces the paging scanning cycle, and improves the connection efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120379068A_ABST
    Figure CN120379068A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a wireless communication connection establishment method and device, a terminal, a storage medium and a product, and belongs to the technical field of wireless communication. The method is used for a first terminal and comprises the following steps: executing message scanning operation; under the condition that the first broadcast message is scanned, a first frequency hopping sequence and a second frequency hopping sequence are determined, the first frequency hopping sequence comprises a plurality of first frequency points, the second frequency hopping sequence comprises at least one second frequency point, and the number of the second frequency points is smaller than that of the first frequency points; and initiating a connection request to a second terminal broadcasting the first broadcast message based on a second frequency hopping sequence, a second target frequency point in the second frequency hopping sequence being used for the second terminal to monitor the connection request, or initiating a connection request to the second terminal broadcasting the first broadcast message based on the first frequency hopping sequence and the second frequency hopping sequence, a first target frequency point in the first frequency hopping sequence and a second target frequency point in the second frequency hopping sequence are used for the second terminal to monitor the connection request.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] Embodiments of the present application relate to the field of wireless communication technologies, and in particular, to a method, apparatus, terminal, storage medium, and product for establishing a wireless communication connection. Background Art

[0002] There are two roles for devices during the process of establishing a Bluetooth connection, namely the initiator (Central) and the connected party (Peripheral). When the initiator sends a Bluetooth connection request to the connected party, the Bluetooth connection request is sent based on a hopping sequence. That is, when the initiator sends a Bluetooth connection request to the connected party, the Bluetooth connection request is successively sent on the channels corresponding to 32 frequency points. When the frequency point at which the initiator sends the Bluetooth connection request is the same as the frequency point at which the connected party listens for the Bluetooth connection request, a Bluetooth connection is successfully established between the initiator and the connected party. Summary of the Invention

[0003] Embodiments of the present application provide a method, apparatus, terminal, storage medium, and product for establishing a wireless communication connection. The technical solutions are as follows:

[0004] On the one hand, embodiments of the present application provide a method for establishing a wireless communication connection, which is used for a first terminal, and the method includes:

[0005] Perform a message scanning operation;

[0006] When a first broadcast message is scanned, determine a first hopping sequence and a second hopping sequence, where the first hopping sequence includes a plurality of first frequency points, the second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points;

[0007] Based on the second hopping sequence, send a connection request to a second terminal that broadcasts the first broadcast message, where the connection request is used to request to establish a wireless communication connection with the second terminal, and the second target frequency point in the second hopping sequence is used for the second terminal to listen for the connection request, or

[0008] Based on the first hopping sequence and the second hopping sequence, send a connection request to a second terminal that broadcasts the first broadcast message, where the connection request is used to request to establish a wireless communication connection with the second terminal, and the first target frequency point in the first hopping sequence and the second target frequency point in the second hopping sequence are used for the second terminal to listen for the connection request.

[0009] On the other hand, embodiments of the present application provide a method for establishing a wireless communication connection, which is used for a second terminal, and the method includes:

[0010] Broadcast a first broadcast message, where the first broadcast message is used to trigger a first terminal that scans the first broadcast message to initiate a connection request to the second terminal, and the connection request is used to request to establish a wireless communication connection with the second terminal;

[0011] Determine a first frequency hopping sequence and a second frequency hopping sequence, where the first frequency hopping sequence includes a plurality of first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points;

[0012] Determine a second target frequency point from the second frequency hopping sequence, and based on the second target frequency point, monitor the connection request initiated by the second terminal; or

[0013] Determine a first target frequency point from the first frequency hopping sequence and a second target frequency point from the second frequency hopping sequence, and based on the first target frequency point and the second target frequency point, monitor the connection request initiated by the second terminal.

[0014] On the other hand, an embodiment of the present application provides a device for establishing a wireless communication connection. The device is deployed on a first terminal, and the device includes:

[0015] An execution module, configured to perform a message scanning operation;

[0016] A first determination module, configured to determine a first frequency hopping sequence and a second frequency hopping sequence when a first broadcast message is scanned. The first frequency hopping sequence includes a plurality of first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points;

[0017] A first initiation module, configured to initiate a connection request to a second terminal that broadcasts the first broadcast message based on the second frequency hopping sequence. The connection request is used to request to establish a wireless communication connection with the second terminal, and the second target frequency point in the second frequency hopping sequence is used for the second terminal to monitor the connection request; or

[0018] A first initiation module, configured to initiate a connection request to a second terminal that broadcasts the first broadcast message based on the first frequency hopping sequence and the second frequency hopping sequence. The connection request is used to request to establish a wireless communication connection with the second terminal, and the first target frequency point in the first frequency hopping sequence and the second target frequency point in the second frequency hopping sequence are used for the second terminal to monitor the connection request.

[0019] On the other hand, an embodiment of the present application provides a device for establishing a wireless communication connection. The device is deployed on a second terminal, and the device includes:

[0020] A broadcast module, configured to broadcast a first broadcast message, where the first broadcast message is used to trigger a first terminal that scans the first broadcast message to initiate a connection request to the second terminal, and the connection request is used to request to establish a wireless communication connection with the second terminal;

[0021] A fifth determination module, configured to determine a first frequency hopping sequence and a second frequency hopping sequence, where the first frequency hopping sequence includes a plurality of first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of the second frequency points is less than the number of the first frequency points;

[0022] A sixth determination module, configured to determine a second target frequency point from the second frequency hopping sequence, or determine a first target frequency point from the first frequency hopping sequence, and determine a second target frequency point from the second frequency hopping sequence;

[0023] A first listening module, configured to listen for the connection request initiated by the second terminal based on the second target frequency point, or listen for the connection request initiated by the second terminal based on the first target frequency point and the second target frequency point.

[0024] On the other hand, an embodiment of the present application provides a terminal, where the terminal includes a processor and a memory, and at least one computer instruction is stored in the memory, and the at least one computer instruction is loaded and executed by the processor to implement the method for establishing a wireless communication connection as described in the above aspect.

[0025] On the other hand, an embodiment of the present application provides a chip, where the chip includes a programmable logic circuit and / or program instructions, and when the chip runs on a terminal device, the chip is used to implement the method for establishing a wireless communication connection as described in the above aspect.

[0026] On the other hand, an embodiment of the present application provides a computer-readable storage medium, where the computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the method for establishing a wireless communication connection as described in the above aspect.

[0027] On the other hand, an embodiment of the present application provides a computer program product, where the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method for establishing a wireless communication connection as described in the above aspect.

[0028] In an embodiment of the present application, the first terminal adds a second frequency hopping sequence on the basis of the first frequency hopping sequence; since the number of second frequency points included in the second frequency hopping sequence is less than the number of first frequency points included in the first frequency hopping sequence, when the second terminal listens for connection requests based on the second target frequency points in the second frequency hopping sequence, or listens for connection requests based on the first target frequency points in the first frequency hopping sequence and the second target frequency points in the second frequency hopping sequence, it is likely that the frequency points at which the first terminal initiates connection requests are the same as the frequency points at which the second terminal listens for connection requests. Furthermore, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer number of paging scan cycles, thus improving the establishment speed of the wireless communication connection. Description of the Drawings

[0029] Figure 1 is a schematic diagram of an implementation environment of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0030] Figure 2 is a schematic diagram of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0031] Figure 3 is a schematic diagram of a frequency hopping sequence for a first terminal to initiate a connection request in the related art shown in an exemplary embodiment of the present application;

[0032] Figure 4 is a schematic diagram of a frequency hopping sequence for a second terminal to listen for a connection request in the related art shown in an exemplary embodiment of the present application;

[0033] Figure 5 is a flowchart of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0034] Figure 6 is a schematic diagram of a frequency hopping sequence for a first terminal to initiate a connection request shown in an exemplary embodiment of the present application;

[0035] Figure 7 is a flowchart of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0036] Figure 8 is a schematic diagram of a frequency hopping sequence for a second terminal to listen for a connection request shown in an exemplary embodiment of the present application;

[0037] Figure 9 is a flowchart of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0038] Figure 10 is a flowchart of negotiating the C sequence shown in an exemplary embodiment of the present application;

[0039] Figure 11 It is a schematic diagram of the hopping sequence for the first terminal to initiate a connection request and a schematic diagram of the hopping sequence for the second terminal to monitor the connection request shown in an exemplary embodiment of the present application;

[0040] Figure 12 It is a flowchart of a method for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0041] Figure 13 It is a block diagram of a device for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0042] Figure 14 It is a block diagram of a device for establishing a wireless communication connection shown in an exemplary embodiment of the present application;

[0043] Figure 15 It is a block diagram of a terminal shown in an exemplary embodiment of the present application. Detailed implementation manners

[0044] To make the objectives, technical solutions and advantages of the present application clearer, the embodiments of the present application will be further described in detail below with reference to the accompanying drawings.

[0045] As used herein, "a plurality of" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone. The character " / " generally represents an "or" relationship between the associated objects before and after.

[0046] It should be noted that the information (including but not limited to user equipment information, user personal information, etc.), data (including but not limited to data for analysis, stored data, displayed data, etc.) and signals involved in the present application are all authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data need to comply with the relevant laws, regulations and standards of relevant countries and regions. For example, the monitoring capability information involved in the present application is obtained under full authorization.

[0047] Please refer to Figure 1, which shows a schematic diagram of an implementation environment of a method for establishing a wireless communication connection provided by an exemplary embodiment of the present application. The implementation environment includes: a first terminal 101 and a second terminal 102, both of which have a wireless communication function, and the first terminal 101 and the second terminal 102 establish a wireless communication connection through the wireless communication function, and then transmit data through the wireless communication connection. The wireless communication function includes but is not limited to a Bluetooth function and a Wireless Fidelity (WiFi) function. The Bluetooth function can be a Bluetooth Low Energy (BLE) function or a classic Bluetooth function.

[0048] In the embodiment of the present application, the first terminal 101 is used as the initiator of establishing a wireless communication connection, and the second terminal 102 is used as the connected party of the wireless communication connection. Figure 2 , the second terminal 102 is used to send a first broadcast message, the first terminal 101 is used to perform a message scanning operation, and when the first terminal 101 scans the first broadcast message of the second terminal 102, it initiates a connection request to the second terminal 102 in the first time slot, and the connection request carries the device identification (ID) of the first terminal 101, so the connection request can also be called an ID packet. The second terminal 102 is used to monitor the connection request, and after monitoring the connection request of the first terminal 101, it needs to send a Bluetooth connection response to the first terminal 101 in the second time slot, and then a wireless communication connection is established between the first terminal 101 and the second terminal 102.

[0049] For example, see Figure 3 When the first terminal 101 initiates a connection request to the second terminal 102, the first terminal 101 initiates a Bluetooth connection request based on the first frequency hopping sequence, and the first frequency hopping sequence includes a first frequency hopping subsequence (in Figure 3 In the example of frequency hopping sequence A) and the second frequency hopping subsequence (in Figure 3 In the figure, taking the frequency hopping sequence B as an example, the first frequency hopping subsequence includes 16 frequency points, and the second frequency hopping subsequence also includes 16 frequency points. That is, when the first terminal 101 initiates a connection request to the second terminal 102, it initiates a connection request on the channels corresponding to the 16 frequency points in the first frequency hopping subsequence and the channels corresponding to the 16 frequency points in the second frequency hopping subsequence in sequence.

[0050] For example, see Figure 4, the second terminal 102 performs a listening operation every other paging scan period, and within the paging scan window of each paging scan period, it listens for connection requests on the channels corresponding to one frequency point in the first frequency hopping sub-sequence (a frequency point in the frequency hopping sequence A, referred to as frequency point A) and on the channels corresponding to one frequency point in the second frequency hopping sub-sequence (a frequency point in the frequency hopping sequence B, referred to as frequency point B). Only when the frequency point at which the first terminal 101 initiates a connection request is the same as the frequency point at which the second terminal 102 listens for connection requests can a wireless communication connection be successfully established between the first terminal 101 and the second terminal 102.

[0051] However, since the first frequency hopping sequence includes 32 frequency points, and the second terminal 102 listens for connection requests on the channels corresponding to two frequency points within each paging period, the probability that the frequency point at which the first terminal 101 initiates a connection request is the same as the frequency point at which the second terminal 102 listens for connection requests is relatively low. As a result, the probability of successfully establishing a wireless communication connection within one paging scan window is relatively low, that is, it may take multiple paging scan periods to successfully establish a wireless communication connection, and the time taken to establish a wireless communication connection is relatively long.

[0052] In the embodiment of the present application, a second frequency hopping sequence is added on the basis of the first frequency hopping sequence. The first frequency hopping sequence includes multiple first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points; the second terminal 102 selects a second target frequency point from the second frequency hopping sequence, or selects a first target frequency point from the first frequency hopping sequence and a second target frequency point from the second frequency hopping sequence, and listens for the connection request of the first terminal 101 based on the second target frequency point, or listens for the connection request of the first terminal 101 based on the first target frequency point and the second target frequency point. Since the number of second frequency points included in the second frequency hopping sequence is small, the probability that the frequency point at which the first terminal 101 initiates a connection request is the same as the frequency point at which the second terminal 102 listens for connection requests is relatively large. As a result, the second terminal 102 may successfully establish a wireless communication connection with the first terminal 101 within fewer paging scan periods, improving the establishment speed of the wireless communication connection.

[0053] The first terminal 101 may be a wearable device or a vehicle-mounted terminal with wireless communication functions, etc.; the second terminal 102 may be a smart phone, a tablet computer or a wearable device with wireless communication functions, etc. In the embodiment of the present application, the case where the first terminal 101 is an external device of the second terminal 102 is taken as an example for illustration; for example, the second terminal 102 is a smart phone, and the first terminal 101 is a Bluetooth headset or a Bluetooth microphone, etc.

[0054] Please refer to Figure 5, which shows a flowchart of a method for establishing a wireless communication connection provided by an exemplary embodiment of the present application. This method is used for a first terminal, and the method may include the following steps:

[0055] Step 501: The first terminal performs a message scanning operation.

[0056] The wireless communication connection can be a Bluetooth communication connection or a WiFi communication connection; correspondingly, when the Bluetooth function of the first terminal is turned on, the first terminal performs a scanning operation on Bluetooth messages; when the WiFi function of the first terminal is turned on, the first terminal performs a scanning operation on WiFi messages.

[0057] Step 502: When the first broadcast message of the second terminal is scanned, the first terminal determines a first hopping sequence and a second hopping sequence. The first hopping sequence includes a plurality of first frequency points, the second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points.

[0058] The first hopping sequence is a sequence corresponding to a preset number of first frequency points specified by the wireless communication protocol; and, the number of first frequency points included in the first hopping sequence can be set and changed as needed. In the embodiments of the present application, the number of first frequency points is not specifically limited; for example, the first frequency points can be 32. And, the first hopping sequence can include a plurality of hopping sequences, and the sum of the number of first frequency points included in each hopping sequence is the number of first frequency points included in the first hopping sequence; by way of example, the first hopping sequence includes a first hopping sub-sequence and a second hopping sub-sequence, and the sum of the number of first frequency points included in the first hopping sub-sequence and the number of first frequency points included in the second hopping sub-sequence is the number of first frequency points included in the first hopping sequence; for example, please refer to Figure 6 , the first hopping sub-sequence includes 16 first frequency points, and the second hopping sub-sequence includes 16 first frequency points.

[0059] The second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points. The second hopping sequence can be customized; therefore, the second hopping sequence can also be referred to as a customized hopping sequence; and, the second hopping sequence is customized based on the first hopping sequence, that is, the second hopping sequence includes some of the frequency points in the first hopping sequence. The number of second frequency points included in the second hopping sequence can also be customized, that is, it can be customized as needed. By way of example, the number of second frequency points is less than the number of first frequency points included in the first hopping sub-sequence, that is, the number of second frequency points is less than 16; by way of example, the second hopping sequence includes 1 second frequency point, 2 second frequency points, 3 second frequency points, 4 second frequency points, 5 second frequency points, etc.; in the embodiments of the present application, the case where the second hopping sequence includes 3 second frequency points is taken as an example for description.

[0060] Step 503: the first terminal initiates a connection request to the second terminal that broadcasts the first broadcast message based on the second frequency hopping sequence, where the connection request is used to request to establish a wireless communication connection with the second terminal, and the second target frequency in the second frequency hopping sequence is used for the second terminal to monitor the connection request, or the first terminal initiates a connection request to the second terminal that broadcasts the first broadcast message based on the first frequency hopping sequence and the second frequency hopping sequence, where the connection request is used to request to establish a wireless communication connection with the second terminal, and the first target frequency in the first frequency hopping sequence and the second target frequency in the second frequency hopping sequence are used for the second terminal to monitor the connection request.

[0061] In a possible implementation, the step of the first terminal initiating a connection request to the second terminal based on the second frequency hopping sequence may be: the first terminal initiates a connection request to the second terminal based on the second frequency hopping sequence, and ends when the first terminal successfully establishes a wireless communication connection with the second terminal; when the first terminal fails to successfully establish a wireless communication connection with the second terminal, the first terminal initiates a connection request to the second terminal based on the second frequency hopping sequence until the first terminal successfully establishes a wireless communication connection with the second terminal.

[0062] The second frequency hopping sequence includes multiple second frequency points. For example, based on the second frequency hopping sequence, the first terminal sequentially initiates a connection request to the second terminal on a channel corresponding to each second frequency point included in the second frequency hopping sequence.

[0063] In another possible implementation, the step of the first terminal initiating a connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence may be: the first terminal first initiates a connection request to the second terminal based on the second frequency hopping sequence, and ends when the first terminal successfully establishes a wireless communication connection with the second terminal; when the first terminal fails to successfully establish a wireless communication connection with the second terminal, the first terminal initiates a connection request to the second terminal based on the first frequency hopping sequence.

[0064] The second frequency hopping sequence includes multiple second frequency points; in an example, the first terminal sequentially initiates a connection request to the second terminal on a channel corresponding to each second frequency point included in the second frequency hopping sequence based on the second frequency hopping sequence. The first frequency hopping sequence includes multiple first frequency points; in an example, the first terminal sequentially initiates a connection request to the second terminal on a channel corresponding to each first frequency point included in the first frequency hopping sequence based on the first frequency hopping sequence.

[0065] In one possible implementation, the connection request is a Bluetooth connection request; accordingly, the step of the first terminal initiating a connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence may be: the first terminal initiates a Bluetooth connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence, and the Bluetooth connection request is used to request to establish a Bluetooth communication connection with the second terminal.

[0066] In another possible implementation, the connection request is a WiFi connection request; correspondingly, the step of the first terminal initiating a connection request to the second terminal based on the first hopping sequence and the second hopping sequence may be: the first terminal initiates a WiFi connection request to the second terminal based on the first hopping sequence and the second hopping sequence, and the WiFi connection request is used to request to establish a WiFi communication connection with the second terminal.

[0067] In the embodiment of the present application, the first terminal adds a second hopping sequence on the basis of the first hopping sequence; since the number of second frequency points included in the second hopping sequence is less than the number of first frequency points included in the first hopping sequence, when the second terminal listens for connection requests based on the second target frequency points in the second hopping sequence, or based on the first target frequency points in the first hopping sequence and the second target frequency points in the second hopping sequence, it is easy to have a situation where the frequency points at which the first terminal initiates the connection request are the same as the frequency points at which the second terminal listens for the connection request. Furthermore, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer paging scan cycles, improving the establishment speed of the wireless communication connection.

[0068] Please refer to Figure 7 , which shows a flowchart of a method for establishing a wireless communication connection provided by an exemplary embodiment of the present application. This method is used for the second terminal and may include the following steps:

[0069] Step 701: The second terminal broadcasts a first broadcast message, and the first broadcast message is used to trigger the first terminal that scans the first broadcast message to initiate a connection request to the second terminal, and the connection request is used to request to establish a wireless communication connection with the second terminal.

[0070] The wireless communication connection may be a Bluetooth communication connection or a WiFi communication connection; correspondingly, when the second terminal enables the Bluetooth function, the second terminal sends a Bluetooth first broadcast message; when the second terminal enables the WiFi function, the second terminal sends a WiFi first broadcast message.

[0071] Step 702: The second terminal determines a first hopping sequence and a second hopping sequence. The first hopping sequence includes multiple first frequency points, the second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points.

[0072] The first frequency hopping sequence is a sequence corresponding to a preset number of first frequency points specified by a wireless communication protocol; moreover, the number of first frequency points included in the first frequency hopping sequence can be set and changed as needed, and in the embodiments of the present application, no specific limitation is imposed on the number of first frequency points; for example, the number of first frequency points can be 32. Also, the first frequency hopping sequence can include multiple frequency hopping sequences, and the sum of the numbers of first frequency points included in each frequency hopping sequence is the number of first frequency points included in the first frequency hopping sequence; by way of example, the first frequency hopping sequence includes

[0073] a first frequency hopping subsequence and a second frequency hopping subsequence, and the sum of the number of first frequency points included in the first frequency hopping subsequence and the number of first frequency points included in the second frequency hopping subsequence is the number of first frequency points included in the first frequency hopping sequence; for example, the first frequency hopping subsequence includes 16 first frequency points, and the second frequency hopping subsequence includes 16 first frequency points.

[0074] The second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points. The second frequency hopping sequence can be customized; thus, the second frequency hopping sequence can also be referred to as a customized frequency hopping sequence; moreover, the second frequency hopping sequence is customized based on the first frequency hopping sequence, that is, the second frequency hopping sequence includes some of the frequency points in the first frequency hopping sequence. The number of second frequency points included in the second frequency hopping sequence can also be customized, that is, it can be customized as needed. By way of example, the number of second frequency points is less than the number of first frequency points included in the first frequency hopping subsequence, that is, the number of second frequency points is less than 16; by way of example, the second frequency hopping sequence includes 1 second frequency point, 2 second frequency points, 3 second frequency points, 4 second frequency points, 5 second frequency points, etc.; in the embodiments of the present application, the case where the second frequency hopping sequence includes 3 second frequency points is taken as an example for illustration.

[0075] Step 703: The second terminal determines a second target frequency point from the second frequency hopping sequence and, based on the second target frequency point, listens for a connection request initiated by the second terminal; or the second terminal determines a first target frequency point from the first frequency hopping sequence and determines a second target frequency point from the second frequency hopping sequence, and based on the first target frequency point and the second target frequency point, listens for a connection request initiated by the second terminal.

[0076] In a possible implementation manner, the step for the second terminal to determine the second target frequency point from the second frequency hopping sequence can be: The second terminal determines the second target frequency point within the current paging scan period from at least one second frequency point based on the order of at least one second frequency point in the second frequency hopping sequence and the second target frequency point determined in the previous paging scan period. For example, the second frequency hopping sequence includes 3 second frequency points, namely second frequency point 1, second frequency point 2, and second frequency point 3, and the second target frequency point determined in the previous paging scan period is second frequency point 2, then the second target frequency point determined within the current paging scan period is second frequency point 3.

[0077] In another possible implementation, the step for the second terminal to determine the first target frequency point from the first frequency hopping sequence may be: Based on the order of multiple first frequency points in the first frequency hopping sequence and the first target frequency point determined in the previous paging scan period, the second terminal determines the first target frequency point in the current paging scan period from the multiple first frequency points. For example, the first frequency hopping sequence includes 32 first frequency points, namely the first frequency point 1, the first frequency point 2... the first frequency point 32, and the first target frequency point determined in the previous paging scan period is the first frequency point 5, then the first target frequency point determined in the current paging scan period is the first frequency point 6.

[0078] In a possible implementation, the first frequency hopping sequence includes a first frequency hopping subsequence and a second frequency hopping subsequence, then the number of first target frequency points is two, that is, the first target frequency points include a first target sub-frequency point and a second target sub-frequency point; correspondingly, the step for the second terminal to determine the first target frequency point from the first frequency hopping sequence may be: The second terminal determines the first target sub-frequency point from the first frequency hopping subsequence and determines the second target sub-frequency point from the second frequency hopping subsequence. By way of example, based on the order of multiple first frequency points included in the first frequency hopping subsequence and the first target sub-frequency point determined in the previous paging scan period, the second terminal determines the first target sub-frequency point in the current paging scan period from the first frequency hopping subsequence, and based on the order of multiple first frequency points included in the second frequency hopping subsequence and the second target sub-frequency point determined in the previous paging scan period, the second terminal determines the second target sub-frequency point in the current paging scan period from the second frequency hopping subsequence.

[0079] For example, the first frequency hopping subsequence includes 16 first frequency points, namely A1, A2, A3... A16; the second frequency hopping subsequence includes 16 first frequency points, namely B1, B2, B3... B16; the first target sub-frequency point determined in the previous paging scan period is A3, and the second target sub-frequency point determined in the previous paging scan period is B3, then the first target sub-frequency point determined in the current paging scan period is A4, and the second target sub-frequency point determined in the current paging scan period is B4.

[0080] In a possible implementation, the step for the second terminal to listen for a connection request initiated by the first terminal based on the second target frequency point may be: The second terminal listens for a connection request initiated by the first terminal on the channel corresponding to the second target frequency point. When a connection request is detected, based on the connection request, the second terminal establishes a wireless communication connection with the first terminal; when no connection request is detected, the second terminal re-determines the second target frequency point, and listens for a connection request initiated by the first terminal on the channel corresponding to the re-determined second target frequency point until a connection request is detected, and then based on the connection request, the second terminal establishes a wireless communication connection with the first terminal.

[0081] In another possible implementation, the steps for the second terminal to listen for a connection request initiated by the first terminal based on the first target frequency point and the second target frequency point may be as follows: The second terminal listens for the connection request initiated by the first terminal on the channel corresponding to the second target frequency point. When the connection request is detected, a wireless communication connection is established with the first terminal based on the connection request. When the connection request is not detected, the second terminal listens for the connection request initiated by the second terminal on the channels corresponding to the second target frequency point and the first target frequency point. Moreover, the listening time for the channel corresponding to the second target frequency point is earlier than the listening time for the channel corresponding to the first target frequency point, that is, the second terminal first listens for the connection request initiated by the second terminal on the channel corresponding to the second target frequency point, and then listens for the connection request initiated by the second terminal on the channel corresponding to the first target frequency point.

[0082] In the embodiments of the present application, since the number of second frequency points included in the second hopping sequence is less than the number of first frequency points included in the first hopping sequence; therefore, the probability that the second terminal and the first terminal select the same second frequency point is relatively high. Thus, by preferentially listening for the connection request initiated by the second terminal on the channel corresponding to the second target frequency point in the second hopping sequence, the probability that the frequency point of the connection request initiated by the first terminal is the same as the frequency point for the second terminal to listen for the connection request can be further increased, thereby further improving the establishment speed of the wireless communication connection.

[0083] For example, the first target frequency point includes a first target sub-frequency point and a second target sub-frequency point. The first target sub-frequency point determined by the second terminal in each paging scan period is simply referred to as frequency point A, the second target sub-frequency point is simply referred to as frequency point B, and the second target frequency point is simply referred to as frequency point C; then please refer to Figure 8 , the second terminal listens for the connection request initiated by the second terminal based on frequency point C, frequency point A, and frequency point B within the paging scan window in each paging scan period. Moreover, the first hopping sub-sequence includes 16 frequency points, and the second hopping sub-sequence includes 16 frequency points. Then, when the minimum complete coverage sequence period of the first hopping sub-sequence is 10 milliseconds and the minimum complete coverage sequence period of the second hopping sub-sequence is 10 milliseconds, and the second hopping sequence includes 3 frequency points, the coverage sequence period of the second hopping sequence is 1.875 milliseconds; both the paging scan period and the paging scan window can be set and changed as needed. In the embodiments of the present application, no specific limitations are imposed on the paging scan period and the paging scan window; for example, the paging scan period is 22.5 milliseconds and the paging scan window is 11.25 milliseconds are used as examples for illustration.

[0084] In an embodiment of the present application, the first terminal adds a second frequency hopping sequence on the basis of the first frequency hopping sequence; since the number of second frequency points included in the second frequency hopping sequence is less than the number of first frequency points included in the first frequency hopping sequence, when the second terminal monitors connection requests based on the second target frequency points in the second frequency hopping sequence, or monitors connection requests based on the first target frequency points in the first frequency hopping sequence and the second target frequency points in the second frequency hopping sequence, it is easy to have a situation where the frequency points at which the first terminal initiates connection requests are the same as the frequency points at which the second terminal monitors connection requests. Furthermore, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer number of paging scan cycles, thereby improving the establishment speed of the wireless communication connection.

[0085] Please refer to Figure 9 , which shows a flowchart of a method for establishing a wireless communication connection provided by an exemplary embodiment of the present application. The method may include the following steps:

[0086] Step 901: The second terminal broadcasts a first broadcast message.

[0087] The wireless communication connection may be a Bluetooth communication connection or a WiFi communication connection; correspondingly, when the second terminal enables the Bluetooth function, the second terminal broadcasts a Bluetooth first broadcast message; when the second terminal enables the WiFi function, the second terminal broadcasts a WiFi first broadcast message.

[0088] Step 902: The first terminal performs a message scanning operation.

[0089] The wireless communication connection may be a Bluetooth communication connection or a WiFi communication connection; correspondingly, when the first terminal enables the Bluetooth function, the first terminal performs a scanning operation on Bluetooth messages; when the first terminal enables the WiFi function, the first terminal performs a scanning operation on WiFi messages.

[0090] Step 903: When the first broadcast message of the second terminal is scanned, the first terminal determines a first frequency hopping sequence and a second frequency hopping sequence. The first frequency hopping sequence includes multiple first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points.

[0091] The step for the first terminal to determine the first frequency hopping sequence may be: The first terminal determines a first frequency hopping subsequence and a second frequency hopping subsequence. The first frequency hopping subsequence includes multiple first frequency points, and the second frequency hopping subsequence includes multiple first frequency points; the first frequency hopping subsequence and the second frequency hopping subsequence are combined to form the first frequency hopping sequence, and the first frequency hopping subsequence and the second frequency hopping subsequence are used for the second terminal to determine the first target frequency point.

[0092] In a possible implementation, step 903 is performed only when the second terminal supports monitoring of connection requests based on the second frequency hopping sequence; therefore, the step for the first terminal to determine the first frequency hopping sequence and the second frequency hopping sequence may be: the first terminal determines the monitoring capability information of the second terminal, the monitoring capability information being used to indicate whether the second terminal supports monitoring of connection requests based on the second frequency hopping sequence; and when the monitoring capability information is used to indicate that the second terminal supports monitoring of connection requests based on the second frequency hopping sequence, determining the first frequency hopping sequence and the second frequency hopping sequence.

[0093] When the monitoring capability information is used to indicate that the second terminal does not support monitoring of the connection request based on the second frequency hopping sequence, the first terminal determines the first frequency hopping sequence; and initiates a connection request to the second terminal based on the first frequency hopping sequence.

[0094] For example, the first terminal sequentially initiates a connection request to the second terminal on a channel corresponding to each first frequency point included in the first frequency hopping sequence based on the first frequency hopping sequence. Moreover, after the first terminal sequentially initiates a connection request to the second terminal on a channel corresponding to each first frequency point, the first terminal determines whether a wireless communication connection is successfully established with the second terminal. If a wireless communication connection is successfully established with the second terminal, the first terminal stops initiating the connection request; if a wireless communication connection is not successfully established with the second terminal, the first terminal continues to sequentially initiate a connection request to the second terminal on a channel corresponding to each first frequency point included in the first frequency hopping sequence based on the first frequency hopping sequence until a wireless communication connection is successfully established with the second terminal.

[0095] For example, the first frequency hopping sequence includes 32 frequency points, namely frequency A1, frequency A2...frequency A16, frequency B1, frequency B2...frequency B16. The first terminal initiates a connection request to the second terminal on the channel corresponding to frequency A1, initiates a connection request to the second terminal on the channel corresponding to frequency A2...initiates a connection request to the second terminal on the channel corresponding to frequency A16, initiates a connection request to the second terminal on the channel corresponding to frequency B1, initiates a connection request to the second terminal on the channel corresponding to frequency B2...initiates a connection request to the second terminal on the channel corresponding to frequency B16.

[0096] The process of establishing a wireless communication connection between the first terminal and the second terminal in the embodiment of the present application is a reconnection process, that is, the first terminal and the second terminal have established a wireless communication connection once before executing the embodiment of the present application, and when the first terminal and the second terminal establish a wireless communication connection for the first time, the first terminal stores the listening capability information of the second terminal; accordingly, the step of the first terminal determining the listening capability information of the second terminal can be: when the second terminal is a historically paired terminal, determining the listening capability information of the second terminal from the listening capability information list, and the listening capability list is used to store the listening capability information of historically paired terminals.

[0097] For example, see Figure 10 , the process of establishing a wireless communication connection for the first time between the first terminal and the second terminal can be: the first terminal and the second terminal establish a physical link (Asynchronous Connection-Less, ACL) connection for asynchronous data transmission, and perform an encryption key negotiation process based on the ACL connection. Then, the second terminal interacts with the first terminal through an upper layer protocol to exchange monitoring capability information. The first terminal stores the monitoring capability information of the second terminal in a monitoring capability list and stores the negotiated encryption key, so that after the first terminal and the second terminal establish a wireless communication connection, data is encrypted based on the encryption key, and then the encrypted data is transmitted through the wireless communication connection.

[0098] In some embodiments, when the first terminal establishes a wireless communication connection with the second terminal for the first time, the first terminal generates and stores the second frequency hopping sequence. Therefore, in this step, the first terminal directly obtains the stored second frequency hopping sequence. The process of the first terminal generating and storing the second frequency hopping sequence may be:

[0099] When the first terminal and the second terminal establish a wireless communication connection for the first time, the first terminal determines the second frequency hopping sequence based on some frequency points in the first frequency hopping sequence; similarly, the second terminal also determines the second frequency hopping sequence based on some frequency points in the first frequency hopping sequence; the first terminal obtains the second frequency hopping sequence determined by the second terminal based on the wireless communication connection established for the first time; if the second frequency hopping sequence determined by the first terminal is the same as the second frequency hopping sequence determined by the second terminal, the second frequency hopping sequence is stored. If the second frequency hopping sequence determined by the first terminal is different from the second frequency hopping sequence determined by the second terminal, the first terminal initiates a connection request to the second terminal based on the first frequency hopping sequence.

[0100] The first terminal will also send the second hopping frequency sequence determined by the first terminal to the second terminal through the initially established wireless communication connection. The second terminal will also determine whether the second hopping frequency sequence determined by the first terminal is the same as the second hopping frequency sequence determined by the second terminal. When the second hopping frequency sequence determined by the first terminal is the same as the second hopping frequency sequence determined by the second terminal, the second hopping frequency sequence is stored for subsequent monitoring of connection requests based on the second hopping frequency sequence. When the second hopping frequency sequence determined by the first terminal is different from the second hopping frequency sequence determined by the second terminal, the second terminal monitors the connection requests initiated by the first terminal based on the first hopping frequency sequence.

[0101] Exemplarily, the steps for the first terminal to determine the second hopping frequency sequence based on some frequency points in the first hopping frequency sequence may be: The first terminal determines a first channel sequence, where the first channel sequence includes multiple first channel identifiers, and the multiple first channel identifiers are the channel identifiers corresponding to multiple first frequency points in the first hopping frequency sequence; based on the preset selection policy information, some first channel identifiers are selected from the first channel sequence, and the second hopping frequency sequence is determined based on the frequency points corresponding to the selected first channel identifiers. For example, the first hopping frequency sequence includes 32 first frequency points, which are frequency point 1, frequency point 2... frequency point 32 respectively, and the preset selection policy information is to select the first frequency point, the second frequency point, and the last frequency point; then the second hopping frequency sequence includes frequency point 1, frequency point 2, and frequency point 32. Similarly, the second terminal selects frequency points based on the same preset selection policy information. Therefore, the second terminal and the first terminal will generate the same second hopping frequency sequence.

[0102] In the embodiments of the present application, when the first terminal and the second terminal initially establish a wireless communication connection, they will exchange the second hopping frequency sequence to ensure that the second hopping frequency sequences determined by the first terminal and the second terminal are the same, thereby improving the reliability and accuracy of the second hopping frequency sequence.

[0103] Step 904: The first terminal initiates a connection request to the second terminal based on the second hopping frequency sequence.

[0104] In a possible implementation manner, the connection request is a Bluetooth connection request, and the wireless communication connection is a Bluetooth communication connection; correspondingly, this step may be: The first terminal initiates a Bluetooth connection request to the second terminal based on the second hopping frequency sequence, and the Bluetooth connection request is used to request to establish a Bluetooth communication connection with the second terminal.

[0105] In another possible implementation manner, the connection request is a WiFi connection request, and the wireless communication connection is a WiFi communication connection; correspondingly, this step may be: The first terminal initiates a WiFi connection request to the second terminal based on the second hopping frequency sequence, and the WiFi connection request is used to request to establish a WiFi communication connection with the second terminal.

[0106] The second frequency hopping sequence includes at least one second frequency point; correspondingly, the step for the first terminal to initiate a connection request to the second terminal based on the second frequency hopping sequence may be: the first terminal sequentially initiates a connection request to the second terminal on the channels corresponding to at least one second frequency point included in the second frequency hopping sequence.

[0107] In a possible implementation, after the first terminal initiates a connection request to the second terminal on the channels corresponding to at least one second frequency point, it determines whether the first terminal and the second terminal have successfully established a wireless communication connection; in the case where the first terminal and the second terminal have not successfully established a wireless communication connection, the first terminal again initiates a connection request to the second terminal on the channels corresponding to at least one second frequency point until a wireless communication connection is successfully established with the second terminal.

[0108] In another possible implementation, set the initiation duration for initiating a connection request based on the second frequency hopping sequence. When the initiation duration reaches a preset duration and a wireless communication connection has not been successfully established with the second terminal, step 905 is executed.

[0109] In the embodiment of the present application, taking the second frequency hopping sequence including 3 second frequency points as an example, since the second frequency hopping sequence includes 3 second frequency points; therefore, it is easy to have a situation where the frequency point at which the first terminal initiates a connection request is the same as the frequency point at which the second terminal listens for connection requests (this situation can be called connection collision), which in turn increases the connection collision probability and thus improves the connection rate.

[0110] Step 905: When the initiation duration of the connection request reaches a preset duration and a wireless communication connection has not been successfully established with the second terminal, the first terminal initiates a connection request to the second terminal based on the first frequency hopping sequence.

[0111] In a possible implementation, when the initiation duration for initiating a connection request based on the second frequency hopping sequence reaches a preset duration and a wireless communication connection has not been successfully established with the second terminal, the first terminal subsequently initiates connection requests based on the first frequency hopping sequence; correspondingly, the step for the first terminal to initiate a connection request to the second terminal based on the first frequency hopping sequence may be: the first terminal sequentially initiates a connection request to the second terminal on the channels corresponding to multiple first frequency points according to the order of the multiple first frequency points in the first frequency hopping sequence; in the case where a wireless communication connection has not been successfully established with the second terminal, it again initiates a connection request to the second terminal based on the first frequency hopping sequence until a wireless communication connection is successfully established with the second terminal.

[0112] In an embodiment of the present application, when the initiation duration of a connection request initiated based on a second frequency hopping sequence (determined based on a private protocol) reaches a preset duration and the first terminal fails to successfully establish a wireless communication connection with the second terminal, the first terminal initiates a connection request based on a first frequency hopping sequence, thereby increasing the robustness and fault tolerance of the private protocol.

[0113] The preset duration can be set and changed as needed. In the embodiment of the present application, the preset duration is not specifically limited. For example, the preset duration can be 1 second. Then, please refer to Figure 11 , the first terminal, within 1 second, based on the second frequency hopping sequence (taking the frequency hopping sequence C as an example in Figure 11 ), initiates a connection request to the second terminal; when 1 second has passed and the first terminal fails to successfully establish a wireless communication connection with the second terminal, the first terminal initiates a connection request to the second terminal based on the first frequency hopping subsequence (taking the frequency hopping sequence A as an example in Figure 11 ) and the second frequency hopping subsequence (taking the frequency hopping sequence B as an example in Figure 11 ).

[0114] In another possible implementation, when the initiation duration of a connection request initiated based on the second frequency hopping sequence reaches the preset duration and the first terminal fails to successfully establish a wireless communication connection with the second terminal, the first terminal subsequently initiates connection requests based on the first frequency hopping sequence and the second frequency hopping sequence again; correspondingly, the step of the first terminal initiating a connection request to the second terminal based on the first frequency hopping sequence can be: the first terminal initiates connection requests to the second terminal in sequence on channels corresponding to a plurality of first frequency points according to the order of the plurality of first frequency points in the first frequency hopping sequence; when the first terminal fails to successfully establish a wireless communication connection with the second terminal, it initiates a connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence again.

[0115] In the embodiment of the present application, the first terminal initiates a connection request to the second terminal based on the second frequency hopping sequence, the first frequency hopping subsequence, and the second frequency hopping subsequence, thereby improving the connection efficiency of successfully establishing a wireless communication connection between the first terminal and the second terminal.

[0116] In another possible implementation, the first terminal may also sequentially initiate connection requests to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence. Correspondingly, steps 904 and 905 may be replaced with: The first terminal combines the second frequency hopping sequence and the first frequency hopping sequence to form a target frequency hopping sequence; based on the order of at least one second frequency point and multiple first frequency points included in the target frequency hopping sequence, connection requests are sequentially initiated to the second terminal on the channels corresponding to the at least one second frequency point and the channels corresponding to the multiple first frequency points. By way of example, the first terminal sequentially initiates connection requests to the second terminal on the channels corresponding to the at least one second frequency point, then sequentially initiates connection requests to the second terminal on the channels corresponding to the multiple first frequency points, then sequentially initiates connection requests to the second terminal on the channels corresponding to the at least one second frequency point, and so on, until a wireless communication connection is successfully established with the second terminal.

[0117] Step 906: The second terminal determines the first frequency hopping sequence and the second frequency hopping sequence. The first frequency hopping sequence includes multiple first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points.

[0118] In a possible implementation, step 906 is executed only when the first terminal supports initiating connection requests based on the second frequency hopping sequence. Correspondingly, the step for the second terminal to determine the first frequency hopping sequence and the second frequency hopping sequence may be:

[0119] The second terminal receives a second broadcast message from the first terminal. The second broadcast message carries the initiation capability information of the connection request of the first terminal. The initiation capability information is used to indicate whether the first terminal supports initiating connection requests based on the second frequency hopping sequence. When the initiation capability information is used to indicate that the first terminal supports initiating connection requests based on the second frequency hopping sequence, the first frequency hopping sequence and the second frequency hopping sequence are determined.

[0120] When the initiation capability information is used to indicate that the first terminal does not support initiating connection requests based on the second frequency hopping sequence, the second terminal determines the first frequency hopping sequence; based on the first frequency hopping sequence, it listens for connection requests initiated by the second terminal.

[0121] For example, please refer to Figure 12 , the first terminal broadcasts a second broadcast message, and the second broadcast message carries the initiation capability information of the first terminal; after the second terminal receives the second broadcast message, when it is determined based on the initiation capability information of the first terminal that the first terminal supports initiating connection requests based on the second frequency hopping sequence, the first frequency hopping sequence and the second frequency hopping sequence are determined, and then step 907 is executed.

[0122] When a first terminal and a second terminal establish a wireless communication connection for the first time, the first terminal determines a second hopping sequence based on some frequency points in a first hopping sequence; based on the wireless communication connection established for the first time, the first terminal obtains the second hopping sequence determined by the first terminal; when the second hopping sequence determined by the first terminal is the same as the second hopping sequence determined by the second terminal, the second hopping sequence is stored; correspondingly, the process of determining the second hopping sequence by the second terminal may be: the second terminal obtains the stored second hopping sequence.

[0123] Step 907: The second terminal determines a second target frequency point from the second hopping sequence, or determines a first target frequency point from the first hopping sequence, and determines a second target frequency point from the second hopping sequence.

[0124] The first hopping sequence includes a first hopping subsequence and a second hopping subsequence, and the first target frequency point includes a first target sub-frequency point and a second target sub-frequency point; correspondingly, the step for the second terminal to determine the first target frequency point from the first hopping sequence may be: the second terminal determines the first target sub-frequency point from the first hopping subsequence and determines the second target sub-frequency point from the second hopping subsequence.

[0125] The second terminal determines the first target frequency point within the current paging scan period from multiple first frequency points based on the order of the multiple first frequency points in the first hopping sequence and the first target frequency point determined in the previous paging scan period. For example, the first hopping sequence includes 32 first frequency points, namely first frequency point 1, first frequency point 2... first frequency point 32, and the first target frequency point determined in the previous paging scan period is first frequency point 5, then the first target frequency point determined within the current paging scan period is first frequency point 6.

[0126] In a possible implementation manner, the first hopping sequence includes a first hopping subsequence and a second hopping subsequence, then the number of first target frequency points is two, that is, the first target frequency point includes a first target sub-frequency point and a second target sub-frequency point; correspondingly, the step for the second terminal to determine the first target frequency point from the first hopping sequence may be: the second terminal determines the first target sub-frequency point from the first hopping subsequence and determines the second target sub-frequency point from the second hopping subsequence. By way of example, the second terminal determines the first target sub-frequency point within the current paging scan period from the first hopping subsequence based on the order of the multiple first frequency points included in the first hopping subsequence and the first target sub-frequency point determined in the previous paging scan period, and determines the second target sub-frequency point within the current paging scan period from the second hopping subsequence based on the order of the multiple first frequency points included in the second hopping subsequence and the second target sub-frequency point determined in the previous paging scan period.

[0127] For example, the first frequency hopping sub-sequence includes 16 first frequency points, namely A1, A2, A3... A16; the second frequency hopping sub-sequence includes 16 first frequency points, namely B1, B2, B3... B16; the first target sub-frequency point determined in the previous paging scan cycle is A3, and the second target sub-frequency point determined in the previous paging scan cycle is B3. Then, the first target sub-frequency point determined in the current paging scan cycle is A4, and the second target sub-frequency point determined in the current paging scan cycle is B4.

[0128] Step 908: The second terminal listens for a connection request initiated by the first terminal based on the second target frequency point, or listens for a connection request initiated by the first terminal based on the first target frequency point and the second target frequency point.

[0129] In a possible implementation, the second terminal listens for a connection request initiated by the first terminal based on the second target frequency point in a loop; correspondingly, the step for the second terminal to listen for a connection request initiated by the first terminal based on the second target frequency point can be: in the current paging scan cycle, the second terminal listens for a connection request initiated by the first terminal on the channel corresponding to the second target frequency point; if no connection request is detected in the current paging cycle, the second target frequency point is re-determined from the second frequency hopping sequence, and in the next paging cycle, the second terminal listens for a connection request initiated by the first terminal on the channel corresponding to the re-determined second target frequency point until a connection request initiated by the second terminal is detected.

[0130] In a possible implementation, the first terminal initiates a connection request based on the first target frequency point and the second target frequency point in a loop; correspondingly, the step for the second terminal to listen for a connection request initiated by the second terminal based on the first target frequency point and the second target frequency point can be: in the current paging scan cycle, the second terminal listens for a connection request initiated by the first terminal on the channel corresponding to the second target frequency point and then on the channel corresponding to the first target frequency point in sequence; if no connection request is detected in the current paging scan cycle, the first target frequency point is re-determined from the first frequency hopping sequence, and the second target frequency point is re-determined from the second frequency hopping sequence. In the next paging scan cycle, the second terminal listens for a connection request initiated by the first terminal on the channel corresponding to the re-determined second target frequency point and then on the channel corresponding to the re-determined first target frequency point in sequence.

[0131] In another possible implementation, the first terminal initiates a connection request based on the first target frequency point and the second target frequency point, and then initiates a connection request based on the second target frequency point. Correspondingly, the steps for the second terminal to listen for the connection request initiated by the first terminal based on the first target frequency point and the second target frequency point can be as follows: within the current paging scan period, the second terminal listens for the connection request initiated by the first terminal on the channel corresponding to the second target frequency point and then on the channel corresponding to the first target frequency point in sequence; in the case where no connection request is detected within the current paging scan period, based on the order of the multiple second frequency points included in the second hopping sequence, the second terminal listens for the connection request initiated by the first terminal on the channels corresponding to the multiple second frequency points in sequence.

[0132] In the case where a connection request is detected within the current paging scan period, the second terminal establishes a wireless communication connection with the first terminal based on the connection request. In the case where the connection request is a Bluetooth connection request, the second terminal establishes a Bluetooth communication connection with the first terminal through the Bluetooth function of the first terminal and the Bluetooth function of the second terminal based on the Bluetooth connection request. In the case where the connection request is a WiFi connection request, the second terminal establishes a WiFi communication connection with the first terminal through the WiFi function of the first terminal and the WiFi function of the second terminal based on the WiFi connection request.

[0133] In the case where the paging scan window is 11.25 milliseconds and the paging scan period is 100 milliseconds, the channels corresponding to the same frequency point of the first hopping subsequence and the second hopping subsequence have 3 chances to collide within one paging scan period, and the reduction ratio of the relative time consumption for sequential collisions is 38%. In the case where the paging scan window is 67.4 milliseconds and the paging scan period is 640 milliseconds, the channels corresponding to the same frequency point of the first hopping subsequence and the second hopping subsequence have 6 chances to collide within one paging scan period, and the time consumption is reduced by 43% compared to a single collision. In the embodiment of the present application, after introducing the second hopping sequence, the first terminal uses the second hopping sequence to initiate a connection request within 1 second. In the case where the paging scan window is 11.25 milliseconds, there are 7 collision chances within the second hopping sequence. Therefore, the first terminal can obtain a 38% benefit in the time consumption of the frequency point collision with the second terminal, that is, the connection time is reduced from 86 milliseconds to 33 milliseconds.

[0134] In an embodiment of the present application, based on the first frequency hopping sequence, the first terminal adds a second frequency hopping sequence and initiates a connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence. Since the number of second frequency points included in the second frequency hopping sequence is less than the number of first frequency points included in the first frequency hopping sequence, when the second terminal listens for the connection request based on the second target frequency point in the second frequency hopping sequence, or listens for the connection request based on the first target frequency point in the first frequency hopping sequence and the second target frequency point in the second frequency hopping sequence, it is likely that the frequency point at which the first terminal initiates the connection request is the same as the frequency point at which the second terminal listens for the connection request. As a result, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer paging scan cycles, thereby improving the establishment speed of the wireless communication connection.

[0135] Please refer to Figure 13 , which shows a structural block diagram of a wireless communication connection establishment device provided by an exemplary embodiment of the present application. The device is deployed on the first terminal and includes:

[0136] An execution module 1301, configured to perform a packet scanning operation;

[0137] A first determination module 1302, configured to determine the first frequency hopping sequence and the second frequency hopping sequence when a first broadcast packet is scanned. The first frequency hopping sequence includes multiple first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points;

[0138] A first initiation module 1303, configured to initiate a connection request to the second terminal that broadcasts the first broadcast packet based on the second frequency hopping sequence. The connection request is used to request to establish a wireless communication connection with the second terminal, and the second target frequency point in the second frequency hopping sequence is used for the second terminal to listen for the connection request, or

[0139] A first initiation module 1303, configured to initiate a connection request to the second terminal that broadcasts the first broadcast packet based on the first frequency hopping sequence and the second frequency hopping sequence. The connection request is used to request to establish a wireless communication connection with the second terminal, and the first target frequency point in the first frequency hopping sequence and the second target frequency point in the second frequency hopping sequence are used for the second terminal to listen for the connection request.

[0140] In a possible implementation, the first initiation module 1303 is configured to initiate the connection request to the second terminal based on the second frequency hopping sequence; and when the initiation duration of the connection request reaches a preset duration and a wireless communication connection with the second terminal has not been successfully established, initiate the connection request to the second terminal based on the first frequency hopping sequence.

[0141] In another possible implementation, the first initiation module 1303 is configured to initiate the connection request to the second terminal in sequence on the channels corresponding to the multiple first frequency points in the first frequency hopping sequence; in the case where a wireless communication connection with the second terminal is not successfully established, initiate the connection request to the second terminal again based on the first frequency hopping sequence until a wireless communication connection with the second terminal is successfully established.

[0142] In another possible implementation, the first initiation module 1303 is configured to initiate the connection request to the second terminal in sequence on the channels corresponding to the multiple first frequency points in the first frequency hopping sequence; in the case where a wireless communication connection with the second terminal is not successfully established, initiate the connection request to the second terminal again based on the first frequency hopping sequence and the second frequency hopping sequence.

[0143] In another possible implementation, the first initiation module 1303 is configured to combine the second frequency hopping sequence and the first frequency hopping sequence into a target frequency hopping sequence; and initiate the connection request to the second terminal in sequence on the channels corresponding to the at least one second frequency point and the channels corresponding to the multiple first frequency points included in the target frequency hopping sequence.

[0144] In another possible implementation, the first determination module 1302 is configured to determine a first frequency hopping subsequence and a second frequency hopping subsequence; and combine the first frequency hopping subsequence and the second frequency hopping subsequence into the first frequency hopping sequence, where the first frequency hopping subsequence and the second frequency hopping subsequence are used by the second terminal to determine a first target frequency point.

[0145] In another possible implementation, the first determination module 1302 is configured to determine the listening capability information of the second terminal, where the listening capability information is used to indicate whether the second terminal supports listening for connection requests based on the second frequency hopping sequence; and in the case where the listening capability information is used to indicate that the second terminal supports listening for connection requests based on the second frequency hopping sequence, determine the first frequency hopping sequence and the second frequency hopping sequence.

[0146] In another possible implementation, the apparatus further includes:

[0147] A second determination module, configured to determine the first frequency hopping sequence in the case where the listening capability information is used to indicate that the second terminal does not support listening for connection requests based on the second frequency hopping sequence;

[0148] A second initiating module, configured to initiate the connection request to the second terminal based on the first frequency hopping sequence.

[0149] In another possible implementation manner, the first determining module 1302 is configured to determine the listening capability information of the second terminal from a listening capability information list when the second terminal is a historically paired terminal, where the listening capability list is used to store the listening capability information of historically paired terminals.

[0150] In another possible implementation manner, the apparatus further includes:

[0151] A third determining module, configured to determine the second frequency hopping sequence based on some frequency points in the first frequency hopping sequence when the first terminal and the second terminal establish a wireless communication connection for the first time;

[0152] A first obtaining module, configured to obtain the second frequency hopping sequence determined by the second terminal based on the wireless communication connection established for the first time;

[0153] A first storage module, configured to store the second frequency hopping sequence when the second frequency hopping sequence determined by the first terminal is the same as the second frequency hopping sequence determined by the second terminal;

[0154] The first determining module 1302 is configured to obtain the stored second frequency hopping sequence.

[0155] In another possible implementation manner, the connection request is a Bluetooth connection request, and the wireless communication connection is a Bluetooth communication connection;

[0156] The first initiating module 1303 is configured to initiate the Bluetooth connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence, where the Bluetooth connection request is used to request to establish the Bluetooth communication connection with the second terminal.

[0157] In an embodiment of the present application, the first terminal adds a second frequency hopping sequence on the basis of the first frequency hopping sequence; since the number of second frequency points included in the second frequency hopping sequence is less than the number of first frequency points included in the first frequency hopping sequence, when the second terminal listens for the connection request based on the second target frequency points in the second frequency hopping sequence, or listens for the connection request based on the first target frequency points in the first frequency hopping sequence and the second target frequency points in the second frequency hopping sequence, it is easy to have a situation where the frequency points for the first terminal to initiate the connection request are the same as the frequency points for the second terminal to listen for the connection request. Furthermore, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer paging scan cycles, improving the establishment speed of the wireless communication connection.

[0158] It should be noted that when the above-described apparatus for establishing a wireless communication connection establishes a wireless communication connection, only the division of the above-mentioned functional modules is used for illustration. In practical applications, the above functions can be allocated to different functional modules as needed, that is, the internal structure of the first terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the apparatus for establishing a wireless communication connection provided in the above embodiment and the embodiment of the method for establishing a wireless communication connection belong to the same concept. For the specific implementation process, please refer to the method embodiment, which will not be elaborated here.

[0159] Please refer to Figure 14 , which shows a structural block diagram of an apparatus for establishing a wireless communication connection provided by an exemplary embodiment of the present application. The apparatus is deployed in a second terminal, and the apparatus includes:

[0160] A broadcast module 1401, configured to broadcast a first broadcast message, where the first broadcast message is used to trigger a first terminal that scans the first broadcast message to initiate a connection request to the second terminal, and the connection request is used to request to establish a wireless communication connection with the second terminal;

[0161] A fourth determination module 1402, configured to determine a first frequency hopping sequence and a second frequency hopping sequence, where the first frequency hopping sequence includes a plurality of first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points;

[0162] A fifth determination module 1403, configured to determine a second target frequency point from the second frequency hopping sequence, or determine a first target frequency point from the first frequency hopping sequence, and determine a second target frequency point from the second frequency hopping sequence;

[0163] A first listening module 1404, configured to listen for the connection request initiated by the second terminal based on the second target frequency point, or listen for the connection request initiated by the second terminal based on the first target frequency point and the second target frequency point.

[0164] In a possible implementation manner, the first frequency hopping sequence includes a first frequency hopping subsequence and a second frequency hopping subsequence, and the first target frequency point includes a first target sub-frequency point and a second target sub-frequency point;

[0165] The fifth determination module 1403 is configured to determine the first target sub-frequency point from the first frequency hopping subsequence and determine the second target sub-frequency point from the second frequency hopping subsequence.

[0166] In another possible implementation, the first monitoring module 1404 is configured to, within the current paging scan period, sequentially monitor the connection request initiated by the second terminal on the channel corresponding to the second target frequency point and the channel corresponding to the first target frequency point; in the case where the connection request is not monitored within the current paging scan period, re-determine the first target frequency point from the first frequency hopping sequence, and re-determine the second target frequency point from the second frequency hopping sequence, and within the next paging scan period, sequentially monitor the connection request initiated by the second terminal on the channel corresponding to the re-determined second target frequency point and the channel corresponding to the re-determined first target frequency point.

[0167] In another possible implementation, the first monitoring module 1404 is configured to, within the current paging scan period, sequentially monitor the connection request initiated by the second terminal on the channel corresponding to the first target frequency point and the channel corresponding to the second target frequency point; in the case where the connection request is not monitored within the current paging scan period, based on the order of the multiple second frequency points included in the second frequency hopping sequence, sequentially monitor the connection request initiated by the second terminal on the channels corresponding to the multiple second frequency points.

[0168] In another possible implementation, the apparatus further includes:

[0169] A establishing module, configured to, in the case where the connection request is monitored within the current paging scan period, establish a wireless communication connection with the first terminal based on the connection request.

[0170] In another possible implementation, the wireless communication connection is a Bluetooth communication connection;

[0171] The establishing module is configured to, based on the connection request, establish the Bluetooth communication connection with the first terminal through the Bluetooth function of the first terminal and the Bluetooth function of the second terminal.

[0172] In another possible implementation, the fourth determination module 1402 is configured to receive a second broadcast message of the first terminal, where the second broadcast message carries the initiating capability information of the connection request of the first terminal, and the initiating capability information is used to indicate whether the first terminal supports initiating a connection request based on the second frequency hopping sequence; in the case where the initiating capability information is used to indicate that the first terminal supports initiating a connection request based on the second frequency hopping sequence, determine the first frequency hopping sequence and the second frequency hopping sequence.

[0173] In another possible implementation, the apparatus further includes:

[0174] A sixth determination module, configured to determine the first hopping sequence when the initiating capability information is used to indicate that the first terminal does not support initiating a connection request based on the second hopping sequence;

[0175] A second monitoring module, configured to monitor the connection request initiated by the second terminal based on the first hopping sequence.

[0176] In another possible implementation manner, the apparatus further includes:

[0177] A seventh determination module, configured to determine the second hopping sequence based on some frequency points in the first hopping sequence when the first terminal and the second terminal establish a wireless communication connection for the first time;

[0178] A second obtaining module, configured to obtain the second hopping sequence determined by the first terminal based on the wireless communication connection established for the first time;

[0179] A second storage module, configured to store the second hopping sequence when the second hopping sequence determined by the first terminal is the same as the second hopping sequence determined by the second terminal;

[0180] The fourth determination module 1402 is configured to obtain the stored second hopping sequence.

[0181] In the embodiments of the present application, the first terminal adds a second hopping sequence on the basis of the first hopping sequence; since the number of second frequency points included in the second hopping sequence is less than the number of first frequency points included in the first hopping sequence, when the second terminal monitors the connection request based on the second target frequency point in the second hopping sequence, or monitors the connection request based on the first target frequency point in the first hopping sequence and the second target frequency point in the second hopping sequence, it is easy to occur that the frequency point at which the first terminal initiates the connection request is the same as the frequency point at which the second terminal monitors the connection request. Furthermore, the second terminal may successfully establish a wireless communication connection with the first terminal within a fewer paging scan cycles, improving the establishment speed of the wireless communication connection.

[0182] It should be noted that when the wireless communication connection establishment apparatus provided in the above embodiments establishes a wireless communication connection, only the above division of each functional module is used for illustration. In actual applications, the above functions may be allocated to different functional modules according to needs, that is, the internal structure of the second terminal is divided into different functional modules to complete all or part of the functions described above. In addition, the wireless communication connection establishment apparatus provided in the above embodiments and the embodiments of the wireless communication connection establishment method belong to the same concept, and the specific implementation process is detailed in the method embodiments and will not be elaborated here.

[0183] See Figure 15 ,Figure 15 It is a schematic structural diagram of a terminal provided by an exemplary embodiment of the present application. The terminal can be a first terminal or a second terminal, and the terminal can also include one or more of the following components: a processor 1510, a memory 1520, and a display screen 1530.

[0184] The processor 1510 connects various parts within the entire terminal 1100 using various interfaces and lines. By running or executing instructions, programs, code sets, or instruction sets stored in the memory 1520, and by calling data stored in the memory 1520, it performs various functions of the terminal 1100 and processes data. Optionally, the processor 1510 can be implemented in at least one hardware form of digital signal processing (DSP), field-programmable gate array (FPGA), or programmable logic array (PLA). The processor 1510 can integrate one or a combination of several of a central processing unit (CPU), a graphics processing unit (GPU), a neural-network processing unit (NPU), and a modem. Among them, the CPU mainly processes the operating system, user interface, and application programs, etc.; the GPU is responsible for the rendering and drawing of the content to be displayed on the display screen 1530; the NPU is used to implement artificial intelligence (AI) functions; the modem is used to process wireless communications. It can be understood that the above modem can also not be integrated into the processor 1510 and can be implemented separately through a computer program product.

[0185] The memory 1520 may include a Random Access Memory (RAM), or may also include a Read-Only Memory (ROM). Optionally, the memory 1520 includes a non-transitory computer-readable storage medium. The memory 1520 can be used to store instructions, programs, code, code sets, or instruction sets. The memory 1520 may include a program storage area and a data storage area. Among them, the program storage area can store instructions for implementing an operating system, instructions for at least one function (such as a touch function, a sound playback function, an image playback function, etc.), instructions for implementing the following various method embodiments, etc.; the data storage area can store data created according to the use of the terminal 1100 (such as audio data, phone book), etc.

[0186] The display screen 1530 is a display component for displaying a user interface. Optionally, the display screen 1530 is a display screen with a touch function. Through the touch function, the user can perform touch operations on the display screen 1530 using any suitable object such as a finger or a stylus.

[0187] The display screen 1530 is usually arranged on the front panel of the terminal 1500. The display screen 1530 can be designed as a full-screen, curved-screen, irregular-shaped screen, double-sided screen, or foldable screen. The display screen 1530 can also be designed as a combination of a full-screen and a curved-screen, a combination of an irregular-shaped screen and a curved-screen, etc. This embodiment does not limit this.

[0188] In addition, those skilled in the art can understand that the structure of the terminal 1500 shown in the above drawings does not limit the terminal 1500. The terminal 1100 may include more or fewer components than shown in the drawings, or combine some components, or have different component arrangements. For example, the terminal 1100 also includes components such as a WiFi module, an audio acquisition device, a speaker, a radio frequency circuit, an input unit, a sensor, an audio circuit, a Bluetooth module, a power supply, etc., which will not be elaborated here.

[0189] An embodiment of the present application provides a chip, which includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal device, the chip is used to implement the method for establishing a wireless communication connection as described in the above embodiment. For example, the chip is applied to a Bluetooth chip in a terminal.

[0190] An embodiment of the present application provides a computer-readable storage medium, which stores at least one computer instruction. The at least one computer instruction is used to be executed by a processor to implement the method for establishing a wireless communication connection as described in the above embodiment.

[0191] On the other hand, an embodiment of the present application provides a computer program product, the computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method for establishing a wireless communication connection as described in the above embodiment.

[0192] Those skilled in the art should be able to realize that in the above one or more examples, the functions described in the embodiments of the present application can be implemented by hardware, software, firmware, or any combination thereof. When implemented using software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. The computer-readable medium includes computer storage media and communication media, where the communication media includes any medium that facilitates the transmission of a computer program from one place to another. The storage media can be any available medium accessible by a general-purpose or special-purpose computer.

[0193] The foregoing are only optional embodiments of the present application and are not intended to limit the present application. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principle of the present application shall be included within the protection scope of the present application.

Claims

1. A method for establishing a wireless communication connection, characterized in that, The method is used for a first terminal, and the method includes: Performing a packet scanning operation; When a first broadcast packet is scanned, determining a first frequency hopping sequence and a second frequency hopping sequence, where the first frequency hopping sequence includes a plurality of first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of the second frequency points is less than the number of the first frequency points; Based on the second frequency hopping sequence, initiating a connection request to a second terminal that broadcasts the first broadcast packet, where the connection request is used to request to establish a wireless communication connection with the second terminal, and a second target frequency point in the second frequency hopping sequence is used for the second terminal to listen for the connection request, or Based on the first frequency hopping sequence and the second frequency hopping sequence, initiating a connection request to a second terminal that broadcasts the first broadcast packet, where the connection request is used to request to establish a wireless communication connection with the second terminal, and a first target frequency point in the first frequency hopping sequence and a second target frequency point in the second frequency hopping sequence are used for the second terminal to listen for the connection request.

2. The method according to claim 1, characterized in that, The initiating a connection request to the second terminal that broadcasts the first broadcast packet based on the first frequency hopping sequence and the second frequency hopping sequence includes: Based on the second frequency hopping sequence, initiating the connection request to the second terminal; When the initiation duration of the connection request reaches a preset duration and a wireless communication connection with the second terminal has not been successfully established, based on the first frequency hopping sequence, initiating the connection request to the second terminal.

3. The method according to claim 2, wherein The initiating the connection request to the second terminal based on the first frequency hopping sequence includes: Based on the order of the plurality of first frequency points in the first frequency hopping sequence, initiating the connection request to the second terminal in sequence on channels corresponding to the plurality of first frequency points; When a wireless communication connection with the second terminal has not been successfully established, based on the first frequency hopping sequence again, initiating the connection request to the second terminal until a wireless communication connection with the second terminal is successfully established.

4. The method according to claim 2, wherein The initiating the connection request to the second terminal based on the first frequency hopping sequence includes: Based on the order of the plurality of first frequency points in the first frequency hopping sequence, initiating the connection request to the second terminal in sequence on channels corresponding to the plurality of first frequency points; When a wireless communication connection with the second terminal has not been successfully established, based on the first frequency hopping sequence and the second frequency hopping sequence again, initiating a connection request to the second terminal.

5. The method according to claim 1, wherein The initiating a connection request to the second terminal that broadcasts the first broadcast packet based on the first frequency hopping sequence and the second frequency hopping sequence includes: Combining the second frequency hopping sequence and the first frequency hopping sequence into a target frequency hopping sequence; Based on the order of the at least one second frequency point and the plurality of first frequency points included in the target frequency hopping sequence, initiating the connection request to the second terminal in sequence on channels corresponding to the at least one second frequency point and channels corresponding to the plurality of first frequency points.

6. The method according to claim 1, wherein The determination process of the first frequency hopping sequence includes: Determining a first frequency hopping subsequence and a second frequency hopping subsequence; Combine the first frequency hopping subsequence and the second frequency hopping subsequence to form the first frequency hopping sequence, where the first frequency hopping subsequence and the second frequency hopping subsequence are used by the second terminal to determine the first target frequency point.

7. The method according to any one of claims 1-6, characterized in that, The determining the first frequency hopping sequence and the second frequency hopping sequence includes: Determine the listening capability information of the second terminal, where the listening capability information is used to indicate whether the second terminal supports listening for connection requests based on the second frequency hopping sequence; When the listening capability information is used to indicate that the second terminal supports listening for connection requests based on the second frequency hopping sequence, determine the first frequency hopping sequence and the second frequency hopping sequence.

8. The method according to claim 7, wherein The method further includes: When the listening capability information is used to indicate that the second terminal does not support listening for connection requests based on the second frequency hopping sequence, determine the first frequency hopping sequence; Initiate the connection request to the second terminal based on the first frequency hopping sequence.

9. The method according to claim 7, wherein The determining the listening capability information of the second terminal includes: When the second terminal is a historically paired terminal, determine the listening capability information of the second terminal from the listening capability information list, where the listening capability list is used to store the listening capability information of historically paired terminals.

10. The method according to any one of claims 1-6, characterized in that, The method further includes: When the first terminal and the second terminal first establish a wireless communication connection, determine the second frequency hopping sequence based on some frequency points in the first frequency hopping sequence; Based on the wireless communication connection established for the first time, obtain the second frequency hopping sequence determined by the second terminal; When the second frequency hopping sequence determined by the first terminal is the same as the second frequency hopping sequence determined by the second terminal, store the second frequency hopping sequence; The determining process of the second frequency hopping sequence includes: Obtain the stored second frequency hopping sequence.

11. The method according to any one of claims 1 to 6, characterized in that, The connection request is a Bluetooth connection request, and the wireless communication connection is a Bluetooth communication connection; The initiating the connection request to the second terminal that broadcasts the first broadcast message based on the first frequency hopping sequence and the second frequency hopping sequence includes: Initiate the Bluetooth connection request to the second terminal based on the first frequency hopping sequence and the second frequency hopping sequence, where the Bluetooth connection request is used to request to establish the Bluetooth communication connection with the second terminal.

12. A method for establishing a wireless communication connection, characterized in that, The method is used for the second terminal, and the method includes: Broadcast a first broadcast message, where the first broadcast message is used to trigger the first terminal that scans the first broadcast message to initiate a connection request to the second terminal, and the connection request is used to request to establish a wireless communication connection with the second terminal; Determine a first frequency hopping sequence and a second frequency hopping sequence, where the first frequency hopping sequence includes multiple first frequency points, the second frequency hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points; Determine a second target frequency point from the second frequency hopping sequence, and based on the second target frequency point, listen for the connection request initiated by the second terminal; or Determine a first target frequency point from the first frequency hopping sequence, and determine a second target frequency point from the second frequency hopping sequence. Based on the first target frequency point and the second target frequency point, monitor the connection request initiated by the second terminal.

13. The method according to claim 12, wherein The first frequency hopping sequence includes a first frequency hopping subsequence and a second frequency hopping subsequence, and the first target frequency point includes a first target sub-frequency point and a second target sub-frequency point; The determining the first target frequency point from the first frequency hopping sequence includes: Determine the first target sub-frequency point from the first frequency hopping subsequence, and determine the second target sub-frequency point from the second frequency hopping subsequence.

14. The method according to claim 12, wherein The monitoring the connection request initiated by the second terminal based on the first target frequency point and the second target frequency point includes: During the current paging scan period, sequentially monitor the connection request initiated by the second terminal on the channels corresponding to the second target frequency point and the channels corresponding to the first target frequency point; If the connection request is not monitored during the current paging scan period, re-determine the first target frequency point from the first frequency hopping sequence and re-determine the second target frequency point from the second frequency hopping sequence. In the next paging scan period, sequentially monitor the connection request initiated by the second terminal on the channels corresponding to the re-determined second target frequency point and the channels corresponding to the re-determined first target frequency point.

15. The method according to claim 12, wherein The monitoring the connection request initiated by the second terminal based on the first target frequency point and the second target frequency point includes: During the current paging scan period, sequentially monitor the connection request initiated by the second terminal on the channels corresponding to the second target frequency point and the channels corresponding to the first target frequency point; If the connection request is not monitored during the current paging scan period, based on the order of at least one second frequency point included in the second frequency hopping sequence, sequentially monitor the connection request initiated by the second terminal on the channels corresponding to the at least one second frequency point.

16. The method according to claim 14 or 15, characterized in that, The method further includes: If the connection request is monitored during the current paging scan period, based on the connection request, establish a wireless communication connection with the first terminal.

17. The method according to claim 16, wherein, The wireless communication connection is a Bluetooth communication connection; The establishing a wireless communication connection with the first terminal based on the connection request includes: Based on the connection request, establish the Bluetooth communication connection with the first terminal through the Bluetooth function of the first terminal and the Bluetooth function of the second terminal.

18. The method according to any one of claims 12 - 15, characterized in that, The determining the first frequency hopping sequence and the second frequency hopping sequence includes: Receive a second broadcast message of the first terminal, where the second broadcast message carries the initiation capability information of the connection request of the first terminal, and the initiation capability information is used to indicate whether the first terminal supports initiating a connection request based on the second frequency hopping sequence; If the initiation capability information is used to indicate that the first terminal supports initiating a connection request based on the second frequency hopping sequence, determine the first frequency hopping sequence and the second frequency hopping sequence.

19. The method according to claim 18, characterized in that, The method further includes: In a case where the initiating capability information is used to indicate that the first terminal does not support initiating a connection request based on the second hopping sequence, determine the first hopping sequence; Based on the first hopping sequence, monitor the connection request initiated by the second terminal.

20. The method according to any one of claims 12-15, characterized in that, The method further includes: When the first terminal and the second terminal first establish a wireless communication connection, determine the second hopping sequence based on some frequency points in the first hopping sequence; Based on the wireless communication connection established for the first time, obtain the second hopping sequence determined by the first terminal; In a case where the second hopping sequence determined by the first terminal is the same as the second hopping sequence determined by the second terminal, store the second hopping sequence; The process of determining the second hopping sequence includes: Obtain the stored second hopping sequence.

21. An apparatus for establishing a wireless communication connection, characterized in that, The device is deployed in a first terminal, and the device includes: An execution module, configured to perform a packet scanning operation; A first determination module, configured to determine a first hopping sequence and a second hopping sequence when a first broadcast packet is scanned, the first hopping sequence includes a plurality of first frequency points, the second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points; A first initiating module, configured to initiate a connection request to a second terminal that broadcasts the first broadcast packet based on the second hopping sequence, the connection request is used to request to establish a wireless communication connection with the second terminal, and a second target frequency point in the second hopping sequence is used for the second terminal to monitor the connection request, or The first initiating module, configured to initiate a connection request to a second terminal that broadcasts the first broadcast packet based on the first hopping sequence and the second hopping sequence, the connection request is used to request to establish a wireless communication connection with the second terminal, and a first target frequency point in the first hopping sequence and a second target frequency point in the second hopping sequence are used for the second terminal to monitor the connection request.

22. An apparatus for establishing a wireless communication connection, characterized in that, The device is deployed in a second terminal, and the device includes: A broadcast module, configured to broadcast a first broadcast packet, the first broadcast packet is used to trigger a first terminal that scans the first broadcast packet to initiate a connection request to the second terminal, the connection request is used to request to establish a wireless communication connection with the second terminal; A fifth determination module, configured to determine a first hopping sequence and a second hopping sequence, the first hopping sequence includes a plurality of first frequency points, the second hopping sequence includes at least one second frequency point, and the number of second frequency points is less than the number of first frequency points; A sixth determination module, configured to determine a second target frequency point from the second hopping sequence, or determine a first target frequency point from the first hopping sequence and determine a second target frequency point from the second hopping sequence; A first monitoring module, configured to monitor the connection request initiated by the second terminal based on the second target frequency point, or monitor the connection request initiated by the second terminal based on the first target frequency point and the second target frequency point.

23. A terminal, characterized in that, The terminal includes a processor and a memory, and at least one computer instruction is stored in the memory. The at least one computer instruction is loaded and executed by the processor to implement the method for establishing a wireless communication connection as described in any one of claims 1 to 20.

24. A chip, characterized in that, The chip includes a programmable logic circuit and / or program instructions. When the chip runs on a terminal device, the chip is used to implement the method for establishing a wireless communication connection as described in any one of claims 1 to 20.

25. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores at least one computer instruction, and the at least one computer instruction is used to be executed by a processor to implement the method for establishing a wireless communication connection as described in any one of claims 1 to 20.

26. A computer program product, characterized in that, The computer program product includes computer instructions, and the computer instructions are stored in a computer-readable storage medium; a processor reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions to implement the method for establishing a wireless communication connection as described in any one of claims 1 to 20.

Citation Information

Cited By

  • Bluetooth lock communication method, Bluetooth lock communication system and storage medium

    CN120659035A