Communication processing method, apparatus, device, storage medium, and chip

By negotiating target communication parameters through the communication controllers of master and slave devices, the problem of untimely prediction of connection intervals in Bluetooth Low Energy (BLE) devices is solved, and more efficient data transmission is achieved.

CN122160743APending Publication Date: 2026-06-05ACTIONS ZHUHAI TECH CO

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
ACTIONS ZHUHAI TECH CO
Filing Date
2024-12-05
Publication Date
2026-06-05

AI Technical Summary

Technical Problem

Bluetooth Low Energy (BLE) devices cannot accurately and timely estimate connection intervals during data transmission, resulting in untimely or frequent handovers and affecting data transmission efficiency.

Method used

The communication controllers of the master and slave devices negotiate target communication parameters, including connection intervals. They determine data transmission requirements using preset critical thresholds and buffer sizes, and proactively adjust connection intervals to avoid the host requesting connection intervals alone.

Benefits of technology

It improves the convenience and accuracy of communication processing, increases data transmission efficiency, and avoids problems such as untimely or unreasonable estimation of connection intervals.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN122160743A_ABST
    Figure CN122160743A_ABST
Patent Text Reader

Abstract

The present disclosure relates to a communication processing method, apparatus, device, storage medium and chip, wherein the method comprises: determining, by a communication controller of a master device, a target communication parameter, the target communication parameter comprising at least a connection interval, the connection interval being determined based on a preset critical threshold; and sending, to a communication controller of a slave device, a control command, the control command comprising the target communication parameter, the target communication parameter being used to control data communication between the master device and the slave device. In this way, technical problems in the related art, such as the inability to timely and accurately estimate a specific connection interval, unsatisfactory switching effect, and the impact on data transmission efficiency, can be solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of communication technology, and in particular to a communication processing method, apparatus, device, storage medium, and chip. Background Technology

[0002] Bluetooth, as a short-range wireless connectivity technology, enables convenient, flexible, low-cost, and low-power data communication between devices, making Bluetooth devices widely used in production and daily life.

[0003] Currently, in Bluetooth Low Energy (BLE) master-slave devices, when exchanging data, the slave device typically requests a connection interval, which is determined by the slave device's host. However, in practice, it has been found that the master and slave devices switch connection intervals based on the amount of data exchanged within a certain time period. Furthermore, the host's requirement for data transmission is to complete the data transmission within the shortest possible time interval, or within an agreed-upon time interval. This inability to accurately and promptly predict the specific connection interval leads to untimely or frequent switching, resulting in unsatisfactory switching performance and impacting data transmission efficiency. Summary of the Invention

[0004] To overcome the problems existing in the related technologies, this disclosure provides a communication processing method, apparatus, device, storage medium, and chip to solve the technical problems in the above-mentioned related technologies, such as the inability to timely and accurately predict the specific connection interval, unsatisfactory switching effect, and impact on data transmission efficiency.

[0005] According to a first aspect of the present disclosure, a communication processing method is provided, applied to a communication controller of a master device, the method comprising: Determine target communication parameters, wherein the target communication parameters include at least a connection interval, which is determined based on a preset critical threshold; A control command is sent to the communication controller of the slave device. The control command includes the target communication parameters, which are used to control the data communication between the master device and the slave device.

[0006] In some embodiments, when the master device needs to send a data packet to the slave device, determining the target communication parameters includes: The amount of data to be transmitted by the master device and the transmission reference threshold of the master device are obtained. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the communication controller of the master device. The transmission reference threshold of the master device is determined based on the cache size of the communication controller of the master device. The target communication parameters are determined based on the amount of data to be transmitted by the master device and the transmission reference threshold of the master device.

[0007] In some embodiments, when the slave device needs to send a data packet to the master device, determining the target communication parameters includes: Receive a request command sent by the communication controller of the slave device, the request command being used to request the determination of the target communication parameters; In response to the request command, the target communication parameters are determined.

[0008] In some embodiments, the request command includes the preset critical threshold, which is determined by the communication controller of the slave device based on the amount of data to be transmitted by the slave device and the transmission reference threshold of the slave device. The amount of data to be transmitted by the slave device is the number of data packets to be sent to the master device that are cached in the communication controller of the slave device. The transmission reference threshold of the slave device is determined based on the cache size of the communication controller of the slave device.

[0009] In some embodiments, When the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or, When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

[0010] In some embodiments, the transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

[0011] In some embodiments, the target communication parameter further includes an update time point, which indicates the time point at which the connection interval is actually updated.

[0012] In some embodiments, the target communication parameters are determined based on the communication bandwidth between the master device and the slave device within the connection interval.

[0013] In some embodiments, the method further includes: Obtain the sending time of the target command, which includes the control command or the request command; The sending time of the target command is determined as the update timing of the connection interval, and the update timing is used to indicate the time when the connection interval needs to be updated.

[0014] According to a second aspect of the present disclosure, a communication processing method is provided, applied to a communication controller of a slave device, the method comprising: The system receives control commands sent by the communication controller of the master device. The control commands include target communication parameters, which include at least a connection interval. The connection interval is determined based on a preset critical threshold. The target communication parameters are used to control data communication between the master device and the slave device.

[0015] In some embodiments, the target communication parameters further include an update time point, the update time point being used to indicate the actual time point at which the connection interval is updated, and the method further includes: In response to the control command, the connection interval is updated based on the update time point.

[0016] In some embodiments, before receiving a control command sent by the communication controller of the master device when the slave device needs to send a data packet to the master device, the method further includes: A request command is sent to the communication controller of the master device, the request command being used to request the master device to determine the target communication parameters.

[0017] In some embodiments, the request command includes the preset threshold, and the method further includes: The amount of data to be transmitted from the slave device and the transmission reference threshold of the slave device are obtained. The amount of data to be transmitted from the slave device is the number of data packets to be sent to the master device that are cached in the communication controller of the slave device. The transmission reference threshold of the slave device is determined based on the cache size of the communication controller of the slave device. The preset critical threshold is determined based on the amount of data to be transmitted by the slave device and the transmission reference threshold of the slave device.

[0018] In some embodiments, when the master device needs to send a data packet to the slave device, the target communication parameter is determined by the master device's communication controller based on the amount of data to be transmitted by the master device and the master device's transmission reference threshold. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the master device's communication controller, and the master device's transmission reference threshold is determined based on the cache size of the master device's communication controller.

[0019] In some embodiments, When the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or, When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

[0020] In some embodiments, the transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

[0021] According to a third aspect of the present disclosure, a communication processing apparatus is provided, applied to a communication controller of a host device, the apparatus comprising: The processing module is configured to determine target communication parameters, the target communication parameters including at least a connection interval, the connection interval being determined based on a preset critical threshold; The transceiver module is configured to send control commands to the communication controller of the slave device. The control commands include the target communication parameters, which are used to control the data communication between the master device and the slave device.

[0022] For any content not introduced or described in the embodiments of this disclosure, please refer to the relevant descriptions in the method embodiments provided in the first aspect above. This disclosure does not limit the scope of the embodiments.

[0023] According to a fourth aspect of the present disclosure, a communication processing apparatus is provided, applied to a communication controller of a slave device, the apparatus comprising: The transceiver module is configured to receive control commands sent by the communication controller of the master device. The control commands include target communication parameters, which include at least a connection interval. The connection interval is determined based on a preset critical threshold. The target communication parameters are used to control data communication between the master device and the slave device.

[0024] For any content not introduced or described in the embodiments of this disclosure, please refer to the relevant descriptions in the method embodiments provided in the second aspect above. This disclosure does not limit the scope of the embodiments.

[0025] According to a fifth aspect of the present disclosure, an electronic device is provided, comprising: a processor; a memory for storing processor-executable instructions; wherein the processor is configured to execute the executable instructions to implement the steps of the communication processing method provided in the first aspect; or, the processor is configured to execute the executable instructions to implement the steps of the communication processing method provided in the second aspect.

