CN113965915A - Data processing method and electronic equipment - Google Patents

Data processing method and electronic equipment Download PDF

Info

Publication number
CN113965915A
CN113965915A CN202111196779.5A CN202111196779A CN113965915A CN 113965915 A CN113965915 A CN 113965915A CN 202111196779 A CN202111196779 A CN 202111196779A CN 113965915 A CN113965915 A CN 113965915A
Authority
CN
China
Prior art keywords
parameter
host
delay range
slave
updating
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.)
Granted
Application number
CN202111196779.5A
Other languages
Chinese (zh)
Other versions
CN113965915B (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

Images

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 time delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host machine is in communication connection with the slave machine based on a Bluetooth protocol; reading a second time delay range parameter used by the current communication connection with the host; determining the minimum value of the first time delay range parameter and the second time 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 energy) technology is receiving increasing attention. BLE is a low-power consumption Bluetooth protocol released by a Bluetooth technical alliance, and BLE equipment is divided into a host and a slave 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 are often required to perform multiple communication connections to enable the new bluetooth connection parameters to be effective at a specified time point, so that communication delay may exist between the master and the slave.
Disclosure of Invention
An object of the embodiments of the present application is to provide a data processing method and an electronic device, which can solve a problem how to reduce communication delay between a master and a slave when updating bluetooth connection parameters.
In a first aspect, an embodiment of the present application provides a data processing method, where the method includes:
acquiring parameter updating information, and acquiring a first time delay range parameter from the parameter updating information; the parameter updating information is used for updating the Bluetooth connection parameters of the host and the slave;
reading a second time delay range parameter used by the current communication connection with the host;
determining a target parameter according to a comparison result of the first time delay range parameter and the second time 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 time delay range parameter from the parameter updating information; the parameter updating information is used for updating the Bluetooth connection parameters of the host and the slave;
reading a second time delay range parameter used by the current communication connection with the host;
determining a target parameter according to a comparison result of the first time delay range parameter and the second time 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, which includes a processor, a memory, and a program or an instruction stored on the memory and executable on the processor, and when executed by the processor, the program or the instruction implements the steps of the data processing method according to the first aspect.
In a fourth aspect, the present application provides a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the data processing method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides 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 the data processing method according to the first aspect.
In the embodiment of the application, parameter updating information is obtained, and a first time delay range parameter is obtained from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host machine is in communication connection with the slave machine based on a Bluetooth protocol; reading a second time delay range parameter used by the current communication connection with the host; determining the minimum value of the first time delay range parameter and the second time 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 of the embodiment of the application, the data packet is received according to the minimum value of the first time delay range parameter and the currently used second time delay range parameter in the parameter updating information, so that the communication delay between the host and the slave can be reduced under the condition of avoiding data loss, and the data communication efficiency is improved.
Drawings
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application;
fig. 2 is a first interaction diagram of a master and a slave according to an embodiment of the present application;
fig. 3 is a second interaction diagram of a master and a slave according to an embodiment of the present application;
fig. 4 is a third schematic interaction diagram of a master and a slave according to an embodiment of the present application;
fig. 5 is a block diagram of a data processing apparatus according to an embodiment of the present application;
fig. 6 is a block diagram of an electronic device according to an embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The processor provided in the embodiments of the present application is described in detail with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
First, some communication modes between the master and the slave are described.
In the first case: the master machine can send a request for updating the Bluetooth connection parameters to the slave machine, then receive response information returned by the slave machine, send a notice for updating the Bluetooth connection parameters to the slave machine, and appoint a time point as the time point for updating the Bluetooth connection parameters through the notice and the slave machine. The slave updates the old bluetooth connection parameters to the new bluetooth connection parameters notified by the master at the time point of updating the bluetooth connection parameters.
In the second case: the master may first send a notification to the slave to update the bluetooth connection parameter, and the slave may agree with a time point through the notification as a time point for updating the bluetooth connection parameter. The slave updates the old bluetooth connection parameters to the new bluetooth connection parameters notified by the master at the time point of updating the bluetooth connection parameters.
In the third case: the slave computer can firstly send a request for updating the Bluetooth connection parameters to the host computer, then receive response information returned by the host computer, then receive a notice for updating the Bluetooth connection parameters sent by the host computer, take a time point specified in the notice 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 computer at the time point.
In many cases, the slave still receives packets according to the old bluetooth connection parameters before the new bluetooth connection parameters are enabled, and may skip receiving multiple packets from the master. When the master needs to send a data packet to the slave at a higher rate, the slave skips receiving a plurality of data packets according to the old bluetooth connection parameters before the specified time point, which may cause time delay and reduce data communication efficiency.
Fig. 1 is a schematic flowchart of a data processing method according to an embodiment of the present application.
The execution main body of the data processing method in this embodiment may be a slave, or may be a device including a slave.
S102, acquiring parameter updating information, and acquiring a first time delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the master machine and the slave machine are in communication connection based on a 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 a Bluetooth protocol. The master and the slave can also be other master devices and slave devices which are connected through Bluetooth protocol communication. The 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 specific implementation, the master may send and receive data packets to and from the slave according to the set bluetooth connection parameters. And correspondingly to the host, 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, and a delay range parameter.
The connection interval parameter may be a connection interval (connection interval), the connection timeout parameter may be a connection timeout (connection timeout), and the latency range parameter may be a slave latency (latency). The interval between the master and the slave is called a connection interval. Connection timeout may be understood as the parameter sets a time threshold within which the master and slave will automatically disconnect if no communication connection occurs.
The slave time delay can represent the time interval between two adjacent times of receiving the data packets sent by the master by the slave. In addition, the master and the slave need to maintain Connection through periodic "handshakes", each "handshake" is regarded as a Connection Event (Connection Event), and each Connection Event has an Event count (Event Counter). The slave computer delays, which can also be understood as that the slave computer can skip listening to a plurality of connection events, so as to realize lower power consumption, and the number of connection events skipped from listening by the slave computer is the slave computer delay. For example, if the slave has a latency of 2, the slave may skip receiving a packet twice for each packet received.
Allowing slaves to skip a certain number of connection events in the bluetooth protocol does not have to listen to save power consumption, but the master has to actively send handshake information at set connection intervals. The master does not receive a reply when the slave skips the snoop connection event.
The various bluetooth connection parameters may be described below in conjunction with fig. 2. Fig. 2 is a first interaction diagram of a master and a slave according to an embodiment of the present disclosure.
Referring to fig. 2, T denotes a transmission packet, and R denotes a reception packet. In case the slave does not skip the snoop connection event, the send packet of the master corresponds to the receive packet of the slave, and vice versa. In the case where the slave skips the snoop connection event, the master performs transmitting and receiving the data packet, and the slave does not perform transmitting and receiving the data packet. Even if the two parties do not have any valid data to interact, a periodic handshake is necessary to maintain the connection.
When one-time handshake is carried out, for the host, a data packet is sent to the 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 aforementioned bluetooth connection parameters. In fig. 2, the slave performs one handshake at time 201, skipping two handshakes, performs another handshake at time 202, skips two handshakes, and performs another handshake. The slave latency in figure 2 is 2.
The parameter update information may be used to update the bluetooth connection parameters of the master and the slave. The parameter update information may be transmitted from the master to the slave, or may be transmitted from the slave to the master.
The first delay range parameter obtained from the parameter update information may be a slave delay characterizing a time interval between two adjacent slave receiving data packets sent by the master.
Optionally, obtaining parameter update information includes: when a first updating request is sent to a host, acquiring the first updating request; or receiving a second updating request sent by the host; alternatively, a first update notification sent by the host is received.
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 master for updating the bluetooth connection parameter, and specifically, may be a parameter update request sent from the slave to the master for updating the delay range parameter. After receiving the first update request, the master may return corresponding response information to the slave, and if the response information is used to characterize that the master receives the first update request, the master further sends 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 master to the slave for updating the bluetooth connection parameter, and specifically, may be a parameter update request sent by the master to the slave for updating the delay range parameter. After sending the second update request, the master 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 master further sends a parameter update notification for updating the delay range parameter to the slave.
(a3) The first update notification may be a parameter update notification that is sent by the master directly to the slave without sending any request, and specifically, may be a parameter update notification that is sent by the master to the slave and is used for updating the delay range parameter.
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.
And S104, reading a second time delay range parameter used by the current communication connection with the host.
And the slave machine reads the time delay range parameter used when in communication connection with the host machine as a second time delay range parameter.
A conventional process for updating the delay bound parameter may be described herein in connection with fig. 3. Fig. 3 is a second interaction diagram of a master and a slave according to an embodiment of the present disclosure.
Referring to fig. 3, T denotes a transmission packet, and R denotes a reception packet. In case the slave does not skip the snoop connection event, the send packet of the master corresponds to the receive packet of the slave, and vice versa. In the case where the slave skips the snoop connection event, the master performs transmitting and receiving the data packet, and the slave does not perform transmitting and receiving the data packet. Even if the two parties do not have any valid data to interact, a periodic handshake is necessary to maintain the connection.
In fig. 3, at time 201, the host issues a parameter update notification, which specifies time 202 as the effective time of the first latency range parameter. The slave performs one handshake at time point 201 according to the second delay range parameter, and skips two handshakes. When the first delay time range parameter is valid at time point 202, the handshake is not skipped from time point 202, and multiple handshakes are continuously performed.
And S106, determining the minimum value of the first time delay range parameter and the second time delay range parameter as a target parameter.
And comparing the values of the first delay range parameter and the second delay range parameter, and taking the smaller one of the values 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 indicates that the new delay range parameter is greater than the old delay range parameter, that is, the number of connection events skipped by the slave is increased from small to large, and at this time, the new delay range parameter should not be enabled immediately, because the parameter update request has a possibility of being rejected, if the slave immediately adopts the new delay range parameter, the slave may miss a data packet sent by the host, resulting in data loss.
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 time delay range parameter is smaller than the second time delay range parameter, the new time delay range parameter is smaller than the old time delay range parameter, that is, the number of connection events for the slave to skip monitoring is reduced from number to number, and under the condition, the risk of data loss does not exist, the new time delay range parameter can be allowed to take effect immediately, so that the communication delay between the master and the slave is effectively reduced.
And S108, receiving the data packet sent by the host according to the target parameter.
And the slave receives the data packet sent by the host according to the smaller one of the first time delay range parameter and the second time delay range parameter.
Here, the effect of receiving the data packet transmitted by the master from the slave according to the target parameter when the first delay time range parameter is smaller than the second delay time range parameter can be described with reference to fig. 4. Fig. 4 is a third schematic interaction diagram of a master and a slave according to an embodiment of the present application.
Referring to fig. 4, T denotes a transmission packet, and R denotes a reception packet. In case the slave does not skip the snoop connection event, the send packet of the master corresponds to the receive packet of the slave, and vice versa. In the case where the slave skips the snoop connection event, the master performs transmitting and receiving the data packet, and the slave does not perform transmitting and receiving the data packet. Even if the two parties do not have any valid data to interact, a periodic handshake is necessary to maintain the connection.
In fig. 3, at time 201, the host issues a parameter update notification, which specifies time 202 as the effective time of the first latency range parameter. If the first delay range parameter is smaller than the second delay range parameter, the slave 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 updating request; the first response information is used for representing that the host rejects the first updating request; and receiving the data packet sent by the host according to the second time delay range parameter.
The master may receive the first update request sent by the slave and may reject the first update request sent by the slave. When the slave receives response information which is returned by the master according to the first updating request and rejects the first updating request, the slave also receives a data packet sent by the master according to the original time delay range parameter, namely the second time delay range parameter.
After the value of the time delay range parameter is actively triggered to be updated, if the first time delay range parameter is smaller than the second time delay parameter, the slave machine can enable the first time delay range parameter with the smaller value to take effect immediately, and even if the slave machine receives first response information which is sent by the host machine and refuses the first updating request after a period of time, the slave machine can immediately recover the second time delay range parameter which is originally used, and data loss is avoided.
For example, the slave sends a first update request to the master at time T1, where the first update request carries a first delay range parameter X1. The slave reads the currently used second delay time range parameter Y1 at time point T1, X1< Y1. At the time point T1, the slave updates the value of the delay spread parameter used by the slave from the second delay spread parameter Y1 to the first delay spread parameter X1. And the slave receives the data packet transmitted by the master according to the first time delay range parameter X1 from the time point T1. The master receives the first update request at time point T1, and sends corresponding first response information to the slave according to the first update request at time point T2, wherein the first response information is used for indicating that the first update request is rejected. The slave receives the first response information at a time point T3. At the time point T3, the slave updates the value of the delay spread parameter used by the slave from the first delay spread parameter X1 to the second delay spread parameter Y1. From the time point T3, the slave receives the data packet transmitted by the master according to the second delay range parameter Y1.
Optionally, the parameter update message carries a first time parameter; the data processing method further comprises: determining a parameter updating time point according to the first time parameter; and receiving the data packet sent by the host according to the first time delay range parameter at the parameter updating time point.
The parameter updating notice sent by the host to the slave carries the first time parameter. The first time parameter may be a host-specified point in time. The slave may determine a time point designated by the master as a parameter update time point. The master machine and the slave machine can jointly execute the numerical value updating of the time delay range parameter at the parameter updating time point.
If the slave receives the data packet sent by the host according to the old time delay range parameter, namely the second time delay range parameter, before the parameter updating time point after the execution of the step S102, the slave 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 master according to the new delay range parameter, that is, the first delay range parameter, before the parameter update time point after the execution of S102, 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, and the slave receives the first update notification at a time point T2, and reads a second delay range parameter Y2 used currently, where X2> Y2. The slave, after comparing the values of X2 and Y2, still receives the data packet sent by the master according to the second delay range parameter Y2 between time T2 and time T3. And the master machine and the slave machine carry out numerical value updating of the time delay range parameter at the time point T3 together, and the value of the time delay range parameter is updated from the second time delay range parameter Y2 to the first time delay range parameter X2. The slave receives the data packet transmitted by the master according to the first delay range parameter X2 from the time point T3.
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 time delay range parameter X3, and the slave receives the first update notification at a time point T2, and reads a second time delay range parameter Y3 used currently, where X3< Y3. After comparing the values of X3 and Y3, the slave updates the value of the delay spread parameter used by the slave from the second delay spread parameter Y3 to the first delay spread parameter X3 at time T2. The master and the slave update the value of the delay time range parameter at the time point T3 together, and the slave updates the value of the delay time range parameter in advance, so that the slave actually receives the data packet transmitted by the master from the time point T2 according to the delay time range parameter X3, that is, the slave receives the data packet transmitted by the master according to the first delay time range parameter X3 no matter between T2 and T3 or after the time points T3 and T3.
In the embodiment of the data processing method shown in fig. 1, parameter update information is obtained, and a first delay range parameter is obtained from the parameter update information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host machine is in communication connection with the slave machine based on a Bluetooth protocol; reading a second time delay range parameter used by the current communication connection with the host; determining the minimum value of the first time delay range parameter and the second time 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 of the embodiment of the application, the data packet is received according to the minimum value of the first time delay range parameter and the currently used second time delay range parameter in the parameter updating information, so that the communication delay between the host and the slave can be reduced under the condition of avoiding data loss, and the 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 main 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 apparatus executes a data processing method as an example, and the data processing apparatus provided in the embodiment of the present application is described.
Fig. 5 is a 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 time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host and the slave are in communication connection 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 updating request is sent to the host computer, the first updating request is obtained;
alternatively, the first and second electrodes may be,
receiving a second updating request sent by the host;
alternatively, the first and second electrodes may be,
and receiving a first updating notice 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 rejects the first updating 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 update message 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 time delay range parameter at the parameter updating time point.
In the embodiment of the application, parameter updating information is obtained, and a first time delay range parameter is obtained from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host machine is in communication connection with the slave machine based on a Bluetooth protocol; reading a second time delay range parameter used by the current communication connection with the host; determining the minimum value of the first time delay range parameter and the second time 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 of the embodiment of the application, the data packet is received according to the minimum value of the first time delay range parameter and the currently used second time delay range parameter in the parameter updating information, so that the communication delay between the host and the slave can be reduced under the condition of avoiding data loss, and the data communication efficiency is improved.
The data processing device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The data processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The data processing apparatus provided in the embodiment of the present application can implement each process implemented by the foregoing data processing method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 600 is further provided in this embodiment of the present application, and includes a processor 601, a memory 602, and a program or an instruction stored in the memory 602 and capable of being executed on the processor 601, where the program or the instruction is executed by the processor 601 to implement each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
Processor 601 may include various structures as in the foregoing processor embodiments, which are not described in detail herein.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, and a processor 710.
The processor 710 in the figure may include various structures in the processor embodiments as described above, and thus, the description thereof is omitted. Those skilled in the art will appreciate that the electronic device 700 may also include a power supply (e.g., a battery) for powering the various components, and the power supply may be logically coupled to the processor 710 via a power management system, such that the functions of managing charging, discharging, and power consumption may be performed 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, or combine some components, or arrange different components, and thus, the description is omitted here.
Wherein, the processor 710 is configured to:
acquiring parameter updating information, and acquiring a first time delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host and the slave are in communication connection based on a Bluetooth protocol;
reading a second time delay range parameter used by the current communication connection with the host;
determining the minimum value of the first time delay range parameter and the second time 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 obtained, and a first time delay range parameter is obtained from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host machine is in communication connection with the slave machine based on a Bluetooth protocol; reading a second time delay range parameter used by the current communication connection with the host; determining the minimum value of the first time delay range parameter and the second time 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 of the embodiment of the application, the data packet is received according to the minimum value of the first time delay range parameter and the currently used second time delay range parameter in the parameter updating information, so that the communication delay between the host and the slave can be reduced under the condition of avoiding data loss, and the data communication efficiency is improved.
Optionally, the processor 710 is further configured to:
the acquiring of the parameter update information includes:
when a first updating request is sent to the host computer, the first updating request is obtained;
alternatively, the first and second electrodes may be,
receiving a second updating request sent by the host;
alternatively, the first and second electrodes may be,
and receiving a first updating notice sent by the host.
Optionally, the processor 710 is further configured to:
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 rejects the first updating request;
and receiving the data packet sent by the host according to the second time delay range parameter.
Optionally, the parameter update message carries a first time parameter; processor 710, further configured to:
determining a parameter updating time point according to the first time parameter;
and receiving the data packet sent by the host according to the first time delay range parameter at the parameter updating time point.
By the embodiment of the application, the parameter updating information can be acquired when any one of the master machine and the slave machine 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 master machine rejects the first updating request sent by the slave machine, and the value of the time delay range parameter is updated to the first time delay range parameter at the parameter updating time point specified by the master machine.
It should be understood that in the embodiment of the present application, the input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics Processing Unit 7041 processes image data of still pictures or videos 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 of 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, and a joystick, 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 applications and operating systems. Processor 710 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the data processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the 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 (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the data processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, 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 an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A data processing method, comprising:
acquiring parameter updating information, and acquiring a first time delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host and the slave are in communication connection based on a Bluetooth protocol;
reading a second time delay range parameter used by the current communication connection with the host;
determining the minimum value of the first time delay range parameter and the second time delay range parameter as a target parameter;
and receiving the data packet sent by the host according to the target parameter.
2. The method of claim 1, wherein the obtaining the parameter update information comprises:
when a first updating request is sent to the host computer, the first updating request is obtained;
alternatively, the first and second electrodes may be,
receiving a second updating request sent by the host;
alternatively, the first and second electrodes may be,
and receiving a first updating notice 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 updating request; the first response information is used for representing that the host rejects the first updating request;
and receiving the data packet sent by the host according to the second time delay range parameter.
4. The method of claim 1, wherein the parameter update message carries a first time parameter; the method further comprises the following steps:
determining a parameter updating time point according to the first time parameter;
and receiving the data packet sent by the host according to the first time delay range parameter at the parameter updating time point.
5. A data processing apparatus, comprising:
the information acquisition module is used for acquiring parameter updating information and acquiring a first time delay range parameter from the parameter updating information; the first time delay range parameter is used for representing the time interval between the data packets sent by the two adjacent receiving hosts of the slave; the host and the slave are in communication connection based on a Bluetooth protocol;
the parameter reading module is used for reading a second time delay range parameter used by the current 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.
6. The apparatus of claim 5, wherein the information obtaining module is specifically configured to:
when a first updating request is sent to the host computer, the first updating request is obtained;
alternatively, the first and second electrodes may be,
receiving a second updating request sent by the host;
alternatively, the first and second electrodes may be,
and receiving a first updating notice sent by the host.
7. The apparatus of 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 rejects the first updating 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 parameter update message carries a first time parameter; the device 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 time delay range parameter at the parameter updating time point.
9. An electronic device, comprising: processor, memory and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implements the steps of the data processing method of any one of claims 1 to 4.
10. A readable storage medium, characterized in that it stores thereon a program or instructions which, when executed by the processor, implement the steps of the data processing method according to any one 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 true CN113965915A (en) 2022-01-21
CN113965915B 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)

