CN1946082A - Re-orienting method for multiple users terminal series interface and main control device - Google Patents

Re-orienting method for multiple users terminal series interface and main control device Download PDF

Info

Publication number
CN1946082A
CN1946082A CN 200610150061 CN200610150061A CN1946082A CN 1946082 A CN1946082 A CN 1946082A CN 200610150061 CN200610150061 CN 200610150061 CN 200610150061 A CN200610150061 A CN 200610150061A CN 1946082 A CN1946082 A CN 1946082A
Authority
CN
China
Prior art keywords
target board
redirected
serial ports
user terminal
master control
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN 200610150061
Other languages
Chinese (zh)
Other versions
CN1946082B (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.)
Shanghai Huawei Technologies Co Ltd
Original Assignee
Shanghai 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 Shanghai Huawei Technologies Co Ltd filed Critical Shanghai Huawei Technologies Co Ltd
Priority to CN2006101500611A priority Critical patent/CN1946082B/en
Publication of CN1946082A publication Critical patent/CN1946082A/en
Application granted granted Critical
Publication of CN1946082B publication Critical patent/CN1946082B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Debugging And Monitoring (AREA)

Abstract

This invention provides a re-direction method for multi-user terminal serial and a primary control device, when a user terminal starts up the serial of an appointed target plate, the primary control board sets up a corresponding relation list for the appointed target plate and adds the corresponding relation of the user terminal and the appointed target board into the corresponding relation list, the method also includes: a start-up flow for serial re-direction, a transmitting flow of the serial order of the user terminal, the sending flow of the target plate output data and a stop flow of serial re-direction. This invention also provides a master control device for multi-user terminal serial re-direction including a storage unit for corresponding relation lists, a management unit, a serial re-direction unit, a shake-hands unit and a timer unit.

Description

