CN107864442B - Test method based on intelligent voice equipment, intelligent voice equipment and storage medium - Google Patents

Test method based on intelligent voice equipment, intelligent voice equipment and storage medium Download PDF

Info

Publication number
CN107864442B
CN107864442B CN201711032142.6A CN201711032142A CN107864442B CN 107864442 B CN107864442 B CN 107864442B CN 201711032142 A CN201711032142 A CN 201711032142A CN 107864442 B CN107864442 B CN 107864442B
Authority
CN
China
Prior art keywords
test
voltage
intelligent voice
voice device
mode
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Expired - Fee Related
Application number
CN201711032142.6A
Other languages
Chinese (zh)
Other versions
CN107864442A (en
Inventor
张增文
周志辉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
TCL Technology Electronics Huizhou Co Ltd
Original Assignee
TCL Technology Electronics Huizhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by TCL Technology Electronics Huizhou Co Ltd filed Critical TCL Technology Electronics Huizhou Co Ltd
Priority to CN201711032142.6A priority Critical patent/CN107864442B/en
Publication of CN107864442A publication Critical patent/CN107864442A/en
Application granted granted Critical
Publication of CN107864442B publication Critical patent/CN107864442B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04RLOUDSPEAKERS, MICROPHONES, GRAMOPHONE PICK-UPS OR LIKE ACOUSTIC ELECTROMECHANICAL TRANSDUCERS; DEAF-AID SETS; PUBLIC ADDRESS SYSTEMS
    • H04R29/00Monitoring arrangements; Testing arrangements
    • H04R29/001Monitoring arrangements; Testing arrangements for loudspeakers

Landscapes

  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Otolaryngology (AREA)
  • Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Acoustics & Sound (AREA)
  • Signal Processing (AREA)
  • Telephone Function (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The invention discloses a testing method based on intelligent voice equipment, the intelligent voice equipment and a storage medium. A voltage division circuit is arranged in the intelligent voice equipment, a first end of the voltage division circuit is connected with the adapter, and a second end of the voltage division circuit is grounded; the test method comprises the following steps: the intelligent voice equipment samples the voltage value of the voltage division point of the voltage division circuit, acquires the voltage division value and judges whether the voltage division value belongs to a first voltage range; when the divided voltage value belongs to the first voltage range, the operation mode of the intelligent voice equipment is adjusted to be the test mode, so that the intelligent voice equipment can enter the test mode quickly, the test efficiency of the intelligent voice equipment is improved, meanwhile, the input of the cost of the test equipment is reduced, and the production cost is saved.

Description

Test method based on intelligent voice equipment, intelligent voice equipment and storage medium
Technical Field
The invention belongs to the field of electronic product testing, and particularly relates to a testing method based on intelligent voice equipment, the intelligent voice equipment and a storage medium.
Background
With the continuous improvement of the technology level, artificial intelligence has gradually been merged into our daily life, and today various intelligent products are in the way, some intelligent voice devices or products are: bluetooth speaker, Wifi speaker, smart speaker chip etc. are also becoming familiar with.
Generally, an intelligent voice device operates through voice triggering, so that only one or few mechanical keys are usually provided, and when the device is used for function testing in a factory, a complex wireless routing device needs to be mounted, and then the wireless routing device is connected through a personal computer to perform testing operation, so that the cost of the device is high, and the testing time is long. In addition, even if the wireless router is used for testing, when a plurality of production lines are simultaneously produced, a plurality of router devices interfere with each other, and the testing efficiency is low.
The above is only for the purpose of assisting understanding of the technical aspects of the present invention, and does not represent an admission that the above is prior art.
Disclosure of Invention
The invention mainly aims to provide a testing method based on intelligent voice equipment, the intelligent voice equipment and a storage medium, and aims to solve the technical problems that the intelligent voice equipment cannot enter a testing mode quickly and the testing efficiency is low when the intelligent voice equipment is tested in the prior art.
In order to achieve the purpose, the invention provides a testing method based on intelligent voice equipment, wherein a voltage division circuit is arranged in the intelligent voice equipment, a first end of the voltage division circuit is connected with an adapter, and a second end of the voltage division circuit is grounded; the test method comprises the following steps:
the intelligent voice equipment samples the voltage value of the voltage division point of the voltage division circuit, acquires the voltage division value and judges whether the voltage division value belongs to a first voltage range;
and when the divided voltage value belongs to the first voltage range, adjusting the operation mode of the intelligent voice equipment to a test mode.
Preferably, when the divided voltage value belongs to the first voltage range, the adjusting the operation mode of the intelligent voice device to a test mode specifically includes:
when the divided voltage value belongs to the first voltage range, detecting the time length of the divided voltage value in the first voltage range;
and when the duration exceeds the preset duration, adjusting the running mode of the intelligent voice equipment to be a test mode.
Preferably, after the intelligent voice device samples a voltage value of a voltage division point of the voltage division circuit, obtains a voltage division value, and determines whether the voltage division value belongs to a first voltage range, the method further includes:
when the divided voltage value does not belong to the first voltage range, judging whether the divided voltage value belongs to a second voltage range;
and when the divided voltage value belongs to the second voltage range, adjusting the operation mode of the intelligent voice equipment to a normal operation mode.
Preferably, after determining whether the divided voltage value belongs to a second voltage range when the divided voltage value does not belong to the first voltage range, the test method further includes:
and when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, and adjusting the operation mode of the intelligent voice equipment to be a power-off protection mode.
Preferably, when the divided voltage value does not belong to the second voltage range, it is determined that the voltage provided by the adapter is an abnormal voltage, and the operation mode of the intelligent voice device is adjusted to a power-off protection mode, specifically including:
when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage;
and prompting the voltage abnormity according to a preset prompting mode, and blocking the adapter to continue supplying power so as to realize power-off protection.
Preferably, after the operating mode of the smart voice device is adjusted to the test mode when the divided voltage value belongs to the first voltage range, the test method further includes:
acquiring a device test instruction, and performing intelligent voice device function test according to the device test instruction;
and acquiring test error reporting information when the test fails, and sending the test error reporting information and the corresponding intelligent voice equipment identifier to a server.
Preferably, the obtaining of the test error reporting information when the test fails and the sending of the test error reporting information and the corresponding intelligent voice device identifier to the server specifically include:
acquiring test error reporting information when the test fails, and adjusting the operation mode of the intelligent voice equipment to a wireless access point mode to establish a wireless hotspot;
and when the server is detected to be connected to the wireless hotspot, sending the test error report information and the corresponding intelligent voice equipment identifier to the server.
Preferably, after the device test instruction is obtained and the intelligent voice device function test is performed according to the device test instruction, the test method further includes:
exiting the test mode when the test is successful, and prompting the test success through the preset prompting mode;
and when the prompt duration corresponding to the test success prompt exceeds a preset threshold, closing the test success prompt and blocking the adapter from continuing to supply power.
In addition, in order to achieve the above object, the present invention further provides an intelligent voice device, wherein a voltage dividing circuit is disposed in the intelligent voice device, a first end of the voltage dividing circuit is connected to the adapter, and a second end of the voltage dividing circuit is grounded;
wherein, intelligent speech equipment still includes: a memory, a processor, and a smart voice device based test program stored on the memory and executable on the processor, the smart voice device based test program configured to implement the steps of the smart voice device based test method as described above.
In addition, to achieve the above object, the present invention further provides a computer readable storage medium, wherein the storage medium stores a test program based on an intelligent voice device, and the test program based on the intelligent voice device, when executed by a processor, implements the steps of the test method based on the intelligent voice device as described above.
According to the intelligent voice device, the voltage value of the voltage division point of the built-in voltage division circuit is sampled to obtain the voltage division value, whether the voltage division value belongs to the first voltage range or not is judged, and when the voltage division value belongs to the first voltage range, the operation mode of the intelligent voice device is adjusted to the test mode, so that the intelligent voice device can quickly enter the test mode, the test efficiency of the intelligent voice device is improved, the cost of the test device is reduced, and the production cost is saved.
Drawings
FIG. 1 is a schematic structural diagram of an intelligent speech device in a hardware operating environment according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart of a first embodiment of a testing method based on intelligent voice equipment according to the present invention;
FIG. 3 is a schematic circuit diagram of a voltage divider circuit built in the smart audio device of the present invention;
FIG. 4 is a flowchart illustrating a second embodiment of the testing method based on intelligent voice device according to the present invention;
fig. 5 is a flowchart illustrating a testing method based on intelligent voice devices according to a third embodiment of the present invention.
The implementation, functional features and advantages of the objects of the present invention will be further explained with reference to the accompanying drawings.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
Referring to fig. 1, fig. 1 is a schematic structural diagram of an intelligent speech device in a hardware operating environment according to an embodiment of the present invention.
As shown in fig. 1, the smart voice device may include: a processor 1001, such as a CPU, a communication bus 1002, a user interface 1003, a network interface 1004, and a memory 1005. Wherein a communication bus 1002 is used to enable connective communication between these components. The user interface 1003 may include a Display screen (Display), an input unit such as a Keyboard (Keyboard), and the optional user interface 1003 may also include a standard wired interface, a wireless interface. The network interface 1004 may optionally include a standard wired interface, a wireless interface (e.g., WI-FI interface, bluetooth interface). The memory 1005 may be a high-speed RAM memory or a non-volatile memory (e.g., a magnetic disk memory). The memory 1005 may alternatively be a storage device independent of the processor 1001, and the voltage divider circuit 1006 divides the supply voltage provided by the adapter.
Those skilled in the art will appreciate that the architecture shown in FIG. 1 is not intended to be limiting of intelligent speech devices, and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
As shown in fig. 1, a memory 1005, which is a kind of computer storage medium, may include therein an operating system, a network communication module, a user interface module, and a smart voice device-based test program.
In the intelligent voice device shown in fig. 1, the network interface 1004 is mainly used for connecting to a server and performing data communication with the server; the user interface 1003 is mainly used to connect an adapter to turn on power; a voltage division circuit 1006 is arranged in the intelligent voice device, a first end of the voltage division circuit 1006 is connected with the adapter, and a second end of the voltage division circuit 1006 is grounded; the smart voice device calls, through the processor 1001, the smart voice device-based test program stored in the memory 1005, and performs the following operations:
sampling a voltage value of a voltage division point of the voltage division circuit to obtain a voltage division value, and judging whether the voltage division value belongs to a first voltage range;
and when the divided voltage value belongs to the first voltage range, adjusting the operation mode of the intelligent voice equipment to a test mode.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
when the divided voltage value belongs to the first voltage range, detecting the time length of the divided voltage value in the first voltage range;
and when the duration exceeds the preset duration, adjusting the running mode of the intelligent voice equipment to be a test mode.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
when the divided voltage value does not belong to the first voltage range, judging whether the divided voltage value belongs to a second voltage range;
and when the divided voltage value belongs to the second voltage range, adjusting the operation mode of the intelligent voice equipment to a normal operation mode.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
and when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, and adjusting the operation mode of the intelligent voice equipment to be a power-off protection mode.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage;
and prompting the voltage abnormity according to a preset prompting mode, and blocking the adapter to continue supplying power so as to realize power-off protection.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
acquiring a device test instruction, and performing intelligent voice device function test according to the device test instruction;
and acquiring test error reporting information when the test fails, and sending the test error reporting information and the corresponding intelligent voice equipment identifier to a server.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
acquiring test error reporting information when the test fails, and adjusting the operation mode of the intelligent voice equipment to a wireless access point mode to establish a wireless hotspot;
and when the server is detected to be connected to the wireless hotspot, sending the test error report information and the corresponding intelligent voice equipment identifier to the server.
Further, processor 1001 may invoke a smart voice device based test program stored in memory 1005 to also perform the following operations:
exiting the test mode when the test is successful, and prompting the test success through the preset prompting mode;
and when the prompt duration corresponding to the test success prompt exceeds a preset threshold, closing the test success prompt and blocking the adapter from continuing to supply power.
According to the intelligent voice device, the voltage value of the voltage division point of the built-in voltage division circuit is sampled to obtain the voltage division value, whether the voltage division value belongs to the first voltage range or not is judged, and when the voltage division value belongs to the first voltage range, the operation mode of the intelligent voice device is adjusted to the test mode, so that the intelligent voice device can enter the test mode quickly, the test efficiency of the intelligent voice device is improved, meanwhile, the cost of the test device is reduced, and the production cost is saved.
Based on the hardware structure, the embodiment of the test method based on the intelligent voice equipment is provided.
Referring to fig. 2, a first embodiment of the testing method based on the intelligent voice device is provided.
In this embodiment, a voltage dividing circuit is arranged in the intelligent voice device, a first end of the voltage dividing circuit is connected with the adapter, and a second end of the voltage dividing circuit is grounded; as shown in fig. 3, in a specific implementation, the voltage divider circuit may include: a first divider resistor R1 and a second divider resistor R2, a first end of the first divider resistor R1 is connected to an adapter, a second end of the first divider resistor R1 is connected to a first end of the second divider resistor R2, and a second end of the second divider resistor R2 is grounded; the second end of the first voltage-dividing resistor R1 (i.e. the first end of the second voltage-dividing resistor R2) is a voltage-dividing point, i.e. a sampling point for sampling the voltage value in this embodiment. In this embodiment, the resistances of the first voltage-dividing resistor R1 and the second voltage-dividing resistor R2 may be selected according to practical situations, which is not limited herein.
Correspondingly, the testing method based on the intelligent voice equipment comprises the following steps:
step S10: the intelligent voice equipment samples the voltage value of the voltage division point of the voltage division circuit, acquires the voltage division value and judges whether the voltage division value belongs to a first voltage range;
it should be noted that the main execution body of the method of this embodiment is an intelligent speech device, and the intelligent speech device may be a speech device or a product capable of performing speech recognition and implementing a corresponding function according to a recognition result, for example: bluetooth speaker, Wifi audio amplifier, intelligent audio amplifier chip etc. this embodiment does not put the restriction to this.
In addition, the intelligent voice device in this embodiment may be connected to a power supply through an adapter, and before step S10 is executed, the adapter needs to be modified to adjust the normal power supply voltage to a preset target voltage, so that the voltage connected to the first end of the first voltage dividing resistor R1 is the target voltage. In this embodiment, the specific voltage value of the target voltage may be set according to an actual situation, which is not limited in this embodiment.
In this embodiment, the first voltage range may be [ a (1-x) to a (1+ x) ], where a (1-x) is a first lower limit voltage, and a (1+ x) is a first upper limit voltage; the a is a voltage value of the target voltage divided by the first voltage dividing resistor R1, and a is a target voltage x [ R2/(R1+ R2) ]; the x is a preset error coefficient, the value range of the x is (0-1), the specific value can be determined according to the actual situation, and this embodiment is not limited thereto.
In a specific implementation, the intelligent voice device samples a voltage value of a voltage division point in the voltage division circuit through a built-in Analog Digital (AD) detection interface, obtains a voltage division voltage value (i.e., an actually measured voltage value) of the target voltage after being divided by the first voltage division resistor R1, and determines whether the voltage division voltage value belongs to the first voltage range.
Step S20: and when the divided voltage value belongs to the first voltage range, adjusting the operation mode of the intelligent voice equipment to a test mode.
It should be noted that the test mode is an operation mode in which the intelligent voice device performs factory test on functions of the device, such as radio frequency, voice signal acquisition, voice signal processing, and frequency response.
In specific implementation, when the intelligent voice device detects that the divided voltage value meets the condition that a (1-x) < the divided voltage value < a (1+ x), "it is determined that the divided voltage value belongs to the first voltage range, and the operation mode of the intelligent voice device is adjusted to a test mode, so that the intelligent voice device can quickly enter the test mode, and the test efficiency is improved.
Furthermore, in order to enable the judgment result of the intelligent voice equipment to be more accurate, the voltage value sampling deviation caused by accidental errors is eliminated, and the sampling result is distorted. In this embodiment, the step S20 further specifically includes: when the divided voltage value belongs to the first voltage range, detecting the time length of the divided voltage value in the first voltage range; and when the duration exceeds the preset duration, adjusting the running mode of the equipment to be a test mode.
It can be understood that, in the actual voltage value sampling process, the situation that the power supply of the adapter is unstable or the resistance value of the voltage dividing resistor in the voltage dividing circuit changes may occur, and these situations may cause the voltage value sampling result to be high or low, thereby affecting the judgment result, so as to ensure the accuracy of the judgment result, the stability of the sampled voltage dividing value can be detected by setting a preset duration, and accidental errors are eliminated, for example: setting the preset time length to 5 seconds, if the divided voltage values detected in 6 seconds of the intelligent voice equipment are respectively 4.95V, 4.9V, 5V, 5.1V and 5.05V and all belong to a first voltage range (4.8V-5.2V), judging that the divided voltage values are stable in the first voltage range, and adjusting the operation mode of the intelligent voice equipment to be a test mode.
In this embodiment, the intelligent voice device obtains a divided voltage value by sampling a voltage value at a voltage dividing point of the built-in voltage dividing circuit, and determines whether the divided voltage value belongs to a first voltage range, and when the divided voltage value belongs to the first voltage range, adjusts an operation mode of the intelligent voice device to a test mode, so that the intelligent voice device enters the test mode quickly, thereby improving test efficiency of the intelligent voice device, reducing cost of the test device, and saving production cost.
Referring to fig. 4, fig. 4 is a flowchart illustrating a second embodiment of a testing method based on an intelligent voice device according to the present invention.
Based on the first embodiment, after step S10, the testing method based on the intelligent speech device provided in this embodiment further includes:
step S30: when the divided voltage value does not belong to the first voltage range, judging whether the divided voltage value belongs to a second voltage range;
in this embodiment, the second voltage range is [ b (1-x) -b (1+ x) ], where b (1-x) is a second lower limit voltage and b (1+ x) is a second upper limit voltage; the b is a voltage value obtained by dividing a normal power supply voltage (i.e., a voltage provided by an unmodified adapter) by the first voltage dividing resistor R1, and b is a normal power supply voltage x [ R2/(R1+ R2) ], where a value of x in this embodiment is identical to a value of x in the above embodiment. In addition, in this embodiment, the second upper limit voltage is higher than the first upper limit voltage, and the second lower limit voltage is lower than the first lower limit voltage.
In a specific implementation, when the intelligent voice device detects that the divided voltage value does not belong to the first voltage range, whether the divided voltage value belongs to a second voltage range is continuously judged according to a preset second voltage range.
Step S40: and when the divided voltage value belongs to the second voltage range, adjusting the operation mode of the intelligent voice equipment to a normal operation mode.
It should be noted that the normal operating mode is an operating mode of the intelligent voice device in a normal situation, taking the intelligent sound box as an example, the normal operating mode of the intelligent sound box may be to receive a voice instruction input by a user after the intelligent sound box is powered on, and complete a corresponding action according to the voice instruction, such as playing/pausing of audio, adjusting audio/volume, pushing songs, and the like, or be used as a speaker when being externally connected to a user device such as a mobile phone, a tablet computer, a notebook computer, and the like according to a user requirement, which is not limited in this embodiment.
In a specific implementation, when the intelligent voice device detects that the divided voltage value belongs to the second voltage range, the operation mode of the intelligent voice device is adjusted to the normal operation mode.
Further, the intelligent voice device is prevented from being damaged due to the fact that voltage provided by the adapter is abnormal in the testing process of the intelligent voice device. After the step S30, the testing method based on the smart voice device further includes:
and when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, and adjusting the operation mode of the intelligent voice equipment to be a power-off protection mode.
It should be noted that the power-off protection mode may be a mode in which a power supply currently connected to the intelligent voice device is cut off, so that the intelligent voice device is in a power-off state.
It can be understood that when the intelligent voice device detects that the divided voltage value does not belong to the second voltage range, the current voltage provided by the adapter is determined to be an abnormal voltage, and at this time, in order to ensure that electrical components inside the intelligent voice device are not damaged and unnecessary economic loss is caused, the intelligent voice device may adjust the operation mode of the intelligent voice device to the power-off protection mode. In this embodiment, when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage, and adjusting the operation mode of the intelligent voice device to a power-off protection mode may specifically include:
step S501: when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage;
step S502: and prompting the voltage abnormity according to a preset prompting mode, and blocking the adapter to continue supplying power so as to realize power-off protection.
It should be noted that the preset prompting mode may be a mode of voice broadcasting a preset warning voice; or displaying preset alarm characters or diagrams through a human-computer interaction panel; the mode of driving a preset alarm prompting lamp (such as an LED lamp) to flicker is also available. Of course, the preset prompting manner may include any one or more of the prompting manners described above, which is not limited in this embodiment.
It can be understood that, in order to prevent the voltage supplied by the adapter from exceeding the working voltage of some electrical components, an electrical component with a power-off protection function may be arranged in the intelligent voice device in advance to cut off the power supplied by the adapter when the voltage supplied by the adapter is detected to be an abnormal voltage, so as to implement power-off protection.
In this embodiment, when the divided voltage value belongs to the second voltage range, the intelligent voice device adjusts the operation mode of the intelligent voice device to a normal operation mode; when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, prompting the voltage abnormality according to a preset prompting mode, and simultaneously blocking the adapter to continuously supply power; therefore, power-off protection of the intelligent voice equipment is realized when the access voltage is abnormal.
Referring to fig. 5, fig. 5 is a schematic flowchart of a testing method based on intelligent voice equipment according to a third embodiment of the present invention.
Based on the first embodiment, after step S20, the testing method based on the intelligent speech device provided in this embodiment further includes:
step S201: acquiring a device test instruction, and performing intelligent voice device function test according to the device test instruction;
it should be noted that the device test instruction may include a pre-input detection program to be executed or a function item to be tested corresponding to the detection program, where the function item to be tested may include: a radio frequency function, a voice signal collecting function, a voice signal processing function, a frequency response function, etc., which are not limited in this embodiment.
In a specific implementation, when the intelligent voice device enters the test mode, the intelligent voice device tests various functions of the intelligent voice device by acquiring and executing a device test instruction input in advance, and acquires a corresponding detection result.
Step S202: and acquiring test error reporting information when the test fails, and sending the test error reporting information and the corresponding intelligent voice equipment identifier to a server.
When specifically realizing, when intelligence voice equipment detects certain functional test failure in the test process and reports wrong, can generate corresponding test and report wrong information, for example when the speech signal that different microphones in the microphone array that sets up in the intelligence voice equipment gathered when great deviation has appeared, will generate corresponding speech signal collection function and report wrong information, this moment intelligence voice equipment can send the test that generates and report wrong information and corresponding intelligent voice equipment sign to the server, intelligent voice equipment sign can the hardware identification number that intelligence voice equipment corresponds, identification code, the serial number of leaving the factory or other identification information that can carry out equipment identity discernment.
Further, in order to report the test error reporting information to the server efficiently and quickly, in this embodiment, the step S202 may specifically include:
acquiring test error reporting information when the test fails, and adjusting the operation mode of the intelligent voice equipment to a wireless access point mode to establish a wireless hotspot;
and when the server is detected to be connected to the wireless hotspot, sending the test error report information and the corresponding intelligent voice equipment identifier to the server.
In this embodiment, the intelligent voice device obtains test error reporting information when the test fails, and adjusts the operation mode of the intelligent voice device to an Access Point (AP) mode, that is, establishes an Access Point (wireless hotspot) of a wireless network, so that when the server is connected to the wireless Access Point, the test error reporting information and a corresponding device identifier are sent to the server through the established network connection between the intelligent voice device and the server, so that the server obtains and counts the intelligent voice device with a test error on the current production line and a corresponding error reporting function category in real time.
Correspondingly, after the intelligent voice device obtains a device test instruction and performs a device function test according to the device test instruction, the method further includes:
exiting the test mode when the test is successful, and prompting the test success through the preset prompting mode;
and when the prompt duration corresponding to the test success prompt exceeds a preset threshold, closing the test success prompt and blocking the adapter from continuing to supply power.
It should be noted that, in order to avoid the situation that the intelligent voice device continuously prompts the success of the test, the test cost is increased. A threshold (i.e., a preset threshold) may be preset to turn off the test success prompt when the prompt duration corresponding to the test success prompt exceeds the preset threshold. The preset threshold may be set according to needs, for example, 15 seconds, 20 seconds, or 30 seconds, and this embodiment is not limited thereto.
Understandably, in order to save the test cost, the energy consumption is reduced. In this embodiment, the intelligent voice device may further block the adapter from continuing to supply power after the test is successful through a preset electrical component having a power-off protection function, so as to achieve the purpose of saving energy.
In this embodiment, after the operation mode of the intelligent voice device is adjusted to the test mode, the intelligent voice device acquires a device test instruction, performs a function test on the intelligent voice device according to the device test instruction, acquires test error reporting information when the test fails, adjusts the operation mode of the intelligent voice device to a wireless access point mode to establish a wireless hotspot, and can efficiently and quickly send the test error reporting information and a corresponding intelligent voice device identifier to a server when the server is detected to be connected to the wireless hotspot, thereby reducing the time consumption of the process and improving the test efficiency.
In addition, an embodiment of the present invention further provides a storage medium, where the storage medium stores a test program based on an intelligent voice device, and when the test program based on the intelligent voice device is executed by a processor, the following operations are implemented:
sampling a voltage value of a voltage division point of the voltage division circuit to obtain a voltage division value, and judging whether the voltage division value belongs to a first voltage range;
and when the divided voltage value belongs to the first voltage range, adjusting the operation mode of the intelligent voice equipment to a test mode.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
when the divided voltage value belongs to the first voltage range, detecting the time length of the divided voltage value in the first voltage range;
and when the duration exceeds the preset duration, adjusting the running mode of the intelligent voice equipment to be a test mode.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
when the divided voltage value does not belong to the first voltage range, judging whether the divided voltage value belongs to a second voltage range;
and when the divided voltage value belongs to the second voltage range, adjusting the operation mode of the intelligent voice equipment to a normal operation mode.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
and when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, and adjusting the operation mode of the intelligent voice equipment to be a power-off protection mode.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage;
and prompting the voltage abnormity according to a preset prompting mode, and blocking the adapter to continue supplying power so as to realize power-off protection.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
acquiring a device test instruction, and performing intelligent voice device function test according to the device test instruction;
and acquiring test error reporting information when the test fails, and sending the test error reporting information and the corresponding intelligent voice equipment identifier to a server.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
acquiring test error reporting information when the test fails, and adjusting the operation mode of the intelligent voice equipment to a wireless access point mode to establish a wireless hotspot;
and when the server is detected to be connected to the wireless hotspot, sending the test error report information and the corresponding intelligent voice equipment identifier to the server.
Further, the test program based on the intelligent voice device further realizes the following operations when being executed by the processor:
exiting the test mode when the test is successful, and prompting the test success through the preset prompting mode;
and when the prompt duration corresponding to the test success prompt exceeds a preset threshold, closing the test success prompt and blocking the adapter from continuing to supply power.
According to the intelligent voice device, the voltage value of the voltage division point of the built-in voltage division circuit is sampled to obtain the voltage division value, whether the voltage division value belongs to the first voltage range or not is judged, and when the voltage division value belongs to the first voltage range, the operation mode of the intelligent voice device is adjusted to the test mode, so that the intelligent voice device can enter the test mode quickly, the test efficiency of the intelligent voice device is improved, the cost input of testing the intelligent voice device is reduced, and the production cost is saved.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or system that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or system. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or system that comprises the element.
The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
The usage of the words first, second and third, etcetera herein do not indicate any ordering. These words may be interpreted as names.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in the storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
The above description is only a preferred embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes, which are made by using the information in the specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.

Claims (9)

1. A testing method based on intelligent voice equipment is characterized in that a voltage division circuit is arranged in the intelligent voice equipment, a first end of the voltage division circuit is connected with an adapter, and a second end of the voltage division circuit is grounded; the test method comprises the following steps:
the intelligent voice equipment samples the voltage value of the voltage division point of the voltage division circuit, acquires the voltage division value and judges whether the voltage division value belongs to a first voltage range;
when the divided voltage value belongs to the first voltage range, detecting the time length of the divided voltage value in the first voltage range;
and when the duration exceeds the preset duration, adjusting the running mode of the intelligent voice equipment to be a test mode.
2. The intelligent voice device-based test method according to claim 1, wherein after the intelligent voice device samples a voltage value of a voltage division point of the voltage division circuit, obtains a divided voltage value, and determines whether the divided voltage value belongs to a first voltage range, the method further comprises:
when the divided voltage value does not belong to the first voltage range, judging whether the divided voltage value belongs to a second voltage range;
and when the divided voltage value belongs to the second voltage range, adjusting the operation mode of the intelligent voice equipment to a normal operation mode.
3. The intelligent voice device-based test method according to claim 2, wherein after determining whether the divided voltage value belongs to a second voltage range when the divided voltage value does not belong to the first voltage range, the test method further comprises:
and when the divided voltage value does not belong to the second voltage range, judging that the voltage provided by the adapter is abnormal voltage, and adjusting the operation mode of the intelligent voice equipment to be a power-off protection mode.
4. The intelligent voice device-based testing method according to claim 3, wherein when the divided voltage value does not belong to the second voltage range, it is determined that the voltage provided by the adapter is an abnormal voltage, and the operation mode of the intelligent voice device is adjusted to a power-off protection mode, specifically comprising:
when the divided voltage value does not belong to the second voltage range, determining that the voltage provided by the adapter is an abnormal voltage;
and prompting the voltage abnormity according to a preset prompting mode, and blocking the adapter to continue supplying power so as to realize power-off protection.
5. The smart voice device-based test method according to any one of claims 1 to 4, wherein after the adjusting the operation mode of the smart voice device to the test mode when the divided voltage value belongs to the first voltage range, the test method further comprises:
acquiring a device test instruction, and performing intelligent voice device function test according to the device test instruction;
and acquiring test error reporting information when the test fails, and sending the test error reporting information and the corresponding intelligent voice equipment identifier to a server.
6. The intelligent voice device-based testing method according to claim 5, wherein the obtaining of the test error information when the test fails, and sending the test error information and the corresponding intelligent voice device identifier to a server specifically include:
acquiring test error reporting information when the test fails, and adjusting the operation mode of the intelligent voice equipment to a wireless access point mode to establish a wireless hotspot;
and when the server is detected to be connected to the wireless hotspot, sending the test error report information and the corresponding intelligent voice equipment identifier to the server.
7. The intelligent voice device-based testing method of claim 5, wherein after obtaining the device testing instruction and performing the intelligent voice device function test according to the device testing instruction, the testing method further comprises:
exiting the test mode when the test is successful, and prompting the test success through a preset prompting mode;
and when the prompt duration corresponding to the test success prompt exceeds a preset threshold, closing the test success prompt and blocking the adapter from continuing to supply power.
8. The intelligent voice device is characterized in that a voltage division circuit is arranged in the intelligent voice device, a first end of the voltage division circuit is connected with an adapter, and a second end of the voltage division circuit is grounded;
wherein, intelligent speech equipment still includes: a memory, a processor, and a smart voice device based test program stored on the memory and executable on the processor, the smart voice device based test program configured to implement the steps of the smart voice device based test method as claimed in any one of claims 1 to 7.
9. A storage medium having stored thereon a test program for a smart voice device, the test program for a smart voice device implementing the steps of the test method for a smart voice device according to any one of claims 1 to 7 when executed by a processor.
CN201711032142.6A 2017-10-27 2017-10-27 Test method based on intelligent voice equipment, intelligent voice equipment and storage medium Expired - Fee Related CN107864442B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711032142.6A CN107864442B (en) 2017-10-27 2017-10-27 Test method based on intelligent voice equipment, intelligent voice equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711032142.6A CN107864442B (en) 2017-10-27 2017-10-27 Test method based on intelligent voice equipment, intelligent voice equipment and storage medium

Publications (2)

Publication Number Publication Date
CN107864442A CN107864442A (en) 2018-03-30
CN107864442B true CN107864442B (en) 2021-02-05

Family

ID=61697433

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711032142.6A Expired - Fee Related CN107864442B (en) 2017-10-27 2017-10-27 Test method based on intelligent voice equipment, intelligent voice equipment and storage medium

Country Status (1)

Country Link
CN (1) CN107864442B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108900959B (en) * 2018-05-30 2020-09-11 北京百度网讯科技有限公司 Method, device, equipment and computer readable medium for testing voice interaction equipment
CN108816801A (en) * 2018-07-24 2018-11-16 上海庆科信息技术有限公司 A kind of method, apparatus and system of the lamp tone testing of intelligent sphere bubble
CN109766276B (en) * 2018-12-29 2024-01-12 通力科技股份有限公司 Open platform test method, device, computer readable storage medium and system

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201387457Y (en) * 2009-03-13 2010-01-20 天津三星电子显示器有限公司 Electrical property testing device of front frame keys of display
CN104407883A (en) * 2014-10-28 2015-03-11 联想(北京)有限公司 Control method and electronic equipment
CN104569673A (en) * 2014-12-30 2015-04-29 广东欧珀移动通信有限公司 Test circuit, method and device
CN106331975A (en) * 2016-08-18 2017-01-11 上海智臻智能网络科技股份有限公司 Fault detection method, device and system for intelligent voice interaction equipment
CN107085180A (en) * 2017-04-10 2017-08-22 佛山市顺德区美的电热电器制造有限公司 Automated detection method and device, processor, the household electrical appliance of touch key-press
CN206559621U (en) * 2017-03-01 2017-10-13 Tcl新技术(惠州)有限公司 A kind of electric equipment and its power-fail detection circuit
CN107257533A (en) * 2017-05-23 2017-10-17 杭州兆华电子有限公司 A kind of impedance triggers automated testing method

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201387457Y (en) * 2009-03-13 2010-01-20 天津三星电子显示器有限公司 Electrical property testing device of front frame keys of display
CN104407883A (en) * 2014-10-28 2015-03-11 联想(北京)有限公司 Control method and electronic equipment
CN104569673A (en) * 2014-12-30 2015-04-29 广东欧珀移动通信有限公司 Test circuit, method and device
CN106331975A (en) * 2016-08-18 2017-01-11 上海智臻智能网络科技股份有限公司 Fault detection method, device and system for intelligent voice interaction equipment
CN206559621U (en) * 2017-03-01 2017-10-13 Tcl新技术(惠州)有限公司 A kind of electric equipment and its power-fail detection circuit
CN107085180A (en) * 2017-04-10 2017-08-22 佛山市顺德区美的电热电器制造有限公司 Automated detection method and device, processor, the household electrical appliance of touch key-press
CN107257533A (en) * 2017-05-23 2017-10-17 杭州兆华电子有限公司 A kind of impedance triggers automated testing method

Also Published As

Publication number Publication date
CN107864442A (en) 2018-03-30

Similar Documents

Publication Publication Date Title
CN107864442B (en) Test method based on intelligent voice equipment, intelligent voice equipment and storage medium
CN111183561A (en) Charging control method and device, electronic equipment and computer readable storage medium
CN108268366B (en) Test case execution method and device
CN108663627B (en) Battery self-discharge detection method and battery self-discharge detection device
CN109101375B (en) Method for repairing fault, server and testing device
CN110888042B (en) Method and equipment for testing ASIC chip wafer and computer storage medium
CN106413070B (en) A kind of power regulating method, mobile terminal and computer readable storage medium
CN106776301B (en) Subelement testing method and device
CN111008090B (en) Battery electric quantity control method and device, storage medium and terminal equipment
CN113940033B (en) User identification method and related product
CN106095566B (en) Response control method and mobile terminal
CN109688611B (en) Frequency band parameter configuration method, device, terminal and storage medium
CN109687922B (en) Signal monitoring method and device of wireless network, storage medium and mobile terminal
CN112415367B (en) Drive chip abnormality detection method, drive chip abnormality detection device, electronic device and readable storage medium
CN101854427A (en) Method for reminding operation start and mobile terminal
CN102944734A (en) Method for monitoring terminal state, monitoring circuit and terminal
CN107390077B (en) Test method, test device and computer readable storage medium
CN111596827B (en) Icon display control method and device, storage medium and mobile terminal
CN111866644B (en) Bluetooth headset, detection method and device of Bluetooth headset and storage medium
CN112084084B (en) Electronic equipment, detection method and device
CN110994052B (en) Method and device for prolonging battery endurance, storage medium and terminal equipment
CN106850340A (en) The detection method of detection instrument and vehicle-bone 3 G/4G communication modules
CN112351361A (en) Earphone in-out box detection method and earphone box
CN111193558A (en) Radio frequency parameter calibration method and device, storage medium and mobile terminal
CN105278967B (en) System updating method, device and system of mobile terminal

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20210205

Termination date: 20211027