Virtual serial port control method, device, equipment and storage medium

By receiving network protocol packets and synchronizing configuration information, and enabling the corresponding configuration model, the problem of fixed configuration parameters of serial port boards on the VPX platform is solved, and maintenance efficiency is improved.

CN118573514BActive Publication Date: 2024-11-19深圳市磐鼎科技有限公司
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202410946978.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-16
Publication Date
2024-11-19
Estimated Expiration
2044-07-16

AI Technical Summary

Technical Problem

When the existing technology remotely controls the serial port board on the VPX platform, the configuration parameters are fixed and cannot adapt to different business needs, resulting in inefficient maintenance.

Method used

By receiving network protocol packets, mapping to the virtual serial port, collecting current configuration information, synchronizing to the data domain of the serial port BMC, returning the frame management data through the switch board, and enabling the corresponding configuration model according to the comparison results, realizing flexible configuration of the serial port board.

Benefits of technology

It realizes the virtual serial port adaptation of different configuration models based on the remote control serial port board on the VPX platform, improving maintenance efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118573514B_ABST
    Figure CN118573514B_ABST
Patent Text Reader

Abstract

The present invention discloses a virtual serial port control method, device, equipment and storage medium, the method comprising: receiving a network protocol packet, and mapping the network protocol packet to a corresponding virtual serial port; collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol; returning the frame management data through a switch board, and writing the frame management data to the second data domain of the serial port BMC based on the IPMB of a preset protocol; comparing the current configuration information of the first data domain with the frame management data of the second data domain, and enabling the corresponding configuration model according to the comparison result. Since the present invention enables the corresponding configuration model according to the comparison result of the first data domain and the second data domain of the serial port BMC, it is realized that the virtual serial port on the remote control serial port board on the VPX platform is adapted to different configuration models, thereby improving the maintenance efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of servers, and in particular to a virtual serial port control method, device, equipment and storage medium. Background Art

[0002] The existing technology is based on the default localized configuration of the remote control serial port board on the VPX platform, and only supports the configuration method of fixed parameters. If the configuration parameters (such as baud rate, port number, IP address) need to be changed, the serial port cable needs to be manually configured to the management serial port of the serial port board, and then reinitialized, resulting in the future configuration being solidified. It is not suitable for adapting serial ports for different services, resulting in low maintenance efficiency.

[0003] Therefore, there is an urgent need for a virtual serial port control method that can adapt the virtual serial port on the remote control serial port board on the VPX platform to different configuration models, thereby improving maintenance efficiency. Summary of the invention

[0004] The main purpose of the present invention is to provide a virtual serial port control method, device, equipment and storage medium, aiming to solve the technical problem of how to remotely control the virtual serial port on the serial port board on the VPX platform to adapt to different configuration models.

[0005] To achieve the above object, the present invention provides a virtual serial port control method, the method comprising the following steps:

[0006] Receive a network protocol packet and map the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board;

[0007] Collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol;

[0008] Return the frame management data through the switch board, and write the frame management data into the second data field of the serial port BMC based on the IPMB of the preset protocol;

[0009] The current configuration information of the first data domain is compared with the chassis management data of the second data domain, and a corresponding configuration model is enabled according to the comparison result.

[0010] Optionally, before the step of receiving a network protocol packet and mapping the network protocol packet to a corresponding virtual serial port, the method further includes:

[0011] Add interfaces for querying serial port models and configuring serial port models on the switch board;

[0012] Divide the serial port BMC into a first data domain and a second data domain, wherein the first data domain is used to store current configuration information collected by the serial port board, and the second data domain is used to store chassis management data;

[0013] Adding a query and configuration interface for interacting with the switch board to the serial port BMC, wherein the query and configuration interface for interacting with the switch board uses an IPMB based on a preset protocol for communication;

[0014] An interface for data synchronization with a serial port board system is added to the serial port BMC, and the data synchronization interface uses an IPMB based on a serial port protocol for communication.

[0015] Optionally, the current configuration information includes a serial port model, an IP address, a baud rate, a port number, a device number, and a serial port mode of the virtual serial port;

[0016] Accordingly, the step of collecting the current configuration information of the virtual serial port includes:

[0017] Get the IP address of the network port by starting network port monitoring and determine whether there is a server model.

[0018] If the server model exists, close the server model and traverse the status of the virtual serial port;

[0019] According to the traversal result, the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port are obtained.

[0020] Optionally, the step of comparing the current configuration information of the first data domain with the chassis management data of the second data domain, and enabling a corresponding configuration model according to the comparison result includes:

[0021] Comparing the current configuration information with the server value domain in the chassis management data to determine whether to enable the server model;

[0022] Comparing the current configuration information with the virtual value domain in the chassis management data to determine whether to enable the virtual model;

[0023] Comparing the current configuration information with the UDP value domain in the chassis management data to determine whether to enable the UDP model;

[0024] The current configuration information is compared with the client value domain in the chassis management data to determine whether to enable the client model.

[0025] Optionally, after the step of returning the chassis management data through the switch board and writing the chassis management data into the second data field of the serial port BMC based on the IPMB of the preset protocol, the method further includes:

[0026] Determining whether a user triggers a configuration command based on the chassis management data;

[0027] If the user triggers a configuration command, comparing the chassis management data with the configuration in the configuration command to see if they are consistent;

[0028] If the chassis management data is consistent with the configuration in the configuration command, obtaining the status information of the serial port board;

[0029] Comparing the status information of the serial port board with the chassis management data to obtain a status comparison result;

[0030] The corresponding configuration model is enabled based on the status comparison result.

[0031] Optionally, the step of enabling a corresponding configuration model based on the status comparison result includes:

[0032] If the status comparison result indicates that the status information of the serial port board is inconsistent with the chassis management data, determining whether the server model needs to be enabled;

[0033] If you need to enable the server model, send the server model enable command to the serial port board;

[0034] If the client model port status is inconsistent, send the client model open command to the serial port board.

[0035] Optionally, if the server model needs to be enabled, after the step of sending the server model enable instruction to the serial port board, the method further includes:

[0036] If the client model port status is consistent, then check whether the UDP model port status is consistent;

[0037] If the UDP model port status is inconsistent, send the UDP model open command to the serial port board;

[0038] If the UDP model port status is consistent, then check whether the virtual model port status is consistent. When the virtual model port status is inconsistent, send a virtual model start command to the serial port board.

[0039] In addition, to achieve the above object, the present invention also proposes a virtual serial port control device, the device comprising:

[0040] A data mapping module, used for receiving a network protocol packet and mapping the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board;

[0041] An information collection module, used for collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol;

[0042] An information synchronization module, used for returning the frame management data through the switch board, and writing the frame management data into the second data domain of the serial port BMC based on the IPMB of the preset protocol;

[0043] The model selection module is used to compare the current configuration information of the first data domain with the chassis management data of the second data domain, and enable the corresponding configuration model according to the comparison result.

[0044] In addition, to achieve the above-mentioned purpose, the present invention also proposes a virtual serial port control device, which includes: a memory, a processor, and a virtual serial port control program stored in the memory and executable on the processor, wherein the virtual serial port control program is configured to implement the steps of the virtual serial port control method described above.

[0045] In addition, to achieve the above object, the present invention further proposes a storage medium, on which a virtual serial port control program is stored, and when the virtual serial port control program is executed by a processor, the steps of the virtual serial port control method described above are implemented.

[0046] The present invention receives a network protocol packet and maps the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debugging serial port data of a single board; collects the current configuration information of the virtual serial port, and synchronizes the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through a switching board, and writes the frame management data to the second data domain of the serial port BMC based on the IPMB of a preset protocol; compares the current configuration information of the first data domain with the frame management data of the second data domain, and enables the corresponding configuration model according to the comparison result. Since the present invention synchronizes the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switching board, and writes the frame management data to the second data domain of the serial port BMC based on the IPMB of the preset protocol, and finally enables the corresponding configuration model according to the comparison result of the first data domain and the second data domain of the serial port BMC, compared with the prior art, the present invention realizes the adaptation of different configuration models of the virtual serial port on the remote control serial port board based on the VPX platform, thereby improving the maintenance efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] Figure 1 It is a flowchart of the first embodiment of the virtual serial port control method of the present invention;

[0048] Figure 2 It is a schematic diagram of hardware connection in the virtual serial port control method of the present invention;

[0049] Figure 3 A schematic diagram of a specific implementation logic of the virtual serial port control method of the present invention;

[0050] Figure 4 It is a flowchart of the second embodiment of the virtual serial port control method of the present invention;

[0051] Figure 5 It is a flowchart of a third embodiment of a virtual serial port control method of the present invention;

[0052] Figure 6 It is a structural block diagram of the first embodiment of the virtual serial port control device of the present invention;

[0053] Figure 7 It is a structural diagram of a virtual serial port control device in a hardware operating environment involved in an embodiment of the present invention.

[0054] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION

[0055] It should be understood that the specific embodiments described herein are only used to explain the present invention, and are not used to limit the present invention.

[0056] The embodiment of the present invention provides a virtual serial port control method, referring to Figure 1 , Figure 1 FIG. 4 is a flow chart of a first embodiment of a virtual serial port control method according to the present invention.

[0057] In this embodiment, the virtual serial port control method includes the following steps:

[0058] Step S10: receiving a network protocol packet, and mapping the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debugging serial port data of the single board.

[0059] It should be noted that the execution subject of this embodiment can be a computer server device with data processing, network communication and program running functions, such as a server, a tablet computer, a personal computer, etc., or an electronic device capable of realizing the above functions, a virtual serial port control device, etc. The following takes a virtual serial port control system (hereinafter referred to as the system) including a virtual serial port control device as an example to illustrate this embodiment and the following embodiments.

[0060] For example, refer to Figure 2 , Figure 2This is a hardware connection diagram of the virtual serial port control method of the present invention. On the VPX platform, a switching board is used to form an intercommunication network with the serial port board, single board A and single board B; single board A and single board B respectively convert the data of their own debugging serial ports into network protocol packets; then the serial port board is managed through the PC end, for example, a localized command is used to start multiple socat service instructions of the serial port (UDP mode, virtualization mode), and the received network protocol packets are mapped to the virtual serial ports A and B of the serial port board.

[0061] It should be noted that a single board is a functional module composed of a single PCB board. It does not necessarily require a backplane connection, and can also achieve its function through cable jumper or stacked connection. A single board is usually an independent hardware module with a relatively single function, used to perform specific tasks or provide specific functions.

[0062] A switch board refers to a board or module that implements data exchange functions in a computer network. It is usually installed in devices such as switches and routers. The main function of a switch board is to forward received data frames or packets to the target device to achieve communication between networks. It is responsible for data exchange within the network, especially data forwarding within a local area network. A switch board usually contains multiple interfaces for physical connection with external devices.

[0063] A serial port board (or interface board) is a board or module used in computer hardware to connect different devices. A serial port board is used to provide a serial interface to achieve data transmission between a computer and external devices.

[0064] This embodiment can centrally manage one or more serial port boards through the frame, and can centrally configure one or more serial port boards at the same time. It supports simultaneous configuration of a single port and multiple ports on each serial port board, and also supports users to flexibly configure according to their own needs. A single board failure can be directly replaced. The frame management actively synchronizes data and synchronizes the serial port configuration to the serial port board.

[0065] In a specific implementation, in order to implement centralized management of the chassis, before step S10, the following steps are further included:

[0066] Step S01: adding an interface for querying the serial port model and an interface for configuring the serial port model on the switch board.

[0067] Step S02: Divide the serial port BMC into a first data domain and a second data domain, wherein the first data domain is used to store current configuration information collected by the serial port board, and the second data domain is used to store chassis management data.

[0068] Step S03: adding a query and configuration interface for interacting with the switch board to the serial port BMC, wherein the query and configuration interface for interacting with the switch board communicates using an IPMB based on a preset protocol.

[0069] Step S04: adding an interface for data synchronization with the serial port board system to the serial port BMC, wherein the data synchronization interface communicates using IPMB based on the serial port protocol.

[0070] It should be noted that by dividing the first data field and the second data field on the serial port BMC, a data proxy transfer function is added to the serial port board. The above-mentioned preset protocol can be I2C or other transmission protocols that can achieve the same or similar functions, which is not limited in this embodiment.

[0071] Step S20: collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol.

[0072] It should be noted that the above virtual serial port is located on the serial port board, for example Figure 2 Serial port A and serial port B in.

[0073] It should be explained that the current configuration information includes the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port.

[0074] The serial port models of the virtual serial port include server model, virtual model, UDP model and client model, and the serial port modes include RS232, RS485 and RS422.

[0075] Step S30: Return the frame management data through the switch board, and write the frame management data into the second data field of the serial port BMC based on the IPMB of the preset protocol.

[0076] It should be noted that the chassis management data covers the basic information of the chassis (system), status data, performance data, configuration management, alarm and log management, remote management, etc. Through comprehensive data monitoring and management, the stable operation and efficient work of the chassis can be ensured.

[0077] Step S40: Compare the current configuration information of the first data domain with the chassis management data of the second data domain, and enable a corresponding configuration model according to the comparison result.

[0078] In a specific implementation, the server model can be enabled by comparing the current configuration information with the server value field in the frame management data; the virtual model can be enabled by comparing the current configuration information with the virtual value field in the frame management data; the UDP model can be enabled by comparing the current configuration information with the UDP value field in the frame management data; and the client model can be enabled by comparing the current configuration information with the client value field in the frame management data.

[0079] It should be understood that if the current configuration information is inconsistent with the server value domain in the frame management data, the server model is enabled; if the current configuration information is inconsistent with the virtual value domain in the frame management data, the virtual model is enabled; if the current configuration information is inconsistent with the UDP value domain in the frame management data, the UDP model is enabled; if the current configuration information is inconsistent with the client value domain in the frame management data, the client model is enabled.

[0080] For example, refer to Figure 3 , Figure 3 The present invention is a logic diagram for the specific implementation of the virtual serial port control method. On the VPX platform, a switch board is used to form an intercommunication network with the serial port board, single board A and single board B. Serial port A and serial port B are virtual serial ports on the serial port board. On the serial port BMC, a data proxy transfer function is added, and a first data domain for storing the current configuration information collected by the serial port board and a second data domain for storing the frame management data are added. A query and configuration interface for interacting with the switch board is added to the serial port BMC, and the query and configuration interface for interacting with the switch board uses IPMB based on the I2C protocol for communication; an interface for data synchronization with the serial port board system is added to the serial port BMC, and the data synchronization interface uses IPMB based on the serial port protocol for communication.

[0081] This embodiment receives a network protocol packet and maps the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board; collects the current configuration information of the virtual serial port, and synchronizes the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switch board, and writes the frame management data to the second data field of the serial port BMC based on the IPMB of the preset protocol; compares the current configuration information of the first data field with the frame management data of the second data field, and enables the corresponding configuration model according to the comparison result. Since this embodiment synchronizes the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switch board, and writes the frame management data to the second data field of the serial port BMC based on the IPMB of the preset protocol, and finally enables the corresponding configuration model according to the comparison result of the first data field and the second data field of the serial port BMC, compared with the prior art, this embodiment realizes the adaptation of different configuration models to the virtual serial port on the remote control serial port board based on the VPX platform, thereby improving the maintenance efficiency.

[0082] refer to Figure 4 , Figure 4 FIG. 4 is a flow chart of a second embodiment of a virtual serial port control method according to the present invention.

[0083] Based on the above first embodiment, in this embodiment, step S20 includes:

[0084] Step S201: obtain the IP address of the network port by starting network port monitoring, and determine whether there is a server model.

[0085] Step S202: If the server model exists, close the server model and traverse the status of the virtual serial port.

[0086] Step S203: According to the traversal result, the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port are obtained.

[0087] This embodiment obtains the IP of the network port by starting network port monitoring, and determines whether there is a server model; if the server model exists, the server model is closed, and the status of the virtual serial port is traversed; according to the traversal result, the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port are obtained, and then the current configuration information is synchronized to the first data domain of the serial port BMC based on the IPMB of the serial port protocol, and then the frame management data is returned through the switch board, and the frame management data is written to the second data domain of the serial port BMC based on the IPMB of the preset protocol; the current configuration information of the first data domain is compared with the frame management data of the second data domain, and the corresponding configuration model is enabled according to the comparison result. Compared with the prior art, this embodiment realizes the adaptation of different configuration models to the virtual serial port on the remote control serial port board based on the VPX platform, thereby improving maintenance efficiency.

[0088] refer to Figure 5 , Figure 5 FIG. 4 is a flow chart of a third embodiment of a virtual serial port control method according to the present invention.

[0089] Based on the above embodiments, in this embodiment, after step S30, the following steps are further included:

[0090] Step S311: determining whether a configuration command is triggered by a user based on the chassis management data.

[0091] Step S312: If the user triggers a configuration command, compare the chassis management data with the configuration in the configuration command to see if they are consistent.

[0092] Step S313: If the chassis management data is consistent with the configuration in the configuration command, the status information of the serial port board is obtained.

[0093] Step S314: Compare the status information of the serial port board with the chassis management data to obtain a status comparison result.

[0094] Step S315: activating a corresponding configuration model based on the status comparison result.

[0095] In a specific implementation, if the status comparison result indicates that the status information of the serial port board is inconsistent with the frame management data, it is determined whether the server model needs to be enabled; if the server model needs to be enabled, a server model enable instruction is sent to the serial port board; if the client model port status is inconsistent, a client model enable instruction is sent to the serial port board, so that the serial port board enables the corresponding configuration model based on the client model enable instruction.

[0096] It should be noted that if the server model needs to be enabled, after the step of sending the server model enable command to the serial port board, it also includes: if the client model port status is consistent, then checking whether the UDP model port status is consistent; if the UDP model port status is inconsistent, then sending the UDP model enable command to the serial port board; if the UDP model port status is consistent, then checking whether the virtual model port status is consistent. When the virtual model port status is inconsistent, sending the virtual model enable command to the serial port board.

[0097] This embodiment receives a network protocol packet and maps the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of a single board; collects the current configuration information of the virtual serial port, and synchronizes the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switch board, and writes the frame management data to the second data domain of the serial port BMC based on the IPMB of the preset protocol; determines whether the user triggers a configuration command based on the frame management data; if the user triggers a configuration command, compares the frame management data with the configuration in the configuration command to see if they are consistent; if the frame management data is consistent with the configuration in the configuration command, obtains the status information of the serial port board; compares the status information of the serial port board with the frame management data to obtain a status comparison result; and enables the corresponding configuration model based on the status comparison result. Compared with the prior art, this embodiment realizes the adaptation of different configuration models to the virtual serial port on the remote control serial port board on the VPX platform, thereby improving maintenance efficiency.

[0098] In addition, an embodiment of the present invention further provides a storage medium, on which a virtual serial port control program is stored. When the virtual serial port control program is executed by a processor, the steps of the virtual serial port control method described above are implemented.

[0099] Reference Figure 6 , Figure 6 It is a structural block diagram of the first embodiment of the virtual serial port control device of the present invention.

[0100] like Figure 6 As shown, the virtual serial port control device proposed in the embodiment of the present invention includes: a data mapping module 601 , an information collection module 602 , an information synchronization module 603 and a model selection module 604 .

[0101] The data mapping module 601 is used to receive a network protocol packet and map the network protocol packet to a corresponding virtual serial port. The network protocol packet is obtained by converting the debugging serial port data of the single board.

[0102] The information collection module 602 is used to collect the current configuration information of the virtual serial port, and synchronize the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol.

[0103] The information synchronization module 603 is used to return the chassis management data through the switch board, and write the chassis management data into the second data field of the serial port BMC based on the IPMB of the preset protocol.

[0104] The model selection module 604 is used to compare the current configuration information of the first data domain with the chassis management data of the second data domain, and enable the corresponding configuration model according to the comparison result.

[0105] This embodiment receives a network protocol packet and maps the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board; collects the current configuration information of the virtual serial port, and synchronizes the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switch board, and writes the frame management data to the second data field of the serial port BMC based on the IPMB of the preset protocol; compares the current configuration information of the first data field with the frame management data of the second data field, and enables the corresponding configuration model according to the comparison result. Since this embodiment synchronizes the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol; returns the frame management data through the switch board, and writes the frame management data to the second data field of the serial port BMC based on the IPMB of the preset protocol, and finally enables the corresponding configuration model according to the comparison result of the first data field and the second data field of the serial port BMC, compared with the prior art, this embodiment realizes the adaptation of different configuration models to the virtual serial port on the remote control serial port board based on the VPX platform, thereby improving the maintenance efficiency.

[0106] Based on the first embodiment of the virtual serial port control device of the present invention, a second embodiment of the virtual serial port control device of the present invention is proposed.

[0107] In this embodiment, the information collection module 602 is also used to obtain the IP of the network port by starting network port monitoring, and determine whether there is a server model; if the server model exists, the server model is closed, and the status of the virtual serial port is traversed; according to the traversal results, the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port are obtained.

[0108] Other embodiments or specific implementations of the virtual serial port control device of the present invention may refer to the above-mentioned method embodiments, which will not be described in detail here.

[0109] The present application provides a virtual serial port control device, which includes: at least one processor; and a memory connected to the at least one processor in communication; wherein the memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the virtual serial port control method in the above-mentioned embodiment 1.

[0110] Reference below Figure 7 , which shows a schematic diagram of the structure of a virtual serial port control device suitable for implementing the embodiment of the present application. The virtual serial port control device in the embodiment of the present application may include but is not limited to mobile terminals such as mobile phones, laptops, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (Portable Application Descriptions), PMPs (Portable Media Players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 7 The virtual serial port control device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present application.

[0111] like Figure 7As shown, the virtual serial port control device may include a processing device 1001 (such as a central processing unit, a graphics processor, etc.), which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM: Read Only Memory) 1002 or a program loaded from a storage device 1003 to a random access memory (RAM: Random Access Memory) 1004. In RAM1004, various programs and data required for the operation of the virtual serial port control device are also stored. The processing device 1001, ROM1002 and RAM1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD: Liquid Crystal Display), a speaker, a vibrator, etc.; a storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the virtual serial port control device to communicate with other devices wirelessly or wired to exchange data. Although the figure shows a virtual serial port control device with various systems, it should be understood that it is not required to implement or have all the systems shown. More or fewer systems can be implemented or provided instead.

[0112] In particular, according to the embodiments disclosed in the present application, the process described above with reference to the flowchart can be implemented as a computer software program. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes a program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network through a communication device, or installed from a storage device 1003, or installed from a ROM 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the method of the embodiment disclosed in the present application are executed.

[0113] The virtual serial port control device provided by the present application adopts the virtual serial port control method in the above embodiment, which can solve the technical problem of how to adapt the virtual serial port on the remote control serial port board on the VPX platform to different configuration models. Compared with the prior art, the beneficial effects of the virtual serial port control device provided by the present application are the same as the beneficial effects of the virtual serial port control method provided by the above embodiment, and the other technical features in the virtual serial port control device are the same as the features disclosed in the method of the previous embodiment, which will not be repeated here.

[0114] It should be understood that the various parts disclosed in this application can be implemented by hardware, software, firmware or a combination thereof. In the description of the above embodiments, specific features, structures, materials or characteristics can be combined in any one or more embodiments or examples in a suitable manner.

[0115] The above is only a specific implementation of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art who is familiar with the present technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

[0116] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0117] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0118] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a terminal device (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present invention.

[0119] The above are only preferred embodiments of the present invention, and are not intended to limit the patent scope of the present invention. Any equivalent structure or equivalent process transformation made using the contents of the present invention specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present invention.

Claims

1. A virtual serial port control method, characterized in that: The method comprises: Receive a network protocol packet and map the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board; Collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data field of the serial port BMC based on the IPMB of the serial port protocol; Return the frame management data through the switch board, and write the frame management data into the second data field of the serial port BMC based on the IPMB of the preset protocol; The current configuration information of the first data domain is compared with the chassis management data of the second data domain, and a corresponding configuration model is enabled according to the comparison result.

2. The virtual serial port control method according to claim 1, characterized in that: Before the step of receiving a network protocol packet and mapping the network protocol packet to a corresponding virtual serial port, the method further includes: Add interfaces for querying serial port models and configuring serial port models on the switch board; Divide the serial port BMC into a first data domain and a second data domain, wherein the first data domain is used to store current configuration information collected by the serial port board, and the second data domain is used to store chassis management data; Adding a query and configuration interface for interacting with the switch board to the serial port BMC, wherein the query and configuration interface for interacting with the switch board uses an IPMB based on a preset protocol for communication; An interface for data synchronization with a serial port board system is added to the serial port BMC, and the data synchronization interface uses an IPMB based on a serial port protocol for communication.

3. The virtual serial port control method according to claim 1, characterized in that: The current configuration information includes the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port; Accordingly, the step of collecting the current configuration information of the virtual serial port includes: Get the IP address of the network port by starting network port monitoring and determine whether there is a server model. If the server model exists, close the server model and traverse the status of the virtual serial port; According to the traversal result, the serial port model, IP address, baud rate, port number, device number and serial port mode of the virtual serial port are obtained.

4. The virtual serial port control method according to claim 1, characterized in that: The step of comparing the current configuration information of the first data domain with the chassis management data of the second data domain, and enabling the corresponding configuration model according to the comparison result, includes: Comparing the current configuration information with the server value domain in the chassis management data to determine whether to enable the server model; Comparing the current configuration information with the virtual value domain in the chassis management data to determine whether to enable the virtual model; Comparing the current configuration information with the UDP value domain in the chassis management data to determine whether to enable the UDP model; The current configuration information is compared with the client value domain in the chassis management data to determine whether to enable the client model.

5. The virtual serial port control method according to claim 1, characterized in that: After the step of returning the frame management data through the switch board and writing the frame management data into the second data field of the serial port BMC based on the IPMB of the preset protocol, the method further includes: Determining whether a user triggers a configuration command based on the chassis management data; If the user triggers a configuration command, comparing the chassis management data with the configuration in the configuration command to see if they are consistent; If the chassis management data is consistent with the configuration in the configuration command, obtaining the status information of the serial port board; Comparing the status information of the serial port board with the chassis management data to obtain a status comparison result; The corresponding configuration model is enabled based on the status comparison result.

6. The virtual serial port control method according to claim 5, characterized in that: The step of enabling the corresponding configuration model based on the status comparison result includes: If the status comparison result indicates that the status information of the serial port board is inconsistent with the chassis management data, determining whether the server model needs to be enabled; If you need to enable the server model, send the server model enable command to the serial port board; If the client model port status is inconsistent, send the client model open command to the serial port board.

7. The virtual serial port control method according to claim 6, characterized in that: If the server model needs to be enabled, after the step of sending a server model enable instruction to the serial port board, the method further includes: If the client model port status is consistent, then check whether the UDP model port status is consistent; If the UDP model port status is inconsistent, send the UDP model open command to the serial port board; If the UDP model port status is consistent, then check whether the virtual model port status is consistent. When the virtual model port status is inconsistent, send a virtual model start command to the serial port board.

8. A virtual serial port control device, characterized in that: The device comprises: A data mapping module, used for receiving a network protocol packet and mapping the network protocol packet to a corresponding virtual serial port, wherein the network protocol packet is obtained by converting the debug serial port data of the single board; An information collection module, used for collecting the current configuration information of the virtual serial port, and synchronizing the current configuration information to the first data domain of the serial port BMC based on the IPMB of the serial port protocol; An information synchronization module, used for returning the frame management data through the switch board, and writing the frame management data into the second data domain of the serial port BMC based on the IPMB of the preset protocol; The model selection module is used to compare the current configuration information of the first data domain with the chassis management data of the second data domain, and enable the corresponding configuration model according to the comparison result.

9. A virtual serial port control device, characterized in that: The device comprises: a memory, a processor, and a virtual serial port control program stored in the memory and executable on the processor, wherein the virtual serial port control program is configured to implement the steps of the virtual serial port control method according to any one of claims 1 to 7.

10. A storage medium, characterized in that: The storage medium stores a virtual serial port control program, and when the virtual serial port control program is executed by the processor, the steps of the virtual serial port control method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Method for accessing indoor environment monitoring system to IPv6 network

    CN111314188A

  • Computer equipment and management method

    CN114385319A

  • Synchronous BMC configuration and operation within cluster of bmc

    US20150178095A1

  • Out-of-band query / configuration method for information of processor in server, and server

    WO2024082831A1