A kind of re-orienting method for multiple users terminal series interface and main control device
Technical field
The present invention relates to the veneer technical field, relate in particular to a kind of multiple users and many veneers realized and carry out the serial ports reorientation method of information interaction simultaneously.
Background technology
In veneer exploitation and debug process, the user need detect veneer, detection comprises that technology detects or Data Detection, and veneer generally connects debug platform and target single board by serial equipment in the detection, so veneer exploitation and debugging are mainly carried out based on serial ports.In veneer exploitation at present and the debugging, main method of attachment comprises by the direct-connected local debugging of Serial Port Line, carries out remote debugging that Telnet (far-end login protocol) connects and be redirected the debugging that target single board is carried out by serial ports by the IP address of intended target veneer.Wherein the method that is redirected of serial ports is compared with preceding two kinds of methods, not only can realize remote debugging, can also debug simultaneously a plurality of target single boards by virtual serial ports, and not need the IP address of intended target veneer.Its operation principle is: serial ports is redirected and is called virtual serial port again, by at virtual one or more serial ports of debug platform, and virtual serial ports is corresponding with the serial ports of target single board, the commissioning staff can debug a plurality of target single boards by this virtual serial ports simultaneously at debug platform.This serial ports reorientation method not only can reach and the direct identical debugging effect of linking objective serial port of a board, can also improve debugging efficiency greatly.
But use the method that serial ports is redirected also to have following shortcoming in the prior art:
Same veneer can only be started by a user terminal in the debugging work of synchronization, and can only start once; Only after this veneer stops the redirected debugging work of serial ports, just can start once more.
Summary of the invention
The problem to be solved in the present invention provides a kind of re-orienting method for multiple users terminal series interface and main control device, in order to the information interaction that realizes carrying out simultaneously between a plurality of user terminals and polylith target single board.
For realizing this purpose, one embodiment of the invention provide a kind of re-orienting method for multiple users terminal series interface, comprise step:
User terminal sends and starts the message that the Target Board serial ports is redirected;
Master control borad adds the corresponding relation of described user terminal and described Target Board;
Described Target Board starts serial ports to be redirected.
Another embodiment of the present invention also provides a kind of multiple users serial ports to be redirected main control device, comprises that mapping table memory cell, mapping table administrative unit and serial ports are redirected the unit, wherein,
The mapping table memory cell is used to store the mapping table of each Target Board of master control borad management;
The mapping table administrative unit is used for foundation and/or the modification and/or the deletion of the mapping table of described each Target Board;
Serial ports is redirected the unit, is used for being redirected and information interaction according to the serial ports that described mapping table carries out between user terminal and the Target Board.
Implement the present invention, the beneficial effect that brings is:
The present invention can realize the information interaction that a plurality of user terminals carry out the polylith veneer simultaneously, has made things convenient for the production debugging or the development of veneer, has improved operating efficiency.
Description of drawings
Fig. 1 is the flow chart of the re-orienting method for multiple users terminal series interface of embodiment one among the present invention;
Fig. 2 is that the serial ports of embodiment one among the present invention is redirected the startup schematic flow sheet;
Fig. 3 is the transmission flow schematic diagram of the user terminal serial port command of embodiment one among the present invention;
Fig. 4 A and Fig. 4 B are the transmission flow schematic diagrames of the Target Board dateout of embodiment one among the present invention;
Fig. 5 A and Fig. 5 B are the redirected schematic flow sheets that stops of the serial ports of embodiment one among the present invention;
Fig. 6 is the flow chart of the failure of shaking hands of embodiment one among the present invention;
Fig. 7 is the flow chart of the success of shaking hands of embodiment one among the present invention;
Fig. 8 is the structural representation that the multiple users serial ports of embodiment two among the present invention is redirected main control device.
Embodiment
Below in conjunction with accompanying drawing re-orienting method for multiple users terminal series interface of the present invention and main control device are done further introduction:
According to the principle of present single board design, the polylith veneer is managed concentratedly by master control veneer, and among the present invention, the veneer that needs are debugged is called Target Board, and the master control veneer of being responsible for the centralized management Target Board is called master control borad.
In the embodiments of the invention one, the method that provides a kind of multiple users serial ports to be redirected as shown in Figure 1, comprises the steps:
Step s101, user terminal send to Target Board and start the serial ports redirect message;
Step s102, master control borad judge that whether the serial ports of this Target Board is redirected for starting first: if, execution in step s103 then; Otherwise execution in step s104;
Step s103, master control borad are set up the mapping table of this Target Board in internal memory, comprise following content in the mapping table of each Target Board:
TargetBoardID; Target Board ID (sign)
UserInfo[UserID]。User profile [user terminal identification]
UserNum; Number of users
Timer; Timer information
Times; The counter of shaking hands
Step s104, master control borad add the user ID of this user terminal in the user profile of this Target Board mapping table to, thereby have added the corresponding relation of this user terminal and this Target Board;
The serial ports of step s105, Target Board is redirected and starts;
Step s106, user terminal send serial port command to Target Board;
Step s107, Target Board send dateout to user terminal;
Step s108, judge whether to be the last item serial port command, be then to continue, otherwise forward step s106 to;
Step s109, user terminal stop to the serial ports of Target Board is redirected.
The serial ports of step s105 is redirected and starts in the flow process, if there is user terminal to send the redirected request of serial ports that starts this Target Board to master control borad, master control borad judges at first that the serial ports of Target Board is redirected and whether starts that when not starting, the serial ports of master control board starting intended target plate is redirected; After the serial ports of intended target plate was redirected and starts, master control borad sent to user terminal and starts success response, and the embodiment of this flow process comprises step as shown in Figure 2:
Step s201, user terminal 1 send to master control borad and start serial ports redirect request message;
Step s202, master control borad find that intended target plate serial ports is redirected as yet startup;
Step s203, master control borad send to the intended target plate and start serial ports redirect request message;
Step s204, intended target plate start serial ports to be redirected;
Step s205, intended target plate send serial ports to master control borad and are redirected the startup success response;
Step s206, master control borad send serial ports to user terminal 1 and are redirected the startup success response.
The serial ports of step s105 is redirected and starts in the flow process, after the serial ports of Target Board is redirected and has started, if there is user terminal to send the redirected request of serial ports that starts this Target Board to master control borad, then master control borad returns the startup success message to this user terminal, the embodiment of this flow process comprises step as shown in Figure 2:
Step s211, user terminal 2 send to master control borad and start serial ports redirect request message;
Step s212, master control borad discovery intended target plate serial ports is redirected and starts;
Step s213, master control borad send serial ports to user terminal 2 and are redirected the startup success response.
By above-mentioned steps, then the serial ports of Target Board be redirected to start flow process and finishes, and can proceed by user terminal via master control borad to the transmission flow of the serial port command of Target Board or Target Board via the transmission flow of master control borad to the dateout of user terminal.
User terminal need send serial port command to one or more Target Boards of appointment in the exploitation of veneer and debugging, the response by Target Board comes the Target Board state is judged and safeguarded accordingly.Among the step s106, user terminal send to Target Board via master control borad serial port command flow process embodiment as shown in Figure 3, comprise step:
Step s301, user terminal send serial port command to master control borad;
The corresponding relation of user terminal and Target Board sent described serial port command during the serial ports that step s302, master control borad set up according to user terminal and intended target plate was redirected to the intended target plate;
Step s303, this Target Board receive serial port command and handle this serial port command.
By above-mentioned step, realized the transmission flow of a plurality of user terminals to the serial port command of intended target plate.At a plurality of user terminals simultaneously when Target Board sends serial port command, if Target Board has conflict to produce when handling different serial port command, then handle in proper order according to the time of reception of different serial port command, with after the meeting that the receives serial port command that produces conflict put into pending command queue, after conflict finishes, handle.
After Target Board receives the serial port command of user terminal transmission and carries out processing, can send dateout to the user terminal that sends this serial port command, as response message, serial port command execution result etc., this response message also can be sent to carve at the same time with this Target Board and carry out other user terminal that serial ports is redirected simultaneously.Among the step s107, the embodiment of the transmission flow of dateout is shown in Fig. 4 A and Fig. 4 B, and wherein Fig. 4 A is in the dateout process of transmitting, and the serial ports of Target Board is redirected situation about having stopped, comprises step:
Step s401, Target Board are exported serial data to master control borad;
Step s402, master control borad judge that the serial ports of this Target Board is redirected state, and the serial ports of finding this Target Board is redirected and stops;
Step s403, master control borad send the redirected message that stops of serial ports to Target Board;
Step s404, Target Board receive this serial ports and are redirected and stop message, and stop to handle.
Fig. 4 B is depicted as in the dateout process of transmitting, and the serial ports of Target Board is redirected situation about not stopping, and comprises step:
Step s411, Target Board are exported serial data to master control borad;
Step s412, master control borad judge that the serial ports of this Target Board is redirected state, find redirected not the stopping of serial ports of this Target Board;
Step s413, master control borad are inquired about has all user terminals of corresponding relation with this Target Board in this Target Board mapping table;
The dateout that step s414, master control borad send this Target Board by the forms of broadcasting to having all user terminals of corresponding relation to send with this Target Board.
By above-mentioned steps, realized that the dateout of Target Board is redirected the transmission of passage while to a plurality of user terminals by serial ports.
Among the step s109, at user terminal during to the exploitation of veneer or debugging end-of-job, can send to master control borad and stop to the redirected message of the serial ports of intended target plate, this serial ports is redirected and stops the embodiment of flow process shown in Fig. 5 A and Fig. 5 B, wherein Fig. 5 A is that user terminal sends when stopping message, the handling process that still has other user terminal serial ports to be redirected in the Target Board comprises step:
Step s501, user terminal send to master control borad and stop the serial ports redirect message, and the serial ports that stops the intended target plate is redirected;
Step s502, master control borad are deleted the corresponding relation of this user terminal and intended target plate from the mapping table of intended target plate;
Step s503, master control borad find to still have in the mapping table of intended target plate the corresponding relation with other user terminal, promptly also exist the serial ports with other users to be redirected;
Step s504, master control borad send to user terminal and stop success response.
Fig. 5 B is that user terminal sends when stopping message, has not had the handling process that other user terminal serial ports is redirected in the Target Board, comprises step:
Step s511, user terminal send to master control borad and stop the serial ports redirect message, and the serial ports that stops the intended target plate is redirected;
Step s512, master control borad are deleted the corresponding relation of this user terminal and intended target plate from the mapping table of intended target plate;
All delete with the corresponding relation of all user terminals in the mapping table of step s513, master control borad discovery intended target plate, promptly all stop with the serial ports of all user terminals is redirected;
Step s514, master control borad send to this Target Board and stop the serial ports redirect message;
Step s515, this Target Board stop serial ports being redirected;
Step s516, this Target Board send to master control borad and stop success response;
Step s517, master control borad send to user terminal and stop success response.
By above-mentioned step, realized that a plurality of user terminals stop the flow process that intended target plate serial ports is redirected respectively, and when all user terminals in the Target Board mapping table all stop serial ports and are redirected, automatically perform the flow process that stops that the serial ports of Target Board is redirected.
Among the step s101 to s109 of the embodiment of the invention, when message is mutual between master control borad and Target Board, can keep serial ports between master control borad and Target Board by handshake mechanism and be redirected the normal of passage, promptly keep serial ports and be redirected the normal of passage by the mechanism that sends handshake information-answer response, if cause this mechanism to carry out because of problem such as channel failure between master control borad and the Target Board, then according to shaking hands timeout mechanism, the serial ports that master control borad will stop Target Board being redirected, and the informing user terminal link down, serial ports is redirected and stops.
Wherein, overtime being meant of shaking hands: after serial ports that user terminal starts Target Board is redirected, master control borad periodically sends handshake information to Target Board, when master control borad is not received the response that Target Board replys handshake information in predefined time range, then think and shake hands overtimely, and add 1 in the counter of shaking hands in the Target Board mapping table.
Setting in advance the counter of shaking hands in for example should mechanism is 3, as shown in Figure 6, if step s601 is to step s607, the continuous response of not receiving that Target Board is replied handshake information for three times of master control borad, then accumulated value is 3 in the counter of shaking hands in the Target Board mapping table, master control borad will be thought the failure of shaking hands, thereby the serial ports that stops Target Board being redirected.
Be 3 to be example equally with the counter of shaking hands that sets in advance in the mechanism, as shown in Figure 7, according to step s701 to step s705, if before the failure of shaking hands, master control borad is received the response that Target Board is replied handshake information, then master control borad is the counter O reset of shaking hands in the Target Board mapping table, and master control borad thinks and shake hands successfully that this mechanism is proceeded.
The second embodiment of the present invention also provides a kind of multiple users serial ports to be redirected main control device 800, the function of this equipment is to set up a mapping table for each Target Board of each master control borad management, when user terminal as required, when the serial ports that starts certain Target Board is redirected, the corresponding relation of this user terminal and Target Board is added in the mapping table of this Target Board, add finish after then this user terminal can carry out information interaction with this Target Board; In addition, keep serial ports between master control borad and Target Board by handshake mechanism and be redirected the normal of passage.Its structure comprises that mapping table memory cell 801, mapping table administrative unit 802, serial ports are redirected unit 803, handshake elements 804 and timer units 805 as shown in Figure 8, wherein,
Mapping table memory cell 801 is used to store the mapping table of each Target Board;
Mapping table administrative unit 802 is used for when needed, sets up and/or revises and/or operation such as deletion for each Target Board mapping table of storage in the mapping table memory cell 801; This unit can add a user terminal in the mapping table of polylith Target Board to, simultaneously can add a plurality of user terminals in the mapping table of a Target Board, thereby has realized that the serial ports that the multiple users of Target Board is connected with many veneers is redirected;
Serial ports is redirected unit 803 and is used for being redirected and information interaction according to the serial ports that mapping table memory cell 801 stored relation tables carry out between user terminal and the Target Board;
Handshake elements 804 is used for being redirected normal by the serial ports that handshake information is kept between master control borad and Target Board;
Timer units 805 is used for clocking in handshake elements 804 handshake information.
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 (12)

1, a kind of re-orienting method for multiple users terminal series interface is characterized in that, comprises the steps:
User terminal sends and starts the message that the Target Board serial ports is redirected;
Master control borad adds the corresponding relation of described user terminal and described Target Board;
Described Target Board starts serial ports to be redirected.
2, re-orienting method for multiple users terminal series interface according to claim 1 is characterized in that, described Target Board serial ports is redirected when starting first, before described master control borad adds the corresponding relation of described user terminal and described Target Board, also comprises:
Set up the mapping table of described Target Board within it during the master control borad of managing described Target Board is deposited, be used to store the corresponding relation of described user terminal and described Target Board.
3, as re-orienting method for multiple users terminal series interface as described in the claim 2, it is characterized in that the mapping table of described Target Board comprises the corresponding relation of described Target Board and at least one user terminal.
4, re-orienting method for multiple users terminal series interface according to claim 1 is characterized in that, described Target Board starts and also comprises after serial ports is redirected:
At least one described user terminal sends serial port command according to described corresponding relation at least one described Target Board.
5, as re-orienting method for multiple users terminal series interface as described in the claim 4, it is characterized in that the transmission of described serial port command specifically comprises the steps:
Described master control borad receives the described serial port command that at least one described user terminal sends to Target Board;
Described master control borad sends described serial port command according to the described corresponding relation of described user terminal and described Target Board to described Target Board;
Described Target Board receives and handles described serial port command.
6, re-orienting method for multiple users terminal series interface according to claim 1 is characterized in that, described Target Board starts and also comprises after serial ports is redirected:
At least one described Target Board sends dateout according to described corresponding relation at least one described user terminal.
7, as re-orienting method for multiple users terminal series interface as described in the claim 6, it is characterized in that the transmission of described dateout specifically comprises the steps:
Described master control borad receives the dateout that at least one described Target Board sends;
Whether described master control borad is judged that the serial ports of described Target Board is redirected and stopped: if stop, then described master control borad sends serial ports to described Target Board and is redirected and stops message, and described Target Board stops to send dateout and finishes; If do not stop then continuing following steps;
Described master control borad is inquired about all user terminals in the described Target Board mapping table;
Described master control borad sends described dateout by broadcasting to described all user terminals.
8, re-orienting method for multiple users terminal series interface according to claim 1 is characterized in that, described Target Board starts and also comprises after serial ports is redirected:
Described user terminal stops to the serial ports of described Target Board is redirected.
As re-orienting method for multiple users terminal series interface as described in the claim 8, it is characterized in that 9, described serial ports is redirected stops specifically to comprise the steps:
Described master control borad receives redirected the stopping of serial ports of described user terminal transmission and asks;
Described master control borad is with the corresponding relation deletion of user terminal described in the mapping table of described intended target plate and described Target Board, and judge the corresponding relation that whether has described Target Board and other user terminal in the described mapping table: if exist, then master control borad sends to described user terminal and stops success response and end; If there is no, then continue following steps;
Described master control borad sends to described Target Board and stops the serial ports redirect request;
Described Target Board stops serial ports being redirected.
As re-orienting method for multiple users terminal series interface as described in the claim 9, it is characterized in that 10, described Target Board stops also to comprise after serial ports is redirected:
Described Target Board sends to described user terminal via described master control borad and stops success response.
11, a kind of multiple users serial ports is redirected main control device, it is characterized in that, comprises that mapping table memory cell, mapping table administrative unit and serial ports are redirected the unit, wherein,
Described mapping table memory cell is used to store the mapping table of each Target Board of master control borad management;
Described mapping table administrative unit is used for foundation and/or the modification and/or the deletion of the mapping table of described each Target Board;
Described serial ports is redirected the unit, is used for being redirected and information interaction according to the serial ports that described mapping table carries out between user terminal and the Target Board.
12, be redirected main control device as multiple users serial ports as described in the claim 11, it is characterized in that, also comprise handshake elements and timer units,
Described handshake elements is used for being redirected normal by the serial ports that handshake information is kept between master control borad and Target Board;
Described timer units is used for clocking of described handshake information.
CN2006101500611A 2006-10-26 2006-10-26 Re-orienting method for multiple users terminal series interface and main control device Active CN1946082B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2006101500611A CN1946082B (en) 2006-10-26 2006-10-26 Re-orienting method for multiple users terminal series interface and main control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2006101500611A CN1946082B (en) 2006-10-26 2006-10-26 Re-orienting method for multiple users terminal series interface and main control device

