Method and BLE device for establishing ISO link
Through the initiation state and broadcast state interaction between the master device and the slave device in the BLE device, the broadcast message is scanned and sent to establish the ISO link, which solves the problem of the ISO link relying on the ACL link and achieves a more flexible and efficient ISO link establishment improves the data interaction efficiency and bandwidth utilization of BLE devices.
Patent Information
- Application Number
- CN201980005119.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2019-11-14
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2039-11-14
AI Technical Summary
In the existing technology, the establishment of the ISO link relies on the ACL link, which makes the establishment of the ISO link inflexible and complex, making it difficult to efficiently establish a synchronization link between BLE devices.
Through the master device and the slave device entering the initiation state and the broadcast state respectively, the master device scans the broadcast message of the slave device and sends an instruction message, carrying time information for data interaction, to achieve the establishment of the ISO link, and in the preset number of ISO The link establishment is determined to be complete when at least one data exchange is successful within the interval.
It realizes the flexible establishment of ISO links without relying on other links, and improves the data interaction efficiency and bandwidth utilization between BLE devices.
Smart Images

Figure CN114830699B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present application relate to the field of information technology, and more specifically, to a method for establishing an ISO link and a BLE device. Background Art
[0002] When establishing an isochronous (ISO) link between Bluetooth Low Energy (BLE) devices, it is necessary to first establish an asynchronous connectionless (ACL) link, and then establish an ISO link based on the ACL link. Therefore, the ISO link and the ACL link are bound, and the establishment of the ISO link depends on the ACL link. Therefore, how to establish an ISO link more flexibly has become an urgent problem to be solved. Summary of the invention
[0003] The embodiments of the present application provide a method for establishing an ISO link and a BLE device, which can establish an ISO link more flexibly.
[0004] In a first aspect, a method for establishing an ISO link is provided, the method being used to establish an ISO link between two BLE devices, the method comprising: configuring parameter information of a master device in the two BLE devices, the parameter information being used to establish an ISO link between the master device and a slave device in the two BLE devices; the master device scanning, according to the parameter information, a broadcast message from the slave device, the broadcast message being used to establish the ISO link; if the broadcast message is scanned, the master device sending an indication message to the slave device, the indication message carrying time information for data interaction between the master device and the slave device; the master device interacting with the slave device based on the time information; if at least one data interaction is successful within a preset number of ISO intervals, the master device determining that establishment of the ISO link is complete.
[0005] In a possible implementation, the master device configuration parameter information in the two BLE devices includes: the host layer of the master device sends the parameter information to the link layer of the master device; in response to the parameter information, the link layer sends a response message to the host layer.
[0006] In a possible implementation manner, the time information includes: a time anchor point used for performing the data interaction, and a duration occupied by the ISO link in each ISO interval.
[0007] In a possible implementation, the preset number is 6.
[0008] In a possible implementation, the parameter information includes at least one of the following information: a time interval for scanning the broadcast message, a time window length for scanning the broadcast message, a filtering policy, a peer address type, an address of the slave device, a local address type, the ISO interval, a subinterval in the ISO interval, a data length during the data exchange, a maximum number of subintervals that can be used by the ISO link in the ISO interval, a number of data that needs to be transmitted on the ISO link in the ISO interval, and a maximum number of ISO intervals required to complete the data exchange.
[0009] In a second aspect, a method for establishing an ISO link is provided, and the method is used to establish an ISO link between two BLE devices, and the method includes: a slave device in the two BLE devices configures broadcast parameters; the slave device sends a broadcast message according to the broadcast parameters, and the broadcast message is used to establish the ISO link; the slave device receives an indication message sent by the master device based on the broadcast message, and the indication message carries time information for data interaction between the master device and the slave device; the slave device interacts with the master device based on the time information; if at least one data interaction is successful within a preset number of ISO intervals, the slave device determines that the ISO link is established.
[0010] In one possible implementation, the slave device enters the broadcast state, including: the host layer of the slave device sends broadcast parameters to the link layer of the slave device, and the broadcast parameters are used by the slave device to send the broadcast message; in response to the broadcast parameters, the link layer sends a first reply message to the host layer; the host layer sends a broadcast enable message to the link layer based on the first reply message; the link layer starts the broadcast function according to the broadcast enable message; in response to the broadcast enable message, the link layer sends a second reply message to the host layer.
[0011] In a possible implementation manner, the time information includes: a time anchor point used for performing the data interaction, and a duration occupied by the ISO link in each ISO interval.
[0012] In a possible implementation, the preset number is 6.
[0013] In a possible implementation manner, the broadcast parameter includes at least one of the following information:
[0014] The time interval for sending the broadcast message, the broadcast type, the local address type, the opposite address type, the address of the slave device, the channel used to send the broadcast message, and the filtering strategy.
[0015] According to a third aspect, a BLE device is provided, comprising a functional module for executing the method in the first aspect or any possible implementation manner of the first aspect.
[0016] In a fourth aspect, a BLE device is provided, comprising a functional module for executing the method in the second aspect or any possible implementation manner of the second aspect.
[0017] In a fifth aspect, a BLE chip is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the first aspect or any possible implementation of the first aspect.
[0018] In a sixth aspect, a BLE chip is provided, comprising a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method in the second aspect or any possible implementation of the second aspect.
[0019] In a seventh aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store a computer program, wherein when the computer program is executed by a processor, the processor executes the method in the first aspect or any possible implementation of the first aspect.
[0020] In an eighth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium is used to store a computer program, wherein when the computer program is executed by a processor, the processor executes the method in the second aspect or any possible implementation of the second aspect.
[0021] In a ninth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method in the first aspect or any possible implementation of the first aspect.
[0022] In a tenth aspect, a computer program product is provided, comprising computer program instructions, which enable a computer to execute the method in the above-mentioned second aspect or any possible implementation of the second aspect.
[0023] Based on the above technical solution, after the master device and the slave device enter the initiation state and the broadcast state respectively, the master device scans the broadcast message sent by the slave device, and sends an indication message to the slave device when the broadcast message is scanned, which carries the time information for data interaction between the master device and the slave device. Afterwards, the master device and the slave device interact with each other based on the time information, and complete the establishment of the ISO link after the interaction is successful. It can be seen that by adopting this method, the establishment of the ISO link does not need to rely on the ACL link, which makes the establishment of the ISO link more flexible and efficient, and improves the BLE bandwidth utilization. BRIEF DESCRIPTION OF THE DRAWINGS
[0024] Figure 1 It is a flow chart of the method for establishing an ISO link according to an embodiment of the present application.
[0025] Figure 2 based on Figure 1 A flow chart of a possible implementation of the method shown.
[0026] Figure 3 It is a schematic diagram of the time relationship followed by data exchange between the master device and the slave device.
[0027] Figure 4 It is a schematic diagram of the time relationship followed when two ISO links are established.
[0028] Figure 5 It is a schematic block diagram of a BLE device according to an embodiment of the present application.
[0029] Figure 6 It is a schematic block diagram of a BLE device according to an embodiment of the present application.
[0030] Figure 7 It is a schematic structural diagram of the BLE chip of an embodiment of the present application. DETAILED DESCRIPTION
[0031] The technical solution in this application will be described below in conjunction with the accompanying drawings.
[0032] Before BLE devices can exchange data, they need to establish a suitable link. Among them, the synchronization link between two BLE devices, namely the ISO link, is used to transmit synchronization information between the two. The ISO link gives the highest priority to ensuring the timeliness of data delivery and is used to transmit time-limited information such as sound. Usually, the establishment of an ISO link needs to rely on other reference links, such as an ACL link or a broadcast link. This makes the establishment of an ISO link inflexible and complex.
[0033] To this end, an embodiment of the present application provides a method for establishing an ISO link, which may not rely on the establishment of other links, thereby establishing the ISO link more flexibly.
[0034] Figure 1 : is a flow chart of the method for establishing an ISO link in an embodiment of the present application. The method is used to establish an ISO link between two BLE devices, which are a master device and a slave device. For each BLE device, it can have only the role of a master device, or only the role of a slave device, or can have both the roles of a master device and a slave device. When a BLE device has both the roles of a master device and a slave device, before establishing the ISO link, for example, the user can choose whether the BLE device is a master device or a slave device during the ISO link establishment process. Figure 1 The method shown is performed by a master device (ISO-Master) and a slave device (ISO-Slave). The master device and the slave device can be Figure 1 The method shown in FIG. 1 establishes an ISO link. The master device includes a host layer (Host) and a link layer, and the slave device also includes a host layer and a link layer. Figure 1 As shown, the method 100 includes some or all of the following steps.
[0035] In 101, the master device configures parameter information.
[0036] The master device configures the parameter information to enter the initiation state, wherein the parameter information is used to establish an ISO link between the master device and the slave device.
[0037] The parameter information may include, for example, at least one of the following information:
[0038] The time interval for scanning broadcast messages (LE_Scan_Interval), the time window length for scanning broadcast messages (LE_Scan_Window), the filtering policy (Initiator_Filter_Policy), the peer address type (Peer_Address_Type), the peer address (Peer_Address), the local address type (Own_Address_Type), the ISO time interval (ISO Interval), the length of the sub-interval (Sub Interval) within the ISO Interval, the data length (Data_Length) of the data interaction, the maximum number of Sub Intervals that can be used by the ISO link within the ISO Interval, the amount of data that needs to be transmitted on the ISO link within the ISO Interval, and the maximum number of ISO Intervals required to complete the data interaction.
[0039] Among them, the time interval and the length of the time window for scanning broadcast messages respectively indicate how often the master device scans the broadcast messages and how long each scan is; the ISO time interval (ISO Interval) is a fixed time length, also referred to as ISO interval or ISO length for short, and an ISO interval may include multiple sub-intervals (SubIntervals), also referred to as sub-intervals or sub-lengths for short, and different ISO links may occupy different numbers of Sub Intervals in the ISO Interval. Here, an ISO link may be regarded as an ISO event (ISO Event), and accordingly, one Sub Interval corresponds to one Sub Event; the maximum number of Sub Intervals that can be used by the ISO link in the ISO Interval is called the maximum number of sub events (Number of Sub Events, NSE); the number of data that needs to be transmitted on the ISO link in the ISO Interval is called the burst number (BN); the maximum number of ISO Intervals required to complete data exchange means that the data transmission needs to be completed within the number of ISO Intervals, also known as the flush timeout (FT).
[0040] The specific meanings of these parameters are explained in more detail below.
[0041] The parameter information can be used by the master device to scan the broadcast messages sent by the slave device and to perform data interaction with the slave device in the following steps.
[0042] Alternatively, if Figure 2 As shown, in 101, the host layer of the master device can send parameter information to the link layer of the master device. The parameter information can be carried in the request command for creating an ISO link (HCI_LE_Create_ISO_Command) for example; in response to the parameter information, the link layer of the master device sends a response message (HCI_Command_Status_Event) to the host layer of the master device.
[0043] After receiving the parameter information, the link layer of the master device can scan the broadcast message sent by the link layer of the slave device based on the parameter information, and perform data exchange with the link layer of the slave device in subsequent steps.
[0044] In 102, the slave device configures broadcast parameters.
[0045] The slave device configures broadcast parameters and enters the broadcast state to send a broadcast message to the master device according to the broadcast parameters.
[0046] Alternatively, if Figure 2 As shown, in 102, the host layer of the slave device may send broadcast parameters (HCI_LE_Set_ISO_Advertising_Parameters) to the link layer of the slave device; in response to the broadcast parameters, the link layer of the slave device sends a first response message (HCI_Command_Complete_Event) to the host layer of the slave device.
[0047] The broadcast parameters include, for example, at least one of the following information: the time interval for sending broadcast messages, the broadcast type (Advertising_Type), the local address type (Own_Address_Type), the peer address type (Peer_Address_Type), the peer address (Peer_Address), the local address (Own_Address), the channel used to send broadcast messages (Advertising_Channel_Map), the filtering policy (Advertising_Filter_Policy), etc.
[0048] The time interval for sending the broadcast message may include a maximum broadcast time interval (Advertising_Interval_Max) and a minimum broadcast time interval (Advertising_Interval_Min).
[0049] The broadcast parameter is used to send a broadcast message from the device. After the link layer of the slave device receives the broadcast parameter sent by the host layer of the slave device, it can send a broadcast message based on the broadcast parameter.
[0050] Further, the host layer of the slave device sends a broadcast enable message (HCI_LE_Set_ISO_Advertising_Enable) to the link layer of the slave device based on the first response message; in response to the broadcast enable message, the link layer of the slave device sends a second response message (HCI_Command_Complete_Event) to the host layer of the slave device.
[0051] The broadcast enable message is used to enable the broadcast function of the slave device. At this point, the broadcast function of the slave device is started, and the slave device enters the broadcast state.
[0052] Afterwards, the slave device that has entered the broadcast state needs to send and scan broadcast messages with the master device that has entered the initiator state to enter the ISO state.
[0053] In 103, the slave device sends a broadcast message (ADV_ISO_IND) to the master device according to the broadcast parameters.
[0054] In 104 , the master device scans the broadcast message from the slave device according to the parameter information in 101 .
[0055] In 103 and 104, the slave device sends a broadcast message, and the master device scans the broadcast message sent by the slave device. The broadcast message is used to establish an ISO link between the master device and the slave device. If the master device scans the broadcast message from the slave device for establishing an ISO link, the master device executes 105.
[0056] In 105, the master device sends an indication message (INIT_ISO_IND) to the slave device.
[0057] In 106, the slave device receives the indication message sent by the master device.
[0058] It should be noted that the master device can scan broadcast messages sent by multiple devices, but only replies to the slave device with the indication message when a broadcast message sent by the slave device is scanned.
[0059] The indication message carries time information used for data interaction between the master device and the slave device.
[0060] The time information includes, for example, a time anchor point used for data interaction, a duration (ISOduration) occupied by the ISO link in each ISOInterval, and other information.
[0061] The time anchor point of the first data interaction can be determined based on the ISO Interval, and the master device can use the timestamp that can be divided by the ISO Interval as the time anchor point for data interaction between the master device and the slave device. For example, the time of system startup is 0, and the ISO Interval is assumed to be 100. If the master device calculates the time anchor point at 65, the time of the time anchor point should be 100. If the master device calculates the time anchor point at 155, the time of the time anchor point should be 200. The time anchor point of the second data interaction can be determined based on the time anchor point of the first data interaction and the ISOInterval.
[0062] The header of the broadcast message and the indication message may carry a specific PDU type identifier to indicate that the broadcast message and the indication message are used to establish an ISO link using the method of the embodiment of the present application. For example, the first 4 bits in the header of the broadcast message and the indication message may be 1010b.
[0063] After the master device sends the indication message to the slave device, it enters the ISO master device state (ISO-Master state), and after the slave device receives the indication message, it enters the ISO slave device state (ISO-Slave state).
[0064] Afterwards, the master device and the slave device may exchange data with each other based on the time information, that is, execute 107 and 108 .
[0065] In 107, the master device exchanges data with the slave device based on the time information.
[0066] In 108, the slave device exchanges data with the master device based on the time information.
[0067] When exchanging data, the master device and the slave device can follow, for example, Figure 3 According to the time relationship shown, ISO protocol data units (PDUs) are exchanged.
[0068] Figure 3 2 ISO intervals (ISOInterval) are shown in FIG. Figure 3 As shown, the time anchor point is the start time of the ISO interval. The time anchor point can be determined based on the time when the master device sends the indication message in 105. For example, the first time anchor point can be obtained by adding a preset time offset (Win Offset) to the time when the master device sends the indication message.
[0069] exist Figure 3 In the figure, NSE=2, which means that the ISO link can occupy up to 2 sub-intervals in each ISO Interval. If the data transmission is completed, the Sub Interval can be terminated early. In each Sub Interval, the master device and the slave device can only send data once. M→S means that the master device sends one data to the slave device, and S→M means that the slave device sends one data to the master device. In each Sub Interval, the master device and the slave device complete one data exchange.
[0070] BN=1 means that the number of new data to be transmitted in one ISO Interval is 1. BN counts for the master device and the slave device separately, that is, in one ISO Interval, the master device needs to send 1 data to the slave device, and the slave device needs to send 1 data to the master device.
[0071] FT=1, indicating that each data needs to be transmitted within 1 ISO Interval.
[0072] Between adjacent M→S and S→M, there needs to be an Inter Frame Space (IFS) length. Between the end of data interaction in each Sub Interval and the start of data interaction in the next Sub Interval, there needs to be at least a Minimum Sub-event Space (TMSS) length.
[0073] The number of retransmissions for each data has an upper limit, namely Figure 3 The number of retransmissions (RTN) shown in Figure 1. RTN = 1 means that data can be retransmitted once at most. If data transmission is successful or the number of data retransmissions reaches RTN, the transmission of the old data is stopped and the next new data transmission is started.
[0074] Taking the data transmission of the master device in ISO interval 1 as an example, the master device sends a data to the slave device in subinterval 1 of ISO interval 1, that is, M→S shown in subinterval 1. If the transmission fails, the master device can resend the same data to the slave device in subinterval 2 of ISO interval 1. However, if the retransmission fails, the master device will no longer continue to send the same data to the slave device. Of course, if the master device successfully transmits in ISO interval 1, it is not necessary to retransmit the data in subinterval 2.
[0075] The duration of the ISO link in the ISO Interval, i.e., the duration of the ISO link, is Figure 3 For example, it includes the duration of subinterval 1 and subinterval 2.
[0076] In 109, if at least one data exchange is successful within a preset number of ISO Intervals, the master device determines that the ISO link establishment is complete.
[0077] In 110, if at least one data interaction is successful within a preset number of ISO Intervals, the slave device determines that the ISO link establishment is complete.
[0078] If the master device and the slave device have at least one successful data exchange within a preset number of ISO Intervals, it is considered that the ISO link is successfully established.
[0079] The preset number may be, for example, 6. That is, if data interaction succeeds once within 6 ISO Intervals, it is considered that the ISO link is established successfully.
[0080] After that, the master device and the slave device can perform normal data exchange and link maintenance to realize their respective functions.
[0081] like Figure 2 As shown, after the ISO link is successfully established, the link layer of the master device sends a setup completion command to the host layer of the master device to indicate that the ISO link is successfully established. Correspondingly, the link layer of the slave device sends a setup completion command to the host layer of the slave device to indicate that the ISO link is successfully established.
[0082] Afterwards, the master device and the slave device can perform normal data exchange and link maintenance through the ISO link.
[0083] In this embodiment, after the master device and the slave device enter the initiation state and the broadcast state respectively, the master device scans the broadcast message sent by the slave device, and sends an indication message to the slave device when the broadcast message is scanned, wherein the indication message carries the time information for data interaction between the master device and the slave device. Afterwards, the master device and the slave device perform data interaction based on the time information, and complete the establishment of the ISO link after the interaction is successful.
[0084] It can be seen that the master device can directly enter the ISO-Master state from the initiating state, and the slave device can directly enter the ISO-Slave state from the broadcasting state. The establishment of the ISO link does not need to rely on other reference links, making the establishment of the ISO link more flexible and efficient. In addition, since there is no need to occupy extra bandwidth to establish other reference links, the bandwidth utilization rate is also improved.
[0085] The above describes a method for establishing an ISO link between a master device and a slave device. In actual applications, the master device can establish ISO links with multiple slave devices. For example, the master device establishes ISO link 1 with slave device A, and establishes ISO link 2 with slave device B. Both ISO link 1 and ISO link 2 can be established through Figures 1 to 3 The method shown is now set up.
[0086] If the master device is a mobile phone, and slave device A and slave device B are the left and right earphones in a Bluetooth headset, then the master device needs to establish two ISO links with the left and right earphones respectively.
[0087] Figure 4 The figure shows a time diagram of establishing two ISO links. ISO link 1 is established between the master device and slave device A, and ISO link 2 is established between the master device and slave device B. ISO interval 1 is used as an example for explanation.
[0088] NSE=1, indicating that ISO link 1 occupies at most 1 Sub Interval in ISO interval 1, and ISO link 2 occupies at most 1 Sub Interval in ISO interval 1.
[0089] BN=1, which means that within ISO interval 1, during the duration of ISO link 1 occupation, the master device needs to send a data to slave device A, and slave device A needs to send a data to the master device; during the duration of ISO link 2 occupation, the master device needs to send a data to slave device B, and slave device B needs to send a data to the master device.
[0090] FT=1, indicating that the data sent by the master device to slave device A must be transmitted within 1 ISO Interval, and the data sent by the master device to slave device B must be transmitted within 1 ISO Interval. The data sent by slave device A to the master device must be transmitted within 1 ISO Interval, and the data sent by slave device B to the master device must be transmitted within 1 ISO Interval.
[0091] RTN=0 means that each data can be transmitted only once and cannot be retransmitted.
[0092] The master device passes the above Figure 1 After establishing ISO link 1 with slave device A, continue with the above Figure 1 The process shown in FIG. 1 establishes ISO link 2 with slave device B. The time anchor point corresponding to the process of establishing ISO link 2 can be determined according to the time anchor point corresponding to the process of establishing ISO link 1 and the duration occupied by ISO link 1 (duration of ISO link 1).
[0093] exist Figure 4 In the example, the distance between the position occupied by ISO link 1 in ISO interval 1 and the position occupied by ISO link 1 in ISO interval 2 is the length of one ISO interval. The distance between the position occupied by ISO link 2 in ISO interval 1 and the position occupied by ISO link 2 in ISO interval 2 is also the length of one ISO interval.
[0094] In this way, the master device can establish multiple ISO links with multiple slave devices in sequence. The establishment of each ISO link does not need to rely on other reference links, so it is more flexible and efficient, and improves the BLE bandwidth utilization.
[0095] After receiving the data sent by the master device through ISO link 1 and ISO link 2 respectively, slave device A and slave device B cache the data and need to start processing the received data at the same time at a certain moment.
[0096] In the embodiments of the present application, the sequence numbers of the above processes do not mean the order of execution. The order of execution of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0097] Furthermore, under the premise of no conflict, the various embodiments and / or the technical features in the various embodiments described in the present application may be arbitrarily combined with each other, and the technical solutions obtained after the combination shall also fall within the protection scope of the present application.
[0098] The above describes in detail the data transmission method according to the embodiment of the present application. Figures 5 to 7 , describing the technical features described in the device and method embodiments according to the embodiments of the present application are applicable to the following device embodiments.
[0099] Figure 5 is a schematic block diagram of a BLE device 500 according to an embodiment of the present application. The BLE device 500 is a master device. Figure 5 As shown, the BLE device 500 includes:
[0100] A processing unit 510 is used to configure parameter information, where the parameter information is used to establish an ISO link between the master device and the slave device;
[0101] The transceiver unit 520 is used to scan the broadcast message from the slave device according to the parameter information, where the broadcast message is used to establish the ISO link;
[0102] The transceiver unit 520 is further configured to, if the broadcast message is scanned, send an indication message to the slave device, wherein the indication message carries time information for data interaction between the master device and the slave device;
[0103] The transceiver unit 520 is also used to perform data exchange with the slave device based on the time information;
[0104] The processing unit 510 is further configured to determine that the ISO link establishment is completed when at least one data interaction is successful within a preset number of ISO intervals.
[0105] Therefore, after the master device and the slave device enter the initiation state and the broadcast state respectively, the master device scans the broadcast message sent by the slave device, and sends an indication message to the slave device when the broadcast message is scanned, which carries the time information for data interaction between the master device and the slave device. Afterwards, the master device and the slave device interact with each other based on the time information, and complete the establishment of the ISO link after the interaction is successful. It can be seen that with this method, the establishment of the ISO link does not need to rely on the ACL link, which makes the establishment of the ISO link more flexible and efficient, and improves the BLE bandwidth utilization.
[0106] Optionally, the processing unit 510 is specifically used to: control the transceiver unit 520 to send the parameter information to the link layer of the master device at the host layer of the master device; in response to the parameter information, control the transceiver unit 520 to send a response message to the host layer at the link layer.
[0107] Optionally, the time information includes: a time anchor point used for performing the data interaction, and a duration occupied by the ISO link in each ISO interval.
[0108] Optionally, the preset number is 6.
[0109] Optionally, the parameter information includes at least one of the following information: a time interval for scanning the broadcast message, a time window length for scanning the broadcast message, a filtering strategy, a peer address type, an address of the slave device, a local address type, the ISO interval, a subinterval in the ISO interval, a data length during the data exchange, a maximum number of subintervals that can be used by the ISO link within the ISO interval, a number of data that needs to be transmitted on the ISO link within the ISO interval, and a maximum number of ISO intervals required to complete the data exchange.
[0110] It should be understood that the BLE device 500 can execute the corresponding operations performed by the master device in the above method embodiment, which will not be described again for the sake of brevity.
[0111] Figure 6 is a schematic block diagram of a BLE device 600 according to an embodiment of the present application. The BLE device 600 is a slave device. Figure 6 As shown, the BLE device 600 includes a transceiver unit 620 and a processing unit 610.
[0112] The processing unit 610 is used to: configure broadcast parameters;
[0113] The transceiver unit 620 is used to: send a broadcast message according to the broadcast parameter, the broadcast message is used to establish an ISO link between the slave device and the master device; receive an indication message sent by the master device based on the broadcast message, the indication message carries time information for data interaction between the master device and the slave device; and perform data interaction with the master device based on the time information;
[0114] The processing unit 610 is further configured to: determine that the ISO link establishment is completed when there is at least one successful data interaction within a preset number of ISO intervals.
[0115] Therefore, after the master device and the slave device enter the initiation state and the broadcast state respectively, the master device scans the broadcast message sent by the slave device, and sends an indication message to the slave device when the broadcast message is scanned, which carries the time information for data interaction between the master device and the slave device. Afterwards, the master device and the slave device interact with each other based on the time information, and complete the establishment of the ISO link after the interaction is successful. It can be seen that with this method, the establishment of the ISO link does not need to rely on the ACL link, which makes the establishment of the ISO link more flexible and efficient, and improves the BLE bandwidth utilization.
[0116] Optionally, the transceiver unit 620 is specifically used to: send broadcast parameters from the host layer of the slave device to the link layer of the slave device, the broadcast parameters are used by the slave device to send the broadcast message; in response to the broadcast parameters, send a first reply message from the host layer to the link layer; based on the reply message, send a broadcast enable message from the host layer to the link layer; at the link layer, start the broadcast function according to the broadcast enable message; in response to the broadcast enable message, send a second reply message from the link layer to the host layer.
[0117] Optionally, the time information includes: a time anchor point used for performing the data interaction, and a duration occupied by the ISO link in each ISO interval.
[0118] Optionally, the preset number is 6.
[0119] Optionally, the broadcast parameters include at least one of the following information: a time interval for sending the broadcast message, a broadcast type, a local address type, a peer address type, an address of the slave device, a channel for sending the broadcast message, and a filtering strategy.
[0120] It should be understood that the BLE device 600 can execute the corresponding operations performed by the slave device in the above method embodiment, which will not be described in detail here for the sake of brevity.
[0121] Figure 7 It is a schematic structural diagram of a BLE chip 700 according to an embodiment of the present application. Figure 7 The BLE chip 700 shown includes a processor 710, a memory 720, and a transceiver 730. The processor 710 can call and run a computer program from the memory 720 to implement the method in the embodiment of the present application. The processor 710 can control the transceiver 730 to send and receive data with other BLE devices or BLE chips.
[0122] The transceiver 730 may include an input interface 731 and an output interface 732. The processor 710 may control the input interface 731 and the output interface 732 to communicate with other BLE devices or BLE chips, thereby obtaining information and data from other BLE devices or BLE chips, or output information or data to other BLE devices or BLE chips.
[0123] Optionally, the BLE chip 700 may specifically be the master device in the embodiments of the present application, and the BLE chip 700 may implement the corresponding processes implemented by the master device in each method of the embodiments of the present application, which will not be described in detail here for the sake of brevity.
[0124] Optionally, the BLE chip 700 may specifically be a slave device in the embodiments of the present application, and the BLE chip 700 may implement the corresponding processes implemented by the slave device in each method of the embodiments of the present application, which will not be described in detail here for the sake of brevity.
[0125] The above-mentioned processor may be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above-mentioned method embodiment can be completed by the hardware integrated logic circuit or software instructions in the processor. The above-mentioned processor may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application-specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The methods, steps and logic block diagrams disclosed in the embodiments of the present application can be implemented or executed. The general-purpose processor may be a microprocessor or the processor may also be any conventional processor, etc. The steps of the method disclosed in the embodiments of the present application can be directly embodied as a hardware decoding processor to be executed, or the hardware and software modules in the decoding processor are combined and executed. The software module may be located in a mature storage medium in the field such as a random access memory, a flash memory, a read-only memory, a programmable read-only memory or an electrically erasable programmable memory, a register, etc. The storage medium is located in a memory, and the processor reads the information in the memory and completes the steps of the above-mentioned method in combination with its hardware.
[0126] The above-mentioned memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), which is used as an external cache. By way of example and not limitation, many forms of RAM are available, such as static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM), and direct RAMbus RAM (DRRAM).
[0127] The embodiment of the present application also provides a computer-readable storage medium for storing a computer program. The computer-readable storage medium can be applied to the BLE device in the embodiment of the present application, and the computer program enables the computer to execute the corresponding process implemented by the master device or the slave device in each method of the embodiment of the present application, which will not be described in detail for the sake of brevity.
[0128] The embodiment of the present application also provides a computer program product, including computer program instructions. The computer program product can be applied to the BLE device in the embodiment of the present application, and the computer program instructions enable the computer to execute the corresponding process implemented by the master device or the slave device in each method of the embodiment of the present application, which will not be repeated here for the sake of brevity.
[0129] The terms "system" and "network" in the embodiments of the present invention are often used interchangeably herein. The term "and / or" herein is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B may represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " herein generally indicates that the associated objects before and after are in an "or" relationship.
[0130] In the embodiment of the present invention, "B corresponding to A" means that B is associated with A, and B can be determined according to A. However, it should be understood that determining B according to A does not mean determining B only according to A, and B can also be determined according to A and / or other information.
[0131] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0132] The specific examples in the embodiments of the present application are only to help those skilled in the art to better understand the embodiments of the present application, rather than to limit the scope of the embodiments of the present application. Those skilled in the art may make various improvements and modifications based on the above embodiments, and these improvements or modifications shall all fall within the protection scope of the present application.
[0133] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for establishing a synchronous ISO link, characterized in that: The method is used to establish an ISO link between multiple low-power Bluetooth BLE devices, where the number of the multiple BLE devices is greater than 2, and the method includes: Configuration parameter information of a master device among the multiple BLE devices, where the parameter information is used to establish multiple ISO links between the master device and multiple slave devices among the multiple BLE devices; The master device scans broadcast messages from the multiple slave devices according to the parameter information, where the broadcast messages are used to establish the multiple ISO links; If the broadcast message is scanned, the master device sends an indication message to the multiple slave devices, wherein the indication message carries time information for data interaction between the master device and the multiple slave devices, wherein the time information includes: a time anchor point of each ISO link used for the data interaction, and a duration occupied by each ISO link in each ISO interval; a time anchor point of a second slave device among the multiple slave devices is determined according to a time anchor point of a first slave device among the multiple slave devices and a duration occupied by an ISO link; The master device performs data exchange with each slave device based on the time information; If at least one data interaction is successful within a preset number of ISO intervals, the master device determines that the ISO link establishment is complete.
2. The method according to claim 1, characterized in that: The master device configuration parameter information of the multiple BLE devices includes: The host layer of the master device sends the parameter information to the link layer of the master device; In response to the parameter information, the link layer sends a response message to the host layer.
3. The method according to claim 1 or 2, characterized in that: The preset number is 6.
4. The method according to claim 1 or 2, characterized in that: The parameter information includes at least one of the following information: The time interval for scanning the broadcast message, the length of the time window for scanning the broadcast message, the filtering strategy, the address type of the other end, the address type of the local end, the address of the slave device, the ISO interval, the subinterval in the ISO interval, the data length during the data exchange, the maximum number of subintervals that can be used by the ISO link in the ISO interval, the amount of data that needs to be transmitted on the ISO link in the ISO interval, and the maximum number of ISO intervals required to complete the data exchange.
5. A method for establishing a synchronous ISO link, characterized in that: The method is used to establish an ISO link between multiple low-power Bluetooth BLE devices, where the number of the multiple BLE devices is greater than 2, and the method includes: A slave device among the multiple BLE devices configures broadcast parameters; The slave device sends a broadcast message according to the broadcast parameter, where the broadcast message is used to establish the ISO link between the slave device and a master device among the multiple BLE devices; The slave device receives an indication message sent by the master device based on the broadcast message, wherein the indication message carries time information for data interaction between the master device and the slave device, wherein the time information includes: a time anchor point of the ISO link for the data interaction, and a duration of the ISO link in each ISO interval; the time anchor point of the slave device is determined according to the time anchor points of other slave devices in the multiple BLE devices and the duration of the ISO link; The slave device exchanges data with the master device based on the time information; If at least one data interaction is successful within a preset number of ISO intervals, the slave device determines that the ISO link establishment is complete.
6. The method according to claim 5, characterized in that The slave device configures broadcast parameters, including: The host layer of the slave device sends a broadcast parameter to the link layer of the slave device, where the broadcast parameter is used by the slave device to send the broadcast message; In response to the broadcast parameter, the link layer sends a first response message to the host layer; The host layer sends a broadcast enable message to the link layer based on the first response message; The link layer starts a broadcast function according to the broadcast enable message; In response to the broadcast enable message, the link layer sends a second response message to the host layer.
7. The method according to claim 5 or 6, characterized in that: The preset number is 6.
8. The method according to claim 5 or 6, characterized in that: The broadcast parameters include at least one of the following information: The time interval for sending the broadcast message, the broadcast type, the local address type, the opposite address type, the address of the slave device, the channel used to send the broadcast message, and the filtering strategy.
9. A low-power Bluetooth BLE device, characterized in that: The BLE device is a main device, and the BLE device includes: A processing unit, configured to configure parameter information, wherein the parameter information is used to establish a plurality of ISO links between the master device and a plurality of slave devices; a transceiver unit, configured to scan broadcast messages from the plurality of slave devices according to the parameter information, wherein the broadcast messages are used to establish a plurality of ISO links; The transceiver unit is further used to, if the broadcast message is scanned, send an indication message to the multiple slave devices, wherein the indication message carries time information for data interaction between the master device and the multiple slave devices, wherein the time information includes: a time anchor point of each ISO link used for the data interaction, and a duration occupied by each ISO link in each ISO interval; a time anchor point of a second slave device among the multiple slave devices is determined according to a time anchor point of a first slave device among the multiple slave devices and a duration occupied by an ISO link; The transceiver unit is further used to perform data exchange with each slave device based on the time information; The processing unit is further configured to determine that the establishment of the ISO link is completed when at least one data interaction is successful within a preset number of ISO intervals.
10. The BLE device according to claim 9, characterized in that: The processing unit is specifically used for: Control the transceiver unit to send the parameter information to the link layer of the master device at the host layer of the master device; In response to the parameter information, the transceiver unit is controlled to send a response message to the host layer at the link layer.
11. The BLE device according to claim 9 or 10, characterized in that: The preset number is 6.
12. The BLE device according to claim 9 or 10, characterized in that: The parameter information includes at least one of the following information: The time interval for scanning the broadcast message, the length of the time window for scanning the broadcast message, the filtering strategy, the address type of the opposite end, the address of the slave device, the address type of the local end, the ISO interval, the subinterval in the ISO interval, the data length during the data exchange, the maximum number of subintervals that can be used by the ISO link in the ISO interval, the amount of data that needs to be transmitted on the ISO link in the ISO interval, and the maximum number of ISO intervals required to complete the data exchange.
13. A low-power Bluetooth BLE device, characterized in that: The BLE device is a slave device, and the BLE device includes: A processing unit, used to configure broadcast parameters; a transceiver unit, configured to send a broadcast message according to the broadcast parameter, wherein the broadcast message is used to establish an ISO link between the slave device and the master device; The transceiver unit is further used to receive an indication message sent by the master device based on the broadcast message, wherein the indication message carries time information for data interaction between the master device and the slave device, wherein the time information includes: a time anchor point of the ISO link used for the data interaction, and a duration of the ISO link occupied in each ISO interval; the time anchor point of the slave device is determined according to the time anchor points of other slave devices and the duration of the ISO link occupied; The transceiver unit is further used to perform data exchange with the master device based on the time information; The processing unit is further configured to determine that the establishment of the ISO link is completed when at least one data interaction is successful within a preset number of ISO intervals.
14. The BLE device according to claim 13, characterized in that: The transceiver unit is specifically used for: Sending broadcast parameters at the host layer of the slave device to the link layer of the slave device, where the broadcast parameters are used by the slave device to send the broadcast message; In response to the broadcast parameter, sending a first response message at the host layer to the link layer; Based on the response message, sending a broadcast enable message at the host layer to the link layer; At the link layer, starting a broadcast function according to the broadcast enable message; In response to the broadcast enable message, a second response message is sent at the link layer to the host layer.
15. The BLE device according to claim 13 or 14, characterized in that: The preset number is 6.
16. The BLE device according to claim 13 or 14, characterized in that: The broadcast parameters include at least one of the following information: The time interval for sending the broadcast message, the broadcast type, the local address type, the opposite address type, the address of the slave device, the channel used to send the broadcast message, and the filtering strategy.
17. A low-power Bluetooth BLE chip, characterized in that: The invention comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 1 to 4.
18. A low-power Bluetooth BLE chip, characterized in that: The method comprises a processor and a memory, wherein the memory is used to store a computer program, and the processor is used to call and run the computer program stored in the memory to execute the method according to any one of claims 5 to 8.
19. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 1 to 4.
20. A computer-readable storage medium, characterized in that: The computer-readable storage medium is used to store a computer program, wherein when the computer program is executed by a processor, the processor is caused to perform the method according to any one of claims 5 to 8.