[0026] According to a sixth aspect of the present disclosure, a computer-readable storage medium is provided, having stored thereon computer program instructions that, when executed by a processor, implement the steps of the communication processing method provided in the first aspect of the present disclosure; or, when executed by a processor, the program instructions implement the steps of the communication processing method provided in the second aspect of the present disclosure.

[0027] According to a seventh aspect of the present disclosure, a chip is provided, comprising: a processor and an interface; the processor is configured to read instructions to execute the steps of the communication processing method provided in the first aspect; or, the processor is configured to read instructions to execute the steps of the communication processing method provided in the second aspect.

[0028] The technical solutions provided by the embodiments of this disclosure can include the following beneficial effects: the communication controller of the master device can determine target communication parameters, the target communication parameters including at least a connection interval, the connection interval being determined based on a preset critical threshold; and send a control command to the communication controller of the slave device, the control command including the target communication parameters, the target communication parameters being used to control data communication between the master device and the slave device. In this way, the master and slave devices actively negotiate / adjust the corresponding target communication parameters through the underlying (physical layer) communication controller, avoiding the technical problems of related technologies that request connection intervals through the slave device's host, such as the inability to timely and accurately estimate the specific connection interval, unsatisfactory switching effects, and impact on data transmission efficiency. This is beneficial for improving the convenience and accuracy of communication processing and for improving data transmission efficiency. It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit this disclosure. Attached Figure Description

[0029] The accompanying drawings, which are incorporated in and form a part of this specification, illustrate embodiments consistent with this disclosure and, together with the description, serve to explain the principles of this disclosure.

[0030] Figure 1 This is a flowchart illustrating a communication processing method provided by existing technology.

[0031] Figure 2 This is a schematic diagram of the structure of a communication processing system according to an exemplary embodiment.

[0032] Figure 3 This is a flowchart illustrating a communication processing method according to an exemplary embodiment.

[0033] Figure 4 This is a schematic diagram illustrating a communication processing scenario according to an exemplary embodiment.

[0034] Figure 5 This is a flowchart illustrating another communication processing method according to an exemplary embodiment.

[0035] Figure 6 This is a schematic diagram illustrating another communication processing scenario according to an exemplary embodiment.

[0036] Figure 7 This is a flowchart illustrating another communication processing method according to an exemplary embodiment.

[0037] Figure 8 This is a schematic diagram of the structure of a communication processing device according to an exemplary embodiment.

[0038] Figure 9 This is a schematic diagram of the structure of another communication processing device according to an exemplary embodiment.

[0039] Figure 10 This is a schematic diagram of the structure of an electronic device according to an exemplary embodiment.

[0040] Figure 11 This is a schematic diagram of the structure of a chip according to an exemplary embodiment. Detailed Implementation

[0041] Exemplary embodiments will now be described in detail, examples of which are illustrated in the accompanying drawings. When the following description relates to the drawings, unless otherwise indicated, the same numerals in different drawings denote the same or similar elements. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with this disclosure. Rather, they are merely examples of apparatuses and methods consistent with some aspects of this disclosure as detailed in the appended claims.

[0042] It should be noted that all actions involving the acquisition of signals, information, or data in this disclosure are performed with the authorization of the respective device owner.

[0043] In proposing the embodiments of this disclosure, the applicant discovered that in existing BLE devices, when exchanging data, the slave device typically requests a connection interval. The timing of this connection interval request is usually based on the specific usage scenario of the slave device, or when the message source cannot determine the data volume (e.g., Apple Notification Center Service (ANCS) messages sent by the phone), the connection interval is switched based on the amount of data exchanged between the two parties over a certain period. The drawbacks of this approach include untimely or frequent switching, or the connection interval value being suboptimal, leading to unsatisfactory switching results and impacting data transmission efficiency.

[0044] In theory, data transmission requirements reside on the BLE device's host, specifically at the physical layer / lower-layer communication controller. How and when to transmit data should ideally be controlled by the communication controller, which clearly identifies the users and schedulers assigned during communication—that is, the data receiver and the data sender. The host's data transmission requirement is to complete data transmission within the shortest possible time interval. From the user's perspective, the host's fundamental requirement is the shortest possible transmission time, or to complete the transmission of data within an acceptable time interval. Therefore, in the existing BLE transmission logic, the host cannot accurately and timely estimate the specific connection interval (i.e., the optimal value of the connection interval) and the timing of connection interval switching. The control over switching connection intervals can be delegated to the physical layer's communication controller. The host only needs to ensure that, when a BLE connection is established, both parties maintain a certain threshold range for connection intervals. Within this threshold range, the communication controllers of both parties further determine the specific connection interval and update timing.

[0045] Please see Figure 1 This is a schematic diagram of a communication processing flow provided by existing technology. For example... Figure 1As shown, both the master and slave devices include a host and a communication controller. After establishing a frequency-hopping communication link, the slave device sends a data volume threshold (i.e., the aforementioned transmission reference threshold N0) based on its host. Then, it compares the number of data packets transmitted within a preset time interval with the data volume threshold N0. Specifically, for example, it might require sending N data packets continuously within a very short time interval (N>N0); or receiving N data packets within consecutive very short time intervals (N>N0), etc. In this case, the slave device's host sends a request command (REQ) to the slave device's communication controller to request a change in the connection interval. When the slave device's communication controller receives the REQ, it sends the REQ to the master device. The master device's communication controller, upon receiving the REQ, forwards it to the master device's host. The master device's host, upon receiving the REQ, distributes an appropriate connection interval value (RSP) to the master device's communication controller based on its actual transmission capacity. The master device's communication controller, upon receiving the RSP, sends it to the slave device. After receiving the aforementioned connection interval RSP, the communication controller of the slave device forwards it to the slave device's host. This completes a link process for switching connection intervals. However, the specific value of the connection interval RSP and the suggested timing REQ are both initiated by the slave device's host. The drawback of this is that the slave device's host is unaware of the frequency hopping transmission status of the slave device's communication controller. When the master device actively sends data (e.g., a large number of ANCS messages), it is also unaware of the respective data transmission volumes of the master device's host and communication controller. This can lead to untimely or frequent switching, or unsatisfactory switching effects, thus affecting data transmission efficiency.

[0046] To address the aforementioned problems, this disclosure provides a communication processing method, apparatus, device, storage medium, and chip. Please refer to [link to relevant documentation]. Figure 2 This is a schematic diagram illustrating the structure of a communication processing system according to an exemplary embodiment. For example... Figure 2The system shown may include a master device 100 and a slave device 200. The master device 100 includes a host 101 and a communication controller 102, and the slave device 200 also includes a host 201 and a communication controller 202. The master device 100 and the slave device 200 can communicate with each other via a network according to actual needs. As shown, the master-slave device can be divided into two layers: a host layer and a physical layer, on which the host and communication controller are deployed respectively. In practical applications, the master-slave device may include two logic chips, each of which may include the aforementioned host and communication controller components; this disclosure does not impose further limitations or details. The communication controller's RAM buffer can be customized and expanded according to actual needs. Its purpose is to increase the data buffer space distributed by the host layer; for example, it can be set to support the storage of 20 data packets, etc., and this disclosure does not impose further limitations or details.

[0047] The aforementioned host can be the core part of the device, mainly responsible for receiving input signals, performing control operations, and issuing output commands. For example, it can send corresponding request commands to the communication controller, such as requesting to change the connection interval between the master and slave devices. This disclosure will not limit or elaborate on this.

[0048] The aforementioned communication controller can serve as the control system and nerve center of the equipment, responsible for coordinating the work between various components. For example, the communication controller in this disclosure can send corresponding control commands, which carry target communication parameters between the master and slave devices. The functional descriptions of the aforementioned host and communication controller will be detailed below and will not be repeated here.

[0049] Based on the above embodiments, please refer to Figure 3 This is a flowchart illustrating a communication processing method according to an exemplary embodiment. Figure 3 The method shown can be applied to Figure 2 In the system shown, the method may include the following implementation steps: S301, the communication controller 102 of the main device 100 determines the target communication parameters, the target communication parameters including at least the connection interval, the connection interval being determined based on a preset critical threshold.

[0050] In this disclosure, the aforementioned target communication parameters can refer to the parameters used when data communication occurs between the master device 100 and the slave device 200. These parameters may include at least a connection interval, and optionally, a combination of any one or more of the following: update time point (also known as an anchor point), timeout interval, update timing, or other custom parameters. The connection interval can reflect the time interval for data transmission between the master device 100 and the slave device 200. The update time point can indicate the specific / actual time point at which the connection interval is updated. The timeout interval reflects the maximum waiting time for sending and receiving packets after a successful establishment of a physical link between the master device 100 and the slave device 200. If no packets are received from the other device within this timeout interval (i.e., no data interaction occurs within this timeout interval), the established connection will be terminated, and the connection will return to an unconnected state. The update timing specifically indicates the time when the connection interval needs to be updated. The update timing can be an approximate, low-precision time, while the update time point can be a specific, high-precision time. Generally, the precision of the above-mentioned update timing is less than the precision of the above-mentioned update time point, and this disclosure will not impose further limitations or details on this.

[0051] The aforementioned preset threshold can be pre-defined by the system or the user according to actual needs, or it can be set when the master device 100 and the slave device 200 have just established a connection / for the first time. Figure 1 The process shown is based on the upper or lower limit of the threshold range of the connection interval obtained by device 200 through negotiation between host 201 and host 101 of master device 100, which will be detailed below in this disclosure.

[0052] S302, the communication controller 102 of the master device 100 sends a control command to the communication controller 202 of the slave device 200. The control command includes the target communication parameters, which are used to control the data communication between the master device 100 and the slave device 200. Accordingly, the communication controller 202 of the slave device 200 receives the control command.

[0053] Both the master device 100 and the slave device 200 involved in this disclosure can be electronic devices, which can also be referred to as terminal devices, user equipment (UE), mobile stations (MS), mobile terminals (MT), etc. Electronic devices can be automobiles with communication functions, smart cars, mobile phones, wearable devices, tablets, computers with wireless transceiver capabilities, virtual reality (VR) terminal devices, augmented reality (AR) terminal devices, wireless terminal devices in industrial control, wireless terminal devices in self-driving, wireless terminal devices in remote medical surgery, wireless terminal devices in smart grids, wireless terminal devices in transportation safety, wireless terminal devices in smart cities, wireless terminal devices in smart homes, etc. The embodiments of this disclosure do not limit the specific technologies or device forms used in the above-mentioned electronic devices.

[0054] By implementing the embodiments of this disclosure, the communication controller of the master device can determine target communication parameters, which include at least a connection interval determined based on a preset critical threshold. The master device then sends a control command to the communication controller of the slave device. This control command includes the target communication parameters, which are used to control data communication between the master and slave devices. In this way, the master and slave devices actively negotiate / adjust the corresponding target communication parameters through their underlying communication controllers, avoiding the technical problems associated with related technologies that rely on the slave device's host to request connection intervals. These problems include the inability to accurately and timely estimate specific connection intervals, unsatisfactory handover effects, and reduced data transmission efficiency. This improves the convenience and accuracy of communication processing and enhances data transmission efficiency. The following section discusses different application scenarios. Figure 3 The embodiments described below are implemented in detail. Please refer to [link to specific examples]. Figure 4 This is a schematic diagram illustrating a communication processing scenario according to an exemplary embodiment. For example... Figure 4The scenario depicted is that the master device 100 needs to send data packets to the slave device 200. In this case, this disclosure can expand the buffer space (RAM buffer) of the communication controller 102 of the master device 100 according to actual needs. The purpose is to increase the buffer space size of the data (packets) sent by the host 101 of the master device 100 in the communication controller 102, for example, by increasing the number of data packets buffered, such as 20, etc. Based on Figure 4 Please refer to the schematic diagram of the scene shown. Figure 5 This is a flowchart illustrating another communication processing method according to an exemplary embodiment. Figure 5 The method shown may include the following implementation steps: S501, the communication controller 102 of the master device 100 obtains the amount of data to be transmitted by the master device 100 and the transmission reference threshold of the master device 100. The amount of data to be transmitted by the master device 100 is the number of data packets to be sent to the slave device 200 that are cached in the communication controller 102 of the master device 100. The transmission reference threshold of the master device 100 is determined based on the cache size of the communication controller 102 of the master device 100.

[0055] The amount of data to be transmitted (N) in the master device 100 can refer to the number of data packets sent from the host 101 of the master device 100 to the communication controller 102 of the master device 100 within a preset first time period, that is, the number of data packets to be sent to the slave device 200. The preset first time period can be a time period pre-defined by the system or the user according to the actual situation. For example, it can be an empirical value set based on user experience, or a statistical value calculated based on a series of experimental data. Usually, the preset first time period is relatively short, such as 1 second.

[0056] The transmission reference threshold of the aforementioned master device 100 can refer to a reference threshold used to determine the amount of data to be transmitted by the master device 100. It is related to the buffer size of the communication controller 102 of the master device 100; that is, the transmission reference threshold of the master device 100 can be determined based on the buffer size of the communication controller 102. Generally, the transmission reference threshold of the master device 100 and the buffer size of the communication controller 102 are positively correlated. For example, the larger the buffer size of the communication controller 102, the larger the transmission reference threshold of the master device 100; conversely, the smaller the buffer size of the communication controller 102, the smaller the transmission reference threshold of the master device 100. For instance, the transmission reference threshold of the master device 100 can be half or one-third of the buffer size of the communication controller 102, etc. For example, the transmission reference threshold can be 10, etc. This disclosure does not impose further limitations or details in this regard.

[0057] This disclosure does not limit the implementation method for obtaining the amount of data to be transmitted in the master device 100 and the transmission reference threshold of the master device 100. For example, it can be obtained from the communication controller 102, or it can be obtained from other devices or platforms through the network. This disclosure will not go into detail about these aspects.

[0058] S502, the communication controller 102 of the master device 100 determines the target communication parameters based on the amount of data to be transmitted by the master device 100 and the transmission reference threshold of the master device 100. The target communication parameters include at least the connection interval, which is determined based on a preset critical threshold.

[0059] This disclosure does not limit the implementation method for determining the aforementioned target communication parameters. The target communication parameters may at least include a connection interval, and optionally may also include one or more of the following: update time point, timeout interval, update timing, or other custom parameters. For a description of the aforementioned target communication parameters, please refer to the foregoing. Figure 3 The relevant descriptions in the embodiments described above will not be repeated here. An example is provided using the target communication parameters, including the connection interval. This disclosure compares the amount of data to be transmitted by the master device 100 with the transmission reference threshold of the master device 100. In practical applications, there may be one or more transmission reference thresholds, which can be determined according to the actual situation, and this disclosure does not limit this. Two possible implementation methods are described below.

[0060] In one implementation, there is one transmission reference threshold. Specifically, when the amount of data to be transmitted by the master device 100 is greater than the transmission reference threshold of the master device 100, the connection interval can be determined based on a preset first critical threshold T1, that is, the preset critical threshold is the preset first critical threshold T1. Conversely, when the amount of data to be transmitted by the master device 100 is less than or equal to the transmission reference threshold of the master device 100, the connection interval can be determined based on a preset second critical threshold T2, that is, the preset critical threshold is the preset second critical threshold T2. The first critical threshold T1 and the second critical threshold T2 can correspond to the lower and upper critical thresholds of the connection interval obtained when the master device 100 and the slave device 200 first establish communication. Generally, the first critical threshold T1 is less than the second critical threshold T2. That is, the aforementioned first critical threshold T1 can be the lower limit critical threshold of the connection interval obtained when the master device 100 and the slave device 200 establish communication, and the aforementioned second critical threshold T2 can be the upper limit critical threshold of the connection interval obtained when the master device 100 and the slave device 200 first establish communication. It should be noted that when the master device 100 and the slave device 200 have just / first established communication, the threshold is... Figure 1 The process shown allows for negotiation of a connection interval threshold range [T1, T2] between the host devices of the master and slave devices. T2 is greater than T1. The first critical threshold T1 and the second critical threshold T2 can be stored in the communication controller 102 of the master device 100 and the communication controller 202 of the slave device 200, respectively. Optionally, the first critical threshold T1 and the second critical threshold T2 can be uploaded and stored in the host 101 of the master device 100 and the host 201 of the slave device 200, or they can be neither uploaded nor stored in these locations; this disclosure does not limit this.

