CN112732505A - Server serial port debugging method and device - Google Patents

Server serial port debugging method and device Download PDF

Info

Publication number
CN112732505A
CN112732505A CN202110026210.8A CN202110026210A CN112732505A CN 112732505 A CN112732505 A CN 112732505A CN 202110026210 A CN202110026210 A CN 202110026210A CN 112732505 A CN112732505 A CN 112732505A
Authority
CN
China
Prior art keywords
debugged
serial port
bluetooth
equipment
module
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.)
Withdrawn
Application number
CN202110026210.8A
Other languages
Chinese (zh)
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.)
Suzhou Inspur Intelligent Technology Co Ltd
Original Assignee
Suzhou Inspur Intelligent Technology Co 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 Suzhou Inspur Intelligent Technology Co Ltd filed Critical Suzhou Inspur Intelligent Technology Co Ltd
Priority to CN202110026210.8A priority Critical patent/CN112732505A/en
Publication of CN112732505A publication Critical patent/CN112732505A/en
Withdrawn legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2205Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested
    • G06F11/2221Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing using arrangements specific to the hardware being tested to test input/output devices or peripheral units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods

Abstract

The invention provides a method and a device for debugging a serial port of a server, wherein the method comprises the following steps: respectively connecting the equipment to be debugged in the server to a serial port expansion module with a Bluetooth module; pairing the Bluetooth equipment with the Bluetooth module, scanning each equipment to be debugged connected with the serial port expansion module, and setting the baud rate of the serial port according to the scanned equipment; in response to the completion of the setting of the baud rate of the serial port, the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging; the Bluetooth device marks the data to be sent based on the device to be debugged, and sends the marked data to the corresponding device to be debugged to debug the port of the corresponding device. By using the scheme of the invention, the reservation of the multi-chip serial port in hardware design can be saved, the layout space on a circuit board can be saved, and the debugging efficiency and the later-stage server operation and maintenance efficiency in the research and development process can be improved.

Description

Server serial port debugging method and device
Technical Field
The field relates to the field of computers, in particular to a method and equipment for debugging a serial port of a server.
Background
A server is one of computers that runs faster, is more heavily loaded, and is more expensive than a regular computer. The server provides calculation or application services for other clients (such as terminals like PC, smart phone, ATM and the like and even large equipment like train systems and the like) in the network. The server has high-speed CPU computing capability, long-time reliable operation, strong I/O external data throughput capability and better expansibility. Generally, a server has the capability of responding to a service request, supporting a service, and guaranteeing the service according to the service provided by the server. The server is used as an electronic device, and the internal structure of the server is very complex, but the difference with the internal structure of a common computer is not great, such as: CPU, hard disk, memory, system bus, etc.
Various electronic devices with data processing capability integrated on a server motherboard or other function boards, such as BIOS (basic input output system), BMC (baseboard management controller), CPLD (complex programmable logic device), VR chip (regulator), PCIE Switch chip (a high speed serial computer extended bus standard), etc., and a widely used method for exchanging information between peripheral devices is through a serial interface. The serial interface is called serial port for short, also called serial communication interface or serial communication interface, and is an extended interface adopting a serial communication mode. The serial communication needs to configure the baud rate, the baud rate represents the number of symbol symbols transmitted per second, and is a measure of the symbol transmission rate, and the baud rate is represented by the number of times of carrier modulation state change in unit time, and 1 baud means 1 symbol transmitted per second. In the field of server hardware design, because the number of chips needing to be communicated through serial ports on a circuit board is large, the serial ports are often required to be reserved one by one, so that later-stage software development, running state monitoring and the like are facilitated. The excessive serial port reservation can undoubtedly occupy the space of the circuit board greatly, when the layout space of the circuit board is compact, some serial ports are always sacrificed, the debugging frequency is not frequent, the excessive interfaces cause resource waste, and the serial port line is limited by the structural reason of the server when the actual serial port is debugged, and the serial port line can not be smoothly accessed under certain conditions, so that certain trouble is inevitably caused to the debugging work.
Disclosure of Invention
In view of this, an object of the embodiments of the present invention is to provide a method and an apparatus for debugging a serial port of a server, which can save the reservation of a multichip serial port in hardware design, save layout space on a circuit board, flexibly and conveniently debug the serial port of the server in multiple scenes, and improve the debugging efficiency in the research and development process and the operation and maintenance efficiency of the server in the later stage.
Based on the above object, an aspect of the embodiments of the present invention provides a method for debugging a serial port of a server, including the following steps:
respectively connecting the equipment to be debugged in the server to a serial port expansion module with a Bluetooth module;
pairing the Bluetooth equipment with the Bluetooth module, scanning each equipment to be debugged connected with the serial port expansion module, and setting the baud rate of the serial port according to the scanned equipment;
in response to the completion of the setting of the baud rate of the serial port, the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging;
the Bluetooth device marks the data to be sent based on the device to be debugged, and sends the marked data to the corresponding device to be debugged to debug the port of the corresponding device.
According to an embodiment of the present invention, pairing a bluetooth device with a bluetooth module, scanning each device to be debugged connected to a serial port extension module, and setting a baud rate of a serial port according to the scanned device includes:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as a value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate.
According to an embodiment of the present invention, in response to the completion of the setting of the baud rate of the serial port, the selecting, by the bluetooth device, a device to be debugged among the scanned devices and enabling the address selection port of the device to be debugged includes:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to a Bluetooth module;
and the Bluetooth module pulls down the address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module.
According to an embodiment of the present invention, making the bluetooth device mark data to be sent based on a device that needs to be debugged, and sending the marked data to the corresponding device that needs to be debugged to debug a port of the corresponding device includes:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to a Bluetooth module, and the Bluetooth module stores the marked data into a register of a serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks.
According to one embodiment of the invention, the serial port expansion module with the Bluetooth module comprises a serial port connected with the Bluetooth module, a serial port buffer area connected with a sending port and a receiving port of the device to be debugged, a register for storing data, a processor for reading the data from the register, processing the data and operating an address controller, the address controller for gating the device to be debugged and the Bluetooth module matched with the Bluetooth device.
In another aspect of the embodiments of the present invention, an apparatus for debugging a serial port of a server is further provided, where the apparatus includes:
the connection module is configured to connect the equipment to be debugged in the server to the serial port expansion module with the Bluetooth module respectively;
the setting module is configured to pair the Bluetooth equipment and the Bluetooth module, scan each equipment to be debugged connected with the serial port expansion module and set the baud rate of the serial port according to the scanned equipment;
the selection module is configured to respond to the completion of the baud rate setting of the serial port, and the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging;
and the processing module is configured to enable the Bluetooth device to mark the data to be sent based on the device needing debugging and send the marked data to the corresponding device needing debugging so as to debug the port of the corresponding device.
According to one embodiment of the invention, the setup module is further configured to:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as a value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate.
According to one embodiment of the invention, the selection module is further configured to:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to a Bluetooth module;
and the Bluetooth module pulls down the address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module.
According to one embodiment of the invention, the processing module is further configured to:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to a Bluetooth module, and the Bluetooth module stores the marked data into a register of a serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks.
According to one embodiment of the invention, the serial port expansion module with the Bluetooth module comprises a serial port connected with the Bluetooth module, a serial port buffer area connected with a sending port and a receiving port of the device to be debugged, a register for storing data, a processor for reading the data from the register, processing the data and operating an address controller, the address controller for gating the device to be debugged and the Bluetooth module matched with the Bluetooth device.
The invention has the following beneficial technical effects: according to the method for debugging the serial port of the server, the equipment to be debugged in the server is respectively connected to the serial port expansion module with the Bluetooth module; pairing the Bluetooth equipment with the Bluetooth module, scanning each equipment to be debugged connected with the serial port expansion module, and setting the baud rate of the serial port according to the scanned equipment; in response to the completion of the setting of the baud rate of the serial port, the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging; the technical scheme is that the data to be sent are marked on the basis of the equipment needing debugging, the marked data are sent to the corresponding equipment needing debugging so as to debug the port of the corresponding equipment, reservation of multi-chip serial ports in hardware design can be omitted, layout space on a circuit board is saved, serial port debugging is flexibly and conveniently carried out on a server in multiple scenes, and debugging efficiency in the research and development process and operation and maintenance efficiency of a later-stage server are improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other embodiments can be obtained by using the drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for server serial port debugging according to an embodiment of the present invention;
fig. 2 is a schematic diagram of a device for server serial port debugging according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating an external connection relationship of a serial port expansion module according to an embodiment of the present invention;
fig. 4 is a schematic diagram of an internal connection relationship of a serial port expansion module according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the following embodiments of the present invention are described in further detail with reference to the accompanying drawings.
Based on the above purpose, a first aspect of the embodiments of the present invention provides an embodiment of a method for debugging a serial port of a server. Fig. 1 shows a schematic flow diagram of the method.
As shown in fig. 1, the method may include the steps of:
s1 connecting the device to be debugged in the server to the serial port expansion module with Bluetooth module, the device to be debugged having receiving port and sending port, the receiving port and sending port of each device to be debugged being connected to the receiving port and sending port of the substring channel of the serial port expansion module, as shown in FIG. 3, the receiving port and sending port of the device to be debugged 1 being connected to the receiving port and sending port of the channel CH1 in the sub-serial port of the serial port expansion module, the receiving port and sending port of the device to be debugged 2 being connected to the receiving port and sending port of the channel CH2 in the sub-serial port of the serial port expansion module, the channel of the main serial port of the serial port expansion module being set to be CH0, the channel being used to connect the Bluetooth module, the serial port expansion module further including address controller, ADDR _ T [3:0] as address selection port, the function of selecting the sub-serial, for example, when a sub-serial port CH1 needs to be selected for data transmission, the Bluetooth module pulls down the corresponding ADDR _ T0, the processor selects CH1 after identification, and the ADDR _ R [3:0] is used as an address feedback port, and the function is that the slave Bluetooth module identifies the response of the sub-serial port, for example, when the sub-serial port CH1 is communicated with the master serial port, the processor identifies and pulls down the corresponding ADDR _ R0, and the slave Bluetooth module can know that the communication object is CH1 at the moment;
s2, using the Bluetooth device and the Bluetooth module to pair and scan each device to be debugged connected with the serial port expansion module and setting the baud rate of the serial port according to the scanned device, pairing the Bluetooth device at the host end with the Bluetooth module on the serial port expansion module, scanning each device to be debugged connected with the serial port expansion module after pairing, and setting the baud rate of the main serial port on the serial port expansion module according to the scanned device to enable the Bluetooth module to access the sub-serial port;
s3, in response to the completion of the setting of the baud rate of the serial port, the Bluetooth device selects the device to be debugged from the scanned devices and enables the address selection port of the device to be debugged, the Bluetooth device on the host selects the device to be debugged, and enables the port of the device on the serial port expansion module according to the device to be debugged;
s4 makes the bluetooth device mark data to be transmitted based on the device to be debugged, and transmits the marked data to the corresponding device to be debugged to debug the port of the corresponding device.
Through the technical scheme of the invention, the reservation of the serial ports of the multiple chips in hardware design can be saved, the layout space on a circuit board is saved, the serial ports of the server can be flexibly and conveniently debugged in multiple scenes, and the debugging efficiency and the later-stage operation and maintenance efficiency of the server in the research and development process are improved.
In a preferred embodiment of the present invention, pairing a bluetooth device with a bluetooth module, scanning each device to be debugged connected to a serial port extension module, and setting a baud rate of a serial port according to the scanned device includes:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as a value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate. The slave-side Bluetooth module firstly configures the baud rate of a main serial port CH0 according to the baud rate (default 9600) of a sub-serial port CH1 to communicate with a sub-string port CH1, when the slave-side Bluetooth module communicates with a CH1 sub-string port, if CH1 sub-string port equipment is in a normal operation state, the slave-side Bluetooth module responds, a processor in a serial port expansion module pulls down an address feedback port of CH1, and at the moment, the Bluetooth module completes identity identification of the CH1 sub-string port equipment and marks the sub-string as 1. Repeating the above process completes the identification and marking of all sub-serial ports (CH2 is marked as 2, CH3 is marked as 3), and all the identified devices and marks are transmitted back to the Bluetooth device. And multiplying the number of the identified sub-serial port devices, for example, when two sub-serial port devices CH1 and CH3 are online, setting the baud rate of the main serial port to 2 × 9600, namely 19200.
In a preferred embodiment of the present invention, in response to the completion of the setting of the baud rate of the serial port, the selecting, by the bluetooth device, a device to be debugged among the scanned devices and enabling the address selection port of the device to be debugged includes:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to a Bluetooth module;
and the Bluetooth module pulls down the address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module. The Bluetooth device selects the device to be connected, and sends the selection information (device or sub-serial port label) to the Bluetooth module, the Bluetooth module performs the selection operation through the address line ADDR _ T [3:0], for example, the terminal device 1 and the terminal device 3 are selected to communicate, then the Bluetooth module pulls down the address lines ADDR _ T0 and ADDR _ T2, and the processor of the serial port expansion module gates the sub-serial port CH1 and the sub-serial port CH 3.
In a preferred embodiment of the present invention, making the bluetooth device mark data to be sent based on a device that needs to be debugged, and sending the marked data to a corresponding device that needs to be debugged to debug a port of the corresponding device includes:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to a Bluetooth module, and the Bluetooth module stores the marked data into a register of a serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks. For example, if the bluetooth device needs to send data to the devices corresponding to the sub-serial ports CH1 and CH3, the data to be sent to the sub-serial ports CH1 and CH3 are marked as data 1 and data 3, respectively, the tag 1 and the tag 3 are attached and packed to be sent to the bluetooth module, the bluetooth module puts the data packet into a serial port expansion module register through the main serial port CH0, the serial port expansion module processor extracts the data packet and sends the corresponding data to the corresponding sub-serial port according to the tag, that is, the identification tag 1, the data 1 is sent to the sub-serial port CH1, and the identification tag 3 is sent to the sub-serial port CH 3. When the sub-serial ports CH1 and CH3 want to send data to the main serial port, firstly, the marks and the data are put into a serial port expansion module register, a serial port expansion module processor finishes data packing and pulls down corresponding ADDR _ R1 and ADDR _ R3 according to the marks to inform a slave-end Bluetooth module of which sub-serial port the currently sent data originates from, and sends the data packet to the Bluetooth module through the main serial port CH0, and the Bluetooth module sends the data to the Bluetooth device.
In a preferred embodiment of the present invention, as shown in fig. 4, the serial port extension module with a bluetooth module includes a serial port connected to the bluetooth module, a serial port buffer connected to a transmitting port and a receiving port of a device to be debugged, a register for storing data, a processor for reading data from the register, processing the data and operating an address controller, the address controller for gating the device to be debugged, and the bluetooth module matched with the bluetooth device. The Bluetooth module also comprises an address controller, the ADDR _ T [3:0] is used as an address selection port, the function is to select a sub-serial port for sending data, for example, when the sub-serial port CH1 needs to be selected for data transmission, the Bluetooth module pulls the corresponding ADDR _ T0 down, the processor selects CH1 after identification, the ADDR _ R [3:0] is used as an address feedback port, the function is to identify the sub-serial port response of the slave Bluetooth module, for example, when the sub-serial port CH1 is communicated with the master serial port, the processor identifies and pulls the corresponding ADDR _ R0 down, and the slave Bluetooth module can know that the communication object is CH1 at the moment
Through the technical scheme of the invention, the reservation of the serial ports of the multiple chips in hardware design can be saved, the layout space on a circuit board is saved, the serial ports of the server can be flexibly and conveniently debugged in multiple scenes, and the debugging efficiency and the later-stage operation and maintenance efficiency of the server in the research and development process are improved.
It should be noted that, as will be understood by those skilled in the art, all or part of the processes in the methods of the above embodiments may be implemented by instructing relevant hardware through a computer program, and the above programs may be stored in a computer-readable storage medium, and when executed, the programs may include the processes of the embodiments of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), or the like. The embodiments of the computer program may achieve the same or similar effects as any of the above-described method embodiments.
Furthermore, the method disclosed according to an embodiment of the present invention may also be implemented as a computer program executed by a CPU, and the computer program may be stored in a computer-readable storage medium. The computer program, when executed by the CPU, performs the above-described functions defined in the method disclosed in the embodiments of the present invention.
In view of the above object, a second aspect of the embodiments of the present invention provides a device for server serial port debugging, as shown in fig. 2, the device 200 includes:
the connection module is configured to connect the equipment to be debugged in the server to the serial port expansion module with the Bluetooth module respectively;
the setting module is configured to pair the Bluetooth equipment and the Bluetooth module, scan each equipment to be debugged connected with the serial port expansion module and set the baud rate of the serial port according to the scanned equipment;
the selection module is configured to respond to the completion of the baud rate setting of the serial port, and the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging;
and the processing module is configured to enable the Bluetooth device to mark the data to be sent based on the device needing debugging and send the marked data to the corresponding device needing debugging so as to debug the port of the corresponding device.
In a preferred embodiment of the present invention, the setup module is further configured to:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as a value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate.
In a preferred embodiment of the invention, the selection module is further configured to:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to a Bluetooth module;
and the Bluetooth module pulls down the address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module.
In a preferred embodiment of the present invention, the processing module is further configured to:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to a Bluetooth module, and the Bluetooth module stores the marked data into a register of a serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks.
In a preferred embodiment of the present invention, the serial port extension module with a bluetooth module includes a serial port connected to the bluetooth module, a serial port buffer connected to a transmitting port and a receiving port of the device to be debugged, a register for storing data, a processor for reading data from the register, processing the data, and operating an address controller, the address controller for gating the device to be debugged, and the bluetooth module matched with the bluetooth device.
The embodiments described above, particularly any "preferred" embodiments, are possible examples of implementations and are presented merely to clearly understand the principles of the invention. Many variations and modifications may be made to the above-described embodiments without departing from the spirit and principles of the technology described herein. All such modifications are intended to be included within the scope of this disclosure and protected by the following claims.

