A method and device for processing WIFI aging and disconnection
By real-time detection of Wi-Fi timing and adjustment of the capacitance value of the Wi-Fi module, the problem of Wi-Fi module aging and disconnection in smart terminals is solved, and the stability of data transmission and user experience are improved.
Patent Information
- Application Number
- CN202310471891.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-04-24
- Publication Date
- 2025-09-26
- Estimated Expiration
- 2043-04-24
AI Technical Summary
The WIFI modules in existing smart terminals are prone to disconnection due to aging, causing inconvenience to users and possibly causing system crashes, especially in interference environments.
By real-time detection of Wi-Fi timing, reset signals, and data transmission conditions, the capacitance value of the Wi-Fi module is adjusted, and an eye diagram test is performed to ensure that the capacitance value meets the predetermined requirements for stable data transmission.
It effectively solves the disconnection problem caused by WIFI aging, improves the stability of the WIFI module and the reliability of data transmission, avoids timeout waiting or reset, and improves user experience.
Smart Images

Figure CN116506879B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of smart terminals, and in particular to a WIFI aging and disconnection processing method, device, smart terminal and storage medium. Background Art
[0002] With the development of electronic technology and the continuous improvement of people's living standards, the use of various smart terminals such as smart TVs, smart phones and computers has become more and more popular. Smart terminals have become an indispensable tool in people's lives. A frequently used functional module of smart terminals is the WIFI module, which connects to the local area network through the WIFI module.
[0003] Smart terminals in the existing technology are basically equipped with a WIFI module. Because this module is a relatively core module in the system, the development and improvement of this part is very important. In the actual development process, many WIFI problems are often encountered, such as long-term video playback to see whether the picture is normal, whether there will be freezes and disconnections, or aging tests in an environment with relatively large interference to see whether the system will crash, etc. The basic reason is the WIFI disconnection problem caused by long-term aging.
[0004] Therefore, the existing technology still needs to be improved and developed. Summary of the Invention
[0005] The technical problem to be solved by the present invention is to provide a method, device, smart terminal and storage medium for processing WIFI aging and disconnection in response to the above-mentioned defects of the prior art, aiming to solve the problem that smart terminals in the prior art are prone to disconnection due to WIFI aging, which is inconvenient for users to operate and use.
[0006] The technical solutions adopted by the present invention to solve the problem are as follows:
[0007] A method for processing WIFI aging and disconnection, wherein the method comprises:
[0008] Real-time detection and acquisition of WIFI timing, and determination of whether the WIFI timing meets the preset WIFI timing conditions;
[0009] When the WIFI timing meets the preset WIFI timing condition, the reset signal is detected to determine whether the waveform of the reset signal meets the preset reset condition;
[0010] When the reset signal is detected to meet the preset reset condition, it is determined that the reset signal is normal, and then the data transmission is further detected to see whether it meets the preset transmission condition;
[0011] When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is controlled to be adjusted according to a predetermined rule, and an eye diagram test is performed;
[0012] When the capacitance value of the WIFI module is adjusted to meet the predetermined requirements in the eye diagram test, the capacitance value of the WIFI module is adjusted to the current capacitance value.
[0013] The described WIFI aging disconnection processing method, wherein the steps of real-time detecting and obtaining the WIFI timing and judging whether the WIFI timing meets the preset WIFI timing conditions include:
[0014] Real-time detect and obtain the WIFI timing signal, which is a timing between the power supply vcc and the reset signal reset. One cycle of the timing signal includes the values of the first time T1, the second time T2, and the third time T3;
[0015] The preset WIFI timing conditions include:
[0016] When the power supply vcc is first turned on, control the reset signal reset to be turned on within the interval of 0 <= T1 <= 5ms for the first time T1;
[0017] Then after a high level of the second time T2 greater than 150ms, the reset signal reset has a pull-down waveform, and control the third time T3 of the pull-down waveform to be greater than 200ms;
[0018] When it is detected that the obtained WIFI timing signal meets the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is qualified;
[0019] When it is detected that the obtained WIFI timing signal does not meet the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is unqualified
[0020] The described WIFI aging disconnection processing method, wherein the steps of detecting the reset signal and judging whether the waveform of the reset signal meets the preset reset conditions when the WIFI timing meets the preset WIFI timing conditions include: [[ID=2九十]]
[0021] When the WIFI timing meets the preset WIFI timing conditions, detect the reset signal and judge whether the waveform of the reset signal meets the preset reset conditions;
[0022] Test the reset waveform alone. When the pulse of the pulled-down reset waveform is greater than 200ms, it can meet the reset requirements, and it is determined that the current reset signal meets the preset reset conditions;
[0023] When the pulse of the reset waveform is less than or equal to 200ms, it is determined that the current reset signal does not meet the preset reset condition.
[0024] The method for processing WIFI aging and disconnection, wherein when it is detected that data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and the eye diagram test is performed includes the following steps:
[0025] When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to the predetermined rules, and an eye diagram test is performed;
[0026] The predetermined rule for adjusting the capacitance value of the WIFI module is as follows: controlling the capacitance value adjustment, adjusting it step by step from high to low, and performing an eye diagram test after each adjustment. When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the predetermined requirements, the capacitance value of the WIFI module is no longer adjusted.
[0027] The method for processing WIFI aging and disconnection, wherein when it is detected that data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and the eye diagram test is performed includes the following steps:
[0028] Adjusting the capacitance value: first, adjusting the capacitance value of the WIFI module from a first value to a second value, performing an eye diagram test, and detecting whether the eye diagram test meets the predetermined requirements; when the capacitance value of the WIFI module is adjusted to the second value and the eye diagram test meets the predetermined requirements, adjusting the capacitance value of the WIFI module to the current capacitance value;
[0029] When the eye diagram test fails to meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the second value to the third value; when the capacitance value of the WIFI module is adjusted to the third value and the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value;
[0030] When the capacitance value of the WIFI module is adjusted from the second value to the third value, and the eye diagram test does not meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the third value to the fourth value. When the eye diagram test of the capacitance value of the WIFI module is adjusted to the fourth value and meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value.
[0031] The method for processing WIFI aging and disconnection, wherein the eye diagram test meets predetermined requirements, includes:
[0032] The eye diagram has an eye height greater than 1.0 V, an eye width greater than 8.7 ns, a symmetrical eye shape, and the signals on the left and right sides have the same shape, ensuring phase synchronization.
[0033] The method for processing WIFI aging and disconnection, wherein when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, the step of adjusting the capacitance value of the WIFI module to the current capacitance value includes:
[0034] When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the following predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value;
[0035] Condition 1: Eye height greater than 1.0 V;
[0036] Condition 2: Eye width greater than 8.7 ns;
[0037] Condition 3: The eye shape must be symmetrical. The signal shapes on the left and right sides must be identical to ensure phase synchronization. This can be achieved by adjusting the transmission clock and using a positioning synchronizer.
[0038] Condition 4: The upper and lower deviations of the eye diagram signal are less than the predetermined threshold;
[0039] Condition 5: The left and right skew of the eye diagram signal is controlled within 50% of the symbol interval.
[0040] A WIFI aging and disconnection processing device, wherein the device comprises:
[0041] The WIFI timing detection and judgment module is used to detect and obtain the WIFI timing in real time and determine whether the WIFI timing meets the preset WIFI timing conditions;
[0042] A reset signal detection and judgment module is used to detect the reset signal when the WiFi timing meets the preset WiFi timing conditions, and to determine whether the waveform of the reset signal meets the preset reset conditions;
[0043] The data transmission detection module is used to determine that the reset signal is normal when the reset signal meets the preset reset condition, and then further detect whether the data transmission meets the preset transmission condition;
[0044] The capacitance value adjustment module is used to determine that the data transmission is abnormal when it detects that the data transmission does not meet the preset transmission conditions, and to control the adjustment of the capacitance value of the WIFI module according to the predetermined rules and perform an eye diagram test;
[0045] The eye diagram test module is used to adjust the capacitance value of the WIFI module to the current capacitance value when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test.
[0046] An intelligent terminal includes a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors, including the method for executing any one of the methods described above.
[0047] A non-transitory computer-readable storage medium, when instructions in the storage medium are executed by a processor of an electronic device, enables the electronic device to execute any one of the methods described above.
[0048] Beneficial effects of the present invention: The embodiment of the present invention solves the problem of Wi-Fi disconnection by reducing the capacitance of the capacitor in the Wi-Fi module. Because the capacitor affects the eye diagram, which in turn affects the transmission of USB data, after reducing the capacitance, the eye diagram becomes better, the USB data transmission becomes stable, and there is no timeout or reset problem. Therefore, the problem of easy disconnection of smart terminals due to aging of Wi-Fi is solved, which greatly provides convenience for users. BRIEF DESCRIPTION OF THE DRAWINGS
[0049] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the following briefly introduces the drawings required for use in the embodiments or the description of the prior art. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0050] Figure 1 The present invention provides a flow chart of a method for processing WIFI aging and disconnection.
[0051] Figure 2 This is a schematic diagram of the WIFI timing detection waveform of the WIFI aging and disconnection processing method provided by the embodiment of the present invention
[0052] Figure 3 This is a timing diagram of a method for processing WIFI aging and disconnection provided by an embodiment of the present invention.
[0053] Figure 4 This is a schematic diagram of an eye diagram before capacitance value modification in the WIFI aging and disconnection processing method provided by an embodiment of the present invention.
[0054] Figure 5 This is a schematic diagram of an eye diagram before capacitance value modification in the WIFI aging and disconnection processing method provided by an embodiment of the present invention.
[0055] Figure 6 This is a principle block diagram of a device for processing WIFI aging and disconnection provided by an embodiment of the present invention.
[0056] Figure 7 This is a block diagram of the internal structure of the smart terminal provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0057] In order to make the purpose, technical solutions and advantages of the present invention more clear and distinct, the present invention is further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are only used to explain the present invention and are not intended to limit the present invention.
[0058] It should be noted that if the embodiments of the present invention involve directional indications (such as up, down, left, right, front, back, etc.), the directional indications are only used to explain the relative position relationship, movement status, etc. between the various components under a certain specific posture (as shown in the accompanying drawings). If the specific posture changes, the directional indications will also change accordingly.
[0059] Smart terminals in the existing technology are basically equipped with a Wi-Fi module. Because this module is a relatively core module in the system, the development and improvement of this part is very important. In the actual development process, many Wi-Fi problems are often encountered, such as long-term video playback to check whether the picture is normal, whether there will be lag and disconnection, or burn-in tests in environments with relatively high interference to check whether the system will crash. The root cause is the Wi-Fi disconnection problem caused by long-term aging. After in-depth research, the method of the embodiment of the present invention can provide help for solving a series of Wi-Fi problems.
[0060] In order to solve the problems of the prior art, the present invention provides a method for processing WIFI aging and disconnection.
[0061] Exemplary Methods
[0062] like Figure 1 As shown in , an embodiment of the present invention provides a method for processing WIFI aging and disconnection, which can be applied to smart terminals such as smart phones, smart computers, smart TVs and other smart devices. In an embodiment of the present invention, the method includes the following steps:
[0063] Step S100: Real-time detection and acquisition of WIFI timing, and determination of whether the WIFI timing meets a preset WIFI timing condition;
[0064] In the embodiment of the present invention, when performing WIFI aging and disconnection processing, the WIFI timing is first detected and obtained to determine whether the WIFI timing is normal, that is, whether the obtained WIFI timing meets the preset WIFI timing conditions.
[0065] In an embodiment of the present invention, to detect whether the WIFI timing is normal, the WIFI specification can be referred to. For example, Figure 2 The graph shown is the actual test waveform of the reset pin after power-on, which fully meets the requirements of the specification. Among them, Figure 2 The upper waveform in it is the reset waveform, and the lower waveform is the vcc (power supply) waveform diagram.
[0066] Specifically, as Figure 3 shown, the timing diagram is mainly a timing between vcc (power supply) and reset (WIFI_en). From Figure 3 the shape above, it is mainly manifested as the values of T1, T2, and T3. Thus, the steps of detecting and obtaining the WIFI timing in real time and determining whether the WIFI timing meets the preset WIFI timing conditions include:
[0067] Detecting and obtaining the WIFI timing signal in real time. The WIFI timing signal is a timing between the power supply vcc and the reset signal reset. The timing signal of one cycle includes the values of the first time T1, the second time T2, and the third time T3;
[0068] The preset WIFI timing conditions include:
[0069] When the power supply vcc is first turned on, control the reset signal reset to be turned on within the interval of 0 <= T1 <= 5ms for the first time;
[0070] Then, after the second time T2 is greater than 150ms of high level, there is a pull-down waveform of the reset signal reset, and control the third time T3 of the pull-down waveform to be greater than 200ms. If all these are satisfied, it means that the timing diagram of the obtained WIFI timing signal is qualified; if not, it means that the timing diagram is unqualified.
[0071] In an embodiment of the present invention, when it is detected that the obtained WIFI timing signal meets the above-mentioned preset WIFI timing conditions, it is determined that the WIFI timing indicates that the current WIFI timing signal is qualified;
[0072] When it is detected that the obtained WIFI timing signal does not meet the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is unqualified.
[0073] Step S200: When the WIFI timing meets the preset WIFI timing conditions, detect the reset signal and determine whether the waveform of the reset signal meets the preset reset conditions;
[0074] In an embodiment of the present invention, when the WIFI timing meets the preset WIFI timing condition, a reset signal is detected to determine whether the waveform of the reset signal meets the preset reset condition.
[0075] Specifically, when the WIFI timing meets the preset WIFI timing condition, the reset signal is detected to determine whether the waveform of the reset signal meets the preset reset condition. In the embodiment of the present invention, when the reset signal is detected, a separate reset waveform is tested. When the pulse of the reset waveform is pulled low for more than 200ms, the reset requirement is met, and it is determined that the current reset signal meets the preset reset condition.
[0076] When the pulse of the reset waveform is less than or equal to 200ms, it is determined that the current reset signal does not meet the preset reset conditions. Figure 3 As shown, when the pulse T3 of the reset waveform is less than or equal to 200ms, it is determined that the current reset signal does not meet the preset reset condition.
[0077] Step S300: When the reset signal is detected to meet the preset reset condition, it is determined that the reset signal is normal, and then further detection is performed to determine whether the data transmission meets the preset transmission condition.
[0078] In the embodiment of the present invention, when it is detected that the reset signal meets the preset reset condition, it is determined that the reset signal is normal, and then the data transmission is further detected to see whether it meets the preset transmission condition.
[0079] In the embodiment of the present invention, whether data transmission meets the preset transmission conditions is detected. The data transmission mainly depends on the test condition of the eye diagram. The larger the eye, the more stable the transmission data.
[0080] Specifically, regarding the preset transmission conditions for detecting data transmission, an eye diagram test is performed. When the eye diagram data meets the following conditions 1 to 3, it indicates that the data transmission is normal and stable:
[0081] Condition 1: The eye height should be greater than 1.0 V to ensure sufficient noise and jitter margins and ensure the stability of the transmission system.
[0082] Condition 2: The eye width should be greater than 8.7 ns to ensure that the symbol spacing is large enough and the impact of inter-symbol crosstalk is small.
[0083] Condition three: The eye shape should be symmetrical, and the signal shape on the left and right sides should be the same to ensure phase synchronization.
[0084] When the measured eye diagram does not meet the above conditions during data transmission, it is determined that the data transmission is unqualified.
[0085] Step S400: When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and an eye diagram test is performed;
[0086] In the present invention, when it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and an eye diagram test is performed.
[0087] Specifically, when it is detected that data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and an eye diagram test is performed; wherein the predetermined rule for adjusting the capacitance value of the WIFI module is: controlling the capacitance value adjustment, first adjusting it step by step from high to low, and performing an eye diagram test after each adjustment. When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the predetermined requirements, the capacitance value of the WIFI module is no longer adjusted.
[0088] The capacitance value is adjusted by first adjusting the capacitance value of the WIFI module from a first value, such as 30 pf, to a second value, such as 20 pf, performing an eye diagram test, and detecting whether the eye diagram test meets predetermined requirements; when the capacitance value of the WIFI module is adjusted to the second value, such as 20 pf, and the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value, i.e., the second value, such as 20 pf;
[0089] When the eye diagram test fails to meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the second value (e.g., 20 pf) to a third value, e.g., 10 pf. When the capacitance value of the WIFI module is adjusted to the third value (e.g., 10 pf) and the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value, i.e., 10 pf.
[0090] When the capacitance value of the WIFI module is adjusted from the second value (such as 20 pf) to the third value (such as 10 pf), the eye diagram test does not meet the predetermined requirements, and then the capacitance value of the WIFI module is adjusted from the third value (such as 10 pf) to the fourth value (such as 5 pf). When the capacitance value of the WIFI module is adjusted to the fourth value (such as 5 pf) and the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value.
[0091] Step S500: When the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, the capacitance value of the WIFI module is adjusted to the current capacitance value.
[0092] That is, in the embodiment of the present invention, when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, the capacitance value of the WIFI module is adjusted to the current capacitance value. Wherein, the eye diagram test meeting the predetermined requirements includes:
[0093] The eye diagram has an eye height greater than 1.0 V, an eye width greater than 8.7 ns, a symmetrical eye shape, and the signals on the left and right sides have the same shape, ensuring phase synchronization.
[0094] Furthermore, when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, the step of adjusting the capacitance value of the WIFI module to the current capacitance value includes:
[0095] When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the following predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value;
[0096] Condition 1: Eye height greater than 1.0 V;
[0097] Condition 2: Eye width greater than 8.7 ns;
[0098] Condition 3: The eye shape must be symmetrical. The signal shapes on the left and right sides must be identical to ensure phase synchronization. This can be achieved by adjusting the transmission clock and using a positioning synchronizer.
[0099] Condition 4: The upper and lower deviations of the eye diagram signal are less than the predetermined threshold;
[0100] Condition 5: The left and right skew of the eye diagram signal is controlled within 50% of the symbol interval.
[0101] like Figure 4 and Figure 5 As shown, Figure 4 This is the eye diagram before modifying the capacitance value. Figure 5 The eye diagram after modifying the capacitance value is shown in the figure. As can be seen from the two, the eye diagram has improved after the modification, so the capacitance value of the WIFI module is adjusted to a smaller capacitance. After verification, the transmission problem is normal. That is, the present invention adjusts the capacitance value from 30pf to 20pf, 10pf, and finally to 5pf, and the test is stable.
[0102] The following is a further explanation of a WIFI aging and disconnection processing method of the present invention through specific application examples:
[0103] The current prior art terminals use some motherboards, and after playing videos for a long time with WIFI, the WIFI will be disconnected. At this time, it cannot be restored by turning off and then on the remote control, and it is necessary to turn off the power to restore. To address this problem, the inventors of this application have found through research that first a comparison of software versions is performed, using the early version and the latest version. It is found that after aging, both versions experience disconnection, indicating that the problem cannot be solved by comparing versions and needs to be solved head-on. The inventors of this application verified the problem through the following series of experiments. First, a verification at the software level is performed. When the WIFI aging and disconnection problem occurs, 1. Enter the specified command and find that the VID and PID of the WIFI device can be identified at the bus layer. Among them, VID and PID refer to VendorID (manufacturer ID) and ProductID (product ID), respectively. 2: Verify the problem at the driver level. Enter the following specified command to see if the wlan0 and p2p0 nodes exist. By verifying the driver level command, #ifconfig
[0104] NOTE: p2p0 and wlan0 represent WIFI nodes. If the node is lost and the driver fails, then open the corresponding kernel print and you will see the following statement:
[0105] 2023_02_11_16_10_35::[339.332537@1]- usb 1-3: reset high-speed USBdevice number 3 using xhci-hcd
[0106] 2023_02_11_16_10_35::[339.736597@0]-[atbm_log]:atbm_usb_post_reset:0
[0107] 2023_02_11_16_10_35::[339.736651@0]- [atbm_log]:Reset Usb Err (Reset USB error);
[0108] The above printout (serial port data) suggests a problem with the underlying USB protocol. Generally speaking, the USB protocol is relatively stable, making it unlikely to experience a problem. Therefore, we focused on the Wi-Fi's VCC (power supply) and reset (reset signal), monitoring these two pins with an oscilloscope to see if any noise caused a reset when the problem occurred. Actual measurements confirmed normal signals, with no reset signal being generated. So, why was a reset signal automatically generated during data transmission? We further investigated the cause.
[0109] 3: Verification experiment three, using a USB dongle for comparison and verification, found that after connecting to the USB dongle, the Wi-Fi did not generate a reset signal after long-term aging, while the Wi-Fi on the SDIO board did. The SDIO bus, like the USB bus, has two terminals: one for the host and the other for the device.
[0110] All communications start with the host sending a command. As long as the device can interpret the command, they can communicate with each other. The signal lines involved in SDIO are as follows:
[0111] 1: CLK signal: The clock signal from HOST to DEVICE, one command is transmitted in each clock cycle.
[0112] 2: CMD signal: a bidirectional signal used to transmit commands and responses.
[0113] 3: DAT0-DAT3 signal: four data lines used for transmission.
[0114] 4: VDD signal: power supply signal.
[0115] 5: VSS1, VSS2: power ground signal.
[0116] Therefore, the present invention compares the differences between sdio and dongle and finds that sdio has an additional reset pin. In addition, the data line for USB transmission is handled differently. Since the reset has been ruled out as the cause in Experiment 2, the difference in USB data lines is suspected. It is found that there is a capacitor to ground on the USB data line, while there is no such device on the dongle. Therefore, it is believed that the capacitor may have an impact. The capacitor is removed for verification and it is found that the problem is solved. Then, the impact of the capacitor on USB bus transmission is deeply considered. By searching for information, the USB eye diagram, which represents the transmission capacity of the USB bus, is found. Therefore, the eye diagrams before and after the modification are tested and compared as shown below. Figure 4 and Figure 5 The eye diagram reflects the stability of data transmission. Generally speaking, the larger the eye, the higher the probability of successful data transmission.
[0117] It can be seen from the two that the eye diagram becomes better after the modification, but this capacitor cannot be removed because it has the function of electrostatic protection. Therefore, the solution of the present invention is to adjust the size of the capacitor of the WIFI module and replace it with an adjustable capacitor to adjust the capacitance to a smaller value. For example, the capacitance value is adjusted from 30pf to 20pf, 10pf, and finally determined to be 5pf. The test is stable. In this way, the treatment measure of the present invention solves the problem of WIFI aging and disconnection by gradually reducing the capacitance value of the capacitor on the WIFI module and using a capacitor with lower capacity.
[0118] Among them, the eye diagram is also called the USB eye diagram. The USB eye diagram uses persistence to accumulate and superimpose the bits of the collected serial signal. The shape after superposition looks very similar to the eye, such as Figure 3 and Figure 4 As shown, it is also called an eye diagram. Generally speaking, the larger the eye, the higher the probability of success after the signal passes, and the smaller the eye, the higher the probability of failure. Therefore, the standard of the eye diagram is defined. For a standard eye diagram, it can have a good effect on the communication of the USB bus. For a poor eye diagram, the effect is very poor, similar to the automatic generation of a reset signal in the feedback.
[0119] According to the USB protocol, the host sends a signal to the device and waits for the device's response. If there is no response within the specified time, it is considered a failure or timeout. The USB protocol software specification stipulates that the communication between the host and the device has a certain error correction capability and a certain time limit. If a transmission is affected and retransmitted, it can still reach the destination normally. However, if the transmission is still unsuccessful after multiple transmissions, and the specified retransmission time is reached, a reset signal will be sent to reset it. This is the printing described in the kernel above. Printing here refers to normal serial port data, which can reflect the running status of the code.
[0120] As can be seen from the above, through the above verification experiments of the present invention, because the capacitor affects the eye diagram, and the eye diagram affects the transmission of USB data, after reducing the capacitance, the eye diagram becomes better, the USB data transmission becomes stable, and there is no problem of timeout waiting or reset. The present invention perfectly solves the problem of long-term aging and disconnection.
[0121] Exemplary devices
[0122] like Figure 6 As shown in , an embodiment of the present invention provides a WIFI aging and disconnection processing device, which includes:
[0123] The WIFI timing detection and judgment module 510 is used to detect and obtain the WIFI timing in real time and determine whether the WIFI timing meets the preset WIFI timing conditions;
[0124] The reset signal detection and judgment module 520 is used to detect the reset signal when the WiFi timing meets the preset WiFi timing condition, and determine whether the waveform of the reset signal meets the preset reset condition;
[0125] The data transmission detection module 530 is configured to determine that the reset signal is normal when the reset signal meets the preset reset condition, and then further detect whether the data transmission meets the preset transmission condition;
[0126] The capacitance value adjustment module 540 is used to determine that the data transmission is abnormal when it detects that the data transmission does not meet the preset transmission conditions, and to control the adjustment of the capacitance value of the WIFI module according to a predetermined rule and perform an eye diagram test;
[0127] The eye diagram test module 550 is configured to adjust the capacitance value of the WIFI module to the current capacitance value when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, as described above.
[0128] Based on the above embodiment, the present invention also provides an intelligent terminal, whose principle block diagram can be shown as follows: Figure 7 As shown. The smart terminal includes a processor, a memory, a network interface, and a display screen connected via a system bus. The processor of the smart terminal is used to provide computing and control capabilities. The memory of the smart terminal includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the smart terminal is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a method for processing WIFI aging and disconnection is implemented. The display screen of the smart terminal can be a liquid crystal display or an electronic ink display.
[0129] Those skilled in the art will understand that Figure 7 The principle block diagram shown in the figure is only a block diagram of a partial structure related to the solution of the present invention and does not constitute a limitation on the smart terminal to which the solution of the present invention is applied. The specific smart terminal may include more or fewer components than shown in the figure, or combine certain components, or have a different component arrangement.
[0130] In one embodiment, an intelligent terminal is provided, including a memory and one or more programs. One or more programs are stored in the memory and are configured to be executed by one or more processors. The one or more programs include instructions for performing the following operations:
[0131] Detect and obtain the WIFI timing in real time, and determine whether the WIFI timing meets the preset WIFI timing conditions;
[0132] When the WIFI timing meets the preset WIFI timing conditions, detect the reset signal and determine whether the waveform of the reset signal meets the preset reset conditions;
[0133] When the detected reset signal meets the preset reset conditions, it is determined that the reset signal is normal, and further detect whether the data transmission meets the preset transmission conditions;
[0134] When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and control to adjust the capacitance value of the WIFI module according to a predetermined rule, and perform an eye diagram test;
[0135] When the capacitance value of the WIFI module is adjusted to meet the predetermined requirements in the eye diagram test, adjust the capacitance value of the WIFI module to the current capacitance value, as described above.
[0136] Among them, the steps of detecting and obtaining the WIFI timing in real time and determining whether the WIFI timing meets the preset WIFI timing conditions include:
[0137] Detect and obtain the WIFI timing signal in real time. The WIFI timing signal is a timing between the power supply vcc and the reset signal reset. One cycle of the timing signal includes the values of the first time T1, the second time T2, and the third time T3;
[0138] The preset WIFI timing conditions include:
[0139] After the power supply vcc is first turned on, control the reset signal reset to be turned on within the interval of 0 <= T1 <= 5ms for the first time T1;
[0140] Then, after the second time T2 is greater than 150ms of high level, the reset signal reset has a falling waveform, and control the third time T3 of the falling waveform to be greater than 200ms; 2]
[0141] When the detected and obtained WIFI timing signal meets the above-mentioned preset WIFI timing conditions, it is determined that the WIFI timing indicates that the current WIFI timing signal is qualified;
[0142] When the WIFI timing signal detected does not meet the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is unqualified.
[0143] Wherein, when the WIFI timing meets the preset WIFI timing condition, the step of detecting the reset signal and determining whether the waveform of the reset signal meets the preset reset condition includes:
[0144] When the WIFI timing meets the preset WIFI timing condition, the reset signal is detected to determine whether the waveform of the reset signal meets the preset reset condition;
[0145] Test the reset waveform separately. When the pulse of the reset waveform is greater than 200ms, the reset requirement is met and it is determined that the current reset signal meets the preset reset condition.
[0146] When the pulse of the reset waveform is less than or equal to 200ms, it is determined that the current reset signal does not meet the preset reset condition.
[0147] When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and the step of performing an eye diagram test includes:
[0148] When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to the predetermined rules, and an eye diagram test is performed;
[0149] The predetermined rule for adjusting the capacitance value of the WIFI module is as follows: controlling the capacitance value adjustment, adjusting it step by step from high to low, and performing an eye diagram test after each adjustment. When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the predetermined requirements, the capacitance value of the WIFI module is no longer adjusted.
[0150] The method for processing WIFI aging and disconnection, wherein when it is detected that data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and the eye diagram test is performed includes the following steps:
[0151] Adjusting the capacitance value: first, adjusting the capacitance value of the WIFI module from a first value to a second value, performing an eye diagram test, and detecting whether the eye diagram test meets the predetermined requirements; when the capacitance value of the WIFI module is adjusted to the second value and the eye diagram test meets the predetermined requirements, adjusting the capacitance value of the WIFI module to the current capacitance value;
[0152] When the eye diagram test fails to meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the second value to the third value; when the capacitance value of the WIFI module is adjusted to the third value and the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value;
[0153] When the capacitance value of the WIFI module is adjusted from the second value to the third value, and the eye diagram test does not meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the third value to the fourth value. When the eye diagram test of the capacitance value of the WIFI module is adjusted to the fourth value and meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value.
[0154] Wherein, the eye diagram test meeting predetermined requirements includes:
[0155] The eye diagram has an eye height greater than 1.0 V, an eye width greater than 8.7 ns, a symmetrical eye shape, and the signals on the left and right sides have the same shape, ensuring phase synchronization.
[0156] Wherein, when the capacitance value of the WIFI module is adjusted to the eye diagram test meeting the predetermined requirements, the step of adjusting the capacitance value of the WIFI module to the current capacitance value includes:
[0157] When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the following predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value;
[0158] Condition 1: Eye height greater than 1.0 V;
[0159] Condition 2: Eye width greater than 8.7 ns;
[0160] Condition 3: The eye shape must be symmetrical. The signal shapes on the left and right sides must be identical to ensure phase synchronization. This can be achieved by adjusting the transmission clock and using a positioning synchronizer.
[0161] Condition 4: The upper and lower deviations of the eye diagram signal are less than the predetermined threshold;
[0162] Condition 5: The left and right skew of the eye diagram signal is controlled within 50% of the symbol interval.
[0163] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware using a computer program. The computer program can be stored in a non-volatile computer-readable storage medium. When executed, the computer program can include the processes of the above-described method embodiments. Any reference to memory, storage, database, or other media used in the various embodiments provided herein may include non-volatile and / or volatile memory. Non-volatile memory may include read-only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory may include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in various forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double data rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous link DRAM (SLDRAM), RAMbus direct RAM (RDRAM), direct RAMbus dynamic RAM (DRDRAM), and RAMbus dynamic RAM (RDRAM).
[0164] In summary, the present invention discloses a method, device, smart terminal, and storage medium for processing WIFI aging and disconnection. The method includes: in an embodiment of the present invention, the capacitance of the capacitor of the WIFI module is reduced to solve the problem of WIFI disconnection. Because the capacitor affects the eye diagram, and the eye diagram affects the transmission of USB data, after the capacitance is reduced, the eye diagram becomes better, the USB data transmission becomes stable, and there is no timeout or reset problem. Therefore, the problem of easy disconnection of the smart terminal due to WIFI aging is solved, which greatly provides convenience for users.
[0165] It should be understood that the application of the present invention is not limited to the above examples. For those skilled in the art, improvements or changes can be made based on the above description. All these improvements and changes should fall within the scope of protection of the claims attached to the present invention.
Claims
1. A method for processing WIFI aging and disconnection, characterized in that: The method includes: Detect and obtain the WIFI timing in real time, and determine whether the WIFI timing meets the preset WIFI timing conditions; When the WIFI timing meets the preset WIFI timing conditions, detect the reset signal and determine whether the waveform of the reset signal meets the preset reset conditions; When the detected reset signal meets the preset reset conditions, it is determined that the reset signal is normal, and further detect whether the data transmission meets the preset transmission conditions; When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and control to adjust the capacitance value of the WIFI module according to a predetermined rule, and perform an eye diagram test; When the capacitance value of the WIFI module is adjusted until the eye diagram test meets the predetermined requirements, adjust the capacitance value of the WIFI module to the current capacitance value.
2. The WIFI aging and disconnection processing method according to claim 1, characterized in that: The steps of detecting and obtaining the WIFI timing in real time and determining whether the WIFI timing meets the preset WIFI timing conditions include: Detect and obtain the WIFI timing signal in real time. The WIFI timing signal is a timing between the power supply vcc and the reset signal reset. The timing signal of one cycle includes the values of the first time T1, the second time T2, and the third time T3; The preset WIFI timing conditions include: After the power supply vcc is turned on, control the reset signal reset to be turned on within the interval of 0 <= T1 <= 5ms for the first time T1; After a high level greater than 150ms for the second time T2, the reset signal reset has a falling waveform, and control the third time T3 of the falling waveform to be greater than 200ms; When the detected and obtained WIFI timing signal meets the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is qualified; When the detected and obtained WIFI timing does not meet the above-mentioned preset WIFI timing conditions, it is determined that the current WIFI timing signal is unqualified.
3. The WIFI aging and disconnection processing method according to claim 1, characterized in that: The step of when the WIFI timing meets the preset WIFI timing conditions, detecting the reset signal and determining whether the waveform of the reset signal meets the preset reset conditions includes: When the WIFI timing meets the preset WIFI timing conditions, detect the reset signal and determine whether the waveform of the reset signal meets the preset reset conditions; Test the reset waveform alone. When the falling pulse of the reset waveform is greater than 200ms and meets the reset requirements, it is determined that the current reset signal meets the preset reset conditions; When the falling pulse of the reset waveform is less than or equal to 200ms, it is determined that the current reset signal does not meet the preset reset conditions.
4. The WIFI aging and disconnection processing method according to claim 1, characterized in that: The step of when it is detected that the data transmission does not meet the preset transmission conditions, determining that the data transmission is abnormal, and controlling to adjust the capacitance value of the WIFI module according to a predetermined rule and performing an eye diagram test includes: When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and control to adjust the capacitance value of the WIFI module according to a predetermined rule, and perform an eye diagram test; The predetermined rule for adjusting the capacitance value of the WIFI module is as follows: controlling the capacitance value adjustment, adjusting it step by step from high to low, and performing an eye diagram test after each adjustment; when the capacitance value of the WIFI module is adjusted to the point where the eye diagram test meets predetermined requirements, the capacitance value of the WIFI module is no longer adjusted.
5. The WIFI aging and disconnection processing method according to claim 1, characterized in that: When it is detected that the data transmission does not meet the preset transmission conditions, it is determined that the data transmission is abnormal, and the capacitance value of the WIFI module is adjusted according to a predetermined rule, and the step of performing an eye diagram test includes: Adjusting the capacitance value: first, adjusting the capacitance value of the WIFI module from a first value to a second value, performing an eye diagram test, and detecting whether the eye diagram test meets the predetermined requirements; when the capacitance value of the WIFI module is adjusted to the second value, if the eye diagram test meets the predetermined requirements, adjusting the capacitance value of the WIFI module to the current capacitance value; When the eye diagram test does not meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the second value to the third value; when the capacitance value of the WIFI module is adjusted to the third value, if the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value; When the capacitance value of the WIFI module is adjusted from the second value to the third value, and the eye diagram test does not meet the predetermined requirements, the capacitance value of the WIFI module is adjusted from the third value to the fourth value. After the capacitance value of the WIFI module is adjusted to the fourth value, if the eye diagram test meets the predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value.
6. The WIFI aging and disconnection processing method according to claim 1, characterized in that: The eye diagram test meets the predetermined requirements including: The eye height of the eye diagram is greater than 1.0 V, the eye width is greater than 8.7 ns, the eye shape is symmetrical, the signals on the left and right sides have the same shape, and the phases are synchronized.
7. The WIFI aging and disconnection processing method according to claim 1, characterized in that: When the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test, the step of adjusting the capacitance value of the WIFI module to the current capacitance value includes: When the capacitance value of the WIFI module is adjusted to the eye diagram test to meet the following predetermined requirements, the capacitance value of the WIFI module is adjusted to the current capacitance value; Condition 1: Eye height greater than 1.0 V; Condition 2: Eye width greater than 8.7 ns; Condition 3: The eye shape must be symmetrical. The signal shapes on the left and right sides must be identical to ensure phase synchronization. This can be achieved by adjusting the transmission clock and using a positioning synchronizer. Condition 4: The upper and lower deviations of the eye diagram signal are less than the predetermined threshold; Condition 5: The left and right skew of the eye diagram signal is controlled within 50% of the symbol interval.
8. A WIFI aging and disconnection processing device, characterized in that: The device comprises: The WIFI timing detection and judgment module is used to detect and obtain the WIFI timing in real time and determine whether the WIFI timing meets the preset WIFI timing conditions; A reset signal detection and judgment module is used to detect the reset signal when the WiFi timing meets the preset WiFi timing conditions, and to determine whether the waveform of the reset signal meets the preset reset conditions; The data transmission detection module is used to determine that the reset signal is normal when the reset signal meets the preset reset condition, and then further detect whether the data transmission meets the preset transmission condition; The capacitance value adjustment module is used to determine that the data transmission is abnormal when it detects that the data transmission does not meet the preset transmission conditions, and to control the adjustment of the capacitance value of the WIFI module according to the predetermined rules and perform an eye diagram test; The eye diagram test module is used to adjust the capacitance value of the WIFI module to the current capacitance value when the capacitance value of the WIFI module is adjusted to meet the predetermined requirements of the eye diagram test.
9. An intelligent terminal, characterized in that: The system comprises a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by one or more processors to perform the method according to any one of claims 1 to 7.
10. A non-transitory computer-readable storage medium, characterized in that When the instructions in the storage medium are executed by a processor of an electronic device, the electronic device is enabled to execute the method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Closed loop analysis method and system for USB high speed signal
CN107832174A
WIFI throughput testing method and device
CN109743749A