CN112003960B - Network interface management method and device of industrial control equipment and electronic device - Google Patents
Network interface management method and device of industrial control equipment and electronic device Download PDFInfo
- Publication number
- CN112003960B CN112003960B CN202010782248.3A CN202010782248A CN112003960B CN 112003960 B CN112003960 B CN 112003960B CN 202010782248 A CN202010782248 A CN 202010782248A CN 112003960 B CN112003960 B CN 112003960B
- Authority
- CN
- China
- Prior art keywords
- industrial control
- network interface
- control equipment
- slot position
- slot
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L61/00—Network arrangements, protocols or services for addressing or naming
- H04L61/30—Managing network names, e.g. use of aliases or nicknames
- H04L61/3015—Name registration, generation or assignment
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
The application relates to a network interface management method, a network interface management device, an electronic device and a storage medium of industrial control equipment, wherein the method comprises the following steps: acquiring a slot position image of first industrial control equipment; the slot position images of the first industrial control equipment are matched in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment; naming a first network interface in the first industrial control equipment according to a preset rule under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library to obtain an interface name of the first network interface; and storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library. By the method and the device, the problem that the network interface is difficult to position and identify when the industrial control equipment carries out network communication in the related technology is solved, and the technical effect of improving the positioning and identifying efficiency of the network interface is achieved.
Description
Technical Field
The present application relates to the field of network communication technologies, and in particular, to a method and an apparatus for managing a network interface of an industrial control device, an electronic apparatus, and a storage medium.
Background
With the development of network communication technology, network-based communication between industrial control equipment and industrial control equipment or between industrial control equipment and a main control computer becomes more and more frequent. In order to facilitate network communication between the industrial control equipment and the industrial control equipment or the main control machine, the industrial control equipment is often provided with a plurality of network interfaces.
For the industrial control equipment with multiple network interfaces, when network communication is performed between the industrial control equipment and the industrial control equipment or the master controller, in order to ensure the location and identification of the network interface during the network communication, naming operation needs to be performed on the network interface, for example: in the industrial control equipment provided with the Linux operating system, the Linux operating system names the network interface in the industrial control equipment as ethX, and when the industrial control equipment is provided with four network interfaces, the Linux operating system names the four network interfaces as eth0, eth1, eth2 and eth3 respectively.
However, the network modules used by each industrial control device are not necessarily the same, so that when each network interface of the industrial control device is enabled, naming may be performed according to a network interface naming mode corresponding to another device performing network communication through the network interface, and naming of the network interface is irregular, which directly causes confusion of naming of the network interface; meanwhile, because the interface names generated when the same network interface communicates with different devices are inconsistent, the interface name of the network interface needs to be generated again when the industrial control device performs network communication each time, which causes slow positioning and identification of the network interface when the industrial control device performs network communication, and increases the difficulty in operation and maintenance of the industrial control device.
At present, no effective solution is provided for the problem that the network interface is difficult to locate and identify when the industrial control equipment performs network communication in the related technology.
Disclosure of Invention
The embodiment of the application provides a network interface management method and device of industrial control equipment, an electronic device and a storage medium, so as to at least solve the problem that the network interface is difficult to position and identify when the industrial control equipment carries out network communication in the related technology.
In a first aspect, an embodiment of the present application provides a method for managing a network interface of an industrial control device, including: the method comprises the steps of obtaining a slot position image of first industrial control equipment, wherein the first industrial control equipment comprises at least a first network interface; matching slot position images of the first industrial control equipment in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment; naming a first network interface in the first industrial control equipment according to a preset rule under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library to obtain an interface name of the first network interface; and storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
In some embodiments, after matching the slot image of the first industrial control device in the preset feature library, the method further includes: and under the condition that the slot position image of the first industrial control equipment is matched in a preset feature library, acquiring an interface name corresponding to the first network interface from the preset feature library.
In some embodiments, when the slot image of the first industrial control device is not matched in a preset feature library, naming a first network interface in the first industrial control device according to a preset rule, and obtaining an interface name of the first network interface includes: under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library, determining first position information of a first slot position in the first industrial control equipment in a first direction of the first industrial control equipment according to the slot position image of the first industrial control equipment, wherein the first industrial control equipment at least comprises the first slot position which at least comprises a first network interface, and determining second position information of the first network interface on the first slot position according to the slot position image of the first industrial control equipment; sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information; sequencing all network interfaces in the first slot position along a first direction and/or a second direction, and determining a first interface number of the first network interface according to the second position information, wherein the first direction is vertical to the second direction; and combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface.
In some embodiments, sequencing all slots in the industrial control device in a first direction, and determining the first slot number of the first network interface according to the first position information includes: determining the number of slot position lines of the first industrial control equipment according to the slot position image of the first industrial control equipment; and under the condition that the number of the slot positions of the first industrial control equipment is 1, sequencing all the slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information.
In some of these embodiments, the method further comprises: when the number of the slot position lines of the first industrial control equipment is larger than 1, sequencing all slot positions in the industrial control equipment along a second direction, and determining third position information of the first slot position on the industrial control equipment along the second direction according to a slot position image of the first industrial control equipment; and determining a second slot number of the first network interface according to the third position information.
In some embodiments, combining at least the first slot number of the first network interface and the first interface number of the first network interface, and obtaining the interface name of the first network interface comprises: and combining the first slot position number, the second slot position number and the first interface number to obtain the interface name of the first network interface.
In some embodiments, obtaining a slot image of a first industrial control device, where the first industrial control device includes at least a first network interface includes: acquiring enabling information of a first network interface; and acquiring a slot position image of first industrial control equipment under the condition that the first network interface is enabled, wherein the first industrial control equipment comprises at least a first network interface.
In a second aspect, an embodiment of the present application provides a network interface management apparatus for an industrial control device, including: the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a slot position image of first industrial control equipment, and the first industrial control equipment comprises at least a first network interface; the matching module is used for matching the slot position images of the first industrial control equipment in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment; the naming module is used for naming a first network interface in the first industrial control equipment according to a preset rule under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library to obtain an interface name of the first network interface; and the storage module is used for storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
In a third aspect, an embodiment of the present application provides an electronic apparatus, which includes a memory, a processor, and a computer program that is stored in the memory and is executable on the processor, where the processor, when executing the computer program, implements the method for managing a network interface of an industrial control device according to the first aspect.
In a fourth aspect, an embodiment of the present application provides a storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the network interface management method for an industrial control device as described in the first aspect.
Compared with the related art, the network interface management method, the network interface management device, the electronic device and the storage medium of the industrial control equipment provided by the embodiment of the application solve the problem that the network interface is difficult to position and identify when the industrial control equipment carries out network communication in the related art, and achieve the technical effect of improving the positioning and identification efficiency of the network interface.
The details of one or more embodiments of the application are set forth in the accompanying drawings and the description below to provide a more thorough understanding of the application.
Drawings
The accompanying drawings, which are included to provide a further understanding of the application and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the application and together with the description serve to explain the application and not to limit the application. In the drawings:
fig. 1 is a flowchart of a network interface management method of an industrial control device according to an embodiment of the present application;
FIG. 2 is a slot image of an industrial control device for a single row of slots according to an embodiment of the present application;
FIG. 3 is a slot image of an industrial control device with multiple rows of slots according to an embodiment of the present application;
fig. 4 is a block diagram of a network interface management apparatus of an industrial control device according to an embodiment of the present application;
fig. 5 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clearly understood, the present application is described and illustrated below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the present application and are not intended to limit the present application. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments provided in the present application without any inventive step are within the scope of protection of the present application. Moreover, it should be appreciated that in the development of any such actual implementation, as in any engineering or design project, numerous implementation-specific decisions must be made to achieve the developers' specific goals, such as compliance with system-related and business-related constraints, which may vary from one implementation to another.
Reference in the specification to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the specification. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those of ordinary skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments without conflict.
Unless otherwise defined, technical or scientific terms referred to herein should have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. The use of the terms "a" and "an" and "the" and similar referents in the context of describing the invention (including a single reference) are to be construed in a non-limiting sense as indicating either the singular or the plural. The present application is directed to the use of the terms "including," "comprising," "having," and any variations thereof, which are intended to cover non-exclusive inclusions; for example, a process, method, system, article, or apparatus that comprises a list of steps or modules (elements) is not limited to only those steps or elements but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus. Reference to "connected," "coupled," and the like in this application is not intended to be limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. Reference herein to "a plurality" means greater than or equal to two. "and/or" describes an association relationship of associated objects, meaning that three relationships may exist, for example, "A and/or B" may mean: a exists alone, A and B exist simultaneously, and B exists alone. Reference herein to the terms "first," "second," "third," and the like, are merely to distinguish similar objects and do not denote a particular ordering for the objects.
Fig. 1 is a flowchart of a network interface management method for an industrial control device according to an embodiment of the present application, and as shown in fig. 1, the flowchart includes the following steps:
step S101, a slot position image of a first industrial control device is obtained, wherein the first industrial control device comprises at least a first network interface.
In this embodiment, the first industrial control device may include at least one row of slots, where each row of slots may include at least one network interface.
In some embodiments, obtaining a slot image of a first industrial control device, where the first industrial control device includes at least a first network interface includes: acquiring enabling information of a first network interface; and under the condition that the first network interface is enabled, obtaining a slot position image of first industrial control equipment, wherein the first industrial control equipment comprises at least a first network interface.
Because the network modules used by each industrial control device are not necessarily the same, when each network interface of the industrial control device is enabled, naming may be performed according to a network interface naming mode corresponding to another device performing network communication through the network interface.
In this embodiment, by obtaining the enabling information of the first network interface, and naming the preset rule through the slot position image of the first industrial control device when the first network interface is enabled, it is ensured that the interface names generated when the first network interface communicates with different devices are consistent, the problems of slow positioning and identification of the network interface when the industrial control device performs network communication are avoided, and the operation and maintenance difficulty of the network interface of the industrial control device is reduced.
Step S102, slot position images of first industrial control equipment are matched in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment.
In some embodiments, after matching the slot image of the first industrial control device in the preset feature library, the method further includes: and under the condition that the slot position image of the first industrial control equipment is matched in the preset feature library, acquiring an interface name corresponding to the first network interface from the preset feature library.
In this embodiment, the preset feature library may include slot images of a plurality of types of industrial control devices, where the number of rows and the number of slots of the industrial control devices in the preset feature library may be inconsistent, and the arrangement and the number of network interfaces in each slot may also be inconsistent. Through the steps, the slot position image of the first industrial control equipment is matched in the preset feature library, the slot position image of the industrial control equipment, which is consistent with the slot position line number and the quantity of the first industrial control equipment and the arrangement and quantity of the network interfaces in each slot position, is searched, and the interface name of the first network interface of the first industrial control equipment can be directly obtained according to the interface name corresponding to the first network interface in the industrial control equipment, so that the network interfaces are prevented from being named repeatedly, and the network interface positioning and identifying efficiency during network communication of the industrial control equipment is improved.
Step S103, naming the first network interface in the first industrial control device according to a preset rule under the condition that the slot position image of the first industrial control device is not matched in the preset feature library, and obtaining the interface name of the first network interface.
In some embodiments, when the slot position image of the first industrial control device is not matched in the preset feature library, naming a first network interface in the first industrial control device according to a preset rule, and obtaining an interface name of the first network interface includes: under the condition that a slot position image of first industrial control equipment is not matched in a preset feature library, determining first position information of a first slot position in the first industrial control equipment along a first direction according to the slot position image of the first industrial control equipment, wherein the first industrial control equipment at least comprises the first slot position which at least comprises a first network interface, and determining second position information of the first network interface on the first slot position according to the slot position image of the first industrial control equipment; sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of a first network interface according to first position information; sequencing all network interfaces in the first slot position along a first direction and/or a second direction, and determining a first interface number of the first network interface according to the second position information, wherein the first direction is vertical to the second direction; and combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface.
In some embodiments, sequencing all slots in the industrial control device in the first direction, and determining the first slot number of the first network interface according to the first position information includes: determining the number of the slot position lines of the first industrial control equipment according to the slot position image of the first industrial control equipment; and under the condition that the number of the slot positions of the first industrial control equipment is 1, sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information.
Fig. 2 is a slot position image of an industrial control device of a single row of slot positions according to an embodiment of the present application, and as shown in fig. 2, in this embodiment, a first direction may be a horizontal direction from left to right, a second direction may be a vertical direction from top to bottom, a first industrial control device has three slot positions in total, and taking the first network interface as an example, where the first network interface is an a network interface, and the first slot position is a first slot position on the first industrial control device from left to right, a first slot position number of the first network interface is set to S1; the first slot position includes eight network interfaces, the first network interfaces are sequenced from left to right and from top to bottom, the number of the first interface of the first network interface is set as P8 when the number of the first interface is 8 of all the network interfaces in the first slot position, and at this time, the S1 and the P8 are combined to obtain an interface name S1P8 of the first network interface.
Taking the first network interface as a B network interface as an example, if the first slot position is a third slot position on the first industrial control device from left to right, setting the first slot position number of the first network interface as S3; the first slot position comprises four network interfaces, the first network interfaces are sequenced from left to right to be the 2 nd network interface of all the network interfaces in the first slot position, the first interface number of the first network interface is set to be P2, and at the moment, S3 and P2 are combined to obtain the interface name S3P2 of the first network interface
In other embodiments, the first network interface may also be named PXSX, and the combination order of the first interface number and the first slot number may not be limited. The first direction may be a horizontal direction from right to left, and the second direction may be a vertical direction from bottom to top.
In some of these embodiments, the method further comprises: under the condition that the number of the slot position lines of the first industrial control equipment is more than 1, sequencing all slot positions in the industrial control equipment along a second direction, and determining third position information of the first slot position on the industrial control equipment along the second direction according to a slot position image of the first industrial control equipment; and determining a second slot number of the first network interface according to the third position information.
In some embodiments, combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface comprises: and combining the first slot position number, the second slot position number and the first interface number to obtain the interface name of the first network interface.
Fig. 3 is a slot image of an industrial control device with multiple rows of slots according to an embodiment of the present disclosure, as shown in fig. 3, in this embodiment, a first direction may be a horizontal direction from left to right, a second direction may be a vertical direction from top to bottom, a first industrial control device includes two rows of slots from top to bottom, each row of slots includes three slots, where a third slot from left to right of the first row of slots is not enabled, and taking the first network interface as an example, the first slot is a C network interface, and the first slot is located in the first row of slots of the first industrial control device from top to bottom, and then a second slot number of the first network interface is set to L1; if the first slot position is a first slot position in the first row of slot positions of the first industrial control device from left to right, setting the first slot position number of the first network interface as S1; the first slot position comprises eight network interfaces, the first network interfaces are sequenced from left to right and from top to bottom, the number of the first interface of the first network interface is set to be P3 if the number of the first interface is 3 of all the network interfaces in the first slot position, and the interface name L1S1P3 of the first network interface can be obtained by combining L1, S1 and P3.
In other embodiments, the interface name of the first network interface may also be L1P3S1, S1P3L1, and the like, and the combination order of the first interface number, the first slot number, and the second slot number is not limited.
And step S104, storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
In this embodiment, under the condition that the slot position image of the first industrial control device is not matched in the preset feature library, the slot position image of the first industrial control device and the interface name corresponding to the first network interface may be stored in the preset feature library, and through this step, when naming the network interfaces of the industrial control devices in which the slot position arrangement, the number, and the network interface arrangement of the first industrial control device and the number are consistent next time, the slot position image of the first industrial control device and the interface name corresponding to the network interface may be directly called, thereby reducing the operation of naming the network interface, and improving the efficiency of identifying and positioning the network interface when the industrial control device performs network communication.
At present, network modules used by each industrial control device are not necessarily the same, so that when each network interface of the industrial control device is started, naming may be performed according to a network interface naming mode corresponding to another device performing network communication through the network interface, and naming of the network interface is irregular, which directly causes confusion of naming of the network interface; meanwhile, because the interface names generated when the same network interface communicates with different devices are not consistent, the interface name of the network interface needs to be generated again when the industrial control device performs network communication each time, which causes slow positioning and identification of the network interface when the industrial control device performs network communication, and increases the difficulty in operation and maintenance of the industrial control device.
Through the steps S101 to S104, the present application searches for a slot position image of the industrial control device that is consistent with the number of slot position lines and the number of network interfaces in each slot position and the number of slot position lines of the first industrial control device by matching the slot position image of the first industrial control device in the preset feature library, and can directly obtain an interface name of the first network interface of the first industrial control device according to the interface name corresponding to the first network interface in the industrial control device; under the condition that a slot position image of the first industrial control equipment is not matched in the preset feature library, the first network interface in the first industrial control equipment can be named according to a preset rule, the consistency of interface names generated when the first network interface is communicated with different equipment is ensured, the problem that the network interface is slowly positioned and identified when the industrial control equipment is in network communication is avoided, the operation and maintenance difficulty of the network interface of the industrial control equipment is reduced, the problem that the network interface is difficult to position and identify when the industrial control equipment is in network communication in the related technology is solved, and the technical effects of improving the positioning and identification efficiency of the network interface are realized.
The present embodiment further provides a network interface management apparatus for an industrial control device, where the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details of which have been already described are omitted. Although the means described in the embodiments below are preferably implemented in software, an implementation in hardware, or a combination of software and hardware is also possible and contemplated.
Fig. 4 is a block diagram of a network interface management apparatus of an industrial control device according to an embodiment of the present application, and as shown in fig. 4, the apparatus includes: an obtaining module 40, configured to obtain a slot position image of a first industrial control device, where the first industrial control device includes at least a first network interface; a matching module 41, configured to match a slot image of a first industrial control device in a preset feature library, where the preset feature library includes slot images of multiple industrial control devices and an interface name corresponding to each network interface in each industrial control device; the naming module 42 is configured to name a first network interface in the first industrial control device according to a preset rule under the condition that the slot position image of the first industrial control device is not matched in the preset feature library, so as to obtain an interface name of the first network interface; and the storage module 43 is configured to store the slot position image of the first industrial control device and the interface name corresponding to the first network interface into the preset feature library.
In one embodiment, the naming module 42 is further configured to obtain the interface name corresponding to the first network interface from the preset feature library if the slot image of the first industrial control device is matched in the preset feature library.
In one embodiment, the naming module 42 is further configured to, in a case that the slot image of the first industrial control device is not matched in the preset feature library, determine first location information of a first slot in the first industrial control device in the first direction of the first industrial control device according to the slot image of the first industrial control device, where the first industrial control device includes at least the first slot, the first slot includes at least a first network interface, and determine second location information of the first network interface in the first slot according to the slot image of the first industrial control device; sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of a first network interface according to first position information; sequencing all network interfaces in the first slot position along a first direction and/or a second direction, and determining a second interface number of the first network interface according to second position information, wherein the first direction is vertical to the second direction; and combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface.
In one embodiment, the naming module 42 is further configured to determine the number of slot rows of the first industrial control device from the slot image of the first industrial control device; and under the condition that the number of the slot positions of the first industrial control equipment is 1, sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information.
In one embodiment, the naming module 42 is further configured to sort all the slots in the industrial control device in the second direction if the number of the slot rows of the first industrial control device is greater than 1, and determine third position information of the first slot in the second direction of the industrial control device according to the slot image of the first industrial control device; and determining a second slot number of the first network interface according to the third position information.
In one embodiment, the naming module 42 is further configured to combine the first slot number, the second slot number, and the first interface number to obtain the interface name of the first network interface.
In one embodiment, the obtaining module 40 is further configured to obtain enabling information of the first network interface; and under the condition that the first network interface is enabled, obtaining a slot position image of first industrial control equipment, wherein the first industrial control equipment comprises at least a first network interface.
The above modules may be functional modules or program modules, and may be implemented by software or hardware. For a module implemented by hardware, the above modules may be located in the same processor; or the modules may be located in different processors in any combination.
The present embodiment also provides an electronic device comprising a memory 504 and a processor 502, wherein the memory 504 has a computer program stored therein, and the processor 502 is configured to execute the computer program to perform the steps of any of the above method embodiments.
Specifically, the processor 502 may include a Central Processing Unit (CPU), or A Specific Integrated Circuit (ASIC), or may be configured to implement one or more Integrated circuits of the embodiments of the present Application.
The processor 502 reads and executes the computer program instructions stored in the memory 504 to implement the network interface management method of any of the industrial control devices in the above embodiments.
Optionally, the electronic apparatus may further include a transmission device 506 and an input/output device 508, wherein the transmission device 506 is connected to the processor 502, and the input/output device 508 is connected to the processor 502.
Optionally, in this embodiment, the processor 502 may be configured to execute the following steps by a computer program:
s1, a slot position image of first industrial control equipment is obtained, wherein the first industrial control equipment comprises at least a first network interface.
And S2, matching slot position images of the first industrial control equipment in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment.
And S3, naming the first network interface in the first industrial control equipment according to a preset rule under the condition that the slot position image of the first industrial control equipment is not matched in the preset feature library, and obtaining the interface name of the first network interface.
And S4, storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
It should be noted that, for specific examples in this embodiment, reference may be made to examples described in the foregoing embodiments and optional implementations, and details of this embodiment are not described herein again.
In addition, with reference to the network interface management method of the industrial control device in the foregoing embodiment, the embodiment of the present application may be implemented by providing a storage medium. The storage medium having stored thereon a computer program; when being executed by a processor, the computer program realizes the network interface management method of the industrial control equipment in any one of the above embodiments.
It should be understood by those skilled in the art that various features of the above embodiments can be combined arbitrarily, and for the sake of brevity, all possible combinations of the features in the above embodiments are not described, but should be considered as within the scope of the present disclosure as long as there is no contradiction between the combinations of the features.
The above examples are merely illustrative of several embodiments of the present application, and the description is more specific and detailed, but not to be construed as limiting the scope of the present application. It should be noted that, for a person skilled in the art, several variations and modifications can be made without departing from the concept of the present application, which falls within the scope of protection of the present application. Therefore, the protection scope of the present application should be subject to the appended claims.
Claims (10)
1. A network interface management method of industrial control equipment is characterized by comprising the following steps:
the method comprises the steps of obtaining a slot position image of first industrial control equipment, wherein the first industrial control equipment comprises at least a first network interface;
matching slot position images of the first industrial control equipment in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment;
naming a first network interface in the first industrial control equipment according to a preset rule under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library, and obtaining an interface name of the first network interface;
and storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
2. The method for managing the network interface of the industrial control equipment according to claim 1, wherein after the slot image of the first industrial control equipment is matched in the preset feature library, the method further comprises:
and under the condition that the slot position image of the first industrial control equipment is matched in a preset feature library, acquiring an interface name corresponding to the first network interface from the preset feature library.
3. The method according to claim 1, wherein naming a first network interface in the first industrial control device according to a preset rule when the slot image of the first industrial control device is not matched in a preset feature library, and obtaining an interface name of the first network interface comprises:
under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library, determining first position information of a first slot position in the first industrial control equipment in a first direction of the first industrial control equipment according to the slot position image of the first industrial control equipment, wherein the first industrial control equipment at least comprises the first slot position which at least comprises a first network interface, and determining second position information of the first network interface on the first slot position according to the slot position image of the first industrial control equipment;
sequencing all slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information;
sequencing all network interfaces in the first slot position along a first direction and/or a second direction, and determining a first interface number of the first network interface according to the second position information, wherein the first direction is vertical to the second direction;
and combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface.
4. The method according to claim 3, wherein the step of sorting all slots in the industrial control device in a first direction, and the step of determining the first slot number of the first network interface according to the first position information includes:
determining the number of slot position lines of the first industrial control equipment according to the slot position image of the first industrial control equipment;
and under the condition that the number of the slot positions of the first industrial control equipment is 1, sequencing all the slot positions in the industrial control equipment along a first direction, and determining a first slot position number of the first network interface according to the first position information.
5. The method for managing the network interface of the industrial control equipment according to claim 4, further comprising:
when the number of the slot position lines of the first industrial control equipment is larger than 1, sequencing all slot positions in the industrial control equipment along a second direction, and determining third position information of the first slot position on the industrial control equipment along the second direction according to a slot position image of the first industrial control equipment;
and determining a second slot number of the first network interface according to the third position information.
6. The method for managing the network interfaces of the industrial control equipment according to claim 5, wherein the combining at least the first slot number of the first network interface and the first interface number of the first network interface to obtain the interface name of the first network interface comprises:
and combining the first slot position number, the second slot position number and the first interface number to obtain the interface name of the first network interface.
7. The industrial control device network interface management method according to any one of claims 1 to 6, wherein obtaining a slot image of a first industrial control device, wherein the first industrial control device including at least a first network interface comprises:
acquiring enabling information of a first network interface;
and acquiring a slot position image of first industrial control equipment under the condition that the first network interface is enabled, wherein the first industrial control equipment comprises at least a first network interface.
8. A network interface management device of industrial control equipment is characterized by comprising:
the system comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring a slot position image of first industrial control equipment, and the first industrial control equipment comprises at least a first network interface;
the matching module is used for matching the slot position images of the first industrial control equipment in a preset feature library, wherein the preset feature library comprises slot position images of a plurality of industrial control equipment and interface names corresponding to each network interface in each industrial control equipment;
the naming module is used for naming a first network interface in the first industrial control equipment according to a preset rule under the condition that a slot position image of the first industrial control equipment is not matched in a preset feature library to obtain an interface name of the first network interface;
and the storage module is used for storing the slot position image of the first industrial control equipment and the interface name corresponding to the first network interface into a preset feature library.
9. An electronic device comprising a memory and a processor, wherein the memory stores a computer program, and the processor is configured to execute the computer program to perform the network interface management method of the industrial control equipment according to any one of claims 1 to 7.
10. A storage medium, wherein the storage medium stores a computer program, and the computer program is configured to execute the network interface management method of the industrial control device according to any one of claims 1 to 7 when the computer program runs.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782248.3A CN112003960B (en) | 2020-08-06 | 2020-08-06 | Network interface management method and device of industrial control equipment and electronic device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202010782248.3A CN112003960B (en) | 2020-08-06 | 2020-08-06 | Network interface management method and device of industrial control equipment and electronic device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN112003960A CN112003960A (en) | 2020-11-27 |
CN112003960B true CN112003960B (en) | 2022-11-15 |
Family
ID=73463443
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202010782248.3A Active CN112003960B (en) | 2020-08-06 | 2020-08-06 | Network interface management method and device of industrial control equipment and electronic device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN112003960B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115001930B (en) * | 2022-05-09 | 2023-05-12 | 武汉烽火技术服务有限公司 | Automatic network element equipment management method and device and readable storage medium |
CN115277630B (en) * | 2022-08-12 | 2024-05-17 | 东软集团股份有限公司 | Method, device and equipment for renaming network adapter interface |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108243407A (en) * | 2017-12-21 | 2018-07-03 | 深圳市宏电技术股份有限公司 | A kind of method and terminal device of multiple wireless module device network interface managements |
CN109412830A (en) * | 2018-09-05 | 2019-03-01 | 广州视源电子科技股份有限公司 | Method and device for curing internet card name, computer equipment and storage medium |
CN109918680A (en) * | 2019-03-28 | 2019-06-21 | 腾讯科技(上海)有限公司 | Entity recognition method, device and computer equipment |
US10645020B1 (en) * | 2017-01-30 | 2020-05-05 | Amazon Technologies, Inc. | Virtual networking for compute instances |
CN111327546A (en) * | 2020-02-25 | 2020-06-23 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
-
2020
- 2020-08-06 CN CN202010782248.3A patent/CN112003960B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US10645020B1 (en) * | 2017-01-30 | 2020-05-05 | Amazon Technologies, Inc. | Virtual networking for compute instances |
CN108243407A (en) * | 2017-12-21 | 2018-07-03 | 深圳市宏电技术股份有限公司 | A kind of method and terminal device of multiple wireless module device network interface managements |
CN109412830A (en) * | 2018-09-05 | 2019-03-01 | 广州视源电子科技股份有限公司 | Method and device for curing internet card name, computer equipment and storage medium |
CN109918680A (en) * | 2019-03-28 | 2019-06-21 | 腾讯科技(上海)有限公司 | Entity recognition method, device and computer equipment |
CN111327546A (en) * | 2020-02-25 | 2020-06-23 | 杭州迪普科技股份有限公司 | Message forwarding method and device |
Also Published As
Publication number | Publication date |
---|---|
CN112003960A (en) | 2020-11-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107341115B (en) | Virtual machine memory access method and system and electronic equipment | |
US10455003B2 (en) | Method, server, and system for sharing resource data | |
US7716396B1 (en) | Multi-reader multi-writer circular buffer memory | |
CN112003960B (en) | Network interface management method and device of industrial control equipment and electronic device | |
CN104462225B (en) | The method, apparatus and system of a kind of digital independent | |
CN110134446B (en) | Method for starting PCIE equipment scanning | |
CN108108463B (en) | Synchronous task processing method and device based on time slice scheduling | |
CN116521429B (en) | Asset information reporting method and device, storage medium and electronic equipment | |
CN110427386B (en) | Data processing method, device and computer storage medium | |
CN111324427A (en) | Task scheduling method and device based on DSP | |
CN111262753B (en) | Method, system, terminal and storage medium for automatically configuring number of NUMA nodes | |
CN109254839A (en) | It determines the method in task triggered time, construct the method and system of task timer | |
CN113419973B (en) | Message forwarding method and device | |
CN109901957B (en) | Computing device and method for memory test by using extensible firmware interface | |
CN112527479A (en) | Task execution method and device, computer equipment and storage medium | |
CN110765125B (en) | Method and device for storing data | |
CN114730322A (en) | Data searching system and data searching method | |
CN108733678B (en) | Data searching method, device and related equipment | |
JP2004206369A (en) | Access method and access program to common resource | |
CN111476663B (en) | Data processing method and device, node equipment and storage medium | |
CN114003182B (en) | Instruction interaction method and device, storage equipment and medium | |
CN115081233B (en) | Flow simulation method and electronic equipment | |
US20240370362A1 (en) | Data processing device and associated memory management method | |
CN111274228B (en) | Policy data migration storage method, system, equipment and readable storage medium | |
CN112579481B (en) | Data processing method, data processing device and computing 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 |