CN2850141Y - USB communication apparatus of generator excitation controller based on DSP chip - Google Patents
USB communication apparatus of generator excitation controller based on DSP chip Download PDFInfo
- Publication number
- CN2850141Y CN2850141Y CNU2005201239196U CN200520123919U CN2850141Y CN 2850141 Y CN2850141 Y CN 2850141Y CN U2005201239196 U CNU2005201239196 U CN U2005201239196U CN 200520123919 U CN200520123919 U CN 200520123919U CN 2850141 Y CN2850141 Y CN 2850141Y
- Authority
- CN
- China
- Prior art keywords
- usb
- excitation controller
- chip
- data
- host 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.)
- Expired - Lifetime
Links
Landscapes
- Power Sources (AREA)
Abstract
The utility model relates to a USB communication device of a generator excitation controller based on a DSP chip, which is characterized in that the utility model is based on the situation that a high-performance control chip TMS32OF2812 is used as a core processor, a flexible and convenient CH375 is used as a USB communication control chip, and application software with a perfect and abundant upper computer function is used as the human-computer interface of the application software. The utility model has the advantages and the technical effects that the USB communication device uses a high-performance digital signal processing chip to realize various complicated generator excitation control laws, and the accuracy and the rapidity of an excitation system are improved; through a flexible USB interface and the application software with the perfect and abundant upper computer function, the utility model realizes abundant communication functions that the system oscillation, the idiovariation of system frequency and the current and the voltage variations of the system dynamic process in a generator, which are caused by various open circuit faults, can be continuously recorded without omission, and reliability reports for the existing operating states can be directly obtained by analyzing real-time voltage and current curves through analyzing software.
Description
(1) technical field:
The utility model belongs to the motor automatic field, particularly a kind of USB communication device of the generator excitation controller based on dsp chip.
(2) technical background
Motor automation control is the key areas of Automation of Electric Systems, and the operation conditions of whole electric power system is had material impact.Well behaved excitation controlling device not only can guarantee the reliability and stability of generator operation, generation current machine control theory adopts linear control theory more, core texture mostly is 8 or 16 single-chip microcomputers, communication interface mostly is the RS232 serial communication, and generator itself is a non linear system, therefore the nonlinear Control effect often can not be satisfactory, here Yi Fangmian reason is that the core texture that adopts mostly is single-chip microcomputer, arithmetic speed and precision are limited, add the time delay of peripheral hardware, be difficult to realize the control theory of various complexity, on the other hand, original excitation controller communication system because the RS232 that adopts more, speed is limited, and agreement is simple, is difficult to realize complicated transfer function, make the monitoring and the analysis means of generator operation situation limited, thereby reduced the runnability of generator.
(3) summary of the invention:
The purpose of this utility model is to provide a kind of USB communication device of the generator excitation controller based on dsp chip, it can at first utilize high-powered DSP to realize the high accuracy and the fast processing of signal, pass through USB communication channel flexibly then, various data are required to be transferred to host computer according to difference, and host computer is by monitoring and the analytic function of application software realization to the generator operation situation.
The technical solution of the utility model: a kind of USB communication device of the generator excitation controller based on dsp chip, the host computer and the slave computer that comprise signal acquisition circuit and excitation system, it is characterized in that said host computer is by USB interface-based PC workbench, said slave computer is based on the generator excitation controller of dsp chip, according to the USB control chip, realize its transfer of data between host computer and slave computer.
Above-mentioned said signal acquisition circuit is made up of voltage-current sensor and AC sampling front-end circuit; After handling voltage, the current signal gathered, the AC sampling front-end circuit sends into the A/D module input in the central data treatment circuit.
Above-mentioned said host computer is meant and is equipped with driver and application software and mobile PC that support the communication of USB mouth, the host computer application program is carried out Win32 to equipment I/O and is called, this has called the I/O system service and has accepted, the I/O manager is from suitable I/O request package of this request structure, the I/O manager passes to the driver of hierarchy type with IRP, finally drives journey by the bottom and finishes in hardware and come into contacts with.
Above-mentioned said slave computer is meant with DSP to be the excitation controller of core, and excitation controller is put into designated storage area by signal acquisition circuit and internal digital signal handler with the significant data of computing gained, is used for the exchanges data with host computer.
Above-mentioned said USB control chip refers to by parallel data line and links to each other with slave computer, and links to each other with host computer with communication cable by USB interface, realizes the conversion chip of the USB form transmission of the data between host computer and the slave computer.Slave computer is by data wire, and address strobe line and other boost lines link to each other with the USB control chip.
Method of work of the present utility model is made of following steps: analog to digital conversion circuit is realized collection (2) the dsp chip realization operation of data processing and the storage of data on (1) front-end circuit and the sheet, and (3) slave computer end is realized protocol conversion by the USB control chip; (4) host computer is realized the Hardware I/visit of O mouth and the analyzing and processing of data by driver and application program.
Said step (1) front-end circuit utilizes instrument transformer with the high voltage of generator secondary side, big current conversion voltage signal among a small circle, and by further ratio discharge circuit, the small-signal of analog-to-digital conversion module on the suitable sheet that amplitude limiter circuit, filter circuit will obtain obtains the digital quantity signal of various electric current and voltages then by analog to digital conversion circuit on the sheet.
Dsp chip obtains various data with the digital quantity that analog-to-digital conversion obtains by the AC sampling algorithm in the said step (2), when finishing control law and being used to control output, deposits data in specified memory, as used with the host computer data communication.
Utilize the USB control chip as the intermediate protocol conversion equipment in the said step (3), cooperate slave computer to realize the USB host-host protocol; Slave computer is by interrupt routine, and the data that slave computer is delivered to the control chip buffering area are packaged as automatically that the Frame that meets the USB host-host protocol is sent to host computer or the frame that the host computer transmission comes resolved and obtain the actual data of wanting and be sent to slave computer.
The driver of said step (4) adopts WDM level type driving model, the calling interface of configuration driver and USBD bus driver at first, read the various descriptors of USB device then, obtain available configuration interface and end points, search the appropriate interface descriptor, for each interface is selected transport channel type, and set up corresponding interface descriptor mark, so that application program is communicated by letter with USB device for each interface.
The application program of said step (4) is carried out Win32 to equipment I/O and is called, this calls by the I/O system service and accepts, the I/O manager is from suitable I/O request package of this request structure, the I/O manager passes to the driver of hierarchy type with IRP, finally drives journey by the bottom and finishes in hardware and come into contacts with.
Operation principle of the present utility model: signal acquisition circuit is generator voltage instrument transformer secondary side voltage and Current Transformer Secondary survey current transformation than the low amplitude value alternating voltage, to become that digital quantity signal sends into DSP be in the central data processor of core to analog-to-digital conversion on multidiameter option switch and sheet, central processing unit calculates the silicon controlled trigger angle to input variable by selected control law on the one hand, significant data to gained in the computational process deposits specific memory section on the one hand, make things convenient for the USB communication system to carry out access, the USB control chip is by the access of interrupt requests realization to specific memory section, realize protocol conversion by external firmware simultaneously, finish the communication in host computer, host computer is finished operation to Hardware I/O mouth by application software by calling the Win32API function.
Superiority of the present utility model and technique effect are: utilize high performance control chip DSP to realize the generator excitation rule of various complexity, and realize the USB communication interface of slave computer by novel USB control chip, and host computer combines with excitation controller by USB interface, realize data communication flexibly at a high speed, realize by upper computer analyzing software:
(1) realizes the system oscillation that causes because of various open circuit faults in the recording occurring continuously generator exhaustively, the electric current and the change in voltage of system frequency sudden change and system dynamic course;
(2) can directly draw the reliability report of existing operating state by the real-time voltage-current curve of analysis software;
(3) by various excitation tests and simulated failure test observation electrical power system transient operation conditions, the superiority of more various control theories compares, for parameters optimization provides reference.
(4) description of drawings
General structure schematic diagram in 1 the utility model of accompanying drawing related " based on the generator excitation controller USB communication device of dsp chip ".
Accompanying drawing 2 is the slave computer flow chart of the utility model related " based on the generator excitation controller USB communication device of dsp chip ".
Accompanying drawing 3 is the utility model related " based on the generator excitation controller USB communication device of dsp chip " USB driver layer of structure figure.
Accompanying drawing 4 calls schematic diagram for the utility model related " based on the generator excitation controller USB communication device of dsp chip " device driver.
Accompanying drawing 5 is that the utility model related " based on the generator excitation controller USB communication device of dsp chip " voltage and current signal is collected the front-end circuit schematic diagram.
(5) specific embodiments
Implementation method: a kind of generator excitation controller USB communication device based on dsp chip, it is characterized in that it the high-performance Electric Machine Control special DSP chip TMS320 F2812 of the up-to-date release of Texas Instruments be central processing unit, signals collecting leading portion circuit and A/D change-over circuit; The significant data that while DSP will calculate gained is placed on designated storage area, realize the USB firmware program by USB communication interface chip CH375, slave computer cooperates realizes the realization of USB host-host protocol, and upper computer end realizes Hardware I/visit of O mouth and the analyzing and processing of data (structural representation such as Fig. 1) by driver and application program by the position machine.
The utilization of above-mentioned said signals collecting front-end circuit is the voltage signal of 0~3V from the high voltage of the generator secondary side of instrument transformer conversion, big current conversion; as Fig. 5; and utilize D11, D12, D21, D22 to constitute the input saturation protection; R24, R252, R26, R34, R35, R36, C11, C12, C16, C17 constitute the instrument transformer rc filter circuit, and the signal of gained is directly sent into 16 A/D ALT-CH alternate channels of DSP after photoelectricity is isolated.
Above-mentioned said digital signal that goes up A/D conversion gained deposits appointed buffer in, CPU carries out calculation process by the effective value of fast fourier transform calculating voltage electric current and with reference value, realize complicated control algolithm, draw next step trigger angle at last, output control controllable silicon power circuit.
Writing of above-mentioned said slave computer end USB firmware program:
USB control chip of the present utility model adopts the Nanjing CH375 chip of permanent company that oozes, and uses its external firmware mode, promptly under external firmware mode, by the various by oneself as required USB requests of external microcontroller.If select outside firmware mode for use, the DSP end need be done following work (flow chart such as Fig. 2) as requested:
(1) after DSP started, at first initialization CH375 was provided with interruption then for using the USB device pattern of outside firmware.
(2) have no progeny in DSP receives, use the GET-STATUS order to obtain interrupt status, analyzing and processing is as follows:
(1) if the OUT of end points 2 or 1 success then uses RD-USB-DATA order reading of data to reinform the main program processing.
(2) if the IN of end points 2 or 1 success then uses UNLOCK-USB buffer release district to reinform the main program processing.
(3) if RD_USB_DATA order reading of data is then used in the SETUP of end points 0 success, analyzing and processing is as follows:
1. if USB request CLEAR_FEATURE handles according to FEATURE in the request and endpoint number etc. analyses so,, can use the SET_ENDP order for ENDPOINT_HALT.
2. if USB asks GET_DESCRIPTOR, use the WR_USB_DATA3 order to return preceding 8 bytes of descriptor so, and preserve this USB request command and current descriptor counting, so that the back continues to return.
3. if USB request SET_ADDRESS preserves this USB request command so.
4. if USB request SET_CONFIG preserves the value of setting so, whether successful notice main program USB initialization is.
5. if USB request GET_CONFIG uses the WR_USB_DATA3 order to return current Configuration Values so.
6. if USB request GET_INTERFACE uses the WR_USB_DATA3 order to return current interface value so.
7. if USB request GET_STATUS uses the WR_USB_DATA3 order to return the current state value so.
8. all the other USB requests are handled as required, do not support then to use SET_ENDP2 or 3 order settings to reply and are STALL.
(4) if RD_USB_DATA order reading of data is then used in the OUT of end points 0 success, can forgo data.
(5) if the IN of end points 0 success is then handled as follows according to the USB request command of having preserved:
1. if USB request GET_DESCRIPTOR uses WR_USB_DATA3 order continuing to return residue descriptor so.
2. if USB request SET_ADDRESS uses the SET_USB_ADDR order that the USB address is set so.
3. any USB request comprises above-mentioned request, uses the UNLOCK_USB order before interruption is withdrawed from.
(6) if usb bus resets, then clear Configuration Values etc., CH375 can automatically clear USB address and synchronous triggering sign.
(7) interrupt for any one CH375, must unique corresponding UNLOCK_USB order or RD_USB_DATA order.
Writing of above-mentioned said host computer driver:
In the driver of USB device (structure chart such as Fig. 3), take the WDM structure of Microsoft equally, exploitation WDM driver has two kinds of methods, a kind of 98DDK and 2000DDK Driver Development bag that utilizes Microsoft to provide, another kind is the specific drivers developing instrument, as the DriverStudio of CompuWare NUMEGA company and the WinDriver of JUNGO company.
For the ooze CH375USB control chip of permanent company of Nanjing, method is directly to revise the source code of its general driving program the most fast, recompilates with the DDK of Windows and generates own required driving routine.The general driving program of CH375 has possessed itself to be explained the global function of the I/O control code of control transmission, bulk transfer, interruption transmission etc.
Writing of above-mentioned said host computer application program:
Application program is carried out Win32 to equipment I/O and is called (as Fig. 4), this has called the I/O system service and has accepted, the I/O manager is from suitable I/O request package of this request structure, and the I/O manager passes to the driver of hierarchy type with IRP, finally drives journey by the bottom and finishes in hardware and come into contacts with.
CH375 provides Applied layer interface at computer terminal, and Applied layer interface is the API towards the function application that is provided by the CH375 dynamic link library (DLL), comprising: equipment control API, transfer of data API, Interrupt Process API.
Simultaneously, utilize VC++ that Microsoft provides and MFC frame clsss function to realize various demonstrations: to comprise real-time curve display voltage current data, active power and reactive power cyclic curve to data; Realize the system oscillation that causes because of various open circuit faults in the recording occurring continuously generator exhaustively, the electric current and the change in voltage of system frequency sudden change and system dynamic course; Can directly draw the reliability report of existing operating state by the real-time voltage-current curve of analysis software.
Claims (5)
1, a kind of USB communication device of the generator excitation controller based on dsp chip, the host computer and the slave computer that comprise signal acquisition circuit and excitation system, it is characterized in that said host computer is by USB interface-based PC workbench, said slave computer is based on the generator excitation controller of dsp chip, according to the USB control chip, realize its transfer of data between host computer and slave computer.
2,, it is characterized in that said signal acquisition circuit is made up of voltage-current sensor and AC sampling front-end circuit according to the USB communication device of the said a kind of generator excitation controller based on dsp chip of claim 1; After handling voltage, the current signal gathered, the AC sampling front-end circuit sends into the A/D module input in the central data treatment circuit.
3, according to the USB communication device of the said a kind of generator excitation controller based on dsp chip of claim 1, it is characterized in that said host computer is meant outfit driver and application software and mobile PC that support the communication of USB mouth, PC provides the application platform as the visit slave computer, equipment I/O is carried out Win32 to be called, this has called the I/O system service and has accepted, the I/O manager is from suitable I/O request package of this request structure, the I/O manager passes to the driver of hierarchy type with IRP, finally drives journey by the bottom and finishes in hardware and come into contacts with.
4, according to the USB communication device of the said a kind of generator excitation controller based on dsp chip of claim 1, it is characterized in that it is the excitation controller of core that said slave computer is meant with DSP, excitation controller is put into designated storage area by signal acquisition circuit and internal digital signal handler with the significant data of computing gained, is used for the exchanges data with host computer.
5, according to the USB communication device of the said a kind of generator excitation controller based on dsp chip of claim 1, it is characterized in that said USB control chip refers to by parallel data line links to each other with slave computer, and link to each other with host computer with communication cable by USB interface, realize the conversion chip of the USB form transmission of the data between host computer and the slave computer, slave computer is by data wire, and address strobe line and other boost lines link to each other with the USB control chip.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNU2005201239196U CN2850141Y (en) | 2005-12-12 | 2005-12-12 | USB communication apparatus of generator excitation controller based on DSP chip |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNU2005201239196U CN2850141Y (en) | 2005-12-12 | 2005-12-12 | USB communication apparatus of generator excitation controller based on DSP chip |
Publications (1)
Publication Number | Publication Date |
---|---|
CN2850141Y true CN2850141Y (en) | 2006-12-20 |
Family
ID=37522611
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNU2005201239196U Expired - Lifetime CN2850141Y (en) | 2005-12-12 | 2005-12-12 | USB communication apparatus of generator excitation controller based on DSP chip |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN2850141Y (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100385787C (en) * | 2005-12-12 | 2008-04-30 | 天津理工大学 | DSP Chip-based excitation controller communication system and its method for realizing USB protocol |
CN106707851A (en) * | 2016-12-06 | 2017-05-24 | 上海纳信实业有限公司 | Excitation control system data recorder based on dual-core DSP |
-
2005
- 2005-12-12 CN CNU2005201239196U patent/CN2850141Y/en not_active Expired - Lifetime
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100385787C (en) * | 2005-12-12 | 2008-04-30 | 天津理工大学 | DSP Chip-based excitation controller communication system and its method for realizing USB protocol |
CN106707851A (en) * | 2016-12-06 | 2017-05-24 | 上海纳信实业有限公司 | Excitation control system data recorder based on dual-core DSP |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN1777018A (en) | DSP Chip-based excitation controller communication system and its method for realizing USB protocol | |
CN1851668A (en) | Sheet system chip, sheet system chip tracking debug system and method | |
CN1641505A (en) | Simulated measuring system for whole vehicle controller | |
CN1928576A (en) | Chip testing system and method | |
CN2850141Y (en) | USB communication apparatus of generator excitation controller based on DSP chip | |
CN101187811A (en) | Generator excitation controller communication system based on DSP and its working method | |
CN200983568Y (en) | USB communication device of excitation controller based on DSP chip | |
CN102611836B (en) | High-speed image collecting method based on Labview | |
CN101051070A (en) | One chip voltage high speed cruising inspection system facing fuel cell | |
CN1235278C (en) | Emulate testing system and testing method for universal digital circuit | |
CN1949184A (en) | Method and system of chip checking | |
CN101315555A (en) | USB communication system of field excitation controller based on DSP chip, and operation method thereof | |
CN1838029A (en) | USB data acquisition apparatus for power supply | |
CN207337649U (en) | A kind of LXI data collectors of high-speed transfer | |
CN1924780A (en) | Signal processing method for USB bus based built-in virtual instrument | |
CN101063952A (en) | Universal serial bus host controller rapid testing system and method thereof | |
CN202793669U (en) | Online tension detection system of contact wire barrow | |
CN1848093A (en) | Method for debugging high configuration and power supply interface module in basic inputting and outputting system | |
CN107564265A (en) | The LXI data acquisition units and its method of work of a kind of high-speed transfer | |
CN101063703A (en) | Digital type alternating current-direct current partial discharge detecting method and device | |
CN1794243A (en) | Data buffer storage unit and its implementing method | |
CN2899310Y (en) | Network server based on ARM9 device | |
CN1896976A (en) | On-line scaling system and method | |
CN1900731A (en) | Logic module detecting system and method | |
CN202305551U (en) | Engine speed signal instrument for complete vehicle test |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
AV01 | Patent right actively abandoned |
Effective date of abandoning: 20080430 |
|
C25 | Abandonment of patent right or utility model to avoid double patenting |