CN109343512A - A kind of controller debugging system and method - Google Patents

A kind of controller debugging system and method Download PDF

Info

Publication number
CN109343512A
CN109343512A CN201811332525.XA CN201811332525A CN109343512A CN 109343512 A CN109343512 A CN 109343512A CN 201811332525 A CN201811332525 A CN 201811332525A CN 109343512 A CN109343512 A CN 109343512A
Authority
CN
China
Prior art keywords
controller
usb interface
module
output power
equipment
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
CN201811332525.XA
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.)
Zhejiang Guozi Robot Technology Co Ltd
Original Assignee
Zhejiang Guozi Robot 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 Zhejiang Guozi Robot Technology Co Ltd filed Critical Zhejiang Guozi Robot Technology Co Ltd
Priority to CN201811332525.XA priority Critical patent/CN109343512A/en
Publication of CN109343512A publication Critical patent/CN109343512A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G05CONTROLLING; REGULATING
    • G05BCONTROL OR REGULATING SYSTEMS IN GENERAL; FUNCTIONAL ELEMENTS OF SUCH SYSTEMS; MONITORING OR TESTING ARRANGEMENTS FOR SUCH SYSTEMS OR ELEMENTS
    • G05B23/00Testing or monitoring of control systems or parts thereof
    • G05B23/02Electric testing or monitoring
    • G05B23/0205Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults
    • G05B23/0208Electric testing or monitoring by means of a monitoring system capable of detecting and responding to faults characterized by the configuration of the monitoring system
    • G05B23/0213Modular or universal configuration of the monitoring system, e.g. monitoring system having modules that may be combined to build monitoring program; monitoring system that can be applied to legacy systems; adaptable monitoring system; using different communication protocols

Abstract

The invention discloses a kind of controller debugging systems, including usb interface module, for powering for controller;Detection module controls sub- equipment starting corresponding with present output power in controller, for detecting the present output power of usb interface module to debug to sub- equipment.It is controller power supply that the present invention, which can use movable power source such as notebook etc. by usb interface module, detection module controls corresponding sub- equipment in controller according to the present output power of usb interface module and starts, so that staff debugs controller, it is not limited by field position, controller can be debugged whenever and wherever possible, strong flexibility.The invention also discloses a kind of controller adjustment methods, have above-mentioned beneficial effect.

Description

