Disclosure of Invention
In view of the above problems, the present invention provides a device adaptive access method, apparatus and master device that overcome the above problems or at least partially solve the above problems.
In one aspect of the present invention, a device adaptive access method is provided, where the method includes:
identifying the device type of a first external device which is accessed currently;
creating an interface type instance corresponding to the equipment type and an equipment information instance associated with the interface type instance, and storing equipment information parameters reported by the first external equipment into a preset database through the interface type instance and the equipment information instance;
acquiring a preset interface path node corresponding to the equipment type from a network management data model, wherein the interface path node and a parameter member in the database for storing the equipment information parameters have a mapping relation;
acquiring parameter values of each parameter member in the equipment information parameters from the database according to the acquired interface path nodes and the mapping relation corresponding to the interface path nodes;
and forming equipment information data by the interface path node and the parameter values of the parameter members corresponding to the interface path node, and reporting the obtained equipment information data to the network manager.
Wherein, after reporting the obtained device information data to the network manager, the method further comprises:
and the network manager analyzes the equipment information data and carries out topology display on the parameter values of all parameter members in the equipment information parameters according to the interface path nodes.
Wherein, before the identifying the device type of the currently accessed first external device, the method further comprises:
configuring a corresponding interface type according to the type of the external equipment to be accessed;
statically adding an interface data type of the interface type in a database, wherein an interface ID of the interface type is used as a primary key keyword of the interface data type;
adding the equipment information data type of the external equipment to be accessed into a database, and taking the interface ID of the interface type as a first foreign key keyword of the equipment information data type;
interface path nodes of the interface data type and the equipment information data type under the master control equipment are statically added in a network management data model, and a corresponding relation exists between the interface path nodes and the interface ID of the corresponding interface type;
and establishing a mapping relation between the interface path node and a parameter member used for storing the equipment information parameter in the database according to the interface ID of the interface type.
When the external device to be accessed is accessed with the cascade device, the method further comprises:
and taking the cascade stage number of the cascade equipment as a second foreign key keyword of the equipment information data type.
Wherein the method further comprises:
if the device type of the first external device is accessed for the first time, the function parameters of the first external device are expanded to realize the access support of the device of the type.
When it is monitored that a first external device which is accessed currently is switched to a second external device, the method further comprises the following steps:
identifying a device type of the second external device;
if the device type of the second external device is different from the device type of the first external device, deleting an interface type instance and a device information instance corresponding to the device type of the first external device in the database, and informing a network manager to delete information corresponding to the device type of the first external device according to an interface path node in the network management data model;
creating a second interface type instance and a second device information instance corresponding to the device type of the second external device, and storing the device information parameters reported by the second external device into the database through the second interface type instance and the second device information instance;
acquiring a second interface path node corresponding to the device type of a second external device from a network management data model, wherein the second interface path node has a mapping relation with a parameter member in a device information parameter used for storing the report of the second external device in the database;
acquiring parameter values of each parameter member in the equipment information parameters of the second external equipment from the database according to the acquired second interface path node and the mapping relation corresponding to the second interface path node;
and forming second equipment information data by the second interface path node and the parameter values of the corresponding parameter members of the second interface path node, and reporting the obtained second equipment information data to the network manager.
Wherein, after reporting the obtained second device information data to the network manager, the method further comprises:
and the network manager analyzes the second equipment information data and performs topology display on the parameter values of each parameter member in the second equipment information parameters of the second external equipment according to the second interface path node.
Before the creating a second interface type instance and a second device information instance corresponding to the device type of the second external device, the method further includes:
determining whether a second interface type instance corresponding to the device type of the second external device and a second device information instance associated with the second interface type instance exist in a database.
In another aspect of the present invention, an apparatus for device adaptive access is provided, the apparatus comprising:
the type identification unit is suitable for identifying the equipment type of the first external equipment which is accessed currently;
the data processing unit is suitable for creating an interface type instance corresponding to the equipment type and an equipment information instance associated with the interface type instance, and storing the equipment information parameters reported by the first external equipment into a preset database through the interface type instance and the equipment information instance;
a path obtaining unit, adapted to obtain a preset interface path node corresponding to the device type from a network management data model, where the interface path node has a mapping relationship with a parameter member in the database for storing the device information parameters;
the data acquisition unit is suitable for acquiring parameter values of each parameter member in the equipment information parameters from the database according to the acquired interface path nodes and the mapping relation corresponding to the interface path nodes;
and the reporting unit is suitable for forming the interface path node and the parameter values of the parameter members corresponding to the interface path node into equipment information data and reporting the obtained equipment information data to the network manager.
The device further comprises a configuration unit, which is suitable for configuring a corresponding interface type according to the device type of the external device to be accessed before the device type of the currently accessed first external device is identified; statically adding an interface data type of the interface type in a database, wherein an interface ID of the interface type is used as a primary key keyword of the interface data type; adding the equipment information data type of the external equipment to be accessed into a database, and taking the interface ID of the interface type as a first foreign key keyword of the equipment information data type; interface path nodes of the interface data type and the equipment information data type under the master control equipment are statically added in a network management data model, and a corresponding relation exists between the interface path nodes and the interface ID of the corresponding interface type; and establishing a mapping relation between the interface path node and a parameter member used for storing the equipment information parameter in the database according to the interface ID of the interface type.
The type identification unit is further adapted to monitor whether a currently accessed first external device is switched to a second external device, and identify a device type of the second external device when the currently accessed first external device is monitored to be switched to the second external device;
the data processing unit is further adapted to delete an interface type instance and an equipment information instance corresponding to the equipment type of the first external equipment in the database when the equipment type of the second external equipment is different from the equipment type of the first external equipment, and notify the network manager to delete information corresponding to the equipment type of the first external equipment according to an interface path node in the network management data model;
the data processing unit is further adapted to create a second interface type instance and a second device information instance corresponding to the device type of the second external device, and store the device information parameters reported by the second external device in the database through the second interface type instance and the second device information instance;
the path obtaining unit is further adapted to obtain a second interface path node corresponding to the device type of a second external device from a network management data model, where the second interface path node has a mapping relationship with a parameter member in the database for storing the device information parameter reported by the second external device;
the data obtaining unit is further adapted to obtain parameter values of each parameter member in the device information parameters of the second external device from the database according to the obtained second interface path node and the mapping relationship corresponding to the second interface path node;
the reporting unit is further adapted to form second device information data from the second interface path node and the parameter values of the parameter members corresponding to the second interface path node, and report the obtained second device information data to the network manager.
Furthermore, the invention also provides a computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method as described above.
In addition, the present invention also provides a master control device, which includes a memory, a processor, and a computer program stored in the memory and capable of running on the processor, wherein the processor implements the steps of the method when executing the program.
The technical scheme provided in the embodiment of the application has the following technical effects or advantages:
the device self-adaptive access method, the device and the main control device provided by the embodiment of the invention virtualize the interface (such as an optical port or a network port) of the main control device, perform type abstract definition on the interface according to the type of an external device or a product which is accessed as required, perform corresponding configuration on a database and a network management data model, and realize the switching processing of the interface by automatically identifying the type of the accessed device during operation, so that the same interface can be accessed by different types of devices in a software layer. The embodiment of the invention solves the problem that the equipment cannot be used universally due to the non-universal interface in the traditional method, improves the universality and the adaptability of the equipment to the maximum extent, reduces the hardware cost and improves the competitiveness of the product.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Fig. 1 schematically shows a flowchart of a device adaptive access method according to an embodiment of the present invention. Referring to fig. 1, the embodiment of the present invention specifically includes the following steps:
and S11, identifying the device type of the first external device which is accessed currently. Specifically, in practical applications, the device adaptive access apparatus configured in the main control device may obtain the device type of the current access device through a certain manner, such as reading a register or accessing an ip.
In this embodiment, to implement adaptive access of a device, before identifying a device type of a currently accessed first external device, a configuration flow performed in advance is further included, and a specific implementation manner is as follows: and configuring the corresponding interface type according to the type of the external equipment to be accessed. Statically adding an interface data type of the interface type in a database, wherein an interface ID of the interface type is used as a primary key of the interface data type. And adding the equipment information data type of the external equipment to be accessed into a database, and taking the interface ID of the interface type as a first foreign key keyword of the equipment information data type. Further, when the external device to be accessed is accessed with a cascade device, in the embodiment of the present invention, the cascade stage number of the cascade device may be used as the second foreign key keyword of the device information data type. And statically adding interface path nodes of the interface data type and the equipment information data type under the master control equipment in a network management data model, wherein the interface path nodes and the interface IDs of the corresponding interface types have corresponding relations. And establishing a mapping relation between the interface path node and a parameter member used for storing the equipment information parameter in the database according to the interface ID of the interface type.
S12, creating an interface type instance corresponding to the equipment type and an equipment information instance associated with the interface type instance, and storing the equipment information parameters reported by the first external equipment into a preset database through the interface type instance and the equipment information instance.
S13, obtaining a preset interface path node corresponding to the equipment type from a network management data model, wherein the interface path node has a mapping relation with a parameter member in the database for storing the equipment information parameter.
The embodiment of the invention carries out type abstract definition on the type classification of the equipment which is accessed by the hardware interface according to needs, configures the interface type after abstraction in a database and a network management data model (DataModel), and associates the interface type with the equipment type of the corresponding equipment. On the premise that the hardware interface is subjected to type abstraction and a database and a DataModel are correctly configured, a main control device is powered on, then a device self-adaptive access device configured in the main control device automatically identifies the type of an external device accessed through an interface, creates an interface type example corresponding to the type and a device information example of an access device associated with the interface type example, stores device information into the database, and reports the device information to a network manager according to a path configured in the DataModel for topology display and management; for the dynamic switching among the same interface equipment, the self-adaptive software module automatically adapts to, converts and stores the equipment information under the interface and updates the topology display of the network management so as to ensure the real-time accuracy of the equipment information; for the access of external equipment needing to be expanded, corresponding expansion modification is carried out by adding the interface type associated with the equipment type and the code, and the access support to the equipment of the type can be newly added on the basis of the original equipment type.
And S14, acquiring parameter values of each parameter member in the equipment information parameters from the database according to the acquired interface path nodes and the mapping relation corresponding to the interface path nodes.
S15, forming device information data by the interface path node and the parameter values of the parameter members corresponding to the interface path node, and reporting the obtained device information data to the network manager.
In the embodiment of the present invention, after reporting the obtained device information data to the network manager in step S15, the network manager analyzes the device information data and performs topology display on the parameter values of each parameter member in the device information parameters according to the interface path node.
The following specifically describes the technical solution of the present invention by taking an example that a single type (type a) external extension device in a mobile communication femto base station system accesses a Master control device (MU-Master Unit) through an optical port 1, and referring to fig. 2, the following implementation procedures are specifically included:
step S101, abstracting a corresponding interface type AOptInfo according to the planned equipment type, and turning to step S102;
step S102, statically adding AOptInfo multi-instance data type in a database, wherein a unique member OptID (namely an optical port number) is used as a primary key or a key word, and adding A equipment information parameter type ADeviceinfo, the type uses the OptID of the AOptInfo as a foreign key word, the DeviceID is a second key word (considering that the expanded equipment is cascade equipment and the level number and the like thereof can be used as the DeviceID), and uses OptID (optical port position) + DeviceID (equipment level) to uniquely identify one access equipment, turning to S103;
step S103, according to TR069 network management protocol, statically adding an AOptinfo path node under the MU in a MU network management data model DataModel, mapping the node to an AOptinfo parameter in a database, wherein a path corresponding to reported network management is MU. AOptinfo. { i }. ADeviceinfo. { j }. memberName (wherein i is corresponding to an example number which is a value of AOptinfo. OptID in the database, j is corresponding to a keyword member DeviceID value of an A equipment type ADeviceinfo parameter stored in the database, and memberName is a member name in A equipment information needing to be reported, each member corresponds to a path, and the value corresponds to a corresponding example member value stored in the ADeviceinfo in the data), and then, turning to S104;
step S104, powering on the MU, accessing the MU by the device A (only considering the first level) through the optical port position 1 and reporting the device information, identifying the type of the access device as A by the self-adaptive software module through a certain means (such as reading a register or IP) and the like, and turning to S105;
step S105, the self-adaptive software module dynamically creates an instance of AOptInfo OptID being 1 and an instance of ADeviceinfo OptID being 1, the instance of DeviceID being 1 stores all device information parameter values reported by the device A in a database, and the step S105 is switched to; otherwise, turning to S106;
step S106, the self-adaptive software module acquires a reporting path of the equipment information member from the DataModel, acquires parameter values from a database, forms a list in the form of path-value (MU. OptInfo. {1}. ADeviceInfo. {1}. memberName, memberValue), reports the equipment information of the equipment to the network manager after packaging, and goes to step S107;
step S107, after receiving the packet, the network manager analyzes and displays the topology according to the reported path node, and then the step S108 is carried out;
step S108, case 1 ends.
In the embodiment of the present invention, if the device type of the first external device is accessed for the first time, the functional parameters of the first external device are extended to implement access support for the device of the type.
In practical application, in addition to the single type (a type) device access situation mentioned in the above embodiment, there is also a device adaptive access situation of multiple types of devices, for the device adaptive access of multiple types of devices, it is necessary to determine that the device type of a first external device currently accessed is accessed for the first time, and if the device type of the first external device is accessed for the first time, the function parameters of the software adaptive apparatus are extended to implement access support for the type of device.
The following describes a specific implementation procedure of adaptive access for multiple types of devices, and specifically refers to fig. 3. In this case, on the basis that the first case, that is, the optical port 1 only supports the type a device, compatible access supporting the type B device is expanded, and due to device differences, device information of the type a and the type B devices may be different in terms of the number of members and the type, and in this respect, the two devices are independent. The specific implementation process is as follows:
step S201, abstracting an interface type BOptInfo of a corresponding device type B and device information BDeviceinfo of the device type B, modifying a module code of a software self-adaptive device to be compatible with the access of the device type B, and turning to step S202;
step S202, statically adding a BOptInfo data type and a BDeviceinfo data type in a database, and turning to step S203;
step S203, adding BOptInfo and BDeviceinfo path node information and associated database mapping relation in a dataModel statically, and turning to S204;
step S204, the main control equipment MU is powered on, the B equipment accesses the MU through the optical port position 1 and reports the equipment information, and the step S205 is switched;
step S205, the adaptive software module identifies the type of the access equipment, and if the type of the access equipment is A, the step S206 is switched; if the value is B, turning to S208;
step S206, the adaptive software module dynamically creates an instance of AOptInfo, OptID ═ 1, and an associated instance of ADeviceInfo, OptID ═ 1, DeviceID ═ 1, and stores the instance into a database, if the instance exists previously, the creation is not needed, the device information is directly stored into the instance, and the step S207 is switched to;
step S207, the self-adaptive software module reports the information of the device A stored in the database to the network manager according to the paths of the AOptInfo and the ADeviceinfo configured in the DataModel, and the step S210 is switched to;
step S208, the self-adaptive software module dynamically creates instances of BOPTInfo, OptID ═ 1, and associated BDeviceinfo, OptID ═ 1, instances of DeviceID ═ 1, and stores the instances in the database, and then the step S209 is switched to;
step S209, the self-adaptive software module reports the B device information stored in the database to the network manager according to the BOptInfo and BDeviceinfo path configured in the DataModel, and goes to step S210;
step S210, after receiving the packet, the network manager analyzes and displays the topology according to the reported path node, and then goes to step S211;
step S211, case 2 ends.
In the embodiment of the present invention, when it is monitored that a currently accessed first external device is switched to a second external device, the method further includes the following steps: and identifying the equipment type of the second external equipment, deleting an interface type instance and an equipment information instance corresponding to the equipment type of the first external equipment in the database if the equipment type of the second external equipment is different from the equipment type of the first external equipment, and informing a network manager to delete information corresponding to the equipment type of the first external equipment according to an interface path node in the network management data model. And judging whether a database has a second interface type instance corresponding to the device type of the second external device and a second device information instance associated with the second interface type instance, if the instance exists previously, the creation is not needed, and the device information is directly stored in the instance, otherwise, the second interface type instance and the second device information instance corresponding to the device type of the second external device are created, and the device information parameters reported by the second external device are stored in the database through the second interface type instance and the second device information instance. And acquiring a second interface path node corresponding to the equipment type of second external equipment from a network management data model, wherein the second interface path node has a mapping relation with a parameter member in the database for storing the equipment information parameters reported by the second external equipment. And acquiring parameter values of each parameter member in the equipment information parameters of the second external equipment from the database according to the acquired second interface path node and the mapping relation corresponding to the second interface path node. And forming second equipment information data by using the second interface path node and the parameter values of the corresponding parameter members of the second interface path node, reporting the obtained second equipment information data to a network manager, analyzing the second equipment information data by the network manager, and performing topology display on the parameter values of the parameter members in the second equipment information parameters of the second external equipment according to the second interface path node.
In practical applications, besides the access situation of a single type (a type) of device and the adaptive access situation of multiple types of devices, the case of dynamically switching the adaptive access of different types of devices is also included, and specifically, see fig. 4. This scenario considers that devices accessing optical port 1 are changed to B-type devices when the MU is not powered down and a-type device has accessed the MU through optical port 1. The specific implementation process is as follows:
step S301, after the MU is powered on, the type A device accesses the MU through the optical port 1 and completes the process of the situation 2, and the step S302 is switched;
step S302, under the condition that the MU is not powered down, the type A equipment of the optical port 1 is unplugged and replaced by the type B equipment to be accessed to the MU again through the optical port 1;
step S303, the adaptive software module queries whether an instance of AOptInfo with OptID equal to 1 already exists in the database (this example only considers A, B two types of devices, if there is a C type, AOptInfo and coptnfo need to be queried, and so on for the rest), if yes, then go to S304, otherwise, go to S306;
step S304, the self-adaptive software module dynamically deletes the instance of AOptInfo OptID ═ 1 and all associated ADeiviceInfo instances in the database, and goes to step S305;
step S305, according to the path of the AOptInfo configured in the DataModel, notifying the network manager to delete the AOptInfo {1}. the instance and all subordinate information, and turning to step S306;
in step S306, the adaptive software module dynamically creates an instance of BOptInfo: OptID ═ 1 and an associated instance of BDeviceInfo: OptID ═ 1 and DeviceID ═ 1, and stores the instances in the database. If the instance exists previously, the creation is not needed, and the device information is directly saved to the instance. Turning to S307;
step S307, the self-adaptive software module reports the device information of the B-type device stored in the database to the network manager according to the paths of the BOptInfo and the BDeviceinfo configured in the DataModel, and the step S308 is switched to;
step S308, after receiving the packet, the network manager analyzes and displays the topology according to the reported path node, and then the step S309 is carried out;
step S309 ends.
The device self-adaptive access method provided by the embodiment of the invention abstracts the types of hardware interfaces (optical ports, network ports and the like) and self-adapts the devices accessed through the interfaces through the self-adaptive software module device, so that the interfaces can be compatible with the access of the devices of different types and purposes, the universality and the adaptability of the devices are improved to the maximum extent, the hardware cost is reduced, and the competitiveness of products is improved.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Fig. 5 is a block diagram schematically illustrating a structure of an apparatus adaptive access device according to an embodiment of the present invention. Referring to fig. 5, the device adaptive access apparatus in the embodiment of the present invention specifically includes a type identifying unit 401, a data processing unit 402, a path obtaining unit 403, a data obtaining unit 404, and a reporting unit 405, where: a type identification unit 401, adapted to identify a device type of a currently accessed first external device; a data processing unit 402, adapted to create an interface type instance corresponding to the device type and a device information instance associated with the interface type instance, and store the device information parameters reported by the first external device in a preset database through the interface type instance and the device information instance; a path obtaining unit 403, adapted to obtain a preset interface path node corresponding to the device type from a network management data model, where the interface path node has a mapping relationship with a parameter member in the database for storing the device information parameter; a data obtaining unit 404, configured to obtain parameter values of each parameter member in the device information parameters from the database according to the obtained interface path node and a mapping relationship corresponding to the interface path node; a reporting unit 405, adapted to form device information data from the interface path node and the parameter values of the parameter members corresponding to the interface path node, and report the obtained device information data to the network manager.
In this embodiment of the present invention, the apparatus further includes a configuration unit, not shown in the drawings, where the configuration unit is adapted to configure, before the device type of the currently accessed first external device is identified, a corresponding interface type according to the device type of the external device to be accessed; statically adding an interface data type of the interface type in a database, wherein an interface ID of the interface type is used as a primary key keyword of the interface data type; adding the equipment information data type of the external equipment to be accessed into a database, and taking the interface ID of the interface type as a first foreign key keyword of the equipment information data type; interface path nodes of the interface data type and the equipment information data type under the master control equipment are statically added in a network management data model, and a corresponding relation exists between the interface path nodes and the interface ID of the corresponding interface type; and establishing a mapping relation between the interface path node and a parameter member used for storing the equipment information parameter in the database according to the interface ID of the interface type.
In this embodiment of the present invention, the type identifying unit 401 is further adapted to monitor whether a currently accessed first external device is switched to a second external device, and identify a device type of the second external device when it is monitored that the currently accessed first external device is switched to the second external device; the data processing unit 402 is further adapted to delete an interface type instance and an equipment information instance corresponding to the equipment type of the first external equipment in the database when the equipment type of the second external equipment is different from the equipment type of the first external equipment, and notify the network manager to delete information corresponding to the equipment type of the first external equipment according to an interface path node in the network management data model; the data processing unit 402 is further adapted to create a second interface type instance and a second device information instance corresponding to the device type of the second external device, and store the device information parameters reported by the second external device in the database through the second interface type instance and the second device information instance; the path obtaining unit 403 is further adapted to obtain a second interface path node corresponding to the device type of a second external device from a network management data model, where the second interface path node has a mapping relationship with a parameter member in the database, where the parameter member is used to store the device information parameter reported by the second external device; the data obtaining unit 404 is further adapted to obtain, from the database, parameter values of each parameter member in the device information parameters of the second external device according to the obtained second interface path node and the mapping relationship corresponding to the second interface path node; the reporting unit 405 is further adapted to form second device information data from the second interface path node and the parameter values of the parameter members corresponding to the second interface path node, and report the obtained second device information data to the network manager.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The device self-adaptive access method, the device and the main control device provided by the embodiment of the invention virtualize the interface (such as an optical port or a network port) of the main control device, perform type abstract definition on the interface according to the type of an external device or a product which is accessed as required, perform corresponding configuration on a database and a network management data model, and realize the switching processing of the interface by automatically identifying the type of the accessed device during operation, so that the same interface can be accessed by different types of devices in a software layer. The embodiment of the invention solves the problem that the equipment cannot be used universally due to the non-universal interface in the traditional method, improves the universality and the adaptability of the equipment to the maximum extent, reduces the hardware cost and improves the competitiveness of the product.
Furthermore, an embodiment of the present invention also provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the steps of the method as described above.
In this embodiment, the module/unit integrated with the apparatus adaptive access device may be stored in a computer readable storage medium if it is implemented in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
Fig. 6 is a schematic diagram of a master device according to an embodiment of the present invention. The master device provided in the embodiment of the present invention includes a memory 501, a processor 502, and a computer program stored on the memory 501 and executable on the processor 502, where the processor 502 implements the steps in the foregoing device adaptive access method embodiments when executing the computer program, for example, S11 shown in fig. 1, and identifies a device type of a currently accessed first external device. S12, creating an interface type instance corresponding to the equipment type and an equipment information instance associated with the interface type instance, and storing the equipment information parameters reported by the first external equipment into a preset database through the interface type instance and the equipment information instance. S13, obtaining a preset interface path node corresponding to the equipment type from a network management data model, wherein the interface path node has a mapping relation with a parameter member in the database for storing the equipment information parameter. And S14, acquiring parameter values of each parameter member in the equipment information parameters from the database according to the acquired interface path nodes and the mapping relation corresponding to the interface path nodes. S15, forming device information data by the interface path node and the parameter values of the parameter members corresponding to the interface path node, and reporting the obtained device information data to the network manager. Alternatively, the processor 502 implements the functions of each module/unit in the foregoing embodiments of the device adaptive access apparatus when executing the computer program, for example, the type identifying unit 401, the data processing unit 402, the path obtaining unit 403, the data obtaining unit 404, and the reporting unit 405 shown in fig. 5.
Fig. 7 is a schematic diagram of a system architecture corresponding to the device adaptive access method provided in the present invention. The equipment self-adaptive access device can be configured and arranged in the main control equipment through a computer program, and the main control equipment completes the self-adaptive access of each external extension equipment and the cascade equipment through executing the computer program for realizing the equipment self-adaptive access device.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used for describing the execution process of the computer program in the device adaptive access apparatus. For example, the computer program may be divided into a type identifying unit 401, a data processing unit 402, a path acquiring unit 403, a data acquiring unit 404, and a reporting unit 405.
The main control device can be a desktop computer, a notebook, a palm computer, a cloud server and other computing devices. The master device may include, but is not limited to, a processor, a memory. It will be understood by those skilled in the art that the schematic diagram 6 is merely an example of a master device, and does not constitute a limitation of the master device, and may include more or less components than those shown, or some components may be combined, or different components, for example, the master device may further include an input-output device, a network access device, a bus, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), an off-the-shelf Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor is the control center of the master control device, and various interfaces and lines are used to connect various parts of the whole master control device.
The memory may be used to store the computer program and/or module, and the processor may implement various functions of the main control device by running or executing the computer program and/or module stored in the memory and calling data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Those skilled in the art will appreciate that while some embodiments herein include some features included in other embodiments, rather than others, combinations of features of different embodiments are meant to be within the scope of the invention and form different embodiments. For example, in the following claims, any of the claimed embodiments may be used in any combination.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.