CN101582055A - Serial port takeover method and device - Google Patents

Serial port takeover method and device Download PDF

Info

Publication number
CN101582055A
CN101582055A CNA2009101436553A CN200910143655A CN101582055A CN 101582055 A CN101582055 A CN 101582055A CN A2009101436553 A CNA2009101436553 A CN A2009101436553A CN 200910143655 A CN200910143655 A CN 200910143655A CN 101582055 A CN101582055 A CN 101582055A
Authority
CN
China
Prior art keywords
master control
control borad
cable card
card board
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CNA2009101436553A
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.)
Hangzhou H3C Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CNA2009101436553A priority Critical patent/CN101582055A/en
Publication of CN101582055A publication Critical patent/CN101582055A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Small-Scale Networks (AREA)

Abstract

The invention discloses a serial port takeover method and a device, wherein the device comprises at least one main control panel and at least one line-card panel. The main control panel comprises a controller of the main control panel, a shared interface of the main control panel and a serial port of the main control panel; the line-card panel comprises a controller of the line-card panel and a shared interface of the line-card panel; the controller of the line-card panel is used for sending initialization information of the line-card panel to the shared interface of the main control panel through the shared interface of the line-card panel, receiving a control command from the main control panel through the shared interface of the line-card panel, and conducting corresponding operation according to the control command; and the controller of the main control panel is used for receiving initialization information from the line-card panel through the shared interface of the main control panel, reporting the initialization information to control equipment through the serial port of the main control panel, receiving the control command through the serial port of the main control panel, and sending the control command to the line-card panel through the shared interface of the main control panel. The main control panel communicates with the line-card panel through shared bus, and separate wiring is not needed between the main control panel and each line-card panel, thus having relatively low cost and reducing the system resource cost.

Description

