CN113965915B - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN113965915B
CN113965915B CN202111196779.5A CN202111196779A CN113965915B CN 113965915 B CN113965915 B CN 113965915B CN 202111196779 A CN202111196779 A CN 202111196779A CN 113965915 B CN113965915 B CN 113965915B
Authority
CN
China
Prior art keywords
parameter
host
delay range
receiving
slave
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111196779.5A
Other languages
Chinese (zh)
Other versions
CN113965915A (en
Inventor
高翔
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111196779.5A priority Critical patent/CN113965915B/en
Publication of CN113965915A publication Critical patent/CN113965915A/en
Application granted granted Critical
Publication of CN113965915B publication Critical patent/CN113965915B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W4/00Services specially adapted for wireless communication networks; Facilities therefor
    • H04W4/80Services using short range communication, e.g. near-field communication [NFC], radio-frequency identification [RFID] or low energy communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W28/00Network traffic management; Network resource management
    • H04W28/02Traffic management, e.g. flow control or congestion control
    • H04W28/0231Traffic management, e.g. flow control or congestion control based on communication conditions
    • H04W28/0236Traffic management, e.g. flow control or congestion control based on communication conditions radio quality, e.g. interference, losses or delay
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W76/00Connection management
    • H04W76/10Connection setup
    • H04W76/14Direct-mode setup
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D30/00Reducing energy consumption in communication networks
    • Y02D30/70Reducing energy consumption in communication networks in wireless communication networks

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The application discloses a data processing method and electronic equipment, and belongs to the technical field of communication. The data processing method comprises the following steps: acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; reading a second delay range parameter currently used by communication connection with the host; determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter; and receiving the data packet sent by the host according to the target parameter.

Description

Data processing method and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to a data processing method and electronic equipment.
Background
With the development of electronic technology, BLE (Bluetooth Low Energe,) technology is increasingly attracting attention. BLE is a bluetooth low energy protocol issued by the bluetooth technical union, and BLE equipment is divided into a master machine and a slave machine, which are in periodic communication connection. In order to save power consumption, the slave can skip the data packet sent by the receiving host according to the set Bluetooth connection parameters.
When the master or the slave actively proposes to update the bluetooth connection parameters, the master and the slave often need to perform communication connection for multiple times to enable the new bluetooth connection parameters to be effective at a designated time point, so that communication delay may exist between the master and the slave.
Disclosure of Invention
The embodiment of the application aims to provide a data processing method and electronic equipment, which can solve the problem of how to reduce communication delay between a host and a slave when Bluetooth connection parameters are updated.
In a first aspect, an embodiment of the present application provides a data processing method, including:
acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the parameter updating information is used for updating Bluetooth connection parameters of the host and the slave;
reading a second delay range parameter currently used by communication connection with the host;
determining a target parameter according to a comparison result of the first delay range parameter and the second delay range parameter;
and receiving the data packet sent by the host according to the target parameter.
In a second aspect, an embodiment of the present application provides a data processing apparatus, including:
acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the parameter updating information is used for updating Bluetooth connection parameters of the host and the slave;
reading a second delay range parameter currently used by communication connection with the host;
determining a target parameter according to a comparison result of the first delay range parameter and the second delay range parameter;
and receiving the data packet sent by the host according to the target parameter.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions implementing the steps of the data processing method according to the first aspect when executed by the processor.
In a fourth aspect, embodiments of the present application provide a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implement the steps of the data processing method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement a data processing method according to the first aspect.
In the embodiment of the application, parameter updating information is acquired, and a first delay range parameter is acquired from the parameter updating information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; reading a second delay range parameter currently used by communication connection with the host; determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter; and receiving the data packet sent by the host according to the target parameter. According to the technical scheme, the data packet is received according to the minimum value of the first delay range parameter and the currently used second delay range parameter in the parameter updating information, so that communication delay between the host computer and the slave computer can be reduced under the condition of avoiding data loss, and data communication efficiency is improved.
Drawings
FIG. 1 is a flow chart of a data processing method according to an embodiment of the present disclosure;
FIG. 2 is a schematic diagram of a first interaction between a master and a slave according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of a second interaction between a master and a slave according to an embodiment of the present disclosure;
FIG. 4 is a third interaction diagram of a master and a slave according to an embodiment of the present disclosure;
FIG. 5 is a schematic block diagram of a data processing apparatus according to an embodiment of the present disclosure;
fig. 6 is a schematic block diagram of an electronic device according to an embodiment of the present disclosure;
fig. 7 is a schematic hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
Technical solutions in the embodiments of the present application will be clearly described below with reference to the drawings in the embodiments of the present application, and it is apparent that the described embodiments are some embodiments of the present application, but not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments in the present application are within the scope of the protection of the present application.
The terms first, second and the like in the description and in the claims, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged, as appropriate, such that embodiments of the present application may be implemented in sequences other than those illustrated or described herein, and that the objects identified by "first," "second," etc. are generally of a type and not limited to the number of objects, e.g., the first object may be one or more. Furthermore, in the description and claims, "and/or" means at least one of the connected objects, and the character "/", generally means that the associated object is an "or" relationship.
The processor provided in the embodiment of the present application is described in detail below with reference to the accompanying drawings by using specific embodiments and application scenarios thereof.
First, some communication methods of the master and the slave will be described.
First case: the host computer can firstly send a request for updating the Bluetooth connection parameters to the slave computer, then receive response information returned by the slave computer, and then send a notification for updating the Bluetooth connection parameters to the slave computer, and a time point is appointed as a time point for updating the Bluetooth connection parameters by the notification and the slave computer. The slave updates the old bluetooth connection parameters to the new bluetooth connection parameters notified by the master at the time point of the update of the bluetooth connection parameters.
Second case: the host may first send a notification to the slave to update the bluetooth connection parameters, and by means of the notification and the slave, a time point is agreed as a time point for updating the bluetooth connection parameters. The slave updates the old bluetooth connection parameters to the new bluetooth connection parameters notified by the master at the time point of the update of the bluetooth connection parameters.
Third case: the slave can firstly send a request for updating the bluetooth connection parameters to the host, then receive response information returned by the host, then receive notification of updating the bluetooth connection parameters sent by the host, take a time point appointed in the notification as a time point for updating the bluetooth connection parameters, and update the old bluetooth connection parameters to new bluetooth connection parameters notified by the host at the time point.
In many of the above cases, the slave still receives the data packet according to the old bluetooth connection parameters before the new bluetooth connection parameters are validated, and may skip the receiving host to generate multiple data packets. When the host needs to send data packets to the slave according to a higher rate, the slave skips receiving a plurality of data packets according to the old bluetooth connection parameters before a designated time point, which may cause time delay and reduce data communication efficiency.
Fig. 1 is a flow chart of a data processing method according to an embodiment of the present application.
The execution subject of the data processing method in this embodiment may be a slave or a device including a slave.
S102, acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the master and the slave are in communication connection based on the Bluetooth protocol.
The master in this embodiment may be a BLE master, and the slave may be a BLE slave. The BLE host and the BLE slave are in communication connection based on the Bluetooth protocol. The master and the slave can also be other master devices and slave devices which are in communication connection through the Bluetooth protocol. Bluetooth connection parameters can be preset between the host and the slave, and communication connection is carried out according to the set Bluetooth connection parameters.
In particular, the host may send data packets to the slave and receive data packets from the slave according to the set bluetooth connection parameters. And correspondingly, the slave can receive the data packet sent by the host and send the data packet to the host according to the Bluetooth connection parameters.
The bluetooth connection parameters may include a connection interval parameter, a connection timeout parameter, a latency range parameter.
The connection interval parameter may be a connection interval (connection interval), the connection timeout parameter may be a connection timeout (connection supervision timeout), and the delay range parameter may be a slave delay. The interval between the master and the slave is called a connection interval. A connection timeout is understood to mean that the parameter sets a time threshold within which the master and slave will automatically disconnect if no communication connection occurs.
The slave latency may characterize the time interval between two adjacent slave receivers of packets sent by the master. The master and the slave need to maintain the Connection through periodic "handshakes", each of which is regarded as a Connection Event (Connection Event), and each Connection Event has an Event Counter (Event Counter). The slave delays, and it can also be understood that the slave can skip interception of a plurality of connection events, so that lower power consumption is realized, and the number of connection events that the slave skips interception is the slave delays. For example, the slave delay is 2, and the slave can skip receiving the data packet twice every time the data packet is received.
In the bluetooth protocol, the slave is allowed to skip a certain number of connection events without interception, so as to save power consumption, but the host must actively send handshake information according to a set connection interval. When the slave skips listening for a connection event, the host does not receive a reply.
The various bluetooth connection parameters may be described below in connection with fig. 2. Fig. 2 is a schematic diagram of a first interaction between a master and a slave according to an embodiment of the present application.
As shown in fig. 2, t represents a transmission packet, and R represents a reception packet. In the case that the slave does not skip the snoop connection event, the transmitted data packet of the master corresponds to the received data packet of the slave, and vice versa. In the case that the slave skips the snoop connection event, the master performs the transmission and reception of the data packet, and the slave does not perform the transmission and reception of the data packet. Even if the two parties do not have any valid data to interact, they must handshake periodically to maintain the connection.
When one handshake is carried out, for a host, firstly, a data packet is sent to a slave, and then the data packet sent by the slave is received; for the slave, the data packet sent by the host is received first, and then the data packet is sent to the host. The interval between the two handshakes is the connection interval in the bluetooth connection parameters. In fig. 2, the slave performs a handshake at time 201, skips two handshakes, performs another handshake at time 202, skips two handshakes, and performs another handshake. The slave latency in fig. 2 is 2.
The parameter update information may be used to update bluetooth connection parameters of the master and the slave. The parameter update information may be sent from the master to the slave or from the slave to the master.
The first delay range parameter obtained from the parameter update information may be a slave delay used to characterize a time interval between two neighboring slave receiving packets sent by the host.
Optionally, acquiring the parameter update information includes: when a first update request is sent to a host, acquiring the first update request; or receiving a second update request sent by the host; or, receiving a first update notification sent by the host.
The parameter update information may be one of a first update request, a second update request, and a first update notification. Wherein:
(a1) The first update request may be a parameter update request sent from the slave to the host for updating the bluetooth connection parameter, and specifically, may be a parameter update request sent from the slave to the host for updating the delay range parameter. After receiving the first update request, the host may return corresponding response information to the slave, and if the response information is used to characterize that the host receives the first update request, the host may further send a parameter update notification for updating the delay range parameter to the slave.
(a2) The second update request may be a parameter update request sent by the host to the slave for updating the bluetooth connection parameter, and specifically, may be a parameter update request sent by the host to the slave for updating the delay range parameter. After sending the second update request, the host may receive corresponding response information returned by the slave, and if the response information is used to characterize that the slave receives the second update request, the host may further send a parameter update notification for updating the delay range parameter to the slave.
(a3) The first update notification may be a parameter update notification for updating the bluetooth connection parameter, which is directly transmitted by the host to the slave without any request being transmitted, and specifically may be a parameter update notification for updating the delay range parameter, which is transmitted by the host to the slave.
It should be noted that only the master can send out the parameter update notification, and the slave cannot send out the parameter update notification.
S104, reading a second delay range parameter used by the current communication connection with the host.
The slave reads a delay range parameter used when in communication connection with the host as a second delay range parameter.
A conventional process of updating the delay range parameter may be described herein in connection with fig. 3. Fig. 3 is a second interaction schematic diagram of a master and a slave according to an embodiment of the present application.
As shown in fig. 3, t represents a transmission packet, and R represents a reception packet. In the case that the slave does not skip the snoop connection event, the transmitted data packet of the master corresponds to the received data packet of the slave, and vice versa. In the case that the slave skips the snoop connection event, the master performs the transmission and reception of the data packet, and the slave does not perform the transmission and reception of the data packet. Even if the two parties do not have any valid data to interact, they must handshake periodically to maintain the connection.
In fig. 3, at time 201, the host issues a parameter update notification specifying time 202 as the effective time of the first delay range parameter. The slave performs a handshake at a time point 201 according to the second delay range parameter, and skips the two handshakes. The first delay range parameter is validated at time 202, and the handshake is not skipped from time 202, and the multiple handshakes are continued.
S106, determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter.
Comparing the values of the first delay range parameter and the second delay range parameter, and taking the smaller one of the first delay range parameter and the second delay range parameter, namely the minimum value of the first delay range parameter and the second delay range parameter, as the target parameter.
If the first delay range parameter is greater than the second delay range parameter, it means that the new delay range parameter is greater than the old delay range parameter, that is, the number of connection events that the slave skips interception will be less and more, at this time, the new delay range parameter should not be validated immediately, because the parameter update request is possible to be refused, if the slave immediately adopts the new delay range parameter, the slave may miss a data packet sent by the host, and data is lost.
If the first delay range parameter is equal to the second delay range parameter, the new delay range parameter is equal to the old delay range parameter, and the delay range parameter does not need to be updated.
If the first delay range parameter is smaller than the second delay range parameter, the new delay range parameter is smaller than the old delay range parameter, namely the number of connection events for which the slave computer skips interception is variable and less, and the risk of data loss does not exist under the condition, so that the new delay range parameter can be allowed to take effect immediately, and the communication delay between the host computer and the slave computer is effectively reduced.
S108, receiving the data packet sent by the host according to the target parameter.
The slave receives the data packet sent by the host according to the smaller one of the first delay range parameter and the second delay range parameter.
The effect of the slave receiving the data packet sent by the host according to the target parameter in the case where the first delay range parameter is smaller than the second delay range parameter can be described with reference to fig. 4. Fig. 4 is a third interaction schematic diagram of a master and a slave according to an embodiment of the present application.
As shown in fig. 4, t represents a transmission packet, and R represents a reception packet. In the case that the slave does not skip the snoop connection event, the transmitted data packet of the master corresponds to the received data packet of the slave, and vice versa. In the case that the slave skips the snoop connection event, the master performs the transmission and reception of the data packet, and the slave does not perform the transmission and reception of the data packet. Even if the two parties do not have any valid data to interact, they must handshake periodically to maintain the connection.
In fig. 3, at time 201, the host issues a parameter update notification specifying time 202 as the effective time of the first delay range parameter. If the first delay range parameter is smaller than the second delay range parameter, the slave machine does not skip the handshake from the time point 201 according to the first delay range parameter, and continuously performs multiple handshakes.
Optionally, after receiving the data packet sent by the host according to the target parameter, the data processing method further includes: receiving first response information returned by the host according to the first update request; the first response information is used for representing that the host refuses the first update request; and receiving the data packet sent by the host according to the second time delay range parameter.
The host may receive the first update request sent by the slave, or may reject the first update request sent by the slave. When the slave receives response information which is returned by the host and refuses the first updating request according to the first updating request, the slave also receives a data packet sent by the host according to the original time delay range parameter, namely the second time delay range parameter.
After the numerical value of the active triggering delay range parameter is updated, if the first delay range parameter is smaller than the second delay range parameter, the slave can enable the first delay range parameter with smaller numerical value to be effective immediately, and even if the slave receives the first response information which is sent by the host and refuses the first updating request after a period of time, the slave can also recover the originally used second delay range parameter immediately and cannot cause data loss.
For example, the slave sends a first update request to the master at a time point T1, where the first update request carries a first delay range parameter X1. The slave reads the second delay range parameter Y1, X1< Y1 currently used at time T1. At the time point T1, the slave updates the value of the delay range parameter used by the slave from the second delay range parameter Y1 to the first delay range parameter X1. The slave receives the data packet sent by the host according to the first delay range parameter X1 from the time point T1. The host receives the first update request at a time point T1, and sends corresponding first response information to the slave according to the first update request at a time point T2, wherein the first response information is used for representing that the first update request is refused. The slave receives the first response message at the time point T3. At the time point T3, the slave updates the value of the delay range parameter used by the slave from the first delay range parameter X1 to the second delay range parameter Y1. From the time point T3, the slave receives the data packet sent by the host according to the second delay range parameter Y1.
Optionally, the parameter update information carries a first time parameter; the data processing method further comprises the following steps: determining a parameter updating time point according to the first time parameter; and at the parameter updating time point, receiving the data packet sent by the host according to the first time delay range parameter.
The parameter update notification sent by the host to the slave carries a first time parameter. The first time parameter may be a host-specified point in time. The slave may determine the time point designated by the master as a parameter update time point. The master and the slave can jointly execute the numerical value update of the delay range parameter at the parameter update time point.
If the slave machine receives the data packet sent by the host machine according to the old time delay range parameter, namely the second time delay range parameter, before the parameter updating time point after the step S102 is executed, the slave machine updates the value of the time delay range parameter from the second time delay range parameter to the first time delay range parameter at the parameter updating time point; if the slave receives the data packet sent by the host according to the new delay range parameter, that is, the first delay range parameter, before the parameter update time point after S102 is executed, the slave does not need to perform any value update operation at the parameter update time point.
For example, the master sends a first update notification to the slave at a time point T1, where the first update notification carries a first time parameter T3 and a first delay range parameter X2, the slave receives the first update notification at a time point T2, and the slave reads a second delay range parameter Y2, X2> Y2 currently used. After comparing the values of X2 and Y2, the slave still receives the data packet sent by the host according to the second delay range parameter Y2 between the time point T2 and the time point T3. The host computer and the slave computer update the values of the delay range parameters at the time point T3, and update the values of the delay range parameters from the second delay range parameter Y2 to the first delay range parameter X2. Then, starting at the time point T3, the slave receives the data packet sent by the host according to the first delay range parameter X2.
For another example, the master sends a first update notification to the slave at a time point T1, where the first update notification carries a first time parameter T3 and a first delay range parameter X3, the slave receives the first update notification at a time point T2, and the slave reads a second delay range parameter Y3 currently used, where X3< Y3. After comparing the values of X3 and Y3, the slave updates the value of the delay range parameter used by the slave from the second delay range parameter Y3 to the first delay range parameter X3 at the time point T2. The host and the slave perform the value update of the delay range parameter at the time point T3 together, and since the slave has performed the value update of the delay range parameter in advance, the slave actually receives the data packet sent by the host according to the delay range parameter X3 from the time point T2, that is, the slave receives the data packet sent by the host according to the first delay range parameter X3, both between T2 and T3 and after the time point T3.
In the embodiment of the data processing method shown in fig. 1, parameter update information is acquired, and a first delay range parameter is acquired from the parameter update information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; reading a second delay range parameter currently used by communication connection with the host; determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter; and receiving the data packet sent by the host according to the target parameter. According to the technical scheme, the data packet is received according to the minimum value of the first delay range parameter and the currently used second delay range parameter in the parameter updating information, so that communication delay between the host computer and the slave computer can be reduced under the condition of avoiding data loss, and data communication efficiency is improved.
It should be noted that, in the data processing method provided in the embodiment of the present application, the execution body may be a data processing apparatus, or a control module in the data processing apparatus for executing the data processing method. In the embodiment of the present application, a data processing device is described by taking an example that the data processing device executes a data processing method.
Fig. 5 is a schematic block diagram of a data processing apparatus according to an embodiment of the present application.
As shown in fig. 5, the data processing apparatus 500 includes:
an information obtaining module 501, configured to obtain parameter update information, and obtain a first delay range parameter from the parameter update information; the first delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol;
a parameter reading module 502, configured to read a second delay range parameter currently used in communication connection with the host;
a parameter determining module 503, configured to determine a minimum value of the first delay range parameter and the second delay range parameter as a target parameter;
a first receiving module 504, configured to receive a data packet sent by the host according to the target parameter.
Optionally, the information obtaining module 501 is specifically configured to:
when a first update request is sent to the host, acquiring the first update request;
or,
receiving a second update request sent by the host;
or,
and receiving a first update notification sent by the host.
Optionally, the data processing apparatus 500 further comprises:
the information receiving module is used for receiving first response information returned by the host according to the first updating request; the first response information is used for representing that the host refuses the first update request;
and the second receiving module is used for receiving the data packet sent by the host according to the second time delay range parameter.
Optionally, the parameter updating information carries a first time parameter; the data processing apparatus 500 further includes:
the time point determining module is used for determining a parameter updating time point according to the first time parameter;
and the parameter updating module is used for receiving the data packet sent by the host according to the first delay range parameter at the parameter updating time point.
In the embodiment of the application, parameter updating information is acquired, and a first delay range parameter is acquired from the parameter updating information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; reading a second delay range parameter currently used by communication connection with the host; determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter; and receiving the data packet sent by the host according to the target parameter. According to the technical scheme, the data packet is received according to the minimum value of the first delay range parameter and the currently used second delay range parameter in the parameter updating information, so that communication delay between the host computer and the slave computer can be reduced under the condition of avoiding data loss, and data communication efficiency is improved.
The data processing device in the embodiments of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device may be a mobile electronic device or a non-mobile electronic device. By way of example, the mobile electronic device may be a cell phone, tablet computer, notebook computer, palm computer, vehicle-mounted electronic device, wearable device, ultra-mobile personal computer (ultra-mobile personal computer, UMPC), netbook or personal digital assistant (personal digital assistant, PDA), etc., and the non-mobile electronic device may be a server, network attached storage (Network Attached Storage, NAS), personal computer (personal computer, PC), television (TV), teller machine or self-service machine, etc., and the embodiments of the present application are not limited in particular.
The data processing apparatus in the embodiments of the present application may be an apparatus having an operating system. The operating system may be an Android operating system, an ios operating system, or other possible operating systems, which are not specifically limited in the embodiments of the present application.
The data processing device provided in the embodiment of the present application can implement each process implemented by the foregoing data processing method embodiment, and in order to avoid repetition, a description is omitted here.
Optionally, as shown in fig. 6, the embodiment of the present application further provides an electronic device 600, including a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of running on the processor 601, where the program or the instruction implements each process of the embodiment of the data processing method when executed by the processor 601, and the process can achieve the same technical effect, so that repetition is avoided, and no further description is given here.
The processor 601 may include various structures as in the foregoing processor embodiments, and are not described herein.
The electronic device in the embodiment of the application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: radio frequency unit 701, network module 702, audio output unit 703, input unit 704, sensor 705, display unit 706, user input unit 707, interface unit 708, memory 709, and processor 710.
The processor 710 in the figure may include various structures as in the foregoing processor embodiments, and will not be described herein. Those skilled in the art will appreciate that the electronic device 700 may also include a power source (e.g., a battery) for powering the various components, which may be logically connected to the processor 710 via a power management system so as to perform functions such as managing charge, discharge, and power consumption via the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown in the drawings, or may combine some components, or may be arranged with different components, which will not be described in detail herein.
Wherein the processor 710 is configured to:
acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the first delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol;
reading a second delay range parameter currently used for communication connection with the host;
determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter;
and receiving the data packet sent by the host according to the target parameter.
In the embodiment of the application, parameter updating information is acquired, and a first delay range parameter is acquired from the parameter updating information; the first time delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; reading a second delay range parameter currently used by communication connection with the host; determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter; and receiving the data packet sent by the host according to the target parameter. According to the technical scheme, the data packet is received according to the minimum value of the first delay range parameter and the currently used second delay range parameter in the parameter updating information, so that communication delay between the host computer and the slave computer can be reduced under the condition of avoiding data loss, and data communication efficiency is improved.
Optionally, the processor 710 is further configured to:
the obtaining parameter updating information includes:
when a first update request is sent to the host, acquiring the first update request;
or,
receiving a second update request sent by the host;
or,
and receiving a first update notification sent by the host.
Optionally, the processor 710 is further configured to:
receiving first response information returned by the host according to the first update request; the first response information is used for representing that the host refuses the first update request;
and receiving the data packet sent by the host according to the second time delay range parameter.
Optionally, the parameter updating information carries a first time parameter; processor 710, further configured to:
determining a parameter updating time point according to the first time parameter;
and at the parameter updating time point, receiving the data packet sent by the host according to the first delay range parameter.
According to the embodiment of the application, the parameter updating information can be obtained when any one of the host and the slave triggers the parameter updating of the time delay range parameter, the value of the time delay range parameter is restored to the second time delay range parameter when the host refuses the first updating request sent by the slave, and the value of the time delay range parameter is updated to the first time delay range parameter at the parameter updating time point appointed by the host.
It should be appreciated that in embodiments of the present application, the input unit 704 may include a graphics processor (Graphics Processing Unit, GPU) 7041 and a microphone 7042, with the graphics processor 7041 processing image data of still pictures or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The display unit 706 may include a display panel 7061, and the display panel 7061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071 is also referred to as a touch screen. The touch panel 7071 may include two parts, a touch detection device and a touch controller. Other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and so forth, which are not described in detail herein. Memory 709 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 710 may integrate an application processor that primarily processes operating systems, user interfaces, applications, etc., with a modem processor that primarily processes wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the embodiment of the data processing method, and the same technical effects can be achieved, so that repetition is avoided, and no further description is given here.
Wherein the processor is a processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk or an optical disk, and the like.
The embodiment of the application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled with the processor, and the processor is used for running a program or an instruction, so as to implement each process of the data processing method embodiment, and achieve the same technical effect, so that repetition is avoided, and no redundant description is provided here.
It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system-on-chip chips, chip systems, or system-on-chip chips, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Furthermore, it should be noted that the scope of the methods and apparatus in the embodiments of the present application is not limited to performing the functions in the order shown or discussed, but may also include performing the functions in a substantially simultaneous manner or in an opposite order depending on the functions involved, e.g., the described methods may be performed in an order different from that described, and various steps may also be added, omitted, or combined. Additionally, features described with reference to certain examples may be combined in other examples.
From the above description of the embodiments, it will be clear to those skilled in the art that the above-described embodiment method may be implemented by means of software plus a necessary general hardware platform, but of course may also be implemented by means of hardware, but in many cases the former is a preferred embodiment. Based on such understanding, the technical solutions of the present application may be embodied essentially or in a part contributing to the prior art in the form of a computer software product stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk), comprising several instructions for causing a terminal (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the methods described in the embodiments of the present application.
The embodiments of the present application have been described above with reference to the accompanying drawings, but the present application is not limited to the above-described embodiments, which are merely illustrative and not restrictive, and many forms may be made by those of ordinary skill in the art without departing from the spirit of the present application and the scope of the claims, which are also within the protection of the present application.

Claims (10)

1. A method of data processing, comprising:
acquiring parameter updating information, and acquiring a first delay range parameter from the parameter updating information; the first delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; the parameter updating information carries a first time parameter, the first time parameter is used for determining a parameter updating time point, and the host computer and the slave computer execute numerical value updating of the time delay range parameter at the parameter updating time point together;
reading a second delay range parameter currently used for communication connection with the host;
determining the minimum value of the first delay range parameter and the second delay range parameter as a target parameter;
and before the parameter updating time point, receiving the data packet sent by the host according to the target parameter.
2. The method of claim 1, wherein the obtaining parameter update information comprises:
when a first update request is sent to the host, acquiring the first update request;
or,
receiving a second update request sent by the host;
or,
and receiving a first update notification sent by the host.
3. The method of claim 2, further comprising, after said receiving the data packet sent by the host according to the target parameter:
receiving first response information returned by the host according to the first update request; the first response information is used for representing that the host refuses the first update request;
and receiving the data packet sent by the host according to the second time delay range parameter.
4. The method according to claim 1, wherein the method further comprises:
determining a parameter updating time point according to the first time parameter;
and at the parameter updating time point, receiving the data packet sent by the host according to the first delay range parameter.
5. A data processing apparatus, comprising:
the information acquisition module is used for acquiring parameter updating information and acquiring a first delay range parameter from the parameter updating information; the first delay range parameter is used for representing the time interval between two adjacent secondary receiving host machine transmitted data packets; the host computer is in communication connection with the slave computer based on a Bluetooth protocol; the parameter updating information carries a first time parameter, the first time parameter is used for determining a parameter updating time point, and the host computer and the slave computer execute numerical value updating of the time delay range parameter at the parameter updating time point together;
the parameter reading module is used for reading a second delay range parameter currently used for communication connection with the host;
a parameter determining module, configured to determine a minimum value of the first delay range parameter and the second delay range parameter as a target parameter;
and the first receiving module is used for receiving the data packet sent by the host according to the target parameter before the parameter updating time point.
6. The apparatus of claim 5, wherein the information acquisition module is specifically configured to:
when a first update request is sent to the host, acquiring the first update request;
or,
receiving a second update request sent by the host;
or,
and receiving a first update notification sent by the host.
7. The apparatus as recited in claim 6, further comprising:
the information receiving module is used for receiving first response information returned by the host according to the first updating request; the first response information is used for representing that the host refuses the first update request;
and the second receiving module is used for receiving the data packet sent by the host according to the second time delay range parameter.
8. The apparatus of claim 5, wherein the apparatus further comprises:
the time point determining module is used for determining a parameter updating time point according to the first time parameter;
and the parameter updating module is used for receiving the data packet sent by the host according to the first delay range parameter at the parameter updating time point.
9. An electronic device, comprising: a processor, a memory and a program or instruction stored on the memory and executable on the processor, which program or instruction when executed by the processor implements the steps of the data processing method as claimed in any one of claims 1 to 4.
10. A readable storage medium, characterized in that the readable storage medium has stored thereon a program or instructions which, when executed by a processor, implement the steps of the data processing method according to any of claims 1 to 4.
CN202111196779.5A 2021-10-14 2021-10-14 Data processing method and electronic equipment Active CN113965915B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111196779.5A CN113965915B (en) 2021-10-14 2021-10-14 Data processing method and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111196779.5A CN113965915B (en) 2021-10-14 2021-10-14 Data processing method and electronic equipment

Publications (2)

Publication Number Publication Date
CN113965915A CN113965915A (en) 2022-01-21
CN113965915B true CN113965915B (en) 2024-03-29

Family

ID=79464163

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111196779.5A Active CN113965915B (en) 2021-10-14 2021-10-14 Data processing method and electronic equipment

Country Status (1)

Country Link
CN (1) CN113965915B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117082480B (en) * 2023-09-25 2024-03-01 荣耀终端有限公司 Data processing method, device and storage medium based on Bluetooth communication

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797864A (en) * 2011-09-13 2014-05-14 北欧半导体公司 Wireless data communication between master device and slave device
CN105451369A (en) * 2015-12-04 2016-03-30 小米科技有限责任公司 Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN111328059A (en) * 2020-02-25 2020-06-23 Oppo广东移动通信有限公司 Data transmission method, data transmission device and electronic equipment
CN111491284A (en) * 2020-06-28 2020-08-04 深圳市中科蓝讯科技股份有限公司 Bluetooth B L E time delay optimization method, equipment and storage medium
CN111683396A (en) * 2020-05-28 2020-09-18 为麦智能科技(天津)有限公司 Information processing method and system and electronic equipment
CN112437371A (en) * 2020-08-11 2021-03-02 珠海市杰理科技股份有限公司 BLE link switching method, equipment, earphone pair, chip and medium
CN113348685A (en) * 2019-01-25 2021-09-03 华为技术有限公司 Method and device for establishing Bluetooth data channel

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160014550A1 (en) * 2014-07-09 2016-01-14 Samsung Electronics Co., Ltd. Method of dynamically managing ble communications in wireless communication network and system thereof
TWI578821B (en) * 2015-06-26 2017-04-11 鴻海精密工業股份有限公司 Method for Saving Power and Bluetooth Low Energy Device
KR20210017327A (en) * 2019-08-07 2021-02-17 삼성전자주식회사 Apparatus and method for fast communication between mast and slave

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103797864A (en) * 2011-09-13 2014-05-14 北欧半导体公司 Wireless data communication between master device and slave device
CN105451369A (en) * 2015-12-04 2016-03-30 小米科技有限责任公司 Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
CN113348685A (en) * 2019-01-25 2021-09-03 华为技术有限公司 Method and device for establishing Bluetooth data channel
CN111328059A (en) * 2020-02-25 2020-06-23 Oppo广东移动通信有限公司 Data transmission method, data transmission device and electronic equipment
CN111683396A (en) * 2020-05-28 2020-09-18 为麦智能科技(天津)有限公司 Information processing method and system and electronic equipment
CN111491284A (en) * 2020-06-28 2020-08-04 深圳市中科蓝讯科技股份有限公司 Bluetooth B L E time delay optimization method, equipment and storage medium
CN112437371A (en) * 2020-08-11 2021-03-02 珠海市杰理科技股份有限公司 BLE link switching method, equipment, earphone pair, chip and medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
蓝牙Ad hoc网调度策略的设计与仿真;马忠建;方旭明;蔡海慧;傲丹;;系统仿真学报;20060920(第09期);177-180+239 *

Also Published As

Publication number Publication date
CN113965915A (en) 2022-01-21

Similar Documents

Publication Publication Date Title
US10645559B2 (en) Bluetooth connection method and terminal
RU2686673C1 (en) Device and method of terminal control and terminal
EP3592004A1 (en) Broadcast processing method, device, storage medium and terminal device
KR101828295B1 (en) Terminal and method for managing application thereof
CN112671635B (en) Sending method, device and electronic equipment
US20240298258A1 (en) Network Connection Method, Electronic Device and Non-Transitory Readable Storage Medium
CN113965915B (en) Data processing method and electronic equipment
CN104506923A (en) Multimedia processing device, server and method
CN113992615B (en) Method and device for displaying withdrawal message, electronic equipment and storage medium
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN113225727B (en) Processing method and device and electronic equipment
CN112738865B (en) Service processing method and device and electronic equipment
CN108011860B (en) Method, device and terminal for processing broadcast message
CN106550021B (en) Push method and device for push message
CN104869617A (en) Terminal control method
WO2018161535A1 (en) Method, apparatus and terminal device for sending broadcast
CN115509770B (en) Micro-service calling method and device, electronic equipment and readable storage medium
CN112866422B (en) Data request processing method and device
WO2022222968A1 (en) Conference call recovery method, apparatus and system, electronic device, and readable storage medium
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN114518959A (en) Distributed node resource load balancing method and device and electronic equipment
CN111144845B (en) Mobile terminal meeting reminding method and device
CN113225830A (en) Data network uplink scheduling method and device and electronic equipment
CN112559469A (en) Data synchronization method and device
CN104954583A (en) Terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant