CN109522256A - A kind of serial port communication method, the network equipment, control equipment and storage medium - Google Patents

A kind of serial port communication method, the network equipment, control equipment and storage medium Download PDF

Info

Publication number
CN109522256A
CN109522256A CN201811574355.6A CN201811574355A CN109522256A CN 109522256 A CN109522256 A CN 109522256A CN 201811574355 A CN201811574355 A CN 201811574355A CN 109522256 A CN109522256 A CN 109522256A
Authority
CN
China
Prior art keywords
serial port
communication protocol
control information
port control
band 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.)
Granted
Application number
CN201811574355.6A
Other languages
Chinese (zh)
Other versions
CN109522256B (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

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

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computing Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Physics (AREA)
  • Quality & Reliability (AREA)
  • Communication Control (AREA)

Abstract

The embodiment of the invention discloses a kind of serial port communication method, the network equipment, control equipment and storage mediums, which comprises receives and controls information based on the serial ports with external tapping communication protocol;Wherein, the serial ports control information includes at least described with the extended field for characterizing serial ports control content in external tapping communication protocol;The serial ports control information is parsed, determines that serial ports controls content from the extended field of serial ports control information;Content is controlled based on the serial ports, corresponding operation is executed to serial ports.

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 of user application, the server has higher and higher requirements on the network on the basis of bearing data processing, which introduces the requirements of a large number of internet companies on 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, the existing control method needs to add an additional serial port line loop 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 above technical problems, embodiments of the present invention are expected 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 scheme, the out-of-band interface communication protocol is a network controller sideband interface protocol.
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 scheme, 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 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 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 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 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.
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, in step 101, the out-of-band interface communication protocol is an extended out-of-band interface communication protocol, a data format of serial control information for performing a serial control operation is defined in the extended out-of-band interface communication protocol, and the serial control information is established based on the extended out-of-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 port control content is determined from the extension field of the serial port 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 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, 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.
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 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.
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 the 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
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
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-SIheader is a command header), the manufacturer ID is manufacturer ID, OEM Payload Version is 0 as OEM Payload Version number, OEM Payload length is 0x0004 as OEM Payload length, but the OEM UART setup Type is 0x81 for defining the command Type as a serial port setting command, and UART portals in fields 24-27 for setting specific serial port parameters, such as baud rate, check method, stop control bit, etc.
After the intelligent network card receives the Get supported OEM Commands Response again, whether serial port operation based on the NCSI protocol is supported is judged, if so, the OEM NCSI UART Setting Command is acquired to configure serial port parameters; if not, the information is ignored.
3)OEM NCSI UART Write Command 0x82
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-SIheader is a Command header), the manufacturer ID is vendor ID, OEM Payload Version is 0 as OEM Payload Version number, OEM Payload length is 0x0008 as OEM Payload length, but where OEM Write Command Type in fields 00-23 is 0x82 for defining the Command Type as a Write serial Command. In fields 24-31 is a UARTwrite buffer for setting the contents of a particular write.
Here, when the smart card supports serial operation based on the NCSI protocol, the smart card executes serial Write operation after receiving the oemncsiart Write Command.
4)OEM NCSI UART Read Command 0x83
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-sigeader is command header), the manufacturer ID is vendor ID, OEM Payload Version is 0 OEM Payload Version number, OEM Payload length is 0x0008 OEM Payload length, but where OEM UART read Type is 0x83, the command Type is read serial command. In fields 24-31 is a UART readbuffer 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 NCSIUART 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 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, serial port control information is analyzed; 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 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 realize operations such as monitoring and management of the BMC on the intelligent network card.
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 port control content is determined from the extension field of the serial port 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 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.
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;
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.
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;
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.
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 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.
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 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.
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 true CN109522256A (en) 2019-03-26
CN109522256B 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)

Cited By (1)

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

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1909493A (en) * 2006-08-09 2007-02-07 华为技术有限公司 Communication system and method between serial boards
CN1983969A (en) * 2006-04-24 2007-06-20 华为技术有限公司 System and realization for re-directing interface network
CN101217416A (en) * 2007-12-27 2008-07-09 重庆大学 A network synthesis integrated debugging and testing system
CN103150262A (en) * 2013-04-02 2013-06-12 无锡江南计算技术研究所 Pipeline type serial interface flash memory access device
US20150181410A1 (en) * 2012-05-22 2015-06-25 Simo Holdings Inc. Remote wireless smart card, smart-card terminal unit and remote wireless smart card communication 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
CN105897471A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Out-of-band management system and out-of-band management method
WO2018147955A1 (en) * 2017-02-10 2018-08-16 Qualcomm Incorporated Multi-port multi-sideband-gpio consolidation technique over a multi-drop serial bus
CN109032995A (en) * 2018-08-21 2018-12-18 郑州云海信息技术有限公司 A kind of transmission method of data information, device, equipment and storage medium

Patent Citations (10)

* 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
CN1909493A (en) * 2006-08-09 2007-02-07 华为技术有限公司 Communication system and method between serial boards
CN101217416A (en) * 2007-12-27 2008-07-09 重庆大学 A network synthesis integrated debugging and testing system
US20150181410A1 (en) * 2012-05-22 2015-06-25 Simo Holdings Inc. Remote wireless smart card, smart-card terminal unit and remote wireless smart card communication system
CN103150262A (en) * 2013-04-02 2013-06-12 无锡江南计算技术研究所 Pipeline type serial interface flash memory access device
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
CN105897471A (en) * 2016-04-05 2016-08-24 浪潮电子信息产业股份有限公司 Out-of-band management system and out-of-band management method
WO2018147955A1 (en) * 2017-02-10 2018-08-16 Qualcomm Incorporated Multi-port multi-sideband-gpio consolidation technique over a multi-drop serial bus
CN109032995A (en) * 2018-08-21 2018-12-18 郑州云海信息技术有限公司 A kind of transmission method of data information, device, equipment and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
WEI WU: ""Research on Serial ATA Hard Disk Initialization"", 《2009 INTERNATIONAL WORKSHOP ON INTELLIGENT SYSTEMS AND APPLICATIONS》 *
黄军娜等: ""基于特定协议的串口通信"", 《微计算机信息》 *

Cited By (2)

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

Also Published As

Publication number Publication date
CN109522256B (en) 2022-10-21

Similar Documents

Publication Publication Date Title
WO2022227818A1 (en) Method and apparatus for network configuration, and smart home device
CN111880916B (en) Method, device, terminal, medium and host for processing multiple drawing tasks in GPU
CN107132808B (en) Programmable controller, control method thereof, and recording medium
CN109086175B (en) Board card testing method and device
CN115208951B (en) Request processing method, request processing device, electronic equipment and computer readable storage medium
EP3208723A1 (en) Usb wireless network card configuration method, host, usb wireless network card and communication system
CN103957198A (en) Sensor data receiving and converting method and system
CN109522256B (en) Serial port communication method, network equipment, control equipment and storage medium
CN113596832A (en) Network connection establishing method and device, storage medium and electronic device
CN110071914B (en) Communication method, frame structure construction method, device, MCU, system and medium
CN103676911A (en) Equipment control system and control method
CN103326889B (en) Communicate between a kind of new and old edition compatible method and device
CN112631632B (en) System upgrade method, framework, electronic device and readable storage medium
CN105975415A (en) Peripheral device management control apparatus, method and system
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
CN107885674B (en) Bluetooth device simulator, working method thereof and Bluetooth device operating system
CN108306757B (en) Programmable data plane virtual layer construction method and storage medium
CN107451435B (en) Management and control method, management and control machine and management and control system of hardware encryption machine
CN114442590A (en) Vehicle diagnosis method, apparatus, diagnosis communication device, server, and storage medium
CN112423068A (en) Smart television debugging method and device, mobile terminal and readable storage medium
CN109976778B (en) Software updating method and system of vehicle electronic product, upper computer and storage medium
CN109587363B (en) Modem
CN103473197A (en) Method and equipment for adaption of gateway device and Internet card
CN115460161B (en) Optical module code changing method, device, equipment 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