CN107509160B - Data transmission method, electronic device, and storage medium - Google Patents

Data transmission method, electronic device, and storage medium Download PDF

Info

Publication number
CN107509160B
CN107509160B CN201710713332.8A CN201710713332A CN107509160B CN 107509160 B CN107509160 B CN 107509160B CN 201710713332 A CN201710713332 A CN 201710713332A CN 107509160 B CN107509160 B CN 107509160B
Authority
CN
China
Prior art keywords
electronic device
time length
packet
bluetooth
sending
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
CN201710713332.8A
Other languages
Chinese (zh)
Other versions
CN107509160A (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.)
Shenzhen Skyworth Digital Technology Co Ltd
Original Assignee
Shenzhen Skyworth Digital Technology 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 Shenzhen Skyworth Digital Technology Co Ltd filed Critical Shenzhen Skyworth Digital Technology Co Ltd
Priority to CN201710713332.8A priority Critical patent/CN107509160B/en
Publication of CN107509160A publication Critical patent/CN107509160A/en
Application granted granted Critical
Publication of CN107509160B publication Critical patent/CN107509160B/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
    • H04W52/00Power management, e.g. TPC [Transmission Power Control], power saving or power classes
    • H04W52/02Power saving arrangements
    • H04W52/0209Power saving arrangements in terminal devices
    • H04W52/0225Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal
    • H04W52/0229Power saving arrangements in terminal devices using monitoring of external events, e.g. the presence of a signal where the received signal is a wanted signal
    • 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 embodiment of the invention discloses a data transmission method, electronic equipment and a storage medium. The data transmission method is suitable for a first electronic device with a Bluetooth communication function in a shallow sleep mode, wherein the first electronic device is successfully Bluetooth-paired with a second electronic device with the Bluetooth communication function, and the method comprises the following steps: the method comprises the steps of obtaining a set packet sending time length, sending a broadcast packet outwards every other first set time length within the set packet sending time length, wherein the duration of sending the broadcast packet is a second set time length, and the first set time length and the second set time length are both smaller than the set packet sending time length. Compared with the prior art that continuous broadcast packets are sent, the frequency of sending the broadcast packets to the outside is greatly reduced, and on the premise that the first electronic device and the second electronic device can be quickly connected back, the power consumption of the first electronic device in a shallow sleep mode is effectively reduced.

Description

