CN115525466A - Log reading method, system, device, equipment and computer readable storage medium - Google Patents
Log reading method, system, device, equipment and computer readable storage medium Download PDFInfo
- Publication number
- CN115525466A CN115525466A CN202211293059.5A CN202211293059A CN115525466A CN 115525466 A CN115525466 A CN 115525466A CN 202211293059 A CN202211293059 A CN 202211293059A CN 115525466 A CN115525466 A CN 115525466A
- Authority
- CN
- China
- Prior art keywords
- log
- wireless communication
- communication module
- memory
- communication interface
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
- 238000000034 method Methods 0.000 title claims abstract description 50
- 238000004891 communication Methods 0.000 claims abstract description 259
- 230000002159 abnormal effect Effects 0.000 claims abstract description 29
- 238000004590 computer program Methods 0.000 claims description 17
- 238000001514 detection method Methods 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 7
- 230000008569 process Effects 0.000 description 7
- 238000011084 recovery Methods 0.000 description 4
- 230000009471 action Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000000694 effects Effects 0.000 description 2
- 230000005540 biological transmission Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000010365 information processing Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000001052 transient effect Effects 0.000 description 1
- 238000005406 washing Methods 0.000 description 1
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0706—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment
- G06F11/0748—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation the processing taking place on a specific hardware platform or in a specific software environment in a remote unit communicating with a single-box computer node experiencing an error/fault
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0793—Remedial or corrective actions
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0602—Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
- G06F3/0604—Improving or facilitating administration, e.g. storage management
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0628—Interfaces specially adapted for storage systems making use of a particular technique
- G06F3/0646—Horizontal data movement in storage systems, i.e. moving data in between storage devices or systems
- G06F3/065—Replication mechanisms
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/06—Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
- G06F3/0601—Interfaces specially adapted for storage systems
- G06F3/0668—Interfaces specially adapted for storage systems adopting a particular infrastructure
- G06F3/0671—In-line storage system
- G06F3/0673—Single storage device
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Human Computer Interaction (AREA)
- Quality & Reliability (AREA)
- Computer Hardware Design (AREA)
- Debugging And Monitoring (AREA)
Abstract
The application discloses a log reading method, a system, a device, equipment and a computer storage medium, which are applied to a wireless communication module on PC equipment and used for detecting whether a communication interface between the wireless communication module and a host end on the PC equipment is normal or not; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module so that a host end reads a target log from the memory; and if the communication interface is abnormal, copying the log stored in the memory to the Nand flash of the wireless communication module so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset. In the application, the host end of the PC equipment can read the required log from the memony or the Nand flash of the wireless communication module, so that the host end can stably read the log of the wireless communication module no matter the wireless communication module is normal or abnormal.
Description
Technical Field
The present application relates to the field of computer information processing technologies, and in particular, to a method, a system, an apparatus, a device, and a computer-readable storage medium for reading a log.
Background
Currently, in a PC (Personal Computer), in order to implement functions required by a user, a corresponding module is set, for example, a wireless communication module is set, and the wireless communication module can be managed by a host installed on the PC, for example, a log of the wireless communication module is read by the host and the wireless communication module is managed based on the log. In this process, because the log of the wireless communication module is stored in the memory, if the wireless communication module is abnormal, the device end needs to be powered on and reset, which can completely remove the log in the memory, and the host end cannot read the log of the wireless communication module.
In summary, those skilled in the art need to solve the above-mentioned problems to ensure that the host can stably read the log of the wireless communication module.
Disclosure of Invention
The application aims to provide a log reading method which can solve the technical problem of ensuring that a host end stably reads logs of an equipment end to a certain extent. The application also provides a log reading system, a log reading device, computer equipment and a computer readable storage medium.
In a first aspect, the present application provides a log reading method applied to a wireless communication module on a PC device, including:
detecting whether a communication interface between the PC equipment and a host end on the PC equipment is normal;
if the communication interface is normal, storing the acquired log into a memory of the wireless communication module so that the host end reads a target log from the memory;
if the communication interface is abnormal, copying the log stored in the memory to a Nand flash of the wireless communication module, so that the host side reads the target log from the Nand flash after the wireless communication module is powered on and reset.
Optionally, after the communication interface is abnormal, before the copying the log stored in the memory to the Nand flash of the wireless communication module, the method further includes:
recovering the communication interfaces individually;
and if the communication interface fails to recover, executing the step of copying the log stored in the memory to the Nand flash of the wireless communication module.
Optionally, after separately recovering the communication interface, the method further includes:
and if the communication interface is successfully recovered, storing the acquired log into the memory so that the host end reads a target log from the memory.
Optionally, the separately recovering the communication interface includes:
and restarting an interface controller of the communication interface.
Optionally, after storing the obtained log in the memory of the wireless communication module, the method further includes:
setting first mark information for indicating the host side to read the target log from the memory;
after copying the log stored in the memory to the Nand flash of the wireless communication module, the method further includes:
and setting second mark information for indicating the host side to read the target log from the Nand flash.
In a second aspect, the present application provides a log reading method, applied to a host side on a PC device, including:
detecting whether a communication interface between the PC equipment and a wireless communication module on the PC equipment is normal;
if the communication interface is normal, reading a target log from the memory of the wireless communication module;
and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
In a third aspect, the present application provides a log reading system applied to a wireless communication module on a PC device, including:
the detection module is used for detecting whether a communication interface between the PC equipment and the host computer is normal or not;
the first execution module is used for storing the acquired log into the memory of the wireless communication module if the communication interface is normal, so that the host end reads a target log from the memory;
and the second execution module is used for copying the log stored in the memory to a Nand flash of the wireless communication module if the communication interface is abnormal, so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset.
In a fourth aspect, the present application provides a computer device comprising:
a memory for storing a computer program;
a processor for implementing the steps of the log reading method as described above when executing the computer program.
In a fifth aspect, the present application provides a computer storage medium having a computer program stored therein, where the computer program is executed by a processor to implement the steps of the log reading method as described in any one of the above.
In a sixth aspect, the present application provides a log reading apparatus, including a wireless communication module on a PC device, where the PC device is provided with a host connected to the wireless communication module:
the device side is used for detecting whether a communication interface between the device side and the host side is normal; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module; if the communication interface is abnormal, copying the log stored in the memory to a Nand flash of the wireless communication module;
the host end is used for detecting whether the communication interface between the host end and the wireless communication module is normal or not; if the communication interface is normal, reading a target log from the memory of the wireless communication module; and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
The log reading method is applied to a wireless communication module on PC equipment and used for detecting whether a communication interface between the wireless communication module and a host end on the PC equipment is normal or not; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module so that a host end reads a target log from the memory; and if the communication interface is abnormal, copying the log stored in the memory to the Nand flash of the wireless communication module so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset. In this application, wireless communication module when with the communication interface between the host computer end normal, can be with the log storage that acquires to wireless communication module's memory, make the host computer end can follow the memory and read the target log, and when communication interface is unusual, can copy the log of storage in the memory to wireless communication module's Nand flash in, thus, even wireless communication module carries out power-on reset, the log in the Nand flash can not lose yet, make the host computer end can normally acquire wireless communication module's corresponding log, the effect of the log of wireless communication module has been realized to the host computer end stable reading. The log reading system, the log reading device, the computer equipment and the computer readable storage medium solve the corresponding technical problems.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly introduced below, it is obvious that the drawings in the following description are only embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a first flowchart of a log reading method according to an embodiment of the present application;
fig. 2 is a second flowchart of a log reading method according to an embodiment of the present application;
fig. 3 is a third flowchart of a log reading method according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of a log reading system according to an embodiment of the present application;
fig. 5 is a schematic structural diagram of a log reading apparatus according to an embodiment of the present application;
FIG. 6 is a block diagram illustrating a computer device 20 according to an example embodiment.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
Currently, in a PC (Personal Computer) device, in order to implement functions required by a user, a corresponding device side is set, and the device side can be managed by a host side installed on the PC device, for example, a log at the device side is read by the host side and the device side is managed based on the log. In this process, because the log of the device side is stored in the memory, if the device side is abnormal, the device side needs to be powered on and reset, which can completely remove the log in the memory, and the host side cannot read the log in the device side. The log reading scheme provided by the application can ensure that the host computer can stably read the log of the equipment.
Referring to fig. 1, fig. 1 is a first flowchart of a log reading method according to an embodiment of the present disclosure.
The log reading method provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and comprises the following steps:
step S101: whether a communication interface between the PC equipment and a host computer is normal is detected.
In practical application, the wireless communication module on the PC device may first detect whether a communication interface with the host on the PC device is normal, and adopt a corresponding storage manner for the log according to a corresponding detection volume result, so as to ensure that the host can normally read the log from the wireless communication module.
In a specific application scenario, the type of the communication interface may be determined according to actual needs, for example, the communication interface may include a PCIE (peripheral component interconnect express, high-speed Serial computer extended Bus standard) interface and/or a USB (Universal Serial Bus) interface, which is not specifically limited herein.
Step S102: and if the communication interface is normal, storing the acquired log into the memory of the wireless communication module so that the host end reads the target log from the memory.
In practical application, because the wireless communication module usually stores its own log in the memory, and under the condition that the communication interface is normal, the host can directly read the log from the memory through the communication interface, at this time, the wireless communication module can still store the acquired log in the memory, so that the host can still read the log from the memory subsequently.
Step S103: and if the communication interface is abnormal, copying the log stored in the memory to the Nand flash of the wireless communication module so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset.
In practical application, when the communication interface is abnormal, the wireless communication module needs to take measures to repair the communication interface, for example, the communication interface is repaired through a power-on reset operation, where the power-on reset operation may be cold start, however, after the power-on reset of the wireless communication module, a log stored in a memory before the memory is completely cleared, and at this time, a log to be required cannot be obtained if a host reads the log from the memory.
It should be noted that, in order to ensure the regularity of the log stored by the wireless communication module and further ensure the regularity of the log read by the host terminal, in a specific application scenario, the wireless communication module may be set to default to store the log into the memory, and only when the communication interface is abnormal and before power-on reset is required, the log stored in the memory may be copied into a Nand flash of the wireless communication module, so that after the power-on reset of the wireless communication module, a new log may be preferentially stored into the memory; correspondingly, the host end only needs to read the target log from the Nand flash of the wireless communication module after the communication interface is abnormal and the wireless communication module is electrified and reset, and under other conditions, only needs to read the log from the memory of the wireless communication module.
In addition, it should be noted that the type of the target log of the wireless communication module read by the host end may be determined according to actual needs, and after the host end reads the target log of the wireless communication module, the host end may further process the wireless communication module based on the read target log, for example, analyzing faults and the like existing in the wireless communication module based on an operation log of the wireless communication module, which is not specifically limited herein.
The log reading method is applied to a wireless communication module on PC equipment and used for detecting whether a communication interface between the wireless communication module and a host end on the PC equipment is normal or not; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module so that the host end reads the target log from the memory; and if the communication interface is abnormal, copying the log stored in the memory to the Nand flash of the wireless communication module so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset. In this application, wireless communication module when with the communication interface between the host computer end normal, can save the log of acquireing to wireless communication module's memory, make the host computer end can follow the memory and read the target log, and when communication interface is unusual, can copy the log of saving in the memory to wireless communication module's Nand flash in, like this, even wireless communication module carries out power-on reset, the log in the Nand flash can not lose yet, make the host computer end can normally acquire wireless communication module's corresponding log, the effect of the log of wireless communication module has been realized to the host computer end stable reading.
Referring to fig. 2, fig. 2 is a second flowchart of a log reading method according to an embodiment of the present application.
The log reading method provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and comprises the following steps:
step S201: whether a communication interface between the PC device and a host side is normal is detected.
Step S202: and if the communication interface is normal, storing the acquired log into the memory of the wireless communication module so that the host end reads the target log from the memory.
Step S203: and if the communication interface is abnormal, independently recovering the communication interface.
Step S204: and if the communication interface fails to recover, copying the log stored in the memory to the Nand flash of the wireless communication module, so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset.
Step S205: and if the communication interface is successfully recovered, storing the acquired log into the memory so that the host end reads the target log from the memory.
In practical application, after the communication interface is abnormal, a user or the wireless communication module itself and the like can try to recover the communication interface independently, at this time, if the communication interface is recovered successfully, the wireless communication module can continue to store the acquired log into the memory, so that the host computer end reads the target log from the memory; if the communication interface fails to recover, the wireless communication module needs to copy the log stored in the memory to the Nand flash of the wireless communication module, so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset.
In a specific application scenario, in the process of separately recovering the communication interface, the interface controller of the communication interface may be restarted, so that the communication interface is recovered after the interface controller is restarted.
In a specific application scenario, in order to facilitate the host to quickly read the target log from the memory or the Nand flash, the wireless communication module may further set corresponding flag information to instruct the host to read the log from the memory or the Nand flash, for example, after the wireless communication module stores the acquired log into the memory of the wireless communication module, the wireless communication module may further set first flag information to instruct the host to read the target log from the memory; after the log stored in the memory is copied to the Nand flash of the wireless communication module, a second mark information indicating that the host end reads the target log from the Nand flash can be set.
It should be noted that the type of the flag information may be determined according to actual needs, for example, the flag information may be a specific value of a specific bit, for example, the first flag information may be a specific bit with a value of 0, and the second flag information may be a specific bit with a value of 1.
Referring to fig. 3, fig. 3 is a third flowchart of a log reading method according to an embodiment of the present application.
The log reading method provided by the embodiment of the application is applied to a host side on PC equipment, and can comprise the following steps:
step S301: and detecting whether a communication interface between the PC equipment and the wireless communication module is normal.
Step S302: and if the communication interface is normal, reading the target log from the memory of the wireless communication module.
Step S303: and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
For the description of the corresponding steps of the log reading method applied to the host side on the PC device provided in the embodiment of the present application, reference may be made to the foregoing embodiment, which is not described herein again.
Referring to fig. 4, fig. 4 is a schematic structural diagram of a log reading system according to an embodiment of the present disclosure.
The log reading system provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and can comprise:
the detection module 101 is used for detecting whether a communication interface between the PC equipment and a host computer end is normal;
the first execution module 102 is configured to, if the communication interface is normal, store the acquired log in a memory of the wireless communication module, so that the host reads a target log from the memory;
the second executing module 103 is configured to copy the log stored in the memory to the Nand flash of the wireless communication module if the communication interface is abnormal, so that the host reads the target log from the Nand flash after the wireless communication module is powered on and reset.
The log reading system provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and can further comprise:
the recovery module is used for separately recovering the communication interface before the second execution module copies the log stored in the memory to the Nand flash of the wireless communication module after the communication interface is abnormal;
and the third execution module is used for executing the step of copying the log stored in the memory to the Nand flash of the wireless communication module if the communication interface fails to recover.
The log reading system provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and can further comprise:
and the fourth execution module is used for storing the acquired log into the memory if the communication interface is successfully recovered after the recovery module separately recovers the communication interface, so that the host side reads the target log from the memory.
The log reading system provided by the embodiment of the application is applied to a wireless communication module on PC equipment, and the recovery module can comprise:
and the recovery unit is used for restarting the interface controller of the communication interface.
The log reading system provided by the embodiment of the application is applied to a wireless communication module on a PC device, and may further include:
the first setting module is used for setting first mark information for indicating the host to read the target log from the memory after the first execution module stores the acquired log into the memory of the wireless communication module;
and the second setting module is used for setting second mark information for indicating the host to read the target log from the Nand flash after the second execution module copies the log stored in the memory to the Nand flash of the wireless communication module.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a log reading apparatus according to an embodiment of the present disclosure.
The log reading device provided by the embodiment of the application is characterized by comprising a wireless communication module 201 on the PC equipment, a host 202 connected with the wireless communication module on the PC equipment:
the device end is used for detecting whether a communication interface between the device end and the host end is normal; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module; if the communication interface is abnormal, copying the log stored in the memory to a Nand flash of the wireless communication module;
the host terminal is used for detecting whether a communication interface between the host terminal and the wireless communication module is normal; if the communication interface is normal, reading a target log from the memory of the wireless communication module; and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
For the description of the corresponding devices in the log reading apparatus provided in the embodiment of the present application, please refer to the foregoing embodiment, which is not described herein again.
Further, the embodiment of the application also provides computer equipment. FIG. 6 is a block diagram illustrating a computer device 20 according to an exemplary embodiment, the contents of which should not be considered as limiting the scope of use of the present application in any way.
Fig. 6 is a schematic structural diagram of a computer device 20 according to an embodiment of the present application. The computer device 20 may specifically include: at least one processor 21, at least one memory 22, a power supply 23, a communication interface 24, an input output interface 25, and a communication bus 26. The memory 22 is used for storing a computer program, and the computer program is loaded and executed by the processor 21 to implement relevant steps in the log reading method disclosed in any one of the foregoing embodiments. In addition, the computer device 20 in this embodiment may specifically be a server.
In this embodiment, the power supply 23 is configured to provide an operating voltage for each hardware device on the computer device 20; the communication interface 24 can create a data transmission channel between the computer device 20 and an external device, and the communication protocol followed by the communication interface is any communication protocol that can be applied to the technical solution of the present application, and is not specifically limited herein; the input/output interface 25 is configured to obtain external input data or output data to the outside, and a specific interface type thereof may be selected according to specific application requirements, which is not specifically limited herein.
In addition, the storage 22 is used as a carrier for storing resources, and may be a read-only memory, a random access memory, a magnetic disk or an optical disk, etc., the resources stored thereon may include an operating system 221, a computer program 222, video data 223, etc., and the storage manner may be a transient storage or a permanent storage.
The operating system 221 is used for managing and controlling each hardware device and the computer program 222 on the computer device 20, so as to realize the operation and processing of the processor 21 on the mass video data 223 in the memory 22, and may be Windows Server, netware, unix, linux, and the like. The computer program 222 may further include a computer program that can be used to perform other specific tasks in addition to the computer program that can be used to perform the log reading method performed by the computer device 20 disclosed in any of the foregoing embodiments. Data 223 may include various data collected by computer device 20.
It should be noted that the computer device may specifically be a module capable of implementing a positioning communication function or a terminal device including the module, the terminal device may specifically be a mobile terminal and/or an intelligent device, the mobile terminal may specifically be at least one of a mobile phone, a tablet computer, a notebook computer, and the like, the intelligent device may specifically be at least one of an intelligent watch, an intelligent refrigerator, an intelligent sound box, an intelligent washing machine, an intelligent television, and the like, and the module may specifically be any one of a 2G communication module, a 3G communication module, a 4G communication module, a 5G communication module, an NB-IOT communication module, and the like.
Further, an embodiment of the present application further discloses a computer storage medium, in which a computer program is stored, and when the computer program is loaded and executed by a processor, the steps of the memory dump file parsing method disclosed in any of the foregoing embodiments are implemented.
For a description of a relevant part in the log reading system, the log reading device, the computer device, and the computer readable storage medium provided in the embodiment of the present application, reference is made to detailed descriptions of a corresponding part in the log reading method provided in the embodiment of the present application, and details are not repeated here. In addition, parts of the above technical solutions provided in the embodiments of the present application, which are consistent with the implementation principles of corresponding technical solutions in the prior art, are not described in detail so as to avoid redundant description.
It is further noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising a," "8230," "8230," or "comprising" does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims (10)
1. A log reading method is characterized in that a wireless communication module applied to PC equipment comprises the following steps:
detecting whether a communication interface between the PC equipment and a host end on the PC equipment is normal;
if the communication interface is normal, storing the acquired log into a memory of the wireless communication module so that the host end reads a target log from the memory;
if the communication interface is abnormal, copying the log stored in the memory to a Nand flash of the wireless communication module, so that the host side reads the target log from the Nand flash after the wireless communication module is powered on and reset.
2. The method according to claim 1, wherein before copying the log stored in the memory to a Nand flash of the wireless communication module after the communication interface is abnormal, the method further comprises:
recovering the communication interfaces individually;
and if the communication interface fails to recover, executing the step of copying the log stored in the memory to the Nand flash of the wireless communication module.
3. The method of claim 2, wherein after the individually restoring the communication interface, further comprising:
and if the communication interface is successfully recovered, storing the acquired log into the memory so that the host end reads a target log from the memory.
4. The method of claim 2, wherein the individually recovering the communication interface comprises:
and restarting the interface controller of the communication interface.
5. The method according to any one of claims 1 to 4, wherein after storing the obtained log in the memory of the wireless communication module, the method further comprises:
setting first mark information for indicating the host side to read the target log from the memory;
after copying the log stored in the memory to the Nand flash of the wireless communication module, the method further includes:
and setting second mark information for indicating the host side to read the target log from the Nand flash.
6. A log reading method is applied to a host side on a PC device, and comprises the following steps:
detecting whether a communication interface between the PC equipment and a wireless communication module on the PC equipment is normal;
if the communication interface is normal, reading a target log from the memory of the wireless communication module;
and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
7. A log reading system, which is applied to a wireless communication module on a PC device, comprises:
the detection module is used for detecting whether a communication interface between the PC equipment and a host computer end is normal or not;
the first execution module is used for storing the acquired log into the memory of the wireless communication module if the communication interface is normal, so that the host end reads a target log from the memory;
and the second execution module is used for copying the log stored in the memory to a Nand flash of the wireless communication module if the communication interface is abnormal, so that the host end reads the target log from the Nand flash after the wireless communication module is powered on and reset.
8. A computer device, comprising:
a memory for storing a computer program;
a processor for implementing the steps of the log reading method of any one of claims 1 to 6 when executing the computer program.
9. A computer storage medium, characterized in that a computer program is stored in the computer storage medium, which computer program, when being executed by a processor, carries out the steps of the log reading method according to any one of claims 1 to 6.
10. A log reading device is characterized by comprising a wireless communication module on PC equipment, wherein a host end connected with the wireless communication module on the PC equipment:
the device side is used for detecting whether a communication interface between the device side and the host side is normal; if the communication interface is normal, storing the acquired log into a memory of the wireless communication module; if the communication interface is abnormal, copying the log stored in the memory to a Nand flash of the wireless communication module;
the host end is used for detecting whether the communication interface between the host end and the wireless communication module is normal or not; if the communication interface is normal, reading a target log from the memory of the wireless communication module; and if the communication interface is abnormal, reading the target log from the Nand flash of the wireless communication module after the wireless communication module is powered on and reset.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211293059.5A CN115525466A (en) | 2022-10-21 | 2022-10-21 | Log reading method, system, device, equipment and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202211293059.5A CN115525466A (en) | 2022-10-21 | 2022-10-21 | Log reading method, system, device, equipment and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN115525466A true CN115525466A (en) | 2022-12-27 |
Family
ID=84704171
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202211293059.5A Pending CN115525466A (en) | 2022-10-21 | 2022-10-21 | Log reading method, system, device, equipment and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN115525466A (en) |
-
2022
- 2022-10-21 CN CN202211293059.5A patent/CN115525466A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9015458B2 (en) | Computer system and method for updating basic input/output system by switching between local mode and bypass mode through baseboard management controller | |
US9563442B2 (en) | Baseboard management controller and method of loading firmware | |
US8468389B2 (en) | Firmware recovery system and method of baseboard management controller of computing device | |
US9557791B2 (en) | Computer device and method for converting working mode of universal serial bus connector of the computer device | |
CN101969502A (en) | Mobile terminal service recovering method and mobile terminal | |
WO2020211791A1 (en) | Method and device for anonymous page management, terminal device, and readable storage medium | |
US20140149644A1 (en) | Electronic apparatus, method of updating firmware, and computer-readable recording medium | |
JP2011008402A (en) | Information processing apparatus, method for controlling the same, and program | |
CN110347571A (en) | A kind of crash log acquisition method, analysis method and relevant apparatus | |
CN111143132A (en) | BIOS recovery method, device, equipment and readable storage medium | |
CN107608828A (en) | Method, system, device and the storage medium that data center's power down recovers automatically | |
CN111581021A (en) | Method, device and equipment for repairing application program starting abnormity and storage medium | |
CN102043634A (en) | Embedded system and embedded software upgrading method | |
KR100605031B1 (en) | Fault recovery and upgrade method of embedded system using USB memory device | |
US20160187955A1 (en) | Information processing apparatus, information processing method and computer program product | |
CN115525466A (en) | Log reading method, system, device, equipment and computer readable storage medium | |
CN109634782B (en) | A system robustness detection method, device, storage medium and terminal | |
CN103870564A (en) | Data updating method and electronic equipment | |
CN108228387B (en) | A kind of starting control method, electronic equipment and computer readable storage medium | |
CN105893867A (en) | Terminal equipment operation method and terminal equipment | |
CN116450224A (en) | Data recovery method, device and system based on clearing CMOS | |
CN114546899A (en) | USB device connection method, system and computer readable storage medium | |
JP4178915B2 (en) | Electronics | |
US11468094B2 (en) | Computer system and fault tolerance processing method thereof of image file | |
CN114048071B (en) | Fault recovery method, device, equipment and computer readable 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 |