CN108647131A - The output system of running log - Google Patents

The output system of running log Download PDF

Info

Publication number
CN108647131A
CN108647131A CN201810306274.1A CN201810306274A CN108647131A CN 108647131 A CN108647131 A CN 108647131A CN 201810306274 A CN201810306274 A CN 201810306274A CN 108647131 A CN108647131 A CN 108647131A
Authority
CN
China
Prior art keywords
log
daily record
micro
control unit
intelligent chip
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
CN201810306274.1A
Other languages
Chinese (zh)
Other versions
CN108647131B (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.)
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics Co Ltd
Original Assignee
Guangzhou Shiyuan Electronics Thecnology Co Ltd
Guangzhou Shirui Electronics 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 Guangzhou Shiyuan Electronics Thecnology Co Ltd, Guangzhou Shirui Electronics Co Ltd filed Critical Guangzhou Shiyuan Electronics Thecnology Co Ltd
Priority to CN201810306274.1A priority Critical patent/CN108647131B/en
Publication of CN108647131A publication Critical patent/CN108647131A/en
Application granted granted Critical
Publication of CN108647131B publication Critical patent/CN108647131B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3476Data logging
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3466Performance evaluation by tracing or monitoring
    • G06F11/3495Performance evaluation by tracing or monitoring for systems

Abstract

The present invention provides a kind of output system of running log, which may include:It is configured at the intelligent chip and micro-control unit of same electronic equipment, the intelligent chip carries the operating system of the electronic equipment, and the micro-control unit operation there are the pre-set programs of the electronic equipment;The micro-control unit sends object run daily record to the intelligent chip, and the object run daily record is the running log that the micro-control unit runs that the pre-set programs generate;The intelligent chip receives the object run daily record, and the object run daily record is added in the system log of operating system, when detecting the remote output command for the running log of the micro-control unit, the system log is exported using remote debugging pattern.The preservation to running log may be implemented in technical solution through the invention;Meanwhile running log can be remotely exported outward, to improve the delivery efficiency and user experience of running log.

Description

The output system of running log
Technical field
The present invention relates to terminal journaling technique field more particularly to a kind of output systems of running log.
Background technology
Micro-control unit (Microcontroller Unit, MCU) in electronic equipment is due to memory space and processing energy Power is limited, can not preserve the running log of its generation, cause developer that can not check the history run daily record of MCU.Meanwhile In the related technology, it does not support remotely to check when exporting the real time execution daily record of MCU, but developer is needed first to use serial ports The electronic equipment for carrying MCU is connected to Solarnumen Comdebug (such as computer) by line, and rerun MCU and by the AccessPort Tool exports real time execution daily record.As it can be seen that in the related technology the scene of electronic equipment must be reached by developer to transfer it The real time execution daily record of MCU, inefficiency, user experience are poor.
Invention content
In view of this, the present invention provides a kind of output system of running log, the history fortune that can not preserve MCU can be solved The problem of row daily record, and can support remotely to check when exporting the real time execution daily record of MCU, to improve output running log Efficiency and user experience.
To achieve the above object, it is as follows to provide technical solution by the present invention:
According to the first aspect of the invention, it is proposed that a kind of output system of running log, including:It is configured at same electronics The intelligent chip and micro-control unit of equipment, the intelligent chip carry the operating system of the electronic equipment, the micro-control Unit operation processed has the pre-set programs of the electronic equipment;
The micro-control unit sends object run daily record to the intelligent chip, and the object run daily record is described micro- Control unit runs the running log that the pre-set programs generate;
The intelligent chip receives the object run daily record, and the object run daily record is added to operating system In system log, when detecting the remote output command for the running log of the micro-control unit, to be adjusted using long-range Die trial formula exports the system log.
According to the second aspect of the invention, it is proposed that a kind of output method of running log is applied to the intelligence of electronic equipment Can chip, be also configured with micro-control unit in the electronic equipment, the intelligent chip carries the operation of the electronic equipment System, the micro-control unit operation have the pre-set programs of the electronic equipment;The method includes:
The object run daily record that the micro-control unit is sent is received, and the object run daily record is added to operation system In the system log of system, the object run daily record is the operation day that the micro-control unit runs that the pre-set programs generate Will;
When detecting the remote output command for the running log of the micro-control unit, using remote debugging pattern Export the system log.
According to the third aspect of the invention we, it is proposed that a kind of output method of running log is applied to the micro- of electronic equipment Control unit is also configured with intelligent chip in the electronic equipment, and the intelligent chip carries the operation of the electronic equipment System, the micro-control unit operation have the pre-set programs of the electronic equipment;The method includes:
Object run daily record is sent to the intelligent chip, so that the intelligent chip adds the object run daily record It adds in the system log of operating system, and in the remote output command for detecting the running log for the micro-control unit Shi Caiyong remote debugging patterns export the system log;The object run daily record is that micro-control unit operation is described pre- If the running log of Program Generating.
According to the fourth aspect of the invention, it is proposed that a kind of output device of running log is applied to the intelligence of electronic equipment Can chip, be also configured with micro-control unit in the electronic equipment, the intelligent chip carries the operation of the electronic equipment System, the micro-control unit operation have the pre-set programs of the electronic equipment;Described device includes:
Receiving unit receives the object run daily record that the micro-control unit is sent, and the object run daily record is added It adds in the system log of operating system, the object run daily record is that the micro-control unit runs the pre-set programs generation Running log;
Output unit, when detecting the remote output command for the running log of the micro-control unit, using remote Journey debugging mode exports the system log.
According to the fifth aspect of the invention, it is proposed that a kind of output device of running log is applied to the micro- of electronic equipment Control unit is also configured with intelligent chip in the electronic equipment, and the intelligent chip carries the operation of the electronic equipment System, the micro-control unit operation have the pre-set programs of the electronic equipment;Described device includes:
Transmission unit sends object run daily record to the intelligent chip, so that the intelligent chip is by the target Running log is added in the system log of operating system, and is detecting the remote of the running log for being directed to the micro-control unit The system log is exported using remote debugging pattern when journey output order;The object run daily record is the micro-control unit Run the running log that the pre-set programs generate.
According to the sixth aspect of the invention, it is proposed that a kind of electronic equipment, including:Micro-control unit and intelligent chip, institute Stating micro-control unit operation has the pre-set programs of the electronic equipment, the intelligent chip to carry the operation of the electronic equipment System;
The micro-control unit is used to send object run daily record to the intelligent chip, and the object run daily record is institute It states micro-control unit and runs the running log that the pre-set programs generate;
The intelligent chip is added to operation system for receiving the object run daily record, and by the object run daily record In the system log of system, with detect for the micro-control unit running log remote output command when, using remote Journey debugging mode exports the system log.
By above technical scheme as it can be seen that the present invention by the running log of micro-control unit in electronic equipment by being added to electricity In the system log of the operating system of sub- equipment, on the one hand, the preservation to running log may be implemented;On the other hand, based on being The function of remote debugging is supported in daily record of uniting, and can remotely export running log outward, and electronic equipment is reached without developer Scene transfer running log, to improving the delivery efficiency and user experience of running log.
Description of the drawings
Fig. 1 is the schematic diagram of the mode of output running log in the related technology.
Fig. 2 is a kind of schematic diagram of the output system of running log shown in an exemplary embodiment of the invention.
Fig. 3 is a kind of output method of running log based on intelligent chip side shown in an exemplary embodiment of the invention Flow chart.
Fig. 4 is a kind of output side of running log based on micro-control unit side shown in an exemplary embodiment of the invention The flow chart of method.
Fig. 5 is a kind of flow chart of the output method of running log shown in an exemplary embodiment of the invention.
Fig. 6 is a kind of schematic diagram of the mode of output running log shown in an exemplary embodiment of the invention.
Fig. 7 is the schematic diagram of the mode of another output running log shown in an exemplary embodiment of the invention.
Fig. 8 is a kind of structural representation of electronic equipment based on intelligent chip side shown in an exemplary embodiment of the invention Figure.
Fig. 9 is a kind of block diagram of the output device of running log shown in an exemplary embodiment of the invention.
Figure 10 is a kind of structure of electronic equipment based on micro-control unit side shown in an exemplary embodiment of the invention Schematic diagram.
Figure 11 is the block diagram of the output device of another running log shown in an exemplary embodiment of the invention.
Specific implementation mode
Example embodiments are described in detail here, and the example is illustrated in the accompanying drawings.Following description is related to When attached drawing, unless otherwise indicated, the same numbers in different drawings indicate the same or similar elements.Following exemplary embodiment Described in embodiment do not represent and the consistent all embodiments of the present invention.On the contrary, they be only with it is such as appended The example of the consistent device and method of some aspects being described in detail in claims, of the invention.
It is the purpose only merely for description specific embodiment in terminology used in the present invention, is not intended to limit the invention. It is also intended to including majority in the present invention and "an" of singulative used in the attached claims, " described " and "the" Form, unless context clearly shows that other meanings.It is also understood that term "and/or" used herein refers to and wraps Containing one or more associated list items purposes, any or all may be combined.
It will be appreciated that though various information, but this may be described using term first, second, third, etc. in the present invention A little information should not necessarily be limited by these terms.These terms are only used for same type of information being distinguished from each other out.For example, not departing from In the case of the scope of the invention, the first information can also be referred to as the second information, and similarly, the second information can also be referred to as One information.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... When " or " in response to determination ".
MCU in electronic equipment can not preserve the running log of its generation, lead since memory space and processing capacity are limited Cause developer that can not check the history run daily record of MCU.Meanwhile in the related art, in the real time execution daily record of output MCU When do not support remotely to check, but need developer that the electronic equipment for carrying MCU is first connected to serial ports tune using Serial Port Line Trial work have, rerun MCU and by the Solarnumen Comdebug export real time execution daily record.By taking Android mobile phone as an example, such as Fig. 1 institutes Show, when developer checks running log (i.e. the real time execution daily record) that MCU100 is generated in real time in Android mobile phone 10, needs First Android mobile phone 10 is connect by Serial Port Line 30 with Solarnumen Comdebug 20 (being, for example, laptop), so that in fortune The MCU100 of row state is exported the running log generated in real time into Solarnumen Comdebug by Serial Port Line 30, and developer is again The real time execution daily record of MCU100 is checked by Solarnumen Comdebug 20.
However, the mode of output real time execution daily record must reach showing for electronic equipment by developer in the related technology , cause inefficiency, user experience poor.
Therefore, the present invention is improved by way of the running log to exporting MCU, to solve to exist in the related technology Above-mentioned technical problem.It is described in detail with reference to embodiment.
Fig. 2 is referred to, Fig. 2 is a kind of signal of the output system of running log shown in an exemplary embodiment of the invention Figure.As shown in Fig. 2, the output system includes being configured at the intelligent chip 102 and micro-control unit 100 of same electronic equipment 10, The intelligent chip 102 carries the operating system of the electronic equipment 10, and the micro-control unit operation has the electronics to set Standby 10 pre-set programs.
Wherein, the micro-control unit 100 sends object run daily record, the object run to the intelligent chip 102 Daily record is the running log that the micro-control unit runs that the pre-set programs generate;
The intelligent chip 102 receives the object run daily record, and the object run daily record is added to operation system In the system log of system, when detecting the remote output command for the running log of the micro-control unit 100, to use Remote debugging pattern exports the system log.
As it can be seen that in the output system of the present invention, by the way that the running log of micro-control unit in electronic equipment is added to In the system log of the operating system of electronic equipment, on the one hand, the preservation to running log may be implemented;On the other hand, it is based on The function of remote debugging is supported in system log, can remotely export running log outward, and reaching electronics without developer sets Running log is transferred at standby scene, to improving the delivery efficiency and user experience of running log.
Fig. 3 is referred to, Fig. 3 is a kind of running log based on intelligent chip side shown in an exemplary embodiment of the invention Output method flow chart.The output method is applied to the intelligent chip of electronic equipment, is also configured in the electronic equipment Micro-control unit, the intelligent chip carry the operating system of the electronic equipment, and the micro-control unit operation has described The pre-set programs of electronic equipment.As shown in figure 3, the output method may comprise steps of:
Step 302, the object run daily record that the micro-control unit is sent is received, and the object run daily record is added Into the system log of operating system.
In the present embodiment, the object run daily record is the fortune that the micro-control unit runs that the pre-set programs generate Row daily record.
In the present embodiment, the object run daily record is packaged in the log field of communication data packet by micro-control unit In, also include identification field in the communication data packet, the identification field is used to mark the class of daily record in the log field Type;Therefore, micro-control unit can identify in storage running daily record in identification field, to show marked communication data packet The running log generated comprising micro-control unit in log field.It is described based on the above-mentioned packaged type to object run daily record Intelligent chip can first receive the communication data packet that the micro-control unit is sent, then determine the identification field of the communication data packet In whether comprising running log identify;When the identification field of the communication data packet received includes that running log identifies, read The daily record that log field includes in the communication data packet, and the daily record read is added in the system log of operating system. By the way that the running log of micro-control unit to be added to the system log of operating system, (intelligent chip supports the guarantor to system log Deposit) in, the preservation function to running log may be implemented.
Step 304, when detecting the remote output command for the running log of the micro-control unit, using long-range Debugging mode exports the system log.
In the present embodiment, the function of remote debugging is supported in the system log based on intelligent chip, can be long-range defeated outward Go out running log (i.e. outside output system daily record, and include the running log of micro-control unit in system log), without opening Hair personnel reach the scene of electronic equipment to transfer running log, to improve the delivery efficiency and user's body of running log It tests.
Correspondingly, Fig. 4 is a kind of running log based on micro-control unit side shown in an exemplary embodiment of the invention Output method flow chart.The output method is applied to the micro-control unit of electronic equipment, is also configured in the electronic equipment There are intelligent chip, the intelligent chip to carry the operating system of the electronic equipment, the micro-control unit operation has described The pre-set programs of electronic equipment.As shown in figure 4, the output method may comprise steps of:
Step 402, object run daily record is sent to the intelligent chip.
In the present embodiment, micro-control unit sends object run daily record to intelligent chip, it is therefore intended that so that the intelligence The object run daily record is added in the system log of operating system by energy chip, and is directed to the microcontroller list detecting The system log is exported using remote debugging pattern when the remote output command of the running log of member;The object run daily record The running log that the pre-set programs generate is run for the micro-control unit.
Specifically, micro-control unit can be first by the object run log package in the log field of communication data packet In, and (the running log mark is for showing for storage running daily record mark in the identification field of the communication data packet The running log generated comprising micro-control unit in the log field of the communication data packet of label), then sent out to the intelligent chip Send the communication data packet.Wherein, micro-control unit can (the default link be used in the microcontroller by default link Transmission data between unit and the intelligent chip can include with Types Below:USB, SPI, IIC) it is sent out to the intelligent chip Send the communication data packet.By the way that the running log of micro-control unit to be added in the system log of operating system, can incite somebody to action The running log that the preservation of system log, remote adjusting functid " imparting " micro-control unit generate.
By above technical scheme as it can be seen that the present invention by the running log of micro-control unit in electronic equipment by being added to electricity In the system log of the operating system of sub- equipment, on the one hand, the preservation to running log may be implemented;On the other hand, based on being The function of remote debugging is supported in daily record of uniting, and can remotely export running log outward, and electronic equipment is reached without developer Scene transfer running log, to improving the delivery efficiency and user experience of running log.
In order to make it easy to understand, with reference to the interactive process between micro-control unit and intelligent chip to the technology of the present invention Scheme is described in detail.
Fig. 5 is referred to, Fig. 5 is a kind of flow of the output method of running log shown in an exemplary embodiment of the invention Figure.As shown in figure 5, the output method may comprise steps of:
Step 502, micro-control unit by object run log package in communication data packet.
In the present embodiment, micro-control unit (hereinafter referred to as MCU) is configured in electronic equipment, is set for running electronics Standby pre-set programs are (for example, the program for power of the whole machine management;The program etc. of channel switching is touched for controlling complete machine);It should Be also configured with intelligent chip in electronic equipment, intelligent chip be used to carry the electronic equipment operating system (for example, Windows, The operating systems such as Android and Linux).MCU can generate corresponding running log when running pre-set programs;Intelligent chip exists Corresponding system log can be also generated when running operating system.
The running log (i.e. object run daily record) of generation can be packaged in the log field of communication data packet by MCU, And storage running daily record identifies in the identification field of communication data packet, to show the log field of marked communication data packet In comprising MCU generate running log.
For example, the format of communication data packet can be as shown in table 1:
Byte position Byte0~Byte15 Byte16~Byte31 Byte32 Byte33~ByteN
Meaning Identification field Label Output level Log field
Table 1
For example, the running log stored in identification field is identified as " MCU_LOG ", the day for showing the communication data packet The running log generated comprising MCU in will field;Label is " TAG_TEST ";Output level (printing grade) is " 7 ";Daily record word The running log content stored in section is " HelloWorld!\n”.
Step 504, MCU sends the communication data packet after being packaged to intelligent chip.
In the present embodiment, configured with default link in electronic equipment, the default link be used for MCU and intelligent chip it Between transmission data.Specifically, USB (Universal Serial Bus, universal serial bus), SPI (Serial may be used Peripheral Interface, Serial Peripheral Interface (SPI)) and IIC (Inter-Integrated Circuit, integrated circuit are total Line) etc. links transmit communication data packet;Certainly, other kinds of link can also be used, the present invention is not to presetting link Type is limited.Based on the configuration of above-mentioned default link, MCU can send communication data by default chain road direction intelligent chip Packet.
Step 506, intelligent chip parses the communication data packet received.
Step 508, intelligent chip reads object run daily record.
In the present embodiment, whether intelligent chip determines in identification field and is identified comprising running log, is communicated when receiving The identification field of data packet include running log identify when, then can determine the communication data packet be MCU send daily record packet (i.e. The object run daily record sent comprising MCU in the log field of the communication data packet), and read daily record word in the communication data packet The daily record that section includes.
For example, it is undertaken in the example above, intelligent chip can compare preceding 16 byte data of communication data packet, if " MCU_LOG " then judges the daily record packet that the communication data packet sends for MCU, then reads the other content in the communication data packet. For example, label is " TAG_TEST ", output level is " 7 ", and the content of object run daily record is " HelloWorld!\n”.
Step 510, object run daily record is added in the system log of operating system by intelligent chip.
In the present embodiment, the system log based on operating system preservation function (operation operating system when generate be System daily record can be saved), by the way that the running log of MCU to be added in system log, it can will preserve function " imparting " and run Daily record, i.e. running log are stored in system log, convenient for subsequent development personnel check MCU running log (including history fortune Row daily record and real time execution daily record).
Step 512, remote output command of the intelligent chip detection for running log.
Step 514, intelligent chip uses remote debugging pattern output system daily record.
In the present embodiment, the function of remote debugging is supported in the system log based on intelligent chip, then working as electronic equipment When establishing remote debugging relationship between debugging acid, remote output command can be sent from the debugging acid to electronic equipment, with So that the intelligent chip return system daily record in electronic equipment (uses remote debugging pattern to debugging acid output system day Will, and include the running log of MCU in system log), the scene of electronic equipment is reached without developer to transfer fortune Row daily record (refers to the above-mentioned way of output in the related technology), to improve the delivery efficiency and user experience of running log.
For example, as shown in fig. 6, electronic equipment is the mobile phone 10 for carrying android system;Wherein, in mobile phone 10 Running log is sent to intelligent chip 102, the running log that intelligent chip 102 will receive again by MCU100 by link 101 It is added in the system log of android system.Debugging acid is laptop 20, and laptop 20 uses ADB (Android Debug Bridge debug bridge) establishes remote debugging relationship with mobile phone 10.
So, in one case, developer can remotely send needle by laptop 20 to intelligent chip 102 To the remote output command of the running log of MCU100, intelligent chip 102 is after detecting the remote output command, using long-range Debugging mode is to 20 output system daily record of laptop;At this moment, developer can obtain system by laptop 20 The running log for including in daily record.In another case, when the operation of mobile phone 10 is deposited when abnormal, developer can pass through ADB remotely checks system log (wherein including real time execution daily record and the history run daily record of MCU100), to according to daily record The program or android system that the source gone wrong is MCU operations are positioned, contributes to developer efficiently to solve electronics and sets Standby failure.
It should be noted that the present invention also supports electronic equipment (to be wrapped to the daily record of debugging acid output system by Serial Port Line Running log containing MCU) mode.As shown in fig. 7, being undertaken in the citing of Fig. 6, developer can pass through Android mobile phone 10 Serial Port Line 30 is connect with laptop 20, then from intelligent chip 102 by Serial Port Line 30 to 20 output system of laptop Daily record, then developer can obtain the operation of MCU100 wherein included according to the system log that intelligent chip 102 exports Daily record.
By above technical scheme as it can be seen that the present invention by the running log of micro-control unit in electronic equipment by being added to electricity In the system log of the operating system of sub- equipment, on the one hand, the preservation to running log may be implemented;On the other hand, based on being The function of remote debugging is supported in daily record of uniting, and can remotely export running log outward, and electronic equipment is reached without developer Scene transfer running log, to improving the delivery efficiency and user experience of running log.
Fig. 8 shows the structural representation based on intelligent chip side electronic equipment of an exemplary embodiment according to the present invention Figure.Referring to FIG. 8, in hardware view, which includes processor 802, internal bus 804, network interface 806, memory 808 and nonvolatile memory 810, it is also possible that the required hardware of other business certainly.Processor 802 is from non-volatile Property memory 810 in read in corresponding computer program to memory 808 and then to run, running log is formed on logic level Output device.Certainly, other than software realization mode, other realization methods, such as logical device is not precluded in the present invention Or mode of software and hardware combining etc., that is to say, that the executive agent of following process flow is not limited to each logic list Member can also be hardware or logical device.
Referring to FIG. 9, in Software Implementation, the output device of the running log is applied to the intelligent core of electronic equipment Piece is also configured with micro-control unit in the electronic equipment, and the intelligent chip carries the operating system of the electronic equipment, The micro-control unit operation has the pre-set programs of the electronic equipment;The output device of the running log may include receiving list Member 902 and output unit 904.Wherein:
Receiving unit 902, receives the object run daily record that the micro-control unit is sent, and by the object run daily record It is added in the system log of operating system, the object run daily record is that the micro-control unit runs the pre-set programs life At running log;
Output unit 904 is used when detecting the remote output command for the running log of the micro-control unit Remote debugging pattern exports the system log.
Optionally, the object run daily record is packaged in the log field of communication data packet, the communication data packet In also include identification field, the identification field is used to mark the type of daily record in the log field;The receiving unit 902 It is specifically used for:
Receive the communication data packet that the micro-control unit is sent;
When the identification field of the communication data packet received includes that running log identifies, it is Sino-Japan to read the communication data packet The daily record that will field includes, the running log mark include micro- in the log field for showing marked communication data packet The running log that control unit generates;
The daily record read is added in the system log of operating system.
Figure 10 shows the structure based on micro-control unit side electronic equipment of an exemplary embodiment according to the present invention Schematic diagram.Referring to FIG. 10, in hardware view, which includes processor 1002, internal bus 1004, network interface 1006, memory 1008 and nonvolatile memory 1010 are also possible that the required hardware of other business certainly.Processor 1002 from then operation in corresponding computer program to memory 1008 is read in nonvolatile memory 1010, in logic level The upper output device for forming running log.Certainly, other than software realization mode, other realization sides are not precluded in the present invention Formula, for example, logical device or software and hardware combining mode etc., that is to say, that the executive agent of following process flow is simultaneously unlimited Can also be hardware or logical device due to each logic unit.
1 is please referred to Fig.1, in Software Implementation, the output device of the running log is applied to the micro-control of electronic equipment Unit processed is also configured with intelligent chip in the electronic equipment, and the intelligent chip carries the operation system of the electronic equipment System, the micro-control unit operation have the pre-set programs of the electronic equipment;The output device of the running log may include hair Send unit 1102.Wherein:
Transmission unit 1102 sends object run daily record to the intelligent chip, so that the intelligent chip will be described Object run daily record is added in the system log of operating system, and is detecting the running log for the micro-control unit Remote output command when the system log exported using remote debugging pattern;The object run daily record is the microcontroller Unit runs the running log that the pre-set programs generate.
Optionally, the transmission unit 1102 is specifically used for:
By the object run log package in the log field of communication data packet, and in the mark of the communication data packet Storage running daily record identifies in section of becoming literate, and the running log identifies the log field for showing marked communication data packet In comprising micro-control unit generate running log;
The communication data packet is sent to the intelligent chip.
Optionally, the transmission unit 1102 is further used for:
The communication data packet is sent by intelligent chip described in default chain road direction, the default link is used for described micro- Transmission data between control unit and the intelligent chip;
Wherein, the default link includes with Types Below:USB、SPI、IIC.
The function of each unit and the realization process of effect specifically refer to and correspond to step in the above method in above-mentioned apparatus Realization process, details are not described herein.
For device embodiments, since it corresponds essentially to embodiment of the method, so related place is referring to method reality Apply the part explanation of example.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 realize the purpose of the present invention program.Those of ordinary skill in the art are not paying In the case of going out creative work, you can to understand and implement.
In the exemplary embodiment, the present invention also provides a kind of electronic equipment, which may include:Microcontroller Unit and intelligent chip, the micro-control unit operation have the pre-set programs of the electronic equipment, the intelligent chip to carry The operating system of the electronic equipment;
The micro-control unit is used to send object run daily record to the intelligent chip, and the object run daily record is institute It states micro-control unit and runs the running log that the pre-set programs generate;
The intelligent chip is added to operation system for receiving the object run daily record, and by the object run daily record In the system log of system, with detect for the micro-control unit running log remote output command when, using remote Journey debugging mode exports the system log.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention With within principle, any modification, equivalent substitution, improvement and etc. done should be included within the scope of protection of the invention god.

Claims (12)

1. a kind of output system of running log, which is characterized in that including:It is configured at the intelligent chip of same electronic equipment and micro- Control unit, the intelligent chip carry the operating system of the electronic equipment, and the micro-control unit operation has the electricity The pre-set programs of sub- equipment;
The micro-control unit sends object run daily record to the intelligent chip, and the object run daily record is the microcontroller Unit runs the running log that the pre-set programs generate;
The intelligent chip receives the object run daily record, and the system that the object run daily record is added to operating system In daily record, with detect for the micro-control unit running log remote output command when, using remote debugging mould Formula exports the system log.
2. a kind of output method of running log, which is characterized in that be applied to the intelligent chip of electronic equipment, the electronic equipment In be also configured with micro-control unit, the intelligent chip carries the operating system of the electronic equipment, the micro-control unit Operation has the pre-set programs of the electronic equipment;The method includes:
The object run daily record that the micro-control unit is sent is received, and the object run daily record is added to operating system In system log, the object run daily record is the running log that the micro-control unit runs that the pre-set programs generate;
When detecting the remote output command for the running log of the micro-control unit, exported using remote debugging pattern The system log.
3. according to the method described in claim 2, it is characterized in that, the object run daily record is packaged in communication data packet Also include identification field in the communication data packet, the identification field is for marking in the log field in log field The type of daily record;The object run daily record for receiving the micro-control unit and sending, and the object run daily record is added Into the system log of operating system, including:
Receive the communication data packet that the micro-control unit is sent;
When the identification field of the communication data packet received includes that running log identifies, daily record word in the communication data packet is read The daily record that section includes, the running log mark include microcontroller in the log field for showing marked communication data packet The running log that unit generates;
The daily record read is added in the system log of operating system.
4. a kind of output method of running log, which is characterized in that be applied to the micro-control unit of electronic equipment, the electronics is set It is also configured with intelligent chip in standby, the intelligent chip carries the operating system of the electronic equipment, the micro-control unit Operation has the pre-set programs of the electronic equipment;The method includes:
Object run daily record is sent to the intelligent chip, so that the object run daily record is added to by the intelligent chip In the system log of operating system, and adopted when detecting the remote output command for the running log of the micro-control unit The system log is exported with remote debugging pattern;The object run daily record is that the micro-control unit runs the default journey The running log that sequence generates.
5. according to the method described in claim 4, it is characterized in that, it is described to the intelligent chip send object run daily record, Including:
By the object run log package in the log field of communication data packet, and in the identifier word of the communication data packet Storage running daily record identifies in section, and the running log mark is wrapped in the log field for showing marked communication data packet The running log generated containing micro-control unit;
The communication data packet is sent to the intelligent chip.
6. according to the method described in claim 5, it is characterized in that, described send the communication data to the intelligent chip Packet, including:
The communication data packet is sent by intelligent chip described in default chain road direction, the default link is used in the microcontroller Transmission data between unit and the intelligent chip;
Wherein, the default link includes with Types Below:USB、SPI、IIC.
7. a kind of output device of running log, which is characterized in that be applied to the intelligent chip of electronic equipment, the electronic equipment In be also configured with micro-control unit, the intelligent chip carries the operating system of the electronic equipment, the micro-control unit Operation has the pre-set programs of the electronic equipment;Described device includes:
Receiving unit receives the object run daily record that the micro-control unit is sent, and the object run daily record is added to In the system log of operating system, the object run daily record is the fortune that the micro-control unit runs that the pre-set programs generate Row daily record;
Output unit is adjusted when detecting the remote output command for the running log of the micro-control unit using long-range Die trial formula exports the system log.
8. device according to claim 7, which is characterized in that the object run daily record is packaged in communication data packet Also include identification field in the communication data packet, the identification field is for marking in the log field in log field The type of daily record;The receiving unit is specifically used for:
Receive the communication data packet that the micro-control unit is sent;
When the identification field of the communication data packet received includes that running log identifies, daily record word in the communication data packet is read The daily record that section includes, the running log mark include microcontroller in the log field for showing marked communication data packet The running log that unit generates;
The daily record read is added in the system log of operating system.
9. a kind of output device of running log, which is characterized in that be applied to the micro-control unit of electronic equipment, the electronics is set It is also configured with intelligent chip in standby, the intelligent chip carries the operating system of the electronic equipment, the micro-control unit Operation has the pre-set programs of the electronic equipment;Described device includes:
Transmission unit sends object run daily record to the intelligent chip, so that the intelligent chip is by the object run Daily record is added in the system log of operating system, and is detecting the long-range defeated of the running log for being directed to the micro-control unit Go out and the system log is exported using remote debugging pattern when instructing;The object run daily record runs for the micro-control unit The running log that the pre-set programs generate.
10. device according to claim 9, which is characterized in that the transmission unit is specifically used for:
By the object run log package in the log field of communication data packet, and in the identifier word of the communication data packet Storage running daily record identifies in section, and the running log mark is wrapped in the log field for showing marked communication data packet The running log generated containing micro-control unit;
The communication data packet is sent to the intelligent chip.
11. device according to claim 10, which is characterized in that the transmission unit is further used for:
The communication data packet is sent by intelligent chip described in default chain road direction, the default link is used in the microcontroller Transmission data between unit and the intelligent chip;
Wherein, the default link includes with Types Below:USB、SPI、IIC.
12. a kind of electronic equipment, which is characterized in that including:Micro-control unit and intelligent chip, the micro-control unit operation have The pre-set programs of the electronic equipment, the intelligent chip carry the operating system of the electronic equipment;
The micro-control unit is used to send object run daily record to the intelligent chip, and the object run daily record is described micro- Control unit runs the running log that the pre-set programs generate;
The object run daily record is added to operating system by the intelligent chip for receiving the object run daily record In system log, when detecting the remote output command for the running log of the micro-control unit, to be adjusted using long-range Die trial formula exports the system log.
CN201810306274.1A 2018-04-08 2018-04-08 Output system of running log Active CN108647131B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810306274.1A CN108647131B (en) 2018-04-08 2018-04-08 Output system of running log

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810306274.1A CN108647131B (en) 2018-04-08 2018-04-08 Output system of running log

Publications (2)

Publication Number Publication Date
CN108647131A true CN108647131A (en) 2018-10-12
CN108647131B CN108647131B (en) 2021-04-27

Family

ID=63745847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810306274.1A Active CN108647131B (en) 2018-04-08 2018-04-08 Output system of running log

Country Status (1)

Country Link
CN (1) CN108647131B (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464505A (en) * 2020-03-11 2020-07-28 北京吉芯网安技术有限公司 Message processing method, device, apparatus, storage medium and processor
CN111651308A (en) * 2020-04-24 2020-09-11 广州视源电子科技股份有限公司 Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device
CN111767261A (en) * 2020-05-29 2020-10-13 广州视源电子科技股份有限公司 Debugging log output method and device, storage medium and electronic equipment
CN114827268A (en) * 2022-05-12 2022-07-29 合肥宏晶半导体科技有限公司 Remote debugging method and device
CN114827268B (en) * 2022-05-12 2024-05-10 合肥宏晶半导体科技有限公司 Remote debugging method and device

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09288632A (en) * 1996-04-19 1997-11-04 Matsushita Electric Ind Co Ltd Communication processor
CN1445669A (en) * 2002-03-15 2003-10-01 联想(北京)有限公司 Method for getting and outputting information monitored by server through multiple approaches
US20100235686A1 (en) * 2009-03-16 2010-09-16 Fujitsu Microelectronics Limited Execution history tracing method
CN104244320A (en) * 2014-09-01 2014-12-24 上海大唐移动通信设备有限公司 Log uploading method and device in automatic road testing system
CN105389235A (en) * 2015-10-28 2016-03-09 致象尔微电子科技(上海)有限公司 Heterogeneous multi-core debug system and method
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN106815128A (en) * 2016-12-11 2017-06-09 乐视控股(北京)有限公司 Log-output method and device, electronic equipment
CN107463459A (en) * 2017-08-14 2017-12-12 青岛海信电器股份有限公司 Store method, device, system and the terminal device of system exception internal storage data

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH09288632A (en) * 1996-04-19 1997-11-04 Matsushita Electric Ind Co Ltd Communication processor
CN1445669A (en) * 2002-03-15 2003-10-01 联想(北京)有限公司 Method for getting and outputting information monitored by server through multiple approaches
US20100235686A1 (en) * 2009-03-16 2010-09-16 Fujitsu Microelectronics Limited Execution history tracing method
CN104244320A (en) * 2014-09-01 2014-12-24 上海大唐移动通信设备有限公司 Log uploading method and device in automatic road testing system
CN106301845A (en) * 2015-05-30 2017-01-04 四川泰瑞创通讯技术股份有限公司 Switch logger module
CN105389235A (en) * 2015-10-28 2016-03-09 致象尔微电子科技(上海)有限公司 Heterogeneous multi-core debug system and method
CN106815128A (en) * 2016-12-11 2017-06-09 乐视控股(北京)有限公司 Log-output method and device, electronic equipment
CN107463459A (en) * 2017-08-14 2017-12-12 青岛海信电器股份有限公司 Store method, device, system and the terminal device of system exception internal storage data

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111464505A (en) * 2020-03-11 2020-07-28 北京吉芯网安技术有限公司 Message processing method, device, apparatus, storage medium and processor
CN111651308A (en) * 2020-04-24 2020-09-11 广州视源电子科技股份有限公司 Method and device for acquiring debugging data of DP-to-HDMI chip and intelligent device
CN111651308B (en) * 2020-04-24 2024-01-30 广州视源电子科技股份有限公司 Method and device for acquiring debugging data of DP-HDMI chip and intelligent device
CN111767261A (en) * 2020-05-29 2020-10-13 广州视源电子科技股份有限公司 Debugging log output method and device, storage medium and electronic equipment
CN114827268A (en) * 2022-05-12 2022-07-29 合肥宏晶半导体科技有限公司 Remote debugging method and device
CN114827268B (en) * 2022-05-12 2024-05-10 合肥宏晶半导体科技有限公司 Remote debugging method and device

Also Published As

Publication number Publication date
CN108647131B (en) 2021-04-27

Similar Documents

Publication Publication Date Title
US6769622B1 (en) System and method for simulating universal serial bus smart card device connected to USB host
KR101068380B1 (en) A multi-function peripheral device, corresponding method and electronic system having a peripheral and a host communicating via a single interface
CN108647131A (en) The output system of running log
CN1327368C (en) External Connection device, host device and data communication system
CN106126465B (en) A kind of data transmission method and device
CN104914815A (en) Processor monitoring method, device and system
CN108564776A (en) Equipment debugging system, apparatus debugging method and computer storage media
CN109299022A (en) A kind of control method and device of USB interface, storage medium
CN113778739B (en) System repair method, system, equipment and storage medium of all-in-one machine
CN105224489A (en) A kind of integrated management system of hardware device
CN105159272B (en) A kind of vehicle diagnosis function switching method and device
CN114356671A (en) Board card debugging device, system and method
CN106649186A (en) Communication method and device for application program and serial port peripheral
CN109558369A (en) Control method, device, equipment and the system of multi -CPU list serial ports
CN108536545A (en) The information processing method and device of terminal device
CN110825547B (en) PCIE card exception recovery device and method based on SMBUS
CN109542834A (en) A kind of method and NC chip of determining NC chip connection error
CN104331350A (en) Method and device for debugging serial port of IC (Integrated Circuit) card electronic equipment
CN107153456A (en) OTG connections control method, OTG connection control devices and electronic equipment
CN105653412A (en) Fingerprint device compatibility detection method and terminal
CN109783286A (en) Built-in test method, test device and terminal device and storage medium
CN106584862A (en) 3D printing WIFI control system with built-in Web service and control method thereof
CN105404467B (en) The access method of portable electronic device and wherein user data
CN110687854B (en) PA bus controller and PA bus control system
CN103440218A (en) CAN (Control Area Network) bus monitoring method based on USB-HID (Universal Serial Bus-Human Input Device) protocol

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
GR01 Patent grant
GR01 Patent grant