CN113783743B - Communication method, circuit board and optical transmission equipment - Google Patents

Communication method, circuit board and optical transmission equipment Download PDF

Info

Publication number
CN113783743B
CN113783743B CN202111335142.XA CN202111335142A CN113783743B CN 113783743 B CN113783743 B CN 113783743B CN 202111335142 A CN202111335142 A CN 202111335142A CN 113783743 B CN113783743 B CN 113783743B
Authority
CN
China
Prior art keywords
interface
board
application program
controlled board
program interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202111335142.XA
Other languages
Chinese (zh)
Other versions
CN113783743A (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.)
Alibaba China Co Ltd
Alibaba Cloud Computing Ltd
Original Assignee
Alibaba China Co Ltd
Alibaba Cloud Computing 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 Alibaba China Co Ltd, Alibaba Cloud Computing Ltd filed Critical Alibaba China Co Ltd
Priority to CN202111335142.XA priority Critical patent/CN113783743B/en
Publication of CN113783743A publication Critical patent/CN113783743A/en
Application granted granted Critical
Publication of CN113783743B publication Critical patent/CN113783743B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • H04L41/046Network management architectures or arrangements comprising network management agents or mobile agents therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0806Configuration setting for initial configuration or provisioning, e.g. plug-and-play
    • H04L41/0809Plug-and-play configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q11/0071Provisions for the electrical-optical layer interface
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04QSELECTING
    • H04Q11/00Selecting arrangements for multiplex systems
    • H04Q11/0001Selecting arrangements for multiplex systems using optical switching
    • H04Q11/0062Network aspects
    • H04Q2011/0079Operation or maintenance aspects

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the application provides a communication method, a circuit board and optical transmission equipment. The method comprises the steps that a main control board determines a target application program interface corresponding to target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of a controlled board; and sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board, so that the controlled board calls the target application program interface to execute the target processing operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information. The embodiment of the application realizes convenient communication between the main control board and the controlled board.

Description

Communication method, circuit board and optical transmission equipment
Technical Field
The embodiment of the application relates to the technical field of communication, in particular to a communication method, a circuit board and communication equipment.
Background
For meeting different use requirements, many communication devices mostly adopt a distributed frame structure at present, which is mainly divided into a main control board and a controlled board, different controlled boards can provide different processing functions, and are uniformly controlled by the main control board, for example, an existing optical transmission device usually includes a plurality of circuit boards for realizing different optical processing functions, which are referred to as optical processing boards for short, the plurality of optical processing boards are uniformly controlled by the main control board, and in the optical transmission device, the optical processing board is also a controlled board. Therefore, there are often a lot of information interactions between the master control board and the controlled board, for example, the master control board needs to perform configuration and issue to the controlled board, and acquire and update corresponding data.
Therefore, it is a technical problem to be solved by those skilled in the art to provide a convenient communication method between the master control board and the slave control board.
Disclosure of Invention
The embodiment of the application provides a communication method, a circuit board and optical transmission equipment, and convenient communication between a main control board and a controlled board is realized.
In a first aspect, an embodiment of the present application provides a communication method, including:
the method comprises the steps that a main control board determines a target application program interface corresponding to target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of a controlled board;
and sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board, so that the controlled board calls the target application program interface to execute the target processing operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information.
Optionally, the method further comprises:
and acquiring the execution result of the target processing operation sent by the controlled board.
Optionally, the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board includes;
taking the parameter information of the target processing operation as an input parameter of the target application program interface;
serializing the target application program interface to obtain first serialized data;
and sending the first serialized data to the controlled board so that the controlled board can obtain the interface related information and the parameter information from the first serialized data in an anti-sequence manner.
Optionally, the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board includes:
coding the parameter information of the target processing operation according to a preset coding rule;
and sending the interface related information and the coded parameter information to the controlled board, and decoding the coded parameter information by the controlled board according to the preset coding rule to obtain the parameter information.
Optionally, the method further comprises:
establishing a communication channel with the controlled board through message middleware;
the sending the interface related information and the parameter information to the controlled board through the communication channel includes:
and issuing the interface related information and the parameter information to the message middleware so that the controlled board can obtain the interface related information and the parameter information from the message middleware.
Optionally, the controlled board is inserted into a hardware interface of the main control board; the target processing operation comprises an identification operation for the controlled board, a configuration operation after the identification is completed, or a resource processing operation after the configuration operation is completed;
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: under the condition that any hardware interface is identified to be inserted into a controlled board, reading equipment information of the controlled board from the hardware interface; and determining an identification operation for the controlled board, and determining an identification interface corresponding to the identification operation from at least one preconfigured first application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: sending the interface related information of the identification interface and the parameter information of the identification operation to the controlled board, so that the controlled board calls the identification interface from at least one second application program interface which is pre-configured to execute the identification operation based on the interface related information and the parameter information to obtain the system type of the controlled board, and feeding back the system type serving as an execution result to the main control board;
or,
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: determining a configuration operation aiming at the controlled board, and determining a configuration interface corresponding to the configuration operation from at least one preconfigured application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: sending interface related information of the configuration interface and parameter information of the configuration operation to the controlled board, so that the controlled board calls the configuration interface to execute corresponding configuration operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information;
or;
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: after the controlled board configuration is completed, determining a resource processing operation aiming at the controlled board, and determining a resource processing interface corresponding to the resource processing operation from at least one pre-configured application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: and sending the interface related information of the resource processing interface and the parameter information of the resource processing operation to the controlled board, so that the controlled board calls the resource program interface from at least one second application program interface which is pre-configured to execute the resource processing operation based on the interface related information and the parameter information.
Optionally, the sending, to the controlled board, interface related information of the configuration interface and parameter information of the configuration operation, so that the controlled board calls the configuration interface to execute a corresponding configuration operation includes:
determining configuration data corresponding to the controlled board based on the system type and the equipment information of the controlled board;
and sending the interface related information of the configuration interface and the configuration data to the controlled board so that the controlled board calls the configuration interface to execute corresponding configuration operation based on the configuration data.
Optionally, the controlled plate is a light treatment plate.
In a second aspect, an embodiment of the present application provides a communication method, including:
the controlled board obtains the interface related information and the parameter information sent by the main control board; the interface related information and the parameter information are sent after the main control board determines a corresponding target application program interface from at least one pre-configured first application interface according to the target processing operation on the controlled board;
and calling the target application program interface from at least one second pre-configured application interface to execute the target processing operation according to the interface related information and the parameter information.
Optionally, the method further comprises:
acquiring an execution result of the target processing operation;
coding the execution result according to a preset coding rule;
taking the coded execution result as an output parameter of the target application program interface, and carrying out serialization processing on the target application program interface to obtain second serialized data;
and feeding back the second serialized data to the main control board, so that the main control board can obtain the execution result after coding from the second serialized data in an inverted sequence, and decoding the execution result according to the preset coding rule to obtain the execution result.
In a third aspect, an embodiment of the present application provides a communication method, including:
the method comprises the steps that a main control board detects that a hardware interface is inserted into a controlled board, and equipment information of the controlled board is read from the hardware interface;
determining an identification interface corresponding to the identification operation from at least one preconfigured first application program interface;
sending interface related information of the identification interface and parameter information of the identification operation to the controlled board, so that the controlled board calls the identification interface to execute the identification operation from at least one second application program interface which is pre-configured to determine a system type, and feeds the system type back to the main control board;
determining corresponding configuration data of the controlled board based on the device information and the system type;
acquiring a configuration interface corresponding to configuration operation from the at least one first application program interface;
and sending the interface related information of the configuration interface and the configuration data to the controlled board, so that the controlled board calls the configuration sequence interface to execute the configuration operation based on the configuration data from the at least one second application program interface.
Optionally, the determining, based on the device information and the system type, the configuration data corresponding to the controlled board includes:
verifying whether the controlled board is a permitted device or not according to the system type and the device information of the controlled board;
and if the verification is successful, determining the configuration data corresponding to the controlled board according to the system type and the equipment information of the controlled board.
In a fourth aspect, an embodiment of the present application provides a circuit board, including a processing unit and a storage unit for storing executable instructions of the processing unit;
wherein the processing unit is configured to execute the instructions to implement the communication method according to the first aspect or to implement the communication method according to the second aspect.
In a fifth aspect, an embodiment of the present application provides an optical transmission device, including a main control board, at least one hardware interface, and at least one optical processing board inserted into the at least one hardware interface;
the main control board is used for determining a target application program interface corresponding to target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of any optical processing board; sending the interface related information of the target application program interface and the parameter information of the target processing operation to the optical processing board;
the optical processing board is used for acquiring interface related information and parameter information sent by the main control board; and calling the target application program interface from at least one second pre-configured application interface to execute the target processing operation according to the interface related information and the parameter information.
In the embodiment of the application, a main control board and a controlled board are respectively preconfigured with at least one application program interface, and the main control board determines a target application program interface corresponding to target processing operation aiming at the target processing operation of the controlled board; and then, interface related information of the target application program interface and parameter information of the target processing operation are sent to the controlled board, so that the controlled board can call the corresponding target application program interface to execute the target processing operation based on the interface related information, the portable communication and processing operation between the main control board and the controlled board can be realized by adopting the application program interface in the embodiment of the application, the code realization of the main control board and the controlled board is easy by adopting the form of the application program interface, the controlled board can be accessed to the main control board to realize the communication with the main control board only by realizing the corresponding application program interface, the system coupling degree of the main control board and the controlled board is reduced, the universality of the communication mode is improved, the plug-and-play of the controlled board can be realized, and the cross-manufacturer use of the main control board and the controlled board can be realized.
These and other aspects of the present application will be more readily apparent from the following description of the embodiments.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be 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 application, and other drawings can be obtained by those skilled in the art without creative efforts.
Fig. 1 is a schematic structural diagram illustrating an embodiment of a communication device provided in the present application;
FIG. 2a is a flow chart illustrating one embodiment of a communication method provided herein;
FIG. 2b is a flow chart illustrating one embodiment of a method for optical communication provided herein;
FIG. 3 illustrates a flow chart of yet another embodiment of a communication method provided herein;
FIG. 4 illustrates a flow chart of yet another embodiment of a communication method provided herein;
FIG. 5 is a flow chart illustrating a further embodiment of a method of communication provided herein;
FIG. 6 is a schematic diagram illustrating an embodiment of an optical transmission apparatus provided herein;
FIG. 7 is a schematic block diagram illustrating an embodiment of a communications device provided herein;
FIG. 8 is a schematic block diagram illustrating one embodiment of a communications device provided herein;
FIG. 9 is a schematic diagram illustrating one embodiment of a circuit board provided herein;
fig. 10 is a schematic structural diagram of a circuit board according to still another embodiment of the present application.
Detailed Description
In order to make the technical solutions better understood by those skilled in the art, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application.
In some of the flows described in the specification and claims of this application and in the above-described figures, a number of operations are included that occur in a particular order, but it should be clearly understood that these operations may be performed out of order or in parallel as they occur herein, the number of operations, e.g., 101, 102, etc., merely being used to distinguish between various operations, and the number itself does not represent any order of performance. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The technical scheme of the embodiment of the application can be applied to the communication field, such as the optical communication field, many communication devices at present adopt a distributed frame structure, for example, in one optical transmission device at present, a plurality of optical processing subsystems are often integrated, such as an Optical amplifier subsystem, an Optical switch subsystem, a ROADM (Reconfigurable Optical Add-Drop Multiplexer) subsystem, etc., the subsystems are controlled by the master control system in a unified mode, the processing operations comprise configuration data issuing, alarm acquisition, performance acquisition and the like, the master control system and different subsystems are arranged on different circuit boards, the circuit board for arranging the master control system is also called a master control board, the circuit board for arranging the subsystems is also called an optical processing board, compared with the master control board, the optical processing board is also called a controlled board, and a large amount of information interaction exists between the master control board and the controlled board. At present, a main control board and a controlled board are communicated in a hardware mode, however, the hardware mode is limited, and information which can be transmitted is limited, or a private communication protocol is required to be used for communication, for example, how parameters related to operation performed by the main control board on the controlled board are transmitted is agreed, so that a strong coupling relation exists between a main control system and a subsystem, and communication can be performed in a private communication mode defined by the manufacturer by using a system developed by the same manufacturer. However, the optical transmission equipment is developing towards the direction of modularization and pluggable, and the strong coupling relationship between the master control system and the subsystem further influences the flexibility of the equipment structure, the diversity of selection and the convenience of later maintenance and replacement, thereby leading to the cost improvement of the optical transmission equipment.
In order to realize universal and convenient communication between the main control board and the controlled board, the inventor provides the technical scheme of the application through a series of researches, in the embodiment of the Application, a main control board and a controlled board are respectively configured with a predefined Application Programming Interface (API, english: Application Programming Interface), the main control board determines a target Application program Interface corresponding to a target processing operation from at least one first Application program Interface preconfigured by the main control board for the target processing operation of the controlled board, then sends Interface related information of the target Application program Interface and parameter information corresponding to the target processing operation to the controlled board, and the controlled board calls the target Application program Interface from at least one second Application program Interface preconfigured by the controlled board according to the Interface related information and the parameter information to execute the target processing operation, so as to control the controlled board by the main control board. In the embodiment of the application, a unified application program interface is introduced between the master control board and the controlled board, the communication between the master control board and the controlled board is realized by the application program interface, the master control system and the subsystems only need to realize the corresponding application program interface, a software mode is adopted, the realization of codes of different manufacturers is facilitated, the maintenance and the evolution are facilitated, the corresponding interfaces are only needed to realize the different subsystems, the master control system can be accessed, the system coupling degree between the master control board and the controlled board is reduced, the universality of a communication mode is improved, the plug and play of the controlled board can be realized, and the inter-manufacturer universality of the master control board and the controlled board is realized.
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. 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 application.
The technical solution of the embodiment of the present application may be applied to the communication device shown in fig. 1, where the communication device is in a distributed frame structure, and the communication device may include a main control board 101, at least one hardware interface 102, and at least one controlled board 103 inserted into the at least one hardware interface, so as to form a distributed subrack system.
At least one hardware interface 102 may be at least one slot provided by the main control board 101, and the controlled board 103 may be inserted into the corresponding slot for use. It should be noted that the connection lines in fig. 1 are only for illustrating the connection of different components, and do not represent the existence of actual cables.
In practical applications, the communication device shown in fig. 1 may specifically refer to an optical transmission device, and the controlled board is also referred to as an optical processing board.
Corresponding to the communication device shown in fig. 1, as shown in fig. 2a, which is a flowchart of an embodiment of a communication method provided by the present application, a technical solution of the present embodiment is executed by a main control board, and may include the following steps:
201: and aiming at the target processing operation of the controlled board, determining a target application program interface corresponding to the target processing operation from at least one pre-configured first application program interface.
The controlled board can be any one controlled board or a designated one or one plugged in a specific hardware interface, etc.
202: and sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board.
After the controlled board obtains the interface related information and the parameter information, the target application program interface may be called from at least one second application program interface configured in advance to execute the target processing operation based on the interface related information and the parameter information.
Wherein the at least one first application program interface comprises the at least one second application program interface. The at least one first application program interface may be predefined according to different processing operations for different controlled boards. The at least one second application program interface may be identical to the at least one first application program interface and may be selected from the at least one first application program interface for determination in accordance with the processing operation required by the controlled board itself.
The at least one second application program interface may be configured and implemented in a subsystem of a different slave board that wants to access the master control board, and the at least one first application program interface is preconfigured in the master control board, that is, the application program interface may be used to implement communication between the slave board and the master control board.
The target processing operation may include, for example, a configuration operation, a resource processing operation, and the like, which will be described in detail below; the processing method may include a plurality of resource processing operations for different resource types and different processing types, and the target processing operation may be a resource processing operation of any processing type corresponding to any resource type. For example, in an optical communication scenario, the resource type may include a line card, a port, a laser, a channel, an interface, an OTN (optical transport network), an ODU (optical data base Unloader), an OTDR (optical time-domain reflectometer), and the like, and may further include data types such as alarm information and performance information. Resource handling operations may include, for example, addition, deletion, modification, retrieval, etc. of resources.
The interface related information may include an interface name for identifying the target application program interface, and may further include function information of the target application program interface, such as a parameter type and variable information.
For example, for a resource processing operation, the parameter information may include a resource identifier to indicate a resource object that needs to be processed, and for a configuration operation, the parameter information may include configuration data. The parameter information of the target processing operation may be specifically used as an input parameter of the target application program interface to implement the corresponding processing operation by executing the target application program interface.
In the embodiment, the communication between the master control board and the controlled board is realized by the application program interface, the master control system and the subsystems can communicate and perform corresponding processing operation only by realizing the corresponding application program interface, the software mode is adopted, the code realization of different manufacturers is easy, the maintenance and the evolution are easy, the different subsystems can access the master control system only by realizing the corresponding application program interface, the system coupling degree between the master control board and the controlled board is reduced, the universality of the communication mode is improved, and the plug and play of the controlled board can be realized.
When the communication device is an optical transmission device, as shown in fig. 2b, an embodiment of the present application further provides an optical communication method, where the technical solution of the present embodiment is executed by a main control board, and may include the following steps:
21: and determining a target application program interface corresponding to the target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of the optical processing board.
The optical processing board can be any optical processing board or a designated optical processing board or an optical processing board inserted into a specific hardware interface, and the like.
22: and sending the interface related information of the target application program interface and the parameter information of the target processing operation to the optical processing board.
After the optical processing board obtains the interface related information and the parameter information, the target application program interface may be called from at least one second application program interface that is pre-configured to perform the target processing operation based on the interface related information and the parameter information.
The detailed operation descriptions of steps 21 to 22 can be seen in steps 11 to 12 in the embodiment shown in fig. 2a, and the difference from the embodiment shown in fig. 2a is that in an optical communication scenario, the controlled board is specifically an optical processing board, and other same or similar operations are not repeated here.
In some embodiments, after the controlled board calls the target application program interface to execute the target processing operation, the execution result may be fed back to the main control board, and therefore, the method may further include:
and acquiring the execution result of the target processing operation sent by the controlled board.
In addition, in order to realize and unify the information transmission mode, in some embodiments, the interface related information of the target application program interface and the parameter information of the target processing operation are sent to the controlled board;
taking the parameter information of the target processing operation as an input parameter of a target application program interface;
carrying out Serialization (Serialization) processing on a target application program interface to obtain first Serialization data;
and sending the first serialized data to a controlled board, and obtaining the interface related information and the parameter information by the controlled board from the deserialization data.
Through serialization processing, the conversion character form of the target application program interface can be transmitted to the controlled board, and the controlled board can obtain the target application program through anti-sequence processing, so that interface related information, parameter information and the like can be obtained.
The serialization is a mode of converting an object or a function into a form capable of being stored or transmitted to obtain serialized data, and the object or the function can be reconstructed by performing anti-sequence processing on the serialized data. Therefore, the target application program interface can be converted into other forms to be transmitted to the controlled board by adopting a serialization mode, and the controlled board can obtain the target application program interface only by performing anti-sequence processing.
In addition, in order to standardize and unify the information transmission mode, improve the security of information transmission, and the like, in some embodiments, the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board includes:
encoding the parameter information of the target processing operation according to a preset encoding rule;
and sending the interface related information and the coded parameter information to the controlled board, and decoding the coded parameter information by the controlled board according to a preset coding rule to obtain the parameter information.
The main control board and the controlled board can encode and decode the parameter information according to the predetermined encoding rule by appointing the uniform predetermined encoding rule, thereby restricting the information transmission form and realizing the information transmission.
Wherein, the predetermined encoding rule may be a parameter format that specifies input parameters of different application program interfaces, since the parameter information of the target processing operation is used as the input parameter of the target application program interface. The parameter information of the target processing operation can be encoded according to a parameter format corresponding to the target application program interface in a preset encoding rule. The controlled board can decode according to the parameter format corresponding to the target application program interface to obtain the parameter information.
Optionally, the sending of the interface related information and the parameter information after encoding to the controlled board may be: taking the encoded parameter information as an input parameter of a target application program interface; carrying out serialization processing on a target application program interface to obtain first serialized data; and sending the first serialized data to a controlled board, and obtaining the interface related information and the parameter information by the controlled board from the deserialization data.
As can be seen from the foregoing description, the controlled board may feed back the execution result to the main control board, optionally, the execution result may be returned to the main control board as an output parameter of the target application program interface, and the controlled board may specifically use the execution result as an output parameter of the target application program interface; and performing deserialization processing on the target application program interface to obtain second serialized data, and feeding the second serialized data back to the main control board. Therefore, in some embodiments, obtaining the execution result of the target processing operation sent by the controlled board may include: and acquiring second serialized data sent by the controlled board, and performing deserialization on the second serialized data to obtain an execution result.
Optionally, the controlled board may also encode the execution result according to a predetermined encoding rule and feed back the encoded execution result to the main control board. The predetermined encoding rule may specify parameter formats corresponding to output parameters of different application program interfaces, and therefore, the execution result may be encoded according to the parameter format corresponding to the output parameter of the target application program interface in the predetermined encoding rule.
After the controlled board encodes the execution result, the encoded execution result may be specifically used as an output parameter of the target application program interface, and then the target application program interface is subjected to serialization processing. Therefore, the acquiring, by the master board, the execution result of the target processing operation sent by the slave board may include:
acquiring second serialized data sent by the controlled board; the second serialization data is obtained by performing serialization processing on a target program interface after the execution result of the target processing operation of the controlled board is used as the output parameter of the target application program interface; deserializing the second serialized data to obtain a return parameter;
and decoding the returned parameters according to a preset coding rule to obtain parameter information.
The master control board and the controlled board can establish a specific communication channel according to a convention to transmit information. Thus, in some embodiments, the method may further comprise:
establishing a communication channel with a controlled board;
sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises:
and sending the interface related information and the parameter information to the controlled board through a communication channel.
The communication channel may be established in a pre-specified manner to standardize and unify communication channels between different circuit boards.
The communication channel may be, for example, a communication channel established based on TCP/UDP (Transmission Control Protocol/User data Protocol).
In addition, as another alternative, the master board may establish a communication channel with the slave board through message middleware.
The master control board and the controlled board can be respectively configured with communication components of the message middleware, so that information transmission is realized through the message middleware. The sending of the interface related information and the parameter information to the controlled board through the communication channel may be: and issuing the interface related information and the parameter information to the message middleware so that the controlled board can obtain the interface related information and the parameter information from the message middleware.
The specific communication mode of the message middleware is the same as the conventional mode, for example, the related information may be sent to the message middleware, stored in a queue by the message middleware, and forwarded to the controlled board at a suitable time, which is not specifically limited in the present application.
After the communication channel is established between the master control board and the controlled board, the master control board may uniquely identify the controlled board according to slot position information of a hardware interface where the controlled board is located, or a device identifier of the controlled board, or the like.
As can be seen from the foregoing description, the controlled board can be inserted into a hardware interface of the communication device, and may specifically refer to a slot provided by the main control board, by adopting the technical solution of the embodiment of the present application, the main control board and the controlled board are decoupled, and are not limited to a system of the same manufacturer, plug and play of the controlled board can be realized,
in order to facilitate understanding of the technical solution of the present application, the following explains the corresponding execution steps by respectively taking the target processing operation as an identification operation, a configuration operation, and a resource processing operation.
When the target processing operation is the identification operation, the main control board determines, according to the target processing operation for the controlled board, that the target application program interface may be: under the condition that any hardware interface is inserted into the controlled board, reading the equipment information of the controlled board from the hardware interface; and determining an identification operation for the controlled board, and determining an identification interface corresponding to the identification operation from at least one preconfigured application program interface;
sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board may be: the interface related information of the identification interface and the parameter information of the identification operation are sent to the controlled board, so that the controlled board can call the identification interface from at least one second application program interface which is pre-configured to execute the identification operation based on the interface related information and the parameter information, so as to obtain the system type of the controlled board, and the system type is fed back to the main control board as an execution result;
the main control board can determine whether the hardware interface is inserted into the controlled board by detecting the in-place information of the hardware interface after the controlled board is inserted into the hardware interface and powered on.
By reading the hardware interface, the hardware information of the controlled board, such as the device information, including the specified requirements of the device manufacturer on the size, performance, etc. such as the device model, the device specification, etc., can be obtained. Information read through a hardware interface is limited, and therefore, an application program interface for performing an identification operation may be predefined in the embodiments of the present application, and is named as an identification interface for convenience of description.
The controlled board calls the corresponding identification interface to execute identification operation, and the system type of the controlled board can be obtained; the system type may specifically refer to a system type of an operating system configured by the controlled board, and may include information such as a system name and a system version, and may further obtain an interface type supported by the controlled board, a supported processing function, and the like.
After the master control board obtains the device information, the system type and other information of the controlled board, the configuration operation and the like can be performed on the controlled board according to the information.
When the target processing operation is a configuration operation, the main control board determines, according to the target processing operation for the controlled board, that the target application program interface may be: determining a configuration operation aiming at the controlled board, and determining a configuration interface corresponding to the configuration operation from at least one preconfigured application program interface;
the sending of the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board may be: sending the interface related information of the configuration interface and the parameter information of the configuration operation to the controlled board, so that the controlled board calls the configuration interface to execute the corresponding configuration operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information;
the parameter information may refer to configuration data, the main control board may first determine the configuration data corresponding to the controlled board, and then send the interface related information and the configuration data to the controlled board, and the controlled board may call the configuration interface to perform configuration operation according to the configuration data.
In practical applications, the system type and the device information are different, and the corresponding configuration data may be different, so that the master control board may determine the configuration data corresponding to the controlled board specifically according to the system type and the device information of the controlled board.
In addition, in order to improve the security, the main control board can also verify whether the controlled board is the permitted equipment according to the system type and the equipment information of the controlled board;
if the verification is successful, the configuration data corresponding to the controlled board can be determined again.
If the verification fails, alarm information can be generated, and/or the controlled board can be directly subjected to ordering processing. In addition, alarm information can be output to prompt relevant personnel to carry out processing and the like.
After the controlled board is successfully configured, the controlled board can normally operate, and the main control board can perform resource processing operations on the controlled board according to actual requirements, such as acquiring alarm information and performance data.
When the target processing operation is a resource processing operation, the determining, by the master control board, a target application program interface from at least one preconfigured first application program interface according to the target processing operation for the controlled board includes: after the controlled board configuration is completed, determining resource processing operation aiming at the controlled board, and determining a resource processing interface corresponding to the resource processing operation from at least one pre-configured application program interface;
sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises the following steps: and sending the interface related information of the resource processing interface and the parameter information of the resource processing operation to the controlled board, so that the controlled board calls the resource program interface to execute the resource processing operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information.
The resource processing operation may be a resource processing operation of any processing type corresponding to any resource type. For example, the resource types may include: alarm information, performance information, line cards, ports, channels, interfaces, OTN, ODU, OCM and other resources. The processing types may include, for example, adding, deleting, modifying, collecting, and the like.
The foregoing description of the specific possible transmission manners of the parameter information and the interface related information corresponding to the various target processing operations has been described, and details are not repeated here.
As shown in fig. 3, the present application provides a flowchart of a further embodiment of a communication method, where the technical solution of the present embodiment is executed by a controlled board, and in an optical transmission device, the controlled board may refer to an optical processing board, and the method may include the following steps:
301: and acquiring the interface related information and the parameter information sent by the main control board.
The interface related information and the parameter information are sent after the main control board determines a corresponding target application program interface from at least one first application interface which is pre-configured according to the target processing operation on the controlled board.
302: and calling a target application program interface from at least one second pre-configured application interface to execute target processing operation according to the interface related information and the parameter information.
The controlled board can determine the target application program interface according to the interface related information, so that the parameter information is used as the input parameter of the target application program interface, and the target application program can be called to execute the target processing operation.
In some embodiments, the method may further comprise:
acquiring an execution result of a target processing operation;
and feeding back the execution result to the main control board.
The interface related information and the parameter information can be transmitted by the main control board based on a communication channel established between the main control board and the controlled board, and the execution result of the controlled board can be fed back to the active board through the communication channel. The communication channel may be established, for example, by a message middleware, and the controlled board may send the execution result to the message middleware, and the main control board obtains the execution result from the message middleware.
In addition, the controlled board can also encode the execution result according to a preset encoding rule, specifically, the encoded execution result is fed back to the main control board, and the main control board decodes the execution result according to the preset encoding rule to obtain the execution result, so that the information transmission mode can be unified and standardized, and the universality and the safety of the communication mode are improved.
In yet another optional embodiment, the controlled board may take the execution result as an output parameter of the target application program interface, and perform serialization processing on the target application program interface to obtain second serialization data; and specifically, feeding back the second serialized data to the main control board, and obtaining an execution result from the second serialized data by the main control board in an anti-sequence mode. The main control board can rebuild the target application program interface based on the second serialization data through the deserialization processing, and then the execution result as the output parameter is obtained. Of course, the execution result may be encoded according to a predetermined encoding rule and then used as an output parameter of the target application program interface. The second serialized data can be sent to the message middleware, and the main control board obtains the second serialized data from the message middleware.
In yet another optional embodiment, the execution result of the target processing operation may be obtained, the execution result may be encoded according to a predetermined encoding rule, the execution result after encoding is used as an output parameter of the target application program interface, the target application program interface is serialized to obtain second serialized data, and the second serialized data is fed back to the main control board. The main control board may obtain the execution result after encoding from the second serialized data by deserializing, and decode from the execution result according to the predetermined encoding rule.
For convenience of understanding, in another embodiment of a communication method shown in fig. 4, a communication process between a master control board and a controlled board is described mainly from a signaling interaction perspective, in practical applications, the master control board may perform information interaction with a plurality of controlled boards, and the communication method provided in this embodiment may be adopted to implement information interaction of any controlled board, where the method may include the following steps:
401: the master control board establishes a communication channel with the controlled board through the message middleware.
402: the main control board determines a target application program interface corresponding to the target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of the controlled board.
403: and the main control board encodes the parameter information of the target processing operation according to a preset encoding rule, and takes the encoded parameter information as an input parameter of a target application program interface.
404: the main control board carries out serialization processing on the target application program interface to obtain first serialization data, and the first serialization data are sent to the message middleware.
405: the message middleware forwards the first serialized data to the controlled board.
406: and the controlled board carries out anti-sequence processing on the first serialized data to obtain interface related information and input parameters of the target application program interface.
407: and the controlled board decodes the input parameters according to a preset coding rule to obtain parameter information.
408: and the controlled board calls a target application program interface and executes target processing operation according to the parameter information.
409: and the controlled board encodes the execution result according to a preset encoding rule and takes the encoded execution result as an output parameter of the target application program interface.
410: and the controlled board carries out serialization processing on the target application program interface to obtain second serialization data, and sends the second serialization data to the message middleware.
411: and the message middleware forwards the second serialized data to the main control board.
412: and the main control board performs anti-sequence processing on the second serialized data to obtain an output parameter in the target application program interface, and decodes the output parameter according to a preset decoding rule to obtain the execution result.
The specific operation implementation of the corresponding step in the embodiment shown in fig. 4 has been described in detail in the corresponding embodiment, and is not repeated herein.
In practical application, the technical scheme of the embodiment of the application can realize plug and play of the controlled board, so that the main control board and the controlled board are decoupled and are not limited to be the same manufacturer equipment. The communication equipment can be modularized and pluggable, so that the maintenance and replacement of the equipment structure are easy, the flexibility and the selection diversity of the equipment structure are improved, and the equipment cost is reduced. In the following, the technical solution of the present application is introduced from the perspective of inserting a controlled board into a main control board to implement plug and play of the controlled board, as shown in fig. 5, for a signaling flow chart of another embodiment of a communication method provided by the present application, the method may include the following steps:
501: the main control board detects that the hardware interface is inserted into the controlled board, and reads the equipment information of the controlled board from the hardware interface.
502: and the main control board determines an identification interface corresponding to the identification operation from at least one pre-configured application program interface.
503: and the master control board sends the interface related information of the identification interface and the parameter information of the identification operation to the controlled board.
The parameter information can be coded into a uniform format according to a preset coding rule and then sent to the controlled board, and the controlled board can decode according to the preset coding rule to obtain the parameter information. The parameter information of the identification operation may be, for example, an acquisition identifier for indicating the type of acquisition system, or the like.
The parameter information can be used as an input parameter of the identification interface, the identification interface is serialized to obtain first serialized data, the first serialized data are sent to the controlled board, the controlled board performs anti-sequence processing on the first serialized data, the identification interface is reconstructed, and therefore the input parameter and interface related information of the identification interface and the like are obtained.
504: the controlled board calls the recognition interface to execute recognition operation from at least one second application program interface which is pre-configured so as to determine the system type, and the system type is fed back to the main control board.
The at least one first application program interface and the at least one second application program interface may be the same, or the at least one application program interface may include at least one second application program interface; or the at least one second application program interface may at least include the at least one application program interface, and the controlled board may configure the application program interfaces configured in the plurality of main control boards, so that the controlled board may access any main control board.
505: and the master control board determines the configuration data corresponding to the controlled board based on the equipment information and the system type.
In addition, the master control board may also verify the controlled board according to the device information and the system type to determine whether the controlled board is a permitted device, for example, if the device information and the system type match with the device information and the system type of the permitted device stored in advance, the controlled board may be considered as a permitted device.
The main control board may pre-store different device information and configuration data corresponding to the system type. After the controlled board is verified as the permitted device, the configuration data corresponding to the controlled board can be determined according to the device information and the system type.
506: and the main control board acquires a configuration interface corresponding to the configuration operation from the at least one first application program interface.
507: and the master control board sends the interface related information and the configuration data of the configuration interface to the controlled board.
The configuration data can be coded into a uniform format according to a preset coding rule and then sent to the controlled board, and the controlled board can decode according to the preset coding rule to obtain the configuration data.
The configuration data can be used as input parameters of the configuration interface, the first serialized data obtained by serialization processing of the configuration interface is sent to the controlled board, the controlled board performs anti-serialization processing on the first serialized data, the configuration interface is reconstructed, and therefore the input parameters and interface related information of the configuration interface are obtained.
508: and the controlled board calls the first application program interface from the at least one second application program interface to execute the configuration operation based on the configuration data.
After the controlled board completes the configuration operation, the controlled board can be used normally, and the controlled board can also send a configuration success message to the main control board. In addition, in the use process of the controlled board, the main control board can also combine with actual requirements to execute resource processing operation on the controlled board by adopting the technical scheme of the embodiment of the application. The detailed implementation of the resource processing operation can be seen in the foregoing, and is not described herein again.
In practical application, the technical scheme of the embodiment of the application can be applied to an optical communication scene, the communication device shown in fig. 1 can be specifically implemented as an optical transmission device, and the optical transmission device can be applied to a cloud computing scene to implement optical transmission between different data centers. With the vigorous development of the cloud computing technology, the optical transmission equipment has the requirement of evolving from closed single-manufacturer equipment to multi-manufacturer equipment, and by adopting the technical scheme of the embodiment of the application, the universal and convenient communication among the multi-manufacturer equipment is realized, so that the optical transmission equipment can be modularized and pluggable.
As shown in fig. 6, a schematic structural diagram of an optical transmission device in practical application may include a main control board 601, at least one hardware interface 602, and at least one optical processing board inserted into the at least one hardware interface 602, where the at least one optical processing board may be, for example, an optical processing module such as an optical switch 603, an optical amplifier 604, and a ROADM605, and is controlled by the main control board 601 in a unified manner.
Predefined at least one application program interface can be configured in the main control board 601 and the at least one optical processing board respectively, and the at least one application program interface can be developed and obtained based on processing operations for each optical processing subsystem; the optical processing board may be functionally developed in accordance with the at least one application program interface to be able to execute and implement the at least one second application program interface.
After any optical processing board is inserted into the hardware interface and powered on, according to the technical scheme shown in fig. 5, the configuration operation of the optical processing board and the like can be realized, and the plug and play of the optical processing board can be realized. Specifically, the main control board may perform the communication method of the embodiment shown in fig. 2b, and the optical processing board may perform the communication method of the embodiment shown in fig. 3.
According to the technical scheme, the communication between the main control board and the optical processing boards is achieved through the application program interfaces, a software mode is adopted, different manufacturer codes are easy to achieve, the maintenance and the evolution are easy, different optical processing boards only need to achieve the corresponding application program interfaces, the main control system can be accessed, the main control board and the optical processing boards are decoupled, the universality of a communication mode is achieved, the plug-and-play can be achieved for the optical processing boards, and the inter-manufacturer universality of the main control board and the optical processing boards is achieved.
Fig. 7 is a schematic structural diagram of an embodiment of a communication apparatus according to an embodiment of the present application, where the apparatus may include:
a determining module 701, configured to determine, for a target processing operation of a controlled board, a target application program interface corresponding to the target processing operation from at least one preconfigured first application program interface;
the first processing module 702 is configured to send the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board, so that the controlled board invokes the target application program interface to execute the target processing operation from at least one second application program interface that is preconfigured based on the interface related information and the parameter information.
The communication apparatus shown in fig. 7 can perform the communication method shown in the embodiment shown in fig. 2a, and the implementation principle and the technical effect are not described again. The specific manner in which each module and unit of the communication device in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail herein.
Fig. 8 is a schematic structural diagram of another embodiment of a communication device according to an embodiment of the present application, where the device may include:
an obtaining module 801, configured to obtain interface related information and parameter information sent by a main control board; the interface related information and the parameter information are sent after the main control board determines a corresponding target application program interface from at least one pre-configured first application interface according to the target processing operation on the controlled board;
and a second processing module 802, configured to invoke a target application program interface from at least one second application interface that is pre-configured to perform a target processing operation according to the interface related information and the parameter information.
The communication apparatus shown in fig. 8 can execute the communication method shown in the embodiment shown in fig. 3, and the implementation principle and the technical effect are not described again. The specific manner in which each module and unit of the communication device in the above embodiments perform operations has been described in detail in the embodiments related to the method, and will not be described in detail herein.
As shown in fig. 9, embodiments of the present application also provide a circuit board that may be used in a subrack structure of a control board mounting apparatus. The circuit board may include a processing component 901 and a storage component 902 storing instructions executable by the processing component 901;
wherein the processing component 901 is configured to execute the instructions to implement the communication method as described in fig. 2a or fig. 2 b.
In practical applications, the circuit board shown in fig. 9 may be used as a main control board in the communication device shown in fig. 1 or the optical transmission device shown in fig. 6.
As shown in fig. 10, embodiments of the present application also provide a circuit board that can be mounted as a control board in a subrack structure of an apparatus. The circuit board may include a processing component 1002 and a storage component 1001 that stores instructions executable by the processing component 1002.
Wherein the processing component 1002 is configured to execute the instructions to implement the optical communication method as described in fig. 3.
The circuit board shown in fig. 10 can be used as a controlled board in the communication device shown in fig. 1 or the optical transmission device shown in fig. 6. Of course, the circuit board may also necessarily include some other components, such as input/output interfaces, etc.
The processing units involved in the related embodiments may include, for example, one or more processors executing instructions to perform all or part of the steps of the methods described above. Of course, the processing elements may also be implemented as one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, micro-controllers, microprocessors or other electronic components configured to perform the above-described methods.
The storage unit is configured to store various types of data to support operations at the terminal. The memory unit may be implemented by any type or combination of volatile or non-volatile memory devices such as Static Random Access Memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic or optical disks.
In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the communication method of the embodiment shown in fig. 2a may be implemented.
In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the optical communication method of the embodiment shown in fig. 2b can be implemented.
In addition, an embodiment of the present application further provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a computer, the communication method of the embodiment shown in fig. 3 may be implemented.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
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.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should 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 in the embodiments of the present application.

