CN113836055A - Equipment node configuration method and device and electronic equipment - Google Patents

Equipment node configuration method and device and electronic equipment Download PDF

Info

Publication number
CN113836055A
CN113836055A CN202111119509.4A CN202111119509A CN113836055A CN 113836055 A CN113836055 A CN 113836055A CN 202111119509 A CN202111119509 A CN 202111119509A CN 113836055 A CN113836055 A CN 113836055A
Authority
CN
China
Prior art keywords
node
equipment
physical port
port number
mapping relation
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202111119509.4A
Other languages
Chinese (zh)
Other versions
CN113836055B (en
Inventor
张世综
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Spreadtrum Communications Tianjin Co Ltd
Original Assignee
Spreadtrum Communications Tianjin Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Spreadtrum Communications Tianjin Co Ltd filed Critical Spreadtrum Communications Tianjin Co Ltd
Priority to CN202111119509.4A priority Critical patent/CN113836055B/en
Publication of CN113836055A publication Critical patent/CN113836055A/en
Application granted granted Critical
Publication of CN113836055B publication Critical patent/CN113836055B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/40Bus structure
    • G06F13/4063Device-to-bus coupling
    • G06F13/4068Electrical coupling
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/42Bus transfer protocol, e.g. handshake; Synchronisation
    • G06F13/4282Bus transfer protocol, e.g. handshake; Synchronisation on a serial bus, e.g. I2C bus, SPI bus

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Computer And Data Communications (AREA)

Abstract

The embodiment of the invention relates to the technical field of internet, in particular to a method and a device for configuring equipment nodes and electronic equipment. Firstly, configuring an equipment node for external equipment, wherein the equipment node comprises an equipment node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number; then, storing the established mapping relation between the equipment node and the corresponding node number and physical port number; and then, when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number. The problem of disordered distribution node numbers caused by abnormal environment is solved by configuring and updating the equipment nodes in real time.

Description

Equipment node configuration method and device and electronic equipment
Technical Field
The present invention relates to the field of internet technologies, and in particular, to a method and an apparatus for configuring a device node, and an electronic device.
Background
On a programming language test platform or an automation production line, a host device is usually connected with a plurality of external devices. When the external device is accessed, a node number is sequentially allocated to a physical port number of an access host interface according to an access sequence, for example, a first external device corresponds to a first node number, a second external device corresponds to a second node number, and the host device performs serial port communication with the external device by using the node number. However, when unexpected power failure and restart occurs, the host device allocates a node number to each physical port again after power is restored, and the node number corresponding to the external device again may be inconsistent with the node number before power failure, for example, the first external device corresponds to the second node number, and the second external device corresponds to the first node number, which may affect normal use of the external device.
Disclosure of Invention
The embodiment of the application provides a method and a device for configuring equipment nodes and electronic equipment, and the problem of disordered distribution node numbers caused by abnormal environment is solved by configuring and updating the equipment nodes in real time.
In a first aspect, an embodiment of the present application provides a device node configuration method, where the method is used for installing a host device, and includes: configuring an equipment node for external equipment, wherein the equipment node comprises an equipment node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number; storing the established mapping relation between the equipment node and the corresponding node number and physical port number; and when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number.
In one possible implementation manner, configuring an equipment node for an external device, where the equipment node includes an equipment node name, includes:
when detecting that the external equipment is accessed, displaying an equipment node configuration interface;
and determining the equipment node name established for the external equipment according to the input information of the user on the equipment node configuration interface.
In one possible implementation manner, the determining, according to the input information of the user on the device node configuration interface, a device node name established for the external device includes:
and if the device node name input by the user on the device node configuration interface is detected to be occupied, displaying prompt information of failed addition of the device node on the device node configuration interface.
In one possible implementation manner, when it is detected that a node number corresponding to any physical port number is changed, updating the changed node number to a corresponding device node according to the stored mapping relationship includes:
when the host equipment is powered off and recovered, if it is detected that a second node number reallocated by a first physical port number is inconsistent with a corresponding first node number in a stored mapping relation, determining a first equipment node corresponding to the first physical port number from the stored mapping relation, modifying the first node number in the first equipment node into a second node number, and establishing the mapping relation among the first equipment node, the second node number and the first physical port.
In one possible implementation manner, before detecting whether a node number corresponding to any physical port number is changed when the host device is powered off and recovered, the method further includes:
when any external equipment is detected to be pulled out, determining a second physical port number corresponding to the pulled-out external equipment;
and deleting the equipment node and the node number corresponding to the second physical port number from the stored mapping relation.
In one possible implementation manner, the method further includes:
and sending the stored mapping relation of each equipment node to a remote database, wherein the remote database supports any host equipment in a preset local area network to access the mapping relation stored in the remote data and supports any host equipment in the preset local area network to add a new equipment node.
In a second aspect, an embodiment of the present application provides an apparatus for configuring a device node, where the apparatus is used for a host device, and includes: the device node comprises a configuration module and a control module, wherein the configuration module is used for configuring a device node for external equipment, and the device node comprises a device node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number; the storage module is used for storing the established mapping relation between the equipment node and the corresponding node number and physical port number; and the updating module is used for updating the changed node number to the corresponding equipment node according to the stored mapping relation when detecting that the node number corresponding to any physical port number is changed, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number.
In one possible implementation manner, the apparatus further includes:
the detection module is used for displaying a device node configuration interface when detecting that the external device is accessed;
and the determining module is used for determining the equipment node name established for the external equipment according to the input information of the user on the equipment node configuration interface.
In one possible implementation manner, the detection module is further configured to display prompt information of device node addition failure on the device node configuration interface if it is detected that the device node name input by the user on the device node configuration interface is occupied.
In one possible implementation manner, the update module is specifically configured to, when the host device is powered off and recovers, determine, from the stored mapping relationship, a first device node corresponding to the first physical port number if it is detected that a second node number reallocated by the first physical port number is not consistent with a first node number corresponding to the stored mapping relationship, modify a first node number in the first device node into a second node number, and establish the mapping relationship between the first device node, the second node number, and the first physical port.
In one possible implementation manner, the update module is specifically configured to determine a second physical port number corresponding to the pulled-out external device when detecting that any external device is pulled out; and deleting the equipment node and the node number corresponding to the second physical port number from the stored mapping relation.
In one possible implementation manner, the apparatus further includes:
and the sending module is used for sending the stored mapping relation of each equipment node to a remote database.
In a third aspect, an embodiment of the present application provides an electronic device, including: at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, the processor calling the program instructions to be able to perform the method provided by the first aspect.
In a fourth aspect, the present specification provides a non-transitory computer-readable storage medium, wherein the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions cause the computer to execute the method provided in the first aspect.
In the above technical solution, first, configuring an equipment node for an external device, where the equipment node includes an equipment node name, a physical port number of an interface connected to the external device, and a node number allocated to the physical port number; then, storing the established mapping relation between the equipment node and the corresponding node number and physical port number; and then, when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number. The problem of disordered distribution node numbers caused by abnormal environment is solved by configuring and updating the equipment nodes in real time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and those skilled in the art can also obtain other drawings according to the drawings without creative efforts.
Fig. 1 is a flowchart of a device node configuration method according to an embodiment of the present invention;
fig. 2 is a mapping relationship diagram of a device node according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an apparatus node configuration device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of another device node configuration apparatus according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present 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.
Fig. 1 is a flowchart of a device node configuration method according to an embodiment of the present invention. The method is applied to the host device. The host device has a plurality of host interfaces, each of which supports access to an external device. Based on the structural design of the host device, the device node configuration method executed by the host device, as shown in fig. 1, may include:
step 101, configuring an equipment node for an external device, where the equipment node includes an equipment node name, a physical port number of an interface connected to the external device, and a node number allocated to the physical port number.
In the embodiment of the invention, when detecting that a new external device is connected to the host interface, the host device can acquire the physical port number of the host interface and allocate a node number to the physical port number. Meanwhile, the front end of the host equipment can display an equipment node configuration interface, and a user inputs information of the access equipment in the equipment node configuration interface to determine an equipment node name established for the external equipment. The device information may be a name or a number of the external device, and the user can distinguish each external device accessed to the host device according to the device node name.
In one implementation, before a new device node is established, a host device detects whether a device node name input by a user on a device node configuration interface is occupied, and if the device node name is occupied, a prompt message indicating that the device node is failed to add is displayed on the device node configuration interface. And if the equipment node name is not occupied, the equipment node is added successfully.
And 102, storing the established mapping relation between the equipment node and the corresponding node number and physical port number.
Specifically, each host interface has a unique physical port number, and when a new external device is connected to the host interface, the host device assigns a node number to the physical port number of the interface, where the node number and the physical port number have a mapping relationship. When the host equipment accesses the external equipment, the corresponding node number is accessed first, and then the physical port number is found through the node number, so that the external equipment is accessed.
In the embodiment of the invention, when an external device is connected with a host interface, the host device configures an equipment node for the host interface on the basis of the original operation, and the equipment node has a mapping relation with a physical port number of the external interface and a corresponding node number and stores the mapping relation. As shown in fig. 2, through the mapping relationship, when the host device accesses the external device, the device node is accessed first, then the corresponding node number is found, and then the corresponding physical port number is found through the node number, so as to access the external device.
And 103, when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number.
In a possible implementation manner, after a power-off restart of a host device occurs, if it is detected that a second node number reallocated by a first physical port number is not consistent with a corresponding first node number in a stored mapping relationship, a first device node corresponding to the first physical port number is determined from the stored mapping relationship, a first node number in the first device node is modified into a second node number, and a mapping relationship among the first device node, the second node number, and the first physical port is established.
Specifically, when a plurality of external devices access the host device, the system sequentially allocates node numbers to the physical port numbers of the host interface according to the sequence of accessing the external devices to the host interface.
For example, a first external device is first connected to a host device, and the host device detects that the first external device accesses a first host interface, obtains a first physical port number of the first host interface, and allocates a first node number to the first physical port number. And then, the user inputs the equipment information of the first external equipment to establish a first equipment node, and establishes and stores a mapping relation among the first physical port number, the first node number and the first equipment node. And then, the second external equipment is accessed into a second host interface, the host equipment acquires a second physical port number of the second host interface and allocates a second node number to the second physical port number, the user inputs equipment information of the second external equipment to establish a second equipment node, and a mapping relation among the second physical port number, the second node number and the second equipment node is established and stored.
If the host device is powered off and recovers, the correspondence between the node number and the physical port number may be confused. The first external device and the second external device are already connected to the host interface before power restoration, and after power restoration, the host device may first detect that the second external device is connected to the second host interface and obtain a second physical port number of the second host interface. The host device detects the second external device first and sequentially assigns the node numbers according to the sequence of accessing the external device to the host interface, so the host device assigns the first node number to the second physical port number. And then, the host device detects that the first external device is accessed to the first host interface, acquires the first physical port number and allocates a second node number for the first physical port number. At this time, the corresponding relationship between the physical port number and the node number is changed, and what the host device needs to do is to update the corresponding relationship between the node number and the device node according to the mapping relationship between the physical port number and the device node. Before updating, the first physical port number, the second node number and the second equipment node correspond to each other, and the second physical port number, the first node number and the first equipment node correspond to each other. Because the device node stores the mapping relation of the physical port number corresponding to the device node when being established, the host device can establish the connection between the first device node and the second node number corresponding to the first physical port number according to the mapping relation between the first device node and the first physical port number; and establishing a connection between the second equipment node and the first node number corresponding to the second physical port number according to the mapping relation between the second equipment node and the second physical port number. After updating, the first equipment node, the second node number and the first physical port number correspond to each other, and the second equipment node, the first node number and the second physical port number correspond to each other. After updating, the process of the host device accessing the first external device is from the first device node to the second node number, and then from the second node number to the first physical port number. Inside the host equipment, the name of the equipment node is user-defined, and the user can know which external equipment the user accesses according to the name of the equipment node. Even if the corresponding relationship between the physical port number and the node number is changed, the user can still access the first external device through the first device node and access the second external device through the second device node.
In the embodiment of the invention, firstly, an equipment node is configured for external equipment, and the equipment node comprises an equipment node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number; then, storing the established mapping relation between the equipment node and the corresponding node number and physical port number; and then, when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number. The problem of disordered distribution node numbers caused by abnormal environment is solved by configuring and updating the equipment nodes in real time.
Fig. 3 is a schematic structural diagram of an apparatus node configuration device according to an embodiment of the present invention. The device node configuration apparatus in the embodiment of the present invention may be used as a device node configuration device to implement the device node configuration method provided in the embodiment of the present application. As shown in fig. 3, the device node configuring apparatus may include: a configuration module 31, a storage module 32 and an update module 33.
The configuration module 31 is configured to configure an equipment node for an external device, where the equipment node includes an equipment node name, a physical port number of an interface connected to the external device, and a node number allocated to the physical port number.
And the storage module 32 is configured to store the established mapping relationship between the device node and the corresponding node number and physical port number.
And an updating module 33, configured to update the changed node number to a corresponding device node according to the stored mapping relationship when detecting that the node number corresponding to any physical port number is changed, and reestablish the mapping relationship among the corresponding device node, the node number, and the physical port number.
In specific implementation, when an external device accesses the host interface, a user inputs device information, and the configuration module 31 configures a device node according to the device information. Meanwhile, the storage module 32 stores the mapping relationship between the device node and the corresponding node number and physical port number. Then, the updating module 33 monitors the device nodes in real time, and when detecting that the node number corresponding to any physical port number changes, updates the changed node number to the corresponding device node according to the stored mapping relationship, and reestablishes the mapping relationship among the corresponding device node, the node number, and the physical port number. Therefore, the problem of chaos of distribution equipment nodes caused by environmental abnormity is avoided.
Fig. 4 is a schematic structural diagram of another device node configuration apparatus according to an embodiment of the present invention. Compared with the device node configuration apparatus shown in fig. 3, the difference is that the device node configuration apparatus shown in fig. 4 may further include: a detection module 35 and a synchronization module 34.
And the detection module 35 is configured to display the device node configuration interface when detecting that the external device is accessed.
The detecting module 35 is further configured to display a prompt message indicating that the device node is failed to be added on the device node configuration interface if it is detected that the device node name input on the device node configuration interface by the user is occupied.
A sending module 34, configured to send the stored mapping relationship of each device node to a remote database.
Fig. 5 is a schematic structural diagram of an electronic device according to an embodiment of the present invention. As shown in fig. 5, the electronic device may include at least one processor; and at least one memory communicatively coupled to the processor, wherein: the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the device node configuration method provided by the embodiment of the application.
The electronic device may be a serial device node fixing device, and the embodiment does not limit the specific form of the electronic device.
FIG. 5 illustrates a block diagram of an exemplary electronic device suitable for use in implementing embodiments of the present application. The electronic device shown in fig. 5 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiments of the present application.
As shown in fig. 5, the electronic device is in the form of a general purpose computing device. Components of the electronic device may include, but are not limited to: one or more processors 510, a memory 530, and a communication bus 540 that couples various system components including the memory 530 and the processing unit 510.
Communication bus 540 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Electronic devices typically include a variety of computer system readable media. Such media may be any available media that is accessible by the electronic device and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 530 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) and/or cache Memory. The electronic device may further include other removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in FIG. 5, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to the communication bus 540 by one or more data media interfaces. Memory 530 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility having a set (at least one) of program modules, including but not limited to an operating system, one or more application programs, other program modules, and program data, may be stored in memory 530, each of which examples or some combination may include an implementation of a network environment. The program modules generally perform the functions and/or methodologies of the embodiments described herein.
The electronic device may also communicate with one or more external devices (e.g., keyboard, pointing device, display, etc.), one or more devices that enable a user to interact with the electronic device, and/or any devices (e.g., network card, modem, etc.) that enable the electronic device to communicate with one or more other computing devices. Such communication may occur via communications interface 520. Furthermore, the electronic device may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via a Network adapter (not shown in FIG. 5) that may communicate with other modules of the electronic device via communication bus 540. It should be appreciated that although not shown in FIG. 5, other hardware and/or software modules may be used in conjunction with the electronic device, including but not limited to: microcode, device drivers, Redundant processing units, external disk drive Arrays, disk array (RAID) systems, tape Drives, and data backup storage systems, among others.
The processor 510 executes various functional applications and data processing by executing programs stored in the memory 530, for example, implementing the device node configuration method provided in the embodiment of the present application.
The embodiment of the present application further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions enable the computer to execute the device node configuration method provided in the embodiment of the present application.
The non-transitory computer readable storage medium described above may take any combination of one or more computer readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a Read Only Memory (ROM), an Erasable Programmable Read Only Memory (EPROM), a flash Memory, an optical fiber, a portable compact disc Read Only Memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
It should be noted that the terminal according to the embodiments of the present application may include, but is not limited to, a Personal Computer (Personal Computer; hereinafter, referred to as PC), a Personal Digital Assistant (Personal Digital Assistant; hereinafter, referred to as PDA), a wireless handheld device, a Tablet Computer (Tablet Computer), a mobile phone, an MP3 player, an MP4 player, and the like.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions in actual implementation, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. A device node configuration method, for a host device, comprising:
configuring an equipment node for external equipment, wherein the equipment node comprises an equipment node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number;
storing the established mapping relation between the equipment node and the corresponding node number and physical port number;
and when detecting that the node number corresponding to any physical port number is changed, updating the changed node number to the corresponding equipment node according to the stored mapping relation, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number.
2. The method of claim 1, wherein configuring a device node for an external device, the device node including a device node name, comprises:
when detecting that the external equipment is accessed, displaying an equipment node configuration interface;
and determining the equipment node name established for the external equipment according to the input information of the user on the equipment node configuration interface.
3. The method according to claim 2, wherein determining the device node name established for the external device according to the input information of the user on the device node configuration interface comprises:
and if the device node name input by the user on the device node configuration interface is detected to be occupied, displaying prompt information of failed addition of the device node on the device node configuration interface.
4. The method according to claim 1, wherein when detecting that a node number corresponding to any physical port number changes, updating the changed node number to a corresponding device node according to the stored mapping relationship, includes:
when the host equipment is powered off and recovered, if it is detected that a second node number reallocated by a first physical port number is inconsistent with a corresponding first node number in a stored mapping relation, determining a first equipment node corresponding to the first physical port number from the stored mapping relation, modifying the first node number in the first equipment node into a second node number, and establishing the mapping relation among the first equipment node, the second node number and the first physical port.
5. The method according to claim 4, wherein when the host device is powered off and recovered, before detecting whether the node number corresponding to any physical port number is changed, the method further comprises:
when any external equipment is detected to be pulled out, determining a second physical port number corresponding to the pulled-out external equipment;
and deleting the equipment node and the node number corresponding to the second physical port number from the stored mapping relation.
6. The method of claim 1, further comprising:
and sending the stored mapping relation of each equipment node to a remote database, wherein the remote database supports any host equipment in a preset local area network to access the mapping relation stored in the remote data and supports any host equipment in the preset local area network to add a new equipment node.
7. An apparatus node configuration device, the apparatus being deployed in a host device, comprising:
the device node comprises a configuration module and a control module, wherein the configuration module is used for configuring a device node for external equipment, and the device node comprises a device node name, a physical port number of an interface connected with the external equipment and a node number allocated to the physical port number;
the storage module is used for storing the established mapping relation between the equipment node and the corresponding node number and physical port number;
and the updating module is used for updating the changed node number to the corresponding equipment node according to the stored mapping relation when detecting that the node number corresponding to any physical port number is changed, and reestablishing the mapping relation among the corresponding equipment node, the node number and the physical port number.
8. The apparatus of claim 7, further comprising:
the detection module is used for displaying a device node configuration interface when detecting that the external device is accessed;
and the determining module is used for determining the equipment node name established for the external equipment according to the input information of the user on the equipment node configuration interface.
9. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1 to 6.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1 to 6.
CN202111119509.4A 2021-09-24 2021-09-24 Equipment node configuration method and device and electronic equipment Active CN113836055B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111119509.4A CN113836055B (en) 2021-09-24 2021-09-24 Equipment node configuration method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111119509.4A CN113836055B (en) 2021-09-24 2021-09-24 Equipment node configuration method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113836055A true CN113836055A (en) 2021-12-24
CN113836055B CN113836055B (en) 2023-10-17

