CN111416673B - Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset - Google Patents

Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset Download PDF

Info

Publication number
CN111416673B
CN111416673B CN202010222860.5A CN202010222860A CN111416673B CN 111416673 B CN111416673 B CN 111416673B CN 202010222860 A CN202010222860 A CN 202010222860A CN 111416673 B CN111416673 B CN 111416673B
Authority
CN
China
Prior art keywords
clock
time
offset
under test
bluetooth
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
CN202010222860.5A
Other languages
Chinese (zh)
Other versions
CN111416673A (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 Zhongke Lanxun Technology Co ltd
Original Assignee
Shenzhen Zhongke Lanxun 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 Zhongke Lanxun Technology Co ltd filed Critical Shenzhen Zhongke Lanxun Technology Co ltd
Priority to CN202010222860.5A priority Critical patent/CN111416673B/en
Publication of CN111416673A publication Critical patent/CN111416673A/en
Application granted granted Critical
Publication of CN111416673B publication Critical patent/CN111416673B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • H04B17/30Monitoring; Testing of propagation channels
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • 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
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • H04L2027/0024Carrier regulation at the receiver end
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L27/00Modulated-carrier systems
    • H04L27/0014Carrier regulation
    • H04L2027/0024Carrier regulation at the receiver end
    • H04L2027/0026Correction of carrier offset

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Electromagnetism (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Monitoring And Testing Of Transmission In General (AREA)

Abstract

The invention provides a method, a device and a computer readable storage medium for wirelessly measuring the Bluetooth frequency offset of master and slave equipment.

Description

Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset
Technical Field
The invention relates to the technical field of Bluetooth testing, in particular to a method and a device for wirelessly measuring Bluetooth frequency offset of master and slave equipment and a computer readable storage medium.
Background
Currently, a crystal oscillator is used as a clock source in a bluetooth scheme to provide a clock reference for 2.4G RF signals. Due to the manufacturing process level, the crystal oscillators produced by different manufacturers usually have a certain frequency deviation. These fine frequency differences are multiplied by the phase-locked loop and amplified, resulting in a large bluetooth frequency offset.
The bluetooth frequency offset is a difference value between an actual communication carrier frequency and a theoretical communication carrier frequency, when the difference value exceeds a certain range, errors are introduced during signal demodulation, and the communication is unstable or even cannot be communicated due to an overlarge error rate. Therefore, in order to make bluetooth devices manufactured by different manufacturers compatible and stably connected with each other, the bluetooth specification requires that the frequency offset should be controlled within a certain range. In actual production, frequency deviation is difficult to be consistent due to crystal oscillator difference and parasitic capacitance influence. Measuring the bluetooth frequency offset is important in the bluetooth scheme production process.
In the existing scheme for measuring frequency offset, two ways are included:
firstly, the crystal oscillator frequency (or after frequency division of 2.4G signals) is output to a chip pin, and the frequency deviation of low-frequency signals is measured by a frequency meter, the method is simple and direct, but in actual batch production, flying wires need to be welded to an instrument, and then the flying wires are removed after measurement, so that the workload is huge; or the thimble contacts the PCB test point to measure, the test mould needs to be customized, and the process is various.
Secondly, 2.4G signals are directly measured to obtain Bluetooth frequency deviation, the method is complex to measure, high-temperature test equipment such as a frequency spectrograph or a Bluetooth comprehensive tester is needed, the test cost is high, the frequency spectrograph is easily interfered by 2.4G signals (such as an induction cooker, wifi and other Bluetooth) in the surrounding environment in the test process, and the Bluetooth comprehensive tester can resist 2.4G interference, but the equipment cost is high, the operation interface is complex, and the method is not suitable for production operation of workers.
Disclosure of Invention
In view of the above problems, the present invention provides a method, an apparatus, and a computer readable storage medium for wirelessly measuring bluetooth frequency offset of a master device and a slave device, which can conveniently obtain bluetooth frequency offset of a bluetooth device, and have low cost and strong anti-interference performance.
In a first aspect, the present invention provides a method for wirelessly measuring a bluetooth frequency offset, the method comprising the following steps:
s101, establishing Bluetooth connection between the testing device and the device to be tested;
s102, acquiring clock skew of the testing device and the tested device at a first moment, wherein the clock skew is a first clock skew;
s103, at the second moment, acquiring the clock offset of the testing device and the tested device again, wherein the clock offset is the second clock offset;
s104, calculating a change value of the first clock offset and the second clock offset according to the first clock offset and the second clock offset, wherein the change value is a clock offset difference;
and S105, taking a local clock of the testing device as a reference clock, and calculating a frequency offset value of the tested device according to the clock offset difference, the first time and the second time.
Specifically, the local clock CLK N defined by the bluetooth protocol in steps S102 and S103 is generated by the local oscillators of the test apparatus and the device under test.
Specifically, in step S105, the local clock of the test apparatus is used as the reference clock, specifically, the local clock generated by the calibrated local crystal oscillator of the test apparatus is used as the reference clock.
Specifically, the acquiring the clock offset between the testing device and the device under test in steps S102 and S103 includes:
when the test device is used as Bluetooth slave equipment, the test device acquires clock offset at synchronous time when receiving a data packet;
when the test device is used as a Bluetooth master device, the device under test acquires clock offset at synchronous time through the device under test when receiving a data packet, and transmits the clock offset to the test device.
Specifically, the synchronization time is the time when the access code of the classic bluetooth packet is received.
Specifically, the synchronization time is a time when the preamble and the access address of the BLE data packet are received.
Specifically, the first time in step S102 is separated from the second time in step S103 by a predetermined time interval.
Specifically, the preset time interval is 0.25-2 s.
In a second aspect, the invention provides a device using the method, which includes the testing device and the device under test, wherein the testing device and the device under test are wirelessly connected through classic bluetooth, and the frequency offset value of the device under test is obtained by obtaining the clock offsets of the testing device and the device under test at different times.
Specifically, the obtaining of the clock skew of the testing device and the device under test at different times includes obtaining, by the testing device/the device under test, the local clock skew at a synchronous time when the testing device/the device under test receives the data packet.
In a third aspect, the invention provides a non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the above method.
Compared with the fly-line measurement in the prior art, the method provided by the invention is simpler and more convenient to operate and has higher efficiency through a wireless connection mode.
The 68bits access code of the classic Bluetooth, the 8bits lead code of the BLE and the 32 bis ts access address have uniqueness in Bluetooth communication, and can be effectively distinguished from other 2.4G signals. Moreover, the Bluetooth is provided with a self-adaptive frequency hopping technology, so that partial channels with serious interference can be avoided. Compared with a frequency spectrograph for measuring 2.4G signals of a single frequency point, the frequency spectrograph is more reliable and is not easily influenced by the environment.
The frequency offset is calculated by measuring the synchronous time of the data packet twice, compared with a Bluetooth comprehensive tester, the frequency offset measuring method is simpler to realize, the measuring device is low in cost and simple and convenient to operate, and the frequency offset measuring method is suitable for being used in a mass production environment.
Drawings
Fig. 1 is a schematic diagram of steps of a method for wirelessly measuring a bluetooth frequency offset according to an embodiment of the present invention.
Fig. 2 is a timing diagram of clock offset when a device under test has positive frequency offset, where the device under test is used as a slave device according to an embodiment of the present invention.
Fig. 3 is a timing diagram of clock offset when the test apparatus provided in the first embodiment of the present invention is used as a slave device and a negative frequency offset exists in the device under test.
Fig. 4 is a clock offset timing diagram of a device under test with positive frequency offset when the device under test serves as a master device according to an embodiment of the present invention.
Fig. 5 is a clock offset timing diagram of a device under test with negative frequency offset, where the device under test is used as a master device according to an embodiment of the present invention.
Fig. 6A is a timing diagram of clock skew for classical bluetooth packet reception by a master device and a slave device according to an embodiment of the present invention.
Figure 6B is a timing diagram illustrating clock skew for BLE packet reception in a master device according to an embodiment of the present invention.
Fig. 7 is a flowchart of the apparatus according to the second embodiment of the present invention.
Detailed Description
The technical solution of the present invention will be described clearly and completely with reference to the accompanying drawings in the following embodiments of the present invention, and it is obvious that the described embodiments are only a part of the present invention, and not all of it. Thus, the following detailed description of the present invention, presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be obtained by a person skilled in the art without any inventive step, are within the scope of the present invention.
The first embodiment is as follows:
the embodiment provides a method for wirelessly measuring bluetooth frequency offset, as shown in fig. 1, the method includes the following steps:
s101, establishing Bluetooth connection between the testing device and the device to be tested;
s102, acquiring clock skew of the testing device and the tested device at a first moment, wherein the clock skew is a first clock skew;
s103, at the second moment, acquiring the clock offset of the testing device and the tested device again, wherein the clock offset is the second clock offset;
s104, calculating a change value of the first clock offset and the second clock offset according to the first clock offset and the second clock offset, wherein the change value is a clock offset difference;
and S105, taking the local clock of the testing device as a reference clock, and calculating the Bluetooth frequency offset of the tested device according to the clock offset difference and the preset time interval.
In the above method, the clock offset refers to an offset of a local clock CLKN of the slave device relative to a local clock CLK of the master device in bluetooth communication. The bluetooth protocol specifies that bluetooth communication is based on the local clock CLK of the master device, and that the slave device needs to calculate a clock offset to determine the time at which the slave device will start receiving data packets next time when the connection is established. Because the local oscillators of the master device and the slave device have frequency offset, the slave device needs to continuously receive the data packet from the master device and calculate a new clock offset so as to adjust the time when the data packet starts to be received next time, and then the connection can be maintained.
In the step S105, the local clock of the testing apparatus is used as the reference clock, which means that the local clock generated by the local crystal oscillator of the testing apparatus is calibrated in advance by a device such as a spectrometer (or a bluetooth integrated tester) to meet the accuracy requirement of the testing device, and the local clock is used as the reference clock of the present invention.
In the step S101, the test apparatus and the device under test establish a connection, specifically, the test apparatus initiates the connection, and the test apparatus maintains the bluetooth connection in the Active state. On the one hand, the device to be tested can be prevented from entering a Sniff state, and the low-frequency crystal oscillator is switched to serve as a clock source to influence a test result. On the other hand, in the Active state, the testing device and the device under test can continuously transmit and receive data packets, so that the clock skew can be acquired subsequently. And when the connection fails, or the connection is disconnected in the test process, the test is regarded as failed.
In the above steps S102, S103, the clock offset between the testing apparatus and the device under test is obtained by the testing apparatus and the device under test, which are in the role of slave in the bluetooth connection, and is obtained when receiving the data packet. In the invention, for classical Bluetooth, connection is initiated by a testing device, the testing device defaults to master equipment, the testing device can initiate a Role Switch request, and when the request is successful, the testing device is converted into slave equipment, and the testing device acquires clock offset; when part of the devices under test do not allow the Role Switch request, the testing device cannot be changed into slave equipment, and the clock offset is acquired by the devices under test and then is transmitted to the testing device through Bluetooth. For BLE, connection is initiated by the testing device, and switching of master and slave roles is not allowed after connection is established, so the testing device is fixed as a master device, and clock skew is acquired by the device under test and then transmitted to the testing device through bluetooth.
When the test apparatus is used as a slave device, after the bluetooth connection is established, as described in step S102, the test apparatus acquires the first clock offset1 at the first time. After an interval of time, the testing apparatus obtains a second clock offset2 at a second time, where the first time is separated from the second time by a predetermined time interval Δ t. For classical bluetooth, Δ t is clocked by the bluetooth slave local clock (i.e. the local clock of the test apparatus); for BLE, this is not the case. The specific time interval can be freely set in a proper range according to the actual conditions of the equipment, and the invention is not particularly limited herein.
When the test apparatus is used as a slave device, based on the local clock of the test apparatus, if the local clock of the device under test is slightly slower than the local clock of the device under test, as shown in fig. 2, the clock offsets of the local clock of the test apparatus and the device under test become larger, i.e., the second clock offset2> the first clock offset 1. If the device under test has negative frequency offset, as shown in fig. 3, the local clock of the testing device is slightly faster than the local clock of the device under test, and the clock offsets of the two become smaller, i.e. the second clock offset2< the first clock offset 1.
The test device is used as a slave device, when the tested device has positive frequency offset or negative frequency offset, the test device obtains first clock offset and second clock offset at the synchronous moment, and the calculation method of the clock offset difference of the test device and the second clock offset comprises the following steps:
Δoffset=offset2-offset1(us)
the frequency offset value calculation method of the device to be measured comprises the following steps:
Figure GDA0002976174650000061
wherein, offset1 is the first clock offset, offset2 is the second clock offset, Δ offset is the difference value of the clock offsets, and offset1, offset2 and Δ offset are signed numbers with unit us; Δ t is the predetermined time interval, in units of us; Δ freq is the frequency offset of the device under test, and Δ freq is the signed number in ppm.
When the device under test is the master, the device under test acquires the first clock offset1 and the second clock offset2 in the same steps. Because the local clock of the tested device has frequency deviation, at this time, for the classic bluetooth, Δ t is clocked by the bluetooth master clock (i.e. the local clock of the testing device); for BLE, Δ t is clocked by Event Counter of the BLE connection (i.e. the connection interval generated by the test device local clock). The specific time interval is freely set by the testing device in a proper range according to the actual situation of the equipment, and the invention is not particularly limited herein.
When the test apparatus is used as a master device, with reference to the local clock of the test apparatus, if the local clock of the device under test has a positive frequency offset, as shown in fig. 4, the local clock of the device under test is slightly faster than the local clock of the test apparatus, then the clock offsets of the two will become smaller, i.e. the second clock offset2< the first clock offset 1; if the device under test has negative frequency offset, as shown in fig. 5, the local clock of the device under test is slightly slower than the local clock of the testing device, and the clock offsets of the two become larger, i.e. the second clock offset2> the first clock offset 1.
The testing device is used as a main device, when the tested device has positive frequency deviation or negative frequency deviation, the tested device obtains first clock deviation and second clock deviation at the synchronous moment and transmits the first clock deviation and the second clock deviation to the testing device, and the testing device calculates the clock deviation difference value, wherein the calculating method comprises the following steps:
Δoffset=offset1-offset2(us)
similarly, the frequency offset value calculation method of the device to be measured comprises the following steps:
Figure GDA0002976174650000062
the existing bluetooth communication includes classic bluetooth communication and BLE communication, and because the communication standards of the two are different, in the present invention, the manner of acquiring clock skew according to the difference of bluetooth communication is also different, and the following describes the different manners of acquiring clock skew under classic bluetooth and BLE, respectively:
when the test apparatus and the device under test are connected by classic bluetooth, the first clock offset and the second clock offset are calculated by measuring the receiving time of the classic bluetooth packet access code received by the slave device, and referring to fig. 6A, a clock offset acquisition timing diagram between the master device and the slave device is shown, in which CLK is a master device local clock, the period is 312.5us (2 CLK periods are 625us, and are described later as CLK [27:1]), CLKN is a slave device local clock, and SlotCount is a counter of 0-624, and the counter is self-incremented every 1us within 2 CLKN periods (described later as CLKN [27:1 ]). The master device starts to send a data Packet at the start time of CLK, the slave device generally opens the receive enable RXEN in advance and starts to match the received code stream, after the access code of 68bits is correctly matched, the data Packet is considered to be from the master device, at this time, the slave device latches a count value n of SlotCount, the slave device clock CLKN is shifted by Δ offset (CLK [27:1] -CLKN [27:1]) × 625+ (n-68) relative to the master device clock CLK, and the time corresponding to the count value n is the synchronization time of the test device and the device under test.
When the test apparatus and the device under test are connected through BLE, the first clock offset and the second clock offset are calculated by measuring the receiving time of the BLE data packet preamble and the access address received by the slave device, and fig. 6B shows a clock offset acquisition timing diagram between the master device and the slave device, where the slave device clock CLKN is offset from the master device clock CLK by Δ offset (CLK [27:1] -CLKN [27:1]) × 625+ (n-40), and the time corresponding to the count value n is the synchronization time of the test apparatus and the device under test.
After the first clock offset1 and the second clock offset2 are respectively obtained in the above manner, whether the bluetooth frequency offset of the device under test meets the bluetooth specification or not is judged according to the master-slave angle of the testing device and the corresponding clock offset difference value Δ offset calculation method and the frequency offset value Δ freq calculation method of the device under test.
In the Bluetooth specification, the Access Code of classic Bluetooth is a 68 bis ts Code stream generated by a Bluetooth host address, the Preamble of BLE and the Access address of BLE are 40bits Code streams, and the Code streams are unique in Bluetooth communication and can be effectively distinguished from other 2.4G signals, and the frequency hopping technology of Bluetooth can allow a plurality of Bluetooth devices to be used simultaneously, so that the Bluetooth communication device is very suitable for an environment with more Bluetooth devices on a production line.
Bluetooth SIG (Bluetooth Special Interest Group, Bluetooth technical Association) generally requires that the frequency offset of classic Bluetooth is within + -20 ppm (converted to a frequency offset of + -48 k for 2.4G Bluetooth), and that BLE is within + -40 ppm. In a normal production environment, the change of the ambient temperature within 2 seconds is generally considered not to be too large, and the influence of the ambient temperature on the frequency offset can be ignored, so that ± 20ppm can be considered as the frequency offset range allowed by the bluetooth specification. In the present invention, the measurement error is mainly introduced when acquiring the offset, and the measurement error is ± 1 us. The following is the measurement accuracy that the inventors can obtain by selecting different predetermined time intervals during the test.
Predetermined time interval Measurement error Conversion to 2.4G Bluetooth frequency offset
2s (±1us/1000000us)*1000000=±0.5ppm ±1.2k
1s (±1us/1000000us)*1000000=±1ppm ±2.4k
0.5s (±1us/500000us)*1000000=±2ppm ±4.8k
0.25s (±1us/250000us)*1000000=±4ppm ±9.6k
0.1s (±1us/100000us)*1000000=±10ppm ±24k
According to the table, the Bluetooth frequency offset can be measured within 1 second according to higher frequency offset measurement precision (measurement error of +/-1 ppm), and the requirement of rapid test in a Bluetooth product production line can be met. A suitable time interval is preferably 1 second in this embodiment.
Example two:
the embodiment provides a device using the method of the first embodiment, and the device includes a testing device and a device under test, wherein the testing device and the device under test are wirelessly connected through classic bluetooth, and the frequency offset value of the device under test is further obtained by obtaining clock offsets of the testing device and the device under test at different times.
The obtaining of the clock skew of the testing device and the device under test at different times is specifically that when the testing device/the device under test receives a data packet, the testing device/the device under test obtains the local clock skew at a synchronous time. The specific clock offset obtaining method refers to the content described in the first embodiment, and this embodiment is not described in detail.
With reference to the content of the first embodiment, a specific working flow of the device according to this embodiment is as shown in fig. 7, after the test device is started, the device to be tested is automatically scanned around, the device to be tested is started and is close to the test device, and the specific distance control can be implemented by adjusting the transmission power of the test device; after finding the tested device, the testing device establishes Bluetooth connection, then enters a testing mode, and performs Bluetooth frequency offset measurement; the specific measurement method is as described in the first embodiment, after the test device obtains the measurement result, the test device judges the test result, if the test result does not exceed the allowable range of the frequency offset, the test is passed, otherwise, the test is failed, and the test device displays the test result; after the tested device is shut down, the testing device is automatically switched off overtime, and the steps are repeated to carry out the testing process of the next tested device.
Example three:
the present embodiments provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the above-described method. The method can be understood according to the related description and effects of the content of the above embodiments, and will not be described in detail herein.
In the present invention, a computer readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer-readable storage medium would include an electrical connection based on 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.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (11)

1. A method of wirelessly measuring bluetooth frequency offset, the method comprising the steps of:
s101, establishing Bluetooth connection between the testing device and the device to be tested;
s102, acquiring clock skew between a testing device and a tested device at a first time of receiving a data packet, wherein the clock skew is the first clock skew, the first time is a synchronous time when receiving of an access code of the data packet is finished, or the first time is a synchronous time when receiving of a lead code and an access address of the data packet is finished, and the first time is acquired through a counter;
s103, at a second time when another data packet is received, acquiring a clock offset between the testing device and the device to be tested, wherein the clock offset is the second clock offset, the second time is a synchronization time when the receiving of the access code of the another data packet is finished, or the synchronization time when the receiving of the lead code and the access address of the another data packet is finished, and the second time is acquired through a counter;
s104, calculating a change value of the first clock offset and the second clock offset according to the first clock offset and the second clock offset, wherein the change value is a clock offset difference;
s105, testing the local of the deviceThe clock is used as a reference clock according to
Figure FDA0003121958410000011
And calculating the frequency offset value of the device under test, wherein delta offset is the clock offset difference, and delta t is the difference between the second time and the first time.
2. The method of claim 1, wherein the local clock of steps S102 and S103 is a local clock CLKN defined by the bluetooth protocol and generated by a local crystal oscillator of the testing device and the device under test.
3. The method according to claim 1, wherein the local clock of the test apparatus, specifically the local clock generated by the calibrated local crystal oscillator of the test apparatus, is used as the reference clock in step S105.
4. The method of claim 1, wherein the step S102, 103 of obtaining the clock offset between the testing device and the device under test comprises:
when the test device is used as Bluetooth slave equipment, the test device acquires clock offset at synchronous time when receiving a data packet;
when the test device is used as a Bluetooth master device, the device under test acquires clock offset at synchronous time through the device under test when receiving a data packet, and transmits the clock offset to the test device.
5. The method of claim 4, wherein the synchronization time is an access code completion time of a classic Bluetooth packet.
6. The method according to claim 4, wherein the synchronization time is a preamble and access address complete reception time of a BLE data packet.
7. The method according to any of claims 1-6, wherein the first time of step S102 is separated from the second time of step S103 by a predetermined time interval.
8. The method of claim 7, wherein the predetermined time interval is 0.25-2 s.
9. A Bluetooth frequency deviation measuring device applying the method of any one of claims 1-8, comprising the testing device and the device under test, wherein the testing device and the device under test are connected wirelessly through classical Bluetooth, and the frequency deviation value of the device under test is obtained by obtaining the clock deviation of the testing device and the device under test at different times.
10. The apparatus according to claim 9, wherein the obtaining of the clock offsets of the testing apparatus and the device under test at different times is to obtain the local clock offsets at the synchronous times by the testing apparatus/the device under test when the testing apparatus/the device under test receives the data packets.
11. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-8.
CN202010222860.5A 2020-03-25 2020-03-25 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset Active CN111416673B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010222860.5A CN111416673B (en) 2020-03-25 2020-03-25 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010222860.5A CN111416673B (en) 2020-03-25 2020-03-25 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset

Publications (2)

Publication Number Publication Date
CN111416673A CN111416673A (en) 2020-07-14
CN111416673B true CN111416673B (en) 2021-09-17

Family

ID=71493271

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010222860.5A Active CN111416673B (en) 2020-03-25 2020-03-25 Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset

Country Status (1)

Country Link
CN (1) CN111416673B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111817811B (en) * 2020-06-22 2022-10-11 芯原微电子(上海)股份有限公司 TWS earphone audio frequency synchronous playing method and system, TWS earphone
CN115038162B (en) * 2022-08-12 2022-11-18 广州安凯微电子股份有限公司 Method and device for rapid same-frequency and same-phase adjustment of Bluetooth clock

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102721865A (en) * 2012-06-04 2012-10-10 惠州Tcl移动通信有限公司 Method and system for measuring accuracy of crystal oscillators
CN107135182A (en) * 2017-04-10 2017-09-05 上海顺久电子科技有限公司 The frequency offset calculation method and device of FM signal

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108023723B (en) * 2016-11-04 2021-07-09 华为技术有限公司 Method for frequency synchronization and slave clock
CN108155955B (en) * 2017-11-17 2021-05-25 芯海科技(深圳)股份有限公司 Bluetooth frequency offset test calibration device and method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102721865A (en) * 2012-06-04 2012-10-10 惠州Tcl移动通信有限公司 Method and system for measuring accuracy of crystal oscillators
CN107135182A (en) * 2017-04-10 2017-09-05 上海顺久电子科技有限公司 The frequency offset calculation method and device of FM signal

Also Published As

Publication number Publication date
CN111416673A (en) 2020-07-14

Similar Documents

Publication Publication Date Title
CN111416673B (en) Method, device and computer readable storage medium for wirelessly measuring Bluetooth frequency offset
CN101489290B (en) Receiving apparatus, signal processing system and signal receiving method
US20230048782A1 (en) Synchronization device and synchronization method
CN104185274B (en) High-precision WLAN based on precision clock synchronously with TDOA principles is positioned
CN108155955B (en) Bluetooth frequency offset test calibration device and method
CN104539383B (en) Real-time pulse signal power capturing device and implement method thereof
JP2019511860A (en) Wireless node time synchronization network and wireless node
Rheinländer et al. Precise synchronization time stamp generation for Bluetooth low energy
CN101977085A (en) Method and system for controlling and calibrating TD-LTE terminal automatic frequency
US8179925B2 (en) Sink device for a wireless local area network
WO2022148025A1 (en) Multi-source signal synchronization system and method
CN114845367A (en) Positioning method, positioning system, positioning device and readable storage medium
KR102611724B1 (en) How to Test Radio Frequency (RF) Data Packet Signal Transceivers Using Implicit Synchronization
US9319298B2 (en) System and method for data packet transceiver testing after signal calibration and power settling to minimize test time
CN103728502B (en) The method and system and wireless terminal of a kind of antenna measurement
EP1642408B1 (en) Method for clock synchronization of wireless 1394 buses for nodes connected via ieee 802.11 lan
CN105450320A (en) Whole-course us-level-precision wireless ethernet synchronization apparatus of intelligent transformer station and method thereof
CN114697923A (en) Bluetooth device and Bluetooth clock calibration method and system thereof
CN207851150U (en) A kind of operating frequency phase wireless synchronization device
EP1583265B1 (en) Methods for calibrating a transmitter and a receiver path of a communication device and test system therefor
KR100842683B1 (en) Method for generating timming synchronize signal on the radio channel measurement system by using multi antennas
CN202617149U (en) High-precision IP (Internet Protocol) network one-way time delay measuring device
Feys et al. Low-cost synchronization for WLAN Sensors
CN106332263B (en) Terminal pattern switching method and terminal
CN207588876U (en) A kind of locating base station clock synchronization apparatus

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