CN103699453B - Module identification method and terminal unit - Google Patents

Module identification method and terminal unit Download PDF

Info

Publication number
CN103699453B
CN103699453B CN201310687907.5A CN201310687907A CN103699453B CN 103699453 B CN103699453 B CN 103699453B CN 201310687907 A CN201310687907 A CN 201310687907A CN 103699453 B CN103699453 B CN 103699453B
Authority
CN
China
Prior art keywords
port
module
signal
output signal
cpu
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
Application number
CN201310687907.5A
Other languages
Chinese (zh)
Other versions
CN103699453A (en
Inventor
王笑
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Honor Device Co Ltd
Original Assignee
Huawei Device Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Device Co Ltd filed Critical Huawei Device Co Ltd
Priority to CN201310687907.5A priority Critical patent/CN103699453B/en
Publication of CN103699453A publication Critical patent/CN103699453A/en
Application granted granted Critical
Publication of CN103699453B publication Critical patent/CN103699453B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

The embodiment of the invention discloses a kind of module identification method and terminal unit, wherein, the module that second port of module is connected with detection port, when the second port transmission high level signal and the low level signal of CPU, the output signal during signal of second port transmission of the detection port receiving area CPU under different conditions of module, is different from the output signal detecting port that the detection port of the second port of module with module is not attached lower module;So, dig up the roots the detection port receiving area CPU under different conditions according to module the second port transmission signal time output signal identify 3 modules outside, can also be by when second port of CPU exports high level signal and low level signal, the output signal of the detection port of described module identifies the 4th kind of module, owing to not increasing GPIO port, the problem that many degree of the GPIO port resource caused when solving the module identifying more than 3 in existing method take.

Description

Module identification method and terminal unit
Technical field
The present invention relates to detection technique field, more particularly, it relates to a kind of module identification method and terminal Equipment.
Background technology
At present, the device in electronic product, such as, many matchmakers such as photographic head, LCDs, touch screen Body device, is all modularity design.Module in electronic product can be provided by multiple module suppliers.
Owing to the software-driven of the module of different module suppliers offer all differs, the most same module supplies The software-driven answering the module of the different model that business provides can also differ, and thus needs using mould Before group, module is identified.
Existing module identification method can include that hardware identity mark ID identifies.Described hardware ID identification It is specifically as follows: module and central processing unit are set up and connects, and using module port as detection Port, this detection port needs to connect a GPIO(General Purpose Input of central processing unit Output, universal input/output) port;The detection port of different modules can receive described CPU's GPIO port transmission different input signals and export corresponding signal, CPU by read module inspection The output signal surveying port identifies module.
Owing to a GPIO port of CPU only includes high and low and three kinds of states of high resistant, i.e. one GPIO end Mouth can export the signal of three types, and therefore, a GPIO port is only capable of supporting 3 different modules. If desired identify the module of more than 3, then need to increase the GPIO port for detection, thus can cause Many degree of GPIO port resource take.
Summary of the invention
In view of this, the embodiment of the present invention provides a kind of module identification method and terminal unit, existing to solve The problem that many degree of the GPIO port resource caused when having in method the module identifying more than 3 take.
To achieve these goals, it is proposed that scheme as follows:
The first aspect of the embodiment of the present invention provides a kind of module identification method, is applied to terminal unit, institute First port of CPU stating terminal unit is connected with the detection port of module, second port of described CPU It is connected with the second port of described module;Described method includes:
The second port controlling described CPU exports high level signal and low level signal respectively;
When the second port output high level signal of described CPU, detect the test side of described module respectively Mouthful when receiving the signal of the first port transmission of the described CPU being configured to different conditions, described mould The output signal of the detection port of group;When the second port output low level signal of described CPU, respectively Detect the detection port of described module at the first port receiving the described CPU being configured to different conditions During the signal transmitted, the output signal of the detection port of described module;First port of described CPU is joined The state put includes inputting pull-up state, input pull-down state and inputting not tension state;
In conjunction with the output signal of the second port of described CPU and the detection port of described module that detects The type of output signal, identifies described module.
In conjunction with the first aspect of the embodiment of the present invention, in the first reality of the first aspect of the embodiment of the present invention Execute in mode, the output signal of second port of CPU described in described combination and the described module detected The type of the output signal of detection port, identifies described module, including:
Determine satisfied first pre-conditioned, identify the module that described module is described module detection port ground connection;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
In conjunction with the first aspect of the embodiment of the present invention, real at the second of the first aspect of the embodiment of the present invention Execute in mode, the output signal of second port of CPU described in described combination and the described module detected The type of the output signal of detection port, identifies described module, including:
Determine satisfied second pre-conditioned, identify the mould that detection port that described module is described module is unsettled Group;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the detection of described module detected Port is configured as input to the letter of the first port transmission that is drop-down and that input the described CPU not drawn receiving Number time, described module detection port output signal be low level signal.
In conjunction with the first aspect of the embodiment of the present invention, in the third reality of the first aspect of the embodiment of the present invention Execute in mode, the output signal of second port of CPU described in described combination and the described module detected The type of the output signal of detection port, identifies described module, including:
Determine satisfied 3rd pre-conditioned, identify that the detection port that described module is described module connects power supply Module;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
In conjunction with the first aspect of the embodiment of the present invention, in the 4th kind of reality of the first aspect of the embodiment of the present invention Execute in mode, the output signal of second port of CPU described in described combination and the described module detected The type of the output signal of detection port, identifies described module, including:
Determine satisfied 4th pre-conditioned, identify the second port and described mould that described module is described module The module that the detection port of group is connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
In conjunction with the first embodiment of first aspect of the embodiment of the present invention, the second embodiment or The third embodiment, in the 5th kind of embodiment of the first aspect of the embodiment of the present invention, described knot The output letter of the detection port of the output signal closing second port of described CPU and the described module detected Number type identification described in module, also include:
Determine satisfied 4th pre-conditioned, identify the second port and described mould that described module is described module The module that the detection port of group is connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
Second aspect in the embodiment of the present invention provides a kind of terminal unit, including: CPU and module, institute The detection port of the first port and described module of stating CPU is connected, second port of described CPU and institute The second port stating module is connected, wherein,
Described CPU exports high level signal and low level letter respectively for the second port controlling described CPU Number;When the second port output high level signal of described CPU, detect the test side of described module respectively Mouthful when receiving the signal of the first port transmission of the described CPU being configured to different conditions, described mould The output signal of the detection port of group;When the second port output low level signal of described CPU, respectively Detect the detection port of described module at the first port receiving the described CPU being configured to different conditions During the signal transmitted, the output signal of the detection port of described module;And combine second end of described CPU The output signal of mouth and the type of the output signal of the detection port of the described module detected, identify described Module, the state that first port of described CPU is configured includes inputting pull-up state, input pull-down state With input not tension state.
In conjunction with the second aspect of the embodiment of the present invention, in the first reality of the second aspect of the embodiment of the present invention Executing in mode, described CPU is described in combine the output signal of the second port of described CPU and detect The type of the output signal of the detection port of module, when identifying described module, specifically for: determine satisfied First is pre-conditioned, identifies the module that described module is described module detection port ground connection;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
In conjunction with the second aspect of the embodiment of the present invention, real at the second of the second aspect of the embodiment of the present invention Executing in mode, described CPU is described in combine the output signal of the second port of described CPU and detect The type of the output signal of the detection port of module, when identifying described module, specifically for: determine satisfied Second is pre-conditioned, identifies the detection unsettled module of port that described module is described module;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the detection of described module detected Port is configured as input to the letter of the first port transmission that is drop-down and that input the described CPU not drawn receiving Number time, described module detection port output signal be low level signal.
In conjunction with the second aspect of the embodiment of the present invention, in the third reality of the second aspect of the embodiment of the present invention Executing in mode, described CPU is described in combine the output signal of the second port of described CPU and detect The type of the output signal of the detection port of module, when identifying described module, specifically for: determine satisfied 3rd is pre-conditioned, identifies that the detection port that described module is described module connects the module of power supply;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
In conjunction with the second aspect of the embodiment of the present invention, in the 4th kind of reality of the second aspect of the embodiment of the present invention Executing in mode, described CPU is described in combine the output signal of the second port of described CPU and detect The type of the output signal of the detection port of module, when identifying described module, specifically for: determine satisfied 4th is pre-conditioned, identifies the second port and the detection port of described module that described module is described module The module being connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
In conjunction with the first embodiment of second aspect of the embodiment of the present invention, the second embodiment or The third embodiment, in the 5th kind of embodiment of the embodiment of the present invention, described CPU is combining The output signal of the detection port of the output signal stating second port of CPU and the described module detected Type, when identifying described module, is specifically additionally operable to: determines satisfied 4th pre-conditioned, identifies described mould The module that the second port that group is described module is connected with the detection port of described module;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
From above-mentioned technical scheme it can be seen that the open module identification method of the embodiment of the present invention, will be by Second port of the module identified is connected with detection port, and the module of this type, at the second of CPU When port transmission high level signal and low level signal, the detection port receiving area of described module is in input The defeated during signal of second port transmission of the described CPU draw, inputted under the drop-down and state do not drawn of input Go out signal, be different from and the detection port of the second port of described module Yu described module is not attached down Module detection port output signal;So, dig up the roots the detection port receiving area according to described module in Input pulls up, inputs the transmission signal of second port of described CPU that is drop-down and that input under the state do not drawn Time output signal identify outside 3 modules, it is also possible to by described CPU second port export When high level signal and low level signal, the output signal of the detection port of described module identifies institute The module that the detection port of the second port and described module of stating module is connected, i.e. identifies the 4th mould Group, owing to not increasing the GPIO port of detection, when solving the module identifying more than 3 in existing method The problem that many degree of the GPIO port resource caused take.
Accompanying drawing explanation
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, institute in embodiment being described below The accompanying drawing used is needed to be briefly described, it should be apparent that, the accompanying drawing in describing below is only this Some bright embodiments, for those of ordinary skill in the art, before not paying creative work Put, it is also possible to obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the flow chart of a kind of module identification method disclosed in the embodiment of the present invention;
Fig. 2 is the flow chart of a kind of module identification method disclosed in another embodiment of the present invention;
Fig. 3 is the flow chart of a kind of module identification method disclosed in another embodiment of the present invention;
Fig. 4 is the flow chart of a kind of module identification method disclosed in another embodiment of the present invention;
Fig. 5 is the flow chart of a kind of module identification method disclosed in another embodiment of the present invention;
Fig. 6 is the flow chart of a kind of module identification method disclosed in another embodiment of the present invention;
Fig. 7 is the exemplary plot of a kind of module identification method disclosed in the embodiment of the present invention;
Fig. 8 is the exemplary plot of a kind of module identification method disclosed in another embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out Clearly and completely describe, it is clear that described embodiment is only a part of embodiment of the present invention, and It is not all, of embodiment.Based on the embodiment in the present invention, those of ordinary skill in the art are not making Go out the every other embodiment obtained under creative work premise, broadly fall into the scope of protection of the invention.
The embodiment of the present invention provides a kind of module identification method, to solve to identify more than 3 in existing method Module time the problem that takies of many degree of GPIO port resource of causing.
Herein it should be noted that module identification method disclosed in the embodiment of the present invention is applied to terminal unit, Described terminal unit includes CPU and module, and, described module identification method is existing except identifying Outside module, it is also possible to identify the module that the second port of module is connected with the detection port of module, its In, described second port is any one port in described module in addition to the detection port of module, described The detection port of module is connected with first port of described CPU, and first port of described CPU is institute State any one GPIO port of CPU.
Further, module disclosed in the embodiment of the present invention refers to the device with communication interface, such as: photographic head, The a series of multimedia device such as LCDs and touch screen.
See Fig. 1, a kind of module identification method disclosed in the embodiment of the present invention, including:
S101, the second port controlling described CPU export high level signal and low level signal respectively.
In the present embodiment, second port of CPU is connected with the second port of described identified module, Described CPU is when identifying any one module being identified, and second port of described CPU is individually configured High low with output for output, corresponding, second port output high level signal and the low level of described CPU Second port of signal extremely described module, the signal of the second port output of described CPU is described module Second port receive signal.
S102, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module.
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state.
Wherein, any one port of described module all can be as test side disclosed in the embodiment of the present invention Mouthful, generally, using the first port of described module as the detection port of module.
Further, when second port of described CPU is configured to different states, the signal of transmission differs, Concrete, second port of described CPU is in the state of input pull-up, and its transmission signal is high level letter Number;Second port of described CPU is in the state that input is drop-down, and its transmission signal is low level signal; Second port of described CPU is in the state that input is not drawn, and its transmission signal is empty.
S103, the output signal combining second port of described CPU and the detection of described module detected The type of the output signal of port, identifies described module.
Second port of identified module is connected with detection port, the module of this type, described When the second port transmission high level signal of CPU and low level signal, the detection port of described module receives Second port transmission of the described CPU be in input pull-up, inputting under the drop-down and state do not drawn of input Output signal during signal, is different from by the detection port of the second port of described module and described module not The output signal of the detection port of the module under being attached;So, dig up the roots the test side according to described module The second port that mouth receives and is in input pull-up, inputs described CPU that is drop-down and that input under the state do not drawn Transmission signal time output signal identify outside 3 modules, it is also possible to by the second of described CPU The output signal of the detection port of port output high level signal and low level signal and described module identifies The module being connected with the detection port of described module by second port of described module, i.e. identifies the 4th Individual module, owing to not increasing the GPIO port of detection, solves the mould identifying more than 3 in existing method The problem that many degree of the GPIO port resource caused during group take.
Further, herein also, it should be noted second port of described CPU and first end of described CPU Mouth is multiplexing functions, and the detection port of the second port of described module and described module is also that function is multiple With, second port of described CPU and the second port of described module are only identified described at described CPU During module, be used as the function identified, when after described module end of identification, second port of described CPU and Second port of described module all can complete other work.Therefore, mould disclosed in embodiment the present embodiment The recognition methods of group, is equivalent to only take up a GPIO port of described CPU, also occupies described One port of module.
Another embodiment of the present invention also discloses a kind of module identification method, as in figure 2 it is shown, include step:
S201, the second port controlling described CPU export high level signal and low level signal respectively;
S202, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module;
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state;
S203, determine satisfied first pre-conditioned, identify that described module is that described module detects port ground connection Module;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
Concrete, in the present embodiment, when the second port output high level signal of described CPU, described The detection port of module receives respectively and is in input pull-up, inputs institute that is drop-down and that input under the state do not drawn State the transmission signal of first port of CPU, the detection port of the most described module receive respectively high level signal, When low level signal and spacing wave, detect the output signal of the detection port of described module, it is judged that described The output signal of the detection port of module is low level signal.
Further, when the second port output low level signal of described CPU, the detection port of described module The first end receive respectively and be in input pull-up, inputting described CPU that is drop-down and that input under the state do not drawn The transmission signal of mouth, detects the output signal of the detection port of described module, it is judged that the detection of described module The output signal of port is also low level signal, and the electricity that the second port of the most described module receives is described The output signal of the detection port of described module is not affected, i.e. it follows that now known by ordinary mail number Described second port and the detection port of described module in other module are not attached.
High level signal, low level signal and during spacing wave is received again due to the detection port of described module Output signal be low level signal, then the detection port ground connection of described module is described, so, described The output signal of the detection port of module just can be pulled low, and which the detection port of the most described module receives Planting signal, output signal is low level signal.
Another embodiment of the present invention also discloses a kind of module identification method, sees Fig. 3, including:
S301, the second port controlling described CPU export high level signal and low level signal respectively;
S302, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module;
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state;
S303, determine satisfied second pre-conditioned, identify that the detection port that described module is described module hangs Empty module;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the inspection of described module detected Survey port and be configured as input to first port transmission of described CPU that drop-down and input do not draws receiving During signal, the output signal of the detection port of described module is low level signal.
Equally, in the present embodiment, at the second port output high level signal of described CPU or defeated Going out low level signal, the detection port of described module receives high level signal, low level signal and empty letter Number time output signal the most identical, illustrate described module second port receive described CPU the second port The output signal of the detection port of described module is not affected by the level signal of output, is the most now identified Module in the second port of described module and the detection port of described module do not connect.
Again due to described module detection port receive high level signal time output signal be high level letter Number, the output signal when detection port of described module receives low level signal and spacing wave is low level Signal, the output signal of the detection port of the most described module follows the input letter of the detection port of described module Number, now illustrate that the detection port of described module is unsettled, the i.e. identified detection that module is described module The module that port is unsettled.
Another embodiment of the present invention also discloses a kind of module identification method, sees Fig. 4, including:
S401, the second port controlling described CPU export high level signal and low level signal respectively;
S402, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module;
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state;
S403, determine satisfied 3rd pre-conditioned, identify that the detection port that described module is described module connects The module of power supply;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
Equally, in the present embodiment, at the second port output high level signal of described CPU or defeated Going out low level signal, the detection port of described module receives high level signal, low level signal and empty letter Number time output signal the most identical, illustrate described module second port receive described CPU the second port The output signal of the detection port of described module is not affected by the level signal of output, is the most now identified Module in the second port of described module and the detection port of described module be not attached.
High level signal, low level signal and during spacing wave is received again due to the detection port of described module Output signal be high level signal, the equal input high level of detection port of described module is now described, The detection port of the most described module connects power supply, and now, no matter input signal is the detection port of described module Which kind of signal, its output signal all can be driven high.
Another embodiment of the present invention also discloses a kind of module identification method, sees Fig. 5, including:
S501, the second port controlling described CPU export high level signal and low level signal respectively;
S502, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module;
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state;
S503, determine satisfied 4th pre-conditioned, identify the second port that described module is described module with The module that the detection port of described module is connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
In the present embodiment, second port of described CPU is output as high level signal and output low level signal Time, output letter when the detection port of described module receives high level signal, low level signal and spacing wave Number it is distinguishing, now, illustrates that the second port of described module receives the second port output of CPU The output signal that described module is detected port by signal has an impact, and the institute of now identified module is described The detection port of the second port and described module of stating module is connected.
Concrete, when the second port output high level signal of described CPU, due to the of described module Two-port netwerk is connected with the detection port of described module, the input signal of the detection port of the most described module For which kind of signal, the second port of described module receives the high level letter of the second port output of described CPU Number all the output signal of the detection port of described module can be drawn high.
Equally, during the second port output low level signal of described CPU, due to the second end of described module Mouth is connected with the detection port of described module, and which the input signal of the detection port of the most described module is Planting signal, the low level signal of the second port output that the second port of described module receives described CPU is equal The output signal of the detection port of described module can be dragged down.
Another embodiment of the present invention also discloses a kind of module identification method, sees Fig. 6, including:
S601, the second port controlling described CPU export high level signal and low level signal respectively.
S602, described CPU second port output high level signal time, detect described module respectively Detection port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, The output signal of the detection port of described module;When the second port output low level signal of described CPU, The detection port detecting described module respectively is receiving the first of the described CPU being configured to different conditions During the signal of port transmission, the output signal of the detection port of described module.
Wherein, the state that first port of described CPU is configured include input pull-up state, input drop-down State and input not tension state.
Then, in conjunction with the output signal of the second port of described CPU and the detection of described module that detects The type of the output signal of port, it is possible to identify described module;When determine satisfied first pre-conditioned time, Perform step 603;When determine satisfied second pre-conditioned time, perform step 604;When determining the satisfied 3rd Time pre-conditioned, perform step 605;When determine satisfied 4th pre-conditioned time, perform step 606.
S603, identify described module be described module detection port ground connection module.
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
S604, identify the detection unsettled module of port that described module is described module.
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal.
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the detection of described module detected Port is configured as input to the letter of the first port transmission that is drop-down and that input the described CPU not drawn receiving Number time, described module detection port output signal be low level signal.
S605, identify that the detection port that described module is described module connects the module of power supply.
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
S606, identify that the second port that described module is described module is connected with the detection port of described module The module connect;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
Concrete, the specific works of step disclosed in the present embodiment refers to the enforcement in corresponding diagram 2-Fig. 5 Example, here is omitted.
Multimedia identification side disclosed in the embodiment of corresponding diagram 5 of the present invention is described below by way of two examples Method.
See Fig. 7, using the P1 port of module 101 as detection port, by the P2 port of module 101 As the second port, P1 port and the P2 port of module 101 link together.
The corresponding port of central processor CPU 102 and module 101 connects, and may refer to show in Fig. 7 Content, such as: the P1 port of module 101 and the GPIO_0 port of central processor CPU 102 connect, The P2 port of module 101 is connected with the GPIO_1 port of central processor CPU 102.
It is high low with output that the GPIO_1 port of central processor CPU 102 is configured to output, now, in The GPIO_1 port output high level signal of central processor CPU102 and low level signal are to module 101 P2 port.
During the P2 port of module 101 receives high level signal and low level signal, central authorities process The GPIO_0 port of device CPU102 is respectively configured as input pull-up, inputs drop-down and input the shape not drawn State, the transmission signal of this port is separately input into the P1 port of module 101, central processor CPU 102 Obtain the output signal of the P1 port of module 101, and combine the letter inputting the P2 port to module 101 Number and the output signal of P1 port of module 101 identify module 101.
Herein it should be noted that the GPIO_0 port of central processor CPU 102 is configured as input to Under the state drawn, the signal of this port transmission is high level signal;The GPIO-of central processor CPU 102 _ 0 port is configured as input under drop-down state, and the signal of this port transmission is low level signal;Central authorities The GPIO_0 port of processor CPU102 is configured as input under the state do not drawn, the letter of this port transmission Number it is spacing wave.
Concrete, the signal that the P2 port of module 101 receives is high level signal, the P1 of module 101 When port receives high level signal, low level signal and spacing wave, output signal is high level signal; The signal that the P2 port of module 101 receives is low level signal, and the P1 port of module 101 receives high electricity When ordinary mail number, low level signal and spacing wave, output signal is low level signal.
Equally, in another example, Fig. 8 is seen, using the P1 port of module 103 as detection port, The P4 port of module 103 is connected to as the second port, P1 port and the P4 port of module 103 Together.
Identical with foregoing, the corresponding port of central processor CPU 102 and module 103 connects, please See Fig. 8.
It is high low with output that the GPIO_2 port of central processor CPU 102 is configured to output, now, in The GPIO_2 port output high level signal of central processor CPU102 and low level signal are to module 101 P4 port.
During the P4 port of module 103 receives high level signal and low level signal, module 103 P1 port receive high level signal, low level signal and spacing wave, central processor CPU 102 obtains The output signal of the P1 port of delivery group 103, and combine the signal inputting the P4 port to module 103 Module 103 is identified with the output signal of the P1 port of module 103.
In figures 7 and 8, the port being connected with the P1 port of module differs, by detection module Port whether have the output of output signal, it is possible to distinguish corresponding different port is connected to the P1 port of module Module.
Receive the difference of output signal under unlike signal in conjunction with by the P1 port of module, can identify not With the connection of P1 port, the module that the connection identification of corresponding different P1 port is different, referring specifically to List below.
Another embodiment of the present invention also discloses a kind of terminal unit, including:
CPU and module, first port of described CPU is connected with the detection port of described module, described Second port of CPU is connected with the second port of described module, wherein,
Described CPU exports high level signal and low level letter respectively for the second port controlling described CPU Number;When the second port output high level signal of described CPU, detect the detection of described module respectively Port when receiving the signal of the first port transmission of the described CPU being configured to different conditions, institute State the output signal of the detection port of module;When the second port output low level signal of described CPU, Detect the detection port of described module respectively and receive the of the described CPU that is configured to different conditions During the signal that Single port transmits, the output signal of the detection port of described module;And combine described CPU The output signal of the second port and the type of the output signal of the detection port of described module that detects, Identifying described module, the state that first port of described CPU is configured includes inputting pull-up state, defeated Enter pull-down state and input not tension state.
Herein it should be noted that the module that includes of terminal unit disclosed in the present embodiment is the most multiple, Each module is identified by described CPU successively.Further, in the terminal unit disclosed in the present embodiment Including CPU and the annexation of module, can be found in Fig. 7 and Fig. 8.
Terminal unit disclosed in the embodiment of the present invention, the module that the second port is connected with detection port, CPU When controlling the second port transmission high level signal and the low level signal of described CPU, it is described that CPU obtains The detection port receiving area of module pulls up in input, inputs drop-down and input described under the state do not drawn The output signal during signal of second port transmission of CPU, be different from by the second port of described module with The output signal of the detection port of the module detected under port is not attached of described module;So, remove Detection port receiving area according to described module pulls up in input, inputs drop-down and input under the state do not drawn Described CPU the second port transmission signal time output signal identify outside 3 modules, also may be used To pass through when second port of described CPU exports high level signal and low level signal, described module The output signal of detection port identifies the detection port of the second port of described module Yu described module The module being connected, i.e. identifies the 4th module, owing to not increasing the GPIO port of detection, solves The problem that many degree of the GPIO port resource caused when identifying the module of more than 3 in existing method take.
Preferably, described CPU is in the output signal of the second port combining described CPU and the institute detected State the type of output signal of the detection port of module, identify the mode of described module specifically can include with Any one or combination in any of lower four kinds of modes.
The first, determine satisfied first pre-conditioned, identify that described module is that described module detection port connects The module on ground;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
The second, determine satisfied second pre-conditioned, identify the detection port that described module is described module Unsettled module;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the inspection of described module detected Survey port and be configured as input to first port transmission of described CPU that drop-down and input do not draws receiving During signal, the output signal of the detection port of described module is low level signal.
The third, determine satisfied 3rd pre-conditioned, identify the detection port that described module is described module Connect the module of power supply;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
4th kind, determine satisfied 4th pre-conditioned, identify the second port that described module is described module The module being connected with the detection port of described module;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
One of ordinary skill in the art will appreciate that all or part of stream realizing in above-described embodiment method Journey, can be by computer program and completes to instruct relevant hardware, and described program can be stored in In computer read/write memory medium, this program is upon execution, it may include such as the embodiment of above-mentioned each method Flow process.Wherein, described storage medium can be magnetic disc, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc..
Finally, in addition it is also necessary to explanation, in this article, the relational terms of such as first and second or the like It is used merely to separate an entity or operation with another entity or operating space, and not necessarily requires Or imply relation or the order that there is any this reality between these entities or operation.And, art Language " includes ", " comprising " or its any other variant are intended to comprising of nonexcludability, thus Make to include that the process of a series of key element, method, article or equipment not only include those key elements, and Also include other key elements being not expressly set out, or also include for this process, method, article or The key element that person's equipment is intrinsic.In the case of there is no more restriction, by statement " including ... " The key element limited, it is not excluded that also deposit in including the process of described key element, method, article or equipment In other identical element.
In this specification, each embodiment uses the mode gone forward one by one to describe, and each embodiment stresses Being the difference with other embodiments, between each embodiment, identical similar portion sees mutually.
Described above to the disclosed embodiments, makes professional and technical personnel in the field be capable of or uses The present invention.Multiple amendment to these embodiments will be aobvious and easy for those skilled in the art See, generic principles defined herein can without departing from the spirit or scope of the present invention, Realize in other embodiments.Therefore, the present invention is not intended to be limited to the embodiments shown herein, And it is to fit to the widest scope consistent with principles disclosed herein and features of novelty.

Claims (12)

1. a module identification method, it is characterised in that be applied to terminal unit, described terminal unit First port of CPU is connected with the detection port of module, second port of described CPU and described module Second port is connected;Described method includes:
The second port controlling described CPU exports high level signal and low level signal respectively;
When the second port output high level signal of described CPU, detect the test side of described module respectively Mouthful when receiving the signal of the first port transmission of the described CPU being configured to different conditions, described mould The output signal of the detection port of group;When the second port output low level signal of described CPU, respectively Detect the detection port of described module at the first port receiving the described CPU being configured to different conditions During the signal transmitted, the output signal of the detection port of described module;First port of described CPU is joined The state put includes inputting pull-up state, input pull-down state and inputting not tension state;
In conjunction with the output signal of the second port of described CPU and the detection port of described module that detects The type of output signal, identifies described module.
Method the most according to claim 1, it is characterised in that of CPU described in described combination The output signal of Two-port netwerk and the type of the output signal of the detection port of the described module detected, identify Described module, including:
Determine satisfied first pre-conditioned, identify the module that described module is described module detection port ground connection;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
Method the most according to claim 1, it is characterised in that of CPU described in described combination The output signal of Two-port netwerk and the type of the output signal of the detection port of the described module detected, identify Described module, including:
Determine satisfied second pre-conditioned, identify the mould that detection port that described module is described module is unsettled Group;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the detection of described module detected Port is configured as input to the letter of the first port transmission that is drop-down and that input the described CPU not drawn receiving Number time, described module detection port output signal be low level signal.
Method the most according to claim 1, it is characterised in that of CPU described in described combination The output signal of Two-port netwerk and the type of the output signal of the detection port of the described module detected, identify Described module, including:
Determine satisfied 3rd pre-conditioned, identify that the detection port that described module is described module connects power supply Module;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
Method the most according to claim 1, it is characterised in that of CPU described in described combination The type identification institute of the output signal of the detection port of the output signal of Two-port netwerk and the described module that detects State module, including:
Determine satisfied 4th pre-conditioned, identify the second port and described mould that described module is described module The module that the detection port of group is connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
6. according to the method described in any one in claim 2-4, it is characterised in that described combination institute The output signal of the detection port of the output signal stating second port of CPU and the described module detected Module described in type identification, also includes:
Determine satisfied 4th pre-conditioned, identify the second port and described mould that described module is described module The module that the detection port of group is connected;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
7. a terminal unit, it is characterised in that including: CPU and module, the first of described CPU Port is connected with the detection port of described module, second port of described CPU and the second of described module Port is connected, wherein,
Described CPU exports high level signal and low level letter respectively for the second port controlling described CPU Number;When the second port output high level signal of described CPU, detect the test side of described module respectively Mouthful when receiving the signal of the first port transmission of the described CPU being configured to different conditions, described mould The output signal of the detection port of group;When the second port output low level signal of described CPU, respectively Detect the detection port of described module at the first port receiving the described CPU being configured to different conditions During the signal transmitted, the output signal of the detection port of described module;And combine second end of described CPU The output signal of mouth and the type of the output signal of the detection port of the described module detected, identify described Module, the state that first port of described CPU is configured includes inputting pull-up state, input pull-down state With input not tension state.
Terminal unit the most according to claim 7, it is characterised in that described CPU is combining The output signal of the detection port of the output signal stating second port of CPU and the described module detected Type, when identifying described module, specifically for: determine satisfied first pre-conditioned, identify described module Module for described module detection port ground connection;
Wherein, described first pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is low level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
Terminal unit the most according to claim 7, it is characterised in that described CPU is combining The output signal of the detection port of the output signal stating second port of CPU and the described module detected Type, when identifying described module, specifically for: determine satisfied second pre-conditioned, identify described module For the module that the detection port of described module is unsettled;
Wherein, described second pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect that the detection port of described module is receiving the described CPU being configured as input to pull-up The signal of the first port transmission time, the output signal of the detection port of described module is high level signal, Detect described module detection port receive be configured as input to drop-down and input do not draw described in During the signal of first port transmission of CPU, the output signal of the detection port of described module is low level Signal;
Further, when the output signal of second port of described CPU is low level signal, described mould is detected The detection port of group is at the signal of the first port transmission receiving the described CPU being configured as input to pull-up Time, the output signal of the detection port of described module is high level signal, the detection of described module detected Port is configured as input to the letter of the first port transmission that is drop-down and that input the described CPU not drawn receiving Number time, described module detection port output signal be low level signal.
Terminal unit the most according to claim 7, it is characterised in that described CPU is combining The output signal of the detection port of the output signal stating second port of CPU and the described module detected Type, when identifying described module, specifically for: determine satisfied 3rd pre-conditioned, identify described module Detection port for described module connects the module of power supply;
Wherein, the described 3rd pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is high level signal.
11. terminal units according to claim 7, it is characterised in that described CPU is combining The output signal of the detection port of the output signal stating second port of CPU and the described module detected Type, when identifying described module, specifically for: determine satisfied 4th pre-conditioned, identify described module The module being connected with the detection port of described module for the second port of described module;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
12. terminal units described in any one in-10 according to Claim 8, it is characterised in that described CPU is at the output signal of the second port combining described CPU and the detection port of described module detected The type of output signal, when identifying described module, be specifically additionally operable to: determine satisfied 4th pre-conditioned, Identify the module that the second port that described module is described module is connected with the detection port of described module;
Wherein, the described 4th pre-conditioned is: the output signal of second port of described CPU is high level During signal, detect the detection port of described module receive be configured as input to pull-up, input drop-down During with the signal of the first port transmission that described CPU under three kinds of states is not drawn in input, the inspection of described module The output signal surveying port is high level signal;Further, the output signal of second port of described CPU During for low level signal, detect the detection port of described module receive be configured as input to pull-up, When inputting the signal of the first port transmission that described CPU under three kinds of states is not drawn in drop-down and input, described The output signal of the detection port of module is low level signal.
CN201310687907.5A 2013-12-13 2013-12-13 Module identification method and terminal unit Active CN103699453B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201310687907.5A CN103699453B (en) 2013-12-13 2013-12-13 Module identification method and terminal unit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310687907.5A CN103699453B (en) 2013-12-13 2013-12-13 Module identification method and terminal unit

Publications (2)

Publication Number Publication Date
CN103699453A CN103699453A (en) 2014-04-02
CN103699453B true CN103699453B (en) 2017-01-04

Family

ID=50360992

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310687907.5A Active CN103699453B (en) 2013-12-13 2013-12-13 Module identification method and terminal unit

Country Status (1)

Country Link
CN (1) CN103699453B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104298635A (en) * 2014-09-26 2015-01-21 福建联迪商用设备有限公司 Method and device for recognizing equipment version information through GPIO port line
CN105632381B (en) * 2015-12-31 2018-12-18 厦门天马微电子有限公司 A kind of recognition methods and identifying system of test equipment
CN106227559B (en) * 2016-07-14 2020-01-14 Oppo广东移动通信有限公司 Module loading method and terminal equipment
CN111144733B (en) * 2019-12-23 2023-07-18 宁波三星医疗电气股份有限公司 Platform identification method, platform identification device, metering automation terminal and readable storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200983156Y (en) * 2006-12-15 2007-11-28 鸿富锦精密工业(深圳)有限公司 Time sequence control circuit
CN102262482A (en) * 2011-08-25 2011-11-30 惠州Tcl移动通信有限公司 Mobile phone and touch screen control method

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5179726B2 (en) * 2006-06-27 2013-04-10 マーベル ワールド トレード リミテッド Semiconductor device
CN101695088B (en) * 2009-10-19 2012-05-23 华为终端有限公司 Module identification method and terminal
CN102567177B (en) * 2010-12-25 2014-12-10 鸿富锦精密工业(深圳)有限公司 System and method for detecting error of computer system
CN102169468B (en) * 2011-03-22 2013-01-09 惠州Tcl移动通信有限公司 Identification method for external module and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN200983156Y (en) * 2006-12-15 2007-11-28 鸿富锦精密工业(深圳)有限公司 Time sequence control circuit
CN102262482A (en) * 2011-08-25 2011-11-30 惠州Tcl移动通信有限公司 Mobile phone and touch screen control method

Also Published As

Publication number Publication date
CN103699453A (en) 2014-04-02

Similar Documents

Publication Publication Date Title
CN103699453B (en) Module identification method and terminal unit
CN102393837B (en) USB charger recognition device and method
CN202632283U (en) Mobile equipment
CN104850384A (en) Spliced screen, method for determining address of each spliced screen unit and main control board
US20150074302A1 (en) Automated Cabling Process for a Complex Environment
CN104298635A (en) Method and device for recognizing equipment version information through GPIO port line
CN108390856A (en) A kind of ddos attack detection method, device and electronic equipment
CN105051798A (en) Systems and methods for detecting a document attribute using acoustics
US20220107773A1 (en) Methods and apparatus for external display power loss detection
CN104007973B (en) A kind of cross-system data interactive method and platform
CN102968435B (en) Method and the corresponding information classification of setting up categories of information system browse retrieval device
CN109271096A (en) NVME storage expansion system
CN106462512A (en) Solution for mutually identifying forward and reverse insertion between touch type usb devices
CN1893605B (en) Electronic apparatus and control method thereof
CN104459376B (en) A kind of interface circuit and peripherals detecting method, outer sensor based on the circuit
CN206040187U (en) Liquid crystal all -in -one with self -checking function
CN205910643U (en) Mainboard and server
CN105700915A (en) Method and device integrating watchdog function and monitoring software programming function
CN107422214A (en) A kind of testing device for touch screens
CN204758725U (en) Detection apparatus for electronic equipment USB interface
CN107656187A (en) A kind of differential line test information determines method and apparatus
CN110022178A (en) A kind of detection circuit and detection method of WiFi module
CN107609119A (en) Document handling method, mobile terminal and computer-readable recording medium
CN107347370A (en) A kind of corn husker with detection function
CN107454658A (en) WiFi connection method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20171030

Address after: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee after: Huawei terminal (Dongguan) Co.,Ltd.

Address before: 518129 Longgang District, Guangdong, Bantian HUAWEI base B District, building 2, building No.

Patentee before: HUAWEI DEVICE Co.,Ltd.

CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee after: HUAWEI DEVICE Co.,Ltd.

Address before: 523808 Southern Factory Building (Phase I) Project B2 Production Plant-5, New Town Avenue, Songshan Lake High-tech Industrial Development Zone, Dongguan City, Guangdong Province

Patentee before: Huawei terminal (Dongguan) Co.,Ltd.

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20210422

Address after: Unit 3401, unit a, building 6, Shenye Zhongcheng, No. 8089, Hongli West Road, Donghai community, Xiangmihu street, Futian District, Shenzhen, Guangdong 518040

Patentee after: Honor Device Co.,Ltd.

Address before: Metro Songshan Lake high tech Industrial Development Zone, Guangdong Province, Dongguan City Road 523808 No. 2 South Factory (1) project B2 -5 production workshop

Patentee before: HUAWEI DEVICE Co.,Ltd.