CN111341090B - Bluetooth remote controller pressure measurement method, control device and computer readable storage medium - Google Patents
Bluetooth remote controller pressure measurement method, control device and computer readable storage medium Download PDFInfo
- Publication number
- CN111341090B CN111341090B CN202010146459.8A CN202010146459A CN111341090B CN 111341090 B CN111341090 B CN 111341090B CN 202010146459 A CN202010146459 A CN 202010146459A CN 111341090 B CN111341090 B CN 111341090B
- Authority
- CN
- China
- Prior art keywords
- test
- remote controller
- bluetooth remote
- bluetooth
- sent
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C25/00—Arrangements for preventing or correcting errors; Monitoring arrangements
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C17/00—Arrangements for transmitting signals characterised by the use of a wireless electrical link
- G08C17/02—Arrangements for transmitting signals characterised by the use of a wireless electrical link using a radio link
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N17/00—Diagnosis, testing or measuring for television systems or their details
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/41—Structure of client; Structure of client peripherals
- H04N21/422—Input-only peripherals, i.e. input devices connected to specially adapted client devices, e.g. global positioning system [GPS]
- H04N21/42204—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor
- H04N21/42206—User interfaces specially adapted for controlling a client device through a remote control device; Remote control devices therefor characterized by hardware details
- H04N21/42221—Transmission circuitry, e.g. infrared [IR] or radio frequency [RF]
-
- G—PHYSICS
- G08—SIGNALLING
- G08C—TRANSMISSION SYSTEMS FOR MEASURED VALUES, CONTROL OR SIMILAR SIGNALS
- G08C2201/00—Transmission systems of control signals via wireless link
- G08C2201/50—Receiving or transmitting feedback, e.g. replies, status updates, acknowledgements, from the controlled devices
Abstract
The invention provides a Bluetooth remote controller pressure measurement method, control equipment and a computer readable storage medium, wherein the method comprises the following steps: receiving a test instruction of a user, and sending a drive control signal corresponding to the test instruction to the Bluetooth remote controller so that the Bluetooth remote controller sends a code value corresponding to the drive control signal; and detecting a Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to a judgment result. The Bluetooth remote controller sends the driving control signal corresponding to the test instruction to the display terminal after receiving the user control instruction, and then the Bluetooth connection zone bit of the display terminal is obtained to judge whether the code value is sent successfully or not, so that whether the pressure test is successful or not is judged, manual judgment is not needed, and the test efficiency is greatly improved.
Description
Technical Field
The invention relates to the field of hardware testing, in particular to a Bluetooth remote controller pressure testing method, control equipment and a computer readable storage medium.
Background
With the continuous development of smart televisions, the functions of televisions are more and more complex, the former televisions are all remote controls of televisions through infrared remote controllers, and with the evolution of the technology, the bluetooth remote controllers become mainstream due to the advantages of low power consumption, more sensitive operation, long endurance time and the like. At present, the test of the bluetooth remote controller needs to be completed manually before leaving the factory, however, because the bluetooth remote controller has many and complicated test items, the production efficiency is greatly influenced by manually testing the bluetooth remote controller.
Disclosure of Invention
The invention mainly aims to provide a Bluetooth remote controller pressure test method, control equipment and a computer readable storage medium, and aims to solve the problem that manual testing of a Bluetooth remote controller in the prior art is low in efficiency.
In order to achieve the above object, the present invention provides a bluetooth remote controller pressure measurement method, which is applied to a control device, wherein the control device is respectively connected with a display terminal and the bluetooth remote controller, and the method comprises the following steps:
receiving a test instruction of a user, and sending a drive control signal corresponding to the test instruction to the Bluetooth remote controller so that the Bluetooth remote controller sends a code value corresponding to the drive control signal;
and detecting a Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to a judgment result.
Optionally, the step of determining whether the code value is successfully transmitted according to the bluetooth connection flag bit to determine whether the pressure measurement is successful according to the determination result includes:
judging whether the Bluetooth connection zone bit is in a preset state corresponding to the test instruction or not;
if the Bluetooth connection flag bit is not in a preset state corresponding to the test instruction, setting the judgment result as the code value transmission failure so as to determine the pressure test failure according to the judgment result;
and if the Bluetooth connection zone bit is in a preset state corresponding to the test instruction, setting the judgment result as the code value to be successfully sent so as to determine that the pressure test is successful according to the judgment result.
Optionally, the step of setting the judgment result as the code value, so as to determine that the pressure measurement is successful according to the judgment result includes:
setting the judgment result as the code value to be successfully sent, and judging whether the cumulative number of times of successful sending of the code value reaches the preset test number of times;
when the preset test times are not reached, continuously sending a driving control signal corresponding to the test instruction to the Bluetooth remote controller;
and when the preset test times are reached, determining that the pressure test is successful.
Optionally, the step of receiving a test instruction of a user and sending a drive control signal corresponding to the test instruction to the bluetooth remote controller includes:
receiving a test instruction of a user, establishing a drive control signal queue to be sent according to the test instruction, and sending a first priority drive control signal to the Bluetooth remote controller;
the step of determining the success of the pressure measurement according to the judgment result comprises:
determining that the pressure test operation executed when the current control instruction is taken as the test instruction is successful according to the judgment result, and judging whether the drive control signal to be sent exists in the drive control signal queue to be sent or not;
if not, determining that the pressure measurement is successful;
if yes, deleting the first priority drive control signal, taking the next drive control signal in the same order as the first priority drive control signal, and executing the following steps: and sending a first priority driving control signal to the Bluetooth remote controller.
Optionally, when the test instruction sent by the user is a pairing instruction and a clearing instruction in sequence, the preset state corresponding to the test instruction is a connection state and a non-connection state in sequence;
when the test instruction sent by the user at a single time comprises a shutdown test instruction and a startup test instruction which are sent in sequence, the preset state corresponding to the test instruction is a connection state;
when the test instruction sent by the user at a single time comprises a random key value test instruction sent at a set time interval, the preset state corresponding to the test instruction is a connection state.
Optionally, when the test instruction sent by the user at a single time includes a shutdown test instruction and a startup test instruction that are sent in sequence, or when the test instruction sent by the user at a single time includes a random key value test instruction that is sent every specified time, before the step of sending the drive control signal corresponding to the test instruction to the bluetooth remote controller, the method further includes:
and sequentially sending a clear allocation instruction and a pairing instruction to the Bluetooth remote controller so as to enable the Bluetooth remote controller to be connected with a display terminal after being reset.
Optionally, the step of determining that the pressure measurement fails according to the determination result includes:
and generating test problem data according to the Bluetooth connection zone bit and the preset state corresponding to the test instruction, and sending the test problem data to a tester.
Optionally, the step of sending the test question data to a tester includes:
detecting whether the size of the test problem data exceeds a preset value;
if yes, compressing all the test problem data, and sending the compressed data to a tester;
if not, directly feeding back all the test problem data to the tester.
To achieve the above object, the present invention further provides a control device, which includes a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the computer program, when executed by the processor, implements the steps of the bluetooth remote controller pressure measurement method as described above.
To achieve the above object, the present invention further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the bluetooth remote controller pressure measurement method as described above.
According to the Bluetooth remote controller pressure test method, the control equipment and the computer readable storage medium, the Bluetooth remote controller sends a code value corresponding to a drive control signal by receiving a test instruction of a user and sending the drive control signal corresponding to the test instruction to the Bluetooth remote controller; and detecting a Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to a judgment result. The Bluetooth remote controller sends the driving control signal corresponding to the test instruction to the display terminal after receiving the user control instruction, and then the Bluetooth connection zone bit of the display terminal is obtained to judge whether the code value is sent successfully or not, so that whether the pressure test is successful or not is judged, manual judgment is not needed, and the test efficiency is greatly improved.
Drawings
Fig. 1 is a schematic flow chart of a pressure measurement method of a bluetooth remote controller according to a first embodiment of the present invention;
fig. 2 is a detailed flowchart of step S20 of the bluetooth remote controller pressure measuring method according to the second embodiment of the present invention;
fig. 3 is a detailed flowchart of the step of setting the determination result as the code value to be successfully transmitted in step S23 to determine that the pressure measurement is successful according to the determination result in the third embodiment of the method for pressure measuring a bluetooth remote controller according to the present invention;
fig. 4 is a schematic block diagram of the control device of the present invention.
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.
The invention provides a Bluetooth remote controller pressure measurement method, which is applied to control equipment, wherein the control equipment is respectively connected with a display terminal and a Bluetooth remote controller, and referring to fig. 1, fig. 1 is a flow schematic diagram of a first embodiment of the Bluetooth remote controller pressure measurement method, and the method comprises the following steps:
step S10, receiving a test instruction of a user, and sending a drive control signal corresponding to the test instruction to the Bluetooth remote controller, so that the Bluetooth remote controller sends a code value corresponding to the drive control signal;
in this embodiment, after the PCB board in the bluetooth remote controller is connected to the USB interface and the driver chip, the bluetooth remote controller is simulated, and power is supplied through the USB interface which supplies power to the control device and communicates with the control device, where the USB interface supplies power to the control device at 5V. The PCB, the USB interface and the driving chip form a Bluetooth pressure measurement device.
The system of the control equipment is provided with a test flow script, a user sends a test instruction by running different test flow scripts, and the related performance and function pressure test of the Bluetooth remote controller under different conditions are simulated by controlling and utilizing the communication of the serial port and the Bluetooth remote controller. The test instruction comprises drive control signal information and sending time corresponding to the code value to be sent, time intervals and test times of sending a plurality of drive control signals and the like. Before pressure measurement, a serial port corresponding to the bluetooth remote controller needs to be selected at the control device end, and after parameters such as baud rate, data bit, parity check bit and the like are set, the serial port is connected with the bluetooth remote controller, and the bluetooth remote controller is placed in an effective working range relative to the display terminal.
And step S20, detecting the Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to the judgment result.
The method comprises the steps that a value of a Bluetooth connection zone bit prop is obtained through a serial port of a display terminal, the Bluetooth connection zone bit has two states of connection and disconnection, connection indicates that corresponding Bluetooth equipment is connected with the current display terminal through Bluetooth, and disconnection indicates that the corresponding Bluetooth equipment is not connected with the current display terminal through Bluetooth. Whether the current Bluetooth connection state is consistent with the Bluetooth connection state required by the test instruction or not can be judged through the Bluetooth zone bit, so that whether the pressure test is successful or not is judged.
The embodiment receives a test instruction of a user, and sends a drive control signal corresponding to the test instruction to the Bluetooth remote controller, so that the Bluetooth remote controller sends a code value corresponding to the drive control signal; and detecting a Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to a judgment result. The Bluetooth remote controller sends the driving control signal corresponding to the test instruction to the display terminal after receiving the user control instruction, and then the Bluetooth connection zone bit of the display terminal is obtained to judge whether the code value is sent successfully or not, so that whether the pressure test is successful or not is judged, manual judgment is not needed, and the test efficiency is greatly improved.
Further, referring to fig. 2, in the second embodiment of the bluetooth remote controller pressure measuring method of the present invention proposed based on the first embodiment of the present invention, the step S20 includes the steps of:
step S21, judging whether the Bluetooth connection zone bit is in a preset state corresponding to the test instruction;
step S22, if the Bluetooth connection flag bit is not in the preset state corresponding to the test instruction, setting the judgment result as the code value transmission failure, and determining the pressure test failure according to the judgment result;
and step S23, if the Bluetooth connection flag bit is in a preset state corresponding to the test instruction, setting the judgment result as the code value to be successfully sent, so as to determine that the pressure test is successful according to the judgment result.
After the Bluetooth remote controller is controlled to send the code value according to the test instruction, when the acquired Bluetooth connection flag bit of the display terminal is consistent with the preset state corresponding to the test instruction, the display terminal can be confirmed to receive the code value sent by the Bluetooth remote controller, and corresponding operation is executed according to the code value, so that the code value can be confirmed to be successfully sent, and the success of the pressure test at this time can be further confirmed. The preset state corresponding to the test instruction is the expected state of the Bluetooth connection zone bit of the display terminal after the Bluetooth remote controller is controlled to send the code value according to the test instruction.
Whether the code value is successfully sent is determined according to whether the Bluetooth connection zone bit is the preset state corresponding to the test instruction or not, and whether the pressure test is successful or not is further confirmed, so that whether the test is successful or not can be accurately and automatically judged.
Further, referring to fig. 3, in a third embodiment of the bluetooth remote controller pressure measurement method of the present invention proposed based on the second embodiment of the present invention, the step of setting the determination result as the code value transmission success in the step S23 to determine that the pressure measurement is successful according to the determination result includes:
step S231, setting the judgment result as the code value transmission success, and judging whether the accumulated times of the code value transmission success reaches the preset test times;
step S232, when the preset test times are not reached, continuously sending a driving control signal corresponding to the test instruction to the Bluetooth remote controller;
in step S233, when the preset number of times of testing is reached, it is determined that the pressure testing is successful.
The test instruction comprises a preset test frequency, and when the continuous test success frequency is the preset test frequency, the pressure test success is confirmed. It should be noted that, when a single test in the test instruction is to control the bluetooth remote controller to send a code value, the number of times of successful code value sending is accumulated after each code value sending is successful; when a single test in the test instruction is used for controlling the Bluetooth remote controller to sequentially send a plurality of code values, the number of times of successful code value sending is accumulated after all code values in the test are sent successfully.
Through setting the preset test times, the multiple pressure tests can be automatically executed, so that a user can send test instructions during each pressure test, and the accuracy of a pressure test result is ensured.
Further, in a fourth embodiment of the pressure measuring method for a bluetooth remote controller according to the present invention based on the first embodiment of the present invention, the step S10 includes the steps of:
receiving a test instruction of a user, establishing a drive control signal queue to be sent according to the test instruction, and sending a first priority drive control signal to the Bluetooth remote controller;
the step S23 includes the steps of:
determining that the pressure test operation executed when the current control instruction is taken as the test instruction is successful according to the judgment result, and judging whether the drive control signal to be sent exists in the drive control signal queue to be sent or not;
if not, determining that the pressure measurement is successful;
if yes, deleting the first priority drive control signal, taking the next drive control signal in the same order as the first priority drive control signal, and executing the following steps: and sending a first priority driving control signal to the Bluetooth remote controller.
One test in the test instruction can contain single or multiple pieces of drive control signal information for controlling the Bluetooth remote controller to send code values, and the test instruction is considered to be successful in the next time only when the code values sent by the Bluetooth remote controller are controlled by the drive control signals in the test. It is understood that, in addition to the queue, the driving control signal corresponding to the sent test command can be recorded in a form, a count, or the like.
The driving control signals are sequentially sent to the Bluetooth remote controller, and when the code values sent by the Bluetooth remote controller are controlled by all the driving control signals to be successfully sent, the success of the pressure test at the time is determined, so that whether the success of the pressure test at the time is judged clearly no matter how many driving control signals need to be sent in the test instruction.
Further, in a fifth embodiment of the bluetooth remote controller pressure testing method according to the present invention based on the first embodiment of the present invention, when the test instruction sent by the user is a pairing instruction and a clear pairing instruction in sequence, the preset states corresponding to the test instruction are a connected state and an unconnected state in sequence;
when the test instruction sent by the user at a single time comprises a shutdown test instruction and a startup test instruction which are sent in sequence, the preset state corresponding to the test instruction is a connection state;
when the test instruction sent by the user at a single time comprises a random key value test instruction, the preset state corresponding to the test instruction is a connection state.
When a test instruction sent by a user is a pairing instruction and a clearing instruction in sequence, firstly sending a drive control signal corresponding to the pairing instruction to a Bluetooth remote controller so that the Bluetooth remote controller sends a pairing code value to a display terminal, acquiring a Bluetooth connection zone bit through a display terminal serial port after a preset time, confirming that the pairing code value is successfully sent when the Bluetooth connection zone bit is in a connection state, then sending a drive control signal corresponding to the clearing instruction to the Bluetooth remote controller so that the Bluetooth remote controller sends the clearing code value to the display terminal, acquiring the Bluetooth connection zone bit through the display terminal serial port after the preset time, confirming that the clearing code value is successfully sent when the Bluetooth connection zone bit is in a non-connection state, and at the moment, controlling the code values sent by the Bluetooth remote controller by the drive control signal corresponding to the test instruction to be successfully sent, and confirming that the pressure test is successful, therefore, the preset states corresponding to the test instructions are a connection state and a non-connection state in sequence;
when the test instruction sent by the user at a single time comprises a shutdown test instruction and a startup test instruction which are sent in sequence, a drive control signal corresponding to the shutdown instruction is sent to the Bluetooth remote controller so that the Bluetooth remote controller sends a shutdown code value to the display terminal, after a preset time, a drive control signal corresponding to the startup instruction is sent to the Bluetooth remote controller so that the Bluetooth remote controller sends a startup code value to the display terminal, after the preset time, a startup flag bit of the display terminal is obtained, when the startup flag bit is in a startup state, a Bluetooth connection flag bit is obtained through a serial port of the display terminal, when the Bluetooth connection flag bit is in a connection state, the startup code value is successfully sent, at the moment, the drive control signal corresponding to the test instruction controls the code value sent by the Bluetooth remote controller to be successfully sent, the success of the voltage test at this time can be confirmed, and the Bluetooth remote controller and the display terminal are still in the connection state, therefore, the preset state corresponding to the test instruction is a connection state;
when a test instruction sent by a user at a single time comprises a random key value test instruction, according to the test instruction, a drive control signal is sent to the Bluetooth remote controller at random so that the Bluetooth remote controller sends a corresponding code value to the display terminal, the random key value comprises volume plus-minus, a menu, a signal source, a lower key value, an upper key value, a left key value, a right key value and the like, in addition, a Bluetooth connection zone bit is obtained through a display terminal serial port at each interval of specified time, when the Bluetooth connection zone bit is in a connection state, the startup code value is confirmed to be sent successfully, the Bluetooth remote controller and the display terminal are still in the connection state, and therefore, the preset state corresponding to the test instruction is in the connection state. In this embodiment, the predetermined time is 30 seconds or 60 seconds.
Different preset states are set according to different test instructions, so that whether the connection state of the Bluetooth remote controller and the display terminal meets the expectation or not can be judged correctly under different test methods.
Further, in a sixth embodiment of the bluetooth remote controller pressure testing method according to the present invention proposed based on the first embodiment of the present invention, when the test instruction sent by the user at a single time includes a power-off test instruction and a power-on test instruction that are sequentially sent, or when the test instruction sent by the user at a single time includes a random key value test instruction that is sent every specified time, before the step of sending the drive control signal corresponding to the test instruction to the bluetooth remote controller, the method further includes:
and sequentially sending a clear allocation instruction and a pairing instruction to the Bluetooth remote controller so as to enable the Bluetooth remote controller to be connected with a display terminal after being reset.
When the test instruction does not comprise a matching instruction and a matching instruction, the Bluetooth remote controller is reset and then matched before the drive control signal corresponding to the test instruction is sent. It should be noted that, when the test instruction sent by the user is the pairing instruction and the clear allocation instruction in sequence, before the drive control signal corresponding to the test instruction is sent, the bluetooth remote controller is reset.
When the test instruction sent by the user at a single time comprises a shutdown test instruction and a startup test instruction which are sent in sequence, or the test instruction sent by the user at a single time comprises a random key value test instruction which is sent at a set interval, the test is based on the connection between the Bluetooth remote controller and the display terminal, so that the Bluetooth remote controller is reset and subjected to the pairing operation before the test, and the Bluetooth remote controller and the display terminal are ensured to be in a connection state before the test.
Further, in a seventh embodiment of the pressure measuring method for a bluetooth remote controller according to the present invention based on the first embodiment of the present invention, the step S22 includes the steps of:
and generating test problem data according to the Bluetooth connection zone bit and the preset state corresponding to the test instruction, and sending the test problem data to a tester.
The step of sending the test question data to a tester comprises:
detecting whether the size of the test problem data exceeds a preset value;
if yes, compressing all the test problem data, and sending the compressed data to a tester;
if not, directly feeding back all the test problem data to the tester.
When the pressure test fails, the test problem data is required to be sent to a tester, and the test problem data comprises a test log, a test progress and the like. When the size of the test problem data exceeds a preset value, in order to save storage space and transmission time, the test problem data is compressed and then sent to a tester. In this embodiment, the test problem data is sent to the tester by an email.
The test problem data are sent to the tester, the tester can debug the Bluetooth remote controller according to the test problem data, and when the size of the test problem data exceeds a preset value, the test problem data are compressed and then sent to the tester, so that the storage space and the transmission time can be saved.
Referring to fig. 4, the control apparatus may include components of a communication module 10, a memory 20, and a processor 30 in a hardware structure. In the control device, the processor 30 is connected to the memory 20 and the communication module 10, respectively, the memory 20 having stored thereon a computer program that is executed by the processor 30 at the same time, the computer program when executed implementing the steps of the above-described method embodiments.
The communication module 10 may be connected to an external communication device through a network. The communication module 10 may receive a request from an external communication device, and may also send a request, an instruction, and information to the external communication device, where the external communication device may be another control device, a server, or an internet of things device, such as a television.
The memory 20 may be used to store software programs as well as various data. The memory 20 may mainly include a program storage area and a data storage area, where the program storage area may store an operating system, an application program required by at least one function (for example, determining that a voltage test operation performed when a current control instruction is used as a test instruction is successful according to the determination result, and determining whether a to-be-sent drive control signal exists in the to-be-sent drive control signal queue), and the like; the storage data area may include a database, and the storage data area may store data or information created according to use of the system, or the like. Further, the memory 20 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 30, which is a control center of the control device, connects various parts of the entire control device by using various interfaces and lines, and performs various functions of the control device and processes data by operating or executing software programs and/or modules stored in the memory 20 and calling data stored in the memory 20, thereby performing overall monitoring of the control device. Processor 30 may include one or more processing units; alternatively, the processor 30 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 30.
Although not shown in fig. 4, the control device may further include a circuit control module for connecting with a power supply to ensure the normal operation of other components. Those skilled in the art will appreciate that the control device configuration shown in fig. 4 does not constitute a limitation of the control device and may include more or fewer components than shown, or some components may be combined, or a different arrangement of components.
The invention also proposes a computer-readable storage medium on which a computer program is stored. The computer-readable storage medium may be the Memory 20 in the control device of fig. 4, and may also be at least one of a ROM (Read-Only Memory)/RAM (Random Access Memory), a magnetic disk, and an optical disk, where the computer-readable storage medium includes instructions for enabling a terminal device (which may be a television, an automobile, a mobile phone, a computer, a server, a terminal, or a network device) having a processor to execute the method according to the embodiments of the present invention.
In the present invention, the terms "first", "second", "third", "fourth" and "fifth" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance, and those skilled in the art can understand the specific meanings of the above terms in the present invention according to specific situations.
In the description herein, references to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., mean that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the invention. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Although the embodiment of the present invention has been shown and described, the scope of the present invention is not limited thereto, it should be understood that the above embodiment is illustrative and not to be construed as limiting the present invention, and that those skilled in the art can make changes, modifications and substitutions to the above embodiment within the scope of the present invention, and that these changes, modifications and substitutions should be covered by the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the claims.
Claims (10)
1. A Bluetooth remote controller pressure measurement method is applied to control equipment, wherein the control equipment is respectively connected with a display terminal and the Bluetooth remote controller, and the method comprises the following steps:
receiving a test instruction of a user, and sending a drive control signal corresponding to the test instruction to the Bluetooth remote controller so that the Bluetooth remote controller sends a code value corresponding to the drive control signal;
detecting a Bluetooth connection zone bit of the display terminal, and judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to a judgment result;
the step of judging whether the code value is successfully sent according to the Bluetooth connection zone bit so as to determine whether the pressure measurement is successful according to the judgment result comprises the following steps:
judging whether the Bluetooth connection zone bit is in a preset state corresponding to the test instruction or not;
and if the Bluetooth connection zone bit is in a preset state corresponding to the test instruction, setting the judgment result as the code value to be successfully sent so as to determine that the pressure test is successful according to the judgment result.
2. The method for testing the bluetooth remote controller according to claim 1, wherein after the step of determining whether the bluetooth connection flag bit is in the preset state corresponding to the test command, the method further comprises:
and if the Bluetooth connection zone bit is not in the preset state corresponding to the test instruction, setting the judgment result as the code value transmission failure so as to determine the pressure test failure according to the judgment result.
3. The bluetooth remote controller pressure measurement method according to claim 2, wherein the step of setting the judgment result as the code value transmission success to determine the pressure measurement success according to the judgment result comprises:
setting the judgment result as the code value to be successfully sent, and judging whether the cumulative number of times of successful sending of the code value reaches the preset test number of times;
when the preset test times are not reached, continuously sending a driving control signal corresponding to the test instruction to the Bluetooth remote controller;
and when the preset test times are reached, determining that the pressure test is successful.
4. The bluetooth remote control pressure test method according to claim 3, wherein the step of receiving a test command from a user and sending a driving control signal corresponding to the test command to the bluetooth remote control comprises:
receiving a test instruction of a user, establishing a drive control signal queue to be sent according to the test instruction, and sending a first priority drive control signal to the Bluetooth remote controller;
the step of determining the success of the pressure measurement according to the judgment result comprises:
determining that the pressure test operation executed when the current control instruction is taken as the test instruction is successful according to the judgment result, and judging whether the drive control signal to be sent exists in the drive control signal queue to be sent or not;
if not, determining that the pressure measurement is successful;
if yes, deleting the first priority drive control signal, taking the next drive control signal in the same order as the first priority drive control signal, and executing the following steps: and sending a first priority driving control signal to the Bluetooth remote controller.
5. The method for testing the pressure of the Bluetooth remote controller according to claim 4, wherein when the test command sent by the user is a pairing command and a clear pairing command in sequence, the preset states corresponding to the test command are a connection state and a non-connection state in sequence;
when the test instruction sent by the user at a single time comprises a shutdown test instruction and a startup test instruction which are sent in sequence, the preset state corresponding to the test instruction is a connection state;
when the test instruction sent by the user at a single time comprises a random key value test instruction sent at a set time interval, the preset state corresponding to the test instruction is a connection state.
6. The bluetooth remote control pressure testing method according to claim 5, wherein when the test command sent by the user at a single time includes a power-off test command and a power-on test command that are sent sequentially, or when the test command sent by the user at a single time includes a random key value test command that is sent every specified time, before the step of sending the drive control signal corresponding to the test command to the bluetooth remote control, the method further includes:
and sequentially sending a clear allocation instruction and a pairing instruction to the Bluetooth remote controller so as to enable the Bluetooth remote controller to be connected with a display terminal after being reset.
7. The method for testing the Bluetooth remote controller according to any one of claims 2 to 6, wherein the step of determining the pressure test failure according to the judgment result comprises:
and generating test problem data according to the Bluetooth connection zone bit and the preset state corresponding to the test instruction, and sending the test problem data to a tester.
8. The bluetooth remote control pressure testing method according to claim 7, wherein the step of transmitting the test question data to a tester comprises:
detecting whether the size of the test problem data exceeds a preset value;
if yes, compressing all the test problem data, and sending the compressed data to a tester;
if not, directly feeding back all the test problem data to the tester.
9. A control device, characterized in that the control device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, which computer program, when executed by the processor, carries out the steps of the bluetooth remote control pressure measurement method according to any one of claims 1 to 8.
10. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the bluetooth remote control pressure measurement method according to any one of claims 1 to 8.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010146459.8A CN111341090B (en) | 2020-03-04 | 2020-03-04 | Bluetooth remote controller pressure measurement method, control device and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010146459.8A CN111341090B (en) | 2020-03-04 | 2020-03-04 | Bluetooth remote controller pressure measurement method, control device and computer readable storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111341090A CN111341090A (en) | 2020-06-26 |
CN111341090B true CN111341090B (en) | 2021-11-02 |
Family
ID=71184027
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010146459.8A Active CN111341090B (en) | 2020-03-04 | 2020-03-04 | Bluetooth remote controller pressure measurement method, control device and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111341090B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111918259A (en) * | 2020-06-30 | 2020-11-10 | 厦门汉印电子技术有限公司 | Batch test method, medium and system for Bluetooth modules of printer |
CN112054822B (en) * | 2020-08-01 | 2023-02-03 | 上海闻泰信息技术有限公司 | Bluetooth test method and device, electronic equipment and storage medium |
CN112565745A (en) * | 2020-12-30 | 2021-03-26 | 杭州视洞科技有限公司 | Automatic pressure testing method for camera setting function |
CN113938384B (en) * | 2021-11-12 | 2024-03-12 | 四川长虹电器股份有限公司 | Bluetooth remote controller OTA upgrading automatic pressure measurement method |
CN116665429B (en) * | 2023-07-28 | 2023-10-20 | 无锡威达智能电子股份有限公司 | Bluetooth remote controller production data management method and system |
Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1850002A (en) * | 2006-05-31 | 2006-10-25 | 四川微迪数字技术有限公司 | Telecontrolled hearing detection system and infant hearing detection method |
CN1953564A (en) * | 2006-11-22 | 2007-04-25 | Ut斯达康通讯有限公司 | A test system and method for set top box |
CN101136139A (en) * | 2007-09-06 | 2008-03-05 | 中兴通讯股份有限公司 | Automatization test system and method simulating infrared remote-controller |
CN101211502A (en) * | 2006-12-27 | 2008-07-02 | 凌阳科技股份有限公司 | Device and method for automatically testing distant control function |
CN101493488A (en) * | 2008-01-22 | 2009-07-29 | 杭州士兰微电子股份有限公司 | Remote controller test system and method |
CN101589408A (en) * | 2007-01-23 | 2009-11-25 | 日本电气株式会社 | System, method and the program of mark generation and marker detection |
CN102117237A (en) * | 2009-12-30 | 2011-07-06 | 鸿富锦精密工业(深圳)有限公司 | Test device for motherboard startup and shutdown |
CN105979251A (en) * | 2015-11-18 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Remote control button test method and system |
CN107589818A (en) * | 2017-09-13 | 2018-01-16 | 上海摩软通讯技术有限公司 | The self-starting test system and its method of testing of mobile terminal |
CN107895468A (en) * | 2017-10-30 | 2018-04-10 | 广东美的制冷设备有限公司 | Remote control matching method, device and computer-readable recording medium |
CN108391119A (en) * | 2018-02-09 | 2018-08-10 | 深圳创维-Rgb电子有限公司 | A kind of method for testing pressure and system based on pressure test tool |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8390299B2 (en) * | 2009-11-24 | 2013-03-05 | Fluke Corporation | Earth ground tester with remote control |
CN102752030A (en) * | 2011-04-22 | 2012-10-24 | 比亚迪股份有限公司 | Method and system for connecting incoming call to Bluetooth headset |
FI127220B (en) * | 2014-06-06 | 2018-01-31 | Polar Heater Oy | Battery monitor to indicate the condition of the battery and the method used to make the battery monitor |
CN109894761B (en) * | 2019-02-27 | 2020-12-01 | 江苏爱仕达电子有限公司 | Automatic welding method for Bluetooth voice remote controller circuit board |
-
2020
- 2020-03-04 CN CN202010146459.8A patent/CN111341090B/en active Active
Patent Citations (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1850002A (en) * | 2006-05-31 | 2006-10-25 | 四川微迪数字技术有限公司 | Telecontrolled hearing detection system and infant hearing detection method |
CN1953564A (en) * | 2006-11-22 | 2007-04-25 | Ut斯达康通讯有限公司 | A test system and method for set top box |
CN101211502A (en) * | 2006-12-27 | 2008-07-02 | 凌阳科技股份有限公司 | Device and method for automatically testing distant control function |
CN101589408A (en) * | 2007-01-23 | 2009-11-25 | 日本电气株式会社 | System, method and the program of mark generation and marker detection |
CN101136139A (en) * | 2007-09-06 | 2008-03-05 | 中兴通讯股份有限公司 | Automatization test system and method simulating infrared remote-controller |
CN101493488A (en) * | 2008-01-22 | 2009-07-29 | 杭州士兰微电子股份有限公司 | Remote controller test system and method |
CN102117237A (en) * | 2009-12-30 | 2011-07-06 | 鸿富锦精密工业(深圳)有限公司 | Test device for motherboard startup and shutdown |
CN105979251A (en) * | 2015-11-18 | 2016-09-28 | 乐视致新电子科技(天津)有限公司 | Remote control button test method and system |
CN107589818A (en) * | 2017-09-13 | 2018-01-16 | 上海摩软通讯技术有限公司 | The self-starting test system and its method of testing of mobile terminal |
CN107895468A (en) * | 2017-10-30 | 2018-04-10 | 广东美的制冷设备有限公司 | Remote control matching method, device and computer-readable recording medium |
CN108391119A (en) * | 2018-02-09 | 2018-08-10 | 深圳创维-Rgb电子有限公司 | A kind of method for testing pressure and system based on pressure test tool |
Also Published As
Publication number | Publication date |
---|---|
CN111341090A (en) | 2020-06-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111341090B (en) | Bluetooth remote controller pressure measurement method, control device and computer readable storage medium | |
US9984244B2 (en) | Controller, information processing apparatus, and recording medium | |
CN110031746B (en) | Chip test remote monitoring method and device, computer equipment and storage medium | |
CN112333057B (en) | Intelligent household equipment distribution network testing method and device, executive machine and storage medium | |
CN104268075A (en) | Test mode entry method and device and mobile terminal | |
CN111063386A (en) | DDR chip testing method and device | |
CN104021060A (en) | BMC serial port debugging system and method | |
CN112256579A (en) | Automatic integrated test method, device, system, equipment and medium | |
CN112231228A (en) | Firmware upgrade test method, device, platform, equipment and storage medium | |
CN102375103B (en) | Electronic product test device and method | |
CN111756597B (en) | Wireless module testing system, method and device applied to gateway | |
CN105120259A (en) | Detection method and apparatus for digital television | |
CN102566566A (en) | Automatic automobile diagnosis method based on data processing unit (DPU) | |
CN105227606A (en) | Application program adaptation method and device | |
CN111158947A (en) | Method for making pre-copy file, server and readable storage medium | |
CN112822073A (en) | Test method, device, system, electronic equipment and readable storage medium | |
CN109933479B (en) | Fault simulation and emulation method and related equipment | |
CN105791514B (en) | Application starting monitoring method and device | |
CN116257397A (en) | Pressure testing method, pressure testing device, storage medium and pressure testing equipment | |
CN115391110A (en) | Test method of storage device, terminal device and computer readable storage medium | |
CN104461630A (en) | PC terminal and method thereof for installing cellphone driving programs | |
CN104378403A (en) | Terminal and updating method thereof | |
CN115014828A (en) | Automated device testing method and related device | |
CN114337857A (en) | Method, device, system and storage medium for testing receiving sensitivity | |
CN110221148B (en) | Automatic testing device and method for current consumption pressure under slow clock |
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 |