BRIEF SUMMARY OF THE PRESENT DISCLOSURE
The present disclosure provides a test apparatus, method, device, and storage medium.
According to a first aspect of embodiments of the present disclosure, there is provided a test apparatus comprising:
The wireless charging transmitter is used for acquiring a first electrical parameter of a first wireless charging receiver of the device to be tested and transmitting the first electrical parameter and a second electrical parameter of the wireless charging transmitter to the terminal device when the device to be tested is powered on based on the test device;
The second wireless charging receiver is connected with the wireless charging transmitter and is used for acquiring a third electrical parameter of the second wireless charging receiver when the test equipment acquires electric energy from the equipment to be tested and transmitting the third electrical parameter to the terminal equipment;
And the first charging coil is respectively connected with the wireless charging transmitter and the second wireless charging receiver and is used for generating electromagnetic induction with a second charging coil included in the equipment to be tested so as to provide electric energy for the equipment to be tested or acquire electric energy from the equipment to be tested.
Optionally, the first charging coil is further configured to generate electromagnetic induction with a second charging coil included in the device to be tested when the testing device detects a positive charging instruction, so as to provide electric energy for the device to be tested.
Optionally, the wireless charging transmitter is further configured to send a reverse charging instruction to the first wireless charging receiver when the test device detects the reverse charging instruction;
Receiving response information corresponding to the reverse charging instruction returned by the first wireless charging receiver, and generating an interrupt signal based on the response information;
the interrupt signal is used for controlling the wireless charging transmitter to enter a closed state.
Optionally, the wireless charging transmitter is further configured to generate an enable signal based on the response information, and transmit the enable signal to the second wireless charging receiver;
wherein the enabling signal is used for enabling the second wireless charging receiver to enter a receiving state.
Optionally, the test device further comprises a bus;
the wireless charging transmitter is connected with the second wireless charging receiver through the bus;
the bus is used for signal transmission.
According to a second aspect of embodiments of the present disclosure, there is provided a test method, applied to a test apparatus, including:
Acquiring a first electrical parameter of a first wireless charging receiver of the device to be tested when the device to be tested is powered on based on the test device;
Transmitting the first electrical parameter and the second electrical parameter of the wireless charging transmitter to a terminal device, so that the terminal device determines a positive charging test result for the device to be tested based on the first electrical parameter and the second electrical parameter;
Acquiring a third electrical parameter of a second wireless charging receiver of the test equipment when the test equipment acquires electrical energy from the equipment to be tested;
And sending the third electrical parameter to the terminal equipment so that the terminal equipment determines a reverse charging test result aiming at the equipment to be tested based on the third electrical parameter.
Optionally, when the positive charging instruction is detected, the first charging coil of the test device and the second charging coil of the device to be tested are driven to generate electromagnetic induction, so as to provide electric energy for the device to be tested.
Optionally, when detecting an inverse charging instruction, sending the inverse charging instruction to the device to be tested;
receiving response information corresponding to the reverse charging instruction returned by the equipment to be tested, and generating an interrupt signal based on the response information;
the interrupt signal is used for controlling the wireless charging transmitter to enter a closed state.
Optionally, generating an enable signal based on the response information, and transmitting the enable signal to the second wireless charging receiver;
wherein the enabling signal is used for enabling the second wireless charging receiver to enter a receiving state.
According to a third aspect of the embodiments of the present disclosure, there is provided a testing method, applied to a terminal device, including:
Acquiring a first electrical parameter of a first wireless charging receiver of the device to be tested and a second electrical parameter of a wireless charging transmitter of the test device when the device to be tested is powered on based on the test device;
Determining a positive charge test result for the device under test based on the first electrical parameter and the second electrical parameter;
Acquiring a third electrical parameter of a second wireless charging receiver of the test equipment when the test equipment acquires electrical energy from the equipment to be tested;
and determining a reverse charging test result aiming at the equipment to be tested based on the third electric parameter.
Optionally, the first electrical parameter comprises a current value and a voltage value of the first wireless charging receiver, and the second electrical parameter comprises a current value and a voltage value of the wireless charging transmitter;
the determining, based on the first electrical parameter and the second electrical parameter, a positive charge test result for the device under test includes:
Determining to output power of the device under test based on the current value and the voltage value of the first wireless charging receiver;
Determining power input to the test device based on the current value and voltage of the wireless charging transmitter;
and determining the positive charging test result based on the power input into the test equipment and the power output from the equipment to be tested.
Optionally, the determining the positive charging test result based on the power input to the test device and the power output to the device under test includes:
determining the efficiency of wireless charging of the device to be tested based on the power input to the test device and the power output to the device to be tested;
And comparing the wireless charging efficiency of the equipment to be tested with a first preset standard value, and determining the positive charging test result according to the comparison result.
Optionally, the third electrical parameter includes a current value and a voltage value of the second wireless charging receiver;
The determining, based on the third electrical parameter, a reverse charge test result for the device under test, including:
Determining power input to the second wireless charging receiver based on the current value and the voltage value of the second wireless charging receiver;
And determining the reverse charging test result based on the power input to the second wireless charging receiver.
Optionally, the determining the reverse charging test result based on the power input to the second wireless charging receiver includes:
and comparing the power input into the second wireless charging receiver with a second preset standard value, and determining the positive charging test result according to the comparison result.
According to a fourth aspect of embodiments of the present disclosure, there is provided a test apparatus applied to a terminal device, including:
A first obtaining module configured to obtain a first electrical parameter of a first wireless charging receiver of the device under test and a second electrical parameter of a wireless charging transmitter of the test device when the device under test is powered based on the test device;
a first determination module configured to determine a positive charge test result for the device under test based on the first electrical parameter and the second electrical parameter;
the second acquisition module is configured to acquire a third electrical parameter of a second wireless charging receiver of the test equipment when the test equipment acquires electrical energy from the equipment to be tested;
And the second determining module is configured to determine a reverse charging test result aiming at the device to be tested based on the third electric parameter.
Optionally, the first electrical parameter includes a current value and a voltage value of the first wireless charging receiver, and the second electrical parameter includes a current value and a voltage value of the wireless charging transmitter, and the first determination module is further configured to:
Determining to output power of the device under test based on the current value and the voltage value of the first wireless charging receiver;
Determining power input to the test device based on the current value and voltage of the wireless charging transmitter;
and determining the positive charging test result based on the power input into the test equipment and the power output from the equipment to be tested.
Optionally, the first determining module is further configured to:
determining the efficiency of wireless charging of the device to be tested based on the power input to the test device and the power output to the device to be tested;
And comparing the wireless charging efficiency of the equipment to be tested with a first preset standard value, and determining the positive charging test result according to the comparison result.
Optionally, the third electrical parameter includes a current value and a voltage value of the second wireless charging receiver, and the second determination module is further configured to:
Determining power input to the second wireless charging receiver based on the current value and the voltage value of the second wireless charging receiver;
And determining the reverse charging test result based on the power input to the second wireless charging receiver.
Optionally, the second determining module is further configured to:
and comparing the power input into the second wireless charging receiver with a second preset standard value, and determining the positive charging test result according to the comparison result.
According to a fifth aspect of embodiments of the present disclosure, there is provided a test apparatus comprising:
A processor;
A memory for storing processor-executable instructions;
Wherein the processor is configured to implement the steps as in the second aspect described above, or the steps as in the third aspect described above, when executing the executable instructions.
According to a sixth aspect of embodiments of the present disclosure, there is provided a non-transitory computer readable storage medium, which when executed by a processor of a test apparatus, causes the test apparatus to perform the steps of the second aspect described above, or the steps of the third aspect described above.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
In the embodiment of the disclosure, the positive charging function and the negative charging function can be integrated on the test equipment, namely, the test equipment can provide electric energy for the equipment to be tested, can acquire electric energy from the equipment to be tested, and uploads acquired test parameters, namely, the first electric parameter, the second electric parameter and the third electric parameter, to the terminal equipment based on the test equipment. Therefore, in the testing process, all the testing parameters can be obtained based on one testing device, all the tests of the forward charging function and the reverse charging function of the wireless charging of the electronic device are completed based on the terminal device, the testing process is simple, and the possibility of inaccurate testing results caused by device replacement can be reduced.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples are not representative of all implementations consistent with the present disclosure. Rather, they are merely examples of apparatus and methods consistent with some aspects of the present disclosure as detailed in the accompanying claims.
Fig. 1 is a schematic diagram of a test apparatus according to an exemplary embodiment, and as shown in fig. 1, the test apparatus 100 includes:
A wireless charging transmitter 101, configured to obtain a first electrical parameter of a first wireless charging receiver of a device under test when power is provided to the device under test based on the test device 100, and transmit the first electrical parameter and a second electrical parameter of the wireless charging transmitter 101 to a terminal device;
A second wireless charging receiver 102, connected to the wireless charging transmitter 101, configured to obtain a third electrical parameter of the second wireless charging receiver 102 when the test device 100 obtains electrical energy from the device under test, and send the third electrical parameter to the terminal device;
And the first charging coil 103 is respectively connected with the wireless charging transmitter 101 and the second wireless charging receiver 102 and is used for generating electromagnetic induction with a second charging coil included in the device to be tested so as to provide electric energy for the device to be tested or acquire electric energy from the device to be tested. Fig. 2 is a schematic diagram of a second configuration of a device under test according to an exemplary embodiment, and as shown in fig. 2, a device under test 201 may be a mobile phone.
Here, the test device and the device to be tested are both electronic devices with a wireless charging function, and the test device is integrated with a wireless charging transmitter, a second wireless charging receiver and a test board of the first charging coil. The device under test may be a terminal device, such as a mobile terminal, having wireless charging capabilities. The mobile terminal comprises a mobile phone, a notebook computer, a tablet personal computer, wearable electronic equipment, an intelligent sound box and the like.
In the embodiment of the disclosure, since the test device has the first charging coil and the device to be tested has the second charging coil, in the implementation process, the test device can provide electric energy for the device to be tested through the magnetic induction technology or acquire electric energy from the device to be tested. For example, after the test device is powered on, the device to be tested can be placed on a test bench of the test device, so that electromagnetic induction can be generated by the first charging coil on the test device and the second charging coil on the device to be tested, and the device to be tested is in a wireless charging state.
In some embodiments, the wireless charging transmitter comprises a NU1020 chip, the second wireless charging receiver comprises a NU1619 chip, and the first charging coil comprises an MP-A2 wireless charging coil.
In some embodiments, after detecting that the test device is powered up, the wireless charging transmitter may be controlled to be in an operational state and the second wireless charging receiver may be controlled to be in an off state. At this time, the electric power can be provided for the device to be tested based on the test device, and when the electric power is provided for the device to be tested based on the test device, the first electric parameter of the first wireless charging receiver of the device to be tested is obtained, and the first electric parameter and the second electric parameter of the wireless charging transmitter are sent to the terminal device.
In some embodiments, the wireless charging transmitter may transmit the first electrical parameter and the second electrical parameter to the terminal device via serial communication, e.g., transmission of the first electrical parameter and the second electrical parameter via a serial interface. In other alternative embodiments, the first electrical parameter and the second electrical parameter may be sent to the terminal device in other ways, for example, by wireless network or ZigBee (ZigBee) technology.
In some embodiments, the terminal device may be an electronic device with data processing capabilities, for example, a mobile terminal or a fixed terminal with a processor. The mobile terminal comprises a mobile phone, a notebook computer, a tablet personal computer and the like. The fixed terminal includes a personal computer (Personal Computer, PC) or the like. In other embodiments, the terminal device may also be a server.
In the embodiment of the disclosure, after the first electrical parameter and the second electrical parameter are sent to the terminal device, the terminal device may process the first electrical parameter and the second electrical parameter, and determine a positive charging test result for the device to be tested based on the processing result.
In some embodiments, the second electrical parameter of itself may be obtained by a wireless charging transmitter. In other embodiments, the device under test may transmit the first electrical parameter of the first wireless charging receiver to the wireless charging transmitter via an Amplitude Shift Keying (ASK) signal. For example, when the testing device detects a positive charging instruction, a parameter request may be sent to the device under test, and after receiving the parameter request, the device under test may send the first electrical parameter of the first wireless charging receiver to the wireless charging transmitter of the testing device through an ASK signal.
In the embodiment of the disclosure, the test device can also obtain electric energy from the device to be tested. When the test equipment obtains electric energy from the equipment to be tested, the second wireless charging receiver can be controlled to be in a working state. At this time, the electrical power may be provided to the test device based on the device under test, and when the electrical power is provided to the test device based on the device under test, a third electrical parameter of the second wireless charging receiver of the test device is obtained, and the third electrical parameter is sent to the terminal device.
In some embodiments, the second wireless charging receiver may send the third electrical parameter to the wireless charging transmitter, which may then send the third electrical parameter to the terminal device by way of serial communication, e.g., transmission of the third electrical parameter may be via a serial interface. In other alternative embodiments, the third electrical parameter may be sent to the terminal device in other ways, for example, by wireless network or ZigBee technology.
In the embodiment of the disclosure, since the terminal device has the data processing capability, after the third electrical parameter is sent to the terminal device, the terminal device may process the third electrical parameter, and determine a reverse charging test result for the device to be tested based on the processing result.
In the embodiment of the disclosure, the positive charging function and the negative charging function can be integrated on the test equipment, namely, the test equipment can provide electric energy for the equipment to be tested, can acquire electric energy from the equipment to be tested, and uploads acquired test parameters, namely, the first electric parameter, the second electric parameter and the third electric parameter, to the terminal equipment based on the test equipment. Therefore, in the testing process, all the testing parameters can be obtained based on one testing device, all the tests of the forward charging function and the reverse charging function of the wireless charging of the electronic device are completed based on the terminal device, the testing process is simple, and the possibility of inaccurate testing results caused by device replacement can be reduced.
In other optional embodiments, the first charging coil is further configured to generate electromagnetic induction with a second charging coil included in the device under test when the testing device detects a positive charging instruction, so as to provide electric energy for the device under test.
Here, the positive charging instruction may be sent from the terminal device to the test device. For example, after determining that the test device is powered up, the wireless charging transmitter of the test device may be controlled to be in an operational state and the second wireless charging receiver of the test device may be controlled to be in an off state.
In the embodiment of the disclosure, whether the first test operation is received or not can be detected based on the terminal equipment, after the first test operation is received by the terminal equipment, a positive charging instruction can be generated based on the first test operation and sent to the test equipment, and when the positive charging instruction is received by the test equipment, the first charging coil on the test equipment and the second charging coil of the equipment to be tested placed on the test bench of the test equipment can be driven to generate electromagnetic induction so as to provide electric energy for the equipment to be tested, so that the equipment to be tested enters a wireless charging state.
In the embodiment of the disclosure, when the testing equipment detects a positive charging instruction, the first charging coil and the second charging coil can be driven to generate electromagnetic induction, electric energy is provided for the equipment to be tested, a positive charging function of the equipment to be tested can be realized, and convenience is provided for acquiring electric parameters in a positive charging process.
In other optional embodiments, the wireless charging transmitter is further configured to send an anti-charging instruction to the first wireless charging receiver when the testing device detects the anti-charging instruction;
Receiving response information corresponding to the reverse charging instruction returned by the first wireless charging receiver, and generating an interrupt signal based on the response information;
the interrupt signal is used for controlling the wireless charging transmitter to enter a closed state.
Here, the reverse charge instruction may be transmitted from the terminal device to the test device. For example, the reverse charge instruction may be automatically generated after the test device completes the forward charge test for the device under test, or may be generated based on the second test operation after the terminal device receives the second test operation based on the terminal device detection whether the second test operation is received.
In this embodiment of the present disclosure, after the terminal device generates the anti-charging instruction, the anti-charging instruction may be sent to the test device, when the test device receives the anti-charging instruction, the anti-charging instruction may be sent to the first wireless charging receiver, after receiving the anti-charging instruction, the first wireless charging receiver may generate corresponding response information based on the anti-charging instruction, and send the response information to the test device, after receiving the response information, the test device may generate an interrupt signal based on the response information, and control the wireless charging transmitter to enter the off state based on the interrupt signal.
Here, the response information is used to indicate that the first wireless charging receiver has received the reverse charging instruction, and may be a response code, such as a numeric code, an alphabetical code, or the like.
In some embodiments, the test device may send the anti-charge instruction to the first wireless charging receiver via a Frequency Shift Keying (FSK) signal, and the first wireless charging receiver may return a response message corresponding to the anti-charge instruction via an ASK signal.
In the embodiment of the disclosure, when the test equipment detects the anti-charging instruction, the anti-charging instruction can be sent to the equipment to be tested, and the wireless charging transmitter is controlled to enter the closed state based on the response information received from the equipment to be tested, so that the positive charging process of the equipment to be tested can be terminated, and convenience is provided for entering the anti-charging process.
In other optional embodiments, the wireless charging transmitter is further configured to generate an enable signal based on the response information, and transmit the enable signal to the second wireless charging receiver;
wherein the enabling signal is used for enabling the second wireless charging receiver to enter a receiving state.
In this embodiment of the present disclosure, after the terminal device generates the anti-charging instruction, the anti-charging instruction may be sent to the test device, when the test device receives the anti-charging instruction, the anti-charging instruction may be sent to the first wireless charging receiver, after receiving the anti-charging instruction, the first wireless charging receiver may generate corresponding response information based on the anti-charging instruction, and send the response information to the test device, and after receiving the response information, the test device may generate an enable signal based on the response information, and control the second wireless charging receiver to enter a working state based on the enable signal.
In some embodiments, the response information is used to indicate that the first wireless charging receiver has received the reverse charging instruction, and may be a response code, such as a numeric code, an alphabetical code, or the like.
In the embodiment of the disclosure, when the test equipment detects the anti-charging instruction, the anti-charging instruction can be sent to the equipment to be tested, and the second wireless charging receiver is controlled to enter the working state based on the response information received from the equipment to be tested, so that the equipment to be tested can be controlled to enter the anti-charging process.
In other alternative embodiments, the test apparatus further comprises a bus;
the wireless charging transmitter is connected with the second wireless charging receiver through the bus;
the bus is used for signal transmission.
Fig. 3 is a schematic diagram three of a configuration of the test apparatus according to an exemplary embodiment, and as shown in fig. 3, the test apparatus 100 further includes a bus 301. In the embodiment of the disclosure, the connection between the wireless charging transmitter and the second wireless charging receiver is realized through the bus, so that signal transmission between the wireless charging transmitter and the second wireless charging receiver can be realized, for example, transmission of the interrupt signal and the enable signal can be realized based on the bus.
Fig. 4 is a schematic diagram of a system framework according to an exemplary embodiment, and as shown in fig. 4, the system includes a terminal device 401, a test device 100, and a device under test 301. Fig. 5 is a schematic structural diagram of a device under test, and as shown in fig. 5, a device under test 500 includes a first wireless charging receiver 501, a first charging coil 502, and a central processor 503, where the first wireless charging receiver 501 is connected to the first charging coil 502, and the central processor 503 is connected to the first wireless charging receiver 501.
In the embodiment of the disclosure, after the test equipment is determined to be powered on, the wireless charging transmitter of the test equipment can be controlled to be in a working state, and the second wireless charging receiver of the test equipment is controlled to be in a closed state. That is, after the test device is powered up, the test device operates in a transmit (Tx) mode, the enable signal (Rx 1619_en signal) is pulled high, the second wireless charging receiver (e.g., NU1619 chip) is not operating, and the device under test (e.g., handset under test) is in a receive (Rx) mode. In some embodiments, a start test control may be clicked on a terminal device (e.g., a PC) and the device under test placed on the test station of the test device, and the device under test may enter a wireless state of charge.
In an implementation, a wireless charging transmitter (e.g., NU 1020) may obtain its second electrical parameters (e.g., input voltage and current), and the device under test may transmit the first electrical parameters (e.g., output current and voltage) of the first wireless charging receiver (e.g., NU1619 chip) to the wireless charging transmitter (e.g., NU 1020) on the test device via an ASK signal. After the wireless charging transmitter receives the first electrical parameter, the first electrical parameter and the second electrical parameter can be uploaded to a terminal device (for example, a PC) through a serial port communication mode, the terminal device can calculate power of an output device to be tested based on the first electrical parameter, calculate power of an input test device based on the second electrical parameter, and determine a positive charging test result based on the power of the input test device and the power of the output device to be tested.
In other embodiments, after the positive charge test is completed, the terminal device may send a reverse charge instruction to the test device. For example, the reverse charging instruction is sent to a wireless charging transmitter (for example, NU1020 chip) of the test device by means of serial port communication, the wireless charging transmitter sends the reverse charging instruction to a first wireless charging receiver (for example, NU1619 chip) of the device under test by means of an FSK signal, and the first wireless charging receiver sends the reverse charging instruction to a central processor (Central Processing Unit, CPU) of the device under test by means of a bus (for example, I 2 C bus), so that the CPU of the device under test turns on the reverse charging function of the device under test.
After the CPU of the device under test receives the precharge command, the precharge command is sent to the first wireless charging receiver (for example, NU1619 chip) of the device under test through the bus, the first wireless charging receiver sends response information (for example, response code) for the precharge command to the wireless charging transmitter (for example, NU1020 chip) of the test device through the ASK signal, then the wireless charging transmitter turns off energy transmission, and enables the second wireless charging receiver (for example, NU1619 chip) on the test device to enter a receiving state through the pull-up enable (RX 1619_en) signal, and meanwhile, the interrupt signal is pulled up to control the wireless charging transmitter (for example, NU1020 chip) to enter a turned-off state.
And when the CPU of the device to be tested detects that the wireless charging transmitter of the test device enters a closed state, namely, after the CPU of the device to be tested detects that the energy signal of the second wireless charging receiver of the test device becomes low, the reverse charging function is started, and the device to be tested starts to transmit energy to the test device.
When the device to be tested provides electric energy for the test device, a third electric parameter (such as current and voltage) of the second wireless charging receiver can be obtained, and the third electric parameter is sent to the terminal device in a serial port communication mode.
For example, the terminal device may acquire parameters by using a serial port communication manner and send the parameters to a wireless charging transmitter of the test device, where the wireless charging transmitter acquires, by using a bus, a current and a voltage output by the second wireless charging receiver, and uploads, by using the serial port communication manner, the current and the voltage output by the second wireless charging receiver to the terminal device, and the terminal device may determine a reverse charging test result based on the third electrical parameter.
In other embodiments, after testing of the device under test is completed, the reverse charging function of the device under test may be turned off and power continues to be provided to the device under test based on the test device. For example, after the wireless charging transmitter of the test device detects that the interrupt signal of the second wireless charging receiver becomes low, the test device may be controlled to provide power for the device under test.
The test equipment in the embodiment of the disclosure integrates the functions of forward charging and reverse charging together, can complete all the tests of the forward charging function and the reverse charging function of the equipment to be tested through the terminal equipment, and can save the test cost on the basis of simplifying the test process. The technical scheme in the disclosure can be used for production line test of equipment to be tested (for example, mobile phones), can intercept the problem of wireless charging function of the equipment to be tested, and prevents the problematic equipment to be tested from flowing out to the hands of users.
FIG. 6 is a flow chart diagram I of a test method according to an exemplary embodiment, as shown in FIG. 6, the method being applied to a test apparatus, comprising:
In step 601, when power is supplied to a device to be tested based on the test device, acquiring a first electrical parameter of a first wireless charging receiver of the device to be tested;
In step 602, the first electrical parameter and the second electrical parameter of the wireless charging transmitter are transmitted to a terminal device, so that the terminal device determines a positive charging test result for the device to be tested based on the first electrical parameter and the second electrical parameter;
in step 603, when the test device obtains electrical energy from the device under test, obtaining a third electrical parameter of a second wireless charging receiver of the test device;
In step 604, the third electrical parameter is sent to the terminal device, so that the terminal device determines a recharging test result for the device under test based on the third electrical parameter.
Here, the test device and the device to be tested are both electronic devices with a wireless charging function, and the test device is integrated with a wireless charging transmitter, a second wireless charging receiver and a test board of the first charging coil. The device under test may be a terminal device, such as a mobile terminal, having wireless charging capabilities. The mobile terminal comprises a mobile phone, a notebook computer, a tablet personal computer, wearable electronic equipment, an intelligent sound box and the like.
In the embodiment of the disclosure, since the test device has the first charging coil and the device to be tested has the second charging coil, in the implementation process, the test device can provide electric energy for the device to be tested through the magnetic induction technology or acquire electric energy from the device to be tested. For example, after the test device is powered on, the device to be tested can be placed on a test bench of the test device, so that electromagnetic induction can be generated by the first charging coil on the test device and the second charging coil on the device to be tested, and the device to be tested is in a wireless charging state.
In some embodiments, the wireless charging transmitter comprises a NU1020 chip, the second wireless charging receiver comprises a NU1619 chip, and the first charging coil comprises an MP-A2 wireless charging coil.
In some embodiments, after detecting that the test device is powered up, the wireless charging transmitter may be controlled to be in an operational state and the second wireless charging receiver may be controlled to be in an off state. At this time, the electric power can be provided for the device to be tested based on the test device, and when the electric power is provided for the device to be tested based on the test device, the first electric parameter of the first wireless charging receiver of the device to be tested is obtained, and the first electric parameter and the second electric parameter of the wireless charging transmitter are sent to the terminal device.
In some embodiments, the wireless charging transmitter may transmit the first electrical parameter and the second electrical parameter to the terminal device via serial communication, e.g., transmission of the first electrical parameter and the second electrical parameter via a serial interface. In other alternative embodiments, the first electrical parameter and the second electrical parameter may be sent to the terminal device in other ways, for example, by wireless network or ZigBee (ZigBee) technology.
In some embodiments, the terminal device may be an electronic device with data processing capabilities, for example, a mobile terminal or a fixed terminal with a processor. The mobile terminal comprises a mobile phone, a notebook computer, a tablet personal computer and the like. The fixed terminal includes a personal computer (Personal Computer, PC) or the like. In other embodiments, the terminal device may also be a server.
In the embodiment of the disclosure, after the first electrical parameter and the second electrical parameter are sent to the terminal device, the terminal device may process the first electrical parameter and the second electrical parameter, and determine a positive charging test result for the device to be tested based on the processing result.
In some embodiments, the second electrical parameter of itself may be obtained by a wireless charging transmitter. In other embodiments, the device under test may transmit the first electrical parameter of the first wireless charging receiver to the wireless charging transmitter via an Amplitude Shift Keying (ASK) signal. For example, when the testing device detects a positive charging instruction, a parameter request may be sent to the device under test, and after receiving the parameter request, the device under test may send the first electrical parameter of the first wireless charging receiver to the wireless charging transmitter of the testing device through an ASK signal.
In the embodiment of the disclosure, the test device can also obtain electric energy from the device to be tested. When the test equipment obtains electric energy from the equipment to be tested, the second wireless charging receiver can be controlled to be in a working state. At this time, the electrical power may be provided to the test device based on the device under test, and when the electrical power is provided to the test device based on the device under test, a third electrical parameter of the second wireless charging receiver of the test device is obtained, and the third electrical parameter is sent to the terminal device.
In some embodiments, the second wireless charging receiver may send the third electrical parameter to the wireless charging transmitter, which may then send the third electrical parameter to the terminal device by way of serial communication, e.g., transmission of the third electrical parameter may be via a serial interface. In other alternative embodiments, the third electrical parameter may be sent to the terminal device in other ways, for example, by wireless network or ZigBee technology.
In the embodiment of the disclosure, since the terminal device has the data processing capability, after the third electrical parameter is sent to the terminal device, the terminal device may process the third electrical parameter, and determine a reverse charging test result for the device to be tested based on the processing result.
In the embodiment of the disclosure, the positive charging function and the negative charging function can be integrated on the test equipment, namely, the test equipment can provide electric energy for the equipment to be tested, can acquire electric energy from the equipment to be tested, and uploads acquired test parameters, namely, the first electric parameter, the second electric parameter and the third electric parameter, to the terminal equipment based on the test equipment. Therefore, in the testing process, all the testing parameters can be obtained based on one testing device, all the tests of the forward charging function and the reverse charging function of the wireless charging of the electronic device are completed based on the terminal device, the testing process is simple, and the possibility of inaccurate testing results caused by device replacement can be reduced.
In other alternative embodiments, when a positive charging instruction is detected, the first charging coil of the test device and the second charging coil of the device under test are driven to generate electromagnetic induction, so as to provide electric energy for the device under test.
Here, the positive charging instruction may be sent from the terminal device to the test device. For example, after determining that the test device is powered up, the wireless charging transmitter of the test device may be controlled to be in an operational state and the second wireless charging receiver of the test device may be controlled to be in an off state.
In the embodiment of the disclosure, whether the first test operation is received or not can be detected based on the terminal equipment, after the first test operation is received by the terminal equipment, a positive charging instruction can be generated based on the first test operation and sent to the test equipment, and when the positive charging instruction is received by the test equipment, the first charging coil on the test equipment and the second charging coil of the equipment to be tested placed on the test bench of the test equipment can be driven to generate electromagnetic induction so as to provide electric energy for the equipment to be tested, so that the equipment to be tested enters a wireless charging state.
In the embodiment of the disclosure, when the testing equipment detects a positive charging instruction, the first charging coil and the second charging coil can be driven to generate electromagnetic induction, electric energy is provided for the equipment to be tested, a positive charging function of the equipment to be tested can be realized, and convenience is provided for acquiring electric parameters in a positive charging process.
In other optional embodiments, when an inverse charging instruction is detected, the inverse charging instruction is sent to the device under test;
receiving response information corresponding to the reverse charging instruction returned by the equipment to be tested, and generating an interrupt signal based on the response information;
the interrupt signal is used for controlling the wireless charging transmitter to enter a closed state.
Here, the reverse charge instruction may be transmitted from the terminal device to the test device. For example, the reverse charge instruction may be automatically generated after the test device completes the forward charge test for the device under test, or may be generated based on the second test operation after the terminal device receives the second test operation based on the terminal device detection whether the second test operation is received.
In this embodiment of the present disclosure, after the terminal device generates the anti-charging instruction, the anti-charging instruction may be sent to the test device, when the test device receives the anti-charging instruction, the anti-charging instruction may be sent to the first wireless charging receiver, after receiving the anti-charging instruction, the first wireless charging receiver may generate corresponding response information based on the anti-charging instruction, and send the response information to the test device, after receiving the response information, the test device may generate an interrupt signal based on the response information, and control the wireless charging transmitter to enter the off state based on the interrupt signal.
Here, the response information is used to indicate that the first wireless charging receiver has received the reverse charging instruction, and may be a response code, such as a numeric code, an alphabetical code, or the like.
In some embodiments, the test device may send the anti-charge instruction to the first wireless charging receiver via a Frequency Shift Keying (FSK) signal, and the first wireless charging receiver may return a response message corresponding to the anti-charge instruction via an ASK signal.
In the embodiment of the disclosure, when the test equipment detects the anti-charging instruction, the anti-charging instruction can be sent to the equipment to be tested, and the wireless charging transmitter is controlled to enter the closed state based on the response information received from the equipment to be tested, so that the positive charging process of the equipment to be tested can be terminated, and convenience is provided for entering the anti-charging process.
In other alternative embodiments, an enable signal is generated based on the response information and sent to the second wireless charging receiver;
wherein the enabling signal is used for enabling the second wireless charging receiver to enter a receiving state.
In this embodiment of the present disclosure, after the terminal device generates the anti-charging instruction, the anti-charging instruction may be sent to the test device, when the test device receives the anti-charging instruction, the anti-charging instruction may be sent to the first wireless charging receiver, after receiving the anti-charging instruction, the first wireless charging receiver may generate corresponding response information based on the anti-charging instruction, and send the response information to the test device, and after receiving the response information, the test device may generate an enable signal based on the response information, and control the second wireless charging receiver to enter a working state based on the enable signal.
In some embodiments, the response information is used to indicate that the first wireless charging receiver has received the reverse charging instruction, and may be a response code, such as a numeric code, an alphabetical code, or the like.
In the embodiment of the disclosure, when the test equipment detects the anti-charging instruction, the anti-charging instruction can be sent to the equipment to be tested, and the second wireless charging receiver is controlled to enter the working state based on the response information received from the equipment to be tested, so that the equipment to be tested can be controlled to enter the anti-charging process.
Fig. 7 is a second flowchart of a test method according to an exemplary embodiment, and as shown in fig. 7, the method is applied to a terminal device, and includes:
In step 701, when power is supplied to a device under test based on the test device, acquiring a first electrical parameter of a first wireless charging receiver of the device under test and a second electrical parameter of a wireless charging transmitter of the test device;
In step 702, determining a positive charge test result for the device under test based on the first electrical parameter and the second electrical parameter;
in step 703, when the test device obtains electrical energy from the device under test, obtaining a third electrical parameter of a second wireless charging receiver of the test device;
in step 704, a reverse charge test result for the device under test is determined based on the third electrical parameter.
In the embodiment of the disclosure, after the test equipment is determined to be powered on, the wireless charging transmitter of the test equipment can be controlled to be in a working state, and the second wireless charging receiver of the test equipment is controlled to be in a closed state. After the test equipment is electrified, the test equipment works in a transmitting mode, an enabling signal is pulled high, the second wireless charging receiver does not work, and the equipment to be tested is in a receiving mode. In some embodiments, a start test control may be clicked on the terminal device and the device under test placed on the test station of the test device, and the device under test may enter a wireless charging state.
In the implementation process, the wireless charging transmitter can acquire the second electrical parameter of the wireless charging transmitter, and the device to be tested can transmit the first electrical parameter of the first wireless charging receiver to the wireless charging transmitter on the test device through an ASK signal. After the wireless charging transmitter receives the first electrical parameter, the first electrical parameter and the second electrical parameter can be uploaded to the terminal equipment in a serial port communication mode, the terminal equipment can calculate the power of the output equipment to be tested based on the first electrical parameter, calculate the power of the input test equipment based on the second electrical parameter, and determine the positive charging test result based on the power of the input test equipment and the power of the output equipment to be tested.
In other embodiments, after the positive charge test is completed, the terminal device may send a reverse charge instruction to the test device. For example, the anti-charging instruction is sent to the wireless charging transmitter of the test device by means of serial port communication, the wireless charging transmitter sends the anti-charging instruction to the first wireless charging receiver of the device to be tested through the FSK signal, and the first wireless charging receiver sends the anti-charging instruction to the CPU of the device to be tested through the bus, so that the CPU of the device to be tested opens the anti-charging function of the device to be tested.
After receiving the anti-charge instruction, the CPU of the device to be tested sends the anti-charge instruction to a first wireless charge receiver of the device to be tested through a bus, the first wireless charge receiver sends response information aiming at the anti-charge instruction to a wireless charge transmitter of the device to be tested through an ASK signal, the wireless charge transmitter turns off energy transmission, and enables a second wireless charge receiver on the device to be tested to enter a receiving state through a pull-up enabling signal, and meanwhile, an interrupt signal is pulled up to control the wireless charge transmitter to enter a closing state.
And when the CPU of the device to be tested detects that the wireless charging transmitter of the test device enters a closed state, namely, after the CPU of the device to be tested detects that the energy signal of the second wireless charging receiver of the test device becomes low, the reverse charging function is started, and the device to be tested starts to transmit energy to the test device.
When the device to be tested provides electric energy for the test device, a third electric parameter (such as current and voltage) of the second wireless charging receiver can be obtained, and the third electric parameter is sent to the terminal device in a serial port communication mode.
For example, the terminal device may acquire parameters by using a serial port communication manner and send the parameters to a wireless charging transmitter of the test device, where the wireless charging transmitter acquires, by using a bus, a current and a voltage output by the second wireless charging receiver, and uploads, by using the serial port communication manner, the current and the voltage output by the second wireless charging receiver to the terminal device, and the terminal device may determine a reverse charging test result based on the third electrical parameter.
In other embodiments, after testing of the device under test is completed, the reverse charging function of the device under test may be turned off and power continues to be provided to the device under test based on the test device. For example, after the wireless charging transmitter of the test device detects that the interrupt signal of the second wireless charging receiver becomes low, the test device may be controlled to provide power for the device under test.
In other alternative embodiments, the first electrical parameter comprises a current value and a voltage value of the first wireless charging receiver, and the second electrical parameter comprises a current value and a voltage value of the wireless charging transmitter;
the determining, based on the first electrical parameter and the second electrical parameter, a positive charge test result for the device under test includes:
Determining to output power of the device under test based on the current value and the voltage value of the first wireless charging receiver;
Determining power input to the test device based on the current value and voltage of the wireless charging transmitter;
and determining the positive charging test result based on the power input into the test equipment and the power output from the equipment to be tested.
In other optional embodiments, the determining the positive charge test result based on the power input to the test device and the power output to the device under test includes:
determining the efficiency of wireless charging of the device to be tested based on the power input to the test device and the power output to the device to be tested;
And comparing the wireless charging efficiency of the equipment to be tested with a first preset standard value, and determining the positive charging test result according to the comparison result.
In some embodiments, the efficiency of wirelessly charging the device under test may be derived based on a ratio between the power input to the test device and the power output to the device under test. After obtaining the efficiency of wireless charging of the device to be tested, the efficiency of wireless charging of the device to be tested can be compared with a first preset standard value, and a positive charging test result is determined according to the comparison result.
For example, if the efficiency of wirelessly charging the device to be measured is greater than or equal to a first preset standard value, the normal function of the device to be measured is indicated, and if the efficiency of wirelessly charging the device to be measured is less than the first preset standard value, the abnormal function of the device to be measured is indicated. The first preset standard value may be a value obtained according to an experiment.
In other embodiments, after the positive charging test result is obtained, a first prompt message may be output, where the first prompt message is used to indicate that the positive charging function of the device under test is normal or abnormal.
In other alternative embodiments, the third electrical parameter includes a current value and a voltage value of the second wireless charging receiver;
The determining, based on the third electrical parameter, a reverse charge test result for the device under test, including:
Determining power input to the second wireless charging receiver based on the current value and the voltage value of the second wireless charging receiver;
And determining the reverse charging test result based on the power input to the second wireless charging receiver.
In other optional embodiments, the determining the reverse charge test result based on the power input to the second wireless charging receiver includes:
and comparing the power input into the second wireless charging receiver with a second preset standard value, and determining the positive charging test result according to the comparison result.
Here, after obtaining the power of the second wireless charging receiver, the power of the second wireless charging receiver may be compared with a second preset standard value, and a reverse charging test result may be determined according to the comparison result.
For example, if the power of the second wireless charging receiver is greater than or equal to a second preset standard value, the reverse charging function of the device to be tested is normal, and if the power of the second wireless charging receiver is less than the second preset standard value, the reverse charging function of the device to be tested is abnormal. The second preset standard value may be a value obtained according to an experiment.
In other embodiments, after the positive charging test result is obtained, a second prompt message may be output, where the second prompt message is used to indicate that the recharging function of the device under test is normal or abnormal.
In the embodiment of the disclosure, all the tests of the forward charging function and the reverse charging function of the device to be tested can be completed through the terminal equipment, so that the test cost can be saved on the basis of simplifying the test process. The technical scheme in the disclosure can be used for the production line test of the equipment to be tested, can intercept the problem of the wireless charging function of the equipment to be tested, and prevents the problematic equipment to be tested from flowing out to the hand of a user.
Fig. 8 is a block diagram of a test apparatus, according to an example embodiment. As shown in fig. 8, the apparatus 800 is applied to a terminal device, and includes:
a first obtaining module 801 configured to obtain a first electrical parameter of a first wireless charging receiver of the device under test and a second electrical parameter of a wireless charging transmitter of the test device when power is provided to the device under test based on the test device;
A first determination module 802 configured to determine a positive charge test result for the device under test based on the first electrical parameter and the second electrical parameter;
A second obtaining module 803 configured to obtain a third electrical parameter of a second wireless charging receiver of the test device when the test device obtains electrical energy from the device under test;
A second determining module 804 is configured to determine a recharging test result for the device under test based on the third electrical parameter.
In other alternative embodiments, the first electrical parameter comprises a current value and a voltage value of the first wireless charging receiver, and the second electrical parameter comprises a current value and a voltage value of the wireless charging transmitter, the first determination module 802 is further configured to:
Determining to output power of the device under test based on the current value and the voltage value of the first wireless charging receiver;
Determining power input to the test device based on the current value and voltage of the wireless charging transmitter;
and determining the positive charging test result based on the power input into the test equipment and the power output from the equipment to be tested.
In other alternative embodiments, the first determining module 802 is further configured to:
determining the efficiency of wireless charging of the device to be tested based on the power input to the test device and the power output to the device to be tested;
And comparing the wireless charging efficiency of the equipment to be tested with a first preset standard value, and determining the positive charging test result according to the comparison result.
In other alternative embodiments, the third electrical parameter includes a current value and a voltage value of the second wireless charging receiver, the second determination module 804 is further configured to:
Determining power input to the second wireless charging receiver based on the current value and the voltage value of the second wireless charging receiver;
And determining the reverse charging test result based on the power input to the second wireless charging receiver.
In other optional embodiments, the second determining module 804 is further configured to:
and comparing the power input into the second wireless charging receiver with a second preset standard value, and determining the positive charging test result according to the comparison result.
The specific manner in which the various modules perform the operations in the apparatus of the above embodiments have been described in detail in connection with the embodiments of the method, and will not be described in detail herein.
Fig. 9 is a block diagram of a hardware architecture of a test apparatus 900, according to an example embodiment. For example, apparatus 900 may be a mobile phone, computer, digital broadcast terminal, messaging device, game console, tablet device, medical device, exercise device, personal digital assistant, or the like.
Referring to FIG. 9, apparatus 900 may include one or more of a processing component 902, a memory 904, a power component 906, a multimedia component 908, an audio component 910, an input/output (I/O) interface 912, a sensor component 914, and a communication component 916.
The processing component 902 generally controls overall operations of the apparatus 900, such as operations associated with display, telephone calls, data communications, camera operations, and recording operations. The processing component 902 may include one or more processors 920 to execute instructions to perform all or part of the steps of the methods described above. Further, the processing component 902 can include one or more modules that facilitate interaction between the processing component 902 and other components. For example, the processing component 902 can include a multimedia module to facilitate interaction between the multimedia component 908 and the processing component 902.
The memory 904 is configured to store various types of data to support operations at the apparatus 900. Examples of such data include instructions for any application or method operating on the device 900, contact data, phonebook data, messages, pictures, videos, and the like. The memory 904 may be implemented by any type of volatile or nonvolatile memory device or combination thereof, such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disk.
The power component 906 provides power to the various components of the device 900. Power components 906 may include a power management system, one or more power sources, and other components associated with generating, managing, and distributing power for device 900.
The multimedia component 908 comprises a screen between the device 900 and the user that provides an output interface. In some embodiments, the screen may include a Liquid Crystal Display (LCD) and a Touch Panel (TP). If the screen includes a touch panel, the screen may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touches, swipes, and gestures on the touch panel. The touch sensor may sense not only the boundary of a touch or slide action, but also the duration and pressure associated with the touch or slide operation. In some embodiments, the multimedia component 908 includes a front-facing camera and/or a rear-facing camera. The front-facing camera and/or the rear-facing camera may receive external multimedia data when the apparatus 900 is in an operational mode, such as a photographing mode or a video mode. Each front camera and rear camera may be a fixed optical lens system or have focal length and optical zoom capabilities.
The audio component 910 is configured to output and/or input audio signals. For example, the audio component 910 includes a Microphone (MIC) configured to receive external audio signals when the device 900 is in an operational mode, such as a call mode, a recording mode, and a voice recognition mode. The received audio signals may be further stored in the memory 904 or transmitted via the communication component 916. In some embodiments, the audio component 910 further includes a speaker for outputting audio signals.
The I/O interface 912 provides an interface between the processing component 902 and peripheral interface modules, which may be keyboards, click wheels, buttons, etc. These buttons may include, but are not limited to, a home button, a volume button, an activate button, and a lock button.
The sensor assembly 914 includes one or more sensors for providing status assessment of various aspects of the apparatus 900. For example, the sensor assembly 914 may detect the on/off state of the device 900, the relative positioning of the components, such as the display and keypad of the device 900, the sensor assembly 914 may also detect the change in position of the device 900 or one component of the device 900, the presence or absence of user contact with the device 900, the orientation or acceleration/deceleration of the device 900, and the change in temperature of the device 900. The sensor assembly 914 may include a proximity sensor configured to detect the presence of nearby objects without any physical contact. The sensor assembly 914 may also include a light sensor, such as a CMOS or CCD image sensor, for use in imaging applications. In some embodiments, the sensor assembly 914 may also include an acceleration sensor, a gyroscopic sensor, a magnetic sensor, a pressure sensor, or a temperature sensor.
The communication component 916 is configured to facilitate communication between the apparatus 900 and other devices in a wired or wireless manner. The device 900 may access a wireless network based on a communication standard, such as WiFi,2G, or 6G, or a combination thereof. In one exemplary embodiment, the communication component 916 receives broadcast signals or broadcast-related information from an external broadcast management system via a broadcast channel. In one exemplary embodiment, the communication component 916 further includes a Near Field Communication (NFC) module to facilitate short range communications. For example, the NFC module may be implemented based on Radio Frequency Identification (RFID) technology, infrared data association (IrDA) technology, ultra Wideband (UWB) technology, bluetooth (BT) technology, and other technologies.
In an exemplary embodiment, apparatus 900 may be implemented by one or more Application Specific Integrated Circuits (ASICs), digital Signal Processors (DSPs), digital Signal Processing Devices (DSPDs), programmable Logic Devices (PLDs), field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic elements for executing the methods described above.
In an exemplary embodiment, a non-transitory computer readable storage medium is also provided, such as a memory 904 including instructions executable by the processor 920 of the apparatus 900 to perform the above-described method. For example, the non-transitory computer readable storage medium may be ROM, random Access Memory (RAM), CD-ROM, magnetic tape, floppy disk, optical data storage device, etc.
A non-transitory computer readable storage medium, which when executed by a processor of a test apparatus, causes the test apparatus to perform a test method, the method comprising:
Acquiring a first electrical parameter of a first wireless charging receiver of the device to be tested when the device to be tested is powered on based on the test device;
Transmitting the first electrical parameter and the second electrical parameter of the wireless charging transmitter to a terminal device, so that the terminal device determines a positive charging test result for the device to be tested based on the first electrical parameter and the second electrical parameter;
Acquiring a third electrical parameter of a second wireless charging receiver of the test equipment when the test equipment acquires electrical energy from the equipment to be tested;
And sending the third electrical parameter to the terminal equipment so that the terminal equipment determines a reverse charging test result aiming at the equipment to be tested based on the third electrical parameter.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This disclosure is intended to cover any adaptations, uses, or adaptations of the disclosure following the general principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the disclosure being indicated by the following claims.
It is to be understood that the present disclosure is not limited to the precise arrangements and instrumentalities shown in the drawings, and that various modifications and changes may be effected without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.