Family

ID=78969692

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111119509.4A Active CN113836055B (en) 2021-09-24 2021-09-24 Equipment node configuration method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN113836055B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945015A (en) * 2014-04-09 2014-07-23 上海华为技术有限公司 Node logic ID distribution device and method and communication system
CN111522820A (en) * 2020-04-26 2020-08-11 北京启迪区块链科技发展有限公司 Data storage structure, storage retrieval method, system, device and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103945015A (en) * 2014-04-09 2014-07-23 上海华为技术有限公司 Node logic ID distribution device and method and communication system
CN111522820A (en) * 2020-04-26 2020-08-11 北京启迪区块链科技发展有限公司 Data storage structure, storage retrieval method, system, device and storage medium

Also Published As

Publication number Publication date
CN113836055B (en) 2023-10-17

Similar Documents

Publication Publication Date Title
CN109471626B (en) Page logic structure, page generation method, page data processing method and device
US7895376B2 (en) Hardware configuration information system, method, and computer program product
CN111614490A (en) Management system and method for managed container cluster based on top-level container cluster
CN112099836A (en) Configuration file updating method, configuration server, version control server and system
CN108121560A (en) Difference bag upgrade method, device, terminal and computer readable storage medium
CN114489512A (en) Method and device for limiting container capacity, electronic equipment and storage medium
CN111290797A (en) Page switching method, client, server, electronic equipment and system
CN110489158B (en) Method, device, medium and electronic equipment for optimizing code hosting platform
CN113377448A (en) Service function execution method and electronic equipment
CN107133169B (en) Application test packet generation method and generation device
CN116450184B (en) System upgrading method and device, electronic equipment and storage medium
CN113468067A (en) Application program debugging method and device, electronic equipment and computer readable medium
CN110674050B (en) Memory out-of-range detection method and device, electronic equipment and computer storage medium
CN106775835B (en) Method, server and terminal for acquiring upgrade file
CN112363815A (en) Redis cluster processing method and device, electronic equipment and computer readable storage medium
CN113836055A (en) Equipment node configuration method and device and electronic equipment
CN113950034B (en) Bluetooth behavior simulation method, device and equipment
CN113110846A (en) Method and device for acquiring environment variable
CN113961370A (en) Method, device, server and storage medium for communication between BMC and BIOS
CN113868184A (en) Configuration method and system of master-slave architecture cache-based configuration center
CN113747423A (en) Cloud mobile phone state synchronization method, device, equipment, storage medium and program product
CN113296878A (en) Container processing method and device, electronic equipment and system
CN113438419B (en) Camera starting method and device and electronic equipment
CN112732568B (en) System log acquisition method and device, storage medium and terminal
CN113220576B (en) Management method, device, equipment and storage medium of test environment

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