Claims (14)

1. A method of communication, comprising:
the method comprises the steps that a main control board determines a target application program interface corresponding to target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of a controlled board;
and sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board, so that the controlled board calls the target application program interface to execute the target processing operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information.
2. The method of claim 1, further comprising:
and acquiring the execution result of the target processing operation sent by the controlled board.
3. The method of claim 1, wherein sending interface-related information of the target application program interface and parameter information of the target processing operation to the controlled board comprises;
taking the parameter information of the target processing operation as an input parameter of the target application program interface;
serializing the target application program interface to obtain first serialized data;
and sending the first serialized data to the controlled board so that the controlled board can obtain the interface related information and the parameter information from the first serialized data in an anti-sequence manner.
4. The method of claim 1, wherein sending interface-related information of the target application program interface and parameter information of the target processing operation to the controlled board comprises:
coding the parameter information of the target processing operation according to a preset coding rule;
and sending the interface related information and the coded parameter information to the controlled board, and decoding the coded parameter information by the controlled board according to the preset coding rule to obtain the parameter information.
5. The method of claim 1, further comprising:
establishing a communication channel with the controlled board through message middleware;
the sending the interface related information and the parameter information to the controlled board through the communication channel includes:
and issuing the interface related information and the parameter information to the message middleware so that the controlled board can obtain the interface related information and the parameter information from the message middleware.
6. The method of claim 1, wherein the slave board is plugged into a hardware interface of the master board; the target processing operation comprises an identification operation for the controlled board, a configuration operation after the identification is completed, or a resource processing operation after the configuration operation is completed;
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: under the condition that any hardware interface is identified to be inserted into a controlled board, reading equipment information of the controlled board from the hardware interface; and determining an identification operation for the controlled board, and determining an identification interface corresponding to the identification operation from at least one preconfigured first application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: sending the interface related information of the identification interface and the parameter information of the identification operation to the controlled board, so that the controlled board calls the identification interface from at least one second application program interface which is pre-configured to execute the identification operation based on the interface related information and the parameter information to obtain the system type of the controlled board, and feeding back the system type serving as an execution result to the main control board;
or,
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: determining a configuration operation aiming at the controlled board, and determining a configuration interface corresponding to the configuration operation from at least one preconfigured application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: sending interface related information of the configuration interface and parameter information of the configuration operation to the controlled board, so that the controlled board calls the configuration interface to execute corresponding configuration operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information;
or;
the determining, by the master board, a target application program interface from at least one preconfigured first application program interface according to a target processing operation for the slave board includes: after the controlled board configuration is completed, determining a resource processing operation aiming at the controlled board, and determining a resource processing interface corresponding to the resource processing operation from at least one pre-configured application program interface;
the sending the interface related information of the target application program interface and the parameter information of the target processing operation to the controlled board comprises: and sending the interface related information of the resource processing interface and the parameter information of the resource processing operation to the controlled board, so that the controlled board calls the resource processing interface to execute the resource processing operation from at least one second application program interface which is pre-configured based on the interface related information and the parameter information.
7. The method according to claim 6, wherein the sending interface-related information of the configuration interface and parameter information of the configuration operation to the controlled board for the controlled board to call the configuration interface to perform a corresponding configuration operation comprises:
determining configuration data corresponding to the controlled board based on the system type and the equipment information of the controlled board;
and sending the interface related information of the configuration interface and the configuration data to the controlled board so that the controlled board calls the configuration interface to execute corresponding configuration operation based on the configuration data.
8. The method of claim 1, wherein the controlled panel is a light management panel.
9. A method of communication, comprising:
the controlled board obtains the interface related information and the parameter information sent by the main control board; the interface related information and the parameter information are sent after the main control board determines a corresponding target application program interface from at least one pre-configured first application interface according to the target processing operation on the controlled board;
and calling the target application program interface from at least one second pre-configured application interface to execute the target processing operation according to the interface related information and the parameter information.
10. The method of claim 9, further comprising:
acquiring an execution result of the target processing operation;
coding the execution result according to a preset coding rule;
taking the coded execution result as an output parameter of the target application program interface, and carrying out serialization processing on the target application program interface to obtain second serialized data;
and feeding back the second serialized data to the main control board, so that the main control board can obtain the execution result after coding from the second serialized data in an inverted sequence, and decoding the execution result according to the preset coding rule to obtain the execution result.
11. A method of communication, comprising:
the method comprises the steps that a main control board detects that a hardware interface is inserted into a controlled board, and equipment information of the controlled board is read from the hardware interface;
determining an identification interface corresponding to the identification operation from at least one preconfigured first application program interface;
sending interface related information of the identification interface and parameter information of the identification operation to the controlled board, so that the controlled board calls the identification interface to execute the identification operation from at least one second application program interface which is pre-configured to determine a system type, and feeds the system type back to the main control board;
determining corresponding configuration data of the controlled board based on the device information and the system type;
acquiring a configuration interface corresponding to configuration operation from the at least one first application program interface;
and sending the interface related information of the configuration interface and the configuration data to the controlled board, so that the controlled board calls the configuration interface to execute the configuration operation based on the configuration data from the at least one second application program interface.
12. The method of claim 11, wherein determining the configuration data corresponding to the controlled board based on the device information and the system type comprises:
verifying whether the controlled board is a permitted device or not according to the system type and the device information of the controlled board;
and if the verification is successful, determining the configuration data corresponding to the controlled board according to the system type and the equipment information of the controlled board.
13. A circuit board comprising a processing unit and a storage unit for storing instructions executable by the processing unit;
wherein the processing unit is configured to execute the instructions to implement the communication method according to any one of claims 1 to 8 or to implement the communication method according to any one of claims 9 to 10.
14. An optical transmission device, comprising a main control board, at least one hardware interface and at least one optical processing board inserted into the at least one hardware interface;
the main control board is used for determining a target application program interface corresponding to target processing operation from at least one pre-configured first application program interface aiming at the target processing operation of any optical processing board; sending the interface related information of the target application program interface and the parameter information of the target processing operation to the optical processing board;
the optical processing board is used for acquiring interface related information and parameter information sent by the main control board; and calling the target application program interface from at least one second pre-configured application interface to execute the target processing operation according to the interface related information and the parameter information.
CN202111335142.XA 2021-11-11 2021-11-11 Communication method, circuit board and optical transmission equipment Active CN113783743B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111335142.XA CN113783743B (en) 2021-11-11 2021-11-11 Communication method, circuit board and optical transmission equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111335142.XA CN113783743B (en) 2021-11-11 2021-11-11 Communication method, circuit board and optical transmission equipment

