CN109358827B - Method, system, equipment and storage medium for controlling application serial port printing - Google Patents
Method, system, equipment and storage medium for controlling application serial port printing Download PDFInfo
- Publication number
- CN109358827B CN109358827B CN201811481333.5A CN201811481333A CN109358827B CN 109358827 B CN109358827 B CN 109358827B CN 201811481333 A CN201811481333 A CN 201811481333A CN 109358827 B CN109358827 B CN 109358827B
- Authority
- CN
- China
- Prior art keywords
- serial port
- port printing
- printing
- configuration file
- identifier
- 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.)
- Expired - Fee Related
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1224—Client or server resources management
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; 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/12—Digital output to print unit, e.g. line printer, chain printer
- G06F3/1201—Dedicated interfaces to print systems
- G06F3/1223—Dedicated interfaces to print systems specifically adapted to use a particular technique
- G06F3/1237—Print job management
- G06F3/1253—Configuration of print job parameters, e.g. using UI at the client
- G06F3/1257—Configuration of print job parameters, e.g. using UI at the client by using pre-stored settings, e.g. job templates, presets, print styles
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Accessory Devices And Overall Control Thereof (AREA)
Abstract
The embodiment of the invention discloses a method, a system, equipment and a storage medium for controlling application serial port printing, wherein the method comprises the following steps: reading a configuration file which is configured in a memory in advance, and acquiring a serial port printing state identifier in the configuration file; determining the working state of serial port printing according to the serial port printing state identifier; the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or the application serial port printing is forbidden. The technical scheme of the embodiment of the invention solves the technical problems that in the prior art, when a digital terminal fails, software needs to be upgraded to realize serial port printing, the operation is complicated and complicated, and time is wasted, and realizes the technical effects that the serial port printing operation is simpler and more convenient and time-saving by changing the serial port printing state identifier in the configuration file.
Description
Technical Field
The embodiment of the invention relates to the technical field of signal processing, in particular to a method, a system, equipment and a storage medium for controlling application serial port printing.
Background
Due to the safety of the digital terminal, the digital terminal which is required to be shipped cannot have the function of serial port printing. When the digital terminal has problems, the digital terminal is often positioned by serial port printing. However, software on factory equipment does not have the function of serial port printing, at the moment, the software needs to be updated and upgraded to have the function of serial port printing, and then the problem of the terminal is detected according to the serial port printing.
Although the method can realize serial port printing, when problems occur, software needs to be updated, the operation is complex, and time is wasted.
Disclosure of Invention
The invention provides a method, a system, equipment and a storage medium for controlling application serial port printing, which realize the technical effects of simpler and more convenient serial port printing operation and time saving by changing a serial port printing identifier in a configuration file.
In a first aspect, an embodiment of the present invention provides a method for controlling application serial port printing, where the method is applied in a digital terminal, and includes:
reading a configuration file which is configured in a memory in advance, and acquiring a serial port printing state identifier in the configuration file;
determining the working state of serial port printing according to the serial port printing state identifier;
the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden.
In a second aspect, an embodiment of the present invention further provides a system for controlling serial port printing, where the system is applied in a digital terminal, and includes:
the configuration file reading module is used for reading a configuration file which is configured in a memory in advance and acquiring a serial port printing state identifier in the configuration file;
the serial port printing determining module is used for determining the working state of the serial port printing according to the serial port printing state identifier;
the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden.
In a third aspect, an embodiment of the present invention further provides an apparatus, where the apparatus includes:
one or more processors;
storage means for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for controlling serial port printing according to any of the embodiments of the present invention.
In a fourth aspect, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which when executed by a computer processor, are configured to perform the method of controlling serial port printing of an application according to any of the embodiments of the present invention.
According to the technical scheme of the embodiment of the invention, a configuration file which is configured in a memory in advance is read, a serial port printing state identifier in the configuration file is obtained, and the working state of serial port printing is determined according to the serial port printing state identifier, wherein the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden, the technical problems that in the prior art, when a digital terminal breaks down, an application program needs to be upgraded to realize serial port printing, the operation is complex and complicated, and time is wasted are solved, and the technical effects that the serial port printing operation is simpler, more convenient and more time-saving through changing serial port printing state identification in a configuration file are realized.
Drawings
In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, a brief description is given below of the drawings used in describing the embodiments. It should be clear that the described figures are only views of some of the embodiments of the invention to be described, not all, and that for a person skilled in the art, other figures can be derived from these figures without inventive effort.
Fig. 1 is a schematic flow chart of a method for controlling application serial port printing according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a preferred embodiment of a method for controlling application serial port printing according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a system for controlling application serial port printing according to a third embodiment of the present invention;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a method for controlling application serial printing according to an embodiment of the present invention, where the embodiment is applicable to a digital terminal, and when a fault occurs in the digital terminal, a serial printing status identifier in a configuration file may be changed to implement serial printing.
As shown in fig. 1, the method of this embodiment includes:
s110, reading a configuration file which is configured in a memory in advance, and acquiring a serial port printing state identifier in the configuration file.
It should be noted that the configuration file may be pre-stored in a block of the memory, and optionally, stored in a 0101 format in the block of the memory. The number of the preset position in the configuration file can indicate whether serial printing needs to be executed or prohibited, namely, the serial printing state identifier. The serial printing state identifier can be used for executing serial printing or forbidding serial printing.
Reading the configuration file pre-configured in the memory may be implemented by pre-programmed program codes stored in the digital terminal and used for executing a series of operations, and optionally, the executed operations may be reading the content in the configuration file and executing operations corresponding to the content in the configuration file, and so on.
In this embodiment, a pre-programmed program code may be stored in the digital terminal, and the program code may be configured to execute reading a configuration file stored in the memory, and determine a serial port printing status identifier at a preset position in the configuration file.
Optionally, before reading the configuration file pre-configured in the memory and acquiring the serial port printing state identifier in the configuration file, the method further includes: entering a hidden menu based on the received instruction for acquiring the hidden menu; and acquiring a modification instruction for modifying the configuration file triggered on the hidden menu, and changing the serial port printing state identifier in the configuration file pre-configured in the memory based on the modification instruction.
If the digital terminal has a fault, the staff can trigger the digital terminal to acquire the command of the hidden menu and can determine the specific content on the hidden menu. The hidden menu can be provided with buttons or icons corresponding to the serial port printing state identifiers in the configuration file, a worker can trigger the corresponding buttons or icons to send modification instructions, the serial port printing state identifiers in the configuration file are modified according to the modification instructions, and optionally, the buttons triggering the serial port printing state identifiers to be modified send modification instructions for modifying the serial port printing state identifiers.
For example, the staff triggers an icon for acquiring the hidden menu and issues a command for acquiring the hidden menu, so as to obtain specific content displayed on the hidden menu. If the serial port printing state identifier in the modification configuration file in the hidden menu is a button and the position of the button is ON, the serial port printing state identifier is an execution identifier; if the position of the button is OFF, the serial port printing state mark is a prohibition mark. The operator may trigger the button to the corresponding position to determine whether to perform serial printing or to prohibit serial printing. If the serial port printing state identifier in the modification configuration file in the hidden menu is an icon, the icon is selectable, the staff can trigger the configuration file icon to enter a corresponding page, the page can display the number corresponding to the serial port printing state in the modification configuration file, and if the number is 1, the serial port printing is executed; if the number is 0, the serial port printing is prohibited, and the worker can set the number in the configuration file, which represents the serial port printing state, namely the serial port printing state identifier, according to the actual requirement.
It should be noted that, the above is only an example to illustrate an embodiment that the serial port printing state identifier in the configuration file may exist, and the embodiment of the present invention is not limited thereto, and as long as the serial port printing state identifier in the configuration file can be modified, the embodiment of the present invention is within the protection scope of the embodiment of the present invention.
In the actual application process, the serial port printing state identifier in the configuration file can be changed without hiding the menu. Optionally, the serial port printing identifier in the configuration file pre-configured in the memory is changed according to the working state of the digital terminal.
Specifically, a monitoring module may be disposed in the digital terminal for monitoring an operation state of the digital terminal, that is, a working state of the digital terminal. The running state of the digital terminal can be good, the running is failed, and the serial port printing state identifier of the configuration file pre-configured in the memory is automatically changed according to the detected running state of the digital terminal.
For example, if the monitoring module monitors that the operating state of the digital terminal has a fault, the identifier indicating the serial port printing state in the configuration file may be automatically changed, and optionally, the identifier indicating the serial port printing prohibition state is changed to the identifier indicating the serial port printing execution state. If the running state is monitored to be good, the serial port printing state identifier in the configuration file can be read, whether the serial port printing state identifier is the same as the serial port printing prohibition identifier or not is judged, and if the serial port printing state identifier is the same as the serial port printing prohibition identifier, no operation is executed; if the serial port printing state identification corresponds to the serial port printing execution identification, the serial port printing state identification in the configuration file is changed from the serial port printing execution identification to the prohibition identification, and therefore serial port printing prohibition is achieved.
It should be noted that, if the operation state of the digital terminal is intelligently detected, once the operation state of the digital terminal changes, the serial port printing state identifier in the configuration file can be read, and it is determined whether the current serial port printing identifier is consistent with the working state of the digital terminal, if so, no operation can be executed, and if not, the serial port printing state identifier represented in the configuration file can be changed.
And S120, determining the working state of the serial port printing according to the serial port printing state identifier.
On the basis of the technical scheme, the identifier capable of determining the serial port printing state can be an execution identifier or a prohibition identifier. If the identification is executed, the digital terminal can perform application serial port printing, determine the problem of the digital terminal according to the serial port printing, and further analyze and process the problem. If the serial port printing state identifier is the prohibition identifier, the current running state of the digital terminal is good, or the digital terminal does not need to perform application serial port printing at present, and the function of prohibiting serial port printing is executed.
In this embodiment, the installed application software can implement serial port printing, and therefore if serial port printing is prohibited, the serial port corresponding to the application printing needs to be closed.
Optionally, if the serial port printing state identifier indicates that the application serial port printing is prohibited, the chip register corresponding to the serial port printing is closed to prohibit the application serial port printing.
Specifically, if the serial port printing state identifier in the read configuration file is that serial port printing is prohibited, the serial port corresponding to the serial port printing can be closed, and optionally, the chip register corresponding to the serial port printing is closed, so that the purpose of prohibiting serial port printing is achieved. This is because the input and output of the serial port are controlled by the chip register, and therefore the purpose of prohibiting serial port printing can be achieved only by turning off the chip register controlling serial port printing.
According to the technical scheme of the embodiment of the invention, a configuration file which is configured in a memory in advance is read, a serial port printing state identifier in the configuration file is obtained, and the working state of serial port printing is determined according to the serial port printing state identifier, wherein the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden, the technical problems that in the prior art, when a digital terminal breaks down, an application program needs to be upgraded to realize serial port printing, the operation is complex and complicated, and time is wasted are solved, and the technical effects that the serial port printing operation is simpler, more convenient and more time-saving through changing serial port printing state identification in a configuration file are realized.
On the basis of the technical scheme, when an instruction of the digital terminal to operate is received, the input and output unit verifies the application printing program; and when the verification fails, upgrading the application printing program to read the configuration file stored in the memory in advance.
Receiving an operation instruction of the digital terminal may be understood as that the digital terminal starts to operate, optionally, the digital terminal is started or restarted, an input/output unit, i.e., a boot, verifies an application printing program, determines whether the application program is available, and if the application program is unavailable, the application may be reinstalled or upgraded. And verifying whether the upgraded or reinstalled application can be used, and if so, reading a configuration file stored in a memory in advance to determine whether to perform serial port printing. The application program is preferentially checked, so that whether the application can be used or not can be determined in advance, the serial port printing state identification is further determined, and the technical effect of improving the efficiency is achieved.
Example two
As a preferred embodiment of the foregoing embodiment, fig. 2 is a schematic flow chart of controlling serial port printing according to a second embodiment of the present invention, and as shown in fig. 2, the method in this embodiment includes:
s201, starting the digital terminal.
It can be understood that, at the time of starting or restarting, the digital terminal is converted from the non-operating state to the operating state.
S202, judging whether the boot check application software is successful. If the verification is successful, executing S204; if the verification fails, S203 is executed.
After the digital terminal is started, the boot checks the application software to determine whether the application software is available. If the application software can be used, the verification is successful, S204 is executed, if the application software is in failure, the application software can be reinstalled or upgraded, and the application software can be used, namely the boot verification upgrade or the reinstalled application software can be verified to pass.
And S203, updating the application software.
If the verification fails, the application software is wrong, and the application software can be upgraded or reinstalled. After the software is reinstalled or upgraded, the digital terminal may be restarted and the boot checks the application, i.e., performs S201 and S202.
And S204, reading the current serial port printing state identifier in the configuration file.
If the application software is successfully checked, the serial port printing state identification in the configuration file can be read, and the read serial port printing state identification is used as the current serial port printing state identification. The configuration file may be stored in a memory (flash) in advance, and the serial port printing status flag in the configuration file may be marked as flag.
It should be noted that, executing a series of steps is executed by corresponding program codes, and serial port printing status identifiers may be preset in the program codes. For example, the serial port printing status flag may be preset such that serial port printing is prohibited if the serial port printing status flag is set to 1, that is, disabled uart flag is set to 1, and serial port printing is executed if the serial port printing status flag is 0, that is, disabled uart flag is set to 0.
It should be noted that the serial port printing state flag of the configuration file in the flash memory can only be read in the boot, and whether the serial port integrator of the chip register needs to be closed or opened is judged, which cannot be realized in the process of jumping to the application, because: the application needs to initialize the memory flash first and can read the configuration file in the memory flash, and the debugging printing is generated in the process.
S205, judging whether the current serial port printing state identifier is the same as a preset serial port printing prohibition identifier or not, and if so, executing S206; if not, go to step S207.
When the current serial port printing state identifier is acquired, whether the current serial port printing state identifier, namely disableUartFlag, is equal to 1 or not is judged, if the current serial port printing state identifier is 1, S206 is executed, and if the current serial port printing state identifier is 0, serial port printing needs to be executed. At this time, the application may be skipped to perform serial printing, i.e., S207 may be performed.
S206, changing the chip register value corresponding to serial port printing.
If the serial port printing is not needed, the serial port of the chip register opposite to the serial port printing needs to be closed. This is because the serial input/output is controlled by the chip register. Therefore, when the serial port printing state in the acquired configuration file is print prohibition, the value of the chip register needs to be changed, so that the serial port printing is closed. The value of the chip register can be changed into a preset value, and the preset value corresponds to the function of closing serial port printing.
S207 jumps to the application.
If the serial port printing is not needed, the application can be skipped to after the serial port for controlling the application printing is closed; if serial port printing is needed, the application can be directly jumped to, and the serial port printing is carried out.
And S208, entering a hidden menu.
Wherein the hidden menu can be entered by means of a remote control. Corresponding keys are arranged on the remote controller, and when the key for entering the hidden menu is triggered, the hidden menu can be entered.
It should be noted that the serial port printing status identifier in the configuration file may be changed in the hidden menu. If the running state of the current digital terminal is in fault, the hidden menu can be entered, and the serial port printing state identifier in the configuration file is modified. Specifically, a button corresponding to the serial printing state is triggered, or digits of a corresponding position are modified to change the serial printing state identifier, so that different implementation modes can be set by a worker according to actual requirements.
If the current running state of the digital terminal is good, the serial port printing state table design of the configuration file does not need to be changed in the hidden menu.
If the digital terminal has an operation fault, entering a hidden menu, and changing the serial port printing state in the configuration file to execute serial port printing; if the digital terminal is determined to have a fault and is maintained, the serial port printing state in the configuration file can be converted from the execution printing state to the prohibition printing state.
S209, modifying the identification corresponding to the serial port printing state in the configuration file.
In the hidden menu, the identifier corresponding to the serial port printing state in the configuration file may be changed, and a specific modification method may be referred to in embodiment one or S208. The modified serial port printing state identification can be automatically stored in the flash memory.
And S210, rechecking the application.
When the serial port printing state identifier in the configuration file is modified, in order to enable the digital terminal to execute the operation corresponding to the serial port printing state identifier, the digital terminal may be shut down or restarted, the application software may be re-checked, the serial port printing state identifier in the configuration file may be read, and then the operation corresponding to the modified configuration file may be executed, that is, S201 to S209 may be repeatedly executed.
According to the technical scheme of the embodiment of the invention, a configuration file which is configured in a memory in advance is read, a serial port printing state identifier in the configuration file is obtained, and the working state of serial port printing is determined according to the serial port printing state identifier, wherein the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden, the technical problems that in the prior art, when a digital terminal breaks down, an application program needs to be upgraded to realize serial port printing, the operation is complex and complicated, and time is wasted are solved, and the technical effects that the serial port printing operation is simpler, more convenient and more time-saving through changing serial port printing state identification in a configuration file are realized.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a system for controlling application serial port printing according to a third embodiment of the present invention, where the system includes: a read configuration file module 310 and a determine serial printing module 320.
Wherein, this system includes: a configuration file reading module 310, configured to read a configuration file pre-configured in a memory, and obtain a serial port printing status identifier in the configuration file; the serial port printing determining module 320 is used for determining the working state of the serial port printing according to the serial port printing state identifier; the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden.
According to the technical scheme of the embodiment of the invention, a configuration file which is configured in a memory in advance is read, a serial port printing state identifier in the configuration file is obtained, and the working state of serial port printing is determined according to the serial port printing state identifier, wherein the serial port printing identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden, the technical problems that in the prior art, when a digital terminal breaks down, an application program needs to be upgraded to realize serial port printing, the operation is complex and complicated, and time is wasted are solved, and the technical effects that the serial port printing operation is simpler, more convenient and more time-saving through changing serial port printing state identification in a configuration file are realized.
On the basis of the technical scheme, the serial port printing module is further used for:
and if the serial port printing state identifier is that the application serial port printing is forbidden, closing a chip register corresponding to the serial port printing to forbid the application serial port printing.
On the basis of the above technical solutions, the configuration file reading module, before being configured to read a configuration file pre-configured in a memory and obtain a serial port printing state identifier in the configuration file, is further configured to:
entering a hidden menu based on the received instruction for acquiring the hidden menu;
and acquiring a modification instruction for modifying the configuration file triggered on the hidden menu, and changing the serial port printing state identifier in the configuration file pre-configured in the memory based on the modification instruction.
On the basis of the above technical solutions, the configuration file reading module, before being configured to read a configuration file pre-configured in a memory and obtain a serial port printing state identifier in the configuration file, is further configured to: and if the operation fault of the digital terminal is detected, changing the serial port printing state identifier in the configuration file into an execution identifier.
On the basis of the above technical solutions, the system further includes: the digital terminal comprises an instruction receiving module and a checking module, wherein the instruction receiving module is used for verifying the application printing program by the input and output unit when an instruction operated by the digital terminal is received; and the verification module is used for upgrading the application printing program when the verification fails so as to read the configuration file stored in the memory in advance.
On the basis of the above technical solutions, the configuration file reading module, before being configured to read a configuration file pre-configured in a memory and obtain a serial port printing state identifier in the configuration file, is further configured to: and changing the serial port printing identifier in the configuration file which is configured in the memory in advance according to the working state of the digital terminal.
The system for controlling the application serial port printing provided by the embodiment of the invention can execute the method for controlling the application serial port printing provided by any embodiment of the invention, and has the corresponding functional modules and beneficial effects of the execution method.
It should be noted that, the units and modules included in the system are merely divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the embodiment of the invention.
Example four
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present invention. FIG. 4 illustrates a block diagram of an exemplary device 40 suitable for use in implementing embodiments of the present invention. The device 40 shown in fig. 4 is only an example and should not bring any limitation to the function and scope of use of the embodiments of the present invention.
As shown in FIG. 4, device 40 is embodied in a general purpose computing device. The components of device 40 may include, but are not limited to: one or more processors or processing units 401, a system memory 402, and a bus 403 that couples the various system components (including the system memory 402 and the processing unit 401).
The system memory 402 may include computer system readable media in the form of volatile memory, such as Random Access Memory (RAM)404 and/or cache memory 405. Device 40 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 406 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 4, and commonly referred to as a "hard drive"). Although not shown in FIG. 4, a magnetic disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a CD-ROM, DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 403 by one or more data media interfaces. Memory 402 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the invention.
A program/utility 408 having a set (at least one) of program modules 407 may be stored, for example, in memory 402, such program modules 407 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 407 generally perform the functions and/or methods of the described embodiments of the invention.
The processing unit 401 executes various functional applications and data processing by running programs stored in the system memory 402, for example, implementing a method for controlling serial port printing according to an embodiment of the present invention.
EXAMPLE five
Embodiments of the present invention also provide a storage medium containing computer-executable instructions that, when executed by a computer processor, perform a method for controlling application serial printing.
Computer storage media for embodiments of the invention may employ any combination of one or more computer-readable media. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the computer readable storage medium would include the following: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the context of this document, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
A computer readable signal medium may include a propagated data signal with computer readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device.
Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Computer program code for carrying out operations for embodiments of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, Smalltalk, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet service provider).
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.
Claims (9)
1. A method for controlling application serial port printing is applied to a digital terminal, and is characterized by comprising the following steps:
reading a configuration file which is configured in a memory in advance, and acquiring a serial port printing state identifier in the configuration file;
determining the working state of serial port printing according to the serial port printing state identifier;
the serial port printing mark state mark comprises an execution mark or a prohibition mark; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden;
before the reading of the configuration file pre-configured in the memory and the obtaining of the serial port printing state identifier in the configuration file, the method further includes:
entering a hidden menu based on the received instruction for acquiring the hidden menu;
and acquiring a modification instruction for modifying the configuration file triggered on the hidden menu, and changing the serial port printing state identifier in the configuration file pre-configured in the memory based on the modification instruction.
2. The method according to claim 1, wherein the determining the working state of serial printing according to the serial printing state identifier comprises:
and if the serial port printing state identifier is that the application serial port printing is forbidden, closing a chip register corresponding to the serial port printing to forbid the application serial port printing.
3. The method of claim 1, further comprising:
when receiving an instruction of the digital terminal to operate, the input and output unit verifies the application printing program;
and when the verification fails, upgrading the application printing program to read the configuration file stored in the memory in advance.
4. The method according to claim 1, before the reading serial port printing identification in a configuration file pre-configured in a memory, further comprising:
and changing the serial port printing state identifier in the configuration file which is configured in the memory in advance according to the working state of the digital terminal.
5. The method according to claim 4, wherein the changing the serial port printing identifier in the configuration file pre-configured in the memory according to the working state of the digital terminal comprises:
and if the working state of the digital terminal is the operation fault, changing the serial port printing state identifier in the configuration file into an execution identifier.
6. A system for controlling serial port printing is applied to a digital terminal, and is characterized by comprising:
the configuration file reading module is used for reading a configuration file which is configured in a memory in advance and acquiring a serial port printing state identifier in the configuration file;
the serial port printing determining module is used for determining the working state of the serial port printing according to the serial port printing state identifier;
the serial port printing state identifier comprises an execution identifier or a prohibition identifier; the working state of the application serial port printing comprises that the application serial port printing is allowed or forbidden;
the configuration file reading module is also used for
Entering a hidden menu based on the received instruction for acquiring the hidden menu;
and acquiring a modification instruction for modifying the configuration file triggered on the hidden menu, and changing the serial port printing state identifier in the configuration file pre-configured in the memory based on the modification instruction.
7. The system of claim 6, wherein the determine serial printing module is further configured to:
and if the serial port printing state identifier is that the application serial port printing is forbidden, closing a chip register corresponding to the serial port printing to forbid the application serial port printing.
8. An apparatus for performing control of serial port printing, the apparatus comprising:
one or more processors;
a storage device for storing one or more programs,
when executed by the one or more processors, cause the one or more processors to implement a method of controlling serial port printing according to any of claims 1-5.
9. A storage medium containing computer executable instructions which when executed by a computer processor are for performing the method of controlling serial port printing of an application as claimed in any one of claims 1 to 5.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811481333.5A CN109358827B (en) | 2018-12-05 | 2018-12-05 | Method, system, equipment and storage medium for controlling application serial port printing |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201811481333.5A CN109358827B (en) | 2018-12-05 | 2018-12-05 | Method, system, equipment and storage medium for controlling application serial port printing |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN109358827A CN109358827A (en) | 2019-02-19 |
| CN109358827B true CN109358827B (en) | 2021-11-16 |
Family
ID=65331295
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201811481333.5A Expired - Fee Related CN109358827B (en) | 2018-12-05 | 2018-12-05 | Method, system, equipment and storage medium for controlling application serial port printing |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN109358827B (en) |
Families Citing this family (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN110083394B (en) * | 2019-04-04 | 2022-04-22 | 龙芯中科技术股份有限公司 | Serial port driving method, device and storage medium |
| CN112328437A (en) * | 2019-11-08 | 2021-02-05 | 珠海奔图电子有限公司 | Control method and device for serial port debugging, image forming device and chip |
| CN111142954B (en) * | 2019-12-30 | 2023-06-23 | Oppo(重庆)智能科技有限公司 | Startup control method and device and computer readable storage medium |
| CN114461462B (en) * | 2021-12-30 | 2023-11-03 | 苏州浪潮智能科技有限公司 | BIOS debugging information output method, device, equipment and storage medium |
Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102495776A (en) * | 2011-12-02 | 2012-06-13 | 浪潮集团有限公司 | Method for debugging basic input output system (BIOS) of storage controller applicable to cloud storage |
| CN105468486A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and device for testing serial ports of servers |
| CN106254093A (en) * | 2016-07-18 | 2016-12-21 | 深圳创维数字技术有限公司 | A kind of automatic test restorative procedure and system thereof |
| CN107229591A (en) * | 2017-06-22 | 2017-10-03 | 湖南省力宇燃气动力有限公司 | Multi-serial communication method and device |
| CN107818032A (en) * | 2017-10-24 | 2018-03-20 | 郑州云海信息技术有限公司 | A kind of mainboard, information Method of printing, system, device and storage medium |
| CN107870855A (en) * | 2016-09-27 | 2018-04-03 | 北京计算机技术及应用研究所 | Debugging system based on Tianyi embedded operating system |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP6355451B2 (en) * | 2014-06-27 | 2018-07-11 | キヤノン株式会社 | Image forming system, server apparatus, and image forming method |
-
2018
- 2018-12-05 CN CN201811481333.5A patent/CN109358827B/en not_active Expired - Fee Related
Patent Citations (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN102495776A (en) * | 2011-12-02 | 2012-06-13 | 浪潮集团有限公司 | Method for debugging basic input output system (BIOS) of storage controller applicable to cloud storage |
| CN105468486A (en) * | 2015-11-20 | 2016-04-06 | 浪潮电子信息产业股份有限公司 | Method and device for testing serial ports of servers |
| CN106254093A (en) * | 2016-07-18 | 2016-12-21 | 深圳创维数字技术有限公司 | A kind of automatic test restorative procedure and system thereof |
| CN107870855A (en) * | 2016-09-27 | 2018-04-03 | 北京计算机技术及应用研究所 | Debugging system based on Tianyi embedded operating system |
| CN107229591A (en) * | 2017-06-22 | 2017-10-03 | 湖南省力宇燃气动力有限公司 | Multi-serial communication method and device |
| CN107818032A (en) * | 2017-10-24 | 2018-03-20 | 郑州云海信息技术有限公司 | A kind of mainboard, information Method of printing, system, device and storage medium |
Also Published As
| Publication number | Publication date |
|---|---|
| CN109358827A (en) | 2019-02-19 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN109358827B (en) | Method, system, equipment and storage medium for controlling application serial port printing | |
| CN102004655B (en) | Device and method for automatically installing drivers | |
| AU2021206497A1 (en) | Method and apparatus for authority control, computer device and storage medium | |
| CN110018918B (en) | Method and device for repairing terminal abnormity, mobile terminal and storage medium | |
| US11023220B2 (en) | Firmware update with integrated smart sequence and action engine | |
| CN106933567B (en) | A Graphical User Interface GUI System | |
| US7308547B2 (en) | Apparatus and method for control of write filter | |
| US12393499B2 (en) | Method and device for recovering self-test exception of server component, system and medium | |
| CN114095269A (en) | System detection method, device, electronic equipment and storage medium | |
| CN110134456A (en) | For managing the method, apparatus, equipment and storage medium of operating system | |
| CN117688551A (en) | Startup path whitelist update method, device, electronic equipment and storage medium | |
| CN115766014B (en) | A controller safety management method, device, vehicle, and storage medium | |
| CN116954708A (en) | System mirror image data processing method, device, equipment and medium | |
| US9003172B2 (en) | Intelligently controlling loading of legacy option ROMs in a computing system | |
| EP3525089B1 (en) | Graphical user interface (gui) system | |
| US11132206B2 (en) | Systems and methods for modifying boot operation of an information handling system | |
| CN111782430A (en) | Processing method, processing device and electronic equipment | |
| CN109522174B (en) | Method, device, terminal and storage medium for controlling adb enabling | |
| CN112988192A (en) | Version updating method and device, electronic equipment and storage medium | |
| US20170262296A1 (en) | Electronic apparatus and controlling method thereof | |
| CN110764840B (en) | Method, device and system for wirelessly debugging android device | |
| CN113515299A (en) | Software development kit SDK hot upgrade method, device, device and storage medium | |
| CN113595762A (en) | Network card configuration storage method and device | |
| CN113986138A (en) | Resource deleting method and device, electronic equipment and storage medium | |
| CN105631318A (en) | Method and device for acquiring registry key values |
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 | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20211116 |
|
| CF01 | Termination of patent right due to non-payment of annual fee |