CN110413459B - External PHY card identification method, device, equipment and readable storage medium - Google Patents

External PHY card identification method, device, equipment and readable storage medium Download PDF

Info

Publication number
CN110413459B
CN110413459B CN201910548509.2A CN201910548509A CN110413459B CN 110413459 B CN110413459 B CN 110413459B CN 201910548509 A CN201910548509 A CN 201910548509A CN 110413459 B CN110413459 B CN 110413459B
Authority
CN
China
Prior art keywords
external phy
phy card
card
mac controller
external
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
CN201910548509.2A
Other languages
Chinese (zh)
Other versions
CN110413459A (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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN201910548509.2A priority Critical patent/CN110413459B/en
Publication of CN110413459A publication Critical patent/CN110413459A/en
Application granted granted Critical
Publication of CN110413459B publication Critical patent/CN110413459B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The invention discloses a method for identifying an external PHY card, which comprises the following steps: when a data exchange request is received, detecting whether GPIO in a card slot of an external PHY card is in an enabling level state; if yes, determining that the external PHY card exists in the external PHY card slot; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card. By applying the technical scheme provided by the embodiment of the invention, the network card formed by combining the external PHY card and the MAC controller is displayed only when the external PHY card is determined to exist, so that the probability of misleading a user to select the network card when the external PHY card does not exist is greatly reduced, the manpower is greatly saved, the manpower cost is reduced, and the working efficiency is improved. The invention also discloses an identification device, equipment and a storage medium of the external PHY card, and the identification device, the equipment and the storage medium have corresponding technical effects.

Description

External PHY card identification method, device, equipment and readable storage medium
Technical Field
The present invention relates to the field of computer application technologies, and in particular, to a method, an apparatus, a device, and a computer-readable storage medium for identifying an external PHY card.
Background
With the development of computer technology, in order to realize different data exchange functions with the outside, the server can be externally connected with network cards of different models. The network card is a device for interconnecting the server and the local area network, and an ethernet interface on the network card can be divided into a protocol layer and a physical layer. The protocol Layer is a MAC (Media Access Layer) controller, and the Physical Layer is composed of two parts, namely a PHY (Physical Layer) and a transmitter. The common network card chip generally integrates MAC and PHY into one chip, but in view of the operational capability of the south bridge chip, many motherboard south bridge chips include ethernet MAC control function, but cannot provide physical layer interface, so that external PHY chip is required to provide access channel of ethernet, and the two are combined together to realize the function of network card.
In order to facilitate the application of the network card of the type by a user, an area is arranged on a server mainboard and used for externally connecting a PHY card. From the application point of view, if there is no external PHY card, the network card can not be applied, but in the application of the user, because there is an MAC controller in the south bridge, no matter based on the input/output system BIOS or the operating system OS, the controller can be identified in the PCI scanning process, and the controller is displayed in the BIOS setup interface or the device list of the OS, and when there is no external PHY card, the user can be misled to use the network card. The existing method is that a connector exists between an external PHY card clamping groove and an MAC controller, the on-off of the connector can be controlled in an external jump cap mode, and whether the MAC controller can detect the connector is controlled according to the state of a corresponding pin of the jump cap. However, when the existing user has external PHY card configuration or the user does not have external PHY card configuration, a large amount of labor force is brought to production line workers, the labor cost is high, and meanwhile, the working efficiency is reduced.
In summary, how to effectively solve the problems of high labor cost, low working efficiency and the like caused by the fact that the on-off of the connector is controlled by manually controlling the external jump cap is an urgent need for technical personnel in the field.
Disclosure of Invention
The invention aims to provide a method for identifying an external PHY card, which greatly saves labor, reduces the labor cost and improves the working efficiency; another object of the present invention is to provide an external PHY card identification apparatus, device and computer readable storage medium.
In order to solve the technical problems, the invention provides the following technical scheme:
an external PHY card identification method comprises the following steps:
when a data exchange request is received, detecting whether GPIO in an external PHY card slot is in an enabling level state;
if yes, determining that an external PHY card exists in the external PHY card slot;
and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card.
In one embodiment of the present invention, the method further comprises:
and when detecting that the GPIO in the external PHY card slot is in a non-enabled level state, hiding the MAC controller.
In a specific embodiment of the present invention, when determining that a GPIO in the external PHY card slot is in an disable level state, before performing a hiding operation on the MAC controller, the method further includes:
detecting whether a control jump cap in a connector circuit is at an enabling pin; the connector circuit is arranged between the external PHY card slot and the MAC controller, and the on-off between the external PHY card slot and the MAC controller is controlled through the control jump cap;
if yes, executing the step of hiding the MAC controller;
if not, alarm prompt is carried out.
In a specific embodiment of the present invention, after receiving the data exchange request, before detecting whether a GPIO in the external PHY card slot is in an enabled level state, the method further includes:
detecting whether a control jump cap in a connector circuit is in an enabling pin; the connector circuit is arranged between the external PHY card slot and the MAC controller, and the on-off between the external PHY card slot and the MAC controller is controlled through the control jump cap;
if yes, executing the step of detecting whether the GPIO in the external PHY card slot is in an enabled level state;
if not, executing the step of hiding the MAC controller.
In a specific embodiment of the present invention, the displaying operation of the network card formed by combining the external PHY card and the MAC controller includes:
and displaying the network card formed by combining the external PHY card and the MAC controller in an identifiable network card list according to the preset network card selection priority.
An external PHY card identification apparatus comprising:
the state detection module is used for detecting whether the GPIO in the external PHY card slot is in an enabled level state or not when receiving a data exchange request;
the PHY card determining module is used for determining that an external PHY card exists in the external PHY card slot when detecting that GPIO in the external PHY card slot is in a low level state;
and the network card display module is used for displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card.
In one embodiment of the present invention, the method further comprises:
and the hidden operation module is used for hiding the MAC controller when detecting that the GPIO in the external PHY card slot is in a non-enabled level state.
In an embodiment of the present invention, the method further comprises:
the cap jumping state detection module is used for detecting whether a control jumping cap in a connector circuit is in an enabling pin or not before hiding the MAC controller when the GPIO in the external PHY card clamping groove is determined to be in a non-enabling level state; the connector circuit is arranged between the external PHY card slot and the MAC controller, and the on-off between the external PHY card slot and the MAC controller is controlled through the control jump cap;
the hidden operation module is specifically a module for hiding the MAC controller when it is determined that GPIO in the external PHY card slot is in a high level state and the control jump cap in the connector circuit is in an enabling pin;
and the alarm module is used for giving an alarm prompt when detecting whether the control jump cap in the connector circuit is positioned at the non-enabled pin.
An external PHY card identification device comprising:
a memory for storing a computer program;
and the processor is used for realizing the steps of the external PHY card identification method when executing the computer program.
A computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the method for identification of an add-on PHY card as described above.
By applying the method provided by the embodiment of the invention, when a data exchange request is received, whether the GPIO in the external PHY card slot is in an enabled level state is detected; if yes, determining that the external PHY card exists in the external PHY card slot; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card. The GPIO is arranged in the external PHY card clamping groove, when the external PHY card is inserted, the level of the GPIO can be changed, so that the GPIO is in an enabled level state, whether the external PHY card exists in the external PHY card clamping groove can be judged according to the level state of the GPIO, only when the external PHY card exists is determined, the network card formed by combining the external PHY card and the MAC controller is displayed, the probability that a user selects the network card by misguiding when the external PHY card does not exist is greatly reduced, compared with the existing manual identification, whether the external PHY card exists or not, and the mode that whether the MAC controller is detected or not is controlled by controlling the state of a corresponding pin of a jump cap, manpower is greatly saved, the manpower cost is reduced, and the working efficiency is improved.
Accordingly, embodiments of the present invention further provide an external PHY card identification apparatus, a device, and a computer-readable storage medium corresponding to the above external PHY card identification method, which have the above technical effects and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a flowchart illustrating an implementation of a method for identifying an external PHY card according to an embodiment of the present invention;
FIG. 2 is a flowchart illustrating another embodiment of a method for identifying an external PHY card according to the present invention;
FIG. 3 is a flowchart illustrating another embodiment of a method for identifying an external PHY card according to the present invention;
FIG. 4 is a block diagram of an identification apparatus for an external PHY card according to an embodiment of the present invention;
fig. 5 is a block diagram of an identification device externally connected to a PHY card according to an embodiment of the present invention.
Detailed Description
In order that those skilled in the art will better understand the disclosure, the invention will be described in further detail with reference to the accompanying drawings and specific embodiments. It should be apparent that the described embodiments are only some embodiments of the present invention, and not all embodiments. All other embodiments, which can be obtained by a person skilled in the art without making any creative effort based on the embodiments in the present invention, belong to the protection scope of the present invention.
The first embodiment is as follows:
referring to fig. 1, fig. 1 is a flowchart illustrating an implementation of a method for identifying an external PHY card according to an embodiment of the present invention, where the method may include the following steps:
s101: when a data exchange request is received, whether GPIO in an external PHY card slot is in an enabling level state is detected, if so, step S102 is executed, otherwise, the MAC controller is not displayed.
The GPIO level processing method has the advantages that the purpose-passing input/output port GPIO can be arranged in the external PHY card slot in advance, codes are added in BIOS codes to process the GPIO level, when no external PHY card exists in the external PHY card slot, the GPIO is in a non-enabling level state, and after the external PHY card is inserted into the external PHY card slot, the GPIO level can be changed, so that the GPIO is changed into the enabling level state from the non-enabling level state. Therefore, when the BIOS receives the data exchange request, it may detect whether the GPIO in the external PHY card slot is in the enable level state, if so, the step S102 may be continuously executed, otherwise, it indicates that the external PHY card does not exist in the external PHY card slot, the MAC controller is not displayed, and it is avoided that the user is misled that the user thinks that the network card corresponding to the MAC controller exists and selects the network card.
For the setting of the GPIO level, it may be preset that when there is no external PHY card in the external PHY card slot, the GPIO is in a high level state, and when an external PHY card is inserted into the external PHY card slot, the GPIO level is pulled low, that is, the GPIO is set to be in a low level as an enabled state, and in a high level as a non-enabled state. Of course, the GPIO may also be set to be in a low level state when no external PHY card is present in the external PHY card slot, and when an external PHY card is inserted into the external PHY card slot, the GPIO level may be raised, that is, the GPIO is set to be in a high level state as an enabled state, and the GPIO is set to be in a low level state as a disabled state. The embodiment of the present invention does not limit what setting is specifically adopted.
S102: and determining that the external PHY card exists in the external PHY card slot.
When detecting that GPIO in the external PHY card slot is in a low level state, the external PHY card can be determined to exist in the external PHY card slot, and a user can select a network card formed by combining the external PHY card and the MAC controller according to actual needs to exchange data with the outside.
S103: and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card.
When the external PHY card is determined to exist in the external PHY card slot, a network card formed by combining the external PHY card and the MAC controller can be displayed, for example, the network card formed by combining the external PHY card and the MAC controller can be displayed on a BIOS (basic input output system) saup interface or an OS (operating system) interface, and a user can select the network card as required to exchange data with the outside. Whether the external PHY card exists in the external PHY card clamping groove or not is accurately displayed through the level state of the GPIO, external manual operation is not needed, whether the external PHY card exists or not is compared with existing manual identification, and whether the mode that whether the MAC controller is detected or not is controlled by controlling the state of the corresponding pin of the jump cap, so that manpower is greatly saved, the labor cost is reduced, and the working efficiency is improved.
By applying the method provided by the embodiment of the invention, when a data exchange request is received, whether the GPIO in the card slot of the external PHY card is in an enabled level state or not is detected; if yes, determining that the external PHY card exists in the external PHY card clamping groove; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card. The GPIO is arranged in the external PHY card slot, when the external PHY card is inserted, the level of the GPIO can be changed, so that the GPIO is in an enabled level state, whether the external PHY card exists in the external PHY card slot can be judged according to the level state of the GPIO, only when the external PHY card is determined to exist, the network card formed by combining the external PHY card and the MAC controller is displayed, the probability that the network card is selected by a user in a misleading mode when the external PHY card does not exist is greatly reduced, whether the external PHY card exists is compared with the existing manual identification, and whether the MAC controller is detected or not is controlled by controlling the state of the corresponding pin of the jump cap, so that the manpower is greatly saved, the manpower cost is reduced, and the working efficiency is improved.
It should be noted that, based on the first embodiment, the embodiment of the present invention further provides a corresponding improvement scheme. In the following embodiments, steps that are the same as or correspond to those in the first embodiment may be referred to each other, and corresponding advantageous effects may also be referred to each other, which are not described in detail in the following modified embodiments.
The second embodiment:
referring to fig. 2, fig. 2 is a flowchart of another implementation of the method for identifying an external PHY card according to an embodiment of the present invention, where the method may include the following steps:
s201: when a data exchange request is received, detecting whether GPIO in an external PHY card slot is in an enabling level state, if so, executing step S202 and step S203, otherwise, executing step S204
S202: and determining that the external PHY card exists in the external PHY card slot.
S203: and displaying the network card formed by combining the external PHY card and the MAC controller in an identifiable network card list according to the preset network card selection priority.
One server may be pre-deployed with a plurality of network cards, one of the network cards formed by combining the external PHY card and the MAC controller is one of the network cards, and in most cases, when a network card is selected, if the external PHY card is inserted into the external PHY card slot, the network card formed by combining the external PHY card and the MAC controller is arranged at a position closer to the front by default. The network card sequence when the available network cards are displayed can be preset according to needs and stored in a preset identifiable network card list, and when the external PHY card is determined to exist in the external PHY card slot, the network card formed by combining the external PHY card and the MAC controller can be displayed in the identifiable network card list according to the preset network card selection priority.
S204: and detecting whether a control jump cap in the connector circuit is in an enabling pin, if so, executing a step S205, otherwise, executing a step S206.
The connector circuit is arranged between the external PHY card slot and the MAC controller, and controls the on-off between the external PHY card slot and the MAC controller by controlling the jump cap.
The external PHY card slot is connected with the MAC controller through a connector circuit, the on-off of the connector can be controlled in a physical external control jumping cap mode, if 3 pins can be led out from the connector circuit, when the control jumping cap is located at 12 pins, the connector is in an on state, and when the control jumping cap is located at 23 pins, the connector is in an off state. Whether an external PHY card exists in an external PHY card slot is accurately displayed by adopting the level state of GPIO, and the feasibility is that a control jump cap of a connector circuit between a default external PHY card slot and an MAC controller is in an enabling pin state. And the pin state of the connector control jump cap can be set to be the highest priority, namely when the connector control jump cap is in a non-enabled pin, even if an external PHY card exists in an external PHY card slot, the GPIO is still in a non-enabled level state.
However, there may be human factors that cause the control of the hop cap to be in the disabled state, and thus, in determining whether the GPIO is in the disabled level state, it may be detected whether the hop cap in the connector line is in the enabled pin. If the pin is enabled, it indicates that no external PHY card exists in the current external PHY card slot, and step S205 may be continuously executed, otherwise, it indicates that the cap is not enabled in the connector line, which may be a result of human misoperation that may cause an error in the level state determination of the GPIO, and step S206 may be executed.
And the external PHY card, the MAC controller and the connector between the external PHY card and the MAC controller can be periodically overhauled, so that good hardware support is provided for accurately displaying whether the external PHY card exists in the external PHY card slot or not through the level state of the GPIO, the probability of wrong judgment of the level state of the GPIO caused by hardware faults is greatly reduced, and the accuracy of judging whether the external PHY card exists in the external PHY card slot or not is improved.
S205: and carrying out hiding operation on the MAC controller.
When the control jump cap in the connector circuit is proved to be in the enabling pin by verification, the fact that the external PHY card does not exist in the external PHY card clamping groove at present is further determined, and the MAC controller can be hidden. Therefore, the MAC controller is prevented from being identified by the BIOS or the OS in the PCI scanning process due to the fact that the MAC controller is arranged in the south bridge, and the MAC controller is prevented from being displayed to misguide a user to select.
S206: and carrying out alarm prompt.
When the jump cap in the connector circuit is determined to be in the non-enabled pin through inspection, it is indicated that the level state judgment of the GPIO possibly has errors caused by human misoperation, an alarm prompt can be given, and if the jump cap is displayed in the non-enabled pin on a BIOS (basic input output System) step interface or an OS (operating System) interface of a user, the user can take corresponding measures in time.
Example three:
referring to fig. 3, fig. 3 is a flowchart of another implementation of the method for identifying an external PHY card according to an embodiment of the present invention, where the method may include the following steps:
s301: when a data exchange request is received, whether a control jump cap in a connector circuit is located at an enabling pin is detected, if so, step S302 is executed, otherwise, step S305 is executed.
The connector circuit is arranged between the external PHY card slot and the MAC controller, and controls the on-off between the external PHY card slot and the MAC controller by controlling the jump cap.
The priority of the state of the control hop cap pin in the connector line can be preset to be higher than the priority of the state of the GPIO level, so that when a data exchange request is received, whether the control hop cap in the connector line is in the enable pin can be detected firstly, if the control hop cap is in the enable pin, the judgment of the state of the GPIO level in the step S302 can be continuously executed, and if the control hop cap is in the non-enable pin, even if an external PHY card is inserted into the external PHY card slot, the external PHY card and the MAC controller cannot form an available network card because the external PHY card slot and the MAC controller are in the open circuit state, so that the judgment of the state of the GPIO level in the step S302 is not needed. By preferentially judging the pin state of the control jump cap in the connector circuit, the situation that a network card consisting of an MAC controller and an external PHY card does not exist can be determined more quickly.
S302: detecting whether the GPIO in the external PHY card slot is in an enabled level state, if so, executing step S303, otherwise, executing step S305.
S303: and determining that the external PHY card exists in the external PHY card slot.
S304: and displaying the network card formed by combining the external PHY card and the MAC controller in an identifiable network card list according to the preset network card selection priority so as to exchange data by using the network card.
S305: and carrying out hiding operation on the MAC controller.
Corresponding to the above method embodiments, the embodiments of the present invention further provide an external PHY card identification apparatus, and the external PHY card identification apparatus described below and the external PHY card identification method described above may be referred to in a corresponding manner.
Referring to fig. 4, fig. 4 is a block diagram illustrating a structure of an external PHY card identification apparatus according to an embodiment of the present invention, where the apparatus may include:
the state detection module 41 is configured to detect whether a GPIO in the external PHY card slot is in an enable level state when receiving the data exchange request;
the PHY card determining module 42 is configured to determine that an external PHY card exists in the external PHY card slot when detecting that a GPIO in the external PHY card slot is in an enable level state;
and a network card display module 43, configured to perform display operation on a network card formed by combining the external PHY card and the MAC controller, so as to perform data exchange by using the network card.
By applying the device provided by the embodiment of the invention, when a data exchange request is received, whether the GPIO in the card slot of the external PHY card is in an enabled level state is detected; if yes, determining that the external PHY card exists in the external PHY card slot; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card. The GPIO is arranged in the external PHY card slot, when the external PHY card is inserted, the level of the GPIO can be changed, so that the GPIO is in an enabled level state, whether the external PHY card exists in the external PHY card slot can be judged according to the level state of the GPIO, only when the external PHY card is determined to exist, the network card formed by combining the external PHY card and the MAC controller is displayed, the probability that the network card is selected by a user in a misleading mode when the external PHY card does not exist is greatly reduced, whether the external PHY card exists is compared with the existing manual identification, and whether the MAC controller is detected or not is controlled by controlling the state of the corresponding pin of the jump cap, so that the manpower is greatly saved, the manpower cost is reduced, and the working efficiency is improved.
In an embodiment of the present invention, the apparatus may further include:
and the hidden operation module is used for hiding the MAC controller when detecting that the GPIO in the external PHY card slot is in a non-enabled level state.
In an embodiment of the present invention, the apparatus may further include:
the cap jumping state detection module is used for detecting whether a control jumping cap in a connector circuit is in an enabling pin or not before hiding the MAC controller when the GPIO in the external PHY card slot is determined to be in a non-enabling level state; the connector circuit is arranged between the external PHY card clamping groove and the MAC controller, and controls the connection and disconnection between the external PHY card clamping groove and the MAC controller by controlling the jump cap;
the hidden operation module is specifically a module for hiding the MAC controller when the GPIO in the card slot of the external PHY card is determined to be in a high level state and a control jump cap in the connector circuit is determined to be in an enabling pin;
and the alarm module is used for giving an alarm prompt when detecting whether the control jump cap in the connector circuit is positioned on the non-enabled pin.
In a specific embodiment of the present invention, the cap-skipping state detection module is further configured to detect whether a control cap skipping in a connector line is at an enable pin after receiving the data exchange request and before detecting whether a GPIO in the external PHY card slot is at an enable level state; the connector circuit is arranged between the external PHY card clamping groove and the MAC controller, and controls the connection and disconnection between the external PHY card clamping groove and the MAC controller by controlling the jump cap;
the state detection module 41 is specifically a module that detects whether a GPIO in the external PHY card slot is in an enable level state when it is determined that the control jumper cap in the connector line is in an enable pin;
and the hidden operation module is also used for hiding the MAC controller when the control jump cap in the connector circuit is determined to be positioned at the non-enabled pin.
In a specific embodiment of the present invention, the network card display module 43 is a module that displays a network card formed by combining an external PHY card and an MAC controller in an identifiable network card list according to a preset network card selection priority.
Corresponding to the above method embodiment, referring to fig. 4, fig. 4 is a schematic diagram of an identification device externally connected to a PHY card according to the present invention, where the identification device may include:
a memory 41 for storing a computer program;
the processor 42, when executing the computer program stored in the memory 41, may implement the following steps:
when a data exchange request is received, detecting whether GPIO in a card slot of an external PHY card is in an enabling level state; if yes, determining that the external PHY card exists in the external PHY card slot; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card.
For the introduction of the device provided by the present invention, please refer to the above method embodiment, which is not described herein again.
Corresponding to the above method embodiment, the present invention further provides a computer-readable storage medium having a computer program stored thereon, the computer program, when executed by a processor, implementing the steps of:
when a data exchange request is received, detecting whether GPIO in a card slot of an external PHY card is in an enabling level state; if yes, determining that the external PHY card exists in the external PHY card clamping groove; and displaying the network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card.
The computer-readable storage medium may include: various media capable of storing program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
For the introduction of the computer-readable storage medium provided by the present invention, please refer to the above method embodiments, which are not described herein again.
The embodiments are described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same or similar parts among the embodiments are referred to each other. The device, the apparatus and the computer-readable storage medium disclosed in the embodiments correspond to the method disclosed in the embodiments, so that the description is simple, and the relevant points can be referred to the description of the method.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the technical solution. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.
The steps of a method or algorithm described in connection with the embodiments disclosed herein may be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module may reside in Random Access Memory (RAM), memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art.
The principle and the embodiment of the present invention are explained by applying specific examples, and the above description of the embodiments is only used to help understanding the technical solution and the core idea of the present invention. It should be noted that, for those skilled in the art, without departing from the principle of the present invention, it is possible to make various improvements and modifications to the present invention, and those improvements and modifications also fall within the scope of the claims of the present invention.

Claims (6)

1. An external PHY card identification method, comprising:
when a data exchange request is received, detecting whether GPIO in an external PHY card slot is in an enabling level state;
if yes, determining that an external PHY card exists in the external PHY card slot;
displaying a network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card;
when detecting that GPIO in the external PHY card slot is in a non-enabling level state, detecting whether a control jump cap in a connector circuit is in an enabling pin; the connector circuit is arranged between the external PHY card clamping groove and the MAC controller, and controls the connection and disconnection between the external PHY card clamping groove and the MAC controller through the control jump cap;
if yes, hiding the MAC controller;
if not, alarm prompt is carried out.
2. The method for identifying the external PHY card of claim 1, wherein after receiving the data exchange request, before detecting whether the GPIO in the external PHY card slot is in an enabled level state, the method further comprises:
detecting whether a control jump cap in a connector circuit is at an enabling pin; the connector circuit is arranged between the external PHY card slot and the MAC controller, and the on-off between the external PHY card slot and the MAC controller is controlled through the control jump cap;
if yes, executing the step of detecting whether the GPIO in the external PHY card slot is in an enabled level state;
and if not, executing the step of hiding the MAC controller.
3. The method for identifying an external PHY card according to any one of claims 1 to 2, wherein performing a display operation on a network card formed by combining the external PHY card and an MAC controller comprises:
and displaying the network card formed by combining the external PHY card and the MAC controller in an identifiable network card list according to the preset network card selection priority.
4. An external PHY card identification apparatus, comprising:
the state detection module is used for detecting whether the GPIO in the external PHY card slot is in an enabled level state or not when receiving a data exchange request;
the PHY card determining module is used for determining that an external PHY card exists in the external PHY card slot when detecting that GPIO in the external PHY card slot is in a low level state;
the network card display module is used for carrying out display operation on a network card formed by combining the external PHY card and the MAC controller so as to exchange data by utilizing the network card;
the hidden operation module is used for detecting whether a control jump cap in a connector circuit is in an enabling pin or not when detecting that GPIO in the external PHY card slot is in a non-enabling level state, and if so, hiding the MAC controller; the connector circuit is arranged between the external PHY card clamping groove and the MAC controller, and controls the connection and disconnection between the external PHY card clamping groove and the MAC controller through the control jump cap; hiding the MAC controller;
and the alarm module is used for giving an alarm prompt when detecting that the control jump cap in the connector circuit is positioned on the non-enabled pin.
5. An external PHY card identification device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the method for identifying an external PHY card according to any one of claims 1 to 3 when executing the computer program.
6. A computer-readable storage medium, wherein a computer program is stored on the computer-readable storage medium, and when executed by a processor, the computer program implements the steps of the method for identifying an external PHY card according to any one of claims 1 to 3.
CN201910548509.2A 2019-06-24 2019-06-24 External PHY card identification method, device, equipment and readable storage medium Active CN110413459B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910548509.2A CN110413459B (en) 2019-06-24 2019-06-24 External PHY card identification method, device, equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910548509.2A CN110413459B (en) 2019-06-24 2019-06-24 External PHY card identification method, device, equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN110413459A CN110413459A (en) 2019-11-05
CN110413459B true CN110413459B (en) 2023-01-10

Family

ID=68359633

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910548509.2A Active CN110413459B (en) 2019-06-24 2019-06-24 External PHY card identification method, device, equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN110413459B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399135A (en) * 2018-03-02 2018-08-14 郑州云海信息技术有限公司 A kind of control method and relevant apparatus of disk unit identification
CN109672747A (en) * 2019-01-02 2019-04-23 郑州云海信息技术有限公司 A kind of data transmission method, device, equipment and computer readable storage medium
CN109815076A (en) * 2019-03-06 2019-05-28 苏州浪潮智能科技有限公司 A kind of network interface card boot option detection method, system, terminal and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108399135A (en) * 2018-03-02 2018-08-14 郑州云海信息技术有限公司 A kind of control method and relevant apparatus of disk unit identification
CN109672747A (en) * 2019-01-02 2019-04-23 郑州云海信息技术有限公司 A kind of data transmission method, device, equipment and computer readable storage medium
CN109815076A (en) * 2019-03-06 2019-05-28 苏州浪潮智能科技有限公司 A kind of network interface card boot option detection method, system, terminal and storage medium

Also Published As

Publication number Publication date
CN110413459A (en) 2019-11-05

Similar Documents

Publication Publication Date Title
US9324294B2 (en) Graphics system for supporting multiple digital display interface standards
CN111063386A (en) DDR chip testing method and device
CN111143150A (en) Method and system for testing PCBA (printed circuit board assembly), testing equipment and micro-control unit
CN108519935B (en) Board card testing method and device, readable storage medium and computer equipment
CN114866424B (en) Server management method, device, system, electronic equipment and readable storage medium
CN110445932B (en) Abnormal card dropping processing method and device, storage medium and terminal
CN111896884A (en) Charging detection method and device
CN105809117A (en) Information prompt method and user terminal
EP2963992A1 (en) Method and device for displaying and processing application name of multimode card of mobile terminal
CN107608923B (en) Test processing method and related product
US8391162B2 (en) Apparatus and method for testing SMNP cards
CN110413459B (en) External PHY card identification method, device, equipment and readable storage medium
CN112866061A (en) NCSI (network control information system) testing method, device, equipment and medium of onboard network port
CN111538994A (en) System security detection and repair method, device, storage medium and terminal
CN112445670B (en) eMMC test method and device
CN111475356A (en) System startup test information display method and related device
CN116010141A (en) Method, device and medium for positioning starting abnormality of multipath server
CN112000532B (en) Method, device, equipment and system for detecting disk disorder
CN114490206A (en) Interface performance test method and system
CN114579147A (en) Burning verification method and device, terminal equipment and storage medium
CN111639312B (en) Anti-debugging method, anti-debugging device, storage medium and electronic device
CN112596983A (en) Monitoring method for connector in server
CN112084077A (en) Aging test method, device and medium of USB (Universal Serial bus) equipment and USB equipment
CN104079453A (en) Enumeration method and device for debugging equipment
US20050086561A1 (en) Testing device

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