CN102523601A - Method and device for monitoring automatic drive test terminal - Google Patents

Method and device for monitoring automatic drive test terminal Download PDF

Info

Publication number
CN102523601A
CN102523601A CN2011103995164A CN201110399516A CN102523601A CN 102523601 A CN102523601 A CN 102523601A CN 2011103995164 A CN2011103995164 A CN 2011103995164A CN 201110399516 A CN201110399516 A CN 201110399516A CN 102523601 A CN102523601 A CN 102523601A
Authority
CN
China
Prior art keywords
journal file
automatic road
road measuring
terminal
measuring terminal
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
CN2011103995164A
Other languages
Chinese (zh)
Other versions
CN102523601B (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.)
Datang Mobile Communications Equipment Co Ltd
Original Assignee
Datang Mobile Communications Equipment 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 Datang Mobile Communications Equipment Co Ltd filed Critical Datang Mobile Communications Equipment Co Ltd
Priority to CN201110399516.4A priority Critical patent/CN102523601B/en
Publication of CN102523601A publication Critical patent/CN102523601A/en
Application granted granted Critical
Publication of CN102523601B publication Critical patent/CN102523601B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Traffic Control Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a method and a device for monitoring an automatic drive test terminal. The method and the device are used for monitoring the automatic drive test terminal more conveniently, improving monitoring efficiency and saving product cost. The method for monitoring the automatic drive test terminal provided by the invention comprises the following steps that: a monitor terminal reads a log file recorded by the automatic drive test terminal, wherein the log file comprises operation process information of the automatic drive test terminal; and the monitor terminal outputs the read operation process information of the automatic drive test terminal in the log file.

Description

The method for supervising and the device at a kind of automatic road measuring terminal
Technical field
The present invention relates to communication technical field, relate in particular to the method for supervising and the device at a kind of automatic road measuring terminal.
Background technology
The automatic road measuring system is made up of two parts, automatic road measuring terminal and backstage.
Automatic collection and the storage to the drive test data of multiple network standard can be realized in the automatic road measuring terminal, can be applied to network quality monitoring, optimization effective evaluation, the inspection of cutover situation and the regular maintenance of wireless network.
The automatic road measuring terminal is dealt into the backstage with data of gathering and the alarm of itself through message.
At present, the automatic road measuring terminal does not have monitor terminal, the alarm understanding equipment running status that leans on alarm panel fully and mail to the backstage.In order the automatic road measuring terminal to be monitored more easily and to be safeguarded; Need to increase a monitor terminal, but increase monitor terminal, according to the traditional device method for supervising; Need between monitor terminal and automatic road measuring terminal, define the complete message interface of a cover; Set up socket communication, this just need revise the code at automatic road measuring terminal in a large number, possibly cause the fluctuation of service at automatic road measuring terminal.In a word, this scheme not only workload is big, and possibly influence the stability at automatic road measuring terminal.
The automatic road measuring terminal as a kind of skinny device, does not generally have monitoring interface.If fault, then produce alarm, through mailing to the alarm on backstage, and the indicator light on the drive test terminal panel, the staff knows the operating state of road measuring device.
In sum, prior art (through indicator light on the drive test terminal panel and the alarm of mailing to the backstage) can not let the user know the running status at drive test terminal with a kind of mode very easily.Indicator light number on the drive test terminal panel is very limited, and checks the alarm on backstage, needs the backstage service, sometimes be not easily, and the information that is obtained is limited.And if introduce monitor terminal according to prior art; Between monitor terminal and equipment, need set up socket communication, develop ripe automatic road measuring end product for this, this mode workload is bigger; Need a large amount of automatic road measuring terminal device softwares of revising; Increase an administration agent (agent), thereby development cost is bigger, and can increases the unsteadiness at automatic road measuring terminal.
Summary of the invention
The embodiment of the invention provides the method for supervising and the device at a kind of automatic road measuring terminal, in order to more easily the automatic road measuring terminal is monitored, improves monitoring efficiency, practices thrift product cost.
The method for supervising at a kind of automatic road measuring terminal that the embodiment of the invention provides comprises:
Monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, and wherein, said journal file comprises the running information at automatic road measuring terminal;
The running information output at the automatic road measuring terminal that monitor terminal will read from said journal file.
A kind of method of monitor message that provides that the embodiment of the invention provides comprises:
The automatic road measuring terminal records the running information at automatic road measuring terminal in the journal file;
The automatic road measuring terminal provides information in the journal file to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
The monitor terminal at a kind of automatic road measuring terminal that the embodiment of the invention provides comprises:
Reading unit is used for the journal file of automatic road measuring terminal records is carried out read operation, and wherein, said journal file comprises the running information at automatic road measuring terminal;
Output unit is used for the running information output with the automatic road measuring terminal that reads from said journal file.
A kind of automatic road measuring terminal that the embodiment of the invention provides comprises:
Write log unit, be used for the running information at automatic road measuring terminal is recorded journal file;
Daily record provides the unit, and the information that is used for journal file is provided is to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
The embodiment of the invention is carried out read operation through monitor terminal to the journal file of automatic road measuring terminal records, and wherein, said journal file comprises the running information at automatic road measuring terminal; The running information output at the automatic road measuring terminal that monitor terminal will read from said journal file, thus can monitor the automatic road measuring terminal more easily, improved monitoring efficiency, practiced thrift product cost.
Description of drawings
The schematic flow sheet of the method for supervising at a kind of automatic road measuring terminal that Fig. 1 provides for the embodiment of the invention;
A kind of schematic flow sheet that the method for monitor message is provided that Fig. 2 provides for the embodiment of the invention;
The structural representation of the monitor terminal at a kind of automatic road measuring terminal that Fig. 3 provides for the embodiment of the invention;
The structural representation at a kind of automatic road measuring terminal that Fig. 4 provides for the embodiment of the invention.
Embodiment
The embodiment of the invention provides the method for supervising and the device at a kind of automatic road measuring terminal, in order to more easily the automatic road measuring terminal is monitored, improves monitoring efficiency, practices thrift product cost.
The embodiment of the invention is not carrying out through monitor terminal the automatic road measuring terminal being monitored under the situation of code revision to the automatic road measuring terminal to the automatic road measuring terminal basically.
The embodiment of the invention is monitored the automatic road measuring terminal through reading journal file, and has realized reading the daily record thread and write the synchronous of daily record thread, and the speed of reading thread is adjusted, so that be consistent basically with the speed of writing thread.
The monitor terminal that the embodiment of the invention provides; Do not adopt traditional message communicating mode (communication mode of socket); But adopted monitor terminal to read the daily record at automatic road measuring terminal; Thereby the mode of monitoring, and as a complete scheme, solved how the daily record read-write is carried out synchronously, daily record how breakpoint transmission and when reading daily record speed adjust to series of technical such as the best automatically.
Below in conjunction with accompanying drawing the technical scheme that the embodiment of the invention provides is described.
In the monitor terminal side, referring to Fig. 1, the method for supervising at a kind of automatic road measuring terminal that the embodiment of the invention provides comprises step:
S101, monitor terminal carry out read operation to the journal file of automatic road measuring terminal records, and wherein, said journal file comprises the running information at automatic road measuring terminal;
The running information output at the automatic road measuring terminal that S102, monitor terminal will read from said journal file.
The automatic road measuring terminal can write journal file with the important information that moves automatically in running; Journal file is belonged to catalogue to be shared out; And monitor terminal carries out read operation to journal file, thereby obtains these important informations, on the interface, exports to show.
Preferably, said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, comprising:
Monitor terminal detects the input/output state sign, and this input/output state sign is used to indicate monitor terminal whether can carry out read operation to the journal file of automatic road measuring terminal records;
Monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation.
Input/output state sign (ios::eofbit) described in the embodiment of the invention comprises following four kinds of signs:
Good (good), end (Eofbit), failure (failbit), bad (badbit).
Wherein, if good (good) flag bit is set, explain that then monitor terminal is normal to the read operation of journal file.
Be set if finish (Eofbit) flag bit, explain that then monitor terminal read the ending of journal file, that has promptly read the automatic road measuring terminal writes the journal file place.
If failure (failbit) flag bit is set, then nonfatal I/O mistake has appearred in explanation.
If bad (badbit) flag bit is set, then fatal I/O mistake has appearred in explanation.
Particularly; Write operation is carried out to journal file in the automatic road measuring terminal, and monitor terminal is opened journal file with read-only mode, after monitor terminal opens file; Read file content; If monitor terminal is found the ending sign Eofbit of journal file and has been set that then explanation has been read the automatic road measuring terminal and write daily record place, then waits for a period of time and reads.
Be set if detect Eofbit, then monitor terminal is read process dormancy (Sleep) for a moment, waits for that promptly the automatic road measuring terminal writes process and write new content, afterwards, disposes the Eofbit flag bit, and then reads.
Be not set if detect Eofbit, do not have other input/output error yet, then continue to read the content of journal file.
Promptly; Automatic road measuring terminal and monitor terminal are not to carry out synchronously through the notice of socket or other traditional modes; But through monitor terminal to the detection of input/output state sign (ios::eofbit), judge whether meaningful readable, thereby read and write synchronously.
Preferably, said monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation, comprising:
When the journal file end had been read in input/output state sign indication, read operation was carried out to journal file of automatic road measuring terminal records in monitor terminal (for example, representing with T that T can the be 5 seconds) back of waiting for a period of time;
When position, journal file end tail was not read in the indication of input/output state sign, monitor terminal carried out read operation to the journal file of automatic road measuring terminal records.When read the automatic road measuring terminal write daily record place the time, the journal file end has been read in input/output state sign indication.
Further, if the monitor terminal continuous several times detects the state that the input/output state sign is not (good), promptly one or more of following flag bit is set, and then starts wrong detection.
Eofbit Arrived end-of-file
failbit Nonfatal I/O mistake
badbit Fatal I/O mistake
Concrete wrong detection comprises:
Step 1: whether inspection exists network problem, if exist, then can confirm what network failure caused.
About the inspection network problem, for example, can directly call the order of ping, can judgement lead to by ping.
Step 2: whether the inspection share directory exists.
If network is no problem, check then whether share directory exists.
Step 3:, check then whether file exists if share directory exists.
If above three step check tables clear and definite real storages are in fault, can close file, and the prompting concrete detected mistake of user (promptly belonging to any mistake in above-mentioned three steps).Otherwise,, think that then the automatic road measuring terminal does not have writing information for a long time if above-mentioned three steps inspection is all passed through.Monitor terminal Sleep is again removed the input/output state sign after a period of time, and then carries out read operation.
Preferably, said monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation, comprising:
In the read operation that the continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and has been read the journal file end; Then monitor terminal prolongs stand-by period T; And according to the time waiting after prolonging, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation;
In the read operation that the continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and is not read the journal file end; Then monitor terminal shortens stand-by period T; And according to the time waiting after shortening, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation.
Monitor terminal is restarted after the automatic road measuring starting terminal, and therefore, when monitor terminal just started, a large amount of daily records had been write at the automatic road measuring terminal.
Therefore, when monitor terminal has just started, read log content, and come out important information in interface display with the fastest speed.This process is called the process that chases after, and promptly monitor terminal is read document location difference bigger of document location and the automatic road measuring terminal written document of file, and therefore, monitor terminal catches up with the fastest speed.
But read the automatic road measuring terminal when writing the position of journal file when monitor terminal, can detect Eofbit and be set, at this moment; Monitor terminal just need slow down speed, reads EOF at every turn, detects the EOF sign and is set; Then,, promptly wait for a period of time with regard to dormancy (Sleep) for a moment; And regulate the speed with degenerative mode, make read or write speed approaching as far as possible, for example:
If read 5 times continuously; All detecting the Eofbit that is eliminated before the read operation has been set again; Show that monitor terminal read 5 times continuously, and the operation that automatic road measuring terminal is not write during this, then one times of the time lengthening of Sleep; But because monitor terminal has the real-time requirement, the time maximum of Sleep is no more than 30 seconds.For example, the initial Sleep time is 5 seconds, if then read continuously 5 times; The Eofbit flag bit has been set before all detecting read operation, and the Sleep time changes 10 seconds into, if read continuously once more 5 times; The Eofbit flag bit has been set before all detecting read operation; The Sleep time changes 20 seconds into, and by that analogy, but the Sleep time the most very much not can be above 30 seconds.
If read all not detect Eofbit behind the character (getchar) for 20 times and be set continuously, perhaps continuous read for 5 times (getline) do not detect Eofbit and is set, and then the time of Sleep is kept to half thely, promptly can quicken to read.For example, the initial Sleep time is 20 seconds, if then read continuously 5 times; The Eofbit flag bit has not been set before all detecting read operation, and the Sleep time changes 10 seconds into, if read continuously once more 5 times; The Eofbit flag bit has not been set before all detecting read operation, and the Sleep time changes 5 seconds into, by that analogy; But Sleep time minimum is 0 second, does not promptly wait for, continuously reads.
Through this degenerative mode, the speed ratio that makes speed that monitor terminal is read and automatic road measuring terminal write is more approaching, both requirement of real time, and the expense to system read-write drops to minimum again.
Preferably; When said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records; When detecting the title of replacing file mark that the current journal file that reads is provided with and new journal file; Close the current journal file that reads,, open new journal file and carry out read operation according to the title of new journal file.
Be the substitute mode that the embodiment of the invention also provides a kind of journal file:
Journal file is write at the automatic road measuring terminal, when the daily record file is too big, for example surpasses 100,000,000, and opening of file can be very inconvenient, needs to change journal file, supposes currently just at usage log file a.log, adopts this moment following steps to carry out journal file and changes:
Step 1: a new journal file is created at the automatic road measuring terminal, at this moment, does not close old journal file.
Step 2: after creating successfully, the automatic road measuring terminal is provided with one and changes file mark at old journal file end, and the title of the new journal file of record plan use, for example, uses<changfile>B.log</changefile>
Step 3: old journal file is closed at the automatic road measuring terminal.
Step 4: monitor terminal is read old journal file end, when detecting the title of changing file mark and new journal file, then closes old journal file (a.log), opens new journal file (b.log).
Preferably, this method also comprises:
Said monitor terminal filters the information of the current journal file that reads, and the information of interface display need be exported in extraction and record.
Preferably, this method also comprises:
When monitor terminal was closed, monitor terminal was noted column information in local profile:
The catalogue at the title of current journal file, the position of reading and current journal file place.
Preferably, said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, comprising:
If be closed to the process that starts once more from monitor terminal, restart at the automatic road measuring terminal, and then monitor terminal carries out read operation to the journal file of automatic road measuring terminal state-of-the-art record; Otherwise monitor terminal is recorded in the information in the local profile when closing according to monitor terminal, continues the journal file of automatic road measuring terminal records is carried out read operation.
That is to say that the embodiment of the invention is also supported breakpoint transmission, the concrete introduction as follows:
A new logfile directory is created, to preserve the log information file in this running in the automatic road measuring terminal when each the startup.
Monitor terminal is after closing, if has restarted at the automatic road measuring terminal, then the monitor terminal file that only need read under the up-to-date logfile directory gets final product, from first file read under this catalogue to a last file.
But when closing monitor terminal to starting once more in the monitor terminal process, if the automatic road measuring terminal keeps running status always, do not restart, and then began to continue to read file from breakpoint, this process is called breakpoint transmission.
In order to realize breakpoint transmission; Monitor terminal is in running; Need the daily record of record oneself, refine the log information that obtains from the automatic road measuring terminal through filtering, obtain the needed information of interface display; When on the interface, showing, be kept at necessary information in the local log file (like info_backup.txt).Wherein, the information of said necessity for example, comprising: the command interaction between the connection status of parameter configuration, each wireless module, the executing state of test plan, server and the car-mounted terminal, wireless network test daily record etc.
In the embodiment of the invention; Monitor terminal is not to duplicate the daily record at automatic road measuring terminal; But only preserve the information of filtering after refining, and be the needed data of interface display, this has just significantly reduced the canned data amount; And also lowered access time, and the time of reading reprocessing later on.
And when monitor terminal was closed, monitor terminal is record in local profile: the catalogue at the title of current journal file and the position of reading (breakpoint), current journal file place.
When starting monitor terminal once more, whether monitor terminal at first detects the automatic road measuring terminal and restarts.If do not restart, the content that then loads local log file (like info_backup.txt) earlier then according to local profile recorded logs file name and breakpoint, begins to continue to read log information to display interface.If has restarted at the automatic road measuring terminal, then read the journal file that writes down behind the automatic road measuring starting terminal, rather than breakpoint transmission.
Preferably, judge that the method whether the automatic road measuring terminal has carried out restarting comprises:
Can create a Log Directory when automatic road measuring terminal starts at every turn, monitor terminal is the journal file at the breakpoint place that writes down in local profile place catalogue, compares with up-to-date Log Directory under the log folder at automatic road measuring terminal.If inequality, can judge that then the automatic road measuring terminal restarts.If identical, can judge that then the automatic road measuring terminal not restart.
Correspondingly, in the automatic road measuring end side, referring to Fig. 2, a kind of method that monitor message is provided that the embodiment of the invention provides comprises step:
S201, automatic road measuring terminal record the running information at automatic road measuring terminal in the journal file;
S202, automatic road measuring terminal provide information in the journal file to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
Preferably, said automatic road measuring terminal records the running information at automatic road measuring terminal in the journal file, comprising:
When if the data content of the journal file of automatic road measuring terminal current record surpasses preset data volume, create new journal file, and the replacing file mark is set, and the title that writes down new journal file at the end of old journal file;
Close old journal file, in new journal file, continue the running information at record automatic road measuring terminal.
Preferably, after restart at said automatic road measuring terminal, create a journal file again at every turn, be used to write down the up-to-date running information in automatic road measuring terminal.
In the embodiment of the invention; Between automatic road measuring terminal and the monitor terminal with a kind of method of synchronization of uniqueness; Through the detection of monitor terminal, thereby between the write operation at the read operation of monitor terminal and automatic road measuring terminal, carry out synchronously input/output state sign ios::eofbit.The adjustment that monitor terminal is read the speed of journal file with a kind of degenerative mode is so that write the speed basically identical of journal file with the automatic road measuring terminal.When the daily record file is too big, need to change, when journal file was changed at the automatic road measuring terminal, through a kind of mode that makes marks at end-of-file, thereby monitor terminal was known the automatic road measuring terminal and has been carried out replacing file, and the file name after changing.The embodiment of the invention is also supported breakpoint transmission, and for the content before the breakpoint, what monitor terminal was preserved is not original journal file; But preserve the information after the refinement of original log file filter, be the needed data of interface display, this has just significantly reduced the canned data amount; And also reduced the access time when preserving; And the time of reading reprocessing, and whether monitor terminal can restart according to the automatic road measuring terminal, and whether intelligent decision can breakpoint transmission.
Referring to Fig. 3, the monitor terminal at a kind of automatic road measuring terminal that the embodiment of the invention provides comprises:
Reading unit 11 is used for the journal file of automatic road measuring terminal records is carried out read operation, and wherein, said journal file comprises the running information at automatic road measuring terminal;
Output unit 12 is used for the running information output with the automatic road measuring terminal that reads from said journal file.
Preferably, said reading unit 11, monitor terminal detects the input/output state sign, and this input/output state sign is used to indicate monitor terminal whether can carry out read operation to the journal file of automatic road measuring terminal records; According to the input/output state sign, the journal file of automatic road measuring terminal records is carried out read operation.
Preferably,
When the journal file end had been read in the indication of input/output state sign, the journal file to the automatic road measuring terminal records after said reading unit 11 waits for a period of time carried out read operation, and removed the input/output state sign;
When position, journal file end tail was not read in input/output state sign indication, the journal file of 11 pairs of automatic road measuring terminal records of said reading unit carried out read operation, when read the automatic road measuring terminal write daily record place the time, the input/output state sign is set.
Preferably,
In the read operation that said reading unit 11 continuous several times monitor terminals carry out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and has been read the journal file end; Then monitor terminal prolongs the stand-by period; And according to the time waiting after prolonging, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation;
In the read operation that said reading unit 11 continuous several times monitor terminals carry out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and is not read the journal file end; Then monitor terminal shortens the stand-by period; And according to the time waiting after shortening, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation.
Preferably; When the journal file of 11 pairs of automatic road measuring terminal records of said reading unit carries out read operation; When detecting the title of replacing file mark that current journal file end position of reading is provided with and new journal file; Close the current journal file that reads,, open new journal file and carry out read operation according to the title of new journal file.
Preferably, said monitor terminal also comprises:
Filter extraction unit 13, be used for the information of the said reading unit 11 current journal files that read is filtered, the information of interface display need be exported in extraction and record.
Preferably, said monitor terminal also comprises:
Breakpoint record cell 14 is used for when said monitor terminal is closed, in local profile, noting column information:
The catalogue at the title of the said reading unit 11 current journal files that read, the position of reading and said reading unit 11 current journal file places of reading.
Preferably, if be closed to the process that starts once more from monitor terminal, restart at the automatic road measuring terminal, and then said reading unit carries out read operation to the journal file of automatic road measuring terminal state-of-the-art record; Otherwise said reading unit is recorded in the information in the local profile according to said breakpoint record cell when monitor terminal is closed, and continues the journal file of automatic road measuring terminal records is carried out read operation.
Referring to Fig. 4, a kind of automatic road measuring terminal that the embodiment of the invention provides comprises:
Write log unit 21, be used for the running information at automatic road measuring terminal is recorded journal file;
Daily record provides unit 22, and the information that is used for journal file is provided is to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
Preferable; When if the said data content of writing the journal file of log unit 21 current records surpasses preset data volume; The said log unit 21 of writing is created new journal file, and at the end of old journal file the replacing file mark is set, and the title that writes down new journal file; Close old journal file, in new journal file, continue the running information at record automatic road measuring terminal.
Preferable, after restarted at every turn at said automatic road measuring terminal, the said log unit 21 of writing was created a journal file again, was used to write down the up-to-date running information in automatic road measuring terminal.
In sum, the embodiment of the invention need not made any modification to the automatic road measuring terminal, when increasing monitoring capacity, has avoided modification core code (code at automatic road measuring terminal) to introduce bug or other instable risks.Simultaneously, for the mode that journal file is shared, obviously simpler than interactive mode through message (socket); Through the detection of monitor terminal to the input/output state sign, thus monitor terminal read and the writing of automatic road measuring terminal between carry out synchronously, the read-write method of synchronization of this uniqueness is simpler than the general method of synchronization.The embodiment of the invention is also carried out the adjustment of reading rate with a kind of degenerative mode, thereby read or write speed is reached unanimity, than blindly do not consider speed read more efficient.In addition, when changing journal file, through a kind of mode that makes marks at end-of-file, monitor terminal knows that the automatic road measuring terminal carried out replacing file, and the file name after changing, and this mode is very simple and efficient.In addition, the embodiment of the invention is also supported breakpoint transmission, and can need judge whether breakpoint transmission easily.
Those skilled in the art should understand that embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of the embodiment of complete hardware embodiment, complete software implementation example or combination software and hardware aspect.And the present invention can be employed in the form that one or more computer-usable storage medium (including but not limited to magnetic disc store and optical memory etc.) that wherein include computer usable program code go up the computer program of implementing.
The present invention is that reference is described according to the flow chart and/or the block diagram of method, equipment (system) and the computer program of the embodiment of the invention.Should understand can be by the flow process in each flow process in computer program instructions realization flow figure and/or the block diagram and/or square frame and flow chart and/or the block diagram and/or the combination of square frame.Can provide these computer program instructions to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, make the instruction of carrying out through the processor of computer or other programmable data processing device produce to be used for the device of the function that is implemented in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame appointments.
These computer program instructions also can be stored in ability vectoring computer or the computer-readable memory of other programmable data processing device with ad hoc fashion work; Make the instruction that is stored in this computer-readable memory produce the manufacture that comprises command device, this command device is implemented in the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
These computer program instructions also can be loaded on computer or other programmable data processing device; Make on computer or other programmable devices and to carry out the sequence of operations step producing computer implemented processing, thereby the instruction of on computer or other programmable devices, carrying out is provided for being implemented in the step of the function of appointment in flow process of flow chart or a plurality of flow process and/or square frame of block diagram or a plurality of square frame.
Obviously, those skilled in the art can carry out various changes and modification to the present invention and not break away from the spirit and scope of the present invention.Like this, belong within the scope of claim of the present invention and equivalent technologies thereof if of the present invention these are revised with modification, then the present invention also is intended to comprise these changes and modification interior.

Claims (22)

1. the method for supervising at an automatic road measuring terminal is characterized in that, this method comprises:
Monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, and wherein, said journal file comprises the running information at automatic road measuring terminal;
The running information output at the automatic road measuring terminal that monitor terminal will read from said journal file.
2. method according to claim 1 is characterized in that, said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, comprising:
Monitor terminal detects the input/output state sign, and this input/output state sign is used to indicate monitor terminal whether can carry out read operation to the journal file of automatic road measuring terminal records;
Monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation.
3. method according to claim 2 is characterized in that, said monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation, comprising:
When the journal file end had been read in the indication of input/output state sign, the journal file to the automatic road measuring terminal records after monitor terminal waits for a period of time carried out read operation;
When position, journal file end tail was not read in the indication of input/output state sign, monitor terminal carried out read operation to the journal file of automatic road measuring terminal records.
4. method according to claim 2 is characterized in that, said monitor terminal is according to the input/output state sign, and the journal file of automatic road measuring terminal records is carried out read operation, comprising:
In the read operation that the continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and has been read the journal file end; Then monitor terminal prolongs the stand-by period; And according to the time waiting after prolonging, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation;
In the read operation that the continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and is not read the journal file end; Then monitor terminal shortens the stand-by period; And according to the time waiting after shortening, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation.
5. method according to claim 1; It is characterized in that; When said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, when detecting the title of replacing file mark that current position, journal file end of reading is provided with and new journal file, close the current journal file that reads; According to the title of new journal file, open new journal file and carry out read operation.
6. method according to claim 1 is characterized in that, this method also comprises:
Said monitor terminal filters the information of the current journal file that reads, and the information of interface display need be exported in extraction and record.
7. method according to claim 1 is characterized in that, this method also comprises:
When monitor terminal was closed, monitor terminal was noted column information in local profile:
The catalogue at the title of current journal file, the position of reading and current journal file place.
8. method according to claim 7 is characterized in that, said monitor terminal carries out read operation to the journal file of automatic road measuring terminal records, comprising:
If be closed to the process that starts once more from monitor terminal, restart at the automatic road measuring terminal, and then monitor terminal carries out read operation to the journal file of automatic road measuring terminal state-of-the-art record; Otherwise monitor terminal is recorded in the information in the local profile when closing according to monitor terminal, continues the journal file of automatic road measuring terminal records is carried out read operation.
9. the method that monitor message is provided is characterized in that, this method comprises:
The automatic road measuring terminal records the running information at automatic road measuring terminal in the journal file;
The automatic road measuring terminal provides information in the journal file to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
10. method according to claim 9 is characterized in that, said automatic road measuring terminal records the running information at automatic road measuring terminal in the journal file, comprising:
When if the data content of the journal file of automatic road measuring terminal current record surpasses preset data volume, create new journal file, and the replacing file mark is set, and the title that writes down new journal file at the end of old journal file;
Close old journal file, in new journal file, continue the running information at record automatic road measuring terminal.
11. method according to claim 9 is characterized in that, after restart at said automatic road measuring terminal, creates a journal file again, is used to write down the up-to-date running information in automatic road measuring terminal at every turn.
12. the monitor terminal at an automatic road measuring terminal is characterized in that, this monitor terminal comprises:
Reading unit is used for the journal file of automatic road measuring terminal records is carried out read operation, and wherein, said journal file comprises the running information at automatic road measuring terminal;
Output unit is used for the running information output with the automatic road measuring terminal that reads from said journal file.
13. monitor terminal according to claim 12; It is characterized in that; Said reading unit, monitor terminal detects the input/output state sign, and this input/output state sign is used to indicate monitor terminal whether can carry out read operation to the journal file of automatic road measuring terminal records; According to the input/output state sign, the journal file of automatic road measuring terminal records is carried out read operation.
14. monitor terminal according to claim 13 is characterized in that,
When the journal file end had been read in the indication of input/output state sign, the journal file to the automatic road measuring terminal records after said reading unit waits for a period of time carried out read operation;
When position, journal file end tail was not read in the indication of input/output state sign, said reading unit carried out read operation to the journal file of automatic road measuring terminal records.
15. monitor terminal according to claim 13 is characterized in that,
In the read operation that said reading unit continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and has been read the journal file end; Then monitor terminal prolongs the stand-by period; And according to the time waiting after prolonging, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation;
In the read operation that said reading unit continuous several times monitor terminal carries out the journal file of automatic road measuring terminal records; The input/output state sign is all indicated and is not read the journal file end; Then monitor terminal shortens the stand-by period; And according to the time waiting after shortening, the journal file to the automatic road measuring terminal records when the stand-by period finishes carries out read operation.
16. monitor terminal according to claim 12; It is characterized in that; When said reading unit carries out read operation to the journal file of automatic road measuring terminal records, when detecting the title of replacing file mark that current position, journal file end of reading is provided with and new journal file, close the current journal file that reads; According to the title of new journal file, open new journal file and carry out read operation.
17. monitor terminal according to claim 12 is characterized in that, said monitor terminal also comprises:
Filter extraction unit, be used for the information of the current journal file that reads of said reading unit is filtered, the information of interface display need be exported in extraction and record.
18. monitor terminal according to claim 12 is characterized in that, said monitor terminal also comprises:
The breakpoint record cell is used for when said monitor terminal is closed, in local profile, noting column information:
The catalogue at the current journal file place of reading of the title of the current journal file that reads of said reading unit, the position of reading and said reading unit.
19. monitor terminal according to claim 18 is characterized in that, if be closed to the process that starts once more from monitor terminal, restart at the automatic road measuring terminal, and then said reading unit carries out read operation to the journal file of automatic road measuring terminal state-of-the-art record; Otherwise said reading unit is recorded in the information in the local profile according to said breakpoint record cell when monitor terminal is closed, and continues the journal file of automatic road measuring terminal records is carried out read operation.
20. an automatic road measuring terminal is characterized in that, this automatic road measuring terminal comprises:
Write log unit, be used for the running information at automatic road measuring terminal is recorded journal file;
Daily record provides the unit, and the information that is used for journal file is provided is to monitor terminal, to realize the monitoring of monitor terminal to the automatic road measuring terminal.
21. automatic road measuring according to claim 20 terminal; It is characterized in that; When if the said data content of writing the journal file of log unit current record surpasses preset data volume; The said log unit of writing is created new journal file, and at the end of old journal file the replacing file mark is set, and the title that writes down new journal file; Close old journal file, in new journal file, continue the running information at record automatic road measuring terminal.
22. automatic road measuring according to claim 20 terminal is characterized in that, after restarted at every turn at said automatic road measuring terminal, the said log unit of writing was created a journal file again, was used to write down the up-to-date running information in automatic road measuring terminal.
CN201110399516.4A 2011-12-05 2011-12-05 A kind of method for supervising of automatic drive test terminal and device Active CN102523601B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110399516.4A CN102523601B (en) 2011-12-05 2011-12-05 A kind of method for supervising of automatic drive test terminal and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110399516.4A CN102523601B (en) 2011-12-05 2011-12-05 A kind of method for supervising of automatic drive test terminal and device

Publications (2)

Publication Number Publication Date
CN102523601A true CN102523601A (en) 2012-06-27
CN102523601B CN102523601B (en) 2015-08-05

Family

ID=46294369

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110399516.4A Active CN102523601B (en) 2011-12-05 2011-12-05 A kind of method for supervising of automatic drive test terminal and device

Country Status (1)

Country Link
CN (1) CN102523601B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461826A (en) * 2014-12-05 2015-03-25 北京奇虎科技有限公司 Object flow monitoring method, device and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1629815A (en) * 2003-12-15 2005-06-22 株式会社日立制作所 Data processing system having a plurality of storage systems
CN101119243A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Automatic testing method and automatic testing system of journal
CN101706822A (en) * 2009-12-18 2010-05-12 杭州迪普科技有限公司 Method and device for improving speed of mounting journal file system
WO2011139088A2 (en) * 2010-05-04 2011-11-10 삼성전자 주식회사 Method and apparatus for recording channel measurement information in a mobile communication system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1629815A (en) * 2003-12-15 2005-06-22 株式会社日立制作所 Data processing system having a plurality of storage systems
CN101119243A (en) * 2007-09-12 2008-02-06 中兴通讯股份有限公司 Automatic testing method and automatic testing system of journal
CN101706822A (en) * 2009-12-18 2010-05-12 杭州迪普科技有限公司 Method and device for improving speed of mounting journal file system
WO2011139088A2 (en) * 2010-05-04 2011-11-10 삼성전자 주식회사 Method and apparatus for recording channel measurement information in a mobile communication system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104461826A (en) * 2014-12-05 2015-03-25 北京奇虎科技有限公司 Object flow monitoring method, device and system
CN104461826B (en) * 2014-12-05 2019-07-26 北京奇安信科技有限公司 The method, apparatus and system of Object flow monitoring

Also Published As

Publication number Publication date
CN102523601B (en) 2015-08-05

Similar Documents

Publication Publication Date Title
CN103345470B (en) A kind of database disaster recovery method, system and server
CN108388496A (en) A kind of collection method of system log
CN103186535B (en) A kind of mobile terminal picture management method and equipment
CN109376139A (en) Centralized database monitoring method, computer installation and storage medium
CN103412801B (en) The method carrying out file backup based on progress recognizing file
CN111880993B (en) Cluster operation and maintenance state diagnosis method, operation and maintenance monitoring system, terminal and storage medium
CN106598796A (en) Method for testing hardware information stability in reboot
CN108710684A (en) ETL task datas source switch method, system, computer equipment and storage medium
CN101706783A (en) Method and device for checking and repairing files in embedded equipment
CN105955875A (en) Device and method for monitoring logs of RAID cards
CN109144789A (en) A kind of method, apparatus and system for restarting OSD
CN106649071A (en) Reporting method and device for internal process journals
CN113268464B (en) Log display method and device, electronic equipment and storage medium
CN109408343B (en) Hard disk indicator lamp control method and device and related equipment
CN103617129B (en) A kind of method and device of internal memory processing
CN102226893B (en) FAT (file allocation table) file system repairing method in embedded system
CN101192971B (en) Detection method for master/slave data consistency
CN113239007B (en) Multi-level heterogeneous log transaction analysis method, system, equipment and storage medium
CN117116333B (en) Method and device for testing VPD information of enterprise-level solid state disk
CN107729172A (en) A kind of method for generating adjustment step by step daily record
CN102571424A (en) Processing method, device and system for engineering event
CN101222351A (en) Method and device for acquiring performance data files
CN102523601B (en) A kind of method for supervising of automatic drive test terminal and device
WO2020192669A1 (en) Gas meter intelligent controller and firmware upgrade start-up method therefor
CN111475334A (en) TiDB database maintenance method and device, computer equipment and 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