CN115756132A - Method and system for automatic startup and storage medium - Google Patents

Method and system for automatic startup and storage medium Download PDF

Info

Publication number
CN115756132A
CN115756132A CN202211263546.7A CN202211263546A CN115756132A CN 115756132 A CN115756132 A CN 115756132A CN 202211263546 A CN202211263546 A CN 202211263546A CN 115756132 A CN115756132 A CN 115756132A
Authority
CN
China
Prior art keywords
pin
output control
chip
capacitor
voltage reduction
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
Application number
CN202211263546.7A
Other languages
Chinese (zh)
Inventor
郑鑫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jingcun Technology Co ltd
Original Assignee
Shenzhen Jingcun Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Jingcun Technology Co ltd filed Critical Shenzhen Jingcun Technology Co ltd
Priority to CN202211263546.7A priority Critical patent/CN115756132A/en
Publication of CN115756132A publication Critical patent/CN115756132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses an automatic startup method and system and a storage medium, and relates to the technical field of hardware testing. The method comprises the following steps: acquiring a singlechip mainboard loaded with a programmable chip; selecting an output control pin of the singlechip mainboard, and defining the output control pin as a GPIO output pin; electrically connecting the output control pin with a startup key, and electrifying the singlechip mainboard; compiling a logic code for the programmable chip to control the potential change of the output control pin; when the electric potential of the output control pin is pulled down, simulating the action of pressing the starting button; after delaying the preset time, raising the potential of the output control pin, and simulating the action of releasing the starting button, thereby realizing automatic starting. According to the automatic startup method provided by the embodiment of the invention, automatic startup can be realized, and manual key operation is omitted, so that human resources and time cost are effectively saved.

Description

