A charging box testing method, device, terminal and storage medium

By obtaining the first return value of the TWS Bluetooth headset charging box shrapnel and the target headset, determining the contact accuracy and conducting testing, the problem of inaccurate charging box test results in the prior art is solved, and more accurate test results are achieved.

CN112964945BActive Publication Date: 2025-03-21SHENZHEN HORN AUDIO
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202110137546.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-02-01
Publication Date
2025-03-21
Estimated Expiration
2041-02-01

AI Technical Summary

Technical Problem

In the prior art, the test results of the TWS Bluetooth headset charging box are not accurate enough, mainly due to the inaccurate contour contact between the shrapnel and the target headset.

Method used

By obtaining the first return value feedback after the shrapnel of the charging box to be tested contacts with the target headset, it is determined whether the shrapnel is in accurate contact with the target headset. If accurate, the charging box is tested to obtain the accurate test results.

Benefits of technology

Ensure that the test results of the charging box are obtained when the shrapnel is in the form of a contour and target headset, thereby avoiding incorrect test results due to inaccurate contact.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112964945B_ABST
    Figure CN112964945B_ABST
Patent Text Reader

Abstract

The present application is applicable to the computer field, and provides a charging box testing method, device, terminal and storage medium. The charging box testing method includes: obtaining a first return value fed back after the spring of the charging box to be tested contacts the target earphone; determining whether the spring contacts the target earphone accurately according to the first return value; if the spring contacts the target earphone accurately, testing the charging box to be tested to obtain the test result of the charging box to be tested. The method provided by the embodiment of the present application can improve the accuracy of the charging box test result.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of computers, and in particular to a testing method, device, terminal and storage medium for a charging box. Background Art

[0002] True Wireless Stereo (TWS) Bluetooth headsets abandon the wire connection method, so that users will not be tied down by wires when using the headset. The left and right earphones can work independently, which greatly improves convenience. TWS Bluetooth headsets generally have a charging box that is matched with the headset to store the headset and charge the headset at the same time.

[0003] However, the current test results for TWS Bluetooth headset charging boxes are not accurate enough. Summary of the invention

[0004] The embodiments of the present application provide a charging box testing method, device, terminal and storage medium, which can improve the accuracy of the charging box test results.

[0005] A first aspect of an embodiment of the present application provides a method for testing a charging box, including:

[0006] Obtaining a first return value fed back after the spring of the charging box to be tested contacts the target earphone in a contour-like manner;

[0007] Determining whether the spring sheet is in accurate contact with the target earphone according to the first return value;

[0008] If the shrapnel is in accurate contact with the target earphone, the charging box to be tested is tested to obtain a test result of the charging box to be tested.

[0009] A second aspect of an embodiment of the present application provides a testing device for a charging box, comprising:

[0010] An acquisition unit, used to acquire a first return value fed back after the spring piece of the charging box to be tested contacts the target earphone in a contour-like manner;

[0011] A determination unit, configured to determine whether the spring piece is in accurate contact with the target earphone according to the first return value;

[0012] The testing unit is used to test the charging box to be tested if the spring piece is in accurate contact with the target earphone, so as to obtain the test result of the charging box to be tested.

[0013] A third aspect of an embodiment of the present application provides a terminal, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.

[0014] A fourth aspect of an embodiment of the present application provides a computer-readable storage medium, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.

[0015] A fifth aspect of an embodiment of the present application provides a computer program product, which, when executed on a terminal, enables the terminal to implement the steps of the method.

[0016] In the implementation mode of the present application, a first return value fed back after the shrapnel of the charging box to be tested is obtained after the shrapnel is in contour contact with the target earphone, and whether the shrapnel is in contour accurate contact with the target earphone is determined according to the first return value; if the shrapnel is in contour accurate contact with the target earphone, the charging box to be tested is tested to obtain a test result of the charging box to be tested, so that the charging result of the charging box to be tested is obtained under the condition that the shrapnel is in contour accurate contact with the target earphone, thereby avoiding erroneous test results obtained in the case of inaccurate contact. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0018] Figure 1 It is a schematic diagram of an implementation flow of a charging box testing method provided in an embodiment of the present application;

[0019] Figure 2 This is a schematic diagram of a first specific implementation flow of step S103 provided in an embodiment of the present application;

[0020] Figure 3 It is a schematic diagram of a second specific implementation flow of step S103 provided in an embodiment of the present application;

[0021] Figure 4 It is a schematic diagram of a third specific implementation flow of step S103 provided in an embodiment of the present application;

[0022] Figure 5 It is a fourth specific implementation flow diagram of step S103 provided in an embodiment of the present application;

[0023] Figure 6 It is a schematic diagram of the structure of the terminal and the charging box to be tested provided in the embodiment of the present application;

[0024] Figure 7 It is a structural schematic diagram of a testing device for a charging box provided in an embodiment of the present application;

[0025] Figure 8 It is a schematic diagram of the structure of the terminal provided in the embodiment of the present application. DETAILED DESCRIPTION

[0026] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without making creative work are within the scope of protection of the present application.

[0027] True Wireless Stereo (TWS) Bluetooth headsets abandon the wire connection method, so that users will not be tied down by wires when using the headset. The left and right earphones can work independently, which greatly improves convenience. TWS Bluetooth headsets generally have a charging box that is matched with the headset to store the headset and charge the headset at the same time.

[0028] At present, the charging box industry mainly uses large tooling and expensive acquisition and control systems for testing. The test terminal is large in size and needs to be pressed manually for automatic testing. It also requires expensive instrument acquisition and control, and the test results are not accurate enough.

[0029] In order to illustrate the technical solution of the present application, a specific embodiment is provided below for illustration.

[0030] Figure 1 A schematic diagram of the implementation flow of a charging box testing method provided in an embodiment of the present application is shown. The method can be applied to a terminal and is suitable for situations where the accuracy of the charging box test results needs to be improved.

[0031] Among them, the above-mentioned terminal can be a computer, a smart phone or other terminal.

[0032] Specifically, the above-mentioned charging box testing method may include the following steps S101 to S103.

[0033] Step S101, obtaining a first return value fed back after the spring of the charging box to be tested contacts the target earphone in a contour-like manner.

[0034] The charging box to be tested refers to the charging box that needs to be tested.

[0035] In an embodiment of the present application, a shrapnel is provided in the charging box to be tested, and the shrapnel in the charging box is used to contact with the contacts on the earphone and charge the earphone after contact, or interact with the earphone after contact to transmit data or instructions.

[0036] However, the study found that depending on the different designs of each charging box, the positions of the various shrapnel in the charging box may be different. If mismatched earphones are used to test the charging box under test, the test results will be inaccurate.

[0037] Therefore, in some embodiments of the present application, the terminal may control the target earphone to contact the spring of the charging box to be tested.

[0038] The earphone profiling refers to an earphone model for testing designed according to the structure of the earphone, and the earphone profiling is connected to the terminal so that the terminal can obtain information output by the charging box to be tested through the shrapnel through the earphone profiling. The target earphone profiling refers to an earphone profiling that matches the charging box to be tested.

[0039] In an embodiment of the present application, when the spring of the charging box to be tested contacts the target earphone, the charging box to be tested will feedback a first return value through the spring, and the first return value is feedback data calculated by the charging box to be tested according to the algorithm stored in itself.

[0040] After the test starts, the terminal may enter the search mode in advance. In the search mode, the terminal may obtain the first return value sent by the charging box to be tested through the shrapnel at a preset time interval.

[0041] It should be noted that in some embodiments of the present application, a preset time period can be set. If the terminal does not obtain the first return value within the preset time period, it means that there may be certain problems with the design of the charging box to be tested. For example, there is a large error between the height of the earphone accommodating slot of the charging box to be tested and the standard height of this type of charging box, or the shrapnel of the charging box to be tested itself cannot work normally. At this time, it can be determined that the test result of the charging box to be tested is that the charging box to be tested is defective.

[0042] Step S102: determining whether the spring piece is in accurate contact with the target earphone according to the first return value.

[0043] In the implementation manner of the present application, after obtaining the first return value fed back by the earphone to be tested through the spring, the terminal may analyze the first return value and determine whether the spring is in accurate contact with the target earphone according to the analysis result.

[0044] Specifically, in some embodiments of the present application, the above-mentioned determining whether the spring piece is in accurate contact with the target earphone according to the first return value may include: decrypting the first return value according to a preset decryption algorithm to obtain feedback information corresponding to the first return value; comparing the feedback information with preset standard feedback information, if the feedback information is the same as the standard feedback information, determining that the spring piece is in accurate contact with the target earphone; if the feedback information is different from the standard feedback information, determining that the spring piece is not in accurate contact with the target earphone.

[0045] Among them, the above-mentioned decryption algorithm is a decryption algorithm that matches the standard encryption algorithm of the charging box to be tested. In some embodiments of the present application, the charging box to be tested will be encrypted according to a pre-stored encryption algorithm to obtain a first return value. After obtaining the first return value fed back by the charging box to be tested, the above-mentioned terminal can decrypt according to a preset decryption algorithm to obtain feedback information. It can be understood that when the hardware and software of the charging box to be tested itself can work normally, and the internal encryption algorithm is the same as the standard encryption algorithm, the feedback information obtained by the above-mentioned terminal according to the first return value parsing should be the same as the standard feedback information. At this time, it can be determined that the shrapnel is in accurate contact with the target earphone. In the case where the hardware and software of the charging box to be tested itself cannot work properly, or the internal encryption algorithm is different from the standard encryption algorithm, the feedback information obtained by the above-mentioned terminal according to the first return value parsing should be different from the standard feedback information. At this time, it can be determined that the shrapnel is not in accurate contact with the target earphone.

[0046] Step S103, if the spring piece is in accurate contact with the target earphone, the charging box to be tested is tested to obtain a test result of the charging box to be tested.

[0047] In an embodiment of the present application, if the shrapnel is in accurate contact with the target earphone profile, it means that the charging box to be tested can interact normally with the target earphone profile that matches it. At this time, the shrapnel, charging interface and other test items of the charging box to be tested can be further tested to obtain the test result of the charging box to be tested.

[0048] In some embodiments of the present application, if the shrapnel cannot accurately contact the target earphone profile, it means that the charging box to be tested cannot interact normally with the target earphone profile that matches it. The reason may be that the positions of the shrapnel of the charging box to be tested are wrong, or there is a problem in the process of calculating or feedback of the first return value by the charging box to be tested. Therefore, it can be determined that the test result of the charging box to be tested is that the charging box to be tested is defective.

[0049] In the implementation mode of the present application, a first return value fed back after the shrapnel of the charging box to be tested is obtained after the shrapnel is in contour contact with the target earphone, and whether the shrapnel is in contour accurate contact with the target earphone is determined according to the first return value; if the shrapnel is in contour accurate contact with the target earphone, the charging box to be tested is tested to obtain a test result of the charging box to be tested, so that the charging result of the charging box to be tested is obtained under the condition that the shrapnel is in contour accurate contact with the target earphone, thereby avoiding erroneous test results obtained in the case of inaccurate contact.

[0050] For example, when the positions of the shrapnel in the charging box to be tested are different, that is, the order of the shrapnel is different from the order in the standard case, although the target earphone can normally contact each shrapnel in the charging box to be tested, the test result obtained based on the shrapnel in the wrong position is inaccurate. The solution provided in the present application can determine that the shrapnel is not in accurate contact with the target earphone based on the first return value in this case. At the same time, based on the first return value, the specific cause of the problem with the charging box to be tested can also be accurately determined, and the test result obtained is more accurate.

[0051] In an embodiment of the present application, after determining that the spring piece is in accurate contact with the target earphone, the test content of the charging box to be tested can be selected according to actual conditions.

[0052] Specifically, in some embodiments of the present application, the spring of the charging box to be tested includes a power spring. Figure 2 As shown, the above-mentioned testing of the charging box to be tested and obtaining the test result of the charging box to be tested may include the following steps S201 to S202.

[0053] Step S201, adjusting the load of the target earphone in contact with the power spring, and obtaining the output voltage of the power spring after each load adjustment.

[0054] The load is used to simulate the resistance of the earphone connected to the power spring.

[0055] In some embodiments of the present application, the load can be adjusted by a load control module connected to the target earphone profile. The terminal adjusts the load of the target earphone profile in contact with the power spring to simulate the situation after different earphones are inserted into the charging box to be tested.

[0056] Specifically, when different earphones are inserted into the charging box to be tested, the power spring of the charging box to be tested will have different output voltages. Therefore, in some embodiments of the present application, the output voltage of the power spring can be obtained after each load adjustment to determine whether the charging box to be tested works according to the preset conditions when different earphones are inserted.

[0057] Step S202, determining the test result of the charging box to be tested according to the output voltage and the standard output voltage corresponding to the load.

[0058] Among them, the above-mentioned adjustment of the load of the target earphone profiling in contact with the power spring sheet may include: setting the load of the target earphone profiling in contact with the power spring sheet to the load corresponding to the case where the earphone is not inserted into the charging box to be tested; or, setting the load of the target earphone profiling in contact with the power spring sheet to the load corresponding to the case where the charging box to be tested is inserted into a normal earphone; or, setting the load of the target earphone profiling in contact with the power spring sheet to the load corresponding to the case where the charging box to be tested is inserted into a damaged earphone.

[0059] Specifically, when the load is the load corresponding to the charging box to be tested without earphones inserted, that is, when the charging box to be tested is no-load, the output voltage of the power spring of the test charging box should be within the range of the standard output voltage (that is, the no-load voltage) corresponding to the no-load state.

[0060] For example, in some embodiments of the present application, the no-load voltage may range from 4.7 V to 5.2 V. In practical applications, the specific value of the no-load voltage range may be adjusted according to the charging box to be tested.

[0061] When the load is the load corresponding to the normal earphones inserted into the charging box to be tested, that is, when the normal earphones that are not damaged are inserted into the charging box to be tested, the output voltage of the power spring of the test charging box should be within the range of the standard output voltage (that is, the load voltage) corresponding to the normal earphones inserted.

[0062] For example, in some embodiments of the present application, the load corresponding to the above-mentioned charging box to be tested inserted into a normal headset may be 100 ohms, and the above-mentioned load voltage range may be 4.5 V to 5 V. In practical applications, the specific values ​​of the load corresponding to the above-mentioned charging box to be tested inserted into a normal headset and the load voltage range may be adjusted according to the charging box to be tested.

[0063] When the load is the load corresponding to the damaged earphone inserted into the charging box to be tested, that is, when the damaged earphone is inserted into the charging box to be tested, the charging box to be tested should trigger the overcurrent protection mechanism. In other words, when the damaged earphone is inserted into the charging box to be tested, the short-circuited earphone can trigger the overcurrent protection mechanism of the charging box to be tested. After the overcurrent protection mechanism is triggered, the output voltage of the power shrapnel of the test charging box should be within the range of the standard output voltage corresponding to the overcurrent protection state.

[0064] For example, in some embodiments of the present application, the load corresponding to the damaged earphone inserted into the above-mentioned charging box to be tested may be 30 ohms, and the range of the corresponding standard output voltage in the above-mentioned overcurrent protection state may be 0V to 1V. In practical applications, the specific values ​​of the load corresponding to the damaged earphone inserted into the above-mentioned charging box to be tested and the range of the load voltage and the range of the corresponding standard output voltage in the overcurrent protection state can be adjusted according to the charging box to be tested.

[0065] It should be noted that in order to avoid errors in the test results, the above-mentioned terminal can perform multiple tests under multiple loads to obtain the test results of the charging box to be tested.

[0066] In some embodiments of the present application, if the output voltage of the power shrapnel is within the range of the standard output voltage corresponding to the load, it can be determined that the test result of the charging box to be tested is that the power shrapnel of the charging box to be tested can work normally, and the charging box to be tested is a qualified charging box. If the output voltage of the power shrapnel is outside the range of the standard output voltage corresponding to the load, it can be determined that the test result of the charging box to be tested is that the power shrapnel of the charging box to be tested cannot work normally, and the charging box to be tested is an unqualified charging box. Moreover, according to the load used when the output voltage of the power shrapnel is outside the range of the standard output voltage corresponding to the load, it can be determined under what circumstances the charging box to be tested cannot work normally, that is, whether the charging box to be tested cannot work normally under no-load conditions, cannot work normally under load conditions, or whether the overcurrent protection mechanism of the charging box to be tested cannot work normally.

[0067] It should be noted that since there is a group of shrapnel in each of the two earphone accommodating grooves in the charging box to be tested, in the implementation mode of the present application, it is necessary to test the power shrapnel in the two earphone accommodating grooves separately. After completing the test of the power shrapnel in the two earphone accommodating grooves, the test result of the charging box to be tested is obtained.

[0068] In the implementation mode of the present application, by adjusting the load of the target earphone in contact with the power shrapnel, and obtaining the output voltage of the power shrapnel after each load adjustment, and determining the test result of the charging box to be tested according to the output voltage and the standard output voltage corresponding to the load, the performance of the power shrapnel can be tested when the shrapnel is in accurate contact with the target earphone, so the test result obtained is more accurate. In addition, based on different loads, the output voltage of the power shrapnel of the charging box to be tested in different states can be tested to determine whether the charging box to be tested can work normally in different states. The obtained test results are more targeted and can facilitate testers to track problems.

[0069] In some other embodiments of the present application, the spring of the charging box to be tested includes a data spring. Figure 3As shown, the above-mentioned testing of the charging box to be tested and obtaining the test result of the charging box to be tested may include the following steps S301 to S303.

[0070] Step S301, sending a query instruction to the data shrapnel.

[0071] Among them, the data shrapnel is a shrapnel different from the power shrapnel. Similarly, there is a data shrapnel in each of the two earphone accommodating slots in the charging box to be tested.

[0072] In some embodiments of the present application, the terminal may send a query command to the data shrapnel on either side. The query command is a serial port query command, which is used to instruct the charging box to be tested to feedback a second return value. The second return value is a return value calculated by a preset algorithm based on the first attribute information stored in the internal storage module of the charging box to be tested; or, it is a return value corresponding to the first attribute information obtained by querying the first attribute information stored in the internal storage module of the charging box to be tested.

[0073] Among them, the first attribute information may include the communication version of the charging box to be tested, information of the negative temperature coefficient (NTC) thermistor, power, check code, product serial number (Serial Number, SN) and other data.

[0074] Step S302, obtaining a second return value corresponding to the first attribute information of the charging box to be tested, which is generated by the charging box to be tested according to the query instruction, and obtaining the second attribute information pointed to by the second return value.

[0075] In some embodiments of the present application, the above-mentioned terminal can use the data spring to obtain the second return value corresponding to the first attribute information of the charging box to be tested generated by the charging box to be tested according to the query instruction, and then obtain the second attribute information pointed to by the second return value according to the second return value.

[0076] The second attribute information may be the second attribute information pointed to by the second return value queried by the terminal through table lookup, database query, etc.; or the corresponding second attribute information may be inferred from the second return value by the terminal according to a preset algorithm.

[0077] Step S303: compare the second attribute information with the attribute information of the standard charging box to obtain the test result of the charging box to be tested.

[0078] In some embodiments of the present application, by comparing the second attribute information with the attribute information of the standard charging box, if the second attribute information is the same as the attribute information of the standard charging box, it means that the data spring of the charging box to be tested can work normally. Therefore, the test result of the charging box to be tested can be determined as the charging box to be tested can work normally.

[0079] If the second attribute information is different from the attribute information of the standard charging box, it means that the data spring of the charging box to be tested cannot work normally, or there is a problem in the process of the charging box to be tested obtaining or feeding back the second return value. Therefore, the test result of the charging box to be tested can be determined as the charging box to be tested cannot work normally.

[0080] In an implementation manner of the present application, a query instruction is sent to the data shrapnel, a second return value corresponding to the first attribute information of the charging box to be tested and generated by the charging box to be tested according to the query instruction is obtained, and the second attribute information pointed to by the second return value is obtained, and then the second attribute information is compared with the attribute information of the standard charging box to be tested to obtain the test result of the charging box to be tested. The performance of the data shrapnel can be tested when the shrapnel is in accurate contact with the target earphone, so the test result obtained is more accurate.

[0081] In other embodiments of the present application, Figure 4 As shown, the above-mentioned testing of the charging box to be tested and obtaining the test result of the charging box to be tested may include the following steps S401 to S402.

[0082] Step S401, when the charging box to be tested is within a preset power range, a first charging voltage is input to the charging interface of the charging box to be tested.

[0083] Among them, the above-mentioned first charging voltage is equal to the standard charging voltage, and the standard charging voltage refers to the voltage input into the charging box to be tested when the charging box to be tested is charged through an external component under normal circumstances.

[0084] The above-mentioned power range refers to the interval of the power of the charging box to be tested during the test. In some embodiments of the present application, the above-mentioned power range can be 50% to 85% of the total power of the charging box to be tested. This power range is set in order to better ensure battery safety in the case of long-distance transportation.

