Disclosure of Invention
The embodiment of the invention provides electronic equipment, a functional module and a main board and a detection method of the electronic equipment, which are used for timely identifying the assembly problem of the functional module when the assembled electronic equipment is subjected to functional test, so that the situation that a tester checks one by one when the functional module is abnormal is avoided, and the workload of the tester is reduced.
The embodiment of the invention provides electronic equipment, which comprises a functional module and a main board, wherein the functional module and the main board have an assembly relation;
the functional module is provided with a first detection pin which is communicated with a power pin of the functional module;
the main board is provided with a second detection pin;
the electronic equipment is used for determining whether the installation state between the functional module and the main board meets the installation requirement according to the communication state of the first detection pin and the second detection pin.
Optionally, the electronic device is specifically configured to read a voltage state of the second detection pin; and determining whether the installation state between the functional module and the main board meets the installation requirement according to the relation between the voltage state of the second detection pin and a preset value.
Optionally, the number of the first detection pins is N, the number of the second detection pins is N, and N is an integer greater than 1;
the electronic equipment is specifically configured to determine that an installation state between the functional module and the motherboard meets an installation requirement when determining that the voltage states of the N second detection pins all meet a preset value; when the voltage states of the M second detection pins are determined to be in accordance with a preset value, determining that the installation state between the functional module and the main board is not in accordance with the installation requirement, wherein M is an integer greater than 1 and less than N; and when the voltage states of the N second detection pins are not in accordance with the preset value, determining that the functional module is not mounted on the mainboard.
Optionally, the electronic device further includes a display screen;
the display screen is used for displaying the communication state of the first detection pin and the second detection pin.
In the technical scheme of the electronic equipment, the electronic equipment comprises the functional module and the main board, wherein the functional module and the main board are in an assembling relationship, and whether the installation state between the functional module and the main board meets the installation requirement can be determined according to the communication state of the first detection pin and the second detection pin by arranging the first detection pin on the functional module and arranging the second detection pin on the main board. In the testing process of the electronic equipment, whether the installation state between the functional module and the main board meets the installation requirement or not can be determined, so that a tester can determine whether the functional module is abnormal or not due to incorrect installation of the functional module if the functional module in the electronic equipment is abnormal, and then the next operation is performed on the abnormality according to the judgment result, thereby reducing the testing workload of the tester and improving the testing efficiency.
Correspondingly, the embodiment of the invention also provides a functional module which is arranged in the electronic equipment;
the functional module is provided with a first detection pin which is communicated with a power pin of the functional module;
and the first detection pin is used for determining whether the installation state between the functional module and the main board meets the installation requirement or not through the communication state of the first detection pin and the second detection pin on the main board of the electronic equipment when the electronic equipment is detected.
In the technical scheme of the functional module, the first detection pin is arranged on the functional module, so that the electronic equipment determines whether the installation state between the functional module and the main board meets the installation requirement according to the communication state of the first detection pin and the second detection pin. In the testing process of the electronic equipment, whether the installation state between the functional module and the main board meets the installation requirement or not can be determined, so that if a tester determines that the functional module in the electronic equipment is abnormal, whether the functional module is abnormal or not due to incorrect installation of the functional module can be determined first, further the next operation is carried out on the abnormality according to the judging result, the testing workload of the tester is reduced, and the testing efficiency is improved.
Correspondingly, the embodiment of the invention also provides a main board of the electronic equipment, wherein the main board is provided with a second detection pin;
and the second detection pin is used for determining whether the installation state between the functional module and the main board meets the installation requirement or not through the communication state of the second detection pin and the first detection pin of the functional module when the electronic equipment is detected.
In the technical scheme of the main board of the electronic equipment, the second detection pin is arranged on the main board, and whether the installation state between the functional module and the main board meets the installation requirement is determined according to the communication state of the first detection pin and the second detection pin. In the testing process of the electronic equipment, whether the installation state between the functional module and the main board meets the installation requirement or not can be determined, so that if a tester determines that the functional module in the electronic equipment is abnormal, whether the functional module is abnormal or not due to incorrect installation of the functional module can be determined first, further the next operation is carried out on the abnormality according to the judging result, the testing workload of the tester is reduced, and the testing efficiency is improved.
Correspondingly, the embodiment of the invention also provides a detection method which is suitable for the electronic equipment, and the method comprises the following steps:
acquiring a voltage state of a second detection pin;
and determining whether the installation state between the functional module and the main board meets the installation requirement according to the relation between the voltage state of the second detection pin and a preset value.
Optionally, the number of the first detection pins is N, the number of the second detection pins is N, and N is an integer greater than 1;
the determining whether the installation state between the functional module and the main board meets the installation requirement according to the relation between the voltage state of the second detection pin and the preset value comprises the following steps:
when the voltage states of the N second detection pins are determined to be in accordance with a preset value, determining that the installation states between the functional module and the main board are in accordance with installation requirements; when the voltage states of the M second detection pins are determined to be in accordance with a preset value, determining that the installation state between the functional module and the main board is not in accordance with the installation requirement, wherein M is an integer greater than 1 and less than N; and when the voltage states of the N second detection pins are not in accordance with the preset value, determining that the functional module is not mounted on the mainboard.
In the technical scheme of the detection method, when the function test is performed on the assembled electronic equipment, if a certain functional module is abnormal in the test result, a tester does not need to check the problem one by one aiming at software and hardware in the functional module, but can determine whether the abnormal problem is caused by incorrectly installing the functional module, if so, a targeted solving measure can be adopted, such as reinstalling the functional module after the electronic equipment is disassembled or manually checking the installation state of the functional module, otherwise, checking other problems. Through the mode, the functional module can be primarily judged, and the next operation is performed according to the primary judgment result, so that the testing workload of testers is reduced, and the testing efficiency is improved.
Accordingly, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the detection method according to the obtained program.
Accordingly, an embodiment of the present invention further provides a computer-readable nonvolatile storage medium, including computer-readable instructions, which when read and executed by a computer, cause the computer to perform the above-described detection method.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
In the electronic device provided by the embodiment of the invention, as shown in fig. 1, the electronic device includes a functional module and a main board with an assembly relationship, that is, the functional module is assembled on the main board, and the functional device can be connected with the main board through pins. The electronic equipment can be a mobile phone, a tablet personal computer and the like, the functional module can be a module which is possibly installed on the electronic equipment in a missed manner or in an unsatisfactory installation mode, the module can be manually installed, and the functional module can be a camera module, a fingerprint module or other modules.
As shown in the schematic structural diagrams of the functional module shown in fig. 2a and fig. 2b, a first detection pin is disposed on the functional module, the first detection pin is communicated with a power pin of the functional module, and as shown in fig. 2b, a resistor may be disposed between the first detection pin and the power pin.
In the schematic structural diagram of the motherboard shown in fig. 3, a second detection pin is disposed on the motherboard, the motherboard corresponds to the functional module, and the second detection pin on the motherboard corresponds to the first detection pin of the functional module, specifically, the number of the first detection pins is N, the number of the second detection pins is N, N is an integer greater than 1, and the first detection pins and the second detection pins are in one-to-one correspondence.
In the electronic device assembling process, if the functional module is correctly assembled on the motherboard, it can be understood that the first detection pins of the functional module are connected with the second detection pins of the motherboard one by one to form a closed loop, for example, there are 4 first detection pins a, b, c, D on the functional module and 4 second detection pins A, B, C, D on the motherboard, and when the functional module is correctly assembled on the motherboard, a and A, b and B, c are connected with D and C, D are connected one by one to form a closed loop. The power supply pin is connected with a power supply on the main board, the power supply on the main board supplies power for the closed loop, and illustratively, the power supply pin can be an iovdd pin, the power supply on the main board can be a 1.8v long power supply, and the voltage value on each second detection pin is larger than a preset threshold value, namely, the voltage value on A, B, C, D is larger than the preset threshold value.
In combination with the above description, the communication state between the first detection pin and the second detection pin is used for determining whether the installation state between the functional module and the motherboard meets the installation requirement when the electronic device is detected, which can be understood that the electronic device can determine whether the installation state between the functional module and the motherboard meets the installation requirement according to the communication state between the first detection pin and the second detection pin when the electronic device is tested.
In one implementation manner, the electronic device may be configured to read a voltage state of the second detection pin, and determine, according to a relationship between the voltage state of the second detection pin and a preset value, whether an installation state between the functional module and the motherboard meets an installation requirement. The second detection pin may also be used to read its own voltage state, e.g. the second detection pin may be a GPIO (General Purpose Input Output, general purpose input/output) interface, which is set to a read state for reading its own voltage state.
Specifically, the electronic device determines the connection state of each second detection pin and each first detection pin according to the relation between the voltage state of each second detection pin and the preset value, and further determines the installation state between the functional module and the main board. Here, the voltage state may be a high level or a low level, and when the electronic device determines that the voltage state is a high level, it determines that the second detection pin is connected with the first detection pin; the voltage state may also be a voltage value, and the electronic device compares the voltage value with a preset threshold value, and determines that the second detection pin is connected to the first detection pin after determining that the voltage value is greater than the preset threshold value.
In the embodiment of the invention, the number of the first detection pins is N, the number of the second detection pins is N, and the electronic equipment is specifically used for determining that the installation state between the functional module and the main board meets the installation requirement when the voltage states of the N second detection pins are determined to meet the preset value; when the voltage states of the M second detection pins are determined to be in accordance with a preset value, determining that the installation state between the functional module and the main board is not in accordance with the installation requirement, wherein M is an integer greater than 1 and less than N; and when the voltage states of the N second detection pins are not in accordance with the preset value, determining that the functional module is not mounted on the main board.
Still illustrated by the connection of the first sense pin a, b, c, d and the second sense pin A, B, C, D, there are three situations, as follows:
case one: if the voltage states of the 4 second detection pins are determined to be in accordance with the preset value, determining that a, A, b, B, c, C, D and D are correctly connected, and determining that the installation state between the functional module and the main board is in accordance with the installation requirement;
and a second case: if the voltage states of the 2 second detection pins (A, B) are determined to be in accordance with the preset value, and the voltage states of the 2 second detection pins (C, D) are determined to be not in accordance with the preset value, determining that a and A, B are correctly connected with B, and c and C, D are incorrectly connected with D, namely, determining that the functional module is mounted on the main board, wherein the mounting state of the functional module is not in accordance with the mounting requirement;
and a third case: if the voltage states of the 4 second detection pins do not meet the preset value, determining that a, A, b, B, c, C, D and D are both incorrectly connected, and determining that the functional module is not mounted on the motherboard, i.e. the functional module is not mounted in the electronic device.
In addition, the electronic device further comprises a display screen, wherein the display screen is used for displaying the communication state of the first detection pin and the second detection pin. When the tester tests the electronic equipment, the electronic equipment displays the communication state of the first detection pin and the second detection pin through the display screen, and then the installation state of the functional module on the main board is displayed, so that the tester can determine the installation state of the functional module in the current electronic equipment through the display information on the display screen.
Based on the same inventive concept, the embodiment of the invention also provides a functional module which is arranged in the electronic equipment, wherein a first detection pin is arranged in the functional module, and the first detection pin is communicated with a power pin of the functional module. The first detection pin is used for determining whether the installation state between the functional module and the main board meets the installation requirement or not through the communication state of the first detection pin and the second detection pin on the main board of the electronic equipment when the electronic equipment is detected.
Based on the same inventive concept, the embodiment of the invention also provides a main board of the electronic equipment, wherein a second detection pin is arranged in the main board, and the second detection pin is used for determining whether the installation state between the functional module and the main board meets the installation requirement or not through the communication state of the second detection pin and the first detection pin of the functional module when the electronic equipment is detected.
Based on the above description, fig. 4 exemplarily shows that the embodiment of the present invention further provides a detection method based on the above electronic device, where the detection method is applied to the above electronic device.
The flow chart of the detection method specifically comprises the following steps:
step 401, obtaining a voltage state of the second detection pin.
Step 402, determining whether the installation state between the functional module and the motherboard meets the installation requirement according to the relation between the voltage state of the second detection pin and the preset value.
The electronic equipment determines that the installation state between the functional module and the main board meets the installation requirement when determining that the voltage states of the N second detection pins meet the preset value; when the voltage states of the M second detection pins are determined to be in accordance with a preset value, determining that the installation state between the functional module and the main board is not in accordance with the installation requirement, wherein M is an integer greater than 1 and less than N; and when the voltage states of the N second detection pins are not in accordance with the preset value, determining that the functional module is not mounted on the main board.
In the actual test, when the electronic device is started, the second detection pin of the main board can be set to be in a read state, the GPIO interface reads each voltage state and records each voltage state in a write node, the write node is understood as a storage node in the electronic device, further, test software on the electronic device reads each voltage state in the write node and displays the voltage state on a display interface of the test software, so that a tester can judge whether the functional module is correctly installed on the main board.
It should be noted that in the above embodiment, the correct connection between the first detection pin and the second detection pin means that the connection state of the first detection pin and the second detection pin meets the preset requirement, and at this time, the first detection pin and the second detection pin are in a communication state. The correct installation of the functional module on the main board means that the functional module is installed on the main board and the installation state meets the installation requirement, and at this time, the functional module is in a communication state with the main board, that is, if the functional module is displayed abnormally during the test, the abnormality caused by the incorrect installation of the functional module can be eliminated.
In the above embodiment, when performing a functional test on an assembled electronic device, if a functional module is abnormal in a test result, a tester does not need to check the problem one by one for software and hardware in the functional module, but can determine whether the abnormal problem is caused by incorrectly installing the functional module, if so, a specific solution can be adopted, for example, the functional module is reinstalled after the electronic device is disassembled or the installation state of the functional module is manually checked, otherwise, other problems are checked. Through the mode, the functional module can be primarily judged, and the next operation is performed according to the primary judgment result, so that the testing workload of testers is reduced, and the testing efficiency is improved.
Based on the same inventive concept, an embodiment of the present invention further provides a computing device, including:
a memory for storing program instructions;
and the processor is used for calling the program instructions stored in the memory and executing the detection method according to the obtained program.
Based on the same inventive concept, the embodiments of the present invention also provide a computer-readable nonvolatile storage medium including computer-readable instructions, which when read and executed by a computer, cause the computer to perform the above-described detection method.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.