CN102884515B - Serial ports re-orientation processes method, apparatus and system - Google Patents

Serial ports re-orientation processes method, apparatus and system Download PDF

Info

Publication number
CN102884515B
CN102884515B CN201280000783.2A CN201280000783A CN102884515B CN 102884515 B CN102884515 B CN 102884515B CN 201280000783 A CN201280000783 A CN 201280000783A CN 102884515 B CN102884515 B CN 102884515B
Authority
CN
China
Prior art keywords
motherboard
shared drive
peripheral assembly
assembly equipment
quick peripheral
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.)
Expired - Fee Related
Application number
CN201280000783.2A
Other languages
Chinese (zh)
Other versions
CN102884515A (en
Inventor
蔡世顺
彭林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Gaohang Intellectual Property Operation Co ltd
Wujiang Science And Technology Pioneer Park Management Service Co ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN102884515A publication Critical patent/CN102884515A/en
Application granted granted Critical
Publication of CN102884515B publication Critical patent/CN102884515B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/38Information transfer, e.g. on bus
    • G06F13/382Information transfer, e.g. on bus using universal interface adapter

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Debugging And Monitoring (AREA)
  • Information Transfer Systems (AREA)

Abstract

The embodiment of the present invention provides a kind of serial ports re-orientation processes method, apparatus and system.One method comprises: motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by motherboard is written in as serial ports input information in the input block of shared drive, and the information in the output buffer of shared drive is read as serial ports output information; Shared drive is for carrying out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard.The embodiment of the present invention saves Serial Port Line, debugging, improve debugging efficiency without the need to manually arriving scene.

Description

Serial ports re-orientation processes method, apparatus and system
Technical field
The embodiment of the present invention relates to Serial technology, particularly relates to a kind of serial ports re-orientation processes method, apparatus and system.
Background technology
Peripheral component high speed interconnect (Peripheral Component Interconnect Express, being called for short PCIE) standard is up-to-date bus and interface standard, represent I/O of future generation (Input/Output is called for short I/O) interface standard.PCIE have employed at present popular point-to-point connected in series in the industry, data transmission rate can be brought up to a very high frequency.Developer's Based PC IE provides many PCIE device with PCIE interface, such as accelerator card, video card, sound card etc.Along with the intellectuality of PCIE device, the debugging of PCIE device is seemed more and more important.Debugging substantially the most the most frequently used method to PCIE device is at present exactly the information directly using serial ports to carry out input/output.
Fig. 1 is that prior art directly uses serial ports to carry out the schematic diagram of PCIE device debugging.As shown in Figure 1, in rack, each station server is all provided with PCIE device, when debugging PCIE device, first Serial Port Line one end is connected the serial ports of PCIE device, the other end is connected on the serial ports of computing machine, and then opens the control desk on computing machine, configures baud rate, carry out input and output from control desk, thus PCIE device is debugged.
During debugging to PCIE device in prior art, not only need to use Serial Port Line in machine room, arrangement personnel are also needed to carry out the plug operation of Serial Port Line at the scene, particularly simultaneously debugging maintenance multiple equipment time, scene also needs many Serial Port Lines, debug process is very inconvenient, and inefficiency also needs waste of manpower.
Summary of the invention
The embodiment of the present invention provides a kind of serial ports re-orientation processes method, apparatus and system, in order to save Serial Port Line and to avoid manually debugging to scene, improves debugging efficiency.
On the one hand, embodiments provide a kind of serial ports re-orientation processes method, comprising:
Motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by described motherboard is written in as serial ports input information in the input block of described shared drive, and the information in the output buffer of described shared drive is read as serial ports output information; Described shared drive is for carrying out serial interface management between described motherboard and the quick peripheral assembly equipment being plugged on described motherboard.
The embodiment of the present invention also provides another kind of serial ports re-orientation processes method, comprising:
Quick peripheral assembly equipment is according to the physical address of shared drive and memory size, and the information read in the input block of described shared drive inputs information as serial ports, and serial ports output information is written in the output buffer of described shared drive; Described shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on described motherboard.
On the other hand, the embodiment of the present invention also provides a kind of motherboard, comprising:
First writing module, for after described motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by described motherboard is written in the input block of described shared drive as serial ports input information;
First read module, for reading the information in the output buffer of described shared drive as serial ports output information;
Described shared drive is for carrying out serial interface management between described motherboard and the quick peripheral assembly equipment being plugged on described motherboard.
The embodiment of the present invention also provides a kind of quick peripheral assembly equipment, comprising:
Second read module, for according to the physical address of shared drive and memory size, the information read in the input block of described shared drive inputs information as serial ports;
Second writing module, for being written in the output buffer of described shared drive by serial ports output information;
Described shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on described motherboard.
Described shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on described motherboard.
Again on the one hand, the embodiment of the present invention also provides a kind of serial ports re-orientation processes system, comprises motherboard as above and quick peripheral assembly equipment.
The serial ports re-orientation processes method that the embodiment of the present invention provides, equipment and system, between motherboard and the quick peripheral assembly equipment being plugged on motherboard, serial interface management is carried out by shared drive, make motherboard and quick peripheral assembly equipment all can read the information in shared drive and write, achieve the information interaction between motherboard and quick peripheral assembly equipment, when commissioning staff's Telnet motherboard calls redirector, namely by the information interaction of motherboard and quick peripheral assembly, realize the debugging to PCIE device, overcome the problem of computing machine needing Serial Port Line when debugging and safeguarding quick peripheral assembly equipment and connect Serial Port Line, avoiding arrangement personnel goes to scene to carry out the problem of serial ports plug operation, reach and namely save time, raise the efficiency, save again effect that is artificial and cost.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is that prior art directly uses serial ports to carry out the schematic diagram of PCIE device debugging;
The schematic flow sheet of the serial ports re-orientation processes method that Fig. 2 provides for one embodiment of the invention;
The schematic flow sheet of the serial ports re-orientation processes method that Fig. 3 provides for another embodiment of the present invention;
The schematic diagram of the serial ports re-orientation processes method that Fig. 4 provides for one embodiment of the invention;
The motherboard structure schematic diagram that Fig. 5 provides for one embodiment of the invention;
The motherboard structure schematic diagram that Fig. 6 provides for another embodiment of the present invention;
The structural representation of the quick peripheral assembly equipment that Fig. 7 provides for one embodiment of the invention;
The structural representation of the quick peripheral assembly equipment that Fig. 8 provides for another embodiment of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The schematic flow sheet of the serial ports re-orientation processes method that Fig. 2 provides for one embodiment of the invention.The present embodiment executive agent is motherboard, and as shown in Figure 2, the serial ports re-orientation processes method that the present embodiment provides can comprise:
Step 101: motherboard calls redirector;
Step 102: according to physical address and the memory size of shared drive, the input information received by motherboard is written in as serial ports input information in the input block of shared drive, and the information in the output buffer of shared drive is read as serial ports output information;
Wherein, shared drive is for carrying out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard.
Particularly, in a step 101, redirector can for the application program developed in advance, this redirector operates on motherboard, be redirected instrument as serial ports, present a serial ports control desk to user, make user can carry out input and output at the operation interface of motherboard.
In a step 102, namely after motherboard calls this redirector, motherboard can process the information of input block and output buffer on shared drive in real time, and input information is written in the input block of shared drive as serial ports input information, the information in output buffer is read as serial ports output information.Particularly, the information of debugging quick peripheral assembly equipment can be written in the input block of shared drive by motherboard, simultaneously, information in the output buffer of shared drive also reads by motherboard, namely motherboard reads quick peripheral assembly equipment to the feedback information of Debugging message, so that debugging person safeguards quick peripheral assembly equipment and debugs.
Shared drive carries out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard, motherboard can read the feedback information of quick peripheral assembly equipment to Debugging message in shared drive, quick peripheral assembly equipment also can read the Debugging message in shared drive, thus the information interaction that can complete between motherboard and shared drive and between shared drive and quick peripheral assembly equipment, finally realize the information interaction between motherboard and quick peripheral assembly equipment.The technical scheme of the present embodiment, calls redirector by motherboard, and shared drive carries out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard, can complete the information interaction between motherboard and quick peripheral assembly.Therefore, only need the long-range redirector operated on motherboard, namely by the information interaction of motherboard and quick peripheral assembly, realize the operation to PCIE device, thus need Serial Port Line and the computer problem connecing Serial Port Line when overcoming in debugging and safeguard quick peripheral assembly equipment, avoiding arrangement personnel goes to scene to carry out the problem of serial ports plug operation, reaches and namely saves time, raises the efficiency, and saves again effect that is artificial and cost.
Alternatively, when motherboard loads the driver of quick peripheral assembly equipment, determine shared drive, and the physical address of shared drive and memory size are sent to quick peripheral assembly equipment.Particularly, when motherboard loads the driver of quick peripheral assembly equipment, the driver application shared drive of quick peripheral assembly equipment, and the physical address of the shared drive applied for and memory size information are sent to quick peripheral assembly equipment, with the physical address and the memory size that enable quick peripheral assembly equipment know shared drive, make the driver on quick peripheral assembly equipment and motherboard all can access this shared drive, establish memory-mapped.
Alternatively, shared drive can be one section of continuous print physical memory of quick peripheral assembly equipment or several register, or is one section of continuous print physical memory of motherboard.Those skilled in the art are known also by quick peripheral assembly equipment to determine shared drive, and can send to motherboard by the physical address of shared drive and memory size.Particularly, quick peripheral assembly equipment himself is just a mini system, comprises independently processor, internal memory and register etc.Thus, when motherboard loads the quick peripheral assembly equipment be plugged on motherboard, the driver application shared drive of quick peripheral assembly equipment, this shared drive can be one section of continuous print physical memory of quick peripheral assembly equipment, also can be several registers of quick peripheral assembly equipment, can also be one section of continuous print physical memory on motherboard.
The technical scheme of the present embodiment, because shared drive is one section of continuous print physical memory of quick peripheral assembly equipment or several register, or be one section of continuous print physical memory of motherboard, therefore user according to debugging needs, and can make a choice to shared drive when ensureing system aspects overall performance the best.
Alternatively, motherboard calls redirector and comprises, and obtains physical address and the memory size of shared drive, shared drive is mapped to User space from kernel state from quick peripheral assembly device drives.
Due to user on motherboard, run redirector time, the process that this program creates operates in User space, and shared drive is then in kernel state.In an operating system, kernel state and User space are in two kinds of different runlevels, and the low User space of rank can not the address space of the high kernel state of access level, comprises address and code.Therefore, if user needs access to be in the shared drive of kernel state, then need shared drive to be mapped to User space from kernel state.After mapping, redirector directly can access shared drive.Such as, under linux operating system, shared drive is mapped to User space from kernel state by the memory-mapped mechanism that operating system can be utilized to provide.
Meanwhile, motherboard also can start two threads in redirector, and two above-mentioned threads can be that redirector creates.Wherein, a thread is written in the input block of shared drive as serial ports input information for the input information received by motherboard.Particularly, the input information that motherboard receives can for the character by input through keyboard.Another thread is used for the information in the output buffer of shared drive to read as serial ports output information.Particularly, another thread can by the character print of the output buffer of reading on screen.
The technical scheme of the present embodiment, is mapped to User space by shared drive from kernel state, enables user process the information of input block and output buffer on shared drive in real time.
In the various embodiments described above, serial ports re-orientation processes method also comprises user's Telnet motherboard, and by motherboard to quick peripheral assembly testing equipment.Particularly, user directly can pass through safety shell protocol (Secure Shell is called for short ssh) and send Remote Login request to motherboard, and motherboard receives the Telnet of request completing user.Then, motherboard runs redirector under shell, and wherein, Shell is commonly called as shell, is to provide the software that user uses interface, can receives user's, calls corresponding application program.Particularly, according to the IP address registration of motherboard to motherboard, according to the slot numbering of quick peripheral assembly equipment on motherboard or the model etc. of quick peripheral assembly equipment, corresponding quick peripheral assembly equipment can be debugged.It will be understood by those skilled in the art that every method that can realize Telnet, all may be used on the serial ports re-orientation processes method that the embodiment of the present invention provides, at this, be not particularly limited.
Redirector is called by motherboard, be redirected instrument as serial ports, a serial ports control desk can be provided to user, the input/output information of the serial ports of quick peripheral assembly equipment is directed to the serial ports control desk of motherboard, by Telnet motherboard, the control to PCIE device can be completed.Meanwhile, redirector supports that multi-user checks Serial Port Information, i.e. the information of quick peripheral assembly equipment simultaneously, each user signs in motherboard, run redirector by shell, all can see Serial Port Information, facilitate the uniting and adjustment of multi-user to quick peripheral assembly equipment.
The schematic flow sheet of the serial ports re-orientation processes method that Fig. 3 provides for another embodiment of the present invention.The present embodiment executive agent is quick peripheral assembly equipment, and as shown in Figure 3, the serial ports re-orientation processes method that the present embodiment provides can comprise:
Step 201: quick peripheral assembly equipment is according to the physical address of shared drive and memory size, and the information read in the input block of shared drive inputs information as serial ports, and is written in the output buffer of shared drive by serial ports output information;
Wherein, shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on motherboard.
Particularly, in step 201, the input block of shared drive can as an input source, whether quick peripheral assembly equipment real-time query shared drive input block has Debugging message to input, if have, then quick peripheral assembly equipment is according to the physical address of shared drive and memory size, using the serial ports input information of the Debugging message of input as quick peripheral assembly equipment; The output buffer of shared drive can as an output source, and the feedback information of Debugging message is input in output buffer by quick peripheral assembly equipment.
Shared drive carries out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard, quick peripheral assembly equipment can read the Debugging message in shared drive, motherboard also can read the feedback information of peripheral component devices in shared drive to Debugging message, thus the information interaction completed between shared drive and quick peripheral assembly equipment and between motherboard and shared drive, finally realize the information interaction between quick peripheral assembly equipment and motherboard.
The technical scheme of the present embodiment, by the reading of quick peripheral assembly equipment to the information in shared drive, and shared drive carries out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard, the information interaction between motherboard and quick peripheral assembly can be completed, therefore, only need the long-range redirector operated on motherboard, namely by the information interaction of motherboard and quick peripheral assembly, realize the operation to PCIE device, thus need Serial Port Line and the computer problem connecing Serial Port Line when overcoming in debugging and safeguard quick peripheral assembly equipment, avoiding arrangement personnel goes to scene to carry out the problem of serial ports plug operation, reach and namely save time, raise the efficiency, save again effect that is artificial and cost.
Alternatively, quick peripheral assembly equipment receives physical address and the memory size of the shared drive that motherboard sends, and shared drive is that motherboard is determined when loading the driver of quick peripheral assembly equipment.Shared drive is one section of continuous print physical memory of quick peripheral assembly equipment or several register, or is one section of continuous print physical memory of motherboard.
The technical scheme that the present embodiment provides, quick peripheral assembly equipment receives physical address and the memory size of the shared drive that motherboard sends, and can know physical address and the memory size of shared drive.Enable quick peripheral assembly equipment access shared drive, establish the memory-mapped of quick peripheral assembly equipment and motherboard.User according to debugging needs, and can also make a choice to shared drive when ensureing system aspects overall performance the best.
The schematic diagram of the serial ports re-orientation processes method that Fig. 4 provides for one embodiment of the invention.As shown in Figure 4, from motherboard receive input information again to motherboard reading output information mainly through four steps:
Step 301: the input information received is written in the input block of shared drive by motherboard according to the thread enabled;
Step 302: quick peripheral assembly equipment reads the serial ports of the information in the input block of shared drive to quick peripheral assembly equipment;
Step 303: the information that serial ports exports is written in the output buffer of shared drive by quick peripheral assembly equipment;
Step 304: the information in the output buffer of shared drive reads according to another thread enabled by motherboard.
Particularly, the thread primary responsibility enabled in step 301 receives the character of remote computer input through keyboard and character is written to the input block of shared drive, and another thread primary responsibility that in step 304, motherboard is enabled reads the character of shared drive output buffer and prints on the screen of remote computer.
Especially, in a debug process, first can pass through step 302, quick peripheral assembly equipment reads the serial ports of Debugging message to peripheral component devices being input to input block in shared drive from remote computer, and the feedback information of peripheral component devices to Debugging message is written in the output buffer of shared drive by step 303.Namely the information that serial ports obtains from input block is Debugging message, and the information that serial ports outputs to output buffer can be that quick peripheral assembly equipment is to the feedback information of Debugging message.
It will be understood by those skilled in the art that, in concrete debug process, above-mentioned steps there is no strict sequential relationship, is cooperatively interact between step, jointly completes being redirected of serial ports.
In the various embodiments described above, the physical address of described shared drive is for representing to shared drive written information or the reference position reading information from shared drive.According to the memory size of shared drive, motherboard or quick peripheral assembly equipment first can judge that whether storage space was enough before written information, if enough can write direct, if the mode such as write in batches can be adopted not, namely first write a part, wait for that opposite end is read; And then write another part.When motherboard or quick peripheral assembly equipment read information from shared drive, according to the instruction of reference position according to memory size, the information in shared drive all can be read out; The final position of information can certainly be prejudged, then the information in shared drive from reference position to final position is read out (this mode can have nothing to do with memory size), etc.
Pass through above-mentioned steps, namely the information that completes from motherboard to input block, then arrives quick peripheral assembly equipment, and information is outputted to output buffer again by quick peripheral assembly equipment, arrive the process of motherboard again, namely complete the information interaction of motherboard and quick peripheral assembly equipment.When user is remotely logged into motherboard by ssh, input information in step 301 can be the input information of remote computer keyboard, motherboard in step 304 prints in the screen of remote computer after information can being read, for user, treatment and analysis is carried out to data, thus avoid and use Serial Port Line in a large number, overcome machine room scene of sending someone debug quick peripheral assembly equipment and safeguard, namely save time and cost, improve efficiency again.
The motherboard structure schematic diagram that Fig. 5 provides for one embodiment of the invention.As shown in Figure 5, the motherboard that the embodiment of the present invention provides comprises: the first writing module 401 and the first read module 402, wherein, first writing module 401 is for after motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by motherboard is written in the input block of shared drive as serial ports input information; First read module 402 is for reading the information in the output buffer of shared drive as serial ports output information.Shared drive is for carrying out serial interface management between motherboard and the quick peripheral assembly equipment being plugged on motherboard.
Motherboard involved in the embodiment of the present invention can include but not limited to server, or other is with the veneer of quick peripheral assembly apparatus slot.Server can be Workgroup Servers, department level server or enterprise-level server, wherein the hardware configuration of enterprise-level server is the highest, and system reliability is also the strongest, for Net-connected computer more than hundreds, to processing speed and the very high catenet of security request data.For the tower server of different structure, the embodiment of the present invention such as rack-mount server and blade server is applicable equally.
The motherboard that the embodiment of the present invention provides, the Debugging message received by motherboard by the first writing module 401 is written to shared drive, to can read in shared drive quick peripheral assembly to the feedback information of Debugging message by the first read module 402 motherboard, thus complete the information interaction between motherboard and shared drive.By the serial interface management of shared drive, the information interaction between motherboard and shared drive and between shared drive and quick peripheral assembly equipment can be realized, thus realize the information interaction between motherboard and quick peripheral assembly equipment.Therefore, only need the long-range redirector operated on motherboard, namely by the information interaction of motherboard and quick peripheral assembly, realize the operation to PCIE device, thus need Serial Port Line and the computer problem connecing Serial Port Line when overcoming in debugging and safeguard quick peripheral assembly equipment, avoiding arrangement personnel goes to scene to carry out the problem of serial ports plug operation, reaches and namely saves time, raises the efficiency, and saves again effect that is artificial and cost.
The motherboard structure schematic diagram that Fig. 6 provides for another embodiment of the present invention.As shown in Figure 6, except the first writing module 401 and the first read module 402, the motherboard that the embodiment of the present invention provides also comprises determination module 403, for when motherboard loads the driver of quick peripheral assembly equipment, determine shared drive, and the physical address of shared drive and memory size are sent to quick peripheral assembly equipment.
The shared drive of the above-mentioned embodiment of the present invention can be one section of continuous print physical memory of motherboard.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of above-mentioned motherboard, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The structural representation of the quick peripheral assembly equipment that Fig. 7 provides for one embodiment of the invention.As shown in Figure 7, the quick peripheral assembly equipment that the embodiment of the present invention provides comprises: the second read module 501 and the second writing module 502, wherein, second read module 501 is for according to the physical address of shared drive and memory size, and the information read in the input block of shared drive inputs information as serial ports; Second writing module 502 is for being written in the output buffer of shared drive by serial ports output information; Shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on motherboard.
The embodiment of the present invention provides, the Debugging message to quick peripheral assembly equipment in shared drive is can read by the second read module 501 motherboard, by the second writing module 502, the Debugging message that quick peripheral assembly equipment feeds back is written to shared drive, thus completes the information interaction between quick peripheral assembly equipment and shared drive.By the serial interface management of shared drive, realize the information interaction between quick peripheral assembly equipment and shared drive and between motherboard and shared drive, thus realize the information interaction between quick peripheral assembly equipment and motherboard.Therefore, only need the redirector of far call on motherboard, namely by the information interaction of motherboard and quick peripheral assembly, realize the operation to PCIE device, thus need Serial Port Line and the computer problem connecing Serial Port Line when overcoming in debugging and safeguard quick peripheral assembly equipment, avoiding arrangement personnel goes to scene to carry out the problem of serial ports plug operation, reaches and namely saves time, raises the efficiency, and saves again effect that is artificial and cost.
The structural representation of the quick peripheral assembly equipment that Fig. 8 provides for another embodiment of the present invention, as shown in Figure 8, the quick peripheral assembly equipment that the present embodiment provides is except the second read module 501 and the second writing module 502, also comprise receiver module 503, for receiving physical address and the memory size of the shared drive that motherboard sends, shared drive is that motherboard is determined when loading the driver of quick peripheral assembly equipment.
Above-mentioned shared drive can be one section of continuous print physical memory of quick peripheral assembly equipment or several register.
Alternatively, the quick peripheral assembly equipment that the present embodiment provides can be peripheral component interconnect standard (Peripheral Component Interconnect is called for short PCI), PCIE or PCI-X equipment.Particularly, for meeting equipment or other similar equipment of PCI, PCIE, PCI-X peripheral component interconnection, the quick peripheral assembly equipment on PCI, PCIE, PCI-X slot of motherboard can be plugged in.Wherein PCI-X is the renewal version of PCI, still adopts the bussing technique of PCI, but has the wiring stitch of greater number, has distensible frequency, can change with the change of equipment.In embodiments of the present invention, quick peripheral assembly equipment can be intelligent network adapter, add the card that decompresses, agreement unloading card, and video accelerators etc., are not particularly limited at this.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of above-mentioned quick peripheral assembly equipment, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
The embodiment of the present invention additionally provides a kind of serial ports re-orientation processes system, and it comprises the arbitrary shown motherboard of Fig. 5 and Fig. 6 and the arbitrary shown quick peripheral assembly equipment of Fig. 7 to Fig. 8.
The serial ports re-orientation processes system that the present embodiment provides, corresponding with the serial ports re-orientation processes method that the embodiment of the present invention provides, for the executive system of serial ports re-orientation processes method, the detailed process of its serial ports re-orientation processes method see serial ports re-orientation processes embodiment of the method provided by the invention, can not repeat them here.
One of ordinary skill in the art will appreciate that: all or part of step realizing said method embodiment can have been come by the hardware that programmed instruction is relevant, aforesaid program can be stored in a computer read/write memory medium, this program, when performing, performs the step comprising said method embodiment; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to previous embodiment to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein portion of techniques feature; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the spirit and scope of various embodiments of the present invention technical scheme.

Claims (11)

1. a serial ports re-orientation processes method, is characterized in that, comprising:
Motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by described motherboard is written in as serial ports input information in the input block of described shared drive, and the information in the output buffer of described shared drive is read as serial ports output information; Described shared drive is for carrying out serial interface management between described motherboard and the quick peripheral assembly equipment being plugged on described motherboard;
When described motherboard loads the driver of described quick peripheral assembly equipment, determine described shared drive, and the physical address of described shared drive and memory size are sent to described quick peripheral assembly equipment;
Described motherboard calls redirector and comprises:
From described quick peripheral assembly device drives, obtain physical address and the memory size of described shared drive, described shared drive is mapped to User space from kernel state.
2. method according to claim 1, is characterized in that, described shared drive is one section of continuous print physical memory of described quick peripheral assembly equipment or several register, or is one section of continuous print physical memory of described motherboard.
3. method according to claim 1, is characterized in that, described method also comprises:
After described motherboard receives the Remote Login request of user, to described quick peripheral assembly testing equipment.
4. a serial ports re-orientation processes method, is characterized in that, comprising:
Quick peripheral assembly equipment is according to the physical address of shared drive and memory size, and the information read in the input block of described shared drive inputs information as serial ports, and serial ports output information is written in the output buffer of described shared drive; Described shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on described motherboard;
Described quick peripheral assembly equipment receives physical address and the memory size of the described shared drive that described motherboard sends, and described shared drive is that described motherboard is determined when loading the driver of described quick peripheral assembly equipment.
5. method according to claim 4, is characterized in that, described shared drive is one section of continuous print physical memory of described quick peripheral assembly equipment or several register, or is one section of continuous print physical memory of described motherboard.
6. a motherboard, is characterized in that, comprising:
First writing module, for after described motherboard calls redirector, according to physical address and the memory size of shared drive, the input information received by described motherboard is written in the input block of described shared drive as serial ports input information;
First read module, for reading the information in the output buffer of described shared drive as serial ports output information;
Described shared drive is for carrying out serial interface management between described motherboard and the quick peripheral assembly equipment being plugged on described motherboard;
Determination module, during for loading the driver of described quick peripheral assembly equipment when described motherboard, determines described shared drive, and the physical address of described shared drive and memory size is sent to described quick peripheral assembly equipment.
7. motherboard according to claim 6, is characterized in that, described shared drive is one section of continuous print physical memory of described motherboard.
8. a quick peripheral assembly equipment, is characterized in that, comprising:
Second read module, for according to the physical address of shared drive and memory size, the information read in the input block of described shared drive inputs information as serial ports;
Second writing module, for being written in the output buffer of described shared drive by serial ports output information;
Described shared drive is for carrying out serial interface management between motherboard and the described quick peripheral assembly equipment being plugged on described motherboard;
Receiver module, for receiving physical address and the memory size of the described shared drive that described motherboard sends, described shared drive is that described motherboard is determined when loading the driver of described quick peripheral assembly equipment.
9. quick peripheral assembly equipment according to claim 8, is characterized in that, described shared drive is one section of continuous print physical memory of described quick peripheral assembly equipment or several register.
10. quick peripheral assembly equipment according to claim 8, is characterized in that, described quick peripheral assembly equipment is PCI, PCIE or PCI-X equipment.
11. 1 kinds of serial ports re-orientation processes systems, is characterized in that, comprise as arbitrary in claim 6-7 as described in motherboard, and as arbitrary in claim 8-10 as described in quick peripheral assembly equipment.
CN201280000783.2A 2012-06-30 2012-06-30 Serial ports re-orientation processes method, apparatus and system Expired - Fee Related CN102884515B (en)

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2012/077990 WO2014000299A1 (en) 2012-06-30 2012-06-30 Serial port redirection processing method, device, and system

Publications (2)

Publication Number Publication Date
CN102884515A CN102884515A (en) 2013-01-16
CN102884515B true CN102884515B (en) 2015-09-09

Family

ID=47484671

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201280000783.2A Expired - Fee Related CN102884515B (en) 2012-06-30 2012-06-30 Serial ports re-orientation processes method, apparatus and system

Country Status (2)

Country Link
CN (1) CN102884515B (en)
WO (1) WO2014000299A1 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20180054471A1 (en) * 2015-05-15 2018-02-22 Hewlett-Packard Development Company, L.P. Hardware Bus Redirection
CN107688486A (en) * 2017-08-10 2018-02-13 深圳市证通电子股份有限公司 Serial ports sharing method, sharing means and storage medium based on shared service
CN109002404B (en) * 2018-06-26 2021-12-24 联想(北京)有限公司 PCIE equipment and monitoring method thereof
US11082410B2 (en) 2019-04-26 2021-08-03 Advanced New Technologies Co., Ltd. Data transceiving operations and devices
CN110177083B (en) * 2019-04-26 2021-07-06 创新先进技术有限公司 Network card, data sending/receiving method and equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1987705A (en) * 2006-12-30 2007-06-27 中国科学院电工研究所 Real time multiple task distributive control system based on VME bus
CN101000550A (en) * 2006-12-13 2007-07-18 青岛大学 Remote on-line reconfiguration method of embedded system
CN101067794A (en) * 2007-06-14 2007-11-07 中兴通讯股份有限公司 Multi-nuclear processor and serial port multiplexing method
CN102075389A (en) * 2011-01-27 2011-05-25 大唐移动通信设备有限公司 Debugging method and equipment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101000550A (en) * 2006-12-13 2007-07-18 青岛大学 Remote on-line reconfiguration method of embedded system
CN1987705A (en) * 2006-12-30 2007-06-27 中国科学院电工研究所 Real time multiple task distributive control system based on VME bus
CN101067794A (en) * 2007-06-14 2007-11-07 中兴通讯股份有限公司 Multi-nuclear processor and serial port multiplexing method
CN102075389A (en) * 2011-01-27 2011-05-25 大唐移动通信设备有限公司 Debugging method and equipment

Also Published As

Publication number Publication date
CN102884515A (en) 2013-01-16
WO2014000299A1 (en) 2014-01-03

Similar Documents

Publication Publication Date Title
CN102884515B (en) Serial ports re-orientation processes method, apparatus and system
CN107111588A (en) The data transfer of PCIe protocol is used via USB port
US9367510B2 (en) Backplane controller for handling two SES sidebands using one SMBUS controller and handler controls blinking of LEDs of drives installed on backplane
CN101311905A (en) Debug card and debug method
CN102752150A (en) Distributed communication equipment capable of providing remote board card debugging and remote board card debugging method
CN111901164B (en) Adaptive control method, device, equipment and system of OCP NIC network card
CN106254170A (en) Server online state-detection and the method and system of notice
DE102017121465A1 (en) DATA PROTOCOL FOR MANAGING PERIPHERAL DEVICES
US9507744B2 (en) Handling two SGPIO channels using single SGPIO decoder on a backplane controller
CN101668036B (en) Simulating system of distributed device and method for processing service by simulating distributed device
CN106126465A (en) A kind of data transmission method and device
CN204117142U (en) Electronic device for providing instant switching and sharing of universal serial bus electronic equipment by host
CN109710479B (en) Processing method, first device and second device
CN111203869B (en) Robot system maintenance method and device, robot and readable storage medium
CN103412836A (en) Hot plug processing method, device and system
WO2016184170A1 (en) Smi interface device debugging apparatus and method, and storage medium
US10261937B2 (en) Method and system for communication of device information
CN106875765B (en) Electronic classroom implementation method and device based on VDI
CN108153624B (en) Test circuit board suitable for NGFF slot
US10445201B2 (en) System and method for automated integration and stress testing of hardware and software service in management controller using containerized toolbox
US10572220B2 (en) Method for controlling controller and host computer with voice
CN104407714A (en) Main board and use method thereof for remote multi-computer switching
CN216014148U (en) Server and server backboard
CN113868033B (en) Server debugging method
CN113765712B (en) Server management method, device, electronic equipment and readable storage medium

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170609

Address after: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen

Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd.

CB03 Change of inventor or designer information
CB03 Change of inventor or designer information

Inventor after: Wu Pengyu

Inventor before: Cai Shishun

Inventor before: Peng Lin

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20170907

Address after: 065000 Langfang city of Hebei province Guangyang District 3 building 312 room Xinhua Road Holiday Inn

Patentee after: Wu Pengyu

Address before: 510640 Guangdong City, Tianhe District Province, No. five, road, public education building, unit 371-1, unit 2401

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

CP02 Change in the address of a patent holder
CP02 Change in the address of a patent holder

Address after: 541199 Lingui County, Guilin, Lingui County, Lingui Town, Xinglin Road, No. 1, unit 202, Room 202

Patentee after: Wu Pengyu

Address before: 065000 Langfang city of Hebei province Guangyang District 3 building 312 room Xinhua Road Holiday Inn

Patentee before: Wu Pengyu

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20180831

Address after: 226000 room 211, 3 building, 58 Chongchuan Road, Chongchuan District, Nantong, Jiangsu.

Patentee after: JIANGSU LIREN INFORMATION TECHNOLOGY CO.,LTD.

Address before: 541199 room 2, unit 8, Xinglin Road, Lingui Town, Lingui, the Guangxi Zhuang Autonomous Region, 202, Guilin, 202

Patentee before: Wu Pengyu

TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20200818

Address after: 215200 south of Lianyang road and east of Chang'an Road, Wujiang Economic and Technological Development Zone, Suzhou City, Jiangsu Province (Science and technology entrepreneurship Park)

Patentee after: Wujiang science and Technology Pioneer Park Management Service Co.,Ltd.

Address before: 510000 unit 2414-2416, building, No. five, No. 371, Tianhe District, Guangdong, China

Patentee before: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Effective date of registration: 20200818

Address after: 510000 unit 2414-2416, building, No. five, No. 371, Tianhe District, Guangdong, China

Patentee after: GUANGDONG GAOHANG INTELLECTUAL PROPERTY OPERATION Co.,Ltd.

Address before: 226000 Jiangsu Province, Nantong City Chongchuan District Chongchuan Road No. 58, building 3, room 211

Patentee before: JIANGSU LIREN INFORMATION TECHNOLOGY Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150909

Termination date: 20200630