[0061] In another embodiment, there are two transmission reference thresholds, such as a first reference threshold and a second reference threshold. Specifically, when the amount of data to be transmitted by the master device 100 is greater than the first reference threshold, the connection interval can be determined based on a preset third critical threshold T3, that is, the preset critical threshold is the preset third critical threshold T3. Alternatively, when the amount of data to be transmitted by the master device 100 is less than or equal to the first reference threshold and greater than the second reference threshold, the connection interval can be determined based on a preset fourth critical threshold T4, that is, the preset critical threshold is the preset fourth critical threshold T4. Or, when the amount of data to be transmitted by the master device 100 is less than or equal to the second reference threshold, the connection interval can be determined based on a preset fifth critical threshold T5, that is, the preset critical threshold is the preset fifth critical threshold T5. The aforementioned third critical threshold, fourth critical threshold, and fifth critical threshold can all correspond to the critical threshold of the connection interval obtained when the master device 100 and the slave device 200 first establish communication. They can be determined according to the actual situation, and this disclosure will not impose too many restrictions or details on them.

[0062] In an optional embodiment, the target communication parameters can also be determined based on the communication bandwidth between the master device 100 and the slave device 200 within the connection interval. Specifically, the target communication parameters can be negatively correlated with the communication bandwidth. For example, if the communication bandwidth occupied between the master device 100 and the slave device 200 is larger within the connection interval, the update time of the connection interval is closer to the current system time (i.e., the smaller the update time), and the smaller the connection interval, thus meeting the requirement for timely data transmission. Conversely, if the communication bandwidth occupied between the master device 100 and the slave device 200 is smaller within the connection interval, the update time of the connection interval is further away from the current system time (i.e., the larger the update time), and the larger the connection interval, thus meeting the requirement for timed and quantitative data transmission.

[0063] For example, when the amount of data to be transmitted by the master device 100 is greater than the transmission reference threshold of the master device 100, the preset critical threshold can be a preset first critical threshold T1. If the communication bandwidth between the master device and the slave device is sufficient / large (e.g., greater than the preset first bandwidth value), this disclosure can directly determine T1 as the connection interval. Conversely, if the communication bandwidth between the master device and the slave device is small (e.g., less than the preset second bandwidth value), this disclosure can select a connection interval between the first critical threshold T1 and the second critical threshold T2, for example, setting the connection interval to a value far from T1, but also less than T2. ​​Similarly, when the amount of data to be transmitted by the master device 100 is less than or equal to the transmission reference threshold of the master device 100, the preset critical threshold can be a preset second critical threshold T2. If the communication bandwidth between the master device and the slave device is sufficient / large, this disclosure can directly determine T2 as the connection interval. Conversely, if the communication bandwidth between the master device and the slave device is small, this disclosure may select a value that is far from T2 as the connection interval, etc., and this disclosure will not impose too many restrictions or details on this.

[0064] S503, the communication controller 102 of the master device 100 sends a control command to the communication controller 202 of the slave device 200. The control command includes the target communication parameters, which are used to control the data communication between the master device 100 and the slave device 200. Accordingly, the communication controller 202 of the slave device 200 receives the control command.

[0065] The communication controller 102 of the master device 100 can send the above-mentioned target communication parameters to the communication controller 202 of the slave device 200 through control commands, such as sending and informing the slave device 200 of the connection interval.

[0066] In one optional implementation, the target communication parameters include the connection interval and the update time point. After receiving the control command, the communication controller 202 of the slave device 200 can respond to the control command by updating the connection interval based on the update time point, that is, actually updating the connection interval between the master and slave devices according to the update time point.

[0067] In another optional embodiment, the communication controller 102 of the master device 100 can determine the sending time of the control command as the update timing of the connection interval. This update timing indicates the time when it is desired / needed to update the connection interval. The update timing can be an approximate, less precise time, while the update time point can be a specific, more precise time. Typically, the precision of the update timing is less than the precision of the update time point. For example, the update timing can be the time when the control command is sent, such as 16:00. The update time point can be the actual time when the connection interval is updated; for example, when the communication bandwidth is large, the update time point could be 16:02, etc. This disclosure does not impose further limitations or details on this.

[0068] To help better understand the embodiments of this disclosure, the following is combined with Figure 4 The scenario is illustrated below. Taking the transmission reference threshold of the master device 100 as an example, when the master device 100 and the slave device 200 have just established a communication connection, the slave device 200 and the master device 100 can use... Figure 1The threshold range of the connection interval shown in the process is [T1, T2], where T2 > T1. T1 and T2 are stored in the communication controller 102 of the master device 100 and the communication controller 202 of the slave device 200, respectively, and are not sent to their respective hosts. This disclosure defines a connection interval of [T1, (T1+T2) / 2] as a fast connection and [(T1+T2) / 2, T2] as a slow connection. When a large number of data packets are sent from the master device 100 to the slave device 200, the timing of the connection interval update can be determined by the buffer size of the communication controller 102 of the master device 100. For example, within a very short period of time T, the host 101 of the master device 100 sends N data packets to the communication controller 102 of the master device 100, where N is greater than the transmission reference threshold 10 of the master device 100. At this point, the communication controller 102 of the master device 100 selects a suitable connection interval RSP and a suitable anchor point close to the first critical threshold T1 of the connection interval to actively switch to a fast connection for rapid data transmission. Without waiting for the host 101 of the master device 100 to send a request command REQ, the communication controller 102 of the master device 100 directly sends a control command to the communication controller 202 of the slave device 200. The communication controllers of these two devices actively negotiate the corresponding target communication parameters through the underlying physical link layer, without waiting for either the host 201 of the slave device 200 or the host 101 of the master device 100 to send their respective request commands REQ. The transmission reference threshold 10 is the idle change threshold of the communication controller 102 (ram buffer) of the master device 100, and its change controls the timing of the connection interval update. Generally, the higher the transmission reference threshold (the larger the value), the more urgent the data transmission demand of the upper-layer host; while the lower the transmission reference threshold (the smaller the value), the more time-bound and quantity-based the data transmission demand of the upper-layer host.

[0069] It can be seen that both the master device 100 and the slave device 200 utilize the underlying communication controller to actively negotiate / adjust target communication parameters, avoiding technical problems such as inaccurate or unreasonable connection intervals and update timings of single requests from the upper-layer host of the slave device 200. Simultaneously, during chip design, the hardware cache space (RAM buffer) of the master device 100's communication controller 102 is increased to cache more data packets sent from the host 101 of the master device 100. The connection interval and update timing of both devices are then determined by the transmission reference threshold within the master device 100's communication controller 102. This improves the convenience and accuracy of communication processing and enhances data transmission efficiency. Please see Figure 6 A schematic diagram illustrating another communication processing scenario according to an exemplary embodiment. For example... Figure 6The scenario shown depicts a slave device 200 needing to send data packets to a master device 100. In this case, this disclosure can expand the RAM buffer of the communication controller 202 of the slave device 200 according to actual needs. The purpose is to increase the size of the buffer space in the communication controller 202 for data (packets) sent from the master device 201 of the slave device 200, for example, by increasing the number of data packets buffered, such as 20, etc. Based on Figure 6 Please refer to the schematic diagram of the scene shown. Figure 7 This is a flowchart illustrating another communication processing method according to an exemplary embodiment. Figure 7 The method shown may include the following implementation steps: S701, the communication controller 202 of the slave device 200 sends a request command to the communication controller 102 of the master device 100, the request command being used to request the master device 100 to determine the target communication parameters. Accordingly, the communication controller 102 of the master device 100 receives the above request command.