A kind of serial port takeover method and device
Technical field
The present invention relates to communication technical field, relate in particular to a kind of serial port takeover method and device.
Background technology
On existing communication facilities, adopt many single board design usually, for example comprise at least one master control borad and at least one cable card board, wherein, and the system management control of master control borad realization communication facilities and route calculating etc., cable card board is realized the miscellaneous service processing.In the prior art a kind of many single board communications equipment as shown in Figure 1, comprise master control borad, cable card board 1, cable card board 2, cable card board 3 ... .., cable card board N, paste between each piece veneer and closely.Wherein, using a master control borad, and master control borad is positioned at the cabinet upper end and is the example explanation in this example, also can use a plurality of master control borads in the practical application, other master control borads receive control command and feedback from a master control borad as cable card board, master control borad also can be positioned at other positions.
Be illustrated in figure 2 as multiple veneer system structural drawing, all can go out a serial ports in the communication facilities on each veneer, be used for exporting the initialization information of this veneer, and corresponding operating is carried out in reception user's instruction to computing machine with serial ports.For example, behind the single board starting, the CPU of this veneer is carried out initialization, if the initialization success then sends CPU (Center Process Unit, CPU (central processing unit)) initialization success message to computing machine, otherwise, send CPU initialization failed message; In like manner, the internal memory of this veneer is carried out initialization, if the initialization success then sends the internal memory initialization success message to computing machine, otherwise, send the internal memory initialization failed message.Therefore, serial ports is simple, cheap because of realizing, is widely used on the communication facilities, as the passage that administers and maintains.On master control borad, serial ports is finished initialization at each veneer, and communication channels among boards can also be used to safeguard total system after setting up, and issues steering order by serial ports Query Board information and to veneer.
When the communication facilities operate as normal, because the cable card board port density is bigger, perhaps consider because of consistance, on panel, do not place serial ports, but be placed in the cable card board, and the serial ports in the cable card board is covered by top veneer, can't connect Serial Port Line; Perhaps, do not use the RS232 serial interface of standard, need special-purpose interface line, for example 10 pins or 3 faller gill lines.Therefore, have only master control borad just can connect computing machine usually by serial ports.
When several situation below the generation, for keeping on-the-spot, be not suitable for cable card board is extracted, be inserted into the groove position that makes things convenient for serial ports in the fishplate bar; Or the on-the-spot Serial Port Line that does not have special use, cause can't see start-up course information, and then can cause difficult in maintenance.
In order to overcome the problems referred to above, in the prior art between master control borad and all cable card boards, increase many serial ports passages, as shown in Figure 3: the control module of cable card board is exported log-on message to the serial communication passage of master control borad synchronously when local serial ports is exported log-on message.Master control borad is received after the log-on message that cable card board sends over, can be outputed to computing machine by the serial ports of this plate.The order that the user imports on master control borad also can send to the cable card board of appointment by these serial communication passages.In this way, can reach when the cable card board fault observation line clamp log-on message, the purpose of control line clamp, for example, the self check of control line clamp internal memory, generally, the internal memory of a scrutiny program deposit position, if but repeatedly self check all can not be passed through, problem may be present in other positions of internal memory, needs to detect full memory by the serial ports input instruction.
Have following shortcoming in the prior art: on hardware, master control borad need increase a serial communication controller for each cable card board in the system, has increased cost; Each serial communication passage needs at least 2 signal wires, the veneer in system more for a long time, the wiring difficulty increases more.On software, master control borad need be the serial communication channel allocation interrupt resources of each cable card board, and perhaps by the information of each cable card board of controller automatic regular polling of master control borad, system resource overhead is big.
Summary of the invention
The invention provides a kind of serial port takeover method and device, when the cable card board fault, need not to connect the log-on message that Serial Port Line can obtain cable card board, and can the control line clamp.
The invention provides a kind of serial port takeover device, comprise at least one master control borad and at least one cable card board, described master control borad comprises master control borad controller, the shared interface of master control borad and master control borad serial ports, and described cable card board comprises cable card board controller and the shared interface of cable card board
Described cable card board controller, be used for that the cable card board initialization information is shared interface by described cable card board and send to the shared interface of described master control borad, and, carry out respective operations according to described steering order by the steering order of the shared interface reception of described cable card board from described master control borad;
Described master control borad controller, be used for sharing the initialization information of interface reception from described cable card board by master control borad, report opertaing device by described master control borad serial ports, and, share interface by described master control borad and send to described cable card board by described master control borad serial ports receiving control apparatus steering order.
Preferably,
Described master control borad is shared between interface and the described master control borad controller and is also comprised master control borad serial ports processor, is used to share the conversion of signal and rs 232 serial interface signal.
Preferably, described master control borad serial ports processor also is used to resolve described steering order, obtain the purpose cable card board address of described steering order, described purpose cable card board address is that master control borad passes through to share interface to the address of described cable card board sending controling instruction, shares interface by described master control borad described steering order is sent to described purpose cable card board.
Preferably,
Described cable card board is shared between interface and the described cable card board controller and is also comprised cable card board serial ports processor, is used to share the conversion of signal and rs 232 serial interface signal.
Preferably, described master control borad is shared interface and specifically is used for sending described steering order to all cable card boards that are connected with described master control borad, described cable card board serial ports processor also is used to resolve described steering order, obtain the purpose cable card board address of described steering order, the address of described purpose cable card board address and described cable card board self is compared,, then described steering order is sent to the cable card board controller if comparative result is identical, if the comparative result difference then abandons described steering order.
Preferably,
Described shared interface is a controller area network CAN shared bus interface.
The present invention also provides a kind of serial port takeover method, be applied to comprise in the device of at least one master control borad and at least one cable card board, described master control borad comprises master control borad controller, the shared interface of master control borad and master control borad serial ports, described cable card board comprises cable card board controller and the shared interface of cable card board, said method comprising the steps of:
Described cable card board controller is shared the cable card board initialization information with interface by described cable card board and is sent to the shared interface of described master control borad;
Described master control borad controller is shared the initialization information of interface reception from described cable card board by described master control borad, reports opertaing device by described master control borad serial ports;
Described master control borad controller is shared interface by described master control borad and is sent to described cable card board by the steering order of described master control borad serial ports receiving control apparatus;
Described cable card board controller is shared the steering order of interface reception from described master control borad by described cable card board, carries out respective operations according to described steering order.
Preferably,
Described master control borad controller is shared the initialization information of interface reception from described cable card board by master control borad, reports opertaing device by described master control borad serial ports, specifically comprises:
Described master control borad is shared interface will send to described master control borad processor from the initialization shared bus information of described cable card board;
Described master control borad processor is a Serial Port Information with described initialization shared bus information translation, and described rs 232 serial interface signal is reported opertaing device by described master control borad serial ports;
Described master control borad controller receives steering order by described master control borad serial ports, shares interface by described master control borad and sends to described cable card board, specifically comprises:
Described master control borad controller receives steering order by described master control borad serial ports, sends to described master control borad controller;
Described master control borad controller is converted to shared bus information with described steering order, shares interface by described master control borad and sends to described cable card board.
Preferably,
Described cable card board controller is shared the cable card board initialization information with interface by described cable card board and is sent to the shared interface of described master control borad, specifically comprises:
Described cable card board controller is converted to initialization shared bus information with described initialization Serial Port Information, sends to described master control borad and shares interface;
Described cable card board controller is shared the instruction of interface reception from described master control borad by described cable card board, specifically comprises:
Described cable card board is shared interface will send to described cable card board controller from the shared bus information of described master control borad;
Described cable card board controller is the serial ports instruction with described shared bus information translation.
Preferably,
Described shared interface is a controller area network CAN shared bus interface.
Compared with prior art, the present invention has the following advantages:
Among the present invention, communicate by letter by shared bus between master control borad and the cable card board, substituted serial ports of the prior art and connected, because shared bus is supported multi-thread clamp communication, not be used between master control borad and each cable card board line separately, cost is cheap relatively; On hardware, master control borad and cable card board only need be for increasing a serial ports controller in the system, and on software, master control borad only need be to share interface communication channel allocation interrupt resources, perhaps automatic regular polling, and system resource overhead reduces.
Description of drawings
Fig. 1 is many single board communications equipment synoptic diagram in the prior art;
Fig. 2 is the serial ports synoptic diagram of multiple veneer system in the prior art;
Fig. 3 is with many single-board devices synoptic diagram of extra serial communication passage in the prior art;
Fig. 4 uses the CAN bus to substitute many single-board devices synoptic diagram of additional strings port communications passage among the present invention;
Fig. 5 is a master control borad and any cable card board syndeton synoptic diagram wherein among the present invention;
Fig. 6 is the schematic flow sheet of an embodiment of the method for serial port takeover among the present invention when cable card board is controlled;
Fig. 7 is the schematic flow sheet of an embodiment of the method for serial port takeover among the present invention when cable card board is carried out fault detect;
Fig. 8 is the schematic flow sheet of another embodiment of method of serial port takeover among the present invention when cable card board is controlled.
Embodiment
Core thinking of the present invention is: in the communication facilities that comprises at least one master control borad and at least one cable card board, described master control borad comprises master control borad controller, the shared interface of master control borad and master control borad serial ports, and described cable card board comprises cable card board controller and the shared interface of cable card board.Wherein, described cable card board controller, be used for that the cable card board initialization information is shared interface by described cable card board and send to the shared interface of described master control borad, and share the steering order of interface reception, carry out respective operations according to described steering order from described master control borad by described cable card board; Described master control borad controller, be used for sharing the initialization information of interface reception from described cable card board by master control borad, report opertaing device by described master control borad serial ports, and receive steering order, share interface by described master control borad and send to described cable card board by described master control borad serial ports.Therefore, master control borad and cable card board not be used in independent line between master control borad and each cable card board by the mutual control information of shared bus, and cost is cheap relatively.
This cable card board is mainly shared the steering order that the interface receiving computer sends by master control borad by cable card board, or by sharing interface to master control borad transmission cable card board initialization information, but when cable card board is carried out system debug, a cable card board serial ports can also be set on cable card board, be used for being directly connected to computing machine by Serial Port Line by this cable card board serial ports, and be not connected to computing machine by master control borad, this cable card board is debugged.In addition, this cable card board serial ports can be connected with described cable card board controller by jumper cap or switch, or directly is connected with described cable card board controller, and the cable card board controller according to circumstances needs, and selects to open or close the cable card board serial ports by jumper cap or switch.
In most cases the master control borad controller is only supported the information or the order of serial ports form, and do not accept to share the information or the order of interface format, equally, the information that the shared interface of master control borad receives or the form of order are for sharing interface format, therefore share between interface and this master control borad controller at this master control borad and can also comprise master control borad serial ports processor, be used to share the conversion of signal and rs 232 serial interface signal, and the information after will changing or order send to master control borad controller or shared interface.
Equally, between the shared interface of this cable card board and this cable card board controller, also can comprise cable card board serial ports processor, be used to share the conversion of signal and rs 232 serial interface signal.
Communicate by letter by shared bus between master control borad and the cable card board, substituted serial ports of the prior art and connected, because shared bus is supported multi-thread clamp communication, not be used between master control borad and each cable card board line separately, cost is cheap relatively; On hardware, master control borad and cable card board only need be for increasing a serial ports controller in the system, and on software, master control borad only need be to share interface communication channel allocation interrupt resources, perhaps automatic regular polling, and system resource overhead reduces.
Below in conjunction with concrete application scenarios the present invention is done specific descriptions.
Embodiments of the invention provide a kind of use CAN (Controller Area Network, controller area network) shared bus to substitute many single-board devices of additional strings port communications passage.
As shown in Figure 4, comprise a master control borad and N cable card board, for example, cable card board 1, cable card board 2, cable card board 3 ..., cable card board N, the value of N is relevant with the concrete applicable cases of this device, different application situation N value can be different.
In this device, master control borad 510 is connected specifically as shown in Figure 5 with any cable card board 520 wherein.Master control borad 510 is used for transmitting from the information of user and cable card board.Master control borad receives user's steering order, and sends this steering order to the cable card board of correspondence, and the user controls cable card board by master control borad; And receiving log-on message from cable card board, cable card board provides the log-on message of this cable card board to realize the duty of cable card board is detected by master control borad to the user.
Master control borad 510 comprises master control borad controller 511, master control borad serial ports 512 and master control borad CAN controller 513 and master control borad CAN shared bus interface 514.
Master control borad controller 511, be used for sharing the initialization information of interface reception from described cable card board by master control borad, report computing machine by described master control borad serial ports, and receive steering order, share interface by described master control borad and send to described cable card board by described master control borad serial ports.
Master control borad serial ports 512 links to each other with master control borad controller 511 with computing machine respectively by Serial Port Line, is used for receiving computer or user's steering order, and this steering order is sent to master control borad controller 511.
Master control borad CAN controller 513 links to each other with master control borad controller 511, is used for the serial ports format information or the shared interface format information of CAN that receive are changed.Also be used for the time, resolve the purpose cable card board address in the steering order specified line clamp sending controling instruction.
Master control borad CAN shared bus interface 514 is used for to the cable card board sending controling instruction, or receives the log-on message that cable card board sends.When master control borad controller 511 had information conversion function or integrated CAN controller, master control borad CAN shared bus interface 514 can also directly link to each other with master control borad controller 511.
Cable card board 520 is connected with this master control borad 510, is used to receive the steering order of master control borad, the business of user's indication is handled, and when start-up course, sent log-on message to master control borad, is used for when fault cable card board being detected.Cable card board 520 comprises cable card board controller 521 and cable card board CAN controller 523 and cable card board CAN shared bus interface 524.
Cable card board controller 521, be used for that the cable card board initialization information is shared interface by described cable card board and send to the shared interface of described master control borad, and, carry out respective operations according to described steering order by the steering order of the shared interface reception of described cable card board from described master control borad.
Cable card board CAN controller 523 is connected with cable card board CAN shared bus interface 524 with cable card board controller 521 respectively, is used for the serial ports format information or the shared interface format information of CAN that receive are changed.When also being used to receive master control borad CAN shared bus interface 514 broadcast transmission steering orders, resolve the purpose cable card board address in the steering order, and relatively whether this purpose cable card board address is identical with this cable card board address, when identical, this steering order is sent to cable card board controller 521, not simultaneously, this steering order is not abandoned.
Cable card board CAN shared bus interface 524 is used for to the cable card board sending controling instruction, or receives the log-on message that cable card board sends.When cable card board controller 521 had information conversion function or integrated CAN controller, cable card board CAN shared bus interface 524 can also directly link to each other with cable card board controller 521.
Cable card board can also comprise cable card board serial ports 522, is used for directly linking to each other with computing machine when this cable card board is debugged.Cable card board serial ports 522 is positioned at cable card board, when each cable card board is debugged separately, this serial ports can be connected to computing machine by Serial Port Line, but because design and actual needs, often each cable card board pastes and is comparatively tight, when communication facilities normally moves, the serial ports of cable card board is inconvenient to connect Serial Port Line, promptly do not connect computing machine, be connected with master control borad, be connected with computing machine by master control borad then but connect by the shared bus on the backboard separately by serial ports.
Cable card board controlled and carry out fault detect comprise multiple situation, below enumerate several typical case and describe:
Situation one, when cable card board is controlled, the user can be by the steering order of computing machine input control line clamp 520, computing machine links to each other with the master control borad serial ports 512 of master control borad 510, receive this steering order by master control borad serial ports 512, this steering order is sent to master control borad controller 511, after this master control borad controller 511 receives this steering order, steering order is sent to master control borad CAN controller 513, this steering order is converted to CAN shares the steering order form that interface is accepted, because the steering order by 512 inputs of master control borad serial ports is the serial ports steering order, therefore master control borad CAN controller 513 need be converted to steering order the form of the CAN shared bus interface that meets master control borad CAN controller 513 before sending this steering order to cable card board.Master control borad CAN controller 513 also will be resolved this steering order, obtain the purpose cable card board address of this steering order, this purpose cable card board is the cable card board (as cable card board 520) that the user need control, this purpose cable card board address is the address of this cable card board that need control, after this master control borad CAN controller 513 is analyzed and is drawn this cable card board address, by this CAN shared bus interface 514 to purpose cable card board sending controling instruction, after this cable card board CAN shared bus interface receives this steering order, after by cable card board CAN controller 523 this steering order being carried out format conversion, send to cable card board controller 521, cable card board controller 521 carries out corresponding service processing according to steering order.
When cable card board is carried out fault detect, cable card board controller 521 sends log-on message to cable card board CAN controller 523 when starting, cable card board CAN controller 523 sends by cable card board CAN shared bus interface this log-on message to master control borad, after the CAN shared bus interface of master control borad receives this log-on message, this log-on message is converted into the information format that meets 512 acceptance of master control borad serial ports by master control borad CAN controller 513, and this log-on message sent to master control borad controller 511, master control borad controller 511 sends to computing machine with this log-on message by master control borad serial ports 512, by computing machine this log-on message is analyzed, realized fault detect cable card board.
Situation two, different with situation one be, after master control borad receives user's steering order, also can broadcast mode to all cable card board sending controling instructions that is connected with this master control borad.Two pairs of cable card boards of situation carry out fault detect and situation one is roughly the same, do not repeat them here.
When cable card board is controlled, the user is by the steering order of computing machine input control line clamp 520, after receiving this steering order, this steering order is sent to master control borad controller 511, this master control borad controller 511 sends to master control borad CAN controller 513 with steering order, this steering order is converted to CAN shares the steering order form that interface is accepted.Because master control borad with the broadcast mode sending controling instruction, does not therefore need this steering order is resolved, master control borad CAN controller 513 sends this steering order by CAN shared bus interface to all cable card boards.After the CAN shared bus interface of each cable card board receives this steering order, this steering order is resolved, obtain the purpose cable card board address of this steering order, compare with the cable card board address of self, if the purpose cable card board address that parses is identical with the cable card board address of self, after by cable card board CAN controller 523 this steering order being carried out format conversion, send to cable card board controller 521, this cable card board controller 521 carries out corresponding service processing according to steering order, if the purpose cable card board address that parses is different with the cable card board address of self, then this cable card board abandons this steering order.
Situation three, different with situation one and situation two be, the CAN controller is integrated on master control borad controller 511 or the cable card board, reduce the configuration of master control borad and cable card board, this master control borad controller 511 or cable card board controller 521 can realize that serial ports format information and CAN share the conversion between the format information, need not to be provided with in addition the CAN controller on master control borad and cable card board.
When cable card board is controlled, after master control borad controller 511 receives user's steering order by master control borad serial ports 512, this steering order is converted to the information format that CAN shared bus interface is accepted, directly send to cable card board then by CAN shared bus interface, after cable card board CAN shared bus interface receives this steering order, send to cable card board controller 521, cable card board controller 521 carries out corresponding service processing according to steering order.
When cable card board is carried out fault detect, cable card board controller 521 directly is converted to the information format that CAN shared bus interface is accepted with the log-on message of start-up course, CAN shared bus interface by cable card board sends to master control borad with this log-on message, after master control borad controller 511 receives this log-on message by master control borad CAN shared bus interface, this log-on message is converted to the serial ports form, send to computing machine by master control borad serial ports 512, by computing machine this log-on message is analyzed, realized fault detect cable card board.
Situation four, since cable card board on serial ports when communication facilities normally moves, can not connect computing machine,, serial ports can be set on cable card board therefore in order to reduce the configuration of cable card board, cable card board only connects master control borad by CAN shared bus interface, connects computing machine by master control borad.When cable card board is controlled and situation one roughly the same, when cable card board was carried out fault detect, cable card board controller 521 needn't send log-on message to serial ports when starting, specifically repeat no more.
Situation five, different with situation four, the cable card board serial ports still is set in the cable card board, but this serial ports is emitted by wire jumper by cable card board controller 521 or other select connected mode or device that the cable card board serial ports is controlled, when cable card board controller 521 need send log-on message by serial ports, emit or other select connected modes or device to open the cable card board serial ports by wire jumper, send the steering order of log-on message or receiving computer by the cable card board serial ports.
Need to prove at this, master control borad controller 511 or cable card board controller 521 are changed (as situation three) according to CAN agreement and serial port protocol to the information that receives, and the CAN controller of master control borad and cable card board is changed the information that receives according to CAN agreement and serial port protocol.Also need to prove at this, according to actual needs, the user also can directly pass through master control borad serial ports 512 input control orders, and not by computing machine to the master control borad input control order, but when cable card board is carried out fault detect, the user should possess an output unit at least, cable card board can be exported by this output unit by the log-on message that master control borad sends, and realizes the fault detect to cable card board.
In addition, master control borad and each cable card board carry out data and message exchange by the communication channels among boards on the backboard, for example adopt Ethernet interface form transceive data.
The embodiment of the invention is that example describes technical scheme of the present invention with the CAN shared bus, but shared bus of the present invention is not limited thereto, for the I2C bus of supporting multinode communication, share serial bus (485 bus), the SPI interface bus, the present invention still is suitable for, different according to different bus agreement and structure, concrete condition and the foregoing description are different, and concrete condition does not repeat them here.
Communicate by letter by shared bus between master control borad and the cable card board, substituted serial ports of the prior art and connected, because shared bus is supported multi-thread clamp communication, not be used between master control borad and each cable card board line separately, cost is cheap relatively; On hardware, master control borad and cable card board only need be for increasing a serial ports controller in the system, and on software, master control borad only need be to share interface communication channel allocation interrupt resources, perhaps automatic regular polling, and system resource overhead reduces.
The method that the present invention also provides a kind of and many single-board devices of serial port takeover corresponding serial ports to take over is controlled cable card board and is detected when the fault by this method.
When cable card board is controlled, wherein, as shown in Figure 6, comprising:
Step 601, the user is by master control borad serial ports input control order.The user can pass through the computing machine input control order, also direct input control order on the master control borad serial ports.This steering order is used to control corresponding cable card board.
Step 602, the master control borad serial ports sends to the master control borad controller with this steering order.The master control borad serial ports sends to the master control borad controller by local serial ports with this steering order.
Step 603, the master control borad controller sends to master control borad CAN controller with this steering order, and master control borad CAN controller is resolved this steering order, obtains the purpose cable card board address of this steering order, and this steering order changed, to meet the form that CAN shares interface output.The master control borad controller sends to master control borad CAN controller by local serial ports with this steering order.
Step 604, the master control borad CAN controller steering order after with this format conversion sends to master control borad CAN and shares interface, shares interface by master control borad CAN and sends to corresponding cable card board CAN and share interface.According to the needs of actual conditions, master control borad CAN shares interface and can be arranged on the CAN controller, also can be provided with separately.
Step 605, after this cable card board receives this steering order by the shared interface of cable card board CAN, this steering order is sent to cable card board CAN controller, cable card board CAN controller carries out format conversion to this steering order, meeting the serial ports form, and the steering order of this serial ports form is sent to the cable card board controller.Cable card board CAN controller sends this steering order by local serial ports to the cable card board controller.
Step 606, the cable card board controller carries out corresponding service processing according to this steering order.
Step 607 if the cable card board controller has informational needs to user feedback, is then shared interface by the CAN that is connected with master control borad and is sent to master control borad, sends to the user by the master control borad serial ports, realizes the feedback to the user.
When cable card board is carried out fault detect, as shown in Figure 7, comprising:
Step 701, the cable card board controller sends log-on message to cable card board CAN controller when starting.The cable card board controller sends to cable card board CAN controller by local serial ports with this steering order.
Step 702, after cable card board CAN controller is converted to the shared interface format of CAN with this log-on message, share interface to cable card board CAN and send this log-on message, cable card board CAN shares interface the log-on message that this CAN shares interface format is sent to the shared interface of master control borad CAN.
Step 703, master control borad are shared interface by master control borad CAN and are received this log-on message, and master control borad CAN controller carries out format conversion to this log-on message, and the log-on message after the format conversion is sent to the master control borad controller.Master control borad CAN controller sends to the master control borad controller by local serial ports with this steering order.
Step 704, the master control borad controller sends to the master control borad serial ports with this log-on message, sends to the user by the master control borad serial ports.
Step 705, the user is according to this log-on message, and the fault of cable card board is detected.
Communicate by letter by shared bus between master control borad and the cable card board, substituted serial ports of the prior art and connected, because shared bus is supported multi-thread clamp communication, not be used between master control borad and each cable card board line separately, cost is cheap relatively; On hardware, master control borad and cable card board only need be for increasing a serial ports controller in the system, and on software, master control borad only need be to share interface communication channel allocation interrupt resources, perhaps automatic regular polling, and system resource overhead reduces.
This method also provides an embodiment when cable card board is controlled, as shown in Figure 8, different with the foregoing description is, in step 803, master control borad CAN controller does not need the destination address of this steering order is resolved, in step 804, but after carrying out format conversion, directly all cable card boards that connect to this master control borad send this steering order, in step 805, after the shared interface of the CAN of each cable card board receives this steering order, this steering order is resolved by cable card board CAN controller, obtain the purpose cable card board address of this steering order, if this purpose cable card board address is identical with the address of self, then this steering order is sent to the cable card board controller and carry out subsequent treatment, if this purpose cable card board address is different with the address of self, then this steering order is abandoned, comprising:
Step 801, the user is by master control borad serial ports input control order.Equally, the user can pass through the computing machine input control order, also direct input control order on the master control borad serial ports.This steering order is used to control corresponding cable card board.
Step 802, the master control borad serial ports sends to the master control borad controller with this steering order.
Step 803, the master control borad controller sends to master control borad CAN controller with this steering order, this steering order is changed, to meet the form that CAN shares interface output.The master control borad controller sends to master control borad CAN controller by local serial ports with this steering order.
Step 804, the master control borad CAN controller steering order after with this format conversion sends to master control borad CAN and shares interface, shares interface by master control borad CAN and shares interface to the cable card board CAN of all cable card boards and send.According to the needs of actual conditions, master control borad CAN shares interface and can be arranged on the CAN controller, also can be provided with separately.
Step 805, after this cable card board receives this steering order by the shared interface of cable card board CAN, this steering order is sent to cable card board CAN controller, cable card board CAN controller carries out format conversion to this steering order, to meet the serial ports form, and by cable card board CAN controller this steering order is resolved, obtain the purpose cable card board address of this steering order.
Step 806, relatively step 807 if this purpose cable card board address is identical with the address of self, is then changeed in the address of this purpose cable card board address and cable card board self, if different, then this steering order is abandoned.
Step 807 sends to the cable card board controller with the steering order of this serial ports form.The cable card board controller carries out corresponding service processing according to this steering order.
Step 808 if the cable card board controller has informational needs to user feedback, is then shared interface by the CAN that is connected with master control borad and is sent to master control borad, sends to the user by the master control borad serial ports, realizes the feedback to the user.
Communicate by letter by shared bus between master control borad and the cable card board, substituted serial ports of the prior art and connected, because shared bus is supported multi-thread clamp communication, not be used between master control borad and each cable card board line separately, cost is cheap relatively; On hardware, master control borad and cable card board only need be for increasing a serial ports controller in the system, and on software, master control borad only need be to share interface communication channel allocation interrupt resources, perhaps automatic regular polling, and system resource overhead reduces.
Through the above description of the embodiments, those skilled in the art can be well understood to the present invention and can realize by hardware, also can realize by the mode that software adds necessary general hardware platform.Based on such understanding, technical scheme of the present invention can embody with the form of software product, it (can be CD-ROM that this software product can be stored in a non-volatile memory medium, USB flash disk, portable hard drive etc.) in, comprise some instructions with so that computer equipment (can be personal computer, server, the perhaps network equipment etc.) carry out the described method of each embodiment of the present invention.
It will be appreciated by those skilled in the art that accompanying drawing is the synoptic diagram of a preferred embodiment, module in the accompanying drawing or flow process might not be that enforcement the present invention is necessary.
It will be appreciated by those skilled in the art that the module in the device among the embodiment can be distributed in the device of embodiment according to the embodiment description, also can carry out respective change and be arranged in the one or more devices that are different from present embodiment.The module of the foregoing description can be merged into a module, also can further split into a plurality of submodules.
The invention described above sequence number is not represented the quality of embodiment just to description.
More than disclosed only be several specific embodiment of the present invention, still, the present invention is not limited thereto, any those skilled in the art can think variation all should fall into protection scope of the present invention.

