CN1838029A - USB data acquisition apparatus for power supply - Google Patents

USB data acquisition apparatus for power supply Download PDF

Info

Publication number
CN1838029A
CN1838029A CN 200610059006 CN200610059006A CN1838029A CN 1838029 A CN1838029 A CN 1838029A CN 200610059006 CN200610059006 CN 200610059006 CN 200610059006 A CN200610059006 A CN 200610059006A CN 1838029 A CN1838029 A CN 1838029A
Authority
CN
China
Prior art keywords
usb
power
data
power supply
computer
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.)
Granted
Application number
CN 200610059006
Other languages
Chinese (zh)
Other versions
CN100504723C (en
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.)
Individual
Original Assignee
Individual
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 Individual filed Critical Individual
Priority to CNB2006100590061A priority Critical patent/CN100504723C/en
Publication of CN1838029A publication Critical patent/CN1838029A/en
Application granted granted Critical
Publication of CN100504723C publication Critical patent/CN100504723C/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

This invention relates to an USB data acquisition apparatus for power supply, which comprises: an ac charge sensor, a signal conditioning circuit, a multi-way analog switch, an ADC, a MPU, and a USB interface. Wherein, all the former parts in power unit combine with the power into a integer with one power connection wire and USB bus output. This invention supplies power, and sends the ac parameters to the host by USB interface to monitor the ac voltage, current and frequency on power input end.

Description

The usb data harvester of power supply
Technical field
A kind of power supply usb data harvester belongs to computer peripheral equipment interface field.
Background technology
Now, the USB of computer is a kind of connecting interface of standard, when peripheral hardware is connected with computer, needn't reset system and directly connection, suitable driver can be discerned and dispose to computer automatically, USB interface Usage data collection system be can also pass through in addition,, IRQ, interruption and I/O port do not needed to be provided with in addition easily with main-machine communication.
The common computer power supply uses cellular structure, for example ATX, BTX, server power supply, export one group of fixing DC voltage, provide energy to computer, but it does not measure the device that himself uses alternating current parameter, even be all civilian electricity, country variant also has alternating voltage grade and the power frequency standard that is not quite similar.
Summary of the invention
In order to make power supply when the computer energy is provided, also can monitor alternating current parameter, as alternating voltage, alternating current, AC power frequency, the present invention places the usb data acquisition system in the power supply unit, in ATX, BTX, server power supply unit, make common power supply have USB interface, be connected to main frame by usb bus, can with host communication, monitor alternating current parameter with application program.Concrete structure of the present invention:
A kind of computer power that comprises the usb data harvester, it provides out-put supply and USB interface, supply with and connect host computer, it is characterized in that: the usb data harvester is in power supply unit, it includes: signal conditioning circuit, has signal attenuator, so that signal is fit to transducer range, sensor is converted to DC voltage (electric current) signal with alternating current parameter, output connects analog switch, multiway analog switch and A/D converter are converted to digital signal with the multi-channel analog input signal, and output connects microcontroller, microcontroller, process/data are controlled, be core devices, connect USB interface and A/D converter, USB interface, with data by usb bus and main-machine communication.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: data collector comprises at least with lower sensor, voltage sensor: the alternating voltage that is used to measure power supply, current sensor: be used to measure the alternating current of power supply, frequency sensor: be used to measure power supply AC power frequency frequency.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: the USB interface of power supply output connects following any USB interface
(1), the USB interface on the computer motherboard,
(2), the USB interface on computer PCI-Express plate, described PCI-Express plate comprises X1, X4, X8, X16 and X32 plate, because the PCI-Express standard is supported USB.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: the usb bus interface is that following arbitrary mode connects computer:
(1), comprise+DATA ,-DATA, POWER and GROUND,
(2), comprise+DATA ,-DATA, in this manner, power supply+5 and GROUND are connected to main frame by power lead, belong to this if connect the PCI-Express plate
The above-mentioned computer power that comprises the usb data harvester, its feature also is: the microcontroller of usb data harvester and USB interface chip are following arbitrary classes:
(1), the independent USB interface chip of running, connect the microcontroller cooperating,
(2), include the microprocessor (MPU) of USB unit,
The above-mentioned computer power that comprises the usb data harvester, its feature also is: also comprise usb hub, so that power supply unit provides other USB port to connect serial connection equipment.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: on A/D converter input end and USB output bus filter is arranged all, to guarantee Electro Magnetic Compatibility.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: the compatible common equal specification capacity power source of this power supply, have standard profile size and mounting means, can float sky when not using USB interface.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: microcontroller and USB interface, multicircuit switch and A/D converter, input signal conditioning circuit, the existing power voltage supply of use power supply.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: power supply USB group (class) classification constant is: USB-DEVICE-CLASS-POWER.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: behind the process signal attenuator, voltage sensor range and frequency sensor range are suitable for the civilian and industrial rank of global various countries, and the current sensor range is fit to the maximum functional alternating current of this machine.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: the circuit of usb data harvester has power supply to be connected at one independently on the pcb board with power circuit.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: this device USB interface can be discerned automatically by host operating system, plug and play and hot plug.
The above-mentioned computer power that comprises the usb data harvester, its feature also is: can be integrated in more than 2 or 2 on the chip in multiway analog switch, A/D converter, microcontroller, the USB interface connected components.
The beneficial effect of the invention: (1) can monitor the alternating current situation in real time, and for the operation of power supply and computer system safety provides data, (2) are easy to use, and plug and play is of many uses, at PC, IPC, server, all can implement on the workstation.
Description of drawings
Fig. 1 is the general structure block diagram of computer power of the present invention
Fig. 2 is an embodiment usb data harvester core circuit diagram
Fig. 3 is an embodiment solid program structure diagram
Concrete enforcement
Specify the composition of device below with embodiment, introduce USB interface and microcontroller based on usb bus partial data harvester.This installs by the PDIUSBPDIUSBD12 chip of Philips company and 89C58 microcontroller etc. forms.In the literary composition, introduced the performance of PDIUSBPDIUSBD12 chip and characteristics and with the interface circuit of MCU, overall design philosophy and hierarchical structure thereof, and provided the firmware layer hierarchical structure chart.Use usb bus transmission data, be the communication blaze the trail between data collector and the computer.
The usb data hardware of data acquisition partly comprises attenuator, alternating voltage, electric current and frequency sensor, multiway analog switch, A/D converter, microcontroller and USB interface etc., and hardware architecture is as shown in the frame of broken lines among Fig. 1.
The multiway analog switch of device, A/D converter adopt traditional method for designing, select suitable chip according to various elements such as the precision of gathering, speed, port numbers, should give one's full attention to jamproof performance during design, and circuit use power supply provides+5V.Because the work of the control A/D of 89C58 system sampling is very simple, using sensor that ac electric is converted to DC voltage is technique known, so repeat no more introduction herein.USB interface software comprises USB device driver, equipment firmware, host side application program three parts.Equipment firmware C language compilation, wherein writing of equipment firmware is the design's emphasis, equipment firmware also will be controlled the usb communication interface chip and realize usb protocol except the function that will finish measurement and data transmit-receive.The hardware circuit design of USB interface
PDIUSBD12 is a more novel special-purpose usb communication control chip of Philips company, meets 1.1 editions standards of general-purpose serial bus USB, and inside is integrated with serial interface engine (SIE), 320B FIFO storer, transceiver and voltage regulator.This chip adopts 8 bit parallel data lines to be connected to microcontroller, and a bit address line is used for distinguishing write order or reads and writes data, and it supports three USB end points, and an end points can be preserved 128B, can preserve 256B for two in addition.External microcontroller there is not any restriction.Multiple interrupt mode is convenient to piece transmission (Bulk) and synchronous transmission, and speed all can reach the message transmission rate of 1Mbps when piece transmission and synchronous transmission.The connecting circuit of microcontroller and PDIUSBD12 is as shown in Figure 2:
PDIUSBD12 and microcontroller can be used address multiplexed data bus/non-multiplexing two kinds of connected modes.Because the connection peripheral hardware of microcontroller is few, has adopted non-multiplex mode in the design.PDIUSBD12 is changed to high level with the pull-up resistor that is connected by 1.5K Ω of USB socket with D+.Because only need a bit address, so the ALE of PDIUSBD12 directly is a low level, the A0 pin of using PDIUSBD12 is as address bit, and A0 is order with the P3.3 mouth control of 89C58: A0=1 on the expression data bus; A0=0 is data on the expression data bus.If the multidigit address/data bus is multiplexing, then the ALE of PDIUSBD12 is as address latch signal, and A0 connects high level, and the multidigit address of 89C58 directly links to each other with the data bus of PDIUSBD12 with data bus.Trigger by external interrupt between PDIUSBD12 and the 89C58, interrupt pin INT_N links to each other with the external interrupt of 89C58.When the external interrupt of PDIUSBD12 has one to be 1, INT_N output low level, the external interrupt of triggering 89C58.USB1.1 agreement regulation, when 3us did not have activity on the bus, peripheral hardware entered hang-up (SUSPEND) state.Simultaneously, the SUSPEND pin of PDIUSBD12 output high level.This pin is linked to each other with an I/O pin of microcontroller, enter suspended state, and when also not having simultaneously other pending things, MCU also enters dormant state when microcontroller detects PDIUSBD12.
Firmware then responds various standard-requireds from system, finishes the exchange work and the event handling of various data, and equipment firmware is the core of equipment operation, adopts the C language compilation.Its major function is to upload data in real time by PDIUSBD12 to give microcomputer; Control PDIUSBD12 accepts and handles the request of USB device driver.Program is mainly divided four modules: initialization module, data processing module, control module and usb communication module.Equipment is with after microcomputer links to each other, and initialization module carries out initial configuration to equipment; Data processing module mainly is responsible for the pre-service of front end data, explains host requests, and request is handled accordingly; Control module then is used for the control to front end hardware.And the usb communication module is responsible for communicating by letter of main frame and front end hardware, is the emphasis in the firmware design.The target of usb communication firmware design is exactly to make PDIUSBD12 reach maximum transfer rate on USB.According to usb protocol, any transmission is all begun by main frame (Host).Single-chip microcomputer is done its foreground work, waits for and interrupting.Main frame at first will be sent out token packet and give USB device (being PDIUSBD12) here, and PDIUSBD12 just sends out interruption to microcontroller after receiving token packet.Single-chip microcomputer enters interrupt service routine, at first reads the interrupt register of PDIUSBD12, judges the type of USB token packet, carries out corresponding operation then.The usb communication firmware adopts hierarchical structure, as shown in Figure 3:
Microcontroller mainly says the word to PDIUSBD12 by microcontroller with communicating by letter of PDIUSBD12 and data realize.The command word of PDIUSBD12 is divided into three kinds: initialization command word, data stream command word and generic command word.The PDIUSBD12 databook has provided the code and the address of various command.Microcontroller says the word for earlier the command address of PDIUSBD12, sends or read different data again according to the requirement of different command.Therefore, every kind of order can be made function, realize each order with function, directly call function gets final product later on.The interruption of microcontroller is set to level triggers; In have no progeny and read transmission state register last time (order 40~45H) makes the interruption output of PDIUSBD12 become high level again with the interrupt identification of removing in the interrupt register.After receiving the Setup bag, call D8 and order again enable port 0.After having write data to the IN end, call instruction FAH, the data that indicate in the buffer zone are effective, can send to main frame.After reading and writing data, call instruction F2H is to guarantee receiving new bag.Can check whether PDIUSBD12 works by call instruction FDH.Device driver and being programmed on the host computer of host side application software are finished, and have exceeded narration scope of the present invention.
By application software, can carry out the data write operation to USB device rapidly and accurately, the data that monitoring is in real time sent from USB, the signal that power supply USB can be collected is passed to computer; Functions such as computer is finished Data Receiving, deposited database in, data processing, calculating, demonstration.

Claims (10)

1, a kind of computer power that comprises the usb data harvester, it provides out-put supply and USB interface, supply with and connect host computer, it is characterized in that: the usb data harvester is in power supply unit, it includes: signal attenuator, so that signal is fit to transducer range, input connects alternating current, and output connects sensor, sensor, alternating current parameter is converted to DC voltage (electric current) signal, output connects analog switch, and multiway analog switch and A/D converter are converted to digital signal with the analog input signal of sensor, output connects microcontroller
Microcontroller is controlled process/data, is core devices, connects USB interface and A/D converter,
USB interface is connected by usb bus data with main frame.
2, computer power according to claim 1 is characterized in that: data collector comprises at least with lower sensor:
Voltage sensor is used to measure the alternating voltage of power supply,
Current sensor: be used to measure the alternating current of power supply,
Frequency sensor: be used to measure power supply AC power frequency frequency.
3, computer power according to claim 1 is characterized in that: the USB interface of power supply output connects following any USB interface
(1), the USB interface on the computer motherboard,
(2), the USB interface on computer PCI-Express plate, described PCI-Express plate comprises X1, X4, X8, X16 and X32 plate.
4, computer power according to claim 1 is characterized in that: the usb bus interface is following arbitrary mode:
(1), comprise+DATA ,-DATA, POWER and GROUND,
(2), comprise+DATA ,-DATA, in this manner, power supply+5 and GROUND are connected to main frame by power lead.
5, computer power according to claim 1 is characterized in that: the microcontroller of usb data harvester and USB interface chip are following arbitrary classes:
(1), the independent USB interface chip of running, other connects the microcontroller cooperating,
(2), include the microprocessor (MPU) of USB unit.
6, computer power according to claim 1 is characterized in that: also comprise usb hub, so that power supply unit provides other USB port to connect serial connection equipment.
7, computer power according to claim 1 is characterized in that: on A/D converter input end and USB output bus filter is arranged all, to guarantee Electro Magnetic Compatibility.
8, computer power according to claim 1 is characterized in that: the compatible common equal specification capacity power source of this power supply, have standard profile size and mounting means, and can float sky when not using USB interface.
9, computer power according to claim 1 is characterized in that: microcontroller and USB interface, multicircuit switch and A/D converter, input signal conditioning circuit, all use the existing power voltage supply of power supply.
10, computer power according to claim 1 is characterized in that: power supply USB group (class) classification constant is: USB-DEVICE-CLASS-POWER.
CNB2006100590061A 2006-02-24 2006-02-24 USB data acquisition apparatus for power supply Expired - Fee Related CN100504723C (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNB2006100590061A CN100504723C (en) 2006-02-24 2006-02-24 USB data acquisition apparatus for power supply

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNB2006100590061A CN100504723C (en) 2006-02-24 2006-02-24 USB data acquisition apparatus for power supply

Publications (2)

Publication Number Publication Date
CN1838029A true CN1838029A (en) 2006-09-27
CN100504723C CN100504723C (en) 2009-06-24

Family

ID=37015443

Family Applications (1)

Application Number Title Priority Date Filing Date
CNB2006100590061A Expired - Fee Related CN100504723C (en) 2006-02-24 2006-02-24 USB data acquisition apparatus for power supply

Country Status (1)

Country Link
CN (1) CN100504723C (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169668B (en) * 2006-10-24 2010-09-29 达方电子股份有限公司 Universal sequence bus voltage stabilization device and its voltage stabilization method
CN101281417B (en) * 2007-04-06 2011-11-09 鸿富锦精密工业(深圳)有限公司 Power supply switching device
CN102305885A (en) * 2010-10-26 2012-01-04 江苏多维科技有限公司 Isolation type voltage sensor
CN104011510A (en) * 2011-12-16 2014-08-27 大陆汽车有限责任公司 Sensor for detecting the mass flow rate and the temperature of a fluid flow

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103018609A (en) * 2012-12-18 2013-04-03 上海电器科学研究院 Handhold type electric quantity accessory communication tester

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1114435A (en) * 1995-06-23 1996-01-03 李建国 Full-built-in in-line type uninterrupted power supply and switch power supply system for microcomputer
US6915438B2 (en) * 2003-04-04 2005-07-05 Arraycomm, Inc Distributed power management method for monitoring control/status signal of sub-modules to manage power of sub-modules by activating clock signal during operation of sub-modules
CN1658165A (en) * 2005-03-18 2005-08-24 李谦 Device and program for monitoring computer mainframe and power supply

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101169668B (en) * 2006-10-24 2010-09-29 达方电子股份有限公司 Universal sequence bus voltage stabilization device and its voltage stabilization method
CN101281417B (en) * 2007-04-06 2011-11-09 鸿富锦精密工业(深圳)有限公司 Power supply switching device
CN102305885A (en) * 2010-10-26 2012-01-04 江苏多维科技有限公司 Isolation type voltage sensor
WO2012055357A1 (en) * 2010-10-26 2012-05-03 江苏多维科技有限公司 Isolated voltage sensor and isolated voltage sensor using mtj device
CN104011510A (en) * 2011-12-16 2014-08-27 大陆汽车有限责任公司 Sensor for detecting the mass flow rate and the temperature of a fluid flow

Also Published As

Publication number Publication date
CN100504723C (en) 2009-06-24

Similar Documents

Publication Publication Date Title
US8051216B2 (en) Method and integrated circuit for providing enclosure management services utilizing multiple interfaces and protocols
CN100504723C (en) USB data acquisition apparatus for power supply
CN2888537Y (en) A digital communication interface conversion module
CN104361143B (en) A kind of portable data acquisition card and its method
CN101419582B (en) MVB/USB adapter based on SOPC technology and communication method thereof
CN104836877B (en) A kind of method for debugging detection mobile phone
CN100385787C (en) DSP Chip-based excitation controller communication system and its method for realizing USB protocol
CN102937942B (en) Based on the flight simulator universal interface system of usb bus
CN101339542A (en) Data transmission device, control circuit chip and operation mode control method
CN101042813A (en) Intelligent digital experiment system
CN211956463U (en) I/O (input/output) bridge piece based on Feiteng processor
CN201637820U (en) Low-cost programmable logic array logic analyzing device
CN2842558Y (en) The circuit arrangement of getting rid of the sound card of computer glitch
CN2816925Y (en) General bus detecting module
CN2689346Y (en) Universal series bus interface testers
CN202939599U (en) ARINC429 bus test equipment
CN105242603A (en) Power collection terminal with USB OTG interface and debugging upgrade method thereof
CN114416455A (en) Novel CPU detection device of multi-functional application
CN213365381U (en) Main board
CN1545004A (en) High speed USB data communication interface arrangement
CN204595681U (en) A kind of debugging board
Stan et al. Role of usb communication in modem engineering education
CN208012754U (en) A kind of data collecting card suitable for optical fiber vibration sensing
CN1851477A (en) Measuring system and its data interface converting device
CN1304947C (en) Switching equipment of memory analog device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C17 Cessation of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20090624

Termination date: 20110224