CN109522256B - Serial port communication method, network equipment, control equipment and storage medium - Google Patents

Serial port communication method, network equipment, control equipment and storage medium Download PDF

Info

Publication number
CN109522256B
CN109522256B CN201811574355.6A CN201811574355A CN109522256B CN 109522256 B CN109522256 B CN 109522256B CN 201811574355 A CN201811574355 A CN 201811574355A CN 109522256 B CN109522256 B CN 109522256B
Authority
CN
China
Prior art keywords
serial port
communication protocol
control information
port control
interface communication
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
CN201811574355.6A
Other languages
Chinese (zh)
Other versions
CN109522256A (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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN201811574355.6A priority Critical patent/CN109522256B/en
Publication of CN109522256A publication Critical patent/CN109522256A/en
Application granted granted Critical
Publication of CN109522256B publication Critical patent/CN109522256B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter
    • G06F13/385Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3027Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a bus
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/3003Monitoring arrangements specially adapted to the computing system or computing system component being monitored
    • G06F11/3031Monitoring arrangements specially adapted to the computing system or computing system component being monitored where the computing system component is a motherboard or an expansion card
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2213/00Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F2213/0002Serial port, e.g. RS232C

Abstract

The embodiment of the invention discloses a serial port communication method, network equipment, control equipment and a storage medium, wherein the method comprises the following steps: receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol; analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information; and executing corresponding operation on the serial port based on the serial port control content.

Description

Serial port communication method, network equipment, control equipment and storage medium
Technical Field
The present invention relates to communication technologies, and in particular, to a serial communication method, a network device, a control device, and a storage medium.
Background
With the requirements of high bandwidth and large flow for user application, the server has higher and higher requirements for the network on the basis of carrying data processing, which introduces the requirements of a large number of internet companies for the intelligent network card. The capability of accelerating the hardware characteristics carried by the existing intelligent network card is realized by an embedded RISC microprocessor (Advanced RISC Machines, ARM) chip and an Application Specific Integrated Circuit (ASIC) chip of the network card, each intelligent network card has an external serial port, the serial port is connected with a serial port of a substrate Management Controller (BMC) system through an external serial port line, and the control of the intelligent network card is completed through a BMC system.
However, in the existing control method, an additional serial port line loop needs to be added between the serial port of the BMC system and the serial port of the intelligent network card to realize the control operation of the intelligent network card, and the control operation is complex.
Disclosure of Invention
In order to solve the foregoing technical problem, embodiments of the present invention are intended to provide a serial communication method, a network device, a control device, and a storage medium, which can simplify a serial communication mode of the network device and improve serial communication efficiency.
The technical scheme of the invention is realized as follows:
the embodiment of the invention provides a first serial port communication method, which comprises the following steps:
receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol;
analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information;
and executing corresponding operation on the serial port based on the serial port control content.
In the above scheme, the method further comprises:
judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not;
if the network equipment supports the serial port operation based on an out-of-band interface communication protocol, analyzing the serial port control information;
if the network equipment does not support the serial port control operation based on the out-of-band interface communication protocol, firmware upgrading is carried out on the network equipment based on the out-of-band interface communication protocol, so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
In the above solution, the out-of-band interface communication protocol is a sideband interface protocol of a network controller.
The embodiment of the invention also provides a second serial port communication method, which comprises the following steps:
establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol;
and sending the serial port control information to network equipment so that the network equipment executes corresponding operation on the serial port based on the serial port control content in the extension field.
In the above solution, the communication protocol of the out-of-band interface is a sideband interface protocol of a network controller.
The embodiment of the invention also provides a network device, which comprises: a first processor and a first memory; wherein, the first and the second end of the pipe are connected with each other,
the first processor is configured to execute a program stored in the first memory to perform the steps of:
receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol;
analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information;
and executing corresponding operation on the serial port based on the serial port control content.
In the foregoing solution, the first processor is further configured to execute a program stored in the first memory, so as to implement the following steps: judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not; if the network equipment supports the serial port operation based on an out-of-band interface communication protocol, analyzing the serial port control information; if the network equipment does not support the serial port control operation based on the out-of-band interface communication protocol, firmware upgrading is carried out on the network equipment based on the out-of-band interface communication protocol, so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
In the above scheme, the out-of-band interface communication protocol is a network controller sideband interface protocol.
An embodiment of the present invention further provides a control device, where the control device includes: a second processor and a second memory; wherein the content of the first and second substances,
the second processor is configured to execute a program stored in the second memory to perform the steps of:
establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol;
and sending the serial port control information to network equipment so that the network equipment executes corresponding operation on the serial port based on the serial port control content in the extension field.
An embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, where the computer program is executed by a processor to implement the steps of any one of the methods described in the foregoing.
By adopting the technical scheme, the communication protocol with the external interface is expanded to define serial port control information, and the serial port control operation of the network equipment can be directly realized based on the existing management channel with the external interface and the serial port control information. Therefore, a peripheral serial port circuit does not need to be added, the connection structure of serial port communication is simplified, and the serial port communication efficiency is improved.
Drawings
Fig. 1 is a schematic diagram of a first process of a serial communication method according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a second process of the serial communication method in the embodiment of the present invention;
fig. 3 is a schematic diagram of a third flow of a serial communication method in the embodiment of the present invention;
FIG. 4 is a schematic diagram of a component structure of a network device according to an embodiment of the present invention;
fig. 5 is a schematic structural diagram of a control device in an embodiment of the present invention.
Detailed Description
So that the manner in which the features and aspects of the embodiments of the present invention can be understood in detail, a more particular description of the embodiments of the invention, briefly summarized above, may be had by reference to the embodiments, some of which are illustrated in the appended drawings.
Example one
The embodiment of the present invention provides a first intermediate serial port communication method, which is applied to a network device having a serial interface (hereinafter referred to as a "serial port"), and as shown in fig. 1, the serial port communication method includes:
step 101: receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in an out-of-band interface communication protocol;
step 102: analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information;
step 103: and executing corresponding operation on the serial port based on the serial port control content.
Here, the execution main body of step 101 to step 103 may be a processor of a network device, where the network device may be a device with a serial port, such as a router, a switch, a modem single chip, a computer motherboard, and a network card.
In practical application, an out-of-band management channel is arranged between the control device and the network device, and the control device sends a serial communication protocol to the network device through the out-of-band management channel to realize serial control over the network device. Here, the transmission of the serial port control information is realized by multiplexing the out-of-band management channel of the out-of-band management operation, the serial port control information does not need to be transmitted through an external serial port bus, and the connection structure of serial port communication is simplified.
The out-of-band interface communication protocol is used for realizing data interaction between out-of-band interfaces and out-of-band management functions. For example, the out-of-band Interface communication protocol is a Network Controller side band Interface (NCSI) protocol.
Here, when the out-of-band management channel is multiplexed to perform serial control operation, the format of serial communication is not defined in the existing NCSI protocol. Therefore, the NCSI protocol needs to be expanded to obtain serial port control information capable of being used for executing serial port control operation, the serial port control information can be transmitted by multiplexing an out-of-band management channel, a serial port line loop is not needed to be used for transmission, the operation of a serial port can be realized, the connection structure of serial port communication is simplified, and the serial port communication efficiency is improved.
In the embodiment of the invention, the serial control information for executing the serial control operation is defined by an extended out-of-band interface communication protocol, and the serial control information at least comprises an extended field representing the serial control content in the out-of-band interface communication protocol. Here, the serial control information may also include other fields in a fixed format.
That is to say, the in-band interface communication protocol in step 101 is an extended out-band interface communication protocol, a data format of serial control information for executing a serial control operation is defined in the extended out-band interface communication protocol, and the serial control information is established based on the extended out-band interface communication protocol.
Further, after the serial control information is received, whether the information is the serial control information or the non-serial control information is determined by analyzing a key field in the control information. For example, when the control information contains an extension field for indicating serial port control, the control information is determined as serial port control information; and when the extension field is not contained, determining the serial port control information as the non-serial port control information.
Further, the serial control content is determined from the extension field of the serial control information. Here, the serial port control content is any one of the following: configuring a serial port, reading the serial port and writing the serial port. The extension field of the serial port control information may include a control type and a control parameter, for example, when the serial port control type is configuring a serial port, the corresponding control parameter may be a baud rate, a verification method, a stop control bit, and the like; the serial port control type is a read serial port, and the corresponding control parameter can be the address of the storage unit; the serial port control type is a write serial port, and the corresponding control parameter can be the content of writing.
And further, based on the serial port control content, executing corresponding operation on the serial port. For example, the serial port control type is determined first, and then the corresponding serial port control operation is completed based on the control parameters.
To further illustrate the object of the present invention based on the above embodiments of the present invention, as shown in fig. 2, the serial port communication method specifically includes:
step 201: receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in an out-of-band interface communication protocol;
step 202: judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not; if yes, go to step 203; if not, go to step 205;
step 203: analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information;
step 204: based on the serial port control content, executing corresponding operation on the serial port;
step 205: and upgrading the firmware of the network equipment based on the out-of-band interface communication protocol so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
Here, the execution subject of steps 201 to 205 may be a processor of a network device.
Further, after receiving the serial port control information, if the control device supports the serial port operation based on the out-of-band interface communication protocol, continuing to execute step 203 and step 204 to complete the control operation of the serial port.
If the network equipment does not support the serial port operation based on the out-of-band interface communication protocol, ignoring the serial port control information; or generating upgrade indicating information; and upgrading the firmware of the network equipment based on the out-of-band interface communication protocol so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
Specifically, the identification information used for indicating the serial port operation type is detected, and whether the network device supports the serial port operation based on the out-of-band interface communication protocol or not is judged.
In practical application, an out-of-band management channel is arranged between the control device and the network device, and the control device sends a serial communication protocol to the network device through the out-of-band management channel to realize serial control of the network device. Here, through multiplexing the out-of-band management channel of out-of-band management operation, realize the transmission of serial ports control information, need not to transmit serial ports control information through external serial ports bus, simplified serial ports communication's connection structure.
In the embodiment of the invention, the serial control information for executing the serial control operation is defined by an extended out-of-band interface communication protocol, and the serial control information at least comprises an extended field representing the serial control content in the out-of-band interface communication protocol. Here, the serial control information may also include other fields in a fixed format.
That is to say, the out-of-band interface communication protocol is an expanded out-of-band interface communication protocol, a data format of serial control information for executing serial control operation is defined in the expanded out-of-band interface communication protocol, and the serial control information is established based on the expanded out-of-band interface communication protocol; and upgrading the firmware based on the expanded out-of-band interface communication protocol network equipment. In practical application, the network device needs to analyze the serial control information according to the extended out-of-band interface communication protocol, so that the network device cannot analyze the serial control information before the firmware is upgraded, and cannot execute control operation on the serial port of the network device based on the serial control information.
By adopting the technical scheme, the communication protocol with the external interface is expanded to define serial port control information, and the serial port control operation of the network equipment can be directly realized based on the existing management channel with the external interface and the serial port control information. Therefore, a peripheral serial port circuit does not need to be added, the connection structure of serial port communication is simplified, and the serial port communication efficiency is improved.
Example two
Based on the same inventive concept, the embodiment of the present invention further provides a second serial communication method, and an application and control device, as shown in fig. 3, the serial communication method specifically includes:
step 301: establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in an out-of-band interface communication protocol;
step 302: and sending the serial port control information to the network equipment so that the network equipment executes corresponding operation on the serial port based on the serial port control content in the extension field.
Here, the execution subject of steps 301 to 302 may be a processor of the control apparatus.
In practical application, an out-of-band management channel is arranged between the control device and the network device, and the control device sends a serial communication protocol to the network device through the out-of-band management channel to realize serial control of the network device. Here, through multiplexing the out-of-band management channel of out-of-band management operation, realize the transmission of serial ports control information, need not to transmit serial ports control information through external serial ports bus, simplified serial ports communication's connection structure.
The out-of-band interface communication protocol is used for realizing data interaction between out-of-band interfaces and out-of-band management functions. For example, the out-of-band interface communication protocol is the NCSI protocol.
Here, when the out-of-band management channel is multiplexed to perform serial control operation, the format of serial communication is not defined in the existing NCSI protocol. Therefore, the NCSI protocol needs to be expanded to obtain serial port control information capable of being used for executing serial port control operation, the serial port control information can be transmitted by multiplexing an out-of-band management channel, a serial port line loop is not needed to be used for transmission, the operation of a serial port can be realized, the connection structure of serial port communication is simplified, and the serial port communication efficiency is improved.
In the embodiment of the invention, the serial control information for executing the serial control operation is defined by an extended out-of-band interface communication protocol, and the serial control information at least comprises an extended field representing the serial control content in the out-of-band interface communication protocol. Here, the serial control information may also include other fields in a fixed format.
The control device establishes serial port control information based on the out-of-band interface communication protocol and the serial port control content, and sends the serial port control information to the network device. Here, the serial port control content is any one of the following: configuring a serial port, reading the serial port and writing the serial port.
After the serial port control information is established, the serial port control information is sent to the network equipment; the network equipment analyzes the serial port control information and determines the serial port control content from the extension field of the serial port control information; and executing corresponding operation on the serial port based on the serial port control content.
For example, when the serial control type is configuring a serial port, the corresponding control parameter may be a baud rate, a verification method, a stop control bit, and the like; the serial port control type is a read serial port, and the corresponding control parameter can be the address of a storage unit; the serial port control type is a write serial port, and the corresponding control parameter can be the content of writing.
In practical application, the method further comprises the following steps: and receiving response information of the serial port operation sent by the network equipment.
Based on the first and second embodiments, the control device is BMC, and the network device is an intelligent network card. And generating serial port control information for executing serial port control operation after the NCSI protocol is expanded.
The BMC establishes an out-of-band management channel with the intelligent network card through the NCSI signal bus, and the out-of-band management channel is used for transmitting serial port control information established by using an NCSI protocol besides common NCSI information so as to realize the monitoring, management and other operations of the BMC on the intelligent network card.
In the embodiment of the invention, the data frame format of the following serial port control information is given after the NCSI protocol is expanded:
1)Get supported OEM Commands Response
Figure BDA0001916363110000081
the fields 00-27 are the same as the data frame format in the common NCSI information, supported commands are set in the fields 28-35, the Supported command types and the Supported serial port operation ranges are set, and the fields 28-35 are extension fields in the application.
2)OEM NCSI UART Setting Command 0x81
Figure BDA0001916363110000091
Wherein, the 00 th to 23 th fields have the same data frame format as the data frame format in the common NCSI information, and respectively comprise: NC-SI header) is a Command header), the manufacturer ID is a vendor identifier, OEM Payload Version =0 is an OEM Payload Version number, OEM Payload length =0x0004 is an OEM Payload length, but the OEM UART Set Command Type =0x81 is used to define the Command Type as a serial Port setting Command, and UART ports parameters are in fields 24-27 and are used to Set specific serial Port parameters, such as baud rate, check method, stop control bit, and the like.
After the intelligent network card receives the Get supported OEM Command Response again, whether the serial port operation based on the NCSI protocol is supported is judged, if so, the OEM NCSI UART Setting Command is obtained to configure serial port parameters; if not, the information is ignored.
3)OEM NCSI UART Write Command 0x82
Figure BDA0001916363110000092
Wherein, the 00 th-23 th fields have the same format as the data frames in the common NCSI information, and respectively comprise: NC-SI header) as a Command header, manufacturer ID as vendor ID, OEM Payload Version =0 as OEM Payload Version number, OEM Payload length =0x0008 as OEM Payload length, but where the OEM UART Write Command Type =0x82 in fields 00-23 is used to define the Command Type as a Write-to-serial Command. In fields 24-31 is a UART write buffer for setting the contents of a particular write.
Here, when the intelligent network card supports serial port operation based on the NCSI protocol, the intelligent network card executes serial port writing operation after receiving the Write Command of the OEMNCSI UART Write Command.
4)OEM NCSI UART Read Command 0x83
Figure BDA0001916363110000101
Wherein, the 00 th to 23 th fields have the same data frame format as the data frame format in the common NCSI information, and respectively comprise: NC-SI header) is a Command header), the manufacturer ID is vendor ID, OEM Payload Version =0 is OEM Payload Version number, OEM Payload length =0x0008 is OEM Payload length, but where OEM UART Read Command Type =0x83 defines the Command Type as a Read serial port Command. In fields 24-31 is a UART read buffer for setting the contents of a particular write.
Here, when the intelligent network card supports serial port operation based on the NCSI protocol, the intelligent network card executes serial port reading operation after receiving the OEM NCSI UART Read Command.
EXAMPLE III
Based on the same inventive concept, the embodiment of the invention also provides network equipment. As shown in fig. 4, the network device includes: a first processor 401 and a first memory 402; wherein, the first and the second end of the pipe are connected with each other,
the first processor 401 is configured to execute the program stored in the first memory 402 to implement the steps of: receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in an out-of-band interface communication protocol; analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information; and executing corresponding operation on the serial port based on the serial port control content.
In some embodiments, the first processor 401 is further configured to execute a program stored in the first memory 402 to implement the steps of: judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not; if the network equipment supports the serial port operation based on the out-of-band interface communication protocol, analyzing the serial port control information; if the network equipment does not support the serial port control operation based on the out-of-band interface communication protocol, the firmware of the network equipment is upgraded based on the out-of-band interface communication protocol so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
In some embodiments, the serial port control content is any one of: configuring a serial port, reading the serial port and writing the serial port.
In some embodiments, the communication protocol of the out-of-band interface is a network controller sideband interface protocol.
In an embodiment of the present invention, there is also provided a control device, as shown in fig. 5, where the control device 50 includes: a second processor 501 and a second memory 502; wherein the content of the first and second substances,
the second processor 501 is configured to execute the program stored in the second memory 502 to implement the following steps:
establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in an out-of-band interface communication protocol;
and sending the serial port control information to the network equipment so that the network equipment executes corresponding operation on the serial port based on the serial port control content in the extension field.
In some embodiments, the serial port control content is any one of: configuring a serial port, reading the serial port and writing the serial port.
In some embodiments, the communication protocol of the out-of-band interface is a network controller sideband interface protocol.
The network device can be a router, a switch, a modem singlechip, a computer mainboard, a network card and other devices with serial ports. The control device is a device capable of out-of-band management of the network device.
In practical application, an out-of-band management channel is arranged between the control device and the network device, and the control device sends a serial communication protocol to the network device through the out-of-band management channel to realize serial control of the network device. Here, the transmission of the serial port control information is realized by multiplexing the out-of-band management channel of the out-of-band management operation, the serial port control information does not need to be transmitted through an external serial port bus, and the connection structure of serial port communication is simplified.
Illustratively, the control device is a BMC, the network device is an intelligent network card, the BMC establishes an out-of-band management channel with the intelligent network card through an NCSI signal bus, and the out-of-band management channel is used for transmitting serial port control information established by using an NCSI protocol in addition to transmitting common NCSI information, so as to implement operations such as monitoring and management of the intelligent network card by the BMC.
In the embodiment of the invention, the serial control information for executing the serial control operation is defined by an extended out-of-band interface communication protocol, and the serial control information at least comprises an extended field representing the serial control content in the out-of-band interface communication protocol. Here, the serial control information may also include other fields in a fixed format.
Further, after the serial control information is received, whether the information is the serial control information or the non-serial control information is determined by analyzing a key field in the control information. For example, when the control information contains an extension field for indicating serial port control, the control information is determined as serial port control information; and when the extension field is not contained, determining the serial port control information as the non-serial port control information.
Further, the serial control content is determined from the extension field of the serial control information. Here, the serial port control content is any one of the following: configuring a serial port, reading the serial port and writing the serial port. The extension field of the serial port control information may include a control type and a control parameter, for example, when the serial port control type is configuring a serial port, the corresponding control parameter may be a baud rate, a verification method, a stop control bit, and the like; the serial port control type is a read serial port, and the corresponding control parameter can be the address of the storage unit; the serial port control type is a write serial port, and the corresponding control parameter can be the content of writing.
By adopting the technical scheme, the serial port control information is defined by expanding the out-of-band interface communication protocol, and the serial port control operation of the network equipment can be directly realized based on the existing out-of-band interface management channel and the serial port control information. Therefore, a peripheral serial port circuit does not need to be added, the connection structure of serial port communication is simplified, and the serial port communication efficiency is improved.
In practical applications, the first Memory and the second Memory may be a volatile Memory (volatile Memory), such as a Random-Access Memory (RAM); or a non-volatile Memory (non-volatile Memory), such as a Read-Only Memory (ROM), a flash Memory (flash Memory), a Hard Disk (HDD), or a Solid-State Drive (SSD); or a combination of the above types of memories and provides instructions and data to the processor.
The first processor and the second processor may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processing Device (DSPD), a Programmable Logic Device (PLD), a Field Programmable Gate Array (FPGA), a controller, a microcontroller, and a microprocessor. It will be appreciated that the electronic devices used to implement the processor functions described above may be other devices, and embodiments of the present invention are not limited in particular.
Based on the same inventive concept, embodiments of the present invention also provide a computer-readable storage medium, such as a memory including a computer program, which is executable by a processor of a terminal to perform the method steps in one or more of the foregoing embodiments.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of a hardware embodiment, a software embodiment, or an embodiment combining software and hardware aspects. Furthermore, the present invention may take the form of a computer program product embodied on one or more computer-usable storage media (including, but not limited to, disk storage, optical storage, and the like) having computer-usable program code embodied therein.
The present invention has been described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart block or blocks and/or flowchart block or blocks.
The above description is only a preferred embodiment of the present invention, and is not intended to limit the scope of the present invention.

Claims (10)

1. A serial port communication method is characterized by comprising the following steps:
receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol; the out-of-band interface communication protocol is used for defining the data format of the serial control information for executing the serial control operation; the serial port control information is obtained by expanding the out-of-band interface communication protocol;
analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information; the extension field of the serial port control information at least comprises a control type and a control parameter;
and executing corresponding operation on the serial port based on the serial port control content.
2. The method of claim 1, further comprising:
judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not;
if the network equipment supports the serial port operation based on an out-of-band interface communication protocol, analyzing the serial port control information;
if the network equipment does not support the serial port control operation based on the out-of-band interface communication protocol, firmware upgrading is carried out on the network equipment based on the out-of-band interface communication protocol, so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
3. The method of claim 1 or 2, wherein the out-of-band interface communication protocol is a network controller sideband interface protocol.
4. A serial port communication method is characterized by comprising the following steps:
establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol; the out-of-band interface communication protocol is used for defining the data format of the serial port control information for executing the serial port control operation; the serial port control information is obtained by expanding the out-of-band interface communication protocol;
sending the serial port control information to network equipment so that the network equipment executes corresponding operation on a serial port based on the serial port control content in the extension field; wherein the extension field includes at least a control type and a control parameter.
5. The method of claim 4, wherein the communication protocol of the out-of-band interface is a network controller sideband interface protocol.
6. A network device, characterized in that the network device comprises: a first processor and a first memory; wherein the content of the first and second substances,
the first processor is configured to execute a program stored in the first memory to perform the steps of:
receiving serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field representing serial port control content in the out-of-band interface communication protocol; the out-of-band interface communication protocol is used for defining the data format of the serial port control information for executing the serial port control operation; the serial port control information is obtained by expanding the out-of-band interface communication protocol;
analyzing the serial port control information, and determining serial port control content from an extension field of the serial port control information; the extension field of the serial port control information at least comprises a control type and a control parameter;
and executing corresponding operation on the serial port based on the serial port control content.
7. The network device of claim 6, wherein the first processor is further configured to execute a program stored in the first memory to perform the steps of:
judging whether the network equipment supports serial port operation based on an out-of-band interface communication protocol or not;
if the network equipment supports the serial port operation based on an out-of-band interface communication protocol, analyzing the serial port control information;
if the network equipment does not support the serial port control operation based on the out-of-band interface communication protocol, firmware upgrading is carried out on the network equipment based on the out-of-band interface communication protocol, so that the network equipment supports the serial port operation based on the out-of-band interface communication protocol.
8. The network device of claim 6 or 7, wherein the out-of-band interface communication protocol is a network controller sideband interface protocol.
9. A control device, the control device comprising: a second processor and a second memory; wherein, the first and the second end of the pipe are connected with each other,
the second processor is configured to execute a program stored in the second memory to perform the steps of:
establishing serial port control information based on an out-of-band interface communication protocol; the serial port control information at least comprises an extension field which represents serial port control content in the out-of-band interface communication protocol; the out-of-band interface communication protocol is used for defining the data format of the serial port control information for executing the serial port control operation; the serial port control information is obtained by expanding the out-of-band interface communication protocol;
sending the serial port control information to network equipment so that the network equipment executes corresponding operation on a serial port based on the serial port control content in the extension field; wherein the extension field includes at least a control type and a control parameter.
10. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of any one of claims 1 to 5.
CN201811574355.6A 2018-12-21 2018-12-21 Serial port communication method, network equipment, control equipment and storage medium Active CN109522256B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811574355.6A CN109522256B (en) 2018-12-21 2018-12-21 Serial port communication method, network equipment, control equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811574355.6A CN109522256B (en) 2018-12-21 2018-12-21 Serial port communication method, network equipment, control equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109522256A CN109522256A (en) 2019-03-26
CN109522256B true CN109522256B (en) 2022-10-21

Family

ID=65796533

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811574355.6A Active CN109522256B (en) 2018-12-21 2018-12-21 Serial port communication method, network equipment, control equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109522256B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110071914B (en) * 2019-04-03 2022-07-01 广州视源电子科技股份有限公司 Communication method, frame structure construction method, device, MCU, system and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217416A (en) * 2007-12-27 2008-07-09 重庆大学 A network synthesis integrated debugging and testing system
CN104821834A (en) * 2015-04-07 2015-08-05 安徽康海时代科技有限公司 Serial server
CN205263730U (en) * 2015-12-29 2016-05-25 山东海量信息技术研究院 Novel IO riser integrated circuit board based on POWER platform

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN100459547C (en) * 2006-08-09 2009-02-04 华为技术有限公司 Communication system and method between serial boards
CN102722743B (en) * 2012-05-22 2015-07-22 深圳市斯凯荣科技有限公司 Remote wireless smart card, smart card terminal equipment and remote wireless smart card transmission system
CN103150262B (en) * 2013-04-02 2015-08-12 无锡江南计算技术研究所 Pipeline access means
CN105897471A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Out-of-band management system and out-of-band management method
US10467154B2 (en) * 2017-02-10 2019-11-05 Qualcomm Incorporated Multi-port multi-sideband-GPIO consolidation technique over a multi-drop serial bus
CN109032995B (en) * 2018-08-21 2022-03-04 郑州云海信息技术有限公司 Data information transmission method, device, equipment and storage medium

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101217416A (en) * 2007-12-27 2008-07-09 重庆大学 A network synthesis integrated debugging and testing system
CN104821834A (en) * 2015-04-07 2015-08-05 安徽康海时代科技有限公司 Serial server
CN205263730U (en) * 2015-12-29 2016-05-25 山东海量信息技术研究院 Novel IO riser integrated circuit board based on POWER platform

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
"Research on Serial ATA Hard Disk Initialization";Wei Wu;《2009 International Workshop on Intelligent Systems and Applications》;20091231;1-6 *
"基于特定协议的串口通信";黄军娜等;《微计算机信息》;20061130;8-9,58 *

Also Published As

Publication number Publication date
CN109522256A (en) 2019-03-26

Similar Documents

Publication Publication Date Title
CN107132808B (en) Programmable controller, control method thereof, and recording medium
CN112653600A (en) Network card performance testing method and device based on USB network card and electronic equipment
CN113938531A (en) Data transmission method, device, equipment and medium
CN109522256B (en) Serial port communication method, network equipment, control equipment and storage medium
CN105162667A (en) Method and device for configuration of virtual machine
CN105975415A (en) Peripheral device management control apparatus, method and system
CN116743883B (en) Intelligent network card, data processing system and working method thereof
CN113407212A (en) Remote upgrading method and device, terminal equipment and storage medium
WO2015117378A1 (en) Method and related system for adaptively configuring port, and computer storage medium
CN112422485B (en) Communication method and device of transmission control protocol
CN108306757B (en) Programmable data plane virtual layer construction method and storage medium
CN103873294A (en) Keep-alive method and device for PPP (Point-to-Point Protocol) link during ISSU (In Service Software Upgrade) process
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN107451435B (en) Management and control method, management and control machine and management and control system of hardware encryption machine
CN113472878B (en) Method and device for realizing file dragging transmission in VNC by using browser plug-in
CN114979058A (en) CAN multi-mailbox multiplexing processing method and system
CN108928213B (en) Parameter configuration method of control panel, control panel and controlled equipment
CN112583479A (en) Communication method, device and medium of optical fiber communication equipment and optical fiber communication equipment
CN107454021B (en) Communication method and device
CN109587363B (en) Modem
WO2018133792A1 (en) Data processing method and voice data card
CN112445659B (en) Multi-protocol high-speed serdes test implementation method and system
CN110516413A (en) A kind of method, system, equipment and the readable storage medium storing program for executing of licensing storage
CN111031233A (en) Digital image processing frame rate control method and device
CN111147134B (en) Data transmission device and method, data test system, and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant