CN108563576A - A kind of daily record Method of printing, system and device - Google Patents
A kind of daily record Method of printing, system and device Download PDFInfo
- Publication number
- CN108563576A CN108563576A CN201810343753.0A CN201810343753A CN108563576A CN 108563576 A CN108563576 A CN 108563576A CN 201810343753 A CN201810343753 A CN 201810343753A CN 108563576 A CN108563576 A CN 108563576A
- Authority
- CN
- China
- Prior art keywords
- daily record
- printing
- log
- selection instruction
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/36—Preventing errors by testing or debugging software
- G06F11/362—Software debugging
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F21/00—Security arrangements for protecting computers, components thereof, programs or data against unauthorised activity
- G06F21/30—Authentication, i.e. establishing the identity or authorisation of security principals
- G06F21/31—User authentication
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/103—Formatting, i.e. changing of presentation of documents
- G06F40/109—Font handling; Temporal or kinetic typography
Abstract
The invention discloses a kind of daily record Method of printings, are suitable for MCU device, including:When response log print request, the log-on message for the user for initiating daily record print request is obtained;When judging that user has print right according to log-on message, open daily record printing function;After open daily record printing function, when receiving daily record print command, starting log printing;Wherein, daily record print command includes the selection instruction of Log Types and highlights the selection instruction of Log Types, and daily record printing includes:According to the selection instruction of Log Types, corresponding daily record to be printed is obtained from MCU device;According to the selection instruction for highlighting Log Types, daily record to be highlighted in daily record to be printed is determined;It treats the daily record unlatching highlighted and highlights printing, common print operation is opened to other daily records to be printed in addition to daily record to be highlighted.Embodiment using the present invention need not recompilate and burning when printing the daily record of MCU device, improve runnability.
Description
Technical field
The present invention relates to a kind of Computer Control Technology field more particularly to daily record Method of printing, system and devices.
Background technology
For the ease of understanding the operation conditions of equipment, need to print daily record in the operating system of equipment using host computer
Out, so as to the reason of operation and lookup mistake for tracking equipment program, a large amount of repair time can be saved.But
In existing MCU (micro-control unit) equipment, since daily record is not opened to the outside world, and in order to allow daily record not drag the performance of slow system
The use of host computer serial port function is not interfered, and printing function is removed in program that can be in MCU device.Therefore it needs to check fortune
When row daily record, the code of MCU device can only be first opened, and open printing in the code of MCU device, be recompilated again after modification
And burning.But the mode that recompility and burning carry out print log is comparatively laborious, and influence debugging efficiency, it is also possible to it destroys
Commissioning field.
Invention content
The purpose of the embodiment of the present invention is to provide a kind of daily record Method of printing, system and device, in the fortune of printing MCU device
It need not be recompilated when row daily record and burning, improve runnability.
To achieve the above object, the embodiment of the present invention provides a kind of daily record Method of printing, is suitable for MCU device, including:
When response log print request, the log-on message for the user for initiating the daily record print request is obtained;
When judging that the user has print right according to the log-on message, open daily record printing function;
After the open daily record printing function, when receiving daily record print command, starting log printing;Wherein,
The daily record print command includes the selection instruction of Log Types and highlights the selection instruction of Log Types, the daily record printing behaviour
Work includes:
According to the selection instruction of the Log Types, corresponding daily record to be printed is obtained from the MCU device;
According to the selection instruction for highlighting Log Types, daily record to be highlighted in the daily record to be printed is determined;
Printing is highlighted to the daily record unlatching to be highlighted, in addition to the daily record to be highlighted other are to be printed
Common print operation is opened in daily record.
Compared with prior art, a kind of daily record Method of printing disclosed by the embodiments of the present invention in user by having printing right
In limited time, according to the selection instruction of Log Types, corresponding daily record to be printed is obtained from MCU device, and according to highlighting daily record class
The selection instruction of type determines daily record to be highlighted in the daily record to be printed, to be highlighted to the daily record unlatching to be highlighted
Printing opens common print operation to other daily records to be printed in addition to the daily record to be highlighted.Solves existing skill
The mode for needing recompility and burning in art when printing the daily record of MCU device, to influence debugging efficiency and may destroy
The problem of Commissioning field, can need not be recompilated and burning when printing the running log of MCU device, improve maneuverability
Energy.
As the improvement of said program, the daily record print command further includes filtering out the selection instruction of Log Types, then institute
It states and further includes when receiving daily record print command:
According to the selection instruction for filtering out Log Types, at least one daily record to be printed is filtered out.
As the improvement of said program, the Log Types include function type and/or rating-type;The function type
Including but not limited to communication function, touch function and/or keypress function;The rating-type include but not limited to Debugging message,
General information, warning message, error message and/or program crashing information.
It is described to highlight printing and specifically include as the improvement of said program:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color generation
Code, font code and/or cut-off rule.
As the improvement of said program, when the response print request, the user for initiating the daily record print request is obtained
Log-on message before further include:
It is established and is connected by serial communication and MUC equipment.
To achieve the above object, the embodiment of the present invention also provides a kind of daily record print system, is suitable for MCU device, including:
Load right acquiring unit when being used for response log print request, obtains the use for initiating the daily record print request
The log-on message at family;
Daily record printing function open cell judges that the user has print right for working as according to the log-on message
When, open daily record printing function;
Daily record printing unit, when receiving daily record print command, opens after opening the daily record printing function
Dynamic daily record printing;Wherein, the daily record print command includes the selection instruction of Log Types and highlights the choosing of Log Types
Instruction is selected, the daily record printing unit specifically includes:
Log acquisition module to be printed is obtained for the selection instruction according to the Log Types from the MCU device
Corresponding daily record to be printed;
Determination type module is highlighted, the selection instruction for highlighting Log Types according to determines the day to be printed
Daily record to be highlighted in will;
Print module, for highlighting printing to the daily record unlatching to be highlighted, to except the daily record to be highlighted
Common print operation is opened in other outer daily records to be printed.
Compared with prior art, a kind of daily record print system disclosed by the embodiments of the present invention passes through load right acquiring unit
When judging that user has print right, according to the selection instruction of Log Types, log acquisition module to be printed obtains from MCU device
Take corresponding daily record to be printed, and by highlight determination type module according to the selection instruction for highlighting Log Types determine described in wait for
Daily record to be highlighted in print log, to which print module highlights printing to the daily record unlatching to be highlighted, to removing
Common print operation is opened in other daily records to be printed stated outside daily record to be highlighted.It solves and is set in the prior art in printing MCU
It needs to recompilate when standby daily record and the mode of burning, the problem of to influence debugging efficiency and Commissioning field may be destroyed,
It can need not be recompilated and burning when printing the running log of MCU device, improve runnability.
As the improvement of said program, the daily record print command further includes filtering out the selection instruction of Log Types, then institute
It further includes filtering out journal module to state daily record printing unit, it is described filter out journal module for according to described in filter out Log Types
Selection instruction, filter out at least one daily record to be printed;
The daily record print system further includes communication unit, and the communication unit is used for through serial communication and MUC equipment
Establish connection.
As the improvement of said program, the Log Types include function type and/or rating-type;The function type
Including but not limited to communication function, touch function and/or keypress function;The rating-type include but not limited to Debugging message,
General information, warning message, error message and/or program crashing information.
It is described to highlight printing and specifically include as the improvement of said program:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color generation
Code, font code and/or cut-off rule.
To achieve the above object, the embodiment of the present invention also provide a kind of daily record printing equipment, including processor, memory with
And it is stored in the memory and is configured as the computer program executed by the processor, described in the processor execution
The daily record Method of printing described in foregoing invention embodiment is realized when computer program.
Description of the drawings
Fig. 1 is a kind of flow chart of daily record Method of printing provided in an embodiment of the present invention;
Fig. 2 is the flow chart of daily record printing in a kind of daily record Method of printing provided in an embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of daily record print system provided in an embodiment of the present invention;
Fig. 4 is the structural representation of daily record printing unit 3 in a kind of daily record print system provided in an embodiment of the present invention
Figure;
Fig. 5 is a kind of structural schematic diagram of daily record printing equipment provided in an embodiment of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other without creative efforts
Embodiment shall fall within the protection scope of the present invention.
Embodiment one
It is a kind of flow chart of daily record Method of printing provided in an embodiment of the present invention referring to Fig. 1, Fig. 1, the present embodiment is applicable in
In printing the daily record in MCU device, including:
When S1, response log print request, the log-on message for the user for initiating the daily record print request is obtained;
S2, when judging that the user has print right according to the log-on message, open daily record printing function;
After S3, the open daily record printing function, when receiving daily record print command, starting log printing;Its
In, the daily record print command includes the selection instruction of Log Types and highlights the selection instruction of Log Types;
It is the flow of daily record printing in a kind of daily record Method of printing provided in an embodiment of the present invention referring to Fig. 2, Fig. 2
Figure;Daily record printing described in step S3 includes:
S301, according to the selection instruction of the Log Types, corresponding daily record to be printed is obtained from the MCU device;
S302, the selection instruction that Log Types are highlighted according to, determine daily record to be highlighted in the daily record to be printed;
S302, printing is highlighted to the daily record unlatching to be highlighted, to other in addition to the daily record to be highlighted
Common print operation is opened in daily record to be printed.
Wherein, the MCU device is micro-control unit (Microcontroller Unit;MCU), also known as single-sheet miniature meter
Calculation machine (Single Chip Microcomputer) or microcontroller, are central processing unit (Central Process
Unit;CPU frequency) does appropriate reduction with specification, and memory (memory), counter (Timer), USB, A/D are converted,
The perimeter interfaces such as UART, PLC, DMA or even LCD driving circuits are all incorporated on one chip, form the computer of chip-scale,
Various combination control is done for different application scenarios.
Wherein, the Log Types include function type and/or rating-type;The function type includes but not limited to logical
Telecommunication function, touch function and/or keypress function;The rating-type includes but not limited to Debugging message, general information, warning letter
Breath, error message and/or program crashing information.Specifically, the MCU device compiling when by code according to the Log Types
Classification respectively write into.
Specifically, the daily record Method of printing that the present embodiment is provided can execute realization, the host computer by host computer
Daily record for printing the MCU device, then when executing the present embodiment by host computer, user can in advance set the MCU
It is standby to be connect with the host computer of daily record Method of printing that is executing the present embodiment, in step sl, when MCU device has it is abnormal when, by institute
The running log for stating MCU device prints, the problem of so as to check the MCU device, wherein the MCU device is being compiled
Type information is just contained when translating, only gives tacit consent to not printing, and MCU device when printing is needed to receive daily record printing by serial ports
Instruction, to without carrying out recompility and burning to the running log of the MCU device.
Wherein, the MCU device includes but not limited to mobile phone, tablet computer or other-end equipment, and the host computer can
To be computer.
Before the running log of the MCU device is printed, the log-on message for verifying user is needed.It is being responsive to
When daily record print request, a log-in interface can be opened, user can input corresponding according to the prompt message of the login interface
Logon information judges whether user has print right further according to the logon information input by user.
Preferably, the logon information include but not limited to modification logging, user name, user identity card number and/or
User login name.Preferably, the running log of the MCU device refers to the operation code in the MCU device.Preferably,
The running log of the MCU device can be printed by composing software.
Specifically, in step s 2, when judging that the user has print right, open daily record printing function, at this point,
The running log of the MCU device can be printed;When judging that the user does not have print right, not open daily record prints work(
Energy.Authentication is carried out to user before the running log for printing the MCU device, the operation of those without authority can be avoided,
So that it is guaranteed that the safety of the MCU device operation.
Specifically, in step s3, after the opening daily record printing function, when receiving daily record print command, opening
Dynamic daily record printing;Wherein, the daily record print command includes the selection instruction of Log Types and highlights the choosing of Log Types
Select instruction.The open printing when receiving daily record print command can just print the running log of the MCU device, thus not shadow
The normal use for ringing serial ports, will not occupying system resources.
Preferably, the daily record print command can also include opening daily record print command, then responding the daily record class
The unlatching daily record print command is first responded before the selection instruction of type and the selection instruction for highlighting Log Types, can just start to beat
Print the running log of all MCU devices.The presence opened daily record print command and be equivalent to printing master switch, can be multiple
It is unified to start the daily record printing in the presence of MCU device.Only responding the unlatching daily record print command
Afterwards, it just responds the selection instruction of the Log Types and highlights the selection instruction of Log Types.
Specifically, in step S301, when user determines that the MCU device is that occur on communication function or touch function
When problem, the selection instructions of the Log Types can be the selection instruction of communication function and the selection instruction of touch function, this
When, the day to be printed of the corresponding communication function is obtained from the MCU device according to the selection instruction of the communication function
Will, and the to be printed of the corresponding touch function is obtained from the MCU device according to the selection instruction of the touch function
Daily record.
Specifically, in step s 302, according to the selection instruction for highlighting Log Types, for example described daily record class is highlighted
When the selection instruction of type is the selection instruction for highlighting communication module, daily record to be highlighted is the MCU in the daily record to be printed
The running log of the communication module of equipment.
Specifically, in step S303, when user determines that the possibility that communication function goes wrong in the MCU device is big
When the possibility that the touch function goes wrong, the daily record to be highlighted is carried out to highlight printing, such as to institute
The running log for stating the communication module of MCU device highlight printing, while to its in addition to the daily record to be highlighted
Common print operation is opened in his daily record to be printed, for example is commonly beaten the running log of the touch modules of the MCU device
Print operation.Carrying out highlighting printing to the daily record to be highlighted can be such that key modules are highlighted in numerous function modules
Out.
Preferably, described to highlight printing and specifically include:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color generation
Code, font code and/or cut-off rule.
Specifically, when determining when the daily record highlighted, for example the daily record to be highlighted is described in step S303
When the running log of the communication module of MCU device, the color of addition and current code in the running log of the communication module
The color of a certain partial code in the running log of the communication module is changed to by the code of other different colors
The color different from current code.Preferably, current code can also be changed in the running log of the communication module
The code of different font, for example current code overstriking is shown, or increase by one section of explanation in Chinese.It preferably, can also be
Cut-off rule is added in the running log of the communication module to be distinguish.So as to go out in many multi-functional Log Types
The running log that the possibility of existing problem is bigger highlights, and can improve the efficiency to search problem.
After opening daily record printing function based on step S2, the daily record print command in the step S3 further includes filtering out daily record
The selection instruction of type further includes in step s3 then step S31 when receiving daily record print command:
S31, the selection instruction that Log Types are filtered out according to, filter out at least one daily record to be printed.
Specifically, in step S31, when user determines that not mistake occurs for some function of the MCU device, than
When such as the keypress function of the MCU device, there is no problem, the selection instruction for filtering out Log Types can filter out button work(
The selection instruction of energy, at this point, can be obtained in addition to the keypress function according to the selection instruction for filtering out keypress function
The running log of other functions, to carry out the operation of the selection instruction for highlighting Log Types in the step S3 again.It is described
The running log for the MCU device to be obtained can be reduced by filtering out the selection instruction of Log Types, to reduce interference information,
Improve the efficiency to search problem.
Before step S1 response log print requests, the present embodiment further includes step:S10, pass through serial communication and MUC
Equipment establishes connection.It is connected to make the host computer be established with the MUC equipment, at this point, the MCU device can pass through string
Mouth exports running log to the host computer, while the host computer can send daily record to the MCU device by serial ports and beat
Print instruction, to obtain the daily record of a certain Log Types.
When it is implemented, by when user has print right, according to the selection instruction of Log Types, from MCU device
Place obtains corresponding daily record to be printed, and according to the selection instruction for highlighting Log Types, determines and wait dashing forward in the daily record to be printed
Aobvious daily record, to highlight printing to the daily record unlatching to be highlighted, to other in addition to the daily record to be highlighted
Common print operation is opened in daily record to be printed.
Compared with prior art, a kind of daily record Method of printing disclosed by the embodiments of the present invention solves is beating in the prior art
It needs to recompilate the mode with burning when printing the daily record of MCU device, to influence debugging efficiency and Commissioning field may be destroyed
The problem of, it can need not be recompilated and burning when printing the running log of MCU device, improve runnability.
Embodiment two
It is a kind of structural schematic diagram of daily record print system provided in an embodiment of the present invention referring to Fig. 3, Fig. 3;The present embodiment
Suitable for printing the daily record MCU device, including:
Load right acquiring unit 1 when being used for response log print request, obtains the use for initiating the daily record print request
The log-on message at family;
Daily record printing function open cell 2 judges that the user has print right for working as according to the log-on message
When, open daily record printing function;
Daily record printing unit 3, after opening the daily record printing function, when receiving daily record print command,
Starting log printing;Wherein, the daily record print command includes the selection instruction of Log Types and highlights Log Types
Selection instruction;
It is daily record printing unit 3 in a kind of daily record print system provided in an embodiment of the present invention referring to Fig. 4, Fig. 4
Structural schematic diagram;The daily record printing unit 3 specifically includes:
Log acquisition module 31 to be printed is obtained for the selection instruction according to the Log Types from the MCU device
Take corresponding daily record to be printed;
Determination type module 32 is highlighted, the selection instruction for highlighting Log Types according to determines described to be printed
Daily record to be highlighted in daily record;
Print module 33, for highlighting printing to the daily record unlatching to be highlighted, to except the day to be highlighted
Common print operation is opened in other daily records to be printed outside will.
Wherein, the MCU device is micro-control unit (Microcontroller Unit;MCU), also known as single-sheet miniature meter
Calculation machine (Single Chip Microcomputer) or microcontroller, are central processing unit (Central Process
Unit;CPU frequency) does appropriate reduction with specification, and memory (memory), counter (Timer), USB, A/D are converted,
The perimeter interfaces such as UART, PLC, DMA or even LCD driving circuits are all incorporated on one chip, form the computer of chip-scale,
Various combination control is done for different application scenarios.
Wherein, the Log Types include function type and/or rating-type;The function type includes but not limited to logical
Telecommunication function, touch function and/or keypress function;The rating-type includes but not limited to Debugging message, general information, warning letter
Breath, error message and/or program crashing information.Specifically, the MCU device compiling when by code according to the Log Types
Classification respectively write into.
Specifically, when MCU device has abnormal, the MCU device can be connect by user with the daily record print system,
The running log of the MCU device is printed in the daily record print system, so as to check asking for the MCU device
Topic, wherein the MCU device just contains type information in compiling, only gives tacit consent to not printing, needs to pass through serial ports when printing
It receives the daily record print command that daily record print system is sent and carrys out open printing, to without the running log to the MCU device
Carry out recompility and burning.
Wherein, the MCU device includes but not limited to mobile phone, tablet computer or other-end equipment, the daily record printing
System can be computer.
Before the daily record print system prints the running log of the MCU device, need to verify user's
Log-on message.I.e. the load right acquiring unit 1 can open a log-in interface when being responsive to daily record print request, use
Family can input corresponding logon information according to the prompt message of the login interface, the load right acquiring unit 1 according to
The logon information of family input judges whether user has print right.
Preferably, the logon information include but not limited to modification logging, user name, user identity card number and/or
User login name.Preferably, the running log of the MCU device refers to the operation code in the MCU device.Preferably,
The daily record print system can be printed the running log of the MCU device by composing software.
Specifically, when the load right acquiring unit 1 judges that the user has print right, the daily record printing
Function open cell 2 opens daily record printing function, at this point, the daily record print system can print the operation of the MCU device
Daily record;When the daily record printing function open cell 2 judges that the user does not have print right, the daily record print system
Not open daily record printing function.Authentication is carried out to user before the running log for printing the MCU device, can be avoided
The operation of those without authority, so that it is guaranteed that the safety of MCU device operation.
Specifically, after the daily record print system opens the daily record printing function, when the daily record printing unit 3
When receiving daily record print command, the 3 starting log printing of daily record printing unit;Wherein, the daily record printing
Instruction includes the selection instruction of Log Types and highlights the selection instruction of Log Types.When the daily record printing unit 3 connects
Open printing when receiving daily record print command, at this time the daily record printing unit 3 can just print the operation of the MCU device
Daily record, so that the normal use of the serial ports of the daily record print system is not influenced, it will not occupying system resources.
Preferably, the daily record print command can also include opening daily record print command, then print and grasp in the daily record
Make unit 3 to respond the selection instruction of the Log Types and first respond the unlatching daily record before highlighting the selection instructions of Log Types
Print command, at this point, the daily record printing unit 3 can just start to print the running log of all MCU devices.It is described to open
The presence that daily record print command is equivalent to the printing master switch of the daily record print system is opened, can be existed in multiple MCU devices
In the case of, it is unified to start the daily record printing.Only after responding the unlatching daily record print command, the daily record is beaten
Print operating unit 3 just responds the selection instruction of the Log Types and highlights the selection instruction of Log Types.
Specifically, when user determine the MCU device be on communication function or touch function when something goes wrong, the day
The selection instruction of will type can be the selection instruction of communication function and the selection instruction of touch function, at this point, described to be printed
Log acquisition module 31 obtains the corresponding communication function according to the selection instruction of the communication function from the MCU device
Daily record to be printed, and the corresponding touch work(is obtained from the MCU device according to the selection instruction of the touch function
The daily record to be printed of energy.
Specifically, the determination type module 32 that highlights is according to the selection instruction for highlighting Log Types, for example, it is described
When the selection instruction for highlighting Log Types is the selection instruction for highlighting communication module, daily record to be highlighted in the daily record to be printed
It is the running log of the communication module of the MCU device.
Specifically, when user determines that the possibility that communication function goes wrong in the MCU device is more than the touch work(
When the possibility that can be gone wrong, the print module 33 carries out highlighting printing to the daily record to be highlighted, such as right
The running log of the communication module of the MCU device carries out highlighting printing, while in addition to the daily record to be highlighted
Common print operation is opened in other daily records to be printed, for example is carried out to the running log of the touch modules of the MCU device common
Printing.Highlight printing to the daily record to be highlighted can make key modules dash forward in numerous function modules
It shows and.
Preferably, described to highlight printing and specifically include:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color generation
Code, font code and/or cut-off rule.
Specifically, when the determination type module 32 that highlights determines when the daily record highlighted, such as it is described to be highlighted
When daily record is the running log of the communication module of the MCU device, the determination type module 32 that highlights is in the communication module
Running log in addition and other different colors of color of current code code or by the fortune of the communication module
The color of a certain partial code is changed to the color different from current code in row daily record.Preferably, described to highlight type determination
Current code can also be changed to the code of different font by module 32 in the running log of the communication module, such as will
Current code overstriking is shown, or increases by one section of explanation in Chinese.Preferably, the determination type module 32 that highlights can also be in institute
Addition cut-off rule in the running log of communication module is stated to be distinguish.So as to occur in many multi-functional Log Types
The running log that the possibility of problem is bigger highlights, and can improve the efficiency to search problem.
Preferably, the daily record print command further includes filtering out the selection instruction of Log Types, then daily record printing list
Member 3 further includes filtering out journal module 34, it is described filter out journal module 34 for according to described in filter out the selection instructions of Log Types,
Filter out at least one daily record to be printed;
The daily record print system further includes communication unit 4, and the communication unit 4 by serial communication and MUC for being set
It is standby to establish connection.
Specifically, when user determines that not mistake occurs for some function of the MCU device, for example the MCU is set
Standby keypress function is when there is no problem, and the selection instruction for filtering out Log Types can filter out the selection of keypress function to refer to
It enables, at this point, the journal module 34 that filters out can be obtained according to the selection instruction for filtering out keypress function except the button work(
The running log of other functions except energy, to carry out the Log Types that highlight highlighted in determination type module 32 again
The operation of selection instruction.The selection instruction for filtering out Log Types can reduce the operation day for the MCU device to be obtained
Will improves the efficiency to search problem to reduce interference information.
It is connected specifically, the communication unit 4 makes the daily record print system be established with the MUC equipment, at this point, described
MCU device can export running log by serial ports to the daily record print system, while the daily record print system can lead to
It crosses serial ports and sends daily record print command to the MCU device, to obtain the daily record of a certain Log Types.
When it is implemented, when judging that user has print right by load right acquiring unit 1, according to Log Types
Selection instruction, log acquisition module 31 to be printed obtain corresponding daily record to be printed from MCU device, and true by highlighting type
Cover half block 32 determines daily record to be highlighted in the daily record to be printed according to the selection instruction for highlighting Log Types, to impression block
Block 33 highlights printing to the daily record unlatching to be highlighted, to other daily records to be printed in addition to the daily record to be highlighted
Open common print operation.
Compared with prior art, a kind of daily record print system disclosed by the embodiments of the present invention solves is beating in the prior art
It needs to recompilate the mode with burning when printing the daily record of MCU device, to influence debugging efficiency and Commissioning field may be destroyed
The problem of, it can need not be recompilated and burning when printing the running log of MCU device, improve runnability.
Embodiment three
It is a kind of structural schematic diagram of daily record printing equipment provided in an embodiment of the present invention referring to Fig. 5, Fig. 5;The embodiment
Daily record printing equipment include:It processor 10, memory 20 and is stored in the memory 20 and can be in the processor
The computer program run on 10.The processor 10 realizes above-mentioned each daily record Method of printing when executing the computer program
Step in embodiment, such as step S1~S3 shown in FIG. 1.Alternatively, when the processor 10 executes the computer program
Realize the function of each unit in above-mentioned each device embodiment, such as the function of the load right acquiring unit 1.
Illustratively, the computer program can be divided into one or more module/units, one or more
A module/unit is stored in the memory, and is executed by the processor 10, to complete the present invention.It is one or
Multiple module/units can be the series of computation machine program instruction section that can complete specific function, and the instruction segment is for describing
Implementation procedure of the computer program in the daily record printing equipment.For example, the computer program can be divided into
Load right acquiring unit 1, daily record printing function open cell 2, daily record printing unit 3 and communication unit 4, each unit
Concrete function with reference to the function of each unit in daily record print system in above-described embodiment, details are not described herein.
The daily record print system can be the calculating such as desktop PC, notebook, palm PC and cloud server
Equipment.The daily record print system may include, but be not limited only to, processor 10, memory 20.Those skilled in the art can manage
Solution, the schematic diagram is only the example of daily record print system, does not constitute the restriction to daily record print system, may include ratio
More or fewer components are illustrated, certain components or different components are either combined, such as the daily record print system may be used also
To include input-output equipment, network access equipment, bus etc..
The processor 10 can be central processing unit (Central Processing Unit, CPU), can also be
Other general processors, digital signal processor (Digital Signal Processor, DSP), application-specific integrated circuit
(Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field-
Programmable Gate Array, FPGA) either other programmable logic device, discrete gate or transistor logic,
Discrete hardware components etc..General processor can be microprocessor or the processor can also be any conventional processor
Deng the processor 10 is the control centre of the daily record print system, is beaten using various interfaces and the entire daily record of connection
The various pieces of print system.
The memory 20 can be used for storing the computer program and/or module, the processor 20 by operation or
Computer program and/or the module stored in the memory is executed, and calls the data being stored in memory, is realized
The various functions of the daily record print system.The memory 20 can include mainly storing program area and storage data field, wherein
Storing program area can store needed for operating device, at least one function application program (such as sound-playing function, image play
Function etc.) etc.;Storage data field can be stored uses created data (such as audio data, phone directory etc.) according to mobile phone
Deng.In addition, the memory 20 may include high-speed random access memory, can also include nonvolatile memory, such as
Hard disk, memory, plug-in type hard disk, intelligent memory card (Smart Media Card, SMC), secure digital (Secure
Digital, SD) card, flash card (Flash Card), at least one disk memory, flush memory device or other volatibility are solid
State memory device.
Wherein, if module/unit that the daily record print system integrates is realized in the form of SFU software functional unit and makees
It is independent product sale or in use, can be stored in a computer read/write memory medium.Based on this understanding,
The present invention realizes all or part of flow in above-described embodiment method, can also be instructed by computer program relevant hard
Part is completed, and the computer program can be stored in a computer readable storage medium, which is being handled
When device executes, it can be achieved that the step of above-mentioned each embodiment of the method.Wherein, the computer program includes computer program generation
Code, the computer program code can be source code form, object identification code form, executable file or certain intermediate forms
Deng.The computer-readable medium may include:Any entity or device, record of the computer program code can be carried
Medium, USB flash disk, mobile hard disk, magnetic disc, CD, computer storage, read-only memory (ROM, Read-Only Memory), with
Machine accesses memory (RAM, Random Access Memory), electric carrier signal, telecommunication signal and software distribution medium etc..
It should be noted that the content that the computer-readable medium includes can be according to legislation and patent practice in jurisdiction
It is required that carrying out increase and decrease appropriate, such as in certain jurisdictions, do not wrapped according to legislation and patent practice, computer-readable medium
Include electric carrier signal and telecommunication signal.
It should be noted that the apparatus embodiments described above are merely exemplary, wherein described be used as separating component
The unit of explanation may or may not be physically separated, and the component shown as unit can be or can also
It is not physical unit, you can be located at a place, or may be distributed over multiple network units.It can be according to actual
It needs that some or all of module therein is selected to achieve the purpose of the solution of this embodiment.In addition, device provided by the invention
In embodiment attached drawing, the connection relation between module indicates there is communication connection between them, specifically can be implemented as one or
A plurality of communication bus or signal wire.Those of ordinary skill in the art are without creative efforts, you can to understand
And implement.
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, various improvements and modifications may be made without departing from the principle of the present invention, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (10)
1. a kind of daily record Method of printing, which is characterized in that it is suitable for MCU device, including:
When response log print request, the log-on message for the user for initiating the daily record print request is obtained;
When judging that the user has print right according to the log-on message, open daily record printing function;
After the open daily record printing function, when receiving daily record print command, starting log printing;Wherein, described
Daily record print command includes the selection instruction of Log Types and highlights the selection instruction of Log Types, the daily record printing packet
It includes:
According to the selection instruction of the Log Types, corresponding daily record to be printed is obtained from the MCU device;
According to the selection instruction for highlighting Log Types, daily record to be highlighted in the daily record to be printed is determined;
Printing is highlighted to the daily record unlatching to be highlighted, to other daily records to be printed in addition to the daily record to be highlighted
Open common print operation.
2. daily record Method of printing as described in claim 1, which is characterized in that the daily record print command further includes filtering out daily record
The selection instruction of type, then it is described to further include when receiving daily record print command:
According to the selection instruction for filtering out Log Types, at least one daily record to be printed is filtered out.
3. daily record Method of printing as described in claim 1, which is characterized in that the Log Types include function type and/or
Rating-type;The function type includes but not limited to communication function, touch function and/or keypress function;The rating-type
Including but not limited to Debugging message, general information, warning message, error message and/or program crashing information.
4. daily record Method of printing as described in claim 1, which is characterized in that described to highlight printing and specifically include:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color code, word
Body code and/or cut-off rule.
5. daily record Method of printing as described in claim 1, which is characterized in that when the response print request, obtain and initiate institute
Further include before stating the log-on message of the user of daily record print request:
It is established and is connected by serial communication and MUC equipment.
6. a kind of daily record print system, which is characterized in that it is suitable for MCU device, including:
Load right acquiring unit when being used for response log print request, obtains the user's for initiating the daily record print request
Log-on message;
Daily record printing function open cell, for when judging that the user has print right according to the log-on message, opening
Put daily record printing function;
Daily record printing unit, when receiving daily record print command, starts day after opening the daily record printing function
Will printing;Wherein, the daily record print command includes that the selection instruction of Log Types refers to the selection for highlighting Log Types
It enables, the daily record printing unit specifically includes:
Log acquisition module to be printed is obtained from the MCU device and is corresponded to for the selection instruction according to the Log Types
Daily record to be printed;
Determination type module is highlighted, the selection instruction for highlighting Log Types according to determines in the daily record to be printed
Daily record to be highlighted;
Print module, for highlighting printing to the daily record unlatching to be highlighted, in addition to the daily record to be highlighted
Common print operation is opened in other daily records to be printed.
7. daily record print system as claimed in claim 6, which is characterized in that the daily record print command further includes filtering out daily record
The selection instruction of type, then the daily record printing unit further includes filtering out journal module, and the journal module that filters out is used for
According to the selection instruction for filtering out Log Types, at least one daily record to be printed is filtered out;
The daily record print system further includes communication unit, and the communication unit is used to establish by serial communication and MUC equipment
Connection.
8. daily record print system as claimed in claim 6, which is characterized in that the Log Types include function type and/or
Rating-type;The function type includes but not limited to communication function, touch function and/or keypress function;The rating-type
Including but not limited to Debugging message, general information, warning message, error message and/or program crashing information.
9. daily record print system as claimed in claim 6, which is characterized in that described to highlight printing and specifically include:
Addition highlights label in the daily record to be highlighted;Wherein, the label that highlights includes but not limited to color code, word
Body code and/or cut-off rule.
10. a kind of daily record printing equipment, which is characterized in that including processor, memory and be stored in the memory and
It is configured as the computer program executed by the processor, the processor realizes such as right when executing the computer program
It is required that the daily record Method of printing described in any one of 1 to 5.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810343753.0A CN108563576A (en) | 2018-04-17 | 2018-04-17 | A kind of daily record Method of printing, system and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810343753.0A CN108563576A (en) | 2018-04-17 | 2018-04-17 | A kind of daily record Method of printing, system and device |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108563576A true CN108563576A (en) | 2018-09-21 |
Family
ID=63535601
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810343753.0A Pending CN108563576A (en) | 2018-04-17 | 2018-04-17 | A kind of daily record Method of printing, system and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108563576A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638857A (en) * | 2020-04-16 | 2020-09-08 | 贝壳技术有限公司 | Business processing method and device of printing service, electronic equipment and storage medium |
CN113238722A (en) * | 2021-05-17 | 2021-08-10 | 上海中通吉网络技术有限公司 | Log printing method and device |
CN115729479A (en) * | 2021-08-30 | 2023-03-03 | 华为技术有限公司 | Method and electronic equipment for printing dynamic log |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1959695A (en) * | 2005-11-04 | 2007-05-09 | 佳能株式会社 | Printing management system and printing management method |
US20160321275A1 (en) * | 2015-05-01 | 2016-11-03 | Microsoft Technology Licensing, Llc | Data migration to a cloud computing system |
CN106502877A (en) * | 2016-11-05 | 2017-03-15 | 福建省北峰电讯科技有限公司 | A kind of log service system of the Virtual terminal of embedded system |
CN107195205A (en) * | 2017-05-25 | 2017-09-22 | 人教数字出版有限公司 | The print processing method and device of 3D model contents in a kind of digital teaching material |
-
2018
- 2018-04-17 CN CN201810343753.0A patent/CN108563576A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1959695A (en) * | 2005-11-04 | 2007-05-09 | 佳能株式会社 | Printing management system and printing management method |
US20160321275A1 (en) * | 2015-05-01 | 2016-11-03 | Microsoft Technology Licensing, Llc | Data migration to a cloud computing system |
CN106502877A (en) * | 2016-11-05 | 2017-03-15 | 福建省北峰电讯科技有限公司 | A kind of log service system of the Virtual terminal of embedded system |
CN107195205A (en) * | 2017-05-25 | 2017-09-22 | 人教数字出版有限公司 | The print processing method and device of 3D model contents in a kind of digital teaching material |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111638857A (en) * | 2020-04-16 | 2020-09-08 | 贝壳技术有限公司 | Business processing method and device of printing service, electronic equipment and storage medium |
CN113238722A (en) * | 2021-05-17 | 2021-08-10 | 上海中通吉网络技术有限公司 | Log printing method and device |
CN115729479A (en) * | 2021-08-30 | 2023-03-03 | 华为技术有限公司 | Method and electronic equipment for printing dynamic log |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110310205B (en) | Block chain data monitoring method, device, equipment and medium | |
CN108563576A (en) | A kind of daily record Method of printing, system and device | |
US10430225B1 (en) | Traffic management on an interconnect | |
JP3814535B2 (en) | Input device | |
CN110210212A (en) | A kind of data processing method, device and relevant device | |
CN105718171B (en) | A kind of data processing method and terminal | |
CN106909443A (en) | The collocation method and device of a kind of virtual machine | |
US9401848B2 (en) | Stateless flexible boot control | |
CN111709023A (en) | Application isolation method and system based on trusted operating system | |
CN104618333A (en) | Mobile terminal safety office system | |
CN111988302A (en) | Method, system, terminal and storage medium for detecting rebound program | |
CN111240610A (en) | Printing process management and control method, system, terminal and storage medium | |
CN111262753B (en) | Method, system, terminal and storage medium for automatically configuring number of NUMA nodes | |
EP2248029B1 (en) | Method and apparatus for performing a host enumeration process | |
CN107623581B (en) | Service list generation method, device and system, and acquisition and reporting method and device | |
CN113448873B (en) | Software testing method, device, storage medium and program product | |
CN102929802B (en) | A kind of guard method of storage resources and system | |
CN107193634A (en) | The access method and device of a kind of virtual machine | |
CN106909382A (en) | Output different type system starts the method and device of information | |
CN109933411A (en) | A kind of online modification virtual machine internal configuration system and method | |
CN105138378A (en) | BIOS flash method and electronic device | |
CN115208671A (en) | Firewall configuration method and device, electronic equipment and storage medium | |
CN111427826B (en) | Heterogeneous multi-core processor with bus connection adjustment function | |
WO2018067139A1 (en) | Usb device filtering | |
CN113849233A (en) | BIOS null boot entry deleting method, system, terminal and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180921 |
|
RJ01 | Rejection of invention patent application after publication |