Claims (10)

1. A method for debugging a serial port of a server is characterized by comprising the following steps:
respectively connecting the equipment to be debugged in the server to a serial port expansion module with a Bluetooth module;
pairing a Bluetooth device with the Bluetooth module, scanning each device to be debugged connected with the serial port expansion module, and setting the baud rate of the serial port according to the scanned device;
responding to the completion of the setting of the baud rate of the serial port, selecting equipment needing debugging in the scanned equipment by the Bluetooth equipment and enabling an address selection port of the equipment needing debugging;
and marking the data to be sent by the Bluetooth equipment based on the equipment needing debugging, and sending the marked data to the corresponding equipment needing debugging so as to debug the port of the corresponding equipment.
2. The method of claim 1, wherein the pairing of the Bluetooth device and the Bluetooth module, the scanning of each device to be debugged connected to the serial port extension module, and the setting of the baud rate of the serial port according to the scanned device comprises:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as the value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate.
3. The method of claim 2, wherein in response to completion of setting of the baud rate of the serial port, the selecting, by the bluetooth device, a device to be debugged among the scanned devices and enabling an address selection port of the device to be debugged comprises:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to the Bluetooth module;
and the Bluetooth module pulls down an address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module.
4. The method of claim 2, wherein enabling the bluetooth device to mark data to be transmitted based on the device requiring debugging and transmit the marked data to the corresponding device requiring debugging for debugging the port of the corresponding device comprises:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to the Bluetooth module, and the Bluetooth module stores the marked data into a register of the serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks.
5. The method as claimed in claim 1, wherein the serial port extension module with the bluetooth module comprises a serial port connected to the bluetooth module, a serial port buffer connected to a transmitting port and a receiving port of the device to be debugged, a register for storing data, a processor for reading data from the register, processing the data and operating an address controller, an address controller for gating the device to be debugged, and a bluetooth module matched to the bluetooth device.
6. The utility model provides a device of server serial ports debugging which characterized in that, the device includes:
the connection module is configured to connect the equipment to be debugged in the server to the serial port expansion module with the Bluetooth module respectively;
the setting module is configured to pair the Bluetooth device and the Bluetooth module, scan each device to be debugged connected with the serial port expansion module and set the baud rate of the serial port according to the scanned device;
the selection module is configured to respond to the completion of the setting of the baud rate of the serial port, and the Bluetooth equipment selects equipment needing debugging from the scanned equipment and enables an address selection port of the equipment needing debugging;
and the processing module is configured to enable the Bluetooth device to mark data to be sent based on the device needing debugging, and send the marked data to the corresponding device needing debugging so as to debug the port of the corresponding device.
7. The device of claim 6, wherein the setup module is further configured to:
the Bluetooth module configures the baud rate of the serial port according to the default baud rate of the substring port of the device to be debugged so as to communicate with the device to be debugged;
in response to the response of the substring port of the device to be debugged, the processor in the serial port expansion module pulls down the address feedback port of the device to be debugged and marks the device to be debugged;
repeating the steps, sequentially completing the identification and marking of the sub-serial ports of all the devices to be debugged, and sending the identified devices and marks to the Bluetooth device;
and setting the serial port baud rate as the value obtained by multiplying the number of the identified sub-string ports of the equipment to be debugged by the default baud rate.
8. The device of claim 7, wherein the selection module is further configured to:
selecting equipment needing debugging on the Bluetooth equipment, and sending a mark of the equipment needing debugging to the Bluetooth module;
and the Bluetooth module pulls down an address selection port of the corresponding device based on the mark so as to connect the device needing debugging with the Bluetooth module.
9. The device of claim 7, wherein the processing module is further configured to:
marking data which are sent to equipment needing debugging by the Bluetooth equipment according to the mark of the equipment needing debugging;
the marked data are sent to the Bluetooth module, and the Bluetooth module stores the marked data into a register of the serial port extension module;
and the processor of the serial port expansion module extracts the marks in the data and sends the corresponding data to the corresponding equipment to be debugged according to the marks.
10. The device according to claim 6, wherein the serial port extension module with the Bluetooth module comprises a serial port connected with the Bluetooth module, a serial port buffer connected with a transmitting port and a receiving port of the device to be debugged, a register for storing data, a processor for reading data from the register, processing the data and operating an address controller, the address controller for gating the device to be debugged, and the Bluetooth module matched with the Bluetooth module.
CN202110026210.8A 2021-01-08 2021-01-08 Server serial port debugging method and device Withdrawn CN112732505A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110026210.8A CN112732505A (en) 2021-01-08 2021-01-08 Server serial port debugging method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110026210.8A CN112732505A (en) 2021-01-08 2021-01-08 Server serial port debugging method and device

Publications (1)

Publication Number Publication Date
CN112732505A true CN112732505A (en) 2021-04-30

Family

ID=75591383

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110026210.8A Withdrawn CN112732505A (en) 2021-01-08 2021-01-08 Server serial port debugging method and device

Country Status (1)

Country Link
CN (1) CN112732505A (en)

Similar Documents

Publication Publication Date Title
CN104298579B (en) A kind of logic chip and comprise the board card device of this logic chip
CN111966189B (en) Flexibly configured multi-computing-node server mainboard structure and program
CN112055096B (en) Method and device for automatically setting communication address of equipment
CN109446145B (en) Server mainboard I2C channel expansion chip, circuit and control method
EP3758317B1 (en) Method, apparatus and computer readable storage medium for supporting communication among chips
CN114510452A (en) SOC (System on chip) integration method and device and electronic equipment
CN111948971A (en) Intelligent card management device and data switching method thereof
CN1960276B (en) Remote control system and method
CN116032746B (en) Information processing method and device of resource pool, storage medium and electronic device
CN115729164B (en) Industrial communication system management method and device and industrial communication system
CN112732505A (en) Server serial port debugging method and device
CN216772401U (en) Main equipment main control function implementation system
CN116074397A (en) Data sharing system
CN107769960B (en) BMC management architecture based on CAN bus
CN112148537A (en) Bus monitoring device and method, storage medium, and electronic device
CN111176164B (en) Method, device and medium for expanding multiple remote input and output modules
CN103200248B (en) Based on the communication means of the power param eter supervision of embedded system
CN114201439A (en) Server signal identification optimization method, system and storage medium
CN112783071A (en) SDIO controller, FPGA board card and SDIO test system
CN212411050U (en) Smart card management device and smart card system
CN215773156U (en) Ethernet development device
CN103605622B (en) A kind of method and apparatus transmitting data
CN113297119B (en) Wireless communication equipment of server
CN113608935A (en) Method, system, equipment and medium for testing network card
CN115643223B (en) Interrupt signal transmission method and device

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
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20210430