Claims (10)

1, a kind of serial port takeover device, comprise at least one master control borad and at least one cable card board, described master control borad comprises master control borad controller, the shared interface of master control borad and master control borad serial ports, and described cable card board comprises cable card board controller and the shared interface of cable card board, it is characterized in that
Described cable card board controller, be used for that the cable card board initialization information is shared interface by described cable card board and send to the shared interface of described master control borad, and, carry out respective operations according to described steering order by the steering order of the shared interface reception of described cable card board from described master control borad;
Described master control borad controller, be used for sharing the initialization information of interface reception from described cable card board by master control borad, report opertaing device by described master control borad serial ports, and, share interface by described master control borad and send to described cable card board by described master control borad serial ports receiving control apparatus steering order.
2, device as claimed in claim 1 is characterized in that,
Described master control borad is shared between interface and the described master control borad controller and is also comprised master control borad serial ports processor, is used to share the conversion of signal and rs 232 serial interface signal.
3, device as claimed in claim 2, it is characterized in that, described master control borad serial ports processor also is used to resolve described steering order, obtain the purpose cable card board address of described steering order, described purpose cable card board address is that master control borad passes through to share interface to the address of described cable card board sending controling instruction, shares interface by described master control borad described steering order is sent to described purpose cable card board.
4, device as claimed in claim 1 is characterized in that,
Described cable card board is shared between interface and the described cable card board controller and is also comprised cable card board serial ports processor, is used to share the conversion of signal and rs 232 serial interface signal.
5, device as claimed in claim 4, it is characterized in that, described master control borad is shared interface and specifically is used for sending described steering order to all cable card boards that are connected with described master control borad, described cable card board serial ports processor also is used to resolve described steering order, obtain the purpose cable card board address of described steering order, the address of described purpose cable card board address and described cable card board self is compared, if comparative result is identical, then described steering order is sent to the cable card board controller, if the comparative result difference then abandons described steering order.
6, as each described device in the claim 1 to 5, it is characterized in that,
Described shared interface is a controller area network CAN shared bus interface.
7, a kind of serial port takeover method, be applied to comprise in the device of at least one master control borad and at least one cable card board, described master control borad comprises master control borad controller, the shared interface of master control borad and master control borad serial ports, described cable card board comprises cable card board controller and the shared interface of cable card board, it is characterized in that, said method comprising the steps of:
Described cable card board controller is shared the cable card board initialization information with interface by described cable card board and is sent to the shared interface of described master control borad;
Described master control borad controller is shared the initialization information of interface reception from described cable card board by described master control borad, reports opertaing device by described master control borad serial ports;
Described master control borad controller is shared interface by described master control borad and is sent to described cable card board by the steering order of described master control borad serial ports receiving control apparatus;
Described cable card board controller is shared the steering order of interface reception from described master control borad by described cable card board, carries out respective operations according to described steering order.
8, method as claimed in claim 7 is characterized in that,
Described master control borad controller is shared the initialization information of interface reception from described cable card board by master control borad, reports opertaing device by described master control borad serial ports, specifically comprises:
Described master control borad is shared interface will send to described master control borad processor from the initialization shared bus information of described cable card board;
Described master control borad processor is a Serial Port Information with described initialization shared bus information translation, and described rs 232 serial interface signal is reported opertaing device by described master control borad serial ports;
Described master control borad controller receives steering order by described master control borad serial ports, shares interface by described master control borad and sends to described cable card board, specifically comprises:
Described master control borad controller receives steering order by described master control borad serial ports, sends to described master control borad controller;
Described master control borad controller is converted to shared bus information with described steering order, shares interface by described master control borad and sends to described cable card board.
9, method as claimed in claim 7 is characterized in that,
Described cable card board controller is shared the cable card board initialization information with interface by described cable card board and is sent to the shared interface of described master control borad, specifically comprises:
Described cable card board controller is converted to initialization shared bus information with described initialization Serial Port Information, sends to described master control borad and shares interface;
Described cable card board controller is shared the instruction of interface reception from described master control borad by described cable card board, specifically comprises:
Described cable card board is shared interface will send to described cable card board controller from the shared bus information of described master control borad;
Described cable card board controller is the serial ports instruction with described shared bus information translation.
10, as each described method in the claim 7 to 9, it is characterized in that,
Described shared interface is a controller area network CAN shared bus interface.
CNA2009101436553A 2009-05-31 2009-05-31 Serial port takeover method and device Pending CN101582055A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009101436553A CN101582055A (en) 2009-05-31 2009-05-31 Serial port takeover method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009101436553A CN101582055A (en) 2009-05-31 2009-05-31 Serial port takeover method and device