Cited By (1)

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

Citations (10)

* 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
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
CN105451369A (en) * 2015-12-04 2016-03-30 小米科技有限责任公司 Method and apparatus for updating connection parameter of Bluetooth device with low power consumption
US20160381633A1 (en) * 2015-06-26 2016-12-29 Hon Hai Precision Industry Co., Ltd. Method and device for reducing 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
US20210044680A1 (en) * 2019-08-07 2021-02-11 Samsung Electronics Co., Ltd. Apparatus and method for fast communication between master and slave
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

Patent Citations (10)

* 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
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
US20160381633A1 (en) * 2015-06-26 2016-12-29 Hon Hai Precision Industry Co., Ltd. Method and device for reducing power consumption
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
US20210044680A1 (en) * 2019-08-07 2021-02-11 Samsung Electronics Co., Ltd. Apparatus and method for fast communication between master and slave
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网调度策略的设计与仿真", ***仿真学报, no. 09, 20 September 2006 (2006-09-20), pages 177 - 180 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN113965915B (en) 2024-03-29

Similar Documents

Publication Publication Date Title
CN108512695B (en) Method and device for monitoring application blockage
US20190302867A1 (en) Method and apparatus for reducing continuous-wakeup delay of bluetooth loudspeaker, and bluetooth loudspeaker
CN104142862A (en) Overload protection method and device for server
CN112671635B (en) Sending method, device and electronic equipment
WO2018086454A1 (en) Page data processing method and device
KR20130024801A (en) Terminal and method for managing application thereof
CN112286412A (en) Notification message management method and device
CN109803360A (en) WiFi dormancy control method, device, electronic equipment and storage medium
CN104506923A (en) Multimedia processing device, server and method
CN112749074B (en) Test case recommending method and device
CN112003978A (en) Conference management interface display method and device, storage medium and terminal equipment
CN106953852B (en) Registration method and device of broadcast receiver and terminal equipment
CN106874131B (en) Broadcast queue adjusting method and device and terminal equipment
CN113965915B (en) Data processing method and electronic equipment
JP6531593B2 (en) Communication method, communication program and information processing apparatus
CN113194450A (en) Bluetooth device management method and device
WO2023088198A1 (en) Network connection method and apparatus, and electronic device
CN109413180B (en) Data acquisition method, system and equipment and storage medium
WO2020038157A1 (en) Nan-based intelligent management method and related product
CN112866422B (en) Data request processing method and device
CN106899943B (en) Method, device and terminal equipment for controlling broadcast sender to send broadcast message
CN111144845B (en) Mobile terminal meeting reminding method and device
CN109195226B (en) Data transmission method and device, electronic equipment and computer readable storage medium
CN113094131A (en) Prompt resource display method, device, terminal, server and storage medium
CN113572671A (en) Equipment control method and device and electronic equipment

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