A kind of controller debugging system and method
Technical field
The present invention relates to controller fields, more particularly to a kind of controller debugging system and method.
Background technique
During controller application, generally requires and field programming and debugging are carried out to controller, carried out to controller The position for needing first to determine live power supply before of programming and debugging, after controller connects power supply, then passes through tune Examination device interface debugs the sub- equipment of controller, and the sub- equipment of controller includes MCU and peripheral hardware etc., and live power supply Position be usually fixed, therefore debugging plan in the prior art is limited by power supply position, and flexibility is poor.
Therefore, how to provide a kind of scheme of solution above-mentioned technical problem is that those skilled in the art need to solve at present Problem.
Summary of the invention
The object of the present invention is to provide a kind of controller debugging systems, are not limited by field position, can be whenever and wherever possible Controller is debugged, strong flexibility;It is a further object of the present invention to provide a kind of controller adjustment methods.
In order to solve the above technical problems, the present invention provides a kind of controller debugging systems, comprising:
Usb interface module, for powering for controller;
Detection module controls in the controller and current for detecting the present output power of the usb interface module The corresponding sub- equipment starting of output power, to be debugged to the sub- equipment.
Preferably, the usb interface module includes multiple USB interfaces.
Preferably, which further includes boost module;
The detection module is also used to preset when the present output power for detecting the usb interface module is greater than first When value, the boost module work is controlled, to control sub- equipment starting corresponding with present output power.
Preferably, the sub- equipment includes MCU, I/O equipment, POE router and photoelectric sensor.
Preferably, the usb interface module includes the first USB interface and secondary USB interface;
First USB interface is 2.0 interface of USB PD, and the secondary USB interface is 3.0 interface of USB PD.
Preferably, which further includes the first display module;
The detection module is also used to when present output power meets the first preset condition, controls first display Module shows first state, when present output power meets the second preset condition, controls first display module and shows the Two-state.
Preferably, first display module includes indicator light.
Preferably, the controller debugging system further include:
Second display module, for showing present output power.
In order to solve the above technical problems, being applied to the present invention also provides a kind of controller adjustment method as any above Controller debugging system described in one, including
It is controller power supply by usb interface module;
The present output power that the usb interface module is detected by detection module controls in the controller and current The corresponding sub- equipment starting of output power, to be debugged to the sub- equipment.
Preferably, the sub- equipment includes MCU, I/O equipment, POE router and photoelectric sensor.
The present invention provides a kind of controller debugging systems, including usb interface module, for powering for controller;Detection Module controls sub- equipment corresponding with present output power in controller for detecting the present output power of usb interface module Starting, to be debugged to sub- equipment.As it can be seen that in practical applications, using the solution of the present invention, can use removable electricity Source such as notebook etc. is that controller is powered by usb interface module, and detection module is according to the present output power of usb interface module Corresponding sub- equipment starting in controller is controlled, so that staff debugs controller, is not limited by field position, Controller can be debugged whenever and wherever possible, strong flexibility.The present invention also provides a kind of controller adjustment method, have and The identical beneficial effect of above controller debugging system.
Detailed description of the invention
It to describe the technical solutions in the embodiments of the present invention more clearly, below will be to institute in the prior art and embodiment Attached drawing to be used is needed to be briefly described, it should be apparent that, the accompanying drawings in the following description is only some implementations of the invention Example, for those of ordinary skill in the art, without creative efforts, can also obtain according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of structural schematic diagram of controller debugging system provided by the present invention;
Fig. 2 is the structural schematic diagram of another controller debugging system provided by the present invention;
Fig. 3 is a kind of step flow chart of controller adjustment method provided by the present invention.
Specific embodiment
Core of the invention is to provide a kind of controller debugging system, is not limited by field position, can be whenever and wherever possible Controller is debugged, strong flexibility;Another core of the invention is to provide a kind of controller adjustment method.
In order to make the object, technical scheme and advantages of the embodiment of the invention clearer, below in conjunction with the embodiment of the present invention In attached drawing, technical scheme in the embodiment of the invention is clearly and completely described, it is clear that described embodiment is A part of the embodiment of the present invention, instead of all the embodiments.Based on the embodiments of the present invention, those of ordinary skill in the art Every other embodiment obtained without making creative work, shall fall within the protection scope of the present invention.
Fig. 1 is please referred to, Fig. 1 is a kind of structural schematic diagram of controller debugging system provided by the present invention, comprising:
Usb interface module 1, for powering for controller;
Detection module 2, for detecting the present output power of usb interface module 1, control in controller with current output work The corresponding sub- equipment starting of rate, to be debugged to sub- equipment.
Embodiment as one preferred, sub- equipment include MCU, I/O equipment, POE router and photoelectric sensor.
Specifically, the present invention is connected by USB (Universal Serial Bus, universal serial bus) interface module 1 Controller is controller power supply, in general, usb interface module 1 can provide the supply voltage not less than 5V, and different USB Its output power of interface is also different.After USB interface is connected with controller, detection module 2 inside controller, first detection are worked as The size of the present output power of the usb interface module 1 of preceding connection is gone in control controller according to the size of present output power Corresponding sub- equipment starting is merely able to support opening controller if the present output power of usb interface module 1 is smaller When core function controls MCU (Microcontroller Unit, micro-control unit) unlatching, detection module 2 passes through USB interface Module 1 powers on for MCU, guarantees that MCU program can operate normally, can be communicated with PC machine, if usb interface module 1 When present output power is larger, it can be powered by the external equipment that usb interface module 1 is controller, such as control I/O output, The starting of Ethernet POE (Power Over Ethernet, active Ethernet) function realizes that the institute of controller is functional, not by existing The limitation of field power supply, has high flexibility and high convenience.
The present invention provides a kind of controller debugging systems, including usb interface module, for powering for controller;Detection Module controls sub- equipment corresponding with present output power in controller for detecting the present output power of usb interface module Starting, to be debugged to sub- equipment.As it can be seen that in practical applications, using the solution of the present invention, can use removable electricity Source such as notebook etc. is that controller is powered by usb interface module, and detection module is according to the present output power of usb interface module Corresponding sub- equipment starting in controller is controlled, so that staff debugs controller, is not limited by field position, Controller can be debugged whenever and wherever possible, strong flexibility.
On the basis of the above embodiments:
Embodiment as one preferred, usb interface module 1 include multiple USB interfaces.
Embodiment as one preferred, which further includes boost module;
Detection module 2 is also used to the control when the present output power for detecting usb interface module 1 is greater than the first preset value Boost module work processed, to control sub- equipment starting corresponding with present output power.
Embodiment as one preferred, usb interface module 1 include the first USB interface and secondary USB interface;
First USB interface is 2.0 interface of USB PD, and secondary USB interface is 3.0 interface of USB PD.
Specifically, may include multiple USB interfaces in usb interface module 1 in the present invention, can specifically select two not With the USB interface of output power, such as the first USB interface selects the interface for meeting 2.0 agreement of USB PD, which can export The power of 5W or so, secondary USB interface can select the interface for meeting 3.0 agreement of USB PD, the interface may be implemented be more than The power transmission of 45W, which kind of agreement controller supports by the USB interface of the judgement access of detection module 2, if it is common 2.0 agreement of USB PD, then the core function of opening controller, core function mainly include powering on to MCU minimum system, are protected Card MCU program can operate normally, and can be communicated, can be downloaded, debugging routine, peripheral functionality can not at this time with PC machine It opens, is not available I/O function, the POE function of Ethernet is deactivated, and can not be powered to other peripheral hardwares.If detecting access USB interface support 3.0 agreement of USB PD, and present output power be greater than the first preset value when, controller can be first turned on The supply voltage that USB interface supplies is adjusted to the standard supply voltage (12V/24V/36V/48V) of controller by booster circuit, It is opened so as to control all peripheral functionalities, such as controls I/O output, Ethernet POE function enables, and can supply to other peripheral hardwares Electric (having power limit), so that the function all to controller is debugged.
Referring to figure 2., Fig. 2 is the structural schematic diagram of another controller debugging system provided by the present invention, the control Device debugging system is on the basis of the above embodiments:
Embodiment as one preferred, the controller debugging system further include the first display module 3;
Detection module 2 is also used to when present output power meets the first preset condition, and the first display module 3 of control is aobvious Show first state, when present output power meets the second preset condition, the first display module 3 of control shows the second state.
Embodiment as one preferred, the first display module 3 include indicator light.
Specifically, being illustrated with two USB interfaces, it is assumed that one of USB interface meets 2.0 agreement of USB PD, note For the first USB interface, another USB interface meets 3.0 agreement of USB PD, is denoted as secondary USB interface, the first USB interface Output power meets the first preset condition, and the output power of the first preset condition, that is, 5W or more range, secondary USB interface meets Second preset condition, the second preset condition, that is, 45W or more range, detection module 2 detect that present output power belongs on 5W Under range when, the first display module 3 of control shows first state, and detection module 2 detects that present output power belongs on 45W Under range when, control the first display module 3 show the second state, can be seen by the state that the first display module 3 shows The range of the output power for the USB interface being currently accessed out can currently adjust those sub- equipment so that operator understands Examination, certainly, detection module 2 can also control the display pair of the first display module 3 by way of identifying current USB interface agreement The state answered.
Certainly, the first preset condition and the second preset condition need to be determined according to actual requirement of engineering, and the present invention is herein not It limits.
Specifically, the first display module 3 may include an indicator light, then the first display state and the second display state It can be distinguished, can also be distinguished by display color by light on and off, the first display module 3 also may include two indicator lights, and one The corresponding output power range of a indicator light.
Embodiment as one preferred, the controller debugging system further include:
Second display module, for showing present output power.
Referring to figure 3., Fig. 3 is a kind of step flow chart of controller adjustment method provided by the present invention, comprising:
Step 1: being controller power supply by usb interface module;
Step 2: by detection module detect usb interface module present output power, control controller in currently it is defeated The corresponding sub- equipment starting of power out, to be debugged to sub- equipment.
Embodiment as one preferred, sub- equipment include MCU, I/O equipment, POE router and photoelectric sensor.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with other The difference of embodiment, the same or similar parts in each embodiment may refer to each other.For device disclosed in embodiment For, since it is corresponded to the methods disclosed in the examples, so being described relatively simple, related place is said referring to method part It is bright.
The foregoing description of the disclosed embodiments enables those skilled in the art to implement or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, of the invention It is not intended to be limited to the embodiments shown herein, and is to fit to and the principles and novel features disclosed herein phase one The widest scope of cause.

Claims (10)

1. a kind of controller debugging system characterized by comprising
Usb interface module, for powering for controller;
Detection module is controlled in the controller and is exported with current for detecting the present output power of the usb interface module The corresponding sub- equipment starting of power, to be debugged to the sub- equipment.
2. controller debugging system according to claim 1, which is characterized in that the usb interface module includes multiple USB Interface.
3. controller debugging system according to claim 2, which is characterized in that the controller debugging system further includes boosting Module;
The detection module is also used to when the present output power for detecting the usb interface module is greater than the first preset value, The boost module work is controlled, to control sub- equipment starting corresponding with present output power.
4. controller debugging system according to claim 3, which is characterized in that the sub- equipment include MCU, I/O equipment, POE router and photoelectric sensor.
5. controller debugging system according to claim 2, which is characterized in that the usb interface module includes the first USB Interface and secondary USB interface;
First USB interface is 2.0 interface of USB PD, and the secondary USB interface is 3.0 interface of USB PD.
6. controller debugging system according to claim 5, which is characterized in that the controller debugging system further includes first Display module;
The detection module is also used to control first display module when present output power meets the first preset condition It shows first state, when present output power meets the second preset condition, controls first display module and show the second shape State.
7. controller debugging system according to claim 6, which is characterized in that first display module includes instruction Lamp.
8. controller debugging system described in -5 any one according to claim 1, which is characterized in that the controller debugging system Further include:
Second display module, for showing present output power.
9. a kind of controller adjustment method, which is characterized in that applied to the controller tune as described in claim 1-8 any one Test system, comprising:
It is controller power supply by usb interface module;
The present output power that the usb interface module is detected by detection module is controlled in the controller and is exported with current The corresponding sub- equipment starting of power, to be debugged to the sub- equipment.
10. controller adjustment method according to claim 9, which is characterized in that the sub- equipment includes that MCU, I/O are set Standby, POE router and photoelectric sensor.
CN201811332525.XA 2018-11-09 2018-11-09 A kind of controller debugging system and method Pending CN109343512A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811332525.XA CN109343512A (en) 2018-11-09 2018-11-09 A kind of controller debugging system and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811332525.XA CN109343512A (en) 2018-11-09 2018-11-09 A kind of controller debugging system and method

Publications (1)

Publication Number Publication Date
CN109343512A true CN109343512A (en) 2019-02-15

Family

ID=65313072

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811332525.XA Pending CN109343512A (en) 2018-11-09 2018-11-09 A kind of controller debugging system and method

Country Status (1)

Country Link
CN (1) CN109343512A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010356A (en) * 2021-02-22 2021-06-22 深圳市微特精密科技股份有限公司 USB2.0/3.0 interface testing device and testing method thereof

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444151A (en) * 2002-03-07 2003-09-24 富士施乐株式会社 General serial bus device
US20110153110A1 (en) * 2009-12-22 2011-06-23 General Electric Company Return of appliance state after demand response event
CN103777730A (en) * 2012-10-19 2014-05-07 纬创资通股份有限公司 Power management circuit and method thereof
US20140240084A1 (en) * 2013-02-26 2014-08-28 Daniel R. Gropper Energy Efficient Remote Volumetric Sensing, Reporting and Analysis System
CN106155254A (en) * 2016-06-24 2016-11-23 联想(北京)有限公司 The method of power management, electronic equipment and system equipment

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1444151A (en) * 2002-03-07 2003-09-24 富士施乐株式会社 General serial bus device
US20110153110A1 (en) * 2009-12-22 2011-06-23 General Electric Company Return of appliance state after demand response event
CN103777730A (en) * 2012-10-19 2014-05-07 纬创资通股份有限公司 Power management circuit and method thereof
US20140240084A1 (en) * 2013-02-26 2014-08-28 Daniel R. Gropper Energy Efficient Remote Volumetric Sensing, Reporting and Analysis System
CN106155254A (en) * 2016-06-24 2016-11-23 联想(北京)有限公司 The method of power management, electronic equipment and system equipment

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113010356A (en) * 2021-02-22 2021-06-22 深圳市微特精密科技股份有限公司 USB2.0/3.0 interface testing device and testing method thereof

Similar Documents

Publication Publication Date Title
US10528492B2 (en) Circuit, method and apparatus for USB interface sharing
US9625931B2 (en) Bypass type 220V grid voltage sag prevention device and control method therefor
RU2676866C2 (en) Method and device for controlling a device mode
US20120137159A1 (en) Monitoring system and method of power sequence signal
CN111831498B (en) Power-off test method, device and equipment
CN109343512A (en) A kind of controller debugging system and method
CN106371876B (en) Method and system for upgrading external program of product
EP2607990B1 (en) Device for adjusting power consumption and method thereof
CN113644655A (en) AC/DC power supply equipment, power supply method and device and storage medium
CN101286856A (en) Network equipment and method of automatic turn-on and turn-off
JP6196380B2 (en) Power management in circuits
US20070150761A1 (en) Power supply communication system and method
WO2023184830A1 (en) Control circuit, method, and apparatus for backup battery unit, and storage system
EP3905855A1 (en) Led driving protection circuit and lamp led
WO2012042588A1 (en) Programmable control system
US10516291B2 (en) Dongle having rechargeable, supercapacitor based power supply
CN102957885A (en) Method and electronic equipment for turning off display screen
TWI464722B (en) Display system and overvoltage protection device
CN110162434A (en) A kind of test fixture and its test method of server A C on-off
Li et al. An extension HA design for the hot-swap application of Compact PCI device
CN115276392B (en) Power supply unit and server power supply system
TW201644145A (en) Mobile electronic device and control method of power supply thereof
US10630881B2 (en) Lens detection method and lens detection system used for detecting type of externally connected lens
CN111158765B (en) Device and method for controlling running state of main control chip
CN103179458A (en) Set-top box and antenna power supply module 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
RJ01 Rejection of invention patent application after publication

Application publication date: 20190215

RJ01 Rejection of invention patent application after publication