Publications (2)

Publication Number Publication Date
CN113783743A CN113783743A (en) 2021-12-10
CN113783743B true CN113783743B (en) 2022-04-15

Family

ID=78956879

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111335142.XA Active CN113783743B (en) 2021-11-11 2021-11-11 Communication method, circuit board and optical transmission equipment

Country Status (1)

Country Link
CN (1) CN113783743B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020147797A1 (en) * 2001-04-06 2002-10-10 Paul Stephen D. Discovery and configuration of network attached storage devices
CN100481039C (en) * 2004-05-14 2009-04-22 微软公司 Pnp functionality for unsupported devices
CN101052013B (en) * 2007-05-22 2011-09-28 杭州华三通信技术有限公司 Method and system for realizing network equipment internal managing path
CN107888399A (en) * 2016-09-29 2018-04-06 西门子公司 A kind of platform services PaaS platform management method and device
CN112988289A (en) * 2021-04-09 2021-06-18 北京字节跳动网络技术有限公司 Method and system for calling interface

Also Published As

Publication number Publication date
CN113783743A (en) 2021-12-10

Similar Documents

Publication Publication Date Title
CN110505162B (en) Message transmission method and device and electronic equipment
CN110941563A (en) Automatic script testing method and device
CN112631924A (en) Automatic testing method and device, computer equipment and storage medium
CN108549586B (en) Information processing method and device
CN103092648A (en) Method and system of mirror image upgrade and user device and personal computer
CN109189419B (en) System upgrading method, device and system, server and client
CN114637549A (en) Data processing method, system and storage medium for service grid-based application
CN113783743B (en) Communication method, circuit board and optical transmission equipment
CN112087475A (en) Message pushing method and device for cloud platform component application and message server
CN107172013B (en) Data transmission method and system
CN112559027A (en) Method, system, device and readable storage medium for creating and managing functional components
CN111142885B (en) eSIM equipment management method, device, equipment and storage medium
CN116737662A (en) Method, device, electronic equipment and storage medium for processing business data
CN113157405A (en) Method and device for retrying breakpoint of business process
CN113342447B (en) Page generation method, device, equipment and storage medium based on Flutter
CN108021459B (en) Method and device for sending dotting logs across processes
CN116017403A (en) LPA automatic compiling method, system and medium for eSIM equipment
CN111158760B (en) Loading method and device for card configuration file and electronic equipment
CN111880864B (en) HTTP-based model calling method, system, computer device and storage medium
CN115952129A (en) Blade server setting method and device and readable storage medium
CN114553608A (en) Method and device for accessing cloud platform
CN114070824A (en) Registration method, registration cloud service, medium, and program product for internet of things device
WO2016078322A1 (en) Io channel allocation method and device
CN108848182B (en) Updating method of BMC firmware, related equipment and system
CN112417012A (en) Data processing method and system

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
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 40064009

Country of ref document: HK