Publications (2)

Publication Number Publication Date
CN1946082A true CN1946082A (en) 2007-04-11
CN1946082B CN1946082B (en) 2011-04-13

Family

ID=38045295

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2006101500611A Active CN1946082B (en) 2006-10-26 2006-10-26 Re-orienting method for multiple users terminal series interface and main control device

Country Status (1)

Country Link
CN (1) CN1946082B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508796A (en) * 2011-10-14 2012-06-20 深圳市京华科讯科技有限公司 Serial port redirection method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102508796A (en) * 2011-10-14 2012-06-20 深圳市京华科讯科技有限公司 Serial port redirection method and system
CN102508796B (en) * 2011-10-14 2014-10-22 深圳市京华科讯科技有限公司 Serial port redirection method and system

Also Published As

Publication number Publication date
CN1946082B (en) 2011-04-13

Similar Documents

Publication Publication Date Title
CN101060412A (en) Ethernet power supply system, control unit, master control module and Ethernet power supply method
CN1324856C (en) Data transmission method of network equipment based on multinetwork card and device
CN1838674A (en) Image forming system, image forming method and information terminal device
CN1833214A (en) Data processor, data processing method, and control program
CN1051622C (en) Client-server type network
CN1835441A (en) Communication apparatus and its control method
CN1852502A (en) Method for realizing load uniform in clustering system, system and storage controller
CN101059799A (en) Method for introducing regular file into data base
CN101043510A (en) PCI-E bus distributed system intra-board and inter-board data communication method
CN1829220A (en) Mapping method for USB apparatus with storage function on network computer
CN1627296A (en) Data collection updating device, terminal device, data collection updating method and program
CN1889026A (en) KVM switching system and its mouse synchronizing method
CN1777110A (en) Cluster device batch file transmitting method and file transmission device
CN2684478Y (en) Network management system, apparatus to be managed, managing apparatus and program
CN1224200C (en) Double communication device and method for remote monitoring and controlling
CN1946082A (en) Re-orienting method for multiple users terminal series interface and main control device
CN101059764A (en) Control method for implementing distribution type apparatus
CN1811709A (en) Infinite update method and apparatus for operating system in hand-held equipment
CN1506868A (en) Method of remote controlling computer in different area via computer network
CN1934551A (en) Data transmission control system
CN101068254A (en) Intermodule collision detecting method, system and master control board
CN1913518A (en) Network display apparatus and control method thereof
CN101035024A (en) Method for processing the batch configuration and network management device and network system
CN1859251A (en) Method for realizing communication unit interconnection
CN1787511A (en) Method and system for realizing off-line application of computer

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