CN110912840A - Unified interface device based on switch port and bottom layer equipment information acquisition method - Google Patents
Unified interface device based on switch port and bottom layer equipment information acquisition method Download PDFInfo
- Publication number
- CN110912840A CN110912840A CN201911161206.1A CN201911161206A CN110912840A CN 110912840 A CN110912840 A CN 110912840A CN 201911161206 A CN201911161206 A CN 201911161206A CN 110912840 A CN110912840 A CN 110912840A
- Authority
- CN
- China
- Prior art keywords
- port
- gpio
- target
- information
- switch
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L49/00—Packet switching elements
- H04L49/15—Interconnection of switching modules
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- User Interface Of Digital Computer (AREA)
Abstract
The application discloses a unified interface device based on a switch port and a bottom layer equipment information acquisition method. The device is applied to a 25g port and a 100g port of a switch and comprises a positioning module, a port initialization module, a gpio operation module and an eprom operation module. The positioning module can provide the starting number, the number and the ending number of the physical ports of the switch, the starting number and the ending number of the gpio, the address mapping relation between each physical port and the gpio and the address mapping relation between each physical port and the eeprom equipment; the port initialization module can construct a mapping relation with the gpio for each physical port based on the port type; the gpio operation module determines a corresponding target gpio for the current physical port based on the address mapping relationship between each physical port and the gpio; the eprom operation module determines a file path of a corresponding target eprom device for the current physical port based on the address mapping relation between each physical port and the eprom device, so that the file information of the bottom layer device to be subjected to port docking can be quickly obtained on the basis of not depending on technical experience.
Description
Technical Field
The present application relates to the field of switch port information retrieval technologies, and in particular, to a unified interface device based on a switch port and a method for acquiring information of a bottom layer device.
Background
With the rapid development of cloud technology and internet of things technology, users can acquire various required data through a computer network, and can shop, study, work, communicate and the like, and the computer network becomes an indispensable part in daily work and life. In large computer networks, switches can be interconnected between different types of networks, such as ethernet and fast ethernet, in addition to being able to connect to the same type of network, and switch information needs to be frequently acquired during the operation of the computer network.
The switch is provided with a plurality of physical ports, and in the process of acquiring the related information of the current physical port, a user cannot know the bottom device file system in which each port is in butt joint in the upper application, and needs to check the linux kernel and the related drivers to acquire the device files corresponding to the ports at each position slowly.
In view of this, how to quickly obtain the underlying device file information of the required port docking on the basis of not depending on technical experience is a technical problem that needs to be solved by those skilled in the art.
Disclosure of Invention
The application provides a unified interface device based on switch ports and a bottom layer equipment information acquisition method, which can quickly obtain the bottom layer equipment file information of the required port butt joint on the basis of not depending on technical experience.
In order to solve the above technical problems, embodiments of the present invention provide the following technical solutions:
the embodiment of the invention provides a unified interface device based on a switch port on one hand, which is applied to a 25g port and a 100g port of a switch and comprises a positioning module, a port initialization module, a gpio operation module and an eprom operation module;
the positioning module is used for providing a starting number, a number and an ending number of physical ports of the switch, a starting number and an ending number of the gpio, an address mapping relation between each physical port and the gpio, and an address mapping relation between each physical port and the eprom equipment;
the port initialization module is used for constructing a mapping relation with the gpio for each physical port based on the port type;
the gpio operation module is configured to determine a corresponding target gpio for a current physical port based on an address mapping relationship between each physical port and the gpio;
the eprom operation module is used for determining a file path of a corresponding target eprom device for the current physical port based on the address mapping relation between each physical port and the eprom device.
Optionally, the gpio operation module is further configured to perform output setting or non-output setting on the target gpio according to whether the target gpio can be used by a user.
Optionally, the gpio operation module is specifically configured to perform output setting for the target gpio if a range of a gpio pin in which the pin number of the target gpio is located is an allowable range, so that the target gpio is used by a user.
Optionally, the gpio operation module is further configured to determine an orientation path according to the pin number of the target gpio, and write orientation information into a file under the orientation path, so as to perform orientation setting on the target gpio.
Optionally, the port initialization module includes:
a port type judgment submodule, configured to judge whether the current physical port is a 25g port or a 100g port;
a 25g port mapping relation construction submodule, configured to map a corresponding gpio number according to the current physical port number and the optical module sending close enable type;
a 100g port mapping relation construction submodule, configured to map a corresponding gpio number according to the current physical port number and the low power mode type;
the Gpio output setting submodule is used for displaying and setting the Gpio corresponding to the Gpio number;
and the orientation setting submodule is used for carrying out orientation operation setting on the gpio corresponding to the gpio number.
Optionally, the port initialization module is further configured to respond to the port number query request, and output the port number value according to the port start number and the port end number.
Optionally, the port initialization module further includes an in-place information query sub-module;
the in-place information query submodule is used for responding to the port in-place information query request and outputting in-place information or non-in-place information of a port to be queried.
Optionally, the in-place information query sub-module includes:
a number determining unit, configured to obtain a target gpio number corresponding to the port to be queried based on an address mapping relationship between each physical port and a gpio and the number of the port to be queried;
and the in-place information reading unit is used for reading the numerical value information in the target gpio path to determine whether the port to be inquired is in place according to the numerical value information if the target gpio corresponding to the target gpio number has finished the output setting and the directional setting.
Another aspect of the embodiments of the present invention provides a method for obtaining information of a bottom layer device, which is applied to any one of the above unified interface apparatuses based on a switch port, and includes:
inputting the number information of the port to be inquired into the unified interface device based on the switch port;
and displaying a target gpio path corresponding to the port to be queried and a file path of the target eeprom device according to the output information of the unified interface device based on the switch port.
Optionally, after displaying the target gpio path corresponding to the port to be queried and the file path of the target eeprom device according to the information output by the unified interface device based on the switch port, the method further includes:
and when an information writing request is received, writing data to be written carried by the information writing request into a file path of the target eeprom device.
The technical scheme provided by the application has the advantages that the port initialization module is used for initializing each port based on the basic parameter information provided by the positioning module, so that the mapping relation between each physical port and the gpio can be constructed; the gpio operation module and the eprom operation module determine corresponding file paths of target gpio and eprom devices for the current port to be queried by using the basic parameter information provided by the positioning module, and do not need to implement each function in a complicated manner, and can quickly determine corresponding bottom device information for a user by only numbering the port to be queried without depending on whether the operator has related technical experience, so that the user who does not know the corresponding relationship between the gpio and the eprom can obtain a bottom device file to which the port is butted, thereby facilitating the acceleration of the development efficiency of an application layer and reducing the research and development cost of the application layer.
In addition, the embodiment of the invention also provides a corresponding using method for the unified interface device based on the switch port, so that the device has higher practicability, and the bottom equipment information acquisition method has corresponding advantages.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions of the related art, the drawings required to be used in the description of the embodiments or the related art will be briefly described below, and 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 these drawings without creative efforts.
Fig. 1 is a structural diagram of a specific embodiment of a unified interface device based on switch ports according to an embodiment of the present invention;
fig. 2 is an information interaction diagram of a hardware application scenario according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for acquiring information of a bottom-layer device according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of another method for acquiring information of a base layer device according to an embodiment of the present invention;
fig. 5 is a structural diagram of a specific implementation of obtaining information of a bottom-layer device 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 is to be understood that the described embodiments are merely exemplary of the invention, and not restrictive of the full scope of the invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The terms "first," "second," "third," "fourth," and the like in the description and claims of this application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements but may include other steps or elements not expressly listed.
Having described the technical solutions of the embodiments of the present invention, various non-limiting embodiments of the present application are described in detail below.
Referring to fig. 1 and fig. 2, fig. 1 is a structure of a unified interface device based on a switch port according to an embodiment of the present invention in a specific implementation, and fig. 2 is a schematic diagram of information interaction of a hardware application scenario, where the embodiment of the present invention is applied to a 25g port and a 100g port of a switch, and the structure may include the following contents:
the switch port-based unified interface device may include a positioning module 1, a port initialization module 2, a General-purpose input/output (gpio) operation module 3, and an eprom (electrically erasable Programmable Read-Only Memory) operation module 4.
The positioning module 1 is configured to provide a start number, a number, and an end number of physical ports of the switch, a start number and an end number of a gpio, an address mapping relationship between each physical port and the gpio, and an address mapping relationship between each physical port and an eprom device. The address mapping relationship between the physical port and the gpio may be a correspondence relationship between a physical port number and an address of the gpio, or a correspondence relationship between other identification information of the physical port and the address of the gpio, and the identification information of the physical port is used for uniquely characterizing the port. The address mapping relationship between each physical port and the eeprom device can be a corresponding relationship between a physical port number and a file address of the eeprom device, and also can be a corresponding relationship between other identification information of the physical port and identification information of the eeprom device, and the identification information of the eeprom device is used for uniquely representing the eeprom device. The total number of the physical ports can be determined according to the starting number and the ending number of the ports, the starting number, the number and the ending number of the physical ports of the switch, the starting number and the ending number of the gpio, the address mapping relation between each physical port and the gpio, and the address mapping relation between each physical port and the eeprom device can be stored in the positioning module 1 in advance, and can also be stored in other files and simultaneously record the stored information path in the positioning module 1, so that after the positioning module 1 receives the information providing instruction, corresponding information can be read according to the stored information path.
Alternatively, the location module 1 may first provide the number of physical ports, a start number, and an end number, and then provide gpio path/sys/class/gpio/gpio { }/value, direction path/sys/class/gpio/gpio { }/direction, export path and unexport path/sys/class/gpio/unexport, and path/sys/bus/i 2c/devices/{ }/{ } corresponding to eprom. Finally, a port and gpio address mapping relation _ port _ to _ gpio _ addr and a port and eeprom address mapping relation _ port _ to _ eeprom _ addr are provided.
The port initialization module 2 may be configured to construct a mapping relationship with the gpio for each physical port based on the port type, so that the corresponding gpio may be directly output according to the port number. Before mapping each gpio to a corresponding port, the start number, and end number of a physical port of the switch, and the start number and end number of the gpio, which are data of the address mapping relationship between each physical port and the gpio, may be obtained from the location module 1, and then mapping operations may be performed on each physical port in sequence according to the port number, for example, the number of the current port to be mapped is obtained, the corresponding gpio number is determined according to the number, then the gpio is located according to the gpio number, and finally the gpio and the current physical port may be mapped.
The gpio operation module 3 is configured to determine a corresponding target gpio for the current physical port based on the address mapping relationship between each physical port and the gpio, and it can be understood that the location module 1 provides the address mapping relationship between each physical port and the gpio, and the identification information, such as a number, of the current physical port is input to the gpio operation module 3, so that corresponding gpio information can be obtained.
The eprom operation module 4 may be configured to determine a file path of a corresponding target eprom device for a current physical port based on an address mapping relationship between each physical port and an eprom device. It can be understood that the positioning module 1 provides an address mapping relationship between each physical port and the eprom device, and inputs the identification information of the current physical port, such as a serial number, to the eprom operation module 4, so as to obtain corresponding eprom device information, so that an upper layer developer can read and write the file through an upper layer application program, and complete a corresponding function.
In the embodiment of the invention, each port is initialized by using the port initialization module based on the basic parameter information provided by the positioning module, so that the mapping relation between each physical port and gpio can be constructed; the gpio operation module and the eprom operation module determine corresponding file paths of target gpio and eprom devices for the current port to be queried by using the basic parameter information provided by the positioning module, and do not need to implement each function in a complicated manner, and can quickly determine corresponding bottom device information for a user by only numbering the port to be queried without depending on whether the operator has related technical experience, so that the user who does not know the corresponding relationship between the gpio and the eprom can obtain a bottom device file to which the port is butted, thereby facilitating the acceleration of the development efficiency of an application layer and reducing the research and development cost of the application layer.
As an alternative embodiment, to further increase the flexibility of the device, the gpio manipulating module 3 may also be used to make output settings or non-output settings for the target gpio depending on whether the target gpio can be used by the user. Specifically, the gpio operation module 3 may be specifically configured to perform output setting for the target gpio if the range of the gpio pin where the pin number of the target gpio is located is an allowable range, so that the target gpio is used by the user. In a default case, the gpio operation module 3 first selects a function that provides an export (i.e., an output setup function), and can detect the range of gpio pin according to gpio _ pin _ num (a gpio pin number), and if the range is a reasonable range, then obtains an execution statement echo gpio _ pin _ num >/sys/class/gpio/export of the export, and by executing the statement, the gpio can be used by a user. A unexport function (i.e., a non-output setup function) may then also be provided so that the gpio is not available to the user. Finally, the gpio operation module 3 may also be configured to determine an orientation path according to the pin number of the target gpio, and write orientation information into a file under the orientation path to perform orientation setting on the target gpio. That is, the gpio operation module 3 may also provide a direction setting function, and obtain a direction path according to the gpio _ pin _ num, open the file, and write the direction into the file.
As another alternative, the port initialization module 2 may determine whether the port type is a 25g port or a 100g port according to the physical port number. If the port is 25g, acquiring a gpio number according to the port number and the tx _ disable type (optical module transmission shutdown enable), displaying the gpio number through an export function, and setting a low parameter according to a direction setting function. If the port is 100g, acquiring a gpio number according to the port number and the lpmode type, and finishing initialization operation through an export function and a direction setting function. Specifically, the port initialization module 2 may include the following functional modules:
the port type judgment submodule is used for judging whether the current physical port is a 25g port or a 100g port;
a 25g port mapping relation construction submodule, configured to map a corresponding gpio number according to a current physical port number and an optical module sending close enable type;
a 100g port mapping relation construction submodule for mapping a corresponding gpio number according to a current physical port number and an lpmode (low power mode) type;
the Gpio output setting submodule is used for displaying and setting the Gpio corresponding to the Gpio number;
and the orientation setting submodule is used for carrying out orientation operation setting on the gpio corresponding to the gpio number.
In some embodiments of the present invention, the port initialization module 2 may be further configured to respond to the port number query request, and output the port number value according to the port start number and the port end number.
In some other specific implementations of the embodiment of the present invention, the port initialization module 2 may further include an in-place information query sub-module; the on-site information query submodule is used for responding to the port on-site information query request and outputting on-site information or off-site information of a port to be queried. For example, the in-place information may obtain a gpio number through a physical port number, complete in setting according to a direction setting function after the number export, and then read value information in a gpio path to obtain a value, where a value is 0 to indicate in-place and a value is 1 to indicate not in-place. Specifically, the in-place information query sub-module may include:
the number determining unit is used for acquiring a target gpio number corresponding to the port to be queried based on the address mapping relation between each physical port and the gpio and the number of the port to be queried;
and the in-place information reading unit is used for reading the numerical value information in the target gpio path if the target gpio corresponding to the target gpio number has completed the output setting and the directional setting, so as to determine whether the port to be inquired is in place according to the numerical value information.
Therefore, the embodiment of the invention further improves the development efficiency of the application layer by providing the port number query function and the in-place information query function, and is beneficial to improving the use experience of users.
In addition, in order to make it more clear to those skilled in the art to understand the technical solution of the present application, the present application also provides a corresponding using method for a unified interface device based on a switch port, where an embodiment of the method is based on the foregoing device embodiment, and reference may be made to the description of the foregoing embodiment for implementing functions of the device, and details are not described here. Referring to fig. 3, fig. 3 is a schematic flow chart of a method for acquiring information of a bottom layer device according to an embodiment of the present invention, where the embodiment of the present invention includes the following steps:
s301: and inputting the number information of the port to be inquired into the unified interface device based on the switch port.
S302: and displaying a target gpio path corresponding to the port to be queried and a file path of the target eeprom device according to the output information of the unified interface device based on the switch port.
After determining the file path of the eprom device, the user can read and write the file, or modify/delete the original content, and only needs to input the corresponding changed content. That is, after S302, please refer to fig. 4, which may further include:
s303: and when the information writing request is received, writing the data to be written carried by the information writing request into a file path of the target eeprom device.
Therefore, the embodiment of the invention can quickly obtain the file information of the bottom layer equipment which needs port butt joint on the basis of not depending on technical experience.
The embodiment of the invention also provides a corresponding implementation device for the method for acquiring the information of the bottom equipment, so that the method has higher practicability. The following introduces the bottom-layer device information obtaining apparatus provided in the embodiment of the present invention, and the bottom-layer device information obtaining apparatus described below and the bottom-layer device information obtaining method described above may be referred to in correspondence with each other.
Referring to fig. 5, fig. 5 is a structural diagram of an underlying device information obtaining apparatus according to an embodiment of the present invention in a specific implementation manner, where the apparatus may include:
an information input module 501, configured to input the number information of the port to be queried into the unified interface device based on the switch port.
The information output module 502 displays a target gpio path corresponding to the port to be queried and a file path of the target eeprom device according to the information output by the unified interface device based on the switch port.
Optionally, in some embodiments of this embodiment, the apparatus may further include a write data module, for example, configured to write data to be written carried by the information write request to a file path of the target eprom device when the information write request is received.
The functions of each functional module of the bottom-layer device information acquisition apparatus according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can quickly obtain the file information of the bottom layer equipment which needs port butt joint on the basis of not depending on technical experience.
The embodiment of the present invention further provides a bottom layer device information obtaining device, which specifically includes:
a memory for storing a computer program;
a processor for executing a computer program to implement the steps of the underlying device information acquisition method according to any of the above embodiments.
The functions of each functional module of the bottom-layer device information acquisition device according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can quickly obtain the file information of the bottom layer equipment which needs port butt joint on the basis of not depending on technical experience.
The embodiment of the present invention further provides a computer-readable storage medium, in which a bottom layer device information acquisition program is stored, and the steps of the bottom layer device information acquisition method according to any one of the above embodiments are performed when the bottom layer device information acquisition program is executed by a processor. The storage medium may be various media capable of storing program codes, such as a U disk, a removable hard disk, a read-only memory, a random access memory, a magnetic disk, or an optical disk.
The functions of the functional modules of the computer-readable storage medium according to the embodiment of the present invention may be specifically implemented according to the method in the foregoing method embodiment, and the specific implementation process may refer to the related description of the foregoing method embodiment, which is not described herein again.
Therefore, the embodiment of the invention can quickly obtain the file information of the bottom layer equipment which needs port butt joint on the basis of not depending on technical experience.
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 disclosed by the embodiment corresponds to the method disclosed by the embodiment, so that the description is simple, and the relevant points can be referred to the method part for description.
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 implementation. 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 above description details a unified interface device based on a switch port and a method for acquiring information of a bottom layer device provided by the present application. The principles and embodiments of the present invention are explained herein using specific examples, which are presented only to assist in understanding the method and its core concepts. It should be noted that, for those skilled in the art, it is possible to make various improvements and modifications to the present invention without departing from the principle of the present invention, and those improvements and modifications also fall within the scope of the claims of the present application.
Claims (10)
1. A unified interface device based on a switch port is characterized in that the unified interface device is applied to a 25g port and a 100g port of a switch, and comprises a positioning module, a port initialization module, a gpio operation module and an eprom operation module;
the positioning module is used for providing a starting number, a number and an ending number of physical ports of the switch, a starting number and an ending number of the gpio, an address mapping relation between each physical port and the gpio, and an address mapping relation between each physical port and the eprom equipment;
the port initialization module is used for constructing a mapping relation with the gpio for each physical port based on the port type;
the gpio operation module is configured to determine a corresponding target gpio for a current physical port based on an address mapping relationship between each physical port and the gpio;
the eprom operation module is used for determining a file path of a corresponding target eprom device for the current physical port based on the address mapping relation between each physical port and the eprom device.
2. The switch port-based unified interface device of claim 1, wherein said gpio operations module is further configured to perform an output setting or a non-output setting for said target gpio depending on whether said target gpio is usable by a user.
3. The unified interface device based on the switch port according to claim 2, wherein the gpio operation module is specifically configured to perform output setting for the target gpio if a range of a gpio pin where the pin number of the target gpio is located is an allowable range, so that the target gpio is used by a user.
4. The switch port-based unified interface device according to claim 2, wherein the gpio operation module is further configured to determine a directional path according to a pin number of the target gpio, and write directional information into a file under the directional path, so as to perform directional setting on the target gpio.
5. The switch port based unified interface device according to any of claims 1-4, wherein said port initialization module comprises:
a port type judgment submodule, configured to judge whether the current physical port is a 25g port or a 100g port;
a 25g port mapping relation construction submodule, configured to map a corresponding gpio number according to the current physical port number and the optical module sending close enable type;
a 100g port mapping relation construction submodule, configured to map a corresponding gpio number according to the current physical port number and the low power mode type;
the Gpio output setting submodule is used for displaying and setting the Gpio corresponding to the Gpio number;
and the orientation setting submodule is used for carrying out orientation operation setting on the gpio corresponding to the gpio number.
6. The switch port based unified interface device of claim 5, wherein said port initialization module is further configured to respond to a port number query request and output a port number value according to a port start number and a port end number.
7. The switch port based unified interface device of claim 5, wherein said port initialization module further comprises an in-place information query submodule;
the in-place information query submodule is used for responding to the port in-place information query request and outputting in-place information or non-in-place information of a port to be queried.
8. The switch port based unified interface device of claim 7, wherein said in-place information query submodule comprises:
a number determining unit, configured to obtain a target gpio number corresponding to the port to be queried based on an address mapping relationship between each physical port and a gpio and the number of the port to be queried;
and the in-place information reading unit is used for reading the numerical value information in the target gpio path to determine whether the port to be inquired is in place according to the numerical value information if the target gpio corresponding to the target gpio number has finished the output setting and the directional setting.
9. An underlying device information obtaining method applied to the switch port-based unified interface apparatus according to any one of claims 1 to 8, comprising:
inputting the number information of the port to be inquired into the unified interface device based on the switch port;
and displaying a target gpio path corresponding to the port to be queried and a file path of the target eeprom device according to the output information of the unified interface device based on the switch port.
10. The bottom-layer device information obtaining method according to claim 9, wherein after displaying the target gpio path corresponding to the port to be queried and the file path of the target eeprom device according to the information output by the unified interface apparatus based on the switch port, the method further comprises:
and when an information writing request is received, writing data to be written carried by the information writing request into a file path of the target eeprom device.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911161206.1A CN110912840B (en) | 2019-11-24 | 2019-11-24 | Unified interface device based on switch port and bottom layer equipment information acquisition method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201911161206.1A CN110912840B (en) | 2019-11-24 | 2019-11-24 | Unified interface device based on switch port and bottom layer equipment information acquisition method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN110912840A true CN110912840A (en) | 2020-03-24 |
CN110912840B CN110912840B (en) | 2021-06-29 |
Family
ID=69819210
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201911161206.1A Active CN110912840B (en) | 2019-11-24 | 2019-11-24 | Unified interface device based on switch port and bottom layer equipment information acquisition method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN110912840B (en) |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582929A (en) * | 2008-05-16 | 2009-11-18 | 船井电机株式会社 | Information processing device |
CN102045608A (en) * | 2010-12-29 | 2011-05-04 | 福建星网锐捷网络有限公司 | Network device for optical communication and method thereof for automatically configuring exchange interface |
CN103092810A (en) * | 2011-11-02 | 2013-05-08 | 飞思卡尔半导体公司 | Processor with programmable virtual ports |
CN104011697A (en) * | 2011-09-27 | 2014-08-27 | 密克罗奇普技术公司 | Virtual general purpose input/output for a microcontroller |
CN106062714A (en) * | 2014-03-27 | 2016-10-26 | 英特尔公司 | Virtual general-purpose i/o controller |
EP3190524A1 (en) * | 2016-01-08 | 2017-07-12 | GE Aviation Systems LLC | Providing an interface for an avionics data transfer system |
WO2018147955A1 (en) * | 2017-02-10 | 2018-08-16 | Qualcomm Incorporated | Multi-port multi-sideband-gpio consolidation technique over a multi-drop serial bus |
CN108415863A (en) * | 2018-02-01 | 2018-08-17 | 广东欧珀移动通信有限公司 | The hardware compatibility implementation method and Related product of electronic device |
CN110221993A (en) * | 2018-03-02 | 2019-09-10 | 三星电子株式会社 | For supporting the modular system of 50G or 100G ethernet speed |
-
2019
- 2019-11-24 CN CN201911161206.1A patent/CN110912840B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582929A (en) * | 2008-05-16 | 2009-11-18 | 船井电机株式会社 | Information processing device |
CN102045608A (en) * | 2010-12-29 | 2011-05-04 | 福建星网锐捷网络有限公司 | Network device for optical communication and method thereof for automatically configuring exchange interface |
CN104011697A (en) * | 2011-09-27 | 2014-08-27 | 密克罗奇普技术公司 | Virtual general purpose input/output for a microcontroller |
CN103092810A (en) * | 2011-11-02 | 2013-05-08 | 飞思卡尔半导体公司 | Processor with programmable virtual ports |
CN106062714A (en) * | 2014-03-27 | 2016-10-26 | 英特尔公司 | Virtual general-purpose i/o controller |
EP3190524A1 (en) * | 2016-01-08 | 2017-07-12 | GE Aviation Systems LLC | Providing an interface for an avionics data transfer system |
WO2018147955A1 (en) * | 2017-02-10 | 2018-08-16 | Qualcomm Incorporated | Multi-port multi-sideband-gpio consolidation technique over a multi-drop serial bus |
CN108415863A (en) * | 2018-02-01 | 2018-08-17 | 广东欧珀移动通信有限公司 | The hardware compatibility implementation method and Related product of electronic device |
CN110221993A (en) * | 2018-03-02 | 2019-09-10 | 三星电子株式会社 | For supporting the modular system of 50G or 100G ethernet speed |
Non-Patent Citations (1)
Title |
---|
刘明: ""基于SOC的SDN交换机软硬件接口设计"", 《电子科技大学硕士学位论文》 * |
Also Published As
Publication number | Publication date |
---|---|
CN110912840B (en) | 2021-06-29 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101833418B (en) | Method and device for adding icon in interface and mobile terminal | |
WO2017020654A1 (en) | Wireless network access method and device | |
CN102980535B (en) | Angle measurement method and device | |
JP6904683B2 (en) | Systems and methods that utilize machine-readable code for testing communication networks | |
CN111858296B (en) | Interface testing method, device, equipment and storage medium | |
US20160266880A1 (en) | Application name modification method and device, and storage medium | |
CN103049375A (en) | Camera online debugging method | |
CN109656815A (en) | There are test statement write method, device, medium and the electronic equipment of configuration file | |
CN112996020A (en) | Bluetooth-based automatic testing method and device and Bluetooth testing terminal | |
CN106209970A (en) | Determine the method and apparatus of the network state being connected between subscriber equipment with routing device | |
CN103309783A (en) | Test method and device based on bus communication | |
CN110912840B (en) | Unified interface device based on switch port and bottom layer equipment information acquisition method | |
CN109416667A (en) | With dynamic and configurable response, serial device emulator using two storage levels | |
CN110858175A (en) | Test control method, master control equipment, controlled equipment and test system | |
CN110377811A (en) | A kind of display methods of device name, device, storage medium and electronic equipment | |
CN115599258A (en) | Interaction method and system of virtual files and electronic equipment | |
CN110209453A (en) | It is multipair as refreshing automatically and display methods and Related product based on driver | |
CN111030863B (en) | Node topology information determination method, device, equipment and storage medium | |
JP6598989B2 (en) | Pilot setting method and apparatus | |
CN104243693A (en) | Terminal | |
CN111078518B (en) | Data acquisition method, terminal device and computer readable storage medium | |
CN106484625A (en) | A kind of method based on universal test Software Development Platform test subsystems | |
CN109491870A (en) | A kind of detection method and device of the access state of sensor | |
US20240061556A1 (en) | Discovering and testing a topology of a peripheral component interconnect board | |
CN113014409B (en) | Networking equipment configuration method, device, equipment and storage medium |
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 |