CN112969195A - Signal quality detection method and related equipment - Google Patents

Signal quality detection method and related equipment Download PDF

Info

Publication number
CN112969195A
CN112969195A CN202110202210.9A CN202110202210A CN112969195A CN 112969195 A CN112969195 A CN 112969195A CN 202110202210 A CN202110202210 A CN 202110202210A CN 112969195 A CN112969195 A CN 112969195A
Authority
CN
China
Prior art keywords
bluetooth
signal quality
quality report
communication
time interval
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
CN202110202210.9A
Other languages
Chinese (zh)
Other versions
CN112969195B (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 Goodix Technology Co Ltd
Original Assignee
Shenzhen Goodix 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 Goodix Technology Co Ltd filed Critical Shenzhen Goodix Technology Co Ltd
Priority to CN202110202210.9A priority Critical patent/CN112969195B/en
Publication of CN112969195A publication Critical patent/CN112969195A/en
Application granted granted Critical
Publication of CN112969195B publication Critical patent/CN112969195B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04BTRANSMISSION
    • H04B17/00Monitoring; Testing
    • 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

Landscapes

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

Abstract

The embodiment of the application provides a signal quality detection method and related equipment, which relate to the technical field of communication, and the method comprises the following steps: when a first HCI event is in an enabling state, the first Bluetooth end outputs a signal quality report based on the receiving state of a received data packet; the signal quality report includes a reception status of data packets received by one or more of the first bluetooth terminals. The method provided by the embodiment of the application can automatically detect the signal quality and improve the efficiency of detecting the signal quality of the Bluetooth module.

Description

Signal quality detection method and related equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a signal quality detection method and related equipment.
Background
With the rapid development of short-range communication technology, Bluetooth (Bluetooth) technology is widely used in different fields. Bluetooth technology is an open global specification for wireless data and voice communications, and is based on low-cost short-range wireless connections. The type of Bluetooth may be classified into a legacy Bluetooth (BT) type, a Low power consumption (BLE) type, and a dual mode type, wherein the dual mode Bluetooth may simultaneously support BLE, a Basic Rate (BR), and an Enhanced Data Rate (EDR).
Currently, in the development process of a bluetooth module, the quality of a bluetooth link is generally evaluated through the signal quality of the link, and the quality of the bluetooth link is generally detected through a log output mode, so that a user can print the log and analyze the log, thereby obtaining the signal quality of the bluetooth link. However, the above method of detecting signal quality manually is complicated and inefficient.
Disclosure of Invention
The embodiment of the application provides a signal quality detection method and related equipment to provide a Bluetooth link signal quality detection mode, so that signal quality detection can be automatically carried out, and the efficiency of Bluetooth module signal quality detection is improved.
In a first aspect, an embodiment of the present application provides a signal quality detection method, applied to a first bluetooth end, including:
when a first HCI event is in an enabling state, the first Bluetooth end outputs a signal quality report based on the receiving state of a received data packet; the signal quality report comprises the receiving state of one or more data packets received by the first Bluetooth terminal; specifically, the first bluetooth end may be a bluetooth chip, or may be an electronic device including a bluetooth chip, which is not limited in this embodiment of the present application.
In the embodiment of the application, the first bluetooth end generates the signal quality report according to the receiving state of the data packet by detecting the state of the first HCI event, so that the signal quality report of the bluetooth link can be automatically acquired, and the efficiency of signal quality detection can be improved.
In one possible implementation manner, before the outputting, by the first bluetooth end, the signal quality report based on the receiving status of the received data packet, the method further includes:
and the first Bluetooth terminal configures the first HCI event to be in an enabling state.
In the embodiment of the application, the output state of the signal quality report can be flexibly configured by configuring the state of the first HCI event.
In one possible implementation manner, when the first HCI event is in an enabled state, a data request is sent to a second bluetooth end, where the data request is used to request the second bluetooth end to send the data packet;
and receiving the data packet sent by the second Bluetooth terminal, and generating the receiving state of the received data packet.
In the embodiment of the application, the data request is actively sent to the second Bluetooth end, so that the second Bluetooth end sends data, the signal quality can be actively detected, and the verification efficiency of the Bluetooth module can be improved.
In one possible implementation manner, the first bluetooth end configures the first HCI event to be a disabled state;
and when the first HCI event is in a disabled state, the first Bluetooth terminal stops outputting a signal quality report based on the receiving state of the received data packet.
In the embodiment of the application, by configuring the state of the first HCI event, the detection function of the signal quality can be disabled as required, so that resources can be saved.
In one possible implementation manner, a link ID is obtained through the first HCI event; the first Bluetooth terminal outputs a signal quality report between the first Bluetooth terminal and a second Bluetooth terminal based on the received receiving state of the data packet transmitted through the communication link corresponding to the link ID; the link ID is used for identifying a communication link between the first Bluetooth terminal and the second Bluetooth terminal, and the communication link is used for the second Bluetooth terminal to send the data packet to the first Bluetooth terminal, so that the signal quality detection of Bluetooth multilink can be realized.
In one possible implementation manner, the outputting, by the first bluetooth end, the signal quality report based on the receiving status of the received data packet includes:
when the first HCI event is in an enabling state, determining a first time interval and starting timing; in particular, the first time interval may be implemented by setting a timer.
And when the timing accumulation exceeds the first time interval, the first Bluetooth terminal outputs a signal quality report based on the receiving state of the data packet received by the first Bluetooth terminal in the first time interval.
In the embodiment of the application, the signal quality report can be automatically output by setting the timer to output the signal quality report at regular time, so that the efficiency of outputting the signal quality report can be improved.
In one possible implementation manner, when the first HCI event is in an enabled state, determining a first time interval corresponding to a first communication link and starting timing;
when the timing accumulation exceeds a first time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the first time interval;
responding to a detected time interval adjusting instruction, determining a second time interval corresponding to a first communication link and starting timing, wherein the time interval adjusting instruction is used for adjusting the first time interval corresponding to the first communication link to obtain the second time interval corresponding to the first communication link;
when the timing accumulation exceeds a second time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the second time interval;
wherein the second time interval is longer than the first time interval.
In the embodiment of the application, the frequency of the output of the signal quality report can be adjusted by adjusting the value of the timer, so that resource occupation caused by excessive signal quality reports is avoided, and resources can be saved.
In a possible implementation manner, the first HCI event is used to generate a signal quality report output task, where the signal quality report output task is configured with a preset first priority, and after the timing accumulation exceeds the first time interval, the first bluetooth end outputs a signal quality report based on a reception status of a data packet received by the first bluetooth end in the first time interval, where outputting the signal quality report includes:
when the timing accumulation exceeds the first time interval, detecting whether a data communication task exists at the current moment;
if the data communication task exists at the current moment, acquiring a preset second priority of the data communication task, and comparing the preset first priority with the preset second priority;
if the preset first priority is lower than the preset second priority, the first Bluetooth end executes the receiving state based on the data packet received by the first Bluetooth end in the first time interval after finishing the data communication task, and outputs a signal quality report;
and if the preset first priority is higher than the preset second priority, the first Bluetooth end executes the data communication task after outputting a signal quality report based on the receiving state of the data packet received by the first Bluetooth end in the first time interval.
In the embodiment of the application, the corresponding tasks are executed in sequence through the judgment of the priorities of the tasks, and the execution quality of the tasks can be ensured.
In one possible implementation manner, the outputting, by the first bluetooth end, the signal quality report based on the receiving status of the received data packet includes:
in response to the detected signal quality report output request, if the first HCI event is in an enabled state, the first bluetooth terminal outputs a signal quality report based on a reception state of a data packet received before the signal quality report output request is received.
In the embodiment of the application, the output of the signal quality report can be realized in real time by actively requesting the output of the signal quality report by a user, so that the flexibility of outputting the signal quality report can be improved.
In order to save memory, in one possible implementation manner, the outputting the signal quality report further includes: deleting the reception status of the generated received packet.
In order to adjust the signal quality of the bluetooth link in real time, in one possible implementation, the communication information between the first bluetooth end and the second bluetooth end is updated based on the signal quality report.
In one possible implementation manner, the communication information includes a frequency band table of the first bluetooth end communicating with the second bluetooth end, the frequency band table includes a plurality of selectable frequency bands, and the updating the communication information between the first bluetooth end and the second bluetooth end based on the signal quality report includes:
acquiring a frequency band table and a current frequency band of the communication between the first Bluetooth end and the second Bluetooth end, wherein the current frequency band is any one of a plurality of selectable frequency bands;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, deleting the current frequency band from the frequency band table.
In the embodiment of the application, the frequency band table is adjusted, so that the selection efficiency of the frequency band of the first Bluetooth end can be effectively improved, and the adjustment efficiency of the signal quality of the Bluetooth link can be further improved.
In one possible implementation manner, the communication information includes a physical layer communication rate, and the updating the communication information between the first bluetooth end and the second bluetooth end based on the signal quality report includes:
acquiring a first physical layer communication rate of the communication between the first Bluetooth terminal and the second Bluetooth terminal;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, switching the first physical layer communication rate to a second physical layer communication rate.
In the embodiment of the application, the adjustment efficiency of the signal quality of the Bluetooth link can be improved by switching the communication rate of the physical layer.
In a second aspect, an embodiment of the present application provides a chip, which is applied to a first bluetooth end, and includes:
the receiving module is used for receiving the data packet;
the output module is used for outputting a signal quality report based on the receiving state of the received data packet when the first HCI event is in an enabling state; the signal quality report includes a reception status of one or more of the received data packets.
In one possible implementation manner, the chip further includes:
a first configuration module, configured to configure the first HCI event to be in an enabled state.
In one possible implementation manner, the chip further includes:
a data request module, configured to send a data request to a second bluetooth end when the first HCI event is in an enabled state, where the data request is used to request the second bluetooth end to send the data packet; and receiving the data packet sent by the second Bluetooth terminal, and generating the receiving state of the received data packet.
In one possible implementation manner, the chip further includes:
a second configuration module to configure the first HCI event to a disabled state; and when the first HCI event is in a disabled state, stopping outputting a signal quality report based on the receiving state of the received data packet.
In one possible implementation manner, the chip further includes:
a multilink detection module, configured to obtain a link ID through the first HCI event; outputting a signal quality report between the first Bluetooth terminal and the second Bluetooth terminal based on the received receiving state of the data packet transmitted through the communication link corresponding to the link ID; the link ID is used to identify a communication link between the first bluetooth end and the second bluetooth end, and the communication link is used for the second bluetooth end to send the data packet to the first bluetooth end.
In one possible implementation manner, the output module is further configured to determine a first time interval and start timing when the first HCI event is in an enabled state; and outputting a signal quality report based on the receiving state of the data packet received in the first time interval after the timing accumulation exceeds the first time interval.
In one possible implementation manner, the chip further includes:
the adjusting module is used for determining a first time interval corresponding to a first communication link and starting timing when the first HCI event is in an enabling state;
when the timing accumulation exceeds a first time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the first time interval;
responding to a detected time interval adjusting instruction, determining a second time interval corresponding to a first communication link and starting timing, wherein the time interval adjusting instruction is used for adjusting the first time interval corresponding to the first communication link to obtain the second time interval corresponding to the first communication link;
when the timing accumulation exceeds a second time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the second time interval;
wherein the second time interval is longer than the first time interval.
In one possible implementation manner, the first HCI event is used to generate a signal quality report output task, the signal quality report output task is configured with a preset first priority, and the output module is further configured to detect whether a data communication task exists at the current time when the timing accumulation exceeds the first time interval;
if the data communication task exists at the current moment, acquiring a preset second priority of the data communication task, and comparing the preset first priority with the preset second priority;
if the preset first priority is lower than the preset second priority, the first Bluetooth end executes the receiving state based on the data packet received by the first Bluetooth end in the first time interval after finishing the data communication task, and outputs a signal quality report;
and if the preset first priority is higher than the preset second priority, the first Bluetooth end executes the data communication task after outputting a signal quality report based on the receiving state of the data packet received by the first Bluetooth end in the first time interval.
In one possible implementation manner, the output module is further configured to output a signal quality report based on a reception status of a data packet received before the signal quality report output request is received, if the first HCI event is in an enabled state, in response to the detected signal quality report output request.
In one possible implementation manner, the chip further includes:
and the deleting module is used for deleting the generated receiving state of the received data packet.
In one possible implementation manner, the signal quality report is used to characterize communication quality between the first bluetooth end and the second bluetooth end, and the chip further includes:
and the updating module is used for updating the communication information between the first Bluetooth terminal and the second Bluetooth terminal based on the signal quality report.
In one possible implementation manner, the communication information includes a frequency band table for the first bluetooth end to communicate with the second bluetooth end, the frequency band table includes a plurality of selectable frequency bands, the update module is further configured to obtain the frequency band table for the first bluetooth end to communicate with the second bluetooth end and a current frequency band, and the current frequency band is any one of the plurality of selectable frequency bands;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, deleting the current frequency band from the frequency band table.
In one possible implementation manner, the communication information includes a physical layer communication rate, and the update module is further configured to obtain a first physical layer communication rate at which the first bluetooth end communicates with the second bluetooth end;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, switching the first physical layer communication rate to a second physical layer communication rate.
In a third aspect, an embodiment of the present application provides an electronic device, including the chip according to the second aspect.
In a fourth aspect, embodiments of the present application provide a computer-readable storage medium having stored thereon a computer program, which, when run on a computer, causes the computer to perform the method according to the first aspect.
In a fifth aspect, embodiments of the present application provide a computer program, which is configured to perform the method according to the first aspect when the computer program is executed by a computer.
In a possible design, the program of the fifth aspect may be stored in whole or in part on a storage medium packaged with the processor, or in part or in whole on a memory not packaged with the processor.
Drawings
Fig. 1 is a schematic view of an application scenario provided in an embodiment of the present application;
fig. 2 is a schematic diagram of a software structure of a first bluetooth end according to an embodiment of the present application;
fig. 3 is a schematic flowchart of an embodiment of a signal quality detection method provided in the present application;
fig. 4 is a schematic flow chart of another embodiment of a signal quality detection method provided in the present application;
fig. 5 is a timing diagram of a signal quality detection method according to an embodiment of the present disclosure;
fig. 6 is a schematic structural diagram of a chip provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described below with reference to the drawings in the embodiments of the present application. In the description of the embodiments herein, "/" means "or" unless otherwise specified, for example, a/B may mean a or B; "and/or" herein is merely an association describing an associated object, and means that there may be three relationships, e.g., a and/or B, which may mean: a exists alone, A and B exist simultaneously, and B exists alone.
In the following, the terms "first", "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of the embodiments of the present application, "a plurality" means two or more unless otherwise specified.
Currently, in the development process of a bluetooth module, the quality of a bluetooth link is generally evaluated through the signal quality of the link, and the signal quality of the bluetooth link is generally detected through a log output method, for example, an electronic device may collect a log of each data reception, and a user may print the log and analyze the log, so as to obtain the signal quality of the bluetooth link. However, the above-mentioned manual printing method for detecting signal quality is complicated and inefficient.
Based on the above problem, the embodiment of the application provides a signal quality detection method, which can improve the efficiency of signal quality detection of a bluetooth module.
The signal quality detection method provided by the embodiment of the present application will now be described with reference to fig. 1 to 5. Fig. 1 is an application scenario of the embodiment of the present application. As shown in fig. 1, the application scenario includes a first bluetooth end 10, a second bluetooth end 20, and a second bluetooth end 21. For example, the first bluetooth end 10, the second bluetooth end 20, and the second bluetooth end 21 may be bluetooth chips, or may be electronic devices including the bluetooth chips. The embodiment of the present application does not specifically limit the specific forms of the first bluetooth end 10, the second bluetooth end 20, and the second bluetooth end 21 for executing the technical solution.
It should be noted that fig. 1 only shows the number of the second bluetooth terminals for example, and does not constitute a limitation to the embodiments of the present application, and in some embodiments, the number of the second bluetooth terminals may be greater or less, for example, the number of the second bluetooth terminals may be 1, and the number of the second bluetooth terminals may also be 3 or more.
Fig. 2 is a schematic diagram of a software structure of a first bluetooth end 10, and as shown in fig. 2, the first bluetooth end 10 includes a bluetooth protocol stack Host (Host, hereinafter, referred to as "Host" for convenience of description) 11 and a bluetooth protocol stack Controller (Controller, hereinafter, referred to as "Controller" for convenience of description) 12, and the Host 11 and the Controller 12 communicate with each other through a bluetooth Host and Controller Interface (HCI) 13. The host 11 is configured to receive user operations (e.g., turning on/off a signal quality acquisition function, setting a timer, deleting a signal quality report, and the like), and instruct the controller 12 to perform corresponding tasks; the controller 12 is configured to receive a data packet sent by a peer device (e.g., a second bluetooth peer), generate a signal quality report according to the receiving condition of the data packet, and send the signal quality report to the host 11.
Next, taking the first bluetooth peer 10 and the second bluetooth peer 20 as an example for explanation, the first bluetooth peer 10 and the second bluetooth peer 20 have established a communication connection, and the second bluetooth peer 20 sends a data packet to the first bluetooth peer 10. Fig. 3 is a schematic flowchart of an embodiment of a signal quality detection method according to an embodiment of the present application, where the signal quality detection method includes:
in step 301, the user configures the signal quality acquiring state of the first bluetooth end 10 to be an enabling state.
Specifically, the user may configure the signal quality acquisition state in the first bluetooth terminal 10 by the HCI command, so that the signal quality acquisition state is configured as an enabled state. The signal quality acquisition state may include an enable state and a disable state. The enabled state may be used to indicate that the signal quality acquiring function is turned on, that is, when the signal quality acquiring state is the enabled state, the first bluetooth end 10 may perform signal quality detection, so as to output a signal quality report; the disabled state may be used to characterize that the signal quality acquisition function is disabled, that is, when the signal quality acquisition state is the disabled state, the first bluetooth end 10 may stop performing signal quality detection, so as to prohibit outputting a signal quality report.
In step 302, the first bluetooth end 10 outputs a signal quality report based on the receiving status of the received data packet.
Specifically, the data packet may be sent by the second bluetooth end 20. The receiving status of the data packet includes correct receiving and wrong receiving. The types of the erroneous reception may include: CRC check error, synchronization error, reception time error, or reception length error, etc. For example, if the first bluetooth peer 10 successfully receives the data packet sent by the second bluetooth peer 20, the receiving status of the data packet is correct. When the first bluetooth peer 10 receives the data packet transmitted by the second bluetooth peer 20, errors such as CRC check error, synchronization error, reception time error, and reception length error occur, and the reception status of the data packet is an erroneous reception.
In a specific implementation, the first bluetooth peer 10 may generate and output a signal quality report based on the received reception status of the data packet sent by the second bluetooth peer 20, where the signal quality report may include the reception status of one or more data packets. Therefore, the signal quality report can be automatically generated, the detection of the signal quality of the Bluetooth link is completed, and the efficiency of signal quality detection is improved.
The first bluetooth end 10 and the second bluetooth end 20 are taken as an example for description, and the first bluetooth end 10, the second bluetooth end 20 and the second bluetooth end 21 are taken as an example for description. Fig. 4 is a schematic flowchart of another embodiment of a signal quality detection method provided in the present application. Fig. 5 is a timing diagram of an embodiment of the signal quality detection method provided in the present application, and in order to facilitate the public to fully understand the complete scheme of the present application, the steps that the first bluetooth end and the second bluetooth end need to perform at different stages are integrated into the description of the flow according to a timeline, but it should be understood that, for the first bluetooth end 10 that performs signal quality detection, only those steps that need to be performed in the flow need to be performed in the signal quality detection process:
step 501, the first bluetooth end 10 establishes a connection with the second bluetooth end 20 and the second bluetooth end 21, and the first bluetooth end 10 starts a signal quality obtaining function.
Specifically, the first bluetooth end 10 may start a signal quality obtaining function of one or more links, where the signal quality obtaining function is configured to obtain a receiving status of a received data packet on the link, where the receiving status of the received data packet may be used to generate a signal quality report, and the information quality report may be used to evaluate the signal quality of the link. Wherein the link may comprise a communication link between the first device and the second device. For example, a first link may be between the first bluetooth end 10 and the second bluetooth end 20, and a second link may be between the first bluetooth end 10 and the second bluetooth end 21. In a specific implementation, the user may open the signal quality acquisition function of the first link and/or the second link in the first bluetooth end 10 through an HCI command, so that the controller 12 in the first bluetooth end 10 is in an enable state for signal quality acquisition.
For example, the user may click a switch for turning on the signal quality acquisition function in the operation interface of the first bluetooth terminal 10. In response to the user's operation, the host 11 in the first bluetooth end 10 sends a turn-on instruction to the controller 12, instructing the controller 12 to turn on a signal quality acquisition function corresponding to the link. Wherein the open command may be an HCI command, and the open command may include a link ID for identifying a link between the first bluetooth peer 10 and the second bluetooth peer 20 or 21. After receiving the start instruction of the host 11, the controller 12 in the first bluetooth end 10 may start the signal quality obtaining function corresponding to the link ID according to the link ID in the start instruction.
It is to be understood that the user may turn on the signal quality acquisition function of a part of the links, for example, only turn on the signal quality acquisition function of the first link or the second link. The user may also turn on the signal quality acquisition functions of all links, for example, simultaneously turning on the signal quality acquisition functions of the first link and the second link. The number of links for starting the signal quality acquisition function is not particularly limited in the embodiment of the present application.
Alternatively, the user may disable the signal quality acquisition function of one or more links, so that the controller 12 in the first bluetooth end 10 is in a disabled state for signal quality acquisition. When the controller 12 in the first bluetooth terminal 10 is in the disabled state for signal quality acquisition, it may stop outputting the signal quality report based on the reception state of the received data packet.
In step 502, the first bluetooth end 10 configures a time interval for signal quality reporting.
Specifically, the first bluetooth peer 10 may configure the time interval of the signal quality report of the link, and for example, the configuration of the time interval of the signal quality report may be performed through a configuration port of the first bluetooth peer 10, for example, a configuration port such as I2C or SPI. In a specific implementation, the user may set a timer in the operation interface of the first bluetooth end 10, where the timer is used to time the time interval of the signal quality report. Further, the timer may correspond to each link, and may be associated with a link ID, for example. In response to the operation of setting the timer by the user, the host 11 in the first bluetooth end 10 may send a timing report instruction to the controller 12, instructing the controller 12 to set the timer. The timed reporting instruction may include a link ID and a time interval. After receiving the timing report command from the host 11, the controller 12 in the first bluetooth end 10 may set a timer corresponding to the link ID according to the link ID in the timing report command, where a time value of the timer may be determined by a time interval in the timing report command. Preferably, the time interval may be set in the order of milliseconds, for example, the time interval is N milliseconds, where N is a positive integer. It is to be understood that the above example only illustrates a scenario in which the time interval is in milliseconds, and does not constitute a limitation to the embodiments of the present application, and in some embodiments, the time interval may be a time length in other units.
Optionally, the first bluetooth peer 10 may also configure a default signal quality reporting time interval, for example, in a case that the user does not configure the signal quality reporting time interval, the first bluetooth peer 10 may have the default signal quality reporting time interval.
Step 503, determining whether to start timing the time interval of the signal quality report based on the state of signal quality acquisition.
Specifically, after the user completes the time interval configuration for the signal quality report, the first bluetooth end 10 may start timing the time interval of the signal quality report.
Before the first bluetooth end 10 starts timing the time interval of the signal quality report, it can also determine the state of signal quality acquisition.
If the signal quality acquisition state is enabled, the controller 12 in the first bluetooth end 10 may initialize a timer task and start timing, and the cumulative timing duration of the timer may be determined by the time interval of the signal quality report.
If the signal quality acquisition state is in the disabled state, the controller 12 in the first bluetooth end 10 may feed back a failure message to the host 11, where the failure message is used to notify the host 11 that the timer starts to count time unsuccessfully, that is, at this time, the timer task is not initialized, and the timer task is not counted time. In a specific implementation, the failure message may further include a failure reason, which may be, for example, "the state of the current signal quality acquisition is in a disabled state".
Optionally, the timer task may be configured to generate a signal quality report, and the task generating the signal quality report may be configured with a first scheduling priority in advance; the first scheduling priority is used to characterize the scheduling order of tasks that generate signal quality reports. In a specific implementation, since a user may configure a timer task for each link, the timer task for each link may configure an independent scheduling priority, for example, each link ID may be bound to a separate first scheduling priority; all links may also include the same first scheduling priority, for example, all link IDs correspond to the same first scheduling priority, which is not particularly limited in the embodiment of the present application.
Table 1 exemplarily shows a mapping relationship of the link and the timer task between the first bluetooth end 10 and the second bluetooth end 20 and 21.
TABLE 1
Figure BDA0002948239580000091
In step 504, the first bluetooth peer 10 receives the data packet sent by the second bluetooth peer 20 and/or the second bluetooth peer 21, and obtains the signal quality data based on the receiving condition of the data packet.
Specifically, after the first bluetooth peer 10 starts the timer task, if the state of the signal quality acquisition is in the enabled state, the first bluetooth peer 10 may receive the data packet sent by the second bluetooth peer 20 and/or the second bluetooth peer 21 within the time interval of the signal quality report. When the first bluetooth peer 10 receives any one of the data packets of the second bluetooth peer 20 and/or the second bluetooth peer 21, the receiving status of the data packet can be obtained. Illustratively, the receiving state of the data packet may include: correct reception, CRC check error, synchronization error, reception time error, and reception length error. Then, the first bluetooth end 10 can also store the receiving status of each data packet. In a specific implementation, after the controller 12 in the first bluetooth end 10 starts the timer task, if the state of signal quality acquisition is in an enable state, the controller 12 in the first bluetooth end 10 may receive the data packets sent by the second bluetooth end 20 and/or the second bluetooth end 21, acquire the receiving state of each data packet, and store the receiving state of each data packet in a buffer of the controller 12. The receiving status of each data packet may correspond to a link ID, for example, a data packet received by the controller 12 from the second bluetooth end 20 corresponds to the first link, and a data packet received by the controller 12 from the second bluetooth end 21 corresponds to the second link.
It will be appreciated that the above-described reception status for each packet may be considered signal quality data. Illustratively, if the data packet is correctly received, that is, the receiving status of the data packet is correctly received, it indicates that the current channel condition is better. If the CRC error, the synchronization error, the reception time error, and the reception length error occur, that is, the reception status of the data packet is the CRC error, the synchronization error, the reception time error, or the reception length error, the channel condition is poor. When the first bluetooth end 10 acquires the receiving statuses of the plurality of data packets within a certain period of time (for example, the time interval of the signal quality report), a corresponding signal quality report may be generated, and the signal quality report may include the receiving statuses of the plurality of data packets.
Optionally, when the signal quality acquiring state is in the enabling state, the first bluetooth peer 10 may further actively send a data request to the second bluetooth peer 20 and/or the second bluetooth peer 21, where the data request may be used to request the second bluetooth peer 20 and/or the second bluetooth peer 21 to send a data packet to the first bluetooth peer 10, so that the first bluetooth peer 10 may acquire the receiving state of the data packet, and further may generate a signal quality report according to the receiving state of the received data packet.
In step 505, the first bluetooth end 10 generates a signal quality report based on the signal quality data.
Specifically, the first bluetooth terminal 10 may generate the signal quality report in the following two scenarios.
Scene 1:
after the timer task is started, if the timer is overtime, the first bluetooth end 10 may generate a corresponding signal quality report based on the signal quality data stored in the time interval of the signal quality report. The signal quality report may include a reception status of a plurality of data packets received within a time interval of the signal quality report. It will be appreciated that each signal quality data may include an ID of the packet and a receipt status of the packet. Further, since each packet is transmitted by the link corresponding to the link ID, each signal quality report may correspond to the link ID.
Table 2 exemplarily shows a format of the signal quality report of the first link.
TABLE 2
Figure BDA0002948239580000101
Figure BDA0002948239580000111
As shown in table 2, the signal quality report may include a link ID and signal quality data corresponding to the link ID. The link ID is used to characterize which link the signal quality report corresponds to. The signal quality data may include a packet ID and a reception status corresponding to the packet ID.
It is to be understood that table 2 above only illustrates the signal quality report of one link by way of example, and does not limit the embodiments of the present application.
Table 3 exemplarily shows formats of signal quality reports of the first link and the second link.
TABLE 3
Figure BDA0002948239580000112
In a specific implementation, the controller 12 in the first bluetooth end 10 may monitor the timer of each link in real time. When the controller 12 monitors that the timer of any link times out, it may generate a corresponding signal quality report based on the signal quality data corresponding to the link stored in the time interval of the signal quality report, and may output the signal quality report.
Optionally, after monitoring that the timer of any link times out, the first bluetooth end 10 may further detect whether a data communication task exists in the link at the current time, where the data communication task may be, for example, a data sending task or a data receiving task. It is to be understood that the data communication task is only an exemplary scenario illustrating data transmission and data reception, and does not constitute a limitation to the embodiments of the present application, and in some embodiments, the data communication task may be other types of tasks.
If a data communication task exists at the current moment of the link, a second scheduling priority of the data communication task may be obtained, and the second scheduling priority of the data communication task may be compared with the first scheduling priority of the task for generating a signal quality report, and if the second scheduling priority of the data communication task is lower than the first scheduling priority of the task for generating a signal quality report, the first bluetooth end 10 may generate a corresponding signal quality report based on the signal quality data corresponding to the link stored in the time interval of the signal quality report, and may output the signal quality report, for example, the data communication task may be further executed after being displayed on a display screen of the first bluetooth end 10; if the second scheduling priority of the data communication task is higher than the first scheduling priority of the task for generating the signal quality report, the first bluetooth peer 10 may process the data communication task first, and after the data communication task is completed, the first bluetooth peer 10 may further detect whether there is a data communication task, and if there is no data communication task, may generate a corresponding signal quality report based on the signal quality data corresponding to the link stored in the time interval of the signal quality report, and may output the signal quality report.
If there is no data communication task at the current time of the link, the first bluetooth end 10 may generate a corresponding signal quality report based on the signal quality data corresponding to the link stored in the time interval of the signal quality report, and may output the signal quality report.
Scene 2:
the user can operate on the operation interface of the first bluetooth end 10 to trigger the first bluetooth end 10 to actively generate the signal quality report. For example, the user may click on a signal quality report generation button on the operation interface of the first bluetooth terminal 10. In response to the user's operation, the host 11 in the first bluetooth terminal 10 transmits a signal quality report output request for instructing the controller 12 to output a signal quality report to the controller 12. Wherein the signal quality report output request may include a link ID. When the controller 12 receives a signal quality report output request from the host 11, it may acquire, based on the link ID in the signal quality report output request, signal quality data corresponding to the link ID that has been stored before the signal quality report output request was received, and may generate a corresponding signal quality report based on the signal quality data that has been stored before the signal quality report output request was received. The signal quality report may be output when the controller 12 generates a signal quality report corresponding to the link ID.
Alternatively, when the controller 12 receives a signal quality report output request transmitted by the host 11, it may also detect the state of signal quality acquisition of the link corresponding to the link ID.
If the signal quality acquisition state of the link corresponding to the link ID is enabled, the controller 12 may acquire, based on the link ID in the signal quality report output request, signal quality data corresponding to the link ID that has been stored before the signal quality report output request was received, generate a corresponding signal quality report based on the signal quality data that has been stored before the signal quality report output request was received, and output the signal quality report.
If the signal quality acquisition status of the link corresponding to the link ID is in the disabled status, the controller 12 may return a failure message to the host 11, where the failure message is used to notify the host 11 that the signal quality report output fails.
In step 506, the first bluetooth end 10 updates the communication information of the link based on the signal quality report.
Optionally, after acquiring the signal quality report of any link, the first bluetooth end 10 may obtain the signal quality of the link based on the status information of the data packet in the signal quality report of the link, and may update the communication information of the link based on the signal quality of the link. The communication information may include a frequency band table and a physical layer communication rate corresponding to the link, the frequency band table may include a plurality of selectable frequency bands, and the selectable frequency bands may be used for communication between the first bluetooth end and the second bluetooth end.
In a specific implementation, after the first bluetooth end 10 generates a signal quality report of any link, the state information of the data packet in the signal quality report of the link may be obtained, and the state information of the data packet of the link may be counted based on a preset rule, so that the signal quality of the link may be obtained. For example, the preset rule may be: the total number of correctly received data packets can be counted in the state information of the data packets, a correct receiving rate can be obtained based on the total number of the correctly received data packets, the correct receiving rate is compared with a preset threshold value, and if the correct receiving rate is greater than or equal to the preset threshold value, the signal quality of the link is better; if the correct receiving rate is less than the predetermined threshold, the signal quality of the link is poor. It is to be understood that the above examples only illustrate the preset rule of the correct receiving rate, and do not limit the embodiments of the present application, and in some embodiments, the preset rule may also determine the signal quality through other rules.
Then, if the first bluetooth end 10 determines that the signal quality of the link is better, the current frequency band table and the physical layer communication rate can be maintained.
If the first bluetooth end 10 determines that the signal quality of the link is poor, the frequency band table and the frequency band currently used for communication of the link may be obtained. The current frequency band is determined by the selectable frequency bands, for example, the current frequency band may be selected from the selectable frequency bands based on a predetermined rule. The specific selection rule may refer to the bluetooth protocol, which is not described herein again. Then, the first bluetooth end 10 may delete the current frequency band from the frequency band table, so as to update the frequency band table. In addition, the first bluetooth peer 10 may also update the communication rate of the physical layer, for example, the first bluetooth peer 10 may switch from the current physical layer communication rate to another physical layer communication rate, so that the communication between the first bluetooth peer and the second bluetooth peer may be more stable and reliable, where the current physical layer communication rate and the another physical layer communication rate may be the physical layer communication rate supported between the first bluetooth peer 10 and the second bluetooth peer 20 or the second bluetooth peer 21.
In step 507, in response to the deletion operation of the user, the first bluetooth end 10 deletes the signal quality data.
Optionally, the user may also operate on the operation interface of the first bluetooth end 10 to delete the signal quality data of any one or more links stored in the first bluetooth end 10. For example, the user may click a signal quality data deletion button on the operation interface of the first bluetooth terminal 10. In response to the deletion operation by the user, the host 11 in the first bluetooth end 10 sends a deletion instruction to the controller 12, the deletion instruction being used to instruct the controller 12 to delete the corresponding signal quality data. Wherein the delete instruction may include the link ID. When the controller 12 receives the deletion instruction sent by the host 11, the stored signal quality data of the link corresponding to the link ID can be deleted based on the link ID in the deletion instruction, thereby saving the memory.
Step 508, in response to the adjustment operation of the user, adjusting the time interval of the signal quality report.
Optionally, in a specific implementation, when a user configures a time interval of a signal quality report of the link for the first time, the time interval of the signal quality report of the link may be set to be shorter, so that the output of the signal quality report may be triggered as soon as possible, and further, the signal quality of the bluetooth link may be obtained quickly. After the signal quality report is obtained, if the user determines that the current signal quality of the bluetooth link is better through analysis of the signal quality report, for example, the current signal quality of the bluetooth link is higher than a preset threshold, the user may increase the value of the time interval of the signal quality report, so that the frequency of outputting the signal quality report by the first bluetooth end 10 may be reduced, and further, resources may be saved, and power consumption may be reduced. For example, the user may reconfigure the time interval of the signal quality report, and the time interval of the reconfigured signal quality report may be longer than the time interval of the signal quality report before the reconfiguration. After the time interval of the signal quality report is reconfigured, the first bluetooth end 10 may initialize a new timer according to the time interval of the reconfigured signal quality report, start timing, and output a signal quality report based on a receiving state of a packet received within the time interval of the reconfigured signal quality report after the new timer expires. The accumulated time duration of the new timer may be the time interval of the reconfigured signal quality report.
Fig. 6 is a schematic structural diagram of an embodiment of a chip 60 according to the present application, wherein the chip 60 can be applied to the first bluetooth end 10, and at this time, the first bluetooth end 10 can be an electronic device including the chip 60. As shown in fig. 6, the chip 60 may include: a receiving module 61 and an output module 62; wherein the content of the first and second substances,
a receiving module 61, configured to receive a data packet;
an output module 62, configured to output a signal quality report based on a reception status of the received data packet when the first HCI event is in an enabled state; the signal quality report includes a reception status of one or more of the received data packets.
In one possible implementation manner, the chip further includes: a first configuration module 63; wherein the content of the first and second substances,
a first configuration module 63, configured to configure the first HCI event to be in an enabled state.
In one possible implementation manner, the chip further includes: a data request module 64; wherein the content of the first and second substances,
a data request module 64, configured to send a data request to a second bluetooth end when the first HCI event is in an enabled state, where the data request is used to request the second bluetooth end to send the data packet; and receiving the data packet sent by the second Bluetooth terminal, and generating the receiving state of the received data packet.
In one possible implementation manner, the chip further includes: a second configuration module 65; wherein the content of the first and second substances,
a second configuration module 65, configured to configure the first HCI event to a disabled state; and when the first HCI event is in a disabled state, stopping outputting a signal quality report based on the receiving state of the received data packet.
In one possible implementation manner, the chip further includes: a multilink detection module 66; wherein the content of the first and second substances,
a multi-link detection module 66, configured to obtain a link ID through the first HCI event; outputting a signal quality report between the first Bluetooth terminal and the second Bluetooth terminal based on the received receiving state of the data packet transmitted through the communication link corresponding to the link ID; the link ID is used to identify a communication link between the first bluetooth end and the second bluetooth end, and the communication link is used for the second bluetooth end to send the data packet to the first bluetooth end.
In one possible implementation manner, the output module 62 is further configured to determine a first time interval and start timing when the first HCI event is in an enabled state; and outputting a signal quality report based on the receiving state of the data packet received in the first time interval after the timing accumulation exceeds the first time interval.
In one possible implementation manner, the chip further includes: an adjustment module 67; wherein the content of the first and second substances,
an adjusting module 67, configured to determine a first time interval corresponding to a first communication link and start timing when the first HCI event is in an enabled state;
when the timing accumulation exceeds a first time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the first time interval;
responding to a detected time interval adjusting instruction, determining a second time interval corresponding to a first communication link and starting timing, wherein the time interval adjusting instruction is used for adjusting the first time interval corresponding to the first communication link to obtain the second time interval corresponding to the first communication link;
when the timing accumulation exceeds a second time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the second time interval;
wherein the second time interval is longer than the first time interval.
In one possible implementation manner, the first HCI event is used to generate a signal quality report output task, the signal quality report output task is configured with a preset first priority, and the output module 62 is further configured to detect whether a data communication task exists at the current time when the timing accumulation exceeds the first time interval;
if the data communication task exists at the current moment, acquiring a preset second priority of the data communication task, and comparing the preset first priority with the preset second priority;
if the preset first priority is lower than the preset second priority, the first Bluetooth end executes the receiving state based on the data packet received by the first Bluetooth end in the first time interval after finishing the data communication task, and outputs a signal quality report;
and if the preset first priority is higher than the preset second priority, the first Bluetooth end executes the data communication task after outputting a signal quality report based on the receiving state of the data packet received by the first Bluetooth end in the first time interval.
In one possible implementation manner, the output module 62 is further configured to output a signal quality report in response to the detected signal quality report output request, if the first HCI event is in the enabled state, based on a receiving state of a data packet received before the signal quality report output request is received by the first bluetooth terminal.
In one possible implementation manner, the chip further includes: a deletion module 68; wherein the content of the first and second substances,
a deleting module 68 configured to delete the generated receiving status of the received data packet.
In one possible implementation manner, the signal quality report is used to characterize communication quality between the first bluetooth end and the second bluetooth end, and the chip further includes: an update module 69; wherein the content of the first and second substances,
an updating module 69, configured to update the communication information between the first bluetooth end and the second bluetooth end based on the signal quality report.
In one possible implementation manner, the communication information includes a frequency band table for the first bluetooth end and the second bluetooth end to communicate with each other, the frequency band table includes a plurality of selectable frequency bands, the update module 69 is further configured to obtain the frequency band table for the first bluetooth end and the second bluetooth end to communicate with each other and a current frequency band, and the current frequency band is any one of the plurality of selectable frequency bands;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, deleting the current frequency band from the frequency band table.
In one possible implementation manner, the communication information includes a physical layer communication rate, and the updating module 69 is further configured to obtain a first physical layer communication rate of the communication between the first bluetooth end and the second bluetooth end;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, switching the first physical layer communication rate to a second physical layer communication rate.
It should be understood that the division of the modules of the chip shown in fig. 6 is merely a logical division, and the actual implementation may be wholly or partially integrated into one physical entity or may be physically separated. And these modules can be realized in the form of software called by processing element; or may be implemented entirely in hardware; and part of the modules can be realized in the form of calling by the processing element in software, and part of the modules can be realized in the form of hardware. For example, the detection module may be a separate processing element, or may be integrated into a chip of the electronic device. Other modules are implemented similarly. In addition, all or part of the modules can be integrated together or can be independently realized. In implementation, each step of the above method or each module above may be implemented by an integrated logic circuit of hardware in a processor element or an instruction in the form of software.
For example, the above modules may be one or more integrated circuits configured to implement the above methods, such as: one or more Application Specific Integrated Circuits (ASICs), one or more microprocessors (DSPs), one or more Field Programmable Gate Arrays (FPGAs), etc. For another example, these modules may be integrated together and implemented in the form of a System-On-a-Chip (SOC)
Fig. 7 exemplarily shows a schematic structural diagram of the electronic device 100. The electronic device 100 may be the first bluetooth peer 10 described above. The electronic device 100 may be configured to perform the functions/steps of the methods provided by the embodiments of fig. 1-5 of the present application.
As shown in fig. 7, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, a display screen 194, and a Subscriber Identification Module (SIM) card interface 195, etc.
It is to be understood that the illustrated structure of the embodiment of the present invention does not specifically limit the electronic device 100. In other embodiments of the present application, electronic device 100 may include more or fewer components than shown, or some components may be combined, some components may be split, or a different arrangement of components. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
Processor 110 may include one or more processing units, such as: the processor 110 may include an Application Processor (AP), a modem processor, a Graphics Processing Unit (GPU), an Image Signal Processor (ISP), a controller, a video codec, a Digital Signal Processor (DSP), a baseband processor, and/or a neural-Network Processing Unit (NPU), etc. The different processing units may be separate devices or may be integrated into one or more processors.
The controller can generate an operation control signal according to the instruction operation code and the timing signal to complete the control of instruction fetching and instruction execution.
A memory may also be provided in processor 110 for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may hold instructions or data that have just been used or recycled by the processor 110. If the processor 110 needs to reuse the instruction or data, it can be called directly from the memory. Avoiding repeated accesses reduces the latency of the processor 110, thereby increasing the efficiency of the system.
The wireless communication function of the electronic device 100 may be implemented by the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, a modem processor, a baseband processor, and the like.
The antennas 1 and 2 are used for transmitting and receiving electromagnetic wave signals. Each antenna in the electronic device 100 may be used to cover a single or multiple communication bands. Different antennas can also be multiplexed to improve the utilization of the antennas. For example: the antenna 1 may be multiplexed as a diversity antenna for a wireless local area network, although a separate antenna may be provided for each communication scheme in consideration of simplicity of design and influence of other factors. In other embodiments, the antenna may be used in conjunction with a tuning switch.
The mobile communication module 150 may provide a solution including 2G/3G/4G/5G wireless communication applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a Low Noise Amplifier (LNA), and the like. The mobile communication module 150 may receive the electromagnetic wave from the antenna 1, filter, amplify, etc. the received electromagnetic wave, and transmit the electromagnetic wave to the modem processor for demodulation. The mobile communication module 150 may also amplify the signal modulated by the modem processor, and convert the signal into electromagnetic wave through the antenna 1 to radiate the electromagnetic wave. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 may be disposed in the same device as at least some of the modules of the processor 110.
The wireless communication module 160 may provide a solution for wireless communication applied to the electronic device 100, including Wireless Local Area Networks (WLANs) (e.g., wireless fidelity (Wi-Fi) networks), bluetooth (bluetooth, BT), Global Navigation Satellite System (GNSS), Frequency Modulation (FM), Near Field Communication (NFC), Infrared (IR), and the like. The wireless communication module 160 may be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, performs frequency modulation and filtering processing on electromagnetic wave signals, and transmits the processed signals to the processor 110. The wireless communication module 160 may also receive a signal to be transmitted from the processor 110, perform frequency modulation and amplification on the signal, and convert the signal into electromagnetic waves through the antenna 2 to radiate the electromagnetic waves.
In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150 and antenna 2 is coupled to wireless communication module 160 so that electronic device 100 can communicate with networks and other devices through wireless communication techniques. The wireless communication technology may include global system for mobile communications (GSM), General Packet Radio Service (GPRS), code division multiple access (code division multiple access, CDMA), Wideband Code Division Multiple Access (WCDMA), time-division code division multiple access (time-division code division multiple access, TD-SCDMA), Long Term Evolution (LTE), LTE, BT, GNSS, WLAN, NFC, FM, and/or IR technologies, etc. The GNSS may include a Global Positioning System (GPS), a global navigation satellite system (GLONASS), a beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS), and/or a Satellite Based Augmentation System (SBAS).
The electronic device 100 implements display functions via the GPU, the display screen 194, and the application processor. The GPU is a microprocessor for image processing, and is connected to the display screen 194 and an application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or alter display information.
The display screen 194 is used to display images, video, and the like. The display screen 194 includes a display panel. The display panel may adopt a Liquid Crystal Display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode (active-matrix organic light-emitting diode, AMOLED), a flexible light-emitting diode (FLED), a miniature, a Micro-oeld, a quantum dot light-emitting diode (QLED), and the like. In some embodiments, the electronic device 100 may include 1 or N display screens 194, with N being a positive integer greater than 1.
The internal memory 121 may be used to store computer-executable program code, which includes instructions. The internal memory 121 may include a program storage area and a data storage area. The storage program area may store an operating system, an application program (such as a sound playing function, an image playing function, etc.) required by at least one function, and the like. The storage data area may store data (such as audio data, phone book, etc.) created during use of the electronic device 100, and the like. In addition, the internal memory 121 may include a high-speed random access memory, and may further include a nonvolatile memory, such as at least one magnetic disk storage device, a flash memory device, a universal flash memory (UFS), and the like. The processor 110 executes various functional applications of the electronic device 100 and data processing by executing instructions stored in the internal memory 121 and/or instructions stored in a memory provided in the processor.
The SIM card interface 195 is used to connect a SIM card. The SIM card can be brought into and out of contact with the electronic apparatus 100 by being inserted into the SIM card interface 195 or being pulled out of the SIM card interface 195. The electronic device 100 may support 1 or N SIM card interfaces, N being a positive integer greater than 1. The SIM card interface 195 may support a Nano SIM card, a Micro SIM card, a SIM card, etc. The same SIM card interface 195 can be inserted with multiple cards at the same time. The types of the plurality of cards may be the same or different. The SIM card interface 195 may also be compatible with different types of SIM cards. The SIM card interface 195 may also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as communication and data communication. In some embodiments, the electronic device 100 employs esims, namely: an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.
In the above embodiments, the processors may include, for example, a CPU, a DSP, a microcontroller, or a digital Signal processor, and may further include a GPU, an embedded Neural Network Processor (NPU), and an Image Signal Processing (ISP), and the processors may further include necessary hardware accelerators or logic Processing hardware circuits, such as an ASIC, or one or more integrated circuits for controlling the execution of the program according to the technical solution of the present application. Further, the processor may have the functionality to operate one or more software programs, which may be stored in the storage medium.
The embodiments of the present specification provide a non-transitory computer-readable storage medium storing computer instructions, which, when executed on a computer, cause the computer to perform the signal quality detection method provided by the embodiments of fig. 1-5 of the present specification.
The non-transitory computer readable storage medium described above may take 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), a 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 any of a variety of 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 description 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 server. 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).
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
In the description of the specification, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the specification. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present specification, "a plurality" means at least two, e.g., two, three, etc., unless explicitly defined otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present description in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the embodiments of the present description.
In the several embodiments provided in this specification, it should be understood that the disclosed system, apparatus, and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present description may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions to enable a computer device (which may be a personal computer, a server, or a network device) or a Processor (Processor) to execute some steps of the methods described in the embodiments of the present disclosure. And the aforementioned storage medium includes: a U disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (17)

1. A signal quality detection method is applied to a first Bluetooth terminal, and is characterized by comprising the following steps:
when a first HCI event is in an enabling state, the first Bluetooth end outputs a signal quality report based on the receiving state of a received data packet; the signal quality report includes a reception status of data packets received by one or more of the first bluetooth terminals.
2. The method of claim 1, wherein the first bluetooth end further comprises, before outputting the signal quality report based on the receiving status of the received data packet:
and the first Bluetooth terminal configures the first HCI event to be in an enabling state.
3. The method according to claim 1 or 2, characterized in that the method further comprises:
when the first HCI event is in an enabling state, sending a data request to a second Bluetooth terminal, wherein the data request is used for requesting the second Bluetooth terminal to send the data packet;
and receiving the data packet sent by the second Bluetooth terminal, and generating the receiving state of the received data packet.
4. The method according to claim 1 or 2, characterized in that the method further comprises:
the first Bluetooth terminal configures the first HCI event to be in a disabled state;
and when the first HCI event is in the disabled state, the first Bluetooth terminal stops outputting a signal quality report based on the receiving state of the received data packet.
5. The method according to any one of claims 1 to 4, further comprising; acquiring a link ID through the first HCI event; the first Bluetooth terminal outputs a signal quality report between the first Bluetooth terminal and a second Bluetooth terminal based on the received receiving state of the data packet transmitted through the communication link corresponding to the link ID; the link ID is used to identify a communication link between the first bluetooth end and the second bluetooth end, and the communication link is used for the second bluetooth end to send the data packet to the first bluetooth end.
6. The method according to any one of claims 1 to 5, wherein the first Bluetooth terminal outputting a signal quality report based on the reception status of the received data packet comprises:
when the first HCI event is in an enabling state, determining a first time interval and starting timing;
and when the timing accumulation exceeds the first time interval, the first Bluetooth terminal outputs a signal quality report based on the receiving state of the data packet received by the first Bluetooth terminal in the first time interval.
7. The method of claim 6, further comprising:
when the first HCI event is in an enabling state, determining a first time interval corresponding to a first communication link and starting timing;
when the timing accumulation exceeds a first time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the first time interval;
responding to a detected time interval adjusting instruction, determining a second time interval corresponding to a first communication link and starting timing, wherein the time interval adjusting instruction is used for adjusting the first time interval corresponding to the first communication link to obtain the second time interval corresponding to the first communication link;
when the timing accumulation exceeds a second time interval corresponding to the first communication link, the first Bluetooth terminal outputs a signal quality report of the first communication link based on a receiving state of a data packet received by the first Bluetooth terminal through the first communication link in the second time interval;
wherein the second time interval is longer than the first time interval.
8. The method of claim 6, wherein the first HCI event is used for generating a signal quality report output task configured with a preset first priority, and wherein the first Bluetooth terminal outputs a signal quality report based on a reception status of a data packet received by the first Bluetooth terminal in the first time interval after the timing accumulation exceeds the first time interval, and wherein the outputting the signal quality report comprises:
when the timing accumulation exceeds the first time interval, detecting whether a data communication task exists at the current moment;
if the data communication task exists at the current moment, acquiring a preset second priority of the data communication task, and comparing the preset first priority with the preset second priority;
if the preset first priority is lower than the preset second priority, the first Bluetooth end executes the receiving state based on the data packet received by the first Bluetooth end in the first time interval after finishing the data communication task, and outputs a signal quality report;
and if the preset first priority is higher than the preset second priority, the first Bluetooth end executes the data communication task after outputting a signal quality report based on the receiving state of the data packet received by the first Bluetooth end in the first time interval.
9. The method according to any one of claims 1 to 5, wherein the first Bluetooth terminal outputting a signal quality report based on the reception status of the received data packet comprises:
in response to the detected signal quality report output request, if the first HCI event is in an enabled state, the first bluetooth terminal outputs a signal quality report based on a reception state of a data packet received before the signal quality report output request is received.
10. The method of claim 1, wherein outputting the signal quality report further comprises: deleting the reception status of the generated received packet.
11. The method of claim 1, wherein the signal quality report is used to characterize the quality of communication between the first bluetooth peer and the second bluetooth peer, the method further comprising:
and updating the communication information between the first Bluetooth terminal and the second Bluetooth terminal based on the signal quality report.
12. The method of claim 11, wherein the communication information comprises a frequency band table for the first bluetooth peer to communicate with the second bluetooth peer, wherein the frequency band table comprises a plurality of selectable frequency bands, and wherein updating the communication information between the first bluetooth peer and the second bluetooth peer based on the signal quality report comprises:
acquiring a frequency band table and a current frequency band of the communication between the first Bluetooth end and the second Bluetooth end, wherein the current frequency band is any one of a plurality of selectable frequency bands;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, deleting the current frequency band from the frequency band table.
13. The method of claim 11, wherein the communication information comprises a physical layer communication rate, and wherein updating the communication information between the first bluetooth peer and the second bluetooth peer based on the signal quality report comprises:
acquiring a first physical layer communication rate of the communication between the first Bluetooth terminal and the second Bluetooth terminal;
determining a communication quality between the first Bluetooth peer and the second Bluetooth peer based on the signal quality report;
and if the communication quality between the first Bluetooth end and the second Bluetooth end is lower than a preset threshold value, switching the first physical layer communication rate to a second physical layer communication rate.
14. A chip applied to the first bluetooth end, wherein the chip is configured to perform the signal quality detection method according to any one of claims 1 to 13.
15. An electronic device comprising the chip of claim 14.
16. A computer readable storage medium comprising computer instructions which, when run on the electronic device, cause the electronic device to perform the signal quality detection method of any one of claims 1-13.
17. A computer program product, characterized in that it causes a computer to carry out the signal quality detection method according to any one of claims 1-13, when said computer program product is run on the computer.
CN202110202210.9A 2021-02-23 2021-02-23 Signal quality detection method and related equipment Active CN112969195B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110202210.9A CN112969195B (en) 2021-02-23 2021-02-23 Signal quality detection method and related equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110202210.9A CN112969195B (en) 2021-02-23 2021-02-23 Signal quality detection method and related equipment

Publications (2)

Publication Number Publication Date
CN112969195A true CN112969195A (en) 2021-06-15
CN112969195B CN112969195B (en) 2023-01-20

Family

ID=76285728

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110202210.9A Active CN112969195B (en) 2021-02-23 2021-02-23 Signal quality detection method and related equipment

Country Status (1)

Country Link
CN (1) CN112969195B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630364A (en) * 2022-03-28 2022-06-14 歌尔股份有限公司 Bluetooth communication detection method, device, terminal and medium

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148138A1 (en) * 2012-11-29 2014-05-29 Yuan-Hsiang Chou Method for transmitting physiological detection signals through mobile phone device via bluetooth/wi-fi communicaiton system
CN105208574A (en) * 2014-06-23 2015-12-30 西安Tcl软件开发有限公司 Method and device for detecting performance of wireless module of terminal
CN108173622A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 Signal transmission control method and device
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
CN111372227A (en) * 2020-02-19 2020-07-03 锐迪科微电子(上海)有限公司 Signal detection method, device, equipment and storage medium
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140148138A1 (en) * 2012-11-29 2014-05-29 Yuan-Hsiang Chou Method for transmitting physiological detection signals through mobile phone device via bluetooth/wi-fi communicaiton system
CN105208574A (en) * 2014-06-23 2015-12-30 西安Tcl软件开发有限公司 Method and device for detecting performance of wireless module of terminal
CN108173622A (en) * 2017-12-26 2018-06-15 广东欧珀移动通信有限公司 Signal transmission control method and device
CN111757303A (en) * 2019-03-26 2020-10-09 华为技术有限公司 Control method of Bluetooth transmitting power and terminal equipment
CN110730111A (en) * 2019-10-23 2020-01-24 北京锐安科技有限公司 Network quality monitoring method, device, server and medium
CN111372227A (en) * 2020-02-19 2020-07-03 锐迪科微电子(上海)有限公司 Signal detection method, device, equipment and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114630364A (en) * 2022-03-28 2022-06-14 歌尔股份有限公司 Bluetooth communication detection method, device, terminal and medium

Also Published As

Publication number Publication date
CN112969195B (en) 2023-01-20

Similar Documents

Publication Publication Date Title
CN108702196B (en) Method and device for selecting a set of receiving antennas of a user terminal
WO2021227615A1 (en) Method for improving call quality, and terminal
WO2021018187A1 (en) Screen projection method and device
WO2022033296A1 (en) Bluetooth communication method, wearable device, and system
KR102444897B1 (en) Device and method for establishing communication connection
EP4024948A1 (en) Method and apparatus for switching sim card, and electronic device
WO2021197071A1 (en) Wireless communication system and method
US20240022518A1 (en) Channel Switching Method, Electronic Device and Storage Medium
WO2023025075A1 (en) Outbound data transmission method and system in beidou communication system, and related apparatus
WO2023020028A1 (en) Service processing method and apparatus in terminal device supporting double cards
EP2814290B1 (en) Power efficient sensor accessory management through sensor subsystem
CN112969195B (en) Signal quality detection method and related equipment
WO2022228190A1 (en) Wifi connection method and device
WO2022226707A1 (en) Rescue method and device, storage medium, and chip system
WO2022228234A1 (en) Method for transmitting packet in wireless local area network and electronic device
RU2806449C1 (en) Method and device for channel transmission and data medium
CN111052846A (en) Electronic device performing listen-before-talk operation as part of radio communication and method thereof
WO2023005783A1 (en) Data processing method and electronic device
WO2023165513A1 (en) Communication method, electronic device, and apparatus
CN116669153B (en) Transmission power backoff method, terminal device, and computer-readable storage medium
WO2023151085A1 (en) System information transmission method, communication apparatus, and communication device
CN116708046B (en) Router closing method, system and router
WO2023001044A1 (en) Data processing method and electronic device
WO2021098540A1 (en) Terminal device and wireless communication method
WO2023226662A1 (en) Communication method, communication apparatus and communication system

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