Publications (1)

Publication Number Publication Date
CN101582055A true CN101582055A (en) 2009-11-18

Family

ID=41364205

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009101436553A Pending CN101582055A (en) 2009-05-31 2009-05-31 Serial port takeover method and device

Country Status (1)

Country Link
CN (1) CN101582055A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102123080A (en) * 2010-12-31 2011-07-13 杭州华三通信技术有限公司 Data forwarding device and cable fastener plate and data forwarding method
CN101815103B (en) * 2010-01-29 2012-08-22 北京东土科技股份有限公司 Multi-board communication equipment address query method
CN103617061A (en) * 2013-12-05 2014-03-05 中国航空无线电电子研究所 Method for multi-node on-line software updating on basis of ARM

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815103B (en) * 2010-01-29 2012-08-22 北京东土科技股份有限公司 Multi-board communication equipment address query method
CN102123080A (en) * 2010-12-31 2011-07-13 杭州华三通信技术有限公司 Data forwarding device and cable fastener plate and data forwarding method
CN102123080B (en) * 2010-12-31 2014-02-05 杭州华三通信技术有限公司 Data forwarding device and cable fastener plate and data forwarding method
CN103617061A (en) * 2013-12-05 2014-03-05 中国航空无线电电子研究所 Method for multi-node on-line software updating on basis of ARM

