Summary of the invention
The invention provides a kind of method and device of mobile terminal test screen, how efficiently fundamental purpose is the technical matters solving testing mobile terminal screen.
For achieving the above object, the method for a kind of mobile terminal test screen provided by the invention, the method for described mobile terminal test screen comprises:
Receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured.
Preferably, described first instruction is write command or reads instruction;
If described first instruction is described write command, described first instruction at least comprises the value of the address of the register of screen to be measured and the register of screen to be measured, and described write command is used for the value of the register to the described screen to be measured of register write corresponding to the address of the register of described screen to be measured;
If described first instruction for described in read instruction, described first instruction at least comprises the address of the register of screen to be measured, described in read the value of instruction for register corresponding to the address of the register reading described screen to be measured.
Preferably, described second instruction is parallel communication mode or mipi communication mode.
Preferably, the described register described first instruction being sent to described screen to be measured by the communication means of described screen to be measured, comprising:
Described write command is sent to the register of described screen to be measured by described parallel communication mode or described mipi communication mode; Or,
Instruction to send to described screen to be measured register by described parallel communication mode or described mipi communication mode is read by described.
Preferably, described method also comprises:
In the proc file system of the linux operating system of MTK platform, set up common interface lcm_debug, and following program be stored in described common interface lcm_debug:
Receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured.
In addition, for achieving the above object, the present invention also provides a kind of device of mobile terminal test screen, and the device of described mobile terminal test screen comprises:
First receiving element, for receiving the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Second receiving element, for receiving the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Transmitting element, for sending to the register of described screen to be measured by the communication means of described screen to be measured by described first instruction.
Preferably, described first instruction is write command or reads instruction;
If described first instruction is described write command, described first instruction at least comprises the value of the address of the register of screen to be measured and the register of screen to be measured, and described write command is used for the value of the register to the described screen to be measured of register write corresponding to the address of the register of described screen to be measured;
If described first instruction for described in read instruction, described first instruction at least comprises the address of the register of screen to be measured, described in read the value of instruction for register corresponding to the address of the register reading described screen to be measured.
Preferably, described second instruction is parallel communication mode or mipi communication mode.
Preferably, described transmitting element, for:
Described write command is sent to the register of described screen to be measured by described parallel communication mode or described mipi communication mode; Or,
Instruction to send to described screen to be measured register by described parallel communication mode or described mipi communication mode is read by described.
Preferably, the device of described mobile terminal test screen also comprises:
Setting up unit, for setting up common interface lcm_debug in the proc file system of the linux operating system of MTK platform, and following program being stored in described common interface lcm_debug:
Receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured.
The first instruction that the present invention triggers by receiving user, described first instruction at least comprises the address of the register of screen to be measured; Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured; Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured, thus utilize the file system of linux operating system to make the common interface of screen debugging, be applicable to all mobile terminal devices based on linux kernel, pass through common interface, slip-stick artist can debug fast and effectively, time saving and energy saving, make based on MTK platform mobile terminal product design time, screen debugging more convenient.
Embodiment
Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
The invention provides a kind of method of mobile terminal test screen.
With reference to the schematic flow sheet that Fig. 1, Fig. 1 are method first embodiment of mobile terminal test screen of the present invention.
In a first embodiment, the method for this mobile terminal test screen comprises:
Step 101, receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Wherein, described first instruction is write command or reads instruction;
If described first instruction is described write command, described first instruction at least comprises the value of the address of the register of screen to be measured and the register of screen to be measured, and described write command is used for the value of the register to the described screen to be measured of register write corresponding to the address of the register of described screen to be measured;
If described first instruction for described in read instruction, described first instruction at least comprises the address of the register of screen to be measured, described in read the value of instruction for register corresponding to the address of the register reading described screen to be measured.
The present invention sets up the common interface being applicable to great majority screen under MTK platform, and MTK platform is mainly based on linux operating system, and the present invention sets up common interface lcm_debug in the proc file system of linux operating system.
Concrete, if user wants the data message of the screen reading mobile terminal, instruction can be read in common interface input, reading the address of the register carrying screen to be measured in instruction, if user wants the content of the register of the screen to mobile terminal to operate, write command can be inputted at common interface, in write command, carry the value of the address of the register of screen to be measured and the register of screen to be measured.
Step 102, receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Concrete, the communication mode of described screen to be measured has two kinds, one is parallel, one is mipi, if user needs to test screen to be measured, the wherein one in above-mentioned two kinds of communication modes is selected in advance to common interface, if the communication mode of current screen to be tested is parallel, then input the second instruction to common interface, described second instruction comprises the communication mode of parallel, if the communication mode of current screen to be tested is mipi, then input the second instruction to common interface, described second instruction comprises the communication mode of mipi.
Step 103, sends to the register of described screen to be measured by the communication means of described screen to be measured by described first instruction.
Preferably, the described register described first instruction being sent to described screen to be measured by the communication means of described screen to be measured, comprising:
Described write command is sent to the register of described screen to be measured by described parallel communication mode or described mipi communication mode; Or,
Instruction to send to described screen to be measured register by described parallel communication mode or described mipi communication mode is read by described.
Concrete, if described first instruction is write command, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
If described first instruction is for reading instruction, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
The first instruction that the present invention triggers by receiving user, described first instruction at least comprises the address of the register of screen to be measured; Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured; Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured, thus utilize the file system of linux operating system to make the common interface of screen debugging, be applicable to all mobile terminal devices based on linux kernel, pass through common interface, slip-stick artist can debug fast and effectively, time saving and energy saving, make based on MTK platform mobile terminal product design time, screen debugging more convenient.
With reference to the schematic flow sheet that Fig. 2, Fig. 2 are method second embodiment of mobile terminal test screen of the present invention.
On the basis of the first embodiment, before step 101, also comprise:
Step 104, sets up common interface lcm_debug in the proc file system of the linux operating system of MTK platform, and following program is stored in described common interface lcm_debug:
Receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured.
The present invention sets up the common interface being applicable to great majority screen under MTK platform, and MTK platform is mainly based on linux operating system, and the present invention sets up common interface lcm_debug in the proc file system of linux operating system.
Concrete, if user wants the data message of the screen reading mobile terminal, instruction can be read in common interface input, reading the address of the register carrying screen to be measured in instruction, if user wants the content of the register of the screen to mobile terminal to operate, write command can be inputted at common interface, in write command, carry the value of the address of the register of screen to be measured and the register of screen to be measured.
The communication mode of described screen to be measured has two kinds, one is parallel, one is mipi, if user needs to test screen to be measured, the wherein one in above-mentioned two kinds of communication modes is selected in advance to common interface, if the communication mode of current screen to be tested is parallel, then input the second instruction to common interface, described second instruction comprises the communication mode of parallel, if the communication mode of current screen to be tested is mipi, then input the second instruction to common interface, described second instruction comprises the communication mode of mipi.
If described first instruction is write command, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
If described first instruction is for reading instruction, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
The first instruction that the present invention triggers by receiving user, described first instruction at least comprises the address of the register of screen to be measured; Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured; Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured, thus utilize the file system of linux operating system to make the common interface of screen debugging, be applicable to all mobile terminal devices based on linux kernel, pass through common interface, slip-stick artist can debug fast and effectively, time saving and energy saving, make based on MTK platform mobile terminal product design time, screen debugging more convenient.
The present invention further provides a kind of device of mobile terminal test screen.
With reference to the high-level schematic functional block diagram that Fig. 3, Fig. 3 are device first embodiment of mobile terminal test screen of the present invention.
In a first embodiment, the device of this mobile terminal test screen comprises:
First receiving element 301, for receiving the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Wherein, described first instruction is write command or reads instruction;
If described first instruction is described write command, described first instruction at least comprises the value of the address of the register of screen to be measured and the register of screen to be measured, and described write command is used for the value of the register to the described screen to be measured of register write corresponding to the address of the register of described screen to be measured;
If described first instruction for described in read instruction, described first instruction at least comprises the address of the register of screen to be measured, described in read the value of instruction for register corresponding to the address of the register reading described screen to be measured.
The present invention sets up the common interface being applicable to great majority screen under MTK platform, and MTK platform is mainly based on linux operating system, and the present invention sets up common interface lcm_debug in the proc file system of linux operating system.
Concrete, if user wants the data message of the screen reading mobile terminal, instruction can be read in common interface input, reading the address of the register carrying screen to be measured in instruction, if user wants the content of the register of the screen to mobile terminal to operate, write command can be inputted at common interface, in write command, carry the value of the address of the register of screen to be measured and the register of screen to be measured.
Second receiving element 302, for receiving the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Concrete, the communication mode of described screen to be measured has two kinds, one is parallel, one is mipi, if user needs to test screen to be measured, the wherein one in above-mentioned two kinds of communication modes is selected in advance to common interface, if the communication mode of current screen to be tested is parallel, then input the second instruction to common interface, described second instruction comprises the communication mode of parallel, if the communication mode of current screen to be tested is mipi, then input the second instruction to common interface, described second instruction comprises the communication mode of mipi.
Transmitting element 303, for sending to the register of described screen to be measured by the communication means of described screen to be measured by described first instruction.
Preferably, described transmitting element 303, for:
Described write command is sent to the register of described screen to be measured by described parallel communication mode or described mipi communication mode; Or,
Instruction to send to described screen to be measured register by described parallel communication mode or described mipi communication mode is read by described.
Concrete, if described first instruction is write command, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
If described first instruction is for reading instruction, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
The first instruction that the present invention triggers by receiving user, described first instruction at least comprises the address of the register of screen to be measured; Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured; Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured, thus utilize the file system of linux operating system to make the common interface of screen debugging, be applicable to all mobile terminal devices based on linux kernel, pass through common interface, slip-stick artist can debug fast and effectively, time saving and energy saving, make based on MTK platform mobile terminal product design time, screen debugging more convenient.
With reference to the high-level schematic functional block diagram that Fig. 4, Fig. 4 are device second embodiment of mobile terminal test screen of the present invention.
The device of described mobile terminal test screen comprises:
Setting up unit 304, for setting up common interface lcm_debug in the proc file system of the linux operating system of MTK platform, and following program being stored in described common interface lcm_debug:
Receive the first instruction that user triggers, described first instruction at least comprises the address of the register of screen to be measured;
Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured;
Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured.
The present invention sets up the common interface being applicable to great majority screen under MTK platform, and MTK platform is mainly based on linux operating system, and the present invention sets up common interface lcm_debug in the proc file system of linux operating system.
Concrete, if user wants the data message of the screen reading mobile terminal, instruction can be read in common interface input, reading the address of the register carrying screen to be measured in instruction, if user wants the content of the register of the screen to mobile terminal to operate, write command can be inputted at common interface, in write command, carry the value of the address of the register of screen to be measured and the register of screen to be measured.
The communication mode of described screen to be measured has two kinds, one is parallel, one is mipi, if user needs to test screen to be measured, the wherein one in above-mentioned two kinds of communication modes is selected in advance to common interface, if the communication mode of current screen to be tested is parallel, then input the second instruction to common interface, described second instruction comprises the communication mode of parallel, if the communication mode of current screen to be tested is mipi, then input the second instruction to common interface, described second instruction comprises the communication mode of mipi.
If described first instruction is write command, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
If described first instruction is for reading instruction, the communication mode of described screen to be measured is parallel communication mode or mipi communication mode, be then the register that parallel communication mode or mipi communication mode send to screen to be measured by described first instruction by the communication mode of described screen to be measured.
The first instruction that the present invention triggers by receiving user, described first instruction at least comprises the address of the register of screen to be measured; Receive the second instruction that user triggers, described second instruction at least comprises the communication means of described screen to be measured; Described first instruction is sent to the register of described screen to be measured by the communication means of described screen to be measured, thus utilize the file system of linux operating system to make the common interface of screen debugging, be applicable to all mobile terminal devices based on linux kernel, pass through common interface, slip-stick artist can debug fast and effectively, time saving and energy saving, make based on MTK platform mobile terminal product design time, screen debugging more convenient.
These are only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.