[0070] The aforementioned request command can be sent from the communication controller 202 of the slave device 200 to the communication controller 102 of the master device 100 according to actual needs. This request command is used to request the master device 100 to determine the target communication parameters between the master and slave devices. For a description of the target communication parameters, please refer to the foregoing. Figure 3 The relevant descriptions in the embodiments will not be repeated here.

[0071] In one implementation, the request command carries / includes the preset critical threshold. Specifically, the communication controller 202 of the slave device 200 can obtain the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200. This disclosure does not limit the implementation method for obtaining the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200, for example, they can be obtained from the communication controller 202, or they can be obtained from other devices or platforms via the network, etc., which will not be described in detail here. Further, the communication controller 202 of the slave device 200 determines the preset critical threshold based on the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200; and sends the preset critical threshold in the request command to the communication controller 102 of the master device 100.

[0072] This disclosure does not limit the implementation method for determining the aforementioned preset critical threshold. Specifically, for example, this disclosure can compare the amount of data to be transmitted by the slave device 200 with the transmission reference threshold of the slave device 200. In practical applications, there may be one or more transmission reference thresholds, which can be determined according to the actual situation, and this disclosure does not limit this. Two possible implementation methods are described below as examples.

[0073] In one implementation, there is one transmission reference threshold. Specifically, when the amount of data to be transmitted by the slave device 200 is greater than the transmission reference threshold of the slave device 200, the preset critical threshold can be a preset first critical threshold T1. Conversely, when the amount of data to be transmitted by the slave device 200 is less than or equal to the transmission reference threshold of the slave device 200, the preset critical threshold can be a preset second critical threshold T2. The first critical threshold T1 and the second critical threshold T2 can correspond to the lower and upper critical thresholds of the connection interval obtained when the master device 100 and the slave device 200 first establish communication. Typically, the first critical threshold T1 is less than the second critical threshold T2. For details regarding the first critical threshold T1 and the second critical threshold T2, please refer to the relevant descriptions in the foregoing embodiments; they will not be repeated here.

[0074] In another embodiment, there are two transmission reference thresholds, for example, the transmission reference thresholds include a first reference threshold and a second reference threshold. Specifically, when the amount of data to be transmitted by the slave device 200 is greater than the first reference threshold of the slave device 200, the connection interval can be determined based on a preset third critical threshold T3, that is, the preset critical threshold is the preset third critical threshold T3. Alternatively, when the amount of data to be transmitted by the slave device 200 is less than or equal to the first reference threshold of the slave device 200 and greater than the second reference threshold of the slave device 200, the connection interval can be determined based on a preset fourth critical threshold T4, that is, the preset critical threshold is the preset fourth critical threshold T4. Alternatively, when the amount of data to be transmitted by the slave device 200 is less than or equal to the second reference threshold of the slave device 200, the connection interval can be determined based on a preset fifth critical threshold T5, that is, the preset critical threshold is the preset fifth critical threshold T5. The aforementioned third critical threshold, fourth critical threshold, and fifth critical threshold can all correspond to the critical threshold of the connection interval obtained when the master device 100 and the slave device 200 first establish communication. They can be determined according to the actual situation, and this disclosure will not impose too many restrictions or details on them.

[0075] The amount of data to be transmitted (N) in the slave device 200 can refer to the number of data packets sent from the host 201 of the slave device 200 to the communication controller 202 of the slave device 200 within a preset second time period, that is, the number of data packets to be sent to the master device 100. The preset second time period can be a time period pre-defined by the system or the user according to the actual situation. For example, it can be an empirical value set based on user experience, or a statistical value calculated based on a series of experimental data. Usually, the preset second time period is relatively short, such as 1 second. The transmission reference threshold of the slave device 200 can refer to a reference threshold used to determine the amount of data to be transmitted in the slave device 200. It is related to the buffer size of the communication controller 202 of the slave device 200, that is, the transmission reference threshold of the slave device 200 can be determined based on the buffer size of the communication controller 202 of the slave device 200. Generally, the transmission reference threshold of the slave device 200 is positively correlated with the buffer size of the communication controller 202 of the slave device 200. For example, the larger the buffer size of the communication controller 202, the larger the transmission reference threshold of the slave device 200; conversely, the smaller the buffer size of the communication controller 202, the smaller the transmission reference threshold of the slave device 200. For instance, the transmission reference threshold of the slave device 200 can be half or one-third of the buffer size of the communication controller 202, etc. For example, the transmission reference threshold can be 10, etc. This disclosure does not impose further limitations or details on this.

[0076] In another embodiment, the aforementioned request command carries at least the amount of data to be transmitted from the slave device 200, and optionally may also include the transmission reference threshold or other custom information of the slave device 200. Specifically, the communication controller 202 of the slave device 200 can obtain the amount of data to be transmitted from the slave device 200, and optionally may also obtain information such as the transmission reference threshold of the slave device 200; this information is carried in the aforementioned request command and sent to the communication controller 102 of the master device 100. This disclosure does not limit the implementation method for obtaining the aforementioned information. Taking the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200 as examples, this disclosure can obtain them from the communication controller 202, or they can be obtained from other devices or platforms via the network, etc., which will not be described in detail here. For a description of the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200, please refer to the relevant description in the previous embodiment, which will not be repeated here.

[0077] S702, the communication controller 102 of the master device 100 responds to the request command and determines the target communication parameters, the target communication parameters including at least the connection interval, the connection interval being determined based on a preset critical threshold.

[0078] This disclosure does not limit the implementation of the above-mentioned target communication parameters. Several possible implementation methods are described below by way of example, but they do not constitute a limitation.

[0079] In one embodiment, the request command includes the preset critical threshold. After receiving the request command, the communication controller 102 of the master device 100 can respond to the request command and determine the corresponding target communication parameters according to the preset critical threshold. For example, it can select a suitable connection interval and update time point close to the preset critical threshold (e.g., the first critical threshold T1 or the second critical threshold T2). This disclosure does not limit or elaborate on this.

[0080] In another embodiment, the aforementioned request command carries at least the amount of data to be transmitted from the slave device 200, and optionally may also include the transmission reference threshold of the slave device 200 or other custom information. Upon receiving the aforementioned request command, the communication controller 102 of the master device 100 can, in response to the request command, determine the aforementioned target communication parameters based on the amount of data to be transmitted from the slave device 200 and the transmission reference threshold of the slave device 200.

[0081] This disclosure does not limit the implementation method for determining the aforementioned target communication parameters. An example is provided using the connection interval as an example. This disclosure compares the amount of data to be transmitted from the slave device 200 with the transmission reference threshold of the slave device 200. When the amount of data to be transmitted from the slave device 200 is greater than the transmission reference threshold, the connection interval can be determined based on a preset first critical threshold T1, i.e., the preset critical threshold is the preset first critical threshold T1. Conversely, when the amount of data to be transmitted from the slave device 200 is less than or equal to the transmission reference threshold, the connection interval can be determined based on a preset second critical threshold T2, i.e., the preset critical threshold is the preset second critical threshold T2. The first critical threshold T1 and the second critical threshold T2 can be referred to the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0082] In another embodiment, the request command is directly used to request the master device 100 to determine the target communication parameters. After receiving the request command, the communication controller 102 of the master device 100 can respond to the request command and determine the corresponding target communication parameters according to the actual communication needs between the master device 100 and the slave device 200.

[0083] For example, in an optional embodiment, the target communication parameters can be determined based on the communication bandwidth between the master device 100 and the slave device 200 within the connection interval. Specifically, the target communication parameters can be negatively correlated with the communication bandwidth. For instance, if the communication bandwidth occupied between the master device 100 and the slave device 200 is larger within the connection interval, the update time of the connection interval is closer to the current system time (i.e., the smaller the update time), and the smaller the connection interval, to meet the requirement of timely data transmission. Conversely, if the communication bandwidth occupied between the master device 100 and the slave device 200 is smaller within the connection interval, the update time of the connection interval is farther from the current system time (i.e., the larger the update time), and the larger the connection interval, to meet the requirement of timed and quantitative data transmission.

[0084] S703, the communication controller 102 of the master device 100 sends a control command to the communication controller 202 of the slave device 200. The control command includes the target communication parameters, which are used to control the data communication between the master device 100 and the slave device 200. Accordingly, the communication controller 202 of the slave device 200 receives the control command.

[0085] The communication controller 102 of the master device 100 can send the above-mentioned target communication parameters to the communication controller 202 of the slave device 200 through control commands, such as sending and informing the slave device 200 of the connection interval.

[0086] In one optional implementation, the target communication parameters include the connection interval and the update time point. After receiving the control command, the communication controller 202 of the slave device 200 can respond to the control command by updating the connection interval based on the update time point, that is, actually updating the connection interval between the master and slave devices according to the update time point.

[0087] In another optional embodiment, the communication controller 202 of the slave device 200 can determine the sending time of the aforementioned request command as the update timing for the aforementioned connection interval. This update timing is used to indicate the time when it is desired / needed to update the aforementioned connection interval. The aforementioned update timing can be an approximate time with low precision, while the aforementioned update time point can be a specific time with high precision. Generally, the precision of the aforementioned update timing is less than the precision of the aforementioned update time point; this can be referred to in the relevant descriptions in the foregoing embodiments, and will not be repeated here.

[0088] To help better understand the embodiments of this disclosure, the following is combined with Figure 6 The scenario is illustrated below. Taking the transmission reference threshold of slave device 200 as an example, when master device 100 and slave device 200 have just established a communication connection, slave device 200 and master device 100 can use... Figure 1 The threshold range of the connection interval shown in the process is [T1, T2], where T2 > T1. T1 and T2 are stored in the communication controller 102 of the master device 100 and the communication controller 202 of the slave device 200, respectively, and are not sent to their respective hosts. This disclosure defines a connection interval of [T1, (T1+T2) / 2] as a fast connection and [(T1+T2) / 2, T2] as a slow connection. When a large number of data packets are sent from the slave device 200 to the master device 100, the timing of the connection interval update can be determined by the buffer size of the communication controller 202 of the slave device 200. For example, within a very short period of time T, N data packets are sent from the host 201 of the slave device 200 to the communication controller 202 of the slave device 200, where N is greater than the transmission reference threshold 10 of the slave device 200. At this time, the communication controller 202 of the slave device 200 will select the first critical threshold T1 of the connection interval to actively switch to a fast connection for rapid data transmission. This eliminates the need to wait for a request from the host 201 of device 200. The communication controller 202 of device 200 directly sends a request command REQ to the communication controller 102 of master device 100. This request command may include the aforementioned first critical threshold T1. After receiving the request command, the communication controller 102 of master device 100 selects a suitable connection interval and update time point close to T1 and then sends it to the communication controller 202 of device 200. The communication controllers of the two devices actively negotiate the corresponding target communication parameters through the underlying physical link layer, without waiting for the request commands REQ from either the host 201 of device 200 or the host 101 of master device 100. The transmission reference threshold 10 is the idle change threshold of the communication controller 202 (ram buffer) of device 200, and the change of this value controls the timing of updating the connection interval. Generally, the higher the transmission reference threshold (the larger the value), the more urgent the data transmission demand of the upper-layer host; while the lower the transmission reference threshold (the smaller the value), the more timed and quantitative the data transmission demand of the upper-layer host.

[0089] It can be seen that both the master device 100 and the slave device 200 utilize the underlying communication controller to actively negotiate / adjust target communication parameters, avoiding technical problems such as inaccurate or unreasonable connection intervals and update timings of single requests from the upper-layer host of the slave device 200. Simultaneously, during chip design, the hardware cache space (RAM buffer) of the communication controller 202 of the slave device 200 is increased to cache more data packets sent by the host 201 of the slave device 200. The connection interval and update timing of both devices are then determined by the transmission reference threshold within the communication controller 202 of the slave device 200. This improves the convenience and accuracy of communication processing and enhances data transmission efficiency.

[0090] Based on the foregoing embodiments, please refer to Figure 8 This is a schematic diagram illustrating the structure of a communication processing apparatus according to an exemplary embodiment. Figure 8 The illustrated device can be applied to the communication controller of a main device, and the device may include a processing module 801 and a transceiver module 802. Wherein: The processing module 801 is configured to determine target communication parameters, the target communication parameters including at least a connection interval, the connection interval being determined based on a preset critical threshold; The transceiver module 802 is configured to send control commands to the communication controller of the slave device. The control commands include the target communication parameters, which are used to control the data communication between the master device and the slave device.

[0091] In some embodiments, when the master device needs to send a data packet to the slave device, the processing module 801 is configured to: The amount of data to be transmitted by the master device and the transmission reference threshold of the master device are obtained. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the communication controller of the master device. The transmission reference threshold of the master device is determined based on the cache size of the communication controller of the master device. The target communication parameters are determined based on the amount of data to be transmitted by the master device and the transmission reference threshold of the master device.

[0092] In some embodiments, when the slave device needs to send a data packet to the master device, the transceiver module 802 is further configured to receive a request command sent by the communication controller of the slave device, the request command being used to request the determination of the target communication parameters; The processing module 801 is configured to determine the target communication parameters in response to the request command.

[0093] In some embodiments, the request command includes the preset critical threshold, which is determined by the communication controller of the slave device based on the amount of data to be transmitted by the slave device and the transmission reference threshold of the slave device. The amount of data to be transmitted by the slave device is the number of data packets to be sent to the master device that are cached in the communication controller of the slave device. The transmission reference threshold of the slave device is determined based on the cache size of the communication controller of the slave device.

[0094] In some embodiments, when the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or... When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

[0095] In some embodiments, the transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

[0096] In some embodiments, the target communication parameter further includes an update time point, which indicates the time point at which the connection interval is actually updated.

[0097] In some embodiments, the target communication parameters are determined based on the communication bandwidth between the master device and the slave device within the connection interval.

[0098] In some embodiments, the processing module 801 is further configured to: Obtain the sending time of the target command, which includes the control command or the request command; The sending time of the target command is determined as the update timing of the connection interval, and the update timing is used to indicate the time when the connection interval needs to be updated.

[0099] For any content not introduced or described in the embodiments of the present invention, please refer to the relevant descriptions in the foregoing method embodiments; they will not be repeated here.

[0100] Please see also Figure 9 This is a schematic diagram illustrating the structure of another communication processing apparatus according to an exemplary embodiment. For example... Figure 9 The illustrated device can be applied to a communication controller of a slave device, and the device may include a transceiver module 901. Wherein: The transceiver module 901 is configured to receive control commands sent by the communication controller of the master device. The control commands include target communication parameters, which include at least a connection interval. The connection interval is determined based on a preset critical threshold. The target communication parameters are used to control data communication between the master device and the slave device.

[0101] In some embodiments, the target communication parameter further includes an update time point, which indicates the actual time point at which the connection interval is updated, and the apparatus further includes a processing module 902. The processing module 902 is configured to update the connection interval based on the update time point in response to the control command.

[0102] In some embodiments, before the slave device needs to send a data packet to the master device, and before receiving the control command sent by the communication controller of the master device, the transceiver module 901 is further configured to: A request command is sent to the communication controller of the master device, the request command being used to request the master device to determine the target communication parameters.

[0103] In some embodiments, the request command includes the preset threshold, and the processing module 902 is further configured to: The amount of data to be transmitted from the slave device and the transmission reference threshold of the slave device are obtained. The amount of data to be transmitted from the slave device is the number of data packets to be sent to the master device that are cached in the communication controller of the slave device. The transmission reference threshold of the slave device is determined based on the cache size of the communication controller of the slave device. The preset critical threshold is determined based on the amount of data to be transmitted by the slave device and the transmission reference threshold of the slave device.

[0104] In some embodiments, when the master device needs to send a data packet to the slave device, the target communication parameter is determined by the master device's communication controller based on the amount of data to be transmitted by the master device and the master device's transmission reference threshold. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the master device's communication controller, and the master device's transmission reference threshold is determined based on the cache size of the master device's communication controller.

[0105] In some embodiments, When the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or, When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

[0106] In some embodiments, the transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

[0107] For any content not introduced or described in the embodiments of the present invention, please refer to the relevant descriptions in the foregoing method embodiments; they will not be repeated here.

[0108] This disclosure also provides a computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement all or part of the steps in the communication processing method described above.

[0109] Figure 10 This is a schematic diagram illustrating the structure of an electronic device according to an exemplary embodiment. For example, the electronic device 1000 can be a master device 100 or a slave device 200. The aforementioned electronic device 1000 may include, but is not limited to, mobile phones, computers, digital broadcasting terminals, messaging devices, game consoles, tablet devices, medical devices, fitness equipment, personal digital assistants, etc.

[0110] Reference Figure 10 The electronic device 1000 may include one or more of the following components: processing component 1002, memory 1004, power supply component 1006, multimedia component 1008, audio component 1010, input / output interface 1012, sensor component 1014, and communication component 1016.

[0111] Processing component 1002 typically controls the overall operation of device 1000, such as operations associated with display, telephone calls, data communication, camera operation, and recording. Processing component 1002 may include one or more processors 1020 to execute instructions to complete all or part of the steps of the communication processing method described above. Furthermore, processing component 1002 may include one or more modules to facilitate interaction between processing component 1002 and other components. For example, processing component 1002 may include a multimedia module to facilitate interaction between multimedia component 1008 and processing component 1002.

[0112] Memory 1004 is configured to store various types of data to support the operation of device 1000. Examples of this data include instructions for any application or method operating on device 1000, contact data, phonebook data, messages, pictures, videos, etc. Memory 1004 can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic storage, flash memory, magnetic disk, or optical disk.

[0113] Power supply component 1006 provides power to various components of device 1000. Power supply component 1006 may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to device 1000.

[0114] Multimedia component 1008 includes a screen that provides an output interface between the device 1000 and the user. In some embodiments, the screen may include a liquid crystal display (LCD) and a touch panel (TP). If the screen includes a touch panel, the screen may be implemented as a touchscreen to receive input signals from the user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensors may sense not only the boundaries of the touch or swipe action but also the duration and pressure associated with the touch or swipe operation. In some embodiments, multimedia component 1008 includes a front-facing camera and / or a rear-facing camera. When the electronic device 1000 is in an operating mode, such as a shooting mode or a video mode, the front-facing camera and / or the rear-facing camera may receive external multimedia data. Each front-facing camera and rear-facing camera may be a fixed optical lens system or have focal length and optical zoom capabilities.

[0115] Audio component 1010 is configured to output and / or input audio signals. For example, audio component 1010 includes a microphone (MIC) configured to receive external audio signals when device 1000 is in an operating mode, such as call mode, recording mode, and voice recognition mode. The received audio signals may be further stored in memory 1004 or transmitted via communication component 1016. In some embodiments, audio component 1010 also includes a speaker for outputting audio signals.

[0116] Input / output interface 1012 provides an interface between processing component 1002 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, home buttons, volume buttons, start buttons, and lock buttons.

[0117] Sensor assembly 1014 includes one or more sensors for providing state assessments of various aspects of device 1000. For example, sensor assembly 1014 may detect the on / off state of device 1000, the relative positioning of components such as the display and keypad of device 1000, changes in the position of device 1000 or a component of device 1000, the presence or absence of user contact with device 1000, the orientation or acceleration / deceleration of device 1000, and temperature changes of device 1000. Sensor assembly 1014 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. Sensor assembly 1014 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, sensor assembly 1014 may also include an accelerometer, a gyroscope, a magnetometer, a pressure sensor, or a temperature sensor.

[0118] Communication component 1016 is configured to facilitate wired or wireless communication between device 1000 and other devices. Device 1000 can access wireless networks based on communication standards, such as WiFi, 2G, or 3G, or combinations thereof. In one exemplary embodiment, communication component 1016 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, communication component 1016 also includes a near-field communication (NFC) module to facilitate short-range communication. For example, the NFC module may be implemented based on radio frequency identification (RFID) technology, Infrared Data Association (IrDA) technology, ultra-wideband (UWB) technology, Bluetooth (BT) technology, and other technologies.

[0119] In an exemplary embodiment, device 1000 may be implemented by one or more application-specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field-programmable gate arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components to perform all or part of the steps in the above-described communication processing method.

[0120] In an exemplary embodiment, a non-transitory computer-readable storage medium including instructions is also provided, such as a memory 1004 including instructions, which can be executed by the processor 1020 of the device 1000 to complete all or part of the steps in the communication processing method described above. For example, the non-transitory computer-readable storage medium may be a ROM, random access memory (RAM), CD-ROM, magnetic tape, floppy disk, and optical data storage device, etc.

[0121] The aforementioned device can be a standalone electronic device or a part of a standalone electronic device. For example, in one embodiment, the device can be an integrated circuit (IC) or a chip, wherein the integrated circuit can be a single IC or a collection of multiple ICs. The chip can include, but is not limited to, the following types: GPU (Graphics Processing Unit), CPU (Central Processing Unit), FPGA (Field Programmable Gate Array), DSP (Digital Signal Processor), ASIC (Application Specific Integrated Circuit), and SoC (System on Chip). The aforementioned integrated circuit or chip can be used to execute executable instructions (or code) to implement all or part of the steps in the aforementioned communication processing method. The executable instructions can be stored in the integrated circuit or chip or obtained from other devices or equipment. For example, the integrated circuit or chip includes a processor, memory, and an interface for communicating with other devices. The executable instructions can be stored in the memory, and when the executable instructions are executed by the processor, they implement all or part of the steps in the aforementioned communication processing method. Alternatively, the integrated circuit or chip can receive executable instructions through the interface and transmit them to the processor for execution to implement all or part of the steps in the above communication processing method.

[0122] In another exemplary embodiment, a computer program product is also provided, which includes a computer program executable by a programmable device, the computer program having, when executed by the programmable device, the steps or parts thereof for performing all of the steps in the above-described communication processing method.

[0123] Please see Figure 11 This is a schematic diagram illustrating the structure of a chip according to an exemplary embodiment. For example... Figure 11 The chip 1100 shown includes a processor 1101 and an interface 1102. Optionally, it may also include a memory 1103. The number of processors 1101 can be one or more, and the number of interfaces 1102 can be multiple.

[0124] In one embodiment, for the case where the chip is used to implement the method embodiments described in this disclosure: The interface 1102 is used to receive or output signals; The processor 1101 is used to execute some or all of the contents of the communication processing method embodiment.

[0125] Understandably, the processor in this embodiment of the disclosure can be an integrated circuit chip with signal processing capabilities. In implementation, each step of the above method embodiment can be completed by integrated logic circuits in the processor's hardware or by instructions in software form. The processor described above can be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components.

[0126] Understandably, the memory in the embodiments of this disclosure may be volatile memory or non-volatile memory, or may include both volatile and non-volatile memory. The non-volatile memory may be read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. The volatile memory may be random access memory (RAM), which serves as an external cache. By way of example, but 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 (DDRSDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous linked dynamic random access memory (SLDRAM), and direct rambus RAM (DR RAM). It should be noted that the memory used in the systems and methods described herein is intended to include, but is not limited to, these and any other suitable types of memory.

[0127] It should be noted that the descriptions of the storage media, devices, and chip embodiments above are similar to the descriptions of the method embodiments above, and have similar beneficial effects. For technical details not disclosed in the storage media, storage media, and device embodiments of this disclosure, please refer to the descriptions of the method embodiments of this disclosure for understanding.

[0128] Other embodiments of this disclosure will readily occur to those skilled in the art upon consideration of the specification and practice of this disclosure. This disclosure is intended to cover any variations, uses, or adaptations of this disclosure that follow the general principles of this disclosure and include common knowledge or customary techniques in the art not disclosed herein. The specification and examples are to be considered exemplary only, and the true scope and spirit of this disclosure are indicated by the following claims.

[0129] It should be understood that this disclosure is not limited to the precise structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this disclosure is limited only by the appended claims.

Claims

1. A communication processing method, characterized in that, The method, applied to the communication controller of the master device, includes: Determine target communication parameters, wherein the target communication parameters include at least a connection interval, which is determined based on a preset critical threshold; A control command is sent to the communication controller of the slave device. The control command includes the target communication parameters, which are used to control the data communication between the master device and the slave device.

2. The method according to claim 1, characterized in that, When the master device needs to send a data packet to the slave device, determining the target communication parameters includes: The amount of data to be transmitted by the master device and the transmission reference threshold of the master device are obtained. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the communication controller of the master device. The transmission reference threshold of the master device is determined based on the cache size of the communication controller of the master device. The target communication parameters are determined based on the amount of data to be transmitted by the master device and the transmission reference threshold of the master device.

3. The method according to claim 1, characterized in that, When the slave device needs to send a data packet to the master device, determining the target communication parameters includes: Receive a request command sent by the communication controller of the slave device, the request command being used to request the determination of the target communication parameters; In response to the request command, the target communication parameters are determined.

4. The method according to claim 3, characterized in that, The request command includes the preset critical threshold, which is determined by the slave device's communication controller based on the slave device's pending data transmission amount and the slave device's transmission reference threshold. The slave device's pending data transmission amount is the number of data packets cached in the slave device's communication controller and to be sent to the master device. The slave device's transmission reference threshold is determined based on the cache size of the slave device's communication controller.

5. The method according to claim 2 or 4, characterized in that, When the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or, When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

6. The method according to claim 2 or 4, characterized in that, The transmission reference threshold includes a first reference threshold and a second reference threshold. When the amount of data to be transmitted is greater than the first reference threshold, the preset critical threshold is a preset third critical threshold; or, When the amount of data to be transmitted is less than or equal to the first reference threshold and greater than the second reference threshold, the preset critical threshold is a preset fourth critical threshold. When the amount of data to be transmitted is less than or equal to the second reference threshold, the preset critical threshold is a preset fifth critical threshold; Wherein, the third critical threshold, the fourth critical threshold, and the fifth critical threshold are all critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the third critical threshold, the fourth critical threshold, and the fifth critical threshold decrease in sequence, and the first reference threshold is greater than the second reference threshold.

7. The method according to claim 2 or 4, characterized in that, The transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

8. The method according to any one of claims 1-4, characterized in that, The target communication parameters also include an update time point, which indicates the actual time point at which the connection interval is updated.

9. A communication processing method, characterized in that, The method, applied to a communication controller of a slave device, includes: The system receives control commands sent by the communication controller of the master device. The control commands include target communication parameters, which include at least a connection interval. The connection interval is determined based on a preset critical threshold. The target communication parameters are used to control data communication between the master device and the slave device.

10. The method according to claim 9, characterized in that, The target communication parameters also include an update time point, which indicates the actual time point at which the connection interval is updated. The method further includes: In response to the control command, the connection interval is updated based on the update time point.

11. The method according to claim 9, characterized in that, Before receiving the control command sent by the communication controller of the master device when the slave device needs to send a data packet to the master device, the method further includes: A request command is sent to the communication controller of the master device, the request command being used to request the master device to determine the target communication parameters.

12. The method according to claim 11, characterized in that, The request command includes the preset critical threshold, and the method further includes: The amount of data to be transmitted from the slave device and the transmission reference threshold of the slave device are obtained. The amount of data to be transmitted from the slave device is the number of data packets to be sent to the master device that are cached in the communication controller of the slave device. The transmission reference threshold of the slave device is determined based on the cache size of the communication controller of the slave device. The preset critical threshold is determined based on the amount of data to be transmitted by the slave device and the transmission reference threshold of the slave device.

13. The method according to claim 9, characterized in that, When the master device needs to send a data packet to the slave device, the target communication parameters are determined by the master device's communication controller based on the amount of data to be transmitted by the master device and the master device's transmission reference threshold. The amount of data to be transmitted by the master device is the number of data packets to be sent to the slave device that are cached in the master device's communication controller, and the master device's transmission reference threshold is determined based on the cache size of the master device's communication controller.

14. The method according to claim 12 or 13, characterized in that, When the amount of data to be transmitted is greater than the transmission reference threshold, the preset critical threshold is a preset first critical threshold; or, When the amount of data to be transmitted is less than or equal to the transmission reference threshold, the preset critical threshold is a preset second critical threshold; Wherein, the first critical threshold and the second critical threshold are both critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the first critical threshold is less than the second critical threshold.

15. The method according to claim 12 or 13, characterized in that, The transmission reference threshold includes a first reference threshold and a second reference threshold. When the amount of data to be transmitted is greater than the first reference threshold, the preset critical threshold is a preset third critical threshold; or, When the amount of data to be transmitted is less than or equal to the first reference threshold and greater than the second reference threshold, the preset critical threshold is a preset fourth critical threshold. When the amount of data to be transmitted is less than the second reference threshold, the preset critical threshold is a preset fifth critical threshold; Wherein, the third critical threshold, the fourth critical threshold, and the fifth critical threshold are all critical thresholds of the connection interval obtained when the master device and the slave device establish communication, and the third critical threshold, the fourth critical threshold, and the fifth critical threshold decrease in sequence, and the first reference threshold is greater than the second reference threshold.

16. The method according to claim 12 or 13, characterized in that, The transmission reference threshold of the target device is positively correlated with the buffer size of the communication controller of the target device, and / or the buffer size of the communication controller of the target device supports expansion, and the target device includes the master device or the slave device.

17. A communication processing device, characterized in that, A communication controller applied to a master device, the device comprising: The processing module is configured to determine target communication parameters, the target communication parameters including at least a connection interval, the connection interval being determined based on a preset critical threshold; The transceiver module is configured to send control commands to the communication controller of the slave device. The control commands include the target communication parameters, which are used to control the data communication between the master device and the slave device.

18. A communication processing device, characterized in that, A communication controller applied to a slave device, the device comprising: The transceiver module is configured to receive control commands sent by the communication controller of the master device. The control commands include target communication parameters, which include at least a connection interval. The connection interval is determined based on a preset critical threshold. The target communication parameters are used to control data communication between the master device and the slave device.

19. An electronic device, characterized in that, include: processor; Memory used to store processor-executable instructions; The processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 1 to 8; or, the processor is configured to execute the executable instructions to implement the steps of the method according to any one of claims 8 to 16.

20. A computer-readable storage medium having computer program instructions stored thereon, characterized in that, When the computer program instructions are executed by the processor, they implement the steps of the method according to any one of claims 1 to 8; or, when the computer program instructions are executed by the processor, they implement the steps of the method according to any one of claims 9 to 16.

21. A chip, characterized in that, It includes a processor and an interface; the processor is configured to read instructions to execute the method of any one of claims 1 to 8; or, the processor is configured to read instructions to execute the method of any one of claims 9 to 16.