Similar Documents

Publication Publication Date Title
CN100511200C (en) Control method, system and equipment of single serial port multi-CPU
CN101198943B (en) Point-to-point link negotiation method and apparatus
CN112988495B (en) Multifunctional test method, device and system for SOC chip multiplex pin
CN101160828A (en) Management system and method based on intelligent platform management interface
US20070234032A1 (en) System and method for chassis management
CN113177018B (en) Server using double-slot CPU
CN102724093A (en) Advanced telecommunications computing architecture (ATCA) machine frame and intelligent platform management bus (IPMB) connection method thereof
CN101242284A (en) Communication method and network device based on SPI bus
CN106155954B (en) System and method for module identification and automatic communication port allocation
CN101582055A (en) Serial port takeover method and device
WO2016197694A1 (en) Fan testing method and device
CN100555231C (en) A kind of Debugging message output and control system and method thereof
CN101197685A (en) Method for implementing high-available switching device cascade connection
CN101635683A (en) Method and device for transmitting service based on link aggregation
CN101000572A (en) Mainframe management system and method
CN107769960B (en) BMC management architecture based on CAN bus
CN113900985B (en) IO and SPI multiplexing chip, multiplexing auxiliary chip and data interaction method
CN106855846A (en) A kind of PCIE signal extension system and method based on PCIE Switch
CN113194048B (en) Device for dynamically switching CPU and GPU topology and use method
CN110798242B (en) Circuit, multichannel device and multichannel short message sending method
CN101247235B (en) Rack type equipment and its master control module and sub-module
CN210807520U (en) Dual-system networking all-in-one machine
JPH06300808A (en) Method for inspecting cable wiring
US6922143B2 (en) Serial bus type configuration recognition and alarm apparatus
CN110505292A (en) data transmission control method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Open date: 20091118