Data transmission method, electronic device, and storage medium
Technical Field
The present invention relates to the field of consumer electronics technologies, and in particular, to a data transmission method, an electronic device, and a storage medium.
Background
With the development of consumer electronics technology, the functions of consumer electronics products are more and more, and some set top boxes on the market support the Findme function. The Findme function means that after the bluetooth remote controller and the set top box are paired, the set top box detects whether a key value signal output by the bluetooth remote controller is received after being powered on, and if not, the Findme function indicates that a user may not find the bluetooth remote controller, and if the user may fall in a certain corner (such as a sofa gap). At this moment, the set top box can be connected with the Bluetooth remote controller through the Bluetooth, then is connected through the Bluetooth, sends a buzzing instruction to the Bluetooth remote controller, and the Bluetooth remote controller will begin buzzing after receiving the buzzing instruction, so as to prompt the user that the user is 'I here'.
However, if the set-top box implements the Findme function, it is required that the bluetooth remote controller cannot be in the deep sleep state, and since the set-top box cannot be connected back to the bluetooth remote controller in the deep sleep state, the set-top box cannot send a buzzer instruction to the bluetooth remote controller, so that the Findme function cannot be implemented.
As shown in fig. 1, in the prior art, a is a broadcast duration for the bluetooth remote controller to transmit an a broadcast packet, and B is a broadcast duration for the bluetooth remote controller to transmit a B broadcast packet. According to the convention bluetooth protocol stack, the bluetooth remote controller must repeatedly send out a broadcast packet every 3.75ms within a complete broadcast duration (for example, a or b), which makes the set-top box only need to scan 3.75ms to receive the broadcast packet sent by the bluetooth remote controller, but at the same time, this also makes one broadcast become a continuous broadcast as a whole, because 3.75ms is almost negligible for one broadcast duration, one broadcast duration is hundreds of milliseconds or seconds, and 30 seconds or even 1 minute, so according to the convention bluetooth protocol stack, the broadcast packet sent out by the bluetooth remote controller can be regarded as a continuous broadcast packet.
For a set top box with a Findme function in a common user home, once the set top box is powered off, in order to realize the Findme function after the set top box is powered on, the bluetooth remote controller is switched from a working mode to a shallow sleep mode, and repeatedly sends a broadcast packet outwards once every 3.75ms, namely sends a continuous broadcast packet outwards, and the bluetooth remote controller consumes power consumption when sending the broadcast packet, namely in a period a and a period b. Since the bluetooth remote controller is in the shallow sleep mode most of the day, the power consumption of the bluetooth remote controller during the shallow sleep mode is often large.
Disclosure of Invention
In order to solve the related technical problems, the invention provides a data transmission method, electronic equipment and a storage medium, so as to reduce the power consumption of electronic equipment such as a bluetooth remote controller in a shallow sleep mode, and further reduce the overall power consumption of the electronic equipment.
In order to achieve the above purpose, the embodiment of the invention adopts the following technical scheme:
in a first aspect, an embodiment of the present invention provides a data sending method, which is applied to a first electronic device with a bluetooth communication function in a shallow sleep mode, where the first electronic device has successfully bluetooth paired with a second electronic device with a bluetooth communication function, and the method includes:
acquiring a set packet sending time length;
and sending a broadcast packet outwards every other first set time within the set packet sending time, wherein the duration of sending the broadcast packet once is a second set time, and the first set time and the second set time are both smaller than the set packet sending time.
Preferably, the set packet sending time length a is approximately equal to x, x is (n-1) x m + n × p, and n is greater than or equal to 8 and less than or equal to a/8, where a is the set packet sending time length, n is the total number of the broadcast packets sent within the set packet sending time length, p is a single packet sending time length for sending one broadcast packet, m is a packet sending interval time length for sending two adjacent broadcast packets, the actual packet sending time length x is a sum of the accumulated packet sending interval time length n × p and the accumulated single packet sending time length (n-1) × m, and the units of a, x, m, and p are milliseconds.
Preferably, the set packet sending time length a is 300 ms.
Preferably, the actual packet sending time length x is less than r, and r is t/2, where t is a scanning interval of the second electronic device when performing bluetooth scanning, r is a scanning time length of the second electronic device when performing bluetooth scanning, and both the units of r and t are milliseconds.
Preferably, before the step of obtaining the set packet sending duration, the method further includes:
and performing the Bluetooth pairing with the second electronic device.
Preferably, the first electronic device is a bluetooth remote controller.
Preferably, the second electronic device is a set top box with a Findme function.
Preferably, the second electronic device is a television with a Findme function.
In a second aspect, an embodiment of the present invention provides an electronic device, including:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the data transmission method according to any embodiment of the present invention.
In a third aspect, an embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method according to any embodiment of the present invention.
The technical scheme provided by the embodiment of the invention has the following beneficial effects:
the embodiment of the invention provides a data transmission method, electronic equipment and a storage medium, wherein when first electronic equipment is in a shallow sleep mode, a broadcast packet is transmitted outwards every first set time within the set packet transmission time, so that second electronic equipment which is successfully paired can quickly scan the broadcast packet, and Bluetooth connection is quickly reestablished with the first electronic equipment according to the broadcast packet, and quick reconnection is realized. Because the first electronic device in the shallow sleep mode generates power consumption only when the broadcast packet is sent outwards, the first electronic device intermittently sends the broadcast packet outwards within the set packet sending time, compared with the prior art that the continuous broadcast packet is sent, the frequency of sending the broadcast packet outwards is greatly reduced, and the power consumption of the first electronic device in the shallow sleep mode is effectively reduced on the premise that the first electronic device and the second electronic device can be quickly connected back.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings used in the description of the embodiments of the present invention will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the contents of the embodiments of the present invention and the drawings without creative efforts.
Fig. 1 is a waveform diagram of a bluetooth remote controller transmitting a broadcast packet according to a bluetooth protocol in a shallow sleep mode in the prior art;
fig. 2 is a schematic diagram of an application scenario provided in an embodiment of the present invention;
fig. 3 is a flowchart illustrating a data transmission method according to an embodiment of the present invention;
fig. 4 is a waveform diagram of a bluetooth remote controller sending a broadcast packet to the outside in the technical solution of the present invention;
fig. 5 is a flowchart illustrating another data transmission method according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the technical problems solved, technical solutions adopted and technical effects achieved by the present invention clearer, the technical solutions of the embodiments of the present invention will be described in further detail below with reference to the accompanying drawings, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 2 and fig. 3, the data transmission method provided in this embodiment is applicable to a first electronic device with a bluetooth communication function in a shallow sleep mode, where the first electronic device has successfully bluetooth paired with a second electronic device with a bluetooth communication function.
As shown in fig. 2, the data transmission method of the present embodiment is applicable to an application scenario, and specifically includes: a first electronic device left in a certain corner by a user is in a shallow sleep mode and continuously sends a broadcast packet outwards; when the second electronic equipment is powered on, the key value signal of the first electronic equipment is not detected, Bluetooth connection is established with the first electronic equipment according to a broadcast packet sent by the first electronic equipment, and a buzzing instruction is sent to the first electronic equipment based on a Bluetooth protocol; and the first electronic equipment starts buzzing vibration according to the buzzing instruction so as to prompt the user that the first electronic equipment is located.
As shown in fig. 3, the data transmission method provided in this embodiment is suitable for a first electronic device with a bluetooth communication function in a shallow sleep mode, where the first electronic device has successfully bluetooth paired with a second electronic device with a bluetooth communication function, and the method specifically includes the following steps:
s110, acquiring the set packet sending time length.
Preferably, the first electronic device is a bluetooth remote controller.
Preferably, the second electronic device is a set-top box with Findme functionality.
Preferably, the second electronic device is a television with Findme function.
In one embodiment, as shown in fig. 1, when the bluetooth remote controller is transmitting a broadcast packet a, the set packet transmission duration is taken as a, where a is the broadcast duration of the bluetooth remote controller transmitting a broadcast packet according to the specification of the bluetooth protocol stack, and similarly, when the bluetooth remote controller is transmitting a broadcast packet B, the set packet transmission duration is taken as B. Therefore, the set packet sending time is a priori information, and the set packet sending times corresponding to different broadcast packets sent by the Bluetooth remote controller according to the Bluetooth protocol stack are all stored in the storage device of the Bluetooth remote controller.
And S120, sending a broadcast packet outwards every other first set time within the set packet sending time, wherein the duration of sending the broadcast packet once is a second set time, and the first set time and the second set time are both smaller than the set packet sending time.
Preferably, the set packet sending time length a is approximately equal to x, x is (n-1) x m + n x p, and n is greater than or equal to 8 and less than or equal to a/8, where a is the set packet sending time length, n is the total number of broadcast packets sent within the set packet sending time length, p is a single packet sending time length for sending one broadcast packet, m is a packet sending interval time length for sending two adjacent broadcast packets, the actual packet sending time length x is the sum of the accumulated packet sending interval time length n x p and the accumulated single packet sending time length (n-1) x m, and the units of a, x, m, and p are milliseconds.
Preferably, the packet sending time length a is set to 300 ms.
In this embodiment, to ensure that the first electronic device and the second electronic device can be connected back to each other with high probability, it is preferable that the actual packet sending time length x is less than r, and r is t/2, where t is a scanning interval of the second electronic device when performing bluetooth scanning, r is a scanning time length of the second electronic device when performing bluetooth scanning, and both the units of r and t are milliseconds.
In one embodiment, the first electronic device is a bluetooth remote controller, the second electronic device is a set top box, and the broadcast packet sent by the first electronic device carries device information of the first electronic device. As shown in fig. 4, when the bluetooth remote controller sends an a broadcast packet, a set packet sending time length a is 300ms, n times of the a broadcast packets are sent outwards within 300ms, the a broadcast packets are sent outwards once every time length m, the single packet sending time length for sending one broadcast packet is p, the accumulated packet sending interval time length is n × p, the accumulated single packet sending time length is (n-1) × m, the actual packet sending time length x is (n-1) × m + n × p, and n is greater than or equal to 8 and less than or equal to a/8, wherein p is generally tens to hundreds of microseconds for a single packet sending time length, that is, p is generally less than 1ms, and the specific value of p is determined by hardware factors such as a main chip, a crystal oscillator, a circuit and the like of the bluetooth remote controller. On one hand, because the Bluetooth remote controller mainly consumes power when sending the broadcast packet in a shallow sleep mode, if the value of n is too large, the frequency of sending the broadcast packet by the Bluetooth remote controller is too high, and the purpose of reducing the power consumption cannot be achieved; on the other hand, the set-top box needs to scan 38 times in 300ms at least according to the minimum scanning frequency specified by the bluetooth protocol, and if the value of n is too small, the frequency of the broadcast packet sent by the bluetooth remote controller is too low, so that the set-top box is difficult to scan the broadcast packet sent by the bluetooth remote controller, and the reconnection speed is slow.
In this embodiment, the set packet sending time length a is 300ms, the single packet sending time length p is preferably 0.1ms, and n is greater than or equal to 8 and less than or equal to 38 because n is an integer. The Bluetooth remote controller sends an A broadcast packet within 300ms, when n is 8, m is (300-0.8)/7 is approximately equal to 42.74ms, namely the Bluetooth remote controller sends the A broadcast packet outwards every 42.74ms within 300ms of the A broadcast packet for 8 times, the actual packet sending time length x of the A broadcast packet is (8-1) x 42.74+8 x 0.1 is 299.98ms, namely a is approximately equal to x, the difference between the packet sending time length a and the actual packet sending time length x is set to be only 0.02ms, and the scanning result of the set top box is not influenced basically; when n is 38, m is (300-0.38)/37 is approximately 8.10ms, namely the bluetooth remote controller sends an a broadcast packet outwards every 8.10ms within 300ms of sending the a broadcast packet for 38 times, the actual packet sending time length x for sending the a broadcast packet is (38-1) × 8.10+38 × 0.1 is 300.08ms, namely a is approximately x, the difference between the set packet sending time length a and the actual packet sending time length x is only 0.08ms, and the scanning result of the set-top box is not influenced basically.
After the bluetooth remote controller finishes sending the a broadcast packet, if the bluetooth remote controller does not successfully reconnect with the set top box, the bluetooth remote controller starts to send the B broadcast packet after a time length z until the bluetooth remote controller reconnects with the set top box, and the process of sending the B broadcast packet can refer to the process of sending the a broadcast packet, which is not described herein again.
In the prior art, the bluetooth remote controller transmits the a broadcast packet according to the bluetooth protocol, and the a broadcast packet needs to be transmitted 80 times within 300ms, that is, the bluetooth remote controller nearly transmits the continuous broadcast packet. In the technical scheme of the embodiment, the Bluetooth remote controller does not comply with the regulation of a Bluetooth protocol, but intermittently sends the A broadcast packet, and only needs to send the A broadcast packet 8-38 times within 300 ms.
It should be noted that, in the technical solution of this embodiment, after the set-top box is connected back, the bluetooth remote controller performs bluetooth communication with the set-top box according to the bluetooth protocol.
In summary, in this embodiment, when the first electronic device is in the shallow sleep mode, the broadcast packet is sent out every first set duration within the set packet sending duration, so that the second electronic device that has been successfully paired can quickly scan the broadcast packet, and the bluetooth connection is quickly reestablished according to the broadcast packet and the first electronic device, thereby realizing the quick reconnection. Because the first electronic device in the shallow sleep mode generates power consumption only when the broadcast packet is sent outwards, the first electronic device intermittently sends the broadcast packet outwards within the set packet sending time, compared with the prior art that the continuous broadcast packet is sent, the frequency of sending the broadcast packet outwards is greatly reduced, and the power consumption of the first electronic device in the shallow sleep mode is effectively reduced on the premise that the first electronic device and the second electronic device can be quickly connected back.
Referring to fig. 5, on the basis of the foregoing embodiment, in this embodiment, preferably, before the step of obtaining the set packet sending duration, the method further includes:
and carrying out Bluetooth pairing with the second electronic equipment.
Therefore, the second electronic equipment can record the equipment information of the first electronic equipment, and the first electronic equipment can be identified to send out the broadcast packet without being interfered by other Bluetooth equipment.
Based on the above optimization, the data sending method provided in this embodiment may specifically include the following steps:
and S210, carrying out Bluetooth pairing with the second electronic equipment.
In one embodiment, the first electronic device is a bluetooth remote control and the second electronic device is a set-top box. Before the set top box is controlled for the first time, the Bluetooth remote controller needs to send a Bluetooth pairing signal to the set top box, and exchanges equipment information with the set top box and stores the equipment information.
S220, acquiring the set packet sending time length.
And S230, sending the broadcast packet outwards every other first set time within the set packet sending time, wherein the duration of sending the broadcast packet is a second set time, and the first set time and the second set time are both smaller than the set packet sending time.
In summary, in this embodiment, the first electronic device and the second electronic device successfully perform bluetooth pairing, and when the first electronic device is in the shallow sleep mode, the broadcast packet is sent out every first set time interval within the set packet sending time interval, so that the second electronic device that has been successfully paired can quickly scan the broadcast packet, and quickly reestablish bluetooth connection with the first electronic device according to the broadcast packet, thereby implementing quick reconnection. Because the first electronic device in the shallow sleep mode generates power consumption only when the broadcast packet is sent outwards, the first electronic device intermittently sends the broadcast packet outwards within the set packet sending time, compared with the prior art that the continuous broadcast packet is sent, the frequency of sending the broadcast packet outwards is greatly reduced, and the power consumption of the first electronic device in the shallow sleep mode is effectively reduced on the premise that the first electronic device and the second electronic device can be quickly connected back.
Referring to FIG. 6, FIG. 6 illustrates a block diagram of an exemplary electronic device 12 suitable for use in implementing embodiments of the present invention. The electronic device 12 shown in fig. 6 is only an example and should not bring any limitation to the function and the scope of use of the embodiment of the present invention.
As shown in fig. 6, the electronic device 12 is represented in the form of a general electronic device. The components of electronic device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. By way of example, such architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, micro-channel architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus.
Electronic device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by electronic device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
The system memory 28 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)30 and/or cache memory 32. The electronic device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 6, and commonly referred to as a "hard drive"). Although not shown in FIG. 6, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally carry out the functions and/or methodologies of the described embodiments of the invention.
Electronic device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with electronic device 12, and/or with any devices (e.g., network card, modem, etc.) that enable electronic device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Also, the electronic device 12 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via the network adapter 20. As shown in FIG. 6, the network adapter 20 communicates with the other modules of the electronic device 12 via the bus 18. It should be appreciated that although not shown in FIG. 6, other hardware and/or software modules may be used in conjunction with electronic device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing by executing programs stored in the system memory 28, for example, to implement the data transmission method provided by any of the embodiments of the present invention.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the data transmission method provided in any embodiment of the present invention, where the method is applied to a first electronic device with a bluetooth communication function in a shallow sleep mode, where the first electronic device has successfully bluetooth paired with a second electronic device with the bluetooth communication function, and the method includes:
acquiring a set packet sending time length;
and sending a broadcast packet outwards every other first set time within the set packet sending time, wherein the duration of sending the broadcast packet once is a second set time, and the first set time and the second set time are both smaller than the set packet sending time.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or electronic device. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (9)

1. A data transmission method is applicable to a first electronic device with a Bluetooth communication function in a shallow sleep mode, wherein the first electronic device has been successfully Bluetooth paired with a second electronic device with the Bluetooth communication function, and the method comprises the following steps:
acquiring a set packet sending time length;
when the first electronic equipment is in a shallow sleep mode, sending a broadcast packet outwards every other first set time within the set packet sending time, wherein the duration of sending the broadcast packet once is a second set time, and the first set time and the second set time are both smaller than the set packet sending time; the set packet sending time length a is approximately equal to x, x is (n-1) x m + n x p, and n is more than or equal to 8 and less than or equal to a/8, wherein a is the set packet sending time length, n is the total number of the broadcast packets sent in the set packet sending time length, p is the single packet sending time length for sending one broadcast packet, m is the packet sending interval time length for sending two adjacent broadcast packets, the actual packet sending time length x is the sum of the accumulated packet sending interval time length n x p and the accumulated single packet sending time length (n-1) x m, and the unit of a, x, m and p is milliseconds.
2. The method of claim 1, wherein the set packet transmission duration a is 300 ms.
3. The method of claim 1, wherein the actual packet sending time length x is less than r, and r is t/2, where t is a scanning interval of the second electronic device during bluetooth scanning, r is a scanning time length of the second electronic device during bluetooth scanning, and r and t are both in milliseconds.
4. The method of claim 1, wherein prior to the step of obtaining the set packet transmission duration, further comprising:
and performing the Bluetooth pairing with the second electronic device.
5. The method of any one of claims 1-4, wherein the first electronic device is a Bluetooth remote control.
6. The method of claim 5, wherein the second electronic device is a Findme-enabled set top box.
7. The method of claim 5, wherein the second electronic device is a Findme-enabled television.
8. An electronic device, comprising:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a data transmission method as claimed in any one of claims 1 to 7.
9. A computer-readable storage medium, on which a computer program is stored, which program, when being executed by a processor, is adapted to carry out a data transmission method according to any one of claims 1 to 7.
CN201710713332.8A 2017-08-18 2017-08-18 Data transmission method, electronic device, and storage medium Active CN107509160B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710713332.8A CN107509160B (en) 2017-08-18 2017-08-18 Data transmission method, electronic device, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710713332.8A CN107509160B (en) 2017-08-18 2017-08-18 Data transmission method, electronic device, and storage medium

