CN107977334A - Electronic card and its detection method - Google Patents

Electronic card and its detection method Download PDF

Info

Publication number
CN107977334A
CN107977334A CN201610920025.2A CN201610920025A CN107977334A CN 107977334 A CN107977334 A CN 107977334A CN 201610920025 A CN201610920025 A CN 201610920025A CN 107977334 A CN107977334 A CN 107977334A
Authority
CN
China
Prior art keywords
output signal
communication protocols
host
communication protocol
multiple terminals
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.)
Granted
Application number
CN201610920025.2A
Other languages
Chinese (zh)
Other versions
CN107977334B (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.)
Apacer Technology Inc
Original Assignee
Apacer Technology Inc
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 Apacer Technology Inc filed Critical Apacer Technology Inc
Priority to CN201610920025.2A priority Critical patent/CN107977334B/en
Publication of CN107977334A publication Critical patent/CN107977334A/en
Application granted granted Critical
Publication of CN107977334B publication Critical patent/CN107977334B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4204Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
    • G06F13/4221Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0024Peripheral component interconnect [PCI]
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0042Universal serial bus [USB]

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)

Abstract

The disclosure is on a kind of electronic card and its detection method, wherein this detection method whether there is the output signal that host exports to detect in multiple terminals of the connector of electronic card numbering by the 41st, 43,47,49 multiple terminals, multiple terminals that numbering is the 29th, 31,35,37, multiple terminals that numbering is the 17th, 19,23 and 25 or multiple terminals that numbering is the 5th, 7,11 and 13, and judge the communication protocol of host for 3.0 communication protocol of SATA communication protocols, PCIe communication protocols or USB using testing result and output signal.Electronic card and its detection method that the disclosure provides can improve the ease of use of electronic card.

Description

Electronic card and its detection method
Technical field
This disclosure relates to a kind of electronic card and its detection method, more particularly to a kind of communication protocol of detectable host, and Can according to host communication protocol and the corresponding firmware unit of automated execution, with perform the electronic card of corresponding communication protocol and its Detection method.
Background technology
At present applied to electronic card connector standard criterion be broadly divided into Mini PCI-Express standard criterions, MSATA standard criterions and M.2 standard criterion etc..Wherein, the connector as Mini PCI-Express standard criterions is to use To support PCIe communication protocols, the connector as mSATA standard criterions is to support SATA communication protocols, as M.2 marking The connector of quasi- specification (predecessor is Next Generation Form Factor (NGFF)) can support SATA, PCIe and USB 3.0 communication protocol.Connector due to meeting M.2 standard criterion possesses small, power saving and the much faster heavy characteristic of transmission speed, And above-mentioned three kinds of communication protocol can be supported at the same time, therefore use the electronic card of the M.2 connector of standard criterion to become mainstream.
Although M.2 the connector under standard criterion can support 3.0 communication protocol of SATA, PCIe and USB at the same time, but existing The host that modern electronic card and power supply subcard group connect, such as mainboard etc., only carries single communication protocol, such as host only carries 3.0 communication protocol of SATA communication protocols, PCIe communication protocols or USB, and electronic card also only carries SATA communication protocols, PCIe 3.0 communication protocol of communication protocol or USB, but user and being not easy to obtain knows communication protocol that host carried is why, therefore as master Machine and electronic card are shaken hands (handshake) and package to be carried out when exchanging by OOB (Out-of-Band) signal, if Host and the communication protocol that electronic card is carried are different, and package will be unable to correctly exchange, and cause logical between host and electronic card Letter can not be normally carried out, therefore user must continuously attempt to replace the electronic card of carrying different communication protocol, be arrived with praying replacement Meet the correct electronic card of the communication protocol of host, consequently, it is possible to the electronic card using the connector under M.2 standard criterion Convenience is simultaneously bad.What is more, when being held due to carrying out friendship by OOB signals, at present using the connector under M.2 standard criterion Electronic card with communication protocol that host is carried can only be identical in the communication protocol carried, and then envelope is correctly exchanged with host Bao Shi, just the communication protocol inside startup, electronic card simultaneously can not be when being connected to host, the automatic communication for detecting host and being carried Why is agreement, and then selects corresponding communication protocol, therefore also increase uses the electronics of the connector under M.2 standard criterion at present The inconvenience of card.
Therefore, a kind of electronic card and its detection method for overcoming disadvantages mentioned above, actually current active demand how are developed.
The content of the invention
The purpose of the disclosure is to provide a kind of electronic card and its detection method, single because only carrying in order to existing electronic card is solved One communication protocol, and existing electronic card simultaneously can not be when being connected to host, the automatic communication protocol for detecting host and being carried Why, and then the problems such as select corresponding communication protocol, cause convenience bad.
For up to object defined above, a better embodiment of the disclosure is provides a kind of detection method, suitable for electronic card, electricity Subcard includes connector, and connector meets M.2 standard criterion, and connector includes multiple terminals, and electronic card is via multiple terminals In the corresponding output signal that at least a terminal receiving host is transmitted, detection method includes step:Step a detections numbering is the 17th, 19,23 and 25 multiple terminals or multiple terminals that numbering is the 5th, 7,11 and 13 whether there is output signal, if step b There is output for multiple terminals of numbering the 17th, 19,23 and 25 or multiple terminals of numbering the 5th, 7,11 and 13 in the result of detection During signal, the communication protocol that judges host is PCIe communication protocols, and termination detection method, if it is that the result of detection, which is numbering, 17th, when output signal is all not present in 19,23 and 25 multiple terminals and multiple terminals that numbering is the 5th, 7,11 and 13, perform Step c, step c detect multiple terminals that numbering in multiple terminals is the 41st, 43,47 and 49 and whether there is output signal, step d If the result of detection is multiple terminals presence output signal that numbering is the 41st, 43,47 and 49, judged using signal is exported The communication protocol for going out host is PCIe communication protocols or SATA communication protocols, and termination detection method, if the result of detection is compiles Number for the 41st, 43,47 and 49 multiple terminals there is no during output signal, perform step e, step e is detected to be compiled in multiple terminals Number for the 29th, 31,35 and 37 multiple terminals with the presence or absence of output signal, and if the results of step f detections is that numbering is the 29th, there is output signal in 31,35 and 37 multiple terminals, go out the communication protocol of host using signal determining is exported for PCIe communications 3.0 communication protocol of agreement or USB, and termination detection method, if it is the multiple of the 29th, 31,35 and 37 that the result of detection, which is numbering, When terminal is there is no signal is exported, termination detection method.
For up to object defined above, another better embodiment of the disclosure is provides a kind of detection method, suitable for electronic card, electricity Subcard includes connector, and connector meets M.2 standard criterion, and connector includes multiple terminals, and electronic card is via multiple terminals In the corresponding output signal that at least a terminal receiving host is transmitted, detection method includes step:Step a settings include first The set of actions of action, the second action and the 3rd action, wherein the first action be to be numbered in the multiple terminals of detection be the 5th, 7, 11 and 13 or the 17th, 19,23 and 25 multiple terminals with the presence or absence of output signal, and when testing result is to be judge host Communication protocol is PCIe communication protocols, and it is defeated that the second action be that multiple terminals that detection numbering is the 41st, 43,47 and 49 whether there is Go out signal, and continue when testing result is to be to judge that the communication protocol of host is PCIe communication protocols according to output signal to correspond to View or SATA communication protocols, the 3rd action whether there is output signal for multiple terminals of detection numbering the 29th, 31,35 and 37, And when testing result is to be continue according to output signal come correspond to judge host communication protocol be PCIe communication protocols or USB 3.0 communication protocols, step b perform any action in the first action, the second action and the 3rd action, and in judging host Communication protocol when termination detection method, otherwise into next step, step c is performed in set of actions except being held in step b Any action outside capable action, and the termination detection method when communication protocol of host is judged, otherwise into next step, And step d performs the remaining action in set of actions in addition to action performed in step b and step c, and termination detection Method.
To be in communication with each other up to object defined above, another better embodiment of the disclosure to provide a kind of electronic card with host, electricity Subcard includes:First firmware unit, to perform SATA communication protocols;Second firmware unit, to perform PCIe communication protocols; 3rd firmware unit, to perform 3.0 communication protocols of USB;Connector, meets M.2 standard criterion, and is and host phase intercommunication The medium of letter, connector also include multiple terminals, and electronic card is via a corresponding at least terminal receiving host institute in multiple terminals The output signal transmitted;Switch element, is electrically connected with multiple terminals;Wherein, switch element perform detection method, detection method bag Containing step:It is the 5th, 7,11 and 13 that step a, which detects multiple terminals that numbering in multiple terminals is the 17th, 19,23 and 25 or numbering, Multiple terminals with the presence or absence of output signal, if step b detection result for numbering the 17th, 19,23 and 25 multiple terminals or When multiple terminals of numbering the 5th, 7,11 and 13 have output signal, the communication protocol for judging host is PCIe communication protocols, and Termination detection method, if detection result be numbering be the 17th, 19,23 and 25 multiple terminals and numbering be the 5th, 7,11 and 13 multiple terminals all there is no during output signal, perform step c, it is the 41st, 43,47 that step c, which detects numbering in multiple terminals, And 49 multiple terminals whether there is output signal, if it is the multiple of the 41st, 43,47 and 49 that the result of step d detections, which is numbering, When terminal has output signal, communicated using signal is exported to determine the communication protocol of host for PCIe communication protocols or SATA Agreement, and termination detection method, if the result of detection, which is multiple terminals that numbering is the 41st, 43,47 and 49, is not present output letter Number when, perform step e, step e detects multiple terminals that numbering in multiple terminals is the 29th, 31,35 and 37 with the presence or absence of output Signal, and if the results of step f detections is that multiple terminals that numbering is the 29th, 31,35 and 37 have output signal, utilization is defeated It is 3.0 communication protocol of PCIe communication protocols or USB to go out signal determining and go out the communication protocol of host, and termination detection method, if inspection When the result of survey is that output signal is not present in multiple terminals that numbering is the 29th, 31,35 and 37, termination detection method, and according to The result of detection method performs the first firmware unit, the second firmware unit or the 3rd firmware unit to correspond to.
Brief description of the drawings
Fig. 1 is the structure diagram when electronic card of the preferred embodiment of the disclosure is separated with a host.
Fig. 2 is pin definition figure of the connector for meeting M.2 standard criterion under SATA communication protocols shown in Fig. 1.
Fig. 3 is pin definition figure of the connector for meeting M.2 standard criterion under PCIe communication protocols shown in Fig. 1.
Fig. 4 is pin definition figure of the connector for meeting M.2 standard criterion under 3.0 communication protocols of USB shown in Fig. 1.
Fig. 5 is the step flow of the detection method of the first preferred embodiment of the disclosure applied to the electronic card shown in Fig. 1 Figure.
Fig. 6 is the step flow of the detection method of the second preferred embodiment of the disclosure applied to the electronic card shown in Fig. 1 Figure.
Description of reference numerals:
1:Electronic card
2:Host
11:Connector
12:First firmware unit
13:Second firmware unit
14:3rd firmware unit
15:Switch control unit
M1-M4:The process step of detection method
S1-S6:The process step of detection method
Embodiment
Embodying some exemplary embodiments of disclosure features and advantages will describe in detail in the explanation of back segment.It should be understood that It is that the disclosure can have various changes in different embodiments, it does not all depart from the scope of the present disclosure, and therein Illustrate and attached drawing is inherently as use is described, not for the limitation disclosure.
Fig. 1 is the structure diagram when electronic card of the preferred embodiment of the disclosure is separated with a host.As shown in Figure 1, The electronic card 1 of the disclosure can be but be not limited to a solid state hard disc (SSD) or a non-voltile memory module, be separably with Host 2, such as the slot on mainboard, are connected with group, and when 2 groups of electronic card 1 and host connect, host 2 exportable one outputs signal to Electronic card 1, the transmission of data is carried out to be linked up with electronic card 1, and electronic card 1 is comprising connector 11, the first firmware list First 12, second firmware unit 13, the 3rd firmware unit 14 and switch element 15.Wherein connector 11 meets M.2 standard criterion, And connector 11 is pluggable on host 2, wherein connector 11 is the medium being in communication with each other with host 2, and comprising multiple terminals, When 2 groups of electronic card 1 and host connect, multiple terminals of connector 11, which are that terminal corresponding with host 2 is (not shown), to be electrically connected, And electronic card 1 is via the output signal that at least a terminal receiving host 2 is transmitted in multiple terminals.
First firmware unit 12 performing SATA communication protocols, enable electronic card 1 and host 2 by connector 11 with The mode of SATA communication protocols carries out data transmission.Second firmware unit 13 and the 3rd firmware unit are led to perform PCIe respectively Believe agreement and USB3.0 communication protocols, and its can make respectively electronic card 1 and host 2 by connector 11 with SATA communication protocols or The mode of USB3.0 communication protocols carries out data transmission.
Switch element 15 is electrically connected with multiple terminals of connector 11, and wherein this switch element 15 can be a microcontroller Device.Switch element 15 can be 3.0 communication protocols of SATA communication protocols, PCIe communication protocols or USB according to the communication protocol of host 2 Discuss and correspond to and perform the first firmware unit 12, the second firmware unit 13 or the 3rd firmware unit 14, and then perform SATA communications 3.0 communication protocol of agreement, PCIe communication protocols or USB so that host 2 and electronic card 1 under identical communication protocol into line number According to transmission.
From the foregoing, it will be observed that the electronic card 1 of the disclosure can be corresponded to according to the communication protocol of host 2 performs the first firmware unit 12nd, the second firmware unit 13 or the 3rd firmware unit 14, so perform respectively SATA communication protocols, PCIe communication protocols and USB3.0 communication protocols.Thereby electronic card 1 can carry out data transmission under the communication protocol identical with host 2, therefore compare In inconvenience of the electronic card caused by only supporting single communication protocol of the prior art, the electronic card 1 of the disclosure is because can be according to The corresponding firmware unit of automated execution according to the communication protocol of host 2, to perform corresponding communication protocol, therefore can be substantially improved just Profit.
It should be further noted that the connector 11 of electronic card 1 can have not according to required different communication protocols Same specification (is mainly distinguished, such as Type B, M types, B+M types etc.) according to key mapping, and under different size, multiple ends of connector 11 The definition of son then can be different.For example, Fig. 2 is the connector for meeting M.2 standard criterion shown in Fig. 1 in SATA communication protocols Under pin definition figure.As shown in Fig. 2, when electronic card 1 need to be communicated with SATA communication protocols with host 2, then define Numbering is the output signal that is exported for receiving host 2 by the terminal of the 41st, 43,47 and 49 in multiple terminals, makes electronic card 1 Via numbering for 41,43,47 and 49 multiple terminals come communicate with each other with host 2 establish it is online.
Fig. 3 is pin definition figure of the connector for meeting M.2 standard criterion under PCIe communication protocols shown in Fig. 1.Such as Shown in Fig. 3, when electronic card 1 is communicated with PCIe communication protocols with host 2, then it is the 41st, 43,47 and 49 to define numbering Multiple terminals carry out output signal that receiving host 2 exported, multiple terminals that definition numbering is the 29th, 31,35 and 37 connect Output signal, definition that host 2 exported is received to number and by multiple terminals of the 17th, 19,23 and 25 come what receiving host 2 exported The output signal for being carried out receiving host 2 by multiple terminals of the 5th, 7,11 and 13 and being exported is numbered in output signal or definition, makes electronics Card 1 via numbering be the 41st, 43,47 and 49, numbering be the 29th, 31,35 and 37, numbering be the 17th, 19,23 and 25 or numbering be Multiple terminals of 5th, 7,11 and 13 are established online to communicate with each other with host 2.
Fig. 4 is pin definition figure of the connector for meeting M.2 standard criterion under 3.0 communication protocols of USB shown in Fig. 1. As shown in figure 4, when electronic card 1 is communicated with 3.0 communication protocols of USB with host 2, then define numbering be the 29th, 31, 35 and 37 multiple terminals carry out the output signal that receiving host 2 is exported, and make electronic card 1 via numbering be the 29th, 31,35 and 37 Multiple terminals and communicate with each other and establish online with host 2.
In this present embodiment, above-mentioned numbering is that multiple terminals of the 41st, 43,47 and 49 are defined in SATA communication protocols Differential signal group (differential signal pairs), multiple terminals that numbering is the 41st, 43,47,49, numbering are the 29th, 31,35,37 multiple terminals, multiple terminals that numbering is the 17th, 19,23 and 25 or numbering are the more of the 5th, 7,11 and 13 A terminal is the differential signal group defined in PCIe communication protocols, and numbering is that multiple terminals of the 29th, 31,35 and 37 are USB Differential signal group defined in 3.0 communication protocols, the output signal that above-mentioned differential signal group is exported to receiving host 2 is (i.e. Differential signal).
In addition, from the foregoing, it will be observed that the switch element 15 of the electronic card 1 of the disclosure can be SATA according to the communication protocol of host 2 Communication protocol, PCIe communication protocols or 3.0 communication protocols of USB and correspond to perform the first firmware unit 12, the second firmware unit 13 Or the 3rd firmware unit 14, and then SATA communication protocols, 3.0 communication protocol of PCIe communication protocols or USB are performed, therefore be The communication protocol for differentiating host 2 is 3.0 communication protocol of SATA communication protocols, PCIe communication protocols or USB, the electricity of the disclosure The switch element 15 of subcard 1 actually also performs a kind of detection method, will illustrate below.
Referring to Fig. 5, and coordinate Fig. 1, wherein Fig. 5 be applied to the electronic card shown in Fig. 1 the disclosure first it is preferably real Apply the step flow chart of the detection method of example.As shown in figure 5, first, performing step M1, setting is moved comprising the first action, second Work and the set of actions of the 3rd action, wherein the first action is that numbering is the 5th, 7,11 in the multiple terminals for detect connector 11 And 13 multiple terminals or multiple terminals that numbering is the 17th, 19,23 and 25 and are in testing result with the presence or absence of output signal The communication protocol that host 2 is judged when being is PCIe communication protocols, and the second action is that detection numbering is the more of the 41st, 43,47 and 49 A terminal continues with output signal to judge the communication protocols of host 2 with the presence or absence of output signal when testing result is to be Discuss as PCIe communication protocols or SATA communication protocols, the 3rd action for detection numbering the 29th, 31,35 and 37 multiple terminals whether In the presence of output signal, and in testing result to continue detection output signal when being, to judge host 2 according to output signal to correspond to Communication protocol be 3.0 communication protocol of PCIe communication protocols or USB.
Then, step M2 is performed, performs any action in the first action, the second action and the 3rd action, and in sentencing Termination detection method during the communication protocol for host 2 of breaking, otherwise into next step.
Come again, perform step M3, perform any action in addition to action performed in step M2 in the set of actions, And the termination detection method when communication protocol of host 2 is judged, otherwise into next step.
Finally, step M4 is performed, is performed in the set of actions in addition to action performed in step M2 and step M3 Residue action.
After switch element 15 terminates above-mentioned detection method, switch element 15 can judge that the communication protocol of host 2 is 3.0 communication protocol of SATA communication protocols, PCIe communication protocols or USB, and then lead in the communication protocol for judging host 2 for SATA When believing agreement, perform the first firmware unit 12 and perform SATA communication protocols, and lead in the communication protocol for judging host 2 for PCIe Believe agreement when, then perform the second firmware unit 13 and perform PCIe communication protocols, and in judge host 2 communication protocol be USB During 3.0 communication protocol, perform the 3rd firmware unit 14 and perform 3.0 communication protocols of USB.
In some embodiments, in the second action of set of actions, when detecting as the multiple of the 41st, 43,47 and 49 When terminal has output signal, then it may proceed to using exporting signal and follow an acquiescence Rule of judgment to judge the communication of host 2 Agreement is PCIe communication protocols or SATA communication protocols, which can be but be not limited to be set as to export signal Pressure differential range is judged that, for example, if the pressure differential range of output signal be A~B, the communication protocol of judgement host 2 is PCIe communication protocols, if the pressure differential range for detecting output signal is C~D, judge that the communication protocol of host 2 communicates for SATA Agreement.What is more, when judging that the communication protocol of host 2 is PCIe communication protocols using exporting signal and following acquiescence Rule of judgment After view or SATA communication protocols, then termination detection method.
In some embodiments, the switch element 15 of electronic card 1 can be directly right according to physical layer (Physical layer) The definition of signal, such as the voltage or wavelength of signal, and judge the communication protocol of the output signal of host 2 for SATA communication protocols Or PCIe communication protocols, therefore in the second action, believe when detecting that multiple terminals for the 41st, 43,47 and 49 exist to export Number when, switch element 15 continues the definition to signal according to physical layer, so learn output signal communication protocol lead to for SATA Believe agreement or PCIe communication protocols, thus, you can judge that the communication protocol of host 2 communicates for PCIe communication protocols or SATA Agreement.What is more, when switch element 15 continues the definition according to physical layer to signal, and then learn that the communication protocol of host 2 is After PCIe communication protocols or SATA communication protocols, then termination detection method.In addition, in SATA communication protocols, 3.0 communication protocols of USB In view and PCIe communication protocols, definition mode of the physical layer to signal is explicitly defined, has been repeated no more in this.
In some embodiments, in the 3rd action of set of actions, when detecting as the multiple of the 29th, 31,35 and 37 When terminal has output signal, then it may proceed to judge the logical of host 2 using exporting signal and following another default Rule of judgment Letter agreement is 3.0 communication protocol of PCIe communication protocols or USB, another default Rule of judgment can be but be not limited to be set as with The pressure differential range for exporting signal judged, if for example, the pressure differential range of output signal be A~B, judges leading to for host 2 Letter agreement is PCIe communication protocols, if the pressure differential range for detecting output signal is E~F, the communication protocol for judging host 2 is 3.0 communication protocols of USB.What is more, when using export signal and follow acquiescence Rule of judgment and judge the communication protocol of host 2 After 3.0 communication protocol of PCIe communication protocols or USB, then termination detection method.
In some embodiments, the switch element 15 of electronic card 1 can be directly right according to physical layer (Physical layer) The definition of signal, such as the voltage or wavelength of signal, and judge the communication protocol of the output signal of host 2 for PCIe communication protocols Or 3.0 communication protocols of USB, therefore in the 3rd action, exported when detecting that multiple terminals for the 29th, 31,35 and 37 exist During signal, switch element 15 continues the definition to signal according to physical layer, and then learns that the communication protocol for exporting signal is PCIe 3.0 communication protocol of communication protocol or USB, thus, you can the communication protocol for judging host 2 is PCIe communication protocols or USB 3.0 communication protocol.What is more, when switch element 15 continues the definition according to physical layer to signal, and then the communication of host 2 is learnt Agreement is then termination detection method after 3.0 communication protocol of PCIe communication protocols or USB.In addition, in SATA communication protocols, USB In 3.0 communication protocols and PCIe communication protocols, definition mode of the physical layer to signal is explicitly defined, has been repeated no more in this.
Certainly, another preferred embodiment of the disclosure can perform the first action in the step M2 shown in Fig. 5, then, in In step M3, the second action is performed, finally, in step M4, performs the 3rd action.In other words, compared to Fig. 5 not to first The execution sequence of action, the second action and the 3rd action is ranked up, and the detection method of another preferred embodiment of the disclosure is real On border then for first action, second action and the 3rd action execution sequence preset, and according to above-mentioned order then this The flow chart of the detection method of disclosed another preferred embodiment will be as shown in fig. 6, will illustrate below.
Referring to Fig. 6, and coordinate Fig. 1, wherein Fig. 6 be applied to the electronic card shown in Fig. 1 the disclosure second it is preferably real Apply the step flow chart of the detection method of example.As shown in fig. 6, first, performing step S1, switch element 15 detects connector 11 Whether multiple terminals that numbering is multiple terminals of the 17th, 19,23 and 25 in multiple terminals or numbering is the 5th, 7,11 and 13 are deposited In output signal.
Then, step S2 is performed, if the result that switch element 15 detects is multiple terminals of numbering the 17th, 19,23 and 25 Or multiple terminals of numbering the 5th, 7,11 and 13 have output signal, switch element 15 judges that the communication protocol of host 2 is PCIe Communication protocol, and termination detection method, if the result that switch element 15 detects is multiple ends that numbering is the 17th, 19,23 and 25 Output signal is all not present in son and multiple terminals that numbering is the 5th, 7,11 and 13, then performs step S3.
In step S3, whether switch element 15 detects in multiple terminals multiple terminals that numbering is the 41st, 43,47 and 49 In the presence of output signal.
Then, step S4 is performed, if the result that switch element 15 detects is multiple ends that numbering is the 41st, 43,47 and 49 Son exist output signal, then switch element 15 using export signal correspond to judge host 2 communication protocol be PCIe communication protocols View or SATA communication protocols, if the result of detection, which is multiple terminals that numbering is the 41st, 43,47 and 49, is not present output signal, Then perform step S5.
Come again, perform step S5, switch element 15 detects multiple ends that numbering in multiple terminals is the 29th, 31,35 and 37 Son is with the presence or absence of output signal.
Finally, step S6 is performed, if the result of detection, which is multiple terminals that numbering is the 29th, 31,35 and 37, has output Signal, then it is 3.0 communication protocols of PCIe communication protocols or USB to continue with the communication protocol for exporting signal to correspond to judgement host 2 View, if the result of detection, which is multiple terminals that numbering is the 29th, 31,35 and 37, is not present output signal, termination detection method.
In conclusion the disclosure provides a kind of electronic card and its detection method, the wherein electronic card of the disclosure include to Perform the first firmware unit of SATA communication protocols, performing the second firmware unit of PCIe communication protocols and to perform 3rd firmware unit of 3.0 communication protocols of USB, and electronic card directly detects the communication protocols of host using the detection method Discuss as 3.0 communication protocol of SATA communication protocols, PCIe communication protocols or USB, and then the corresponding firmware unit of automated execution, because This all only carries single communication protocol compared to conditional electronic card, and can not be automatic to detect host institute when being connected to host Why is the communication protocol of carrying, and the convenience of the electronic card of the disclosure can be substantially improved.

Claims (18)

1. a kind of detection method, suitable for an electronic card, it is characterised in that the electronic card includes a connector, connector symbol M.2 standard criterion, and the connector includes multiple terminals is closed, the electronic card is via corresponding at least one end in multiple terminals Son receives the output signal that a host is transmitted, which includes step:
Step a:Multiple ends that detection numbering is multiple terminals of the 17th, 19,23 and 25 or numbering is the 5th, 7,11 and 13 Son whether there is the output signal;
Step b:If detection result for numbering the 17th, 19,23 and 25 multiple terminals or numbering the 5th, 7,11 and 13 it is more A terminal terminates the detection side there are during the output signal, judging that the communication protocol of the host is a PCIe communication protocols Method, if the result of detection is multiple terminals that numbering is the 17th, 19,23 and 25 and numbering is the multiple of the 5th, 7,11 and 13 When the output signal is all not present in the terminal, step c is performed;
Step c:It is that multiple terminals of the 41st, 43,47 and 49 whether there is the output signal to detect numbering in multiple terminals;
Step d:If detection result be numbering be the 41st, 43,47 and 49 multiple terminals exist during the output signal, utilization The output signal terminates the inspection to determine the communication protocol of the host be the PCIe communication protocols or a SATA communication protocols Survey method, if the result of detection is numbering when being that the output signal be not present in multiple terminals of the 41st, 43,47 and 49, execution Step e;
Step e:It is that multiple terminals of the 29th, 31,35 and 37 whether there is the output signal to detect numbering in multiple terminals; And
Step f:If detection result be numbering be the 29th, 31,35 and 37 multiple terminals there are the output signal, utilize this The communication protocol that output signal determining goes out the host is 3.0 communication protocol of the PCIe communication protocols or a USB, and terminates the inspection Survey method, if the result of detection is numbering when being that the output signal be not present in multiple terminals of the 29th, 31,35 and 37, termination The detection method.
2. detection method as claimed in claim 1, is also contained in step d, if it is the 41st that the result of detection, which is numbering, 43, 47 and 49 multiple terminals also determine the host there are during the output signal using a pressure differential range of the output signal Communication protocol be the PCIe communication protocols.
3. detection method as claimed in claim 1, is also contained in step d, if it is the 41st that the result of detection, which is numbering, 43, 47 and 49 multiple terminals also determine the host there are during the output signal using a pressure differential range of the output signal Communication protocol be the SATA communication protocols.
4. detection method as claimed in claim 1, is also contained in step f, if it is the 29th that the result of detection, which is numbering, 31, 35 and 37 multiple terminals also determine the host there are during the output signal using a pressure differential range of the output signal Communication protocol be the PCIe communication protocols.
5. detection method as claimed in claim 1, is also contained in step f, if it is the 29th that the result of detection, which is numbering, 31, 35 and 37 multiple terminals also determine the host there are during the output signal using a pressure differential range of the output signal Communication protocol be 3.0 communication protocols of USB.
6. detection method as claimed in claim 1, is also contained in step d, if it is the 41st that the result of detection, which is numbering, 43, 47 and 49 multiple terminals also judge the output signal there are during the output signal using definition of the physical layer to signal Communication protocol be the PCIe communication protocols or the SATA communication protocols, and lead in the communication protocol of the output signal for the PCIe Believe agreement when, the communication protocol for judging the host is the PCIe communication protocols, in the communication protocol of the output signal be the SATA During communication protocol, the communication protocol for judging the host is the SATA communication protocols.
7. detection method as claimed in claim 1, is also contained in step f, if it is the 29th that the result of detection, which is numbering, 31, 35 and 37 multiple terminals also judge the output signal there are during the output signal using definition of the physical layer to signal Communication protocol be the PCIe communication protocols or 3.0 communication protocols of USB, and in the output signal communication protocol for should During PCIe communication protocols, the communication protocol for judging the host is the PCIe communication protocols, is in the communication protocol of the output signal During 3.0 communication protocols of USB, the communication protocol for judging the host is 3.0 communication protocols of USB.
8. a kind of detection method, suitable for an electronic card, it is characterised in that the electronic card includes a connector, connector symbol M.2 standard criterion, and the connector includes multiple terminals is closed, the electronic card is via corresponding at least one end in multiple terminals Son receives the output signal that a host is transmitted, which includes step:
Step a settings include a set of actions of one first action, one second action and one the 3rd action, and wherein this is first dynamic Whether there is as multiple terminals that numbering in the multiple terminals of detection is the 5th, 7,11 and 13 or the 17th, 19,23 and 25 should Signal is exported, and judges that when testing result is to be the communication protocol of the host is a PCIe communication protocols, which is Detection numbering is that multiple terminals of the 41st, 43,47 and 49 whether there is the output signal, and is continued when testing result is and is Judge that the communication protocol of the host is the PCIe communication protocols or a SATA communication protocols according to the output signal to correspond to, this Three actions whether there is the output signal for multiple terminals of detection numbering the 29th, 31,35 and 37, and be yes in testing result Shi Jixu judges that the communication protocol of the host communicates for the PCIe communication protocols or a USB 3.0 according to the output signal to correspond to Agreement;
Step b performs any action in first action, second action and the 3rd action, and in judging the host Communication protocol when terminate the detection method, otherwise into next step;
Step c performs any action in addition to action performed in step b in the set of actions, and in judging the master The detection method is terminated during the communication protocol of machine, otherwise into next step;And
Step d performs the remaining action in addition to action performed in step b and step c in the set of actions, and eventually The only detection method.
9. detection method as claimed in claim 8, is also contained in step b, first action is performed.
10. detection method as claimed in claim 9, is also contained in step c, second action is performed.
11. detection method as claimed in claim 8, wherein in second action, if it is the 41st that the result of detection, which is numbering, 43rd, 47 and 49 multiple terminals also determine this there are during the output signal using a pressure differential range of the output signal The communication protocol of host is the PCIe communication protocols.
12. detection method as claimed in claim 8, wherein in second action, if it is the 41st that the result of detection, which is numbering, 43rd, 47 and 49 multiple terminals also determine this there are during the output signal using a pressure differential range of the output signal The communication protocol of host is the SATA communication protocols.
13. detection method as claimed in claim 8, wherein in the 3rd action, if it is the 29th that the result of detection, which is numbering, 31st, 35 and 37 multiple terminals also determine this there are during the output signal using a pressure differential range of the output signal The communication protocol of host is the PCIe communication protocols.
14. detection method as claimed in claim 8, wherein in the 3rd action, if it is the 29th that the result of detection, which is numbering, 31st, 35 and 37 multiple terminals also determine this there are during the output signal using a pressure differential range of the output signal The communication protocol of host is 3.0 communication protocols of USB.
15. detection method as claimed in claim 8, wherein in second action, if it is the 41st that the result of detection, which is numbering, 43rd, 47 and 49 multiple terminals are there are during the output signal, also judge the output using definition of the physical layer to signal The communication protocol of signal is the PCIe communication protocols or the SATA communication protocols, and in the output signal communication protocol for should During PCIe communication protocols, the communication protocol for judging the host is the PCIe communication protocols, is in the communication protocol of the output signal During the SATA communication protocols, the communication protocol for judging the host is the SATA communication protocols.
16. detection method as claimed in claim 8, wherein in the 3rd action, if it is the 29th that the result of detection, which is numbering, 31st, 35 and 37 multiple terminals are there are during the output signal, also judge the output using definition of the physical layer to signal The communication protocol of signal is the PCIe communication protocols or 3.0 communication protocols of USB, and is in the communication protocol of the output signal During the PCIe communication protocols, the communication protocol for judging the host is the PCIe communication protocols, in the communication protocol of the output signal For 3.0 communication protocols of USB when, the communication protocol for judging the host is 3.0 communication protocols of USB.
17. a kind of electronic card, is in communication with each other with a host, it is characterised in that the electronic card includes:
One first firmware unit, to perform a SATA communication protocols;
One second firmware unit, to perform a PCIe communication protocols;
One the 3rd firmware unit, to perform 3.0 communication protocols of a USB;
A connector, meets M.2 standard criterion, and the medium to be in communication with each other with the host, which also includes multiple ends Son, the electronic card is via the output signal that corresponding at least one terminal reception host is transmitted in multiple terminals;
One switch element, is electrically connected with multiple terminals;
Wherein, the detection method described in switch element perform claim requirement 1, and held according to the result of the detection method to correspond to Capable first firmware unit, second firmware unit or the 3rd firmware unit.
18. electronic card as claimed in claim 17, wherein, the switch element is after the detection method and judges the host Communication protocol when being the SATA communication protocols, which performs first firmware unit, so that the electronic card and the master Machine is in communication with each other with the SATA communication protocols, and the switch element after the detection method and judges the communication protocols of the host Discuss for the PCIe communication protocols when, which performs second firmware unit, so that the electronic card and the host are with this PCIe communication protocols are in communication with each other, and the switch element after the detection method and judges the communication protocol of the host for should During 3.0 communication protocols of USB, which performs the 3rd firmware unit, so that the electronic card and the host are with the USB 3.0 communication protocols are in communication with each other.
CN201610920025.2A 2016-10-21 2016-10-21 Electronic card and detection method thereof Active CN107977334B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610920025.2A CN107977334B (en) 2016-10-21 2016-10-21 Electronic card and detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610920025.2A CN107977334B (en) 2016-10-21 2016-10-21 Electronic card and detection method thereof

Publications (2)

Publication Number Publication Date
CN107977334A true CN107977334A (en) 2018-05-01
CN107977334B CN107977334B (en) 2019-12-24

Family

ID=62003839

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610920025.2A Active CN107977334B (en) 2016-10-21 2016-10-21 Electronic card and detection method thereof

Country Status (1)

Country Link
CN (1) CN107977334B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857695A (en) * 2018-12-27 2019-06-07 曙光信息产业(北京)有限公司 The interface switch system of server master board

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100223416A1 (en) * 2008-05-15 2010-09-02 Seagate Technology Llc Data storage device compatible with multiple interconnect standards
CN102687131A (en) * 2009-11-24 2012-09-19 微软公司 Configurable connector for system-level communication
US20150277935A1 (en) * 2014-03-29 2015-10-01 Nathaniel L. Desimone Techniques for adaptive interface support
US20160292125A1 (en) * 2015-04-02 2016-10-06 HGST Netherlands B.V. Methods and systems for implementing high speed serial interface bus having inhomogeneous lane bundles and encodings

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100223416A1 (en) * 2008-05-15 2010-09-02 Seagate Technology Llc Data storage device compatible with multiple interconnect standards
CN102687131A (en) * 2009-11-24 2012-09-19 微软公司 Configurable connector for system-level communication
US20150277935A1 (en) * 2014-03-29 2015-10-01 Nathaniel L. Desimone Techniques for adaptive interface support
US20160292125A1 (en) * 2015-04-02 2016-10-06 HGST Netherlands B.V. Methods and systems for implementing high speed serial interface bus having inhomogeneous lane bundles and encodings

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109857695A (en) * 2018-12-27 2019-06-07 曙光信息产业(北京)有限公司 The interface switch system of server master board

Also Published As

Publication number Publication date
CN107977334B (en) 2019-12-24

Similar Documents

Publication Publication Date Title
TWI602127B (en) Electronic card and detecting method thereof
RU2682911C2 (en) Reversible connector for accessory devices
CN208985152U (en) Communication system
CN105302755B (en) A kind of PCIE boards and its monitoring method with monitoring function
CN101276319B (en) Equipment and method for making USB interface to time-sharing apply as standard I /O interface
CN105635184A (en) Communication protocol conversion method, device and system
EP2688258B1 (en) Single board communication method, system and single board
CN103677671A (en) Data reading-writing method and system of electrical port module
CN101339515A (en) Sensor process management methods and systems
CN102855202A (en) Method for detecting type of electronic equipment and data interface
CN107977334A (en) Electronic card and its detection method
CN103220370B (en) Method and device for achieving single wire protocol (SWP) interface and SWP system
CN105468549B (en) chip device and electronic system thereof
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN108924325A (en) Data processing method and relevant apparatus
CN111386433A (en) Electric appliance and control method thereof
CN108132898A (en) Multiplex communication control method and communication box
CN204009881U (en) A kind of PCIE board with monitoring function
CN203722640U (en) Electric loopback light module
CN109917932A (en) Control method and device of interactive intelligent equipment and control system of electromagnetic screen
CN109218149A (en) Equipment cut-in method, device, network system and gateway
CN104731431A (en) Capacitive dongle for display devices comprising a capacitive touch-sensitive surface
CN104123257A (en) Universal serial bus devices, communication method, and computer readable storage medium
CN109885329B (en) Upgrading method and system and electronic equipment
CN206819342U (en) A kind of 10G SFP+ PHY cards of integrated OCP C interface

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant