CN106959913A - A kind of mode that power-on and power-off pressure test is realized based on Python environment - Google Patents
A kind of mode that power-on and power-off pressure test is realized based on Python environment Download PDFInfo
- Publication number
- CN106959913A CN106959913A CN201710137015.6A CN201710137015A CN106959913A CN 106959913 A CN106959913 A CN 106959913A CN 201710137015 A CN201710137015 A CN 201710137015A CN 106959913 A CN106959913 A CN 106959913A
- Authority
- CN
- China
- Prior art keywords
- power
- dsr
- pins
- python
- pressure test
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
- G06F30/30—Circuit design
- G06F30/36—Circuit design at the analogue level
- G06F30/367—Design verification, e.g. using simulation, simulation program with integrated circuit emphasis [SPICE], direct methods or relaxation methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2273—Test methods
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/22—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
- G06F11/2284—Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing by power-on test, e.g. power-on self test [POST]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Hardware Design (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Quality & Reliability (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The present invention relates to voltage tester technical field, specifically related to a kind of mode that power-on and power-off pressure test is realized based on Python environment and control DSR level, it is based primarily upon python environment, pass through serial Interface Controller DSR low and high levels, and then DC DC grounding pin low and high level is controlled, realize the switching on and shutting down pressure test of development board power-on and power-off.Technology before, by based on manual or soft reboot mode, the switching on and shutting down pressure of progress is surveyed, realize really power-off upper electric pressure test again, and the present invention is by controlling DSR low and high levels, and then control DC/DC dc source EN pin low and high levels, the upper electricity of power-off is realized, is restarted firmly, analog subscriber is electric on switch circuit breaking in practical operation, carry out pressure test, the risk that electricity is omitted on user's switch circuit breaking is avoided, whole solution technique novelty is original, with low cost, realize simply, with very strong creativeness.
Description
Technical field
The present invention relates to voltage tester technical field, and in particular to one kind is surveyed based on Voltage force above and below the realization of Python environment
The mode of examination.
Background technology
Scheme in the prior art for the pressure test of development board switching on and shutting down is innumerable, but is all based on manual or soft
Restart mode, the switching on and shutting down pressure of progress is surveyed, miss the upper electricity of power-off and restart the risk brought, therefore the present invention fully compensate for it
Preceding patent without power-off on electric switching on and shutting down pressure test, make module switch machine pressure more abundant, it is to avoid it is unnecessary to omit
Risk, and the present invention power-off on electrically, be skillfully constructed, connect by one in the Python environment API and serial that increases income
Mouthful, the DSR low and high levels in control MINIPCIE development boards by the reverse row of NPN triode, and then control DC-DC member devices
The low and high level of part grounding pin, realizes the testing scheme that the upper electricity of power-off is restarted, novel, technology maturation, implementation letter
Easily.
The content of the invention
(1) technical problem solved
In view of the shortcomings of the prior art, power-on and power-off pressure test realized based on Python environment the invention provides a kind of
Mode, it is based on python environment, by serial Interface Controller DSR low and high levels, and then controls DC-DC grounding pin high
Low level, realizes the switching on and shutting down pressure test of development board power-on and power-off.
(2) technical scheme
To realize object above, the present invention is achieved by the following technical programs:
A kind of mode that power-on and power-off pressure test is realized based on Python environment and control DSR level, passes through Python rings
The serial interfaces in border, control DTR low and high levels, when DSR pins are high level, by NPN triode, DC-DC dc sources
EN pins are changed into low level, module normal boot-strap;When DSR pins are bottom level, entered NPN triodes, DC-DC dc sources EN
Pin is changed into high level, causes module power down to be shut down;Realize development board power-on and power-off pressure test.
It is preferred that, comprise the following steps:
S1.Python scripts:Serial, the time.sleep of Python environment are quoted, the interface in serial bags is called,
DSR pin low and high levels are controlled, call time.sleep bags that the power-on and power-off time is set;
S2.UART to USB components:Python scripts are performed by the serial mouthfuls of instructions assigned and control DSR to draw
The instruction of pin, reaches effect of control DSR pin low and high levels;
S3.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins,
Negater circuit is formed, when DSR pins are high level, DC/DC EN pins are changed into low level therewith, and module enters open state;
S4.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins,
Negater circuit is formed, when DSR pins are low level, DC/DC EN pins become high level, the power-off of DC/DC dc sources, mould therewith
Block shuts down.
It is preferred that, the serial interfaces of the Python script references Python environment, transmission low and high level instruction instruction
To UART to USB components.
It is preferred that, the S1.Python scripts:Serial, ConfigParser, the time of Python environment are quoted,
Threading increases income bag;The interface in ConfigParser bags is called, reading configuration file information is configured;Configuration file
In can be set ATPort, PowOnintvl, PowOffintvl, times.
It is preferred that, Python scripts are adjusted, random on-off failure pressure survey can be carried out, licensed pressure test, PPP dialing pressure is surveyed
Examination.
(3) beneficial effect
The present invention controls DC/DC dc source EN pin low and high levels by controlling DSR low and high levels, realizes disconnected
It is electric on electricity, restart firmly, analog subscriber is electric on switch circuit breaking in practical operation, carry out pressure test, it is to avoid user's switch circuit breaking
The risk that upper electricity is omitted, whole solution technique novelty is original, with low cost, realizes simple.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing
The accompanying drawing to be used needed for having technology description is briefly described, it should be apparent that, drawings in the following description are only this
Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with
Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is the principle schematic of the present invention;
Fig. 2 is the NPN negater circuit schematic diagrams of the present invention;
Fig. 3 is the solution of the present invention flow chart.
Embodiment
To make the purpose, technical scheme and advantage of the embodiment of the present invention clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described embodiment is
A part of embodiment of the present invention, rather than whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art
The every other embodiment obtained under the premise of creative work is not made, belongs to the scope of protection of the invention.
A kind of mode that power-on and power-off pressure test is realized based on Python environment and control DSR level, passes through Python rings
The serial interfaces in border, control DTR low and high levels, when DSR pins are high level, by NPN triode, DC-DC dc sources
EN pins are changed into low level, module normal boot-strap;When DSR pins are bottom level, entered NPN triodes, DC-DC dc sources EN
Pin is changed into high level, causes module power down to be shut down;Realize development board power-on and power-off pressure test.
Comprise the following steps:
S1.Python scripts:Serial, the time.sleep of Python environment are quoted, the interface in serial bags is called,
DSR pin low and high levels are controlled, call time.sleep bags that the power-on and power-off time is set;
S2.UART to USB components:Python scripts are performed by the serial mouthfuls of instructions assigned and control DSR to draw
The instruction of pin, reaches effect of control DSR pin low and high levels;
S3.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins,
Negater circuit is formed, when DSR pins are high level, DC/DC EN pins are changed into low level therewith, and module enters open state;
S4.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins,
Negater circuit is formed, when DSR pins are low level, DC/DC EN pins become high level, the power-off of DC/DC dc sources, mould therewith
Block shuts down.
UART to are arrived in the serial interfaces of Python script reference Python environment, transmission low and high level instruction instruction
USB components.
S1.Python scripts:The serial of Python environment is quoted, ConfigParser, time, threading increases income
Bag;The interface in ConfigParser bags is called, reading configuration file information is configured;It can be set in configuration file
ATPort, PowOnintvl, PowOffintvl, times.
Python scripts are adjusted, random on-off failure pressure survey, licensed pressure test, PPP dialing pressure tests can be carried out.
The main Serial interfaces using in Python environment of the invention, control DSR low and high levels, utilize NPN triode
Inversion principle, controls the END pin low and high levels of DC/DC dc sources, into realizing power-on and power-off switching on and shutting down pressure test.
This hair is widely used, is applicable not only to switching on and shutting down pressure test, can also adjust Python scripts, be opened at random
Shutdown pressure is surveyed, licensed pressure test, PPP dialing pressure tests etc..
Technology, is surveyed by the switching on and shutting down pressure based on manual or soft reboot mode, progress before, is not realized really disconnected
Electricity upper electric pressure test again, and it is of the invention by controlling DSR low and high levels, and then control DC/DC dc source EN pins high
Low level, realizes the upper electricity of power-off, restarts firmly, analog subscriber is electric on switch circuit breaking in practical operation, carry out pressure test, it is to avoid
The risk that electricity is omitted on user's switch circuit breaking, whole solution technique novelty is original, with low cost, realizes simple.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation make a distinction with another entity or operation, and not necessarily require or imply these entities or deposited between operating
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability is included, so that process, method, article or equipment including a series of key elements not only will including those
Element, but also other key elements including being not expressly set out, or also include being this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Also there is other identical element in process, method, article or equipment including the key element.
The above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although with reference to the foregoing embodiments
The present invention is described in detail, it will be understood by those within the art that:It still can be to foregoing each implementation
Technical scheme described in example is modified, or carries out equivalent to which part technical characteristic;And these modification or
Replace, the essence of appropriate technical solution is departed from the spirit and scope of various embodiments of the present invention technical scheme.
Claims (5)
1. a kind of mode that power-on and power-off pressure test is realized based on Python environment and control DSR level, it is characterised in that:Pass through
The serial interfaces of Python environment, control DTR low and high levels, when DSR pins are high level, by NPN triode, DC-DC
Dc source EN pins are changed into low level, module normal boot-strap;When DSR pins are bottom level, entered NPN triodes, DC-DC is straight
Stream power supply EN pins are changed into high level, cause module power down to be shut down;Realize development board power-on and power-off pressure test.
2. the mode according to claim 1 that power-on and power-off pressure test is realized based on Python environment and control DSR level,
Comprise the following steps:
S1.Python scripts:Serial, the time.sleep of Python environment are quoted, the interface in serial bags is called, controlled
DSR pin low and high levels, call time.sleep bags to set the power-on and power-off time;
S2.UART to USB components:Python scripts are performed by the serial mouthfuls of instructions assigned and DSR pins are controlled
Instruction, reaches effect of control DSR pin low and high levels;
S3.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins, is formed
Negater circuit, when DSR pins are high level, DC/DC EN pins are changed into low level therewith, and module enters open state;
S4.NPN negater circuits:DSR connects base stage, and colelctor electrode connects DC/DC Vin pins, and emitter stage connects DC/DC EN pins, is formed
Negater circuit, when DSR pins are low level, DC/DC EN pins become high level therewith, and DC/DC dc sources power-off, module is closed
Machine.
3. step according to claim 2, it is characterised in that:The serial of the Python script references Python environment
UART to USB components are arrived in interface, transmission low and high level instruction instruction.
4. step according to claim 2, it is characterised in that:The S1.Python scripts:Quote Python environment
Serial, ConfigParser, time, threading increase income bag;The interface in ConfigParser bags is called, configuration is read
Fileinfo is configured;ATPort, PowOnintvl, PowOffintvl, times can be set in configuration file.
5. the mode according to claim 1 that power-on and power-off pressure test is realized based on Python environment and control DSR level,
It is characterized in that:Python scripts are adjusted, random on-off failure pressure survey, licensed pressure test, PPP dialing pressure tests can be carried out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710137015.6A CN106959913A (en) | 2017-03-09 | 2017-03-09 | A kind of mode that power-on and power-off pressure test is realized based on Python environment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710137015.6A CN106959913A (en) | 2017-03-09 | 2017-03-09 | A kind of mode that power-on and power-off pressure test is realized based on Python environment |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106959913A true CN106959913A (en) | 2017-07-18 |
Family
ID=59469965
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710137015.6A Pending CN106959913A (en) | 2017-03-09 | 2017-03-09 | A kind of mode that power-on and power-off pressure test is realized based on Python environment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106959913A (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284112A (en) * | 2018-09-28 | 2019-01-29 | 郑州云海信息技术有限公司 | A kind of method and apparatus used to run the application |
CN115993525A (en) * | 2023-03-22 | 2023-04-21 | 山东华翼微电子技术股份有限公司 | Chip batch sample testing and verifying method based on Ymodem protocol |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101924668A (en) * | 2010-08-17 | 2010-12-22 | 福建师范大学 | Serial port-based MODEM outage restart control circuit |
CN102236073A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Test fixture and method for controlling computer power switch by using test fixture |
CN103267919A (en) * | 2013-06-08 | 2013-08-28 | 上海斐讯数据通信技术有限公司 | Automatic startup and shutdown device |
CN203982116U (en) * | 2014-06-13 | 2014-12-03 | 深圳市双赢伟业科技股份有限公司 | A kind of switching on and shutting down control circuit of electronic equipment |
CN106154072A (en) * | 2015-04-07 | 2016-11-23 | 上海炬力集成电路设计有限公司 | A kind of Testing System for Electronic Equipment and method |
-
2017
- 2017-03-09 CN CN201710137015.6A patent/CN106959913A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102236073A (en) * | 2010-04-29 | 2011-11-09 | 鸿富锦精密工业(深圳)有限公司 | Test fixture and method for controlling computer power switch by using test fixture |
CN101924668A (en) * | 2010-08-17 | 2010-12-22 | 福建师范大学 | Serial port-based MODEM outage restart control circuit |
CN103267919A (en) * | 2013-06-08 | 2013-08-28 | 上海斐讯数据通信技术有限公司 | Automatic startup and shutdown device |
CN203982116U (en) * | 2014-06-13 | 2014-12-03 | 深圳市双赢伟业科技股份有限公司 | A kind of switching on and shutting down control circuit of electronic equipment |
CN106154072A (en) * | 2015-04-07 | 2016-11-23 | 上海炬力集成电路设计有限公司 | A kind of Testing System for Electronic Equipment and method |
Non-Patent Citations (1)
Title |
---|
HUAYUCONG: "python中pyserial模块使用方法", 《HTTPS://BLOG.CSDN.NET/HUAYUCONG/ARTICLE/DETAILS/48729907》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109284112A (en) * | 2018-09-28 | 2019-01-29 | 郑州云海信息技术有限公司 | A kind of method and apparatus used to run the application |
CN109284112B (en) * | 2018-09-28 | 2022-03-22 | 郑州云海信息技术有限公司 | Method and device for running application program |
CN115993525A (en) * | 2023-03-22 | 2023-04-21 | 山东华翼微电子技术股份有限公司 | Chip batch sample testing and verifying method based on Ymodem protocol |
CN115993525B (en) * | 2023-03-22 | 2023-08-22 | 山东华翼微电子技术股份有限公司 | Chip batch sample testing and verifying method based on Ymodem protocol |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN201789480U (en) | Circuit reusing power on/off key for realizing reset function and portable mobile terminal | |
CN105794111B (en) | Electric current is controlled during powered up and down sequence | |
CN107390934A (en) | Display panel and display device | |
CN106959913A (en) | A kind of mode that power-on and power-off pressure test is realized based on Python environment | |
CN101482842B (en) | Computer power on/off test device | |
CN108172179A (en) | Electric power management circuit | |
CN201497950U (en) | Mainboard voltage output circuit | |
CN101131487A (en) | Power supply circuit and LCD using the same | |
US8730229B2 (en) | Devices and methods for zero-bias display turn-off using VCOM switch | |
CN109215597A (en) | A kind of display driver circuit and television set | |
CN110703892A (en) | EC reset circuit and electronic equipment based on USB C type interface | |
CN202159236U (en) | Standby switch circuit and miniature electronic device | |
CN107703821A (en) | A kind of quiescent current control circuit of key wakeup circuit | |
CN207965806U (en) | System and electronic equipment are restarted in power supply | |
CN101206520A (en) | Time sequence improving circuit | |
CN103901960B (en) | Motherboard and power control method thereof | |
CN202652065U (en) | Delayed supply circuit of high voltage and low voltage power supplies | |
CN208092690U (en) | Electronic equipment | |
CN207265995U (en) | It is a kind of to use the key switch electromechanics road with ena-bung function linear voltage regulator | |
CN206301168U (en) | Active/standby devices one-key start device | |
CN208707613U (en) | One-key switch electromechanics road and electric terminal equipment | |
CN113054967B (en) | Control circuit and method for startup and shutdown | |
CN208654778U (en) | A kind of OTA upgrading circuit | |
CN103095278A (en) | Integrated circuit and control method thereof | |
CN207718782U (en) | A kind of band disappears the UHD liquid-crystalline glasses panel circuit structures of shadow circuit |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170718 |
|
RJ01 | Rejection of invention patent application after publication |