[0085] In some embodiments of the present application, the terminal may select a corresponding interface to connect to the charging interface of the charging box to be tested according to the type of the charging interface, and input a first charging voltage to the charging box to be tested to charge the charging box to be tested.

[0086] For example, in some embodiments of the present application, if the charging interface of the charging box to be tested is a USB-C interface, the above-mentioned terminal can input a first charging voltage to the charging interface of the charging box to be tested through a USB-C charging cable, and the above-mentioned first charging voltage can be 5V.

[0087] Step S402, obtaining the charging current of the charging box to be tested, and determining the test result of the charging box to be tested according to the charging current.

[0088] In some embodiments of the present application, when the charging box to be tested is within the preset power range, since the first charging voltage is equal to the standard charging voltage, the charging box to be tested should be in a normal charging state, and the charging current of the charging box to be tested should be the same as the preset standard charging current. If the charging current of the charging box to be tested is the same as the preset standard charging current, it means that the charging box to be tested can work normally under normal charging conditions, so it can be determined that the test result of the charging box to be tested is that the charging interface of the charging box to be tested is normal and the charging box to be tested can work normally.

[0089] If the charging current of the charging box to be tested is different from the preset standard charging current, it means that the charging box to be tested cannot work normally under normal charging conditions. Therefore, it can be determined that the test result of the charging box to be tested is that the charging interface of the charging box to be tested cannot work normally.

[0090] In the implementation manner of the present application, when the charging box to be tested is within a preset power range, a first charging voltage is input to the charging interface of the charging box to be tested, and the charging current of the charging box to be tested is obtained, and the test result of the charging box to be tested is determined according to the charging current. When the spring fragment is in accurate contact with the target earphone in contour, the performance of the charging interface under normal charging conditions can be tested, and the test result obtained is more accurate.

[0091] In other embodiments of the present application, Figure 5 As shown, the above-mentioned testing of the charging box to be tested and obtaining the test result of the charging box to be tested may include the following steps S501 to S502.

[0092] Step S501, when the charging box to be tested is within a preset power range, a second charging voltage is input to the charging interface of the charging box to be tested.

[0093] Similarly, the terminal can select a corresponding interface to connect to the charging interface of the charging box to be tested according to the type of the charging interface, and input a second charging voltage to the charging box to be tested to charge the charging box to be tested.

[0094] The second charging voltage is greater than the standard charging voltage. The terminal inputs the second charging voltage to the charging interface of the charging box to be tested, which can simulate the situation of using a damaged charging head or charging cable to charge the charging box to be tested.

[0095] Step S502, obtaining a third charging voltage output by the charging box to be tested, and determining a test result of the charging box to be tested based on the third charging voltage.

[0096] Since the second charging voltage is greater than the standard charging voltage, the charging box to be tested will trigger the overvoltage protection mechanism. Therefore, in some embodiments of the present application, the terminal can obtain the third charging voltage output by the power spring of the charging box to be tested, and detect whether the third charging voltage is within the corresponding charging voltage range under the overvoltage protection condition to determine the test result of the charging box to be tested.

[0097] Taking the charging interface of the charging box to be tested as a USB-C interface as an example, the second charging voltage can be a 7V voltage. At this time, the third charging voltage output by the power spring of the charging box to be tested can be obtained, and it is determined whether the third charging voltage is within 0V to 1V.

[0098] If the third charging voltage is within the corresponding charging voltage range under overvoltage protection, it means that the charging box to be tested has triggered the overvoltage protection mechanism, disconnecting the voltage output of the power spring for charging the earphones, thereby protecting itself and the earphones. Therefore, the test result of the charging box to be tested can be determined as the overvoltage protection mechanism of the charging box to be tested can work normally.

[0099] If the third charging voltage is outside the corresponding charging voltage range under the overvoltage protection condition, it means that the charging box to be tested has not triggered the overvoltage protection mechanism, which may cause safety hazards in actual use. Therefore, the test result of the charging box to be tested can be determined as the overvoltage protection mechanism of the charging box to be tested cannot work normally, and the charging box to be tested is unqualified.

[0100] In the implementation mode of the present application, by inputting a second charging voltage to the charging interface of the charging box to be tested when the charging box to be tested is within a preset power range, and obtaining a third charging voltage output by the charging box to be tested, and determining the test result of the charging box to be tested based on the third charging voltage, the overvoltage protection mechanism of the charging interface under overvoltage charging conditions can be tested when the spring fragment is in accurate contact with the target earphone in shape, and the test result obtained is more accurate.

[0101] It should be noted that in order to make the test results more comprehensive and improve the accuracy of the test results, the terminal can perform the above steps on the charging box to be tested in sequence. Figures 2 to 5The test items described. This application does not limit the execution order of the test items, and the execution order can be adjusted by the tester according to the actual situation.

[0102] Figure 6 The schematic diagram of the structure of a terminal and a charging box to be tested provided by the present application is shown. The terminal includes a switching control module, a data communication module, a voltage and current acquisition module, a programmable power supply module, a shrapnel interface module and a target earphone profile. Among them, the shrapnel interface module can be connected to the switching control module, the data communication module, the voltage and current acquisition module and the programmable power supply through a bus. The switching control module, the data communication module, the voltage and current acquisition module and the programmable power supply can be connected to the terminal through a serial port, and the programmable power supply is connected to the charging interface at the bottom of the charging box to be tested through a charging cable (such as a USB-C cable). The left and right target earphone profiles are connected to the shrapnel interface module. And the left and right target earphone profiles are respectively in contact with the shrapnel in the earphone accommodating slot of the charging box to be tested. Among them, the shrapnel includes a data shrapnel and a power shrapnel.

[0103] The above terminal can sequentially perform the above Figures 2 to 5 The various test items described. Specifically, the power shrapnel of the charging box to be tested can be tested through the voltage and current acquisition module, and the output voltage of the power shrapnel output can be obtained by the target earphone profiling shrapnel interface module. The data shrapnel of the charging box to be tested can also be tested through the data communication module, and the second return value fed back by the data shrapnel can be obtained by the target earphone profiling shrapnel interface module. Alternatively, the charging interface of the charging box to be tested can be tested by a programmable power supply.

[0104] Based on the above terminals, it can be seen that the test terminal provided in this application does not require bulky tooling and fixtures, nor does it require expensive acquisition and control systems. It can automatically test the charging box to be tested, which can effectively reduce the cost of the enterprise.

[0105] In practical applications, since the above-mentioned terminal often needs to test different types of charging boxes to be tested, and the target earphone profiles corresponding to each charging box are often different. Therefore, in some embodiments of the present application, the above-mentioned terminal can be connected to multiple preset earphone profiles, and before testing the charging box to be tested, the target earphone profile that matches the charging box to be tested is screened out from the multiple preset earphone profiles.

[0106] Specifically, the terminal may select a target earphone profile that matches the charging box to be tested from a plurality of preset earphone profiles based on the earphone profile information of the earphone profile slot of the charging box to be tested and / or the shrapnel position information of the shrapnel of the charging box to be tested.

[0107] The above-mentioned receiving slot information may include information such as the height, width, shape, etc. of the earphone receiving slot, and the above-mentioned spring piece position information may include the position of the spring piece in the earphone receiving slot and the relative positions between the spring pieces.

[0108] Specifically, in some embodiments of the present application, the slot information of the earphone slot of the charging box to be tested and the spring clip position information of the spring clip of the charging box to be tested can be obtained by image recognition. The slot information and spring clip position information corresponding to the charging box to be tested can also be obtained according to the shape or model of the charging box to be tested.

[0109] According to the accommodating slot information of the earphone accommodating slot of the charging box to be tested and / or the shrapnel position information of the shrapnel of the charging box to be tested, it is possible to detect whether the shape of each preset earphone profile among multiple preset earphone profiles matches the earphone accommodating slot, and whether each contact point of each preset earphone profile matches the shrapnel position of each shrapnel, thereby filtering out the target earphone profile that matches the charging box to be tested from the multiple preset earphone profiles.

[0110] In an implementation manner of the present application, by selecting a target earphone profile that matches the charging box to be tested from multiple preset earphone profiles, when testing multiple charging boxes to be tested, a corresponding target earphone profile can be matched for the test of each charging box to be tested, thereby ensuring that the test results of each charging box to be tested are accurate test results.

[0111] In some other embodiments of the present application, the terminal may also control the preset earphone profiling to contact the spring sheet of the charging box, obtain a third return value fed back by the charging box after the spring sheet contacts the preset earphone profiling, and determine whether the spring sheet is in accurate contact with the preset earphone profiling according to the third return value; if the spring sheet is in accurate contact with the preset earphone profiling, the preset earphone profiling is determined as the target earphone profiling; if the spring sheet is not in accurate contact with the preset earphone profiling, the next preset earphone profiling is controlled to contact the spring sheet of the charging box, obtain a fourth return value fed back by the charging box after the spring sheet contacts the next preset earphone profiling, and determine whether the spring sheet is in accurate contact with the next preset earphone profiling according to the fourth return value, until a target earphone profiling is determined from multiple preset earphone profilings, or multiple preset earphone profilings are not in accurate contact with the spring sheet.

[0112] That is to say, in some other embodiments of the present application, the terminal can control multiple preset earphone profiles to contact the springs of the charging box to be tested in turn, and select the target earphone profile from the multiple preset earphone profiles according to the return value obtained after each contact.

[0113] It should be noted that, in actual applications, the above-mentioned multiple preset earphones should have target earphone profiles that match the charging box to be tested. If the above-mentioned multiple preset earphone profiles do not accurately contact the shrapnel, it means that the above-mentioned charging box to be tested cannot accurately contact the target earphone profile, and the reason may be that the positions of the shrapnel of the charging box to be tested are wrong, or there is a problem in the process of calculating or feeding back the first return value of the charging box to be tested. Therefore, it can be determined that the test result of the charging box to be tested is that there is a defect in the design of the charging box to be tested.

[0114] In the implementation manner of the present application, by controlling multiple preset earphone profiles to contact the spring pieces of the charging box to be tested in turn, and screening out the target earphone profile from the multiple preset earphone profiles according to the return value obtained after each contact, this implementation method can be applied to various types of charging boxes to be tested. Therefore, for actual application scenarios, a set of codes can be used to check a batch of different types of charging boxes to be tested, which can effectively reduce the workload of staff and reduce the processing burden of the above-mentioned terminals.

[0115] It should be noted that, for the sake of simplicity of description, the aforementioned method embodiments are all expressed as a series of action combinations, but those skilled in the art should know that the present application is not limited to the described order of actions, because according to the present application, certain steps can be performed in other orders.

[0116] like Figure 7 The figure shows a schematic diagram of the structure of a charging box test device 700 provided in an embodiment of the present application, wherein the charging box test device 700 is configured on a terminal. The charging box test device 700 may include:

[0117] An acquisition unit 701 is used to acquire a first return value fed back after the spring piece of the charging box to be tested contacts the target earphone in a contour-like manner;

[0118] A determination unit 702, configured to determine whether the spring piece is in accurate contact with the target earphone according to the first return value;

[0119] The testing unit 703 is used to test the charging box to be tested if the spring piece is in accurate contact with the target earphone, and obtain the test result of the charging box to be tested.

[0120] In some embodiments of the present application, the above-mentioned shrapnel includes a power shrapnel, and the above-mentioned test unit 703 can also be used to: adjust the load of the target earphone in contact with the power shrapnel, and obtain the output voltage of the power shrapnel after each load adjustment; determine the test result of the charging box to be tested according to the output voltage and the standard output voltage corresponding to the load.

[0121] In some embodiments of the present application, the above-mentioned test unit 703 can also be used to: set the load of the target earphone that is in contact with the power spring to the load corresponding to the charging box to be tested without inserting the earphone; or, set the load of the target earphone that is in contact with the power spring to the load corresponding to the charging box to be tested with a normal earphone inserted; or, set the load of the target earphone that is in contact with the power spring to the load corresponding to the charging box to be tested with a damaged earphone inserted.

[0122] In some embodiments of the present application, the above-mentioned shrapnel includes a data shrapnel; the above-mentioned test unit 703 can also be used to: send a query instruction to the data shrapnel; obtain a second return value corresponding to the first attribute information of the charging box to be tested generated by the charging box to be tested according to the query instruction, and obtain the second attribute information pointed to by the second return value; compare the second attribute information with the attribute information of the standard charging box to obtain the test result of the charging box to be tested.

[0123] In some embodiments of the present application, the above-mentioned test unit 703 can also be used to: when the charging box to be tested is within a preset power range, input a first charging voltage to the charging interface of the charging box to be tested; the first charging voltage is equal to the standard charging voltage; obtain the charging current of the charging box to be tested, and determine the test result of the charging box to be tested based on the charging current.

[0124] In some embodiments of the present application, the above-mentioned test unit 703 can also be used to: when the charging box to be tested is within a preset power range, input a second charging voltage to the charging interface of the charging box to be tested; the second charging voltage is greater than the standard charging voltage; obtain a third charging voltage output by the charging box to be tested, and determine the test result of the charging box to be tested based on the third charging voltage.

[0125] In some embodiments of the present application, the testing device 700 of the charging box mentioned above also includes a screening unit, which is used to screen out a target earphone profile that matches the charging box to be tested from multiple preset earphone profiles based on the slot information of the earphone slot of the charging box to be tested and / or the shrapnel position information of the shrapnel of the charging box to be tested.

[0126] It should be noted that for the convenience and simplicity of description, the specific working process and beneficial effects of the above-mentioned charging box testing device 700 can be referred to Figures 1 to 6 The corresponding process of the method will not be repeated here.

[0127] like Figure 8The figure is a schematic diagram of a terminal provided in an embodiment of the present application. The terminal 8 may include: a processor 80, a memory 81, and a computer program 82 stored in the memory 81 and executable on the processor 80, such as a charging box test program. When the processor 80 executes the computer program 82, the steps in the above-mentioned charging box test method embodiments are implemented, such as Figure 1 Alternatively, when the processor 80 executes the computer program 82, the functions of each module / unit in the above-mentioned device embodiments are realized, for example Figure 7 The functions of the acquisition unit, determination unit and test unit are shown.

[0128] The computer program may be divided into one or more modules / units, which are stored in the memory 81 and executed by the processor 80 to complete the present application. The one or more modules / units may be a series of computer program instruction segments capable of completing specific functions, which are used to describe the execution process of the computer program in the terminal.

[0129] For example, the computer program can be divided into: an acquisition unit, a determination unit, and a test unit. The specific functions of each unit are as follows: an acquisition unit, used to acquire a first return value fed back after the spring of the charging box to be tested contacts the target earphone; a determination unit, used to determine whether the spring contacts the target earphone accurately according to the first return value; a test unit, used to test the charging box to be tested if the spring contacts the target earphone accurately, and obtain the test result of the charging box to be tested.

[0130] The terminal may include, but is not limited to, a processor 80 and a memory 81. Those skilled in the art will appreciate that Figure 8 It is only an example of a terminal and does not constitute a limitation on the terminal. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components. For example, the terminal may also include input and output devices, network access devices, buses, etc.

[0131] The processor 80 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc.

[0132] The memory 81 may be an internal storage unit of the terminal, such as a hard disk or memory of the terminal. The memory 81 may also be an external storage device of the terminal, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the terminal. Further, the memory 81 may also include both an internal storage unit of the terminal and an external storage device. The memory 81 is used to store the computer program and other programs and data required by the terminal. The memory 81 may also be used to temporarily store data that has been output or is to be output.

[0133] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example for illustration. In practical applications, the above-mentioned function allocation can be completed by different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiment can be integrated in a processing unit, or each unit can exist physically separately, or two or more units can be integrated in one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of this application. The specific working process of the units and modules in the above-mentioned system can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.

[0134] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0135] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.

[0136] In the embodiments provided in the present application, it should be understood that the disclosed devices / terminals and methods can be implemented in other ways. For example, the device / terminal embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0137] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0138] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

[0139] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. Among them, the computer program includes computer program code, and the computer program code can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, U disk, mobile hard disk, disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, computer-readable media do not include electric carrier signals and telecommunication signals.

[0140] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.

Claims

1. A charging box testing method, characterized in that: include: Obtaining a first return value fed back after the spring of the charging box to be tested contacts the target earphone in a contour-like manner; Determining whether the spring sheet is in accurate contact with the target earphone according to the first return value; If the spring piece is in accurate contact with the target earphone, the charging box to be tested is tested to obtain a test result of the charging box to be tested; The step of testing the charging box to be tested and obtaining a test result of the charging box to be tested includes: When the charging box to be tested is within a preset power range, a first charging voltage is input to the charging interface of the charging box to be tested; the first charging voltage is equal to the standard charging voltage; Obtaining a charging current of the charging box to be tested, and determining a test result of the charging box to be tested according to the charging current; The step of testing the charging box to be tested and obtaining a test result of the charging box to be tested includes: When the charging box to be tested is within a preset power range, a second charging voltage is input to the charging interface of the charging box to be tested; the second charging voltage is greater than the standard charging voltage; Obtaining a third charging voltage output by the charging box to be tested. If the third charging voltage is within a charging voltage range corresponding to the overvoltage protection condition, it indicates that the overvoltage protection mechanism of the charging box to be tested can work normally. The shrapnel includes a power shrapnel; The step of testing the charging box to be tested and obtaining a test result of the charging box to be tested includes: Adjusting the load of the target earphone in contact with the power spring, and obtaining the output voltage of the power spring after each load adjustment; Determine a test result of the charging box to be tested according to the output voltage and a standard output voltage corresponding to the load; The step of adjusting the load of the target earphone in contact with the power spring comprises: The load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is not inserted with an earphone; or, the load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is inserted with a normal earphone; or, the load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is inserted with a damaged earphone; When the load is the load corresponding to the charging box under test without inserting earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the no-load state; when the load is the load corresponding to the charging box under test inserted with normal earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the normal earphone inserted state; when the load is the load corresponding to the charging box under test inserted with damaged earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the overcurrent protection state.

2. The testing method of the charging box according to claim 1, characterized in that: The shrapnel includes a data shrapnel; The step of testing the charging box to be tested and obtaining a test result of the charging box to be tested includes: Sending a query instruction to the data shrapnel; Obtain a second return value corresponding to the first attribute information of the charging box to be tested, which is generated by the charging box to be tested according to the query instruction, and obtain second attribute information pointed to by the second return value; The second attribute information is compared with the attribute information of the standard charging box to obtain the test result of the charging box to be tested.

3. The testing method of the charging box according to claim 1 or 2, characterized in that: Before obtaining the first return value fed back after the spring of the charging box to be tested contacts the target earphone in a contoured manner, the method includes: According to the accommodating slot information of the earphone accommodating slot of the charging box to be tested and / or the shrapnel position information of the shrapnel of the charging box to be tested, a target earphone profile that matches the charging box to be tested is screened out from multiple preset earphone profiles.

4. A charging box testing device, characterized in that: include: An acquisition unit, used to acquire a first return value fed back after the spring piece of the charging box to be tested contacts the target earphone in a contour-like manner; A determination unit, configured to determine whether the spring piece is in accurate contact with the target earphone according to the first return value; A testing unit, configured to test the charging box to be tested and obtain a test result of the charging box to be tested if the spring piece is in accurate contact with the target earphone in a contour-like manner; The test unit is also used to: When the charging box to be tested is within a preset power range, a first charging voltage is input to the charging interface of the charging box to be tested; the first charging voltage is equal to the standard charging voltage; Obtaining a charging current of the charging box to be tested, and determining a test result of the charging box to be tested according to the charging current; When the charging box to be tested is within a preset power range, a second charging voltage is input to the charging interface of the charging box to be tested; the second charging voltage is greater than the standard charging voltage; Obtaining a third charging voltage output by the charging box to be tested. If the third charging voltage is within a charging voltage range corresponding to the overvoltage protection condition, it indicates that the overvoltage protection mechanism of the charging box to be tested can work normally. The shrapnel includes a power shrapnel; The step of testing the charging box to be tested and obtaining a test result of the charging box to be tested includes: Adjusting the load of the target earphone in contact with the power spring, and obtaining the output voltage of the power spring after each load adjustment; Determine a test result of the charging box to be tested according to the output voltage and a standard output voltage corresponding to the load; The step of adjusting the load of the target earphone in contact with the power spring comprises: The load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is not inserted with an earphone; or, the load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is inserted with a normal earphone; or, the load of the target earphone in contact with the power spring sheet is set to the load corresponding to the case where the charging box to be tested is inserted with a damaged earphone; When the load is the load corresponding to the charging box under test without inserting earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the no-load state; when the load is the load corresponding to the charging box under test inserted with normal earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the normal earphone inserted state; when the load is the load corresponding to the charging box under test inserted with damaged earphones, the output voltage of the test charging box power spring is within the range of the standard output voltage corresponding to the overcurrent protection state.

5. A terminal comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 3 are implemented.

6. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Load sensing module and charging device

    CN212060538U

  • Apparatus and method for testing adaptor

    US20200103471A1

  • Test board, test system and test method for charging device

    WO2020062235A1