Publications (2)

Publication Number Publication Date
CN107509160A CN107509160A (en) 2017-12-22
CN107509160B true CN107509160B (en) 2021-04-30

Family

ID=60692233

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710713332.8A Active CN107509160B (en) 2017-08-18 2017-08-18 Data transmission method, electronic device, and storage medium

Country Status (1)

Country Link
CN (1) CN107509160B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110493758B (en) 2018-05-14 2023-01-13 阿里巴巴集团控股有限公司 Bluetooth Mesh network and network distribution method, equipment and storage medium thereof
CN110505606B (en) 2018-05-18 2022-12-02 阿里巴巴集团控股有限公司 Bluetooth Mesh network and distribution network authentication method, equipment and storage medium thereof
CN110636478B (en) 2018-06-22 2023-04-14 阿里巴巴集团控股有限公司 Bluetooth Mesh network system, communication method, device and storage medium thereof
CN109199354B (en) * 2018-09-17 2021-06-25 山东思迈教育科技有限公司 Heart rate data acquisition method and heart rate measuring equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201638360U (en) * 2010-02-05 2010-11-17 余翀 Device for conveniently finding remote controller
CN105099526A (en) * 2015-06-24 2015-11-25 小米科技有限责任公司 Method and device for transmitting polling data package
CN106131634A (en) * 2016-08-29 2016-11-16 康佳集团股份有限公司 A kind of remote controller connection processing method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170034646A1 (en) * 2015-07-27 2017-02-02 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in wireless communication system
US9900827B2 (en) * 2015-12-10 2018-02-20 Lg Electronics Inc. Method and apparatus for transmitting and receiving data in wireless communication system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201638360U (en) * 2010-02-05 2010-11-17 余翀 Device for conveniently finding remote controller
CN105099526A (en) * 2015-06-24 2015-11-25 小米科技有限责任公司 Method and device for transmitting polling data package
CN106131634A (en) * 2016-08-29 2016-11-16 康佳集团股份有限公司 A kind of remote controller connection processing method and system

Also Published As

Publication number Publication date
CN107509160A (en) 2017-12-22

Similar Documents

Publication Publication Date Title
CN107509160B (en) Data transmission method, electronic device, and storage medium
US20220053068A1 (en) Methods, apparatuses and computer storage media for applet state synchronization
JP6742465B2 (en) Method, device and bluetooth speaker for continuous wakeup delay reduction in bluetooth speaker
US11973721B2 (en) Activation control method, user equipment and network device
CN108280020B (en) Monitoring method and device of computer equipment, terminal and computer storage medium
CN109753262B (en) Frame display processing method and device, terminal equipment and storage medium
CN114244821B (en) Data processing method, device, equipment, electronic equipment and storage medium
CN111488207A (en) Application process keep-alive method, device, network equipment and storage medium
CN114584618A (en) Information interaction method, device, equipment, storage medium and system
WO2023088198A1 (en) Network connection method and apparatus, and electronic device
CN116760899A (en) Concurrent consumption method, device, equipment and medium based on Kafka
US20220405213A1 (en) Data processing method and apparatus
CN113965915B (en) Data processing method and electronic equipment
CN114024878A (en) Data transmission method, device, medium and equipment
CN111360809B (en) Signal instruction control method and device of robot and terminal equipment
CN112040149A (en) Input source switching method and device of screen projector, screen projector and storage medium
CN111479319A (en) Communication method and device
WO2024007907A1 (en) Message transceiving method and device
WO2024027746A1 (en) Information transmission method and apparatus, and receiving end and sending end
US9198193B1 (en) Systems and methods for controlling network connection overhead associated with mobile device communications
WO2024032496A1 (en) Communication method and apparatus, resource configuration method and apparatus, and reader, tag and network-side device
WO2024017156A1 (en) Lp-wus monitoring and sending methods, terminal and network side device
WO2024061111A1 (en) Resource processing method and apparatus, and communication device
WO2023231920A1 (en) Backscatter communication method and device
WO2023125304A1 (en) Communication operation execution method, apparatus, terminal, and storage medium

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