Method and system for automatic startup and storage medium
Technical Field
The invention relates to the technical field of hardware testing, in particular to an automatic startup method and system and a storage medium.
Background
When testing the electronic product, the tester needs to manually press the start button to start the test mainboard. Under the condition that test samples are more, if a tester starts the test board one by one, the operation is complex, errors are easy to occur, the test time is long, and the efficiency is low.
Disclosure of Invention
The present invention is directed to solving at least one of the problems of the prior art. Therefore, the invention provides an automatic startup method, a system and a storage medium, which can save manual startup time and improve efficiency.
On one hand, the automatic startup method according to the embodiment of the invention comprises the following steps:
acquiring a singlechip mainboard loaded with a programmable chip;
selecting an output control pin of the singlechip mainboard, and defining the output control pin as a GPIO output pin;
electrically connecting the output control pin with a starting-up key and electrifying the singlechip mainboard;
writing a logic code for the programmable chip to control the potential change of the output control pin;
when the electric potential of the output control pin is pulled down, simulating the action of pressing the starting button; after delaying the preset time, raising the potential of the output control pin, and simulating the action of releasing the starting button, thereby realizing automatic starting.
According to some embodiments of the invention, the programmable chip is an STM32F103 chip.
According to some embodiments of the invention, the single chip microcomputer main board is provided with a crystal oscillator.
According to some embodiments of the invention, further comprising the steps of:
configuring a system clock for the output control pin;
and controlling the electric potential of the output control pin according to the system clock delay to realize the action of automatic starting.
According to some embodiments of the present invention, the step of powering on the motherboard of the single chip microcomputer specifically includes:
sending the 5V power supply to a voltage reduction unit;
the voltage reduction unit converts a 5V power supply into a 3.3V power supply and then sends the power supply to a VDD pin of the singlechip mainboard;
and the VSS pin of the singlechip mainboard is connected with GND.
According to some embodiments of the invention, the voltage dropping unit comprises:
the input pin of the voltage reduction chip is connected with a 5V power supply, and the output pin of the voltage reduction chip is electrically connected with the VDD pin of the singlechip mainboard;
a first end of the first capacitor is electrically connected with an input pin of the voltage reduction chip, and a second end of the first capacitor is grounded;
a first end of the second capacitor is electrically connected with the input pin of the voltage reduction chip, and a second end of the second capacitor is grounded;
a first end of the third capacitor is electrically connected with an output pin of the voltage reduction chip, and a second end of the third capacitor is grounded;
a first end of the fourth capacitor is electrically connected with an output pin of the voltage reduction chip, and a second end of the fourth capacitor is grounded;
and the cathode of the voltage stabilizing diode is electrically connected with the output pin of the voltage reduction chip, and the anode of the voltage stabilizing diode is grounded.
On the other hand, the system for automatically starting up according to the embodiment of the present invention includes a single chip microcomputer motherboard loaded with a programmable chip, where a computer program is stored in the programmable chip, and the computer program is used to implement the above method for automatically starting up.
On the other hand, according to the storage medium of the embodiment of the present invention, the storage medium stores computer-executable instructions for causing a computer to execute the above-mentioned auto-on method.
The automatic startup method, the automatic startup system and the storage medium provided by the invention at least have the following beneficial effects: the automatic starting action is realized by controlling the potential change of the output control pin, so that manual key operation can be omitted, manpower resources and time cost are effectively saved, and the testing efficiency can be remarkably improved for scenes with more test samples.
Additional aspects and advantages of the invention will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the invention.
Drawings
The above and/or additional aspects and advantages of the present invention will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
FIG. 1 is a flowchart illustrating steps of a method for auto-boot according to an embodiment of the present invention;
FIG. 2 is a schematic circuit diagram of a motherboard of a single chip microcomputer according to an embodiment of the present invention;
fig. 3 is a schematic circuit diagram of a voltage step-down unit according to an embodiment of the invention.
Detailed Description
Reference will now be made in detail to the present preferred embodiments of the present invention, examples of which are illustrated in the accompanying drawings, wherein like reference numerals refer to like elements throughout.
In the description of the present invention, unless otherwise specifically limited, terms such as set, installation, connection and the like should be understood in a broad sense, and those skilled in the art can reasonably determine the specific meanings of the above terms in the present invention by combining the specific contents of the technical solutions.
On one hand, as shown in fig. 1, an embodiment of the present invention provides an automatic boot method, including the following steps:
step S100: acquiring a singlechip mainboard loaded with a programmable chip;
step S200: selecting an output control pin of the singlechip mainboard, and defining the output control pin as a GPIO output pin;
step S300: electrically connecting the output control pin with a starting-up key and electrifying the singlechip mainboard;
step S400: writing a logic code for the programmable chip to control the potential change of the output control pin;
step S500: when the electric potential of the output control pin is pulled down, simulating the action of pressing the starting button; after delaying the preset time, raising the potential of the output control pin, and simulating the action of releasing the starting button, thereby realizing automatic starting.
Specifically, as shown in fig. 2, the programmable chip adopted by the embodiment of the present invention is a STM32F103 series chip, and the specific model is LQFP64. Firstly, an output control pin, namely a PA11 pin, of a singlechip mainboard is selected, and the PA11 pin is defined as a GPIO output pin. The singlechip mainboard is provided with a crystal oscillator Y1, and a system clock is configured through the crystal oscillator frequency.
And connecting the PA11 pin to the startup key, and electrifying the singlechip mainboard. In order to supply power to the motherboard of the single chip microcomputer, as shown in fig. 3, firstly, the 5V power is sent to the voltage reduction unit, the 5V power is converted into the 3.3V power by the voltage reduction unit, and then the power is sent to the VDD pin (i.e., the 1 st, 13 th, 19 th, 32 th, 48 th and 64 th pins) of the motherboard of the single chip microcomputer, and the VSS pin (i.e., the 12 th, 18 th, 47 th and 63 th pins) of the motherboard of the single chip microcomputer is connected to GND. Specifically, as shown in fig. 3, the voltage reduction unit includes a voltage reduction chip U7, a first capacitor C1, a second capacitor C2, a third capacitor C3, a fourth capacitor C4, and a zener diode D3; the voltage reduction chip U7 is of a model ME6211, an input pin VIN of the voltage reduction chip U7 is connected with a 5V power supply, and an output pin VOUT of the voltage reduction chip U7 is electrically connected with a VDD pin of a singlechip mainboard; a first end of the first capacitor C1 is electrically connected with an input pin VIN of the buck chip U7, and a second end of the first capacitor C1 is grounded; a first end of the second capacitor C2 is electrically connected with an input pin VIN of the buck chip U7, and a second end of the second capacitor C2 is grounded; a first end of the third capacitor C3 is electrically connected with an output pin VOUT of the voltage reduction chip U7, and a second end of the third capacitor C3 is grounded; a first end of the fourth capacitor C4 is electrically connected with an output pin of the voltage reduction chip U7, and a second end of the fourth capacitor C4 is grounded; the cathode of the voltage stabilizing diode D3 is electrically connected with an output pin VOUT of the voltage reduction chip U7, and the anode of the voltage stabilizing diode D3 is grounded. The first capacitor C1 and the second capacitor C2 form an input filter circuit of the buck chip U7, and the third capacitor C3, the fourth capacitor C4 and the zener diode D3 form an input filter circuit of the buck chip U7.
After the PA11 pin is connected to the starting-up key, a logic code is compiled for the programmable chip, the output potential of the PA11 pin is firstly pulled down to simulate the action of pressing the starting-up key, then the delay time is set through the delay function, after the delay time, the output potential of the PA11 pin is raised, and the action of releasing the starting-up key is simulated, so that automatic starting-up is realized. The voltage of the PA11 is controlled by clock delay, so that automatic startup is realized, and the purpose of replacing key operation is achieved.
According to the automatic startup method provided by the embodiment of the invention, manual key operation can be omitted, and automatic startup is realized, so that manpower resources and time cost are effectively saved, and the test efficiency can be obviously improved for scenes with more test samples. In addition, the method can be applied to testing the mainboard and most electronic products, generally speaking, when the electronic products are powered off, the power-on signal still needs to be triggered manually, and by adopting the method, the electronic products can be automatically powered on and enter a working state without manual starting.
On the other hand, the invention also provides an automatic startup system, which comprises a singlechip mainboard loaded with a programmable chip, wherein the programmable chip is internally stored with a computer program, and the computer program is used for realizing the automatic startup method.
In another aspect, in some embodiments of the present invention, a storage medium is further provided, where the storage medium stores computer-executable instructions for causing a computer to perform the above-mentioned auto-on method.
Although specific embodiments have been described herein, those of ordinary skill in the art will recognize that many other modifications or alternative embodiments are equally within the scope of this disclosure. For example, any of the functions and/or processing capabilities described in connection with a particular device or component may be performed by any other device or component. In addition, while various exemplary implementations and architectures have been described in accordance with embodiments of the present disclosure, those of ordinary skill in the art will recognize that many other modifications to the exemplary implementations and architectures described herein are also within the scope of the present disclosure.
Certain aspects of the present disclosure are described above with reference to block diagrams and flowchart illustrations of systems, methods, systems, and/or computer program products according to example embodiments. It will be understood that one or more blocks of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, respectively, can be implemented by executing computer-executable program instructions. Also, according to some embodiments, some blocks of the block diagrams and flow diagrams may not necessarily be performed in the order shown, or may not necessarily be performed in their entirety. In addition, additional components and/or operations beyond those shown in the block diagrams and flow diagrams may be present in certain embodiments.
Accordingly, blocks of the block diagrams and flowchart illustrations support combinations of means for performing the specified functions, combinations of elements or steps for performing the specified functions and program instruction means for performing the specified functions. It will also be understood that each block of the block diagrams and flowchart illustrations, and combinations of blocks in the block diagrams and flowchart illustrations, can be implemented by special purpose hardware-computer systems that perform the specified functions, elements or steps, or combinations of special purpose hardware and computer instructions.
The program modules, applications, etc. described herein may include one or more software components, including, for example, software objects, methods, data structures, etc. Each such software component may include computer-executable instructions that, in response to execution, cause at least a portion of the functionality described herein (e.g., one or more operations of the illustrative methods described herein) to be performed.
The software components may be encoded in any of a variety of programming languages. An illustrative programming language may be a low-level programming language, such as assembly language associated with a particular hardware architecture and/or operating system platform. Software components that include assembly language instructions may need to be converted by an assembler program into executable machine code prior to execution by a hardware architecture and/or platform. Another exemplary programming language may be a higher level programming language, which may be portable across a variety of architectures. Software components that include higher level programming languages may need to be converted to an intermediate representation by an interpreter or compiler before execution. Other examples of programming languages include, but are not limited to, a macro language, a shell or command language, a job control language, a scripting language, a database query or search language, or a report writing language. In one or more exemplary embodiments, a software component containing instructions of one of the above programming language examples may be executed directly by an operating system or other software component without first being converted to another form.
The software components may be stored as files or other data storage constructs. Software components of similar types or related functionality may be stored together, such as in a particular directory, folder, or library. Software components may be static (e.g., preset or fixed) or dynamic (e.g., created or modified at execution time).
The embodiments of the present invention have been described in detail with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge of those skilled in the art without departing from the gist of the present invention.

Claims (8)

1. An automatic boot method is characterized by comprising the following steps:
acquiring a singlechip mainboard loaded with a programmable chip;
selecting an output control pin of the singlechip mainboard, and defining the output control pin as a GPIO output pin;
electrically connecting the output control pin with a startup key, and electrifying the singlechip mainboard;
writing a logic code for the programmable chip to control the potential change of the output control pin;
when the electric potential of the output control pin is pulled down, simulating the action of pressing the starting button; after delaying the preset time, raising the potential of the output control pin, and simulating the action of releasing the starting button, thereby realizing automatic starting.
2. The auto-on method of claim 1, wherein the programmable chip is an STM32F103 chip.
3. The auto-on method according to claim 1, wherein the one-chip microcomputer motherboard is loaded with a crystal oscillator.
4. The auto-on method of claim 1, further comprising the steps of:
configuring a system clock for the output control pin;
and controlling the electric potential of the output control pin according to the system clock delay to realize the action of automatic starting.
5. The auto-on method according to claim 1, wherein the step of powering on the motherboard of the single chip specifically comprises:
sending the 5V power supply to a voltage reduction unit;
the voltage reduction unit converts a 5V power supply into a 3.3V power supply and then sends the power supply to a VDD pin of the singlechip mainboard;
and the VSS pin of the singlechip mainboard is connected with GND.
6. The auto-on method of claim 5, wherein the voltage reduction unit comprises:
the input pin of the voltage reduction chip is connected with a 5V power supply, and the output pin of the voltage reduction chip is electrically connected with the VDD pin of the singlechip mainboard;
a first end of the first capacitor is electrically connected with an input pin of the voltage reduction chip, and a second end of the first capacitor is grounded;
a first end of the second capacitor is electrically connected with the input pin of the voltage reduction chip, and a second end of the second capacitor is grounded;
a first end of the third capacitor is electrically connected with the output pin of the voltage reduction chip, and a second end of the third capacitor is grounded;
a first end of the fourth capacitor is electrically connected with the output pin of the voltage reduction chip, and a second end of the fourth capacitor is grounded;
and the cathode of the voltage stabilizing diode is electrically connected with the output pin of the voltage reduction chip, and the anode of the voltage stabilizing diode is grounded.
7. An automatic startup system is characterized by comprising a singlechip mainboard carrying a programmable chip, wherein a computer program is stored in the programmable chip and is used for realizing the automatic startup method of any one of claims 1 to 6.
8. A storage medium storing computer-executable instructions for causing a computer to perform the method of auto-on of any one of claims 1-6.
CN202211263546.7A 2022-10-09 2022-10-09 Method and system for automatic startup and storage medium Pending CN115756132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202211263546.7A CN115756132A (en) 2022-10-09 2022-10-09 Method and system for automatic startup and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202211263546.7A CN115756132A (en) 2022-10-09 2022-10-09 Method and system for automatic startup and storage medium

Publications (1)

Publication Number Publication Date
CN115756132A true CN115756132A (en) 2023-03-07

Family

ID=85351547

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202211263546.7A Pending CN115756132A (en) 2022-10-09 2022-10-09 Method and system for automatic startup and storage medium

Country Status (1)

Country Link
CN (1) CN115756132A (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082848A1 (en) * 2006-09-15 2008-04-03 Hon Hai Precision Industry Co., Ltd. Test device and method for testing stability of computer
CN201773350U (en) * 2010-03-10 2011-03-23 深圳华北工控股份有限公司 Computer master control board power supply management module for PCTV integrated machine
CN205643620U (en) * 2016-01-28 2016-10-12 深圳智锐通科技有限公司 Testing arrangement of simulation hand switch machine
CN106292984A (en) * 2016-09-05 2017-01-04 深圳微步信息股份有限公司 Automatic boot circuit and automatic power-on method
CN206975629U (en) * 2017-08-09 2018-02-06 北京蓝玛世邦科技股份有限公司 A kind of X86 platforms automatic on/off test of computer tool
CN111290555A (en) * 2019-01-29 2020-06-16 展讯通信(上海)有限公司 Automatic start-up circuit and electronic equipment
CN114115104A (en) * 2021-11-22 2022-03-01 西安航空职业技术学院 Induction type self-adaptation water yield adjusting device
CN216851930U (en) * 2021-12-07 2022-06-28 深圳海翼智新科技有限公司 Starting circuit and electronic equipment
WO2022161356A1 (en) * 2021-01-29 2022-08-04 北京紫光展锐通信技术有限公司 Power-on control circuit and related device thereof

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080082848A1 (en) * 2006-09-15 2008-04-03 Hon Hai Precision Industry Co., Ltd. Test device and method for testing stability of computer
CN201773350U (en) * 2010-03-10 2011-03-23 深圳华北工控股份有限公司 Computer master control board power supply management module for PCTV integrated machine
CN205643620U (en) * 2016-01-28 2016-10-12 深圳智锐通科技有限公司 Testing arrangement of simulation hand switch machine
CN106292984A (en) * 2016-09-05 2017-01-04 深圳微步信息股份有限公司 Automatic boot circuit and automatic power-on method
CN206975629U (en) * 2017-08-09 2018-02-06 北京蓝玛世邦科技股份有限公司 A kind of X86 platforms automatic on/off test of computer tool
CN111290555A (en) * 2019-01-29 2020-06-16 展讯通信(上海)有限公司 Automatic start-up circuit and electronic equipment
WO2022161356A1 (en) * 2021-01-29 2022-08-04 北京紫光展锐通信技术有限公司 Power-on control circuit and related device thereof
CN114115104A (en) * 2021-11-22 2022-03-01 西安航空职业技术学院 Induction type self-adaptation water yield adjusting device
CN216851930U (en) * 2021-12-07 2022-06-28 深圳海翼智新科技有限公司 Starting circuit and electronic equipment

Similar Documents

Publication Publication Date Title
CN102200916B (en) Electronic equipment, configurable member and method for storing configuration information of configurable member
JP2008509483A (en) Adapting software and firmware to unexpected / changing hardware environments
CN104239037A (en) Software framework with reconfigurable business function
JP2008509483A5 (en)
CN105204913A (en) Method and system for running Linux application on Android operating system and system
CN101216773A (en) Embedded Linux system firmware downloading method and device
CN102520975B (en) Intelligent updating method of external equipment driver, device and system
CN104133667A (en) AI behavior realization method, AI behavior realization device and AI editor
CN110197698B (en) Method and device for automatically testing influence of different power states of SSD (solid State drive)
CN106909362A (en) The method and apparatus that the method and apparatus of BMC firmwares generation, BMC systems start
CN104951328A (en) Embedded equipment and starting method thereof
US11579977B2 (en) Data storage device restoring method
CN113076144A (en) Power amplifier adaptation method, terminal device, storage medium and computer program product
CN105550007A (en) Control method and device for mobile terminal and mobile terminal
CN109002331A (en) Starting method, apparatus, computer equipment and the storage medium of touch screen
CA3148068A1 (en) Skill pack data processing method, device, computer equipment and storage medium
CN111008106A (en) Server monitoring management method and device, electronic equipment and storage medium
KR20130068630A (en) Method for initializing embedded device and apparatus thereof
KR20010001869A (en) Program upgrading apparatus and method for a firmware board
CN115756132A (en) Method and system for automatic startup and storage medium
CN115934114A (en) Software firmware online programming method and device and computer readable storage medium
CN111158645B (en) System and method for providing an integrated development environment
CN100419683C (en) System and method for burning BIOS program
US20060205399A1 (en) Method for simulating communication functions of a mobile phone according to a markup language and related device thereof
KR20020032256A (en) Integrated Embedded System and Method for Realizing thereof

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