CN101594719B - Offline control device - Google Patents

Offline control device Download PDF

Info

Publication number
CN101594719B
CN101594719B CN200910083852.0A CN200910083852A CN101594719B CN 101594719 B CN101594719 B CN 101594719B CN 200910083852 A CN200910083852 A CN 200910083852A CN 101594719 B CN101594719 B CN 101594719B
Authority
CN
China
Prior art keywords
module
control
data processing
processing module
data
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 - Fee Related
Application number
CN200910083852.0A
Other languages
Chinese (zh)
Other versions
CN101594719A (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.)
Beijing Zhongqing Micro Digital Equipment Development Co Ltd
Original Assignee
Beijing Zhongqing Micro Digital Equipment Development 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 Beijing Zhongqing Micro Digital Equipment Development Co Ltd filed Critical Beijing Zhongqing Micro Digital Equipment Development Co Ltd
Priority to CN200910083852.0A priority Critical patent/CN101594719B/en
Publication of CN101594719A publication Critical patent/CN101594719A/en
Application granted granted Critical
Publication of CN101594719B publication Critical patent/CN101594719B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Programmable Controllers (AREA)

Abstract

The invention discloses an offline control device, which comprises a storage module, a control module and a data processing module, and the invention also discloses an offline control method at the same time. The invention controls a storage card and an external equipment interface therewith through a microcontroller, processes data through a programmable device, reduces the performance requirement on the microcontroller and the programmable logic device through the structure connecting relation, improves the working efficiency, facilitates model selection and reduces the product cost.

Description

Offline control device
Technical field
The present invention relates to LED control technology field, in particular, a kind of LED offline control device.
Background technology
LED shows that the control of off line control program has data volume large, and particular algorithm requires high feature to controller hardware.Current off line is controlled product following several solution: scheme one, as Fig. 1, microcontroller uses SPI communication mode operation store card, according to the data memory format of computing machine, obtains data and is for data processing, and generates the off line control program of light fixture control signal, this scheme is used microcontroller to carry out data processing, high to microcontroller requirement, all there is bottleneck problem in data-handling efficiency and traffic rate, controls and count less, display performance is low, is difficult to meet LED and shows the demand of controlling; Scheme two, as Fig. 2, the SD bus interface direct control SD card that uses high-end microcontroller to carry, according to computer data storage format, obtain, without processing, directly send, by other sub-control plates, carry out data processing and obtain light fixture control signal, yet high-end microcontroller is only done the application of data layout transition of communications, also need the sub-control plate of peripheral some to do data-switching generation light fixture signal, device performance utilizes insufficient cost up; Scheme three, the control mode of use programmable logic device (PLD), the similar scheme two of structure, display performance and control are counted higher than scheme two, but still exist exploitation complicated, change inflexible shortcoming.
Therefore, there is defect in prior art, needs to improve.
Summary of the invention
Technical matters to be solved by this invention is, for the deficiencies in the prior art, to provide a kind of novel offline control device and off line control method.
Technical scheme of the present invention is as follows:
First the present invention provides a kind of offline control device, comprises memory module, control module and data processing module; Wherein,
Described memory module arranges control end and data terminal, and described data processing module arranges control end;
Described control module is connected with described data processing module control end with described memory module control end respectively,
Described data processing module is also connected with described memory module data terminal,
Described control module sends control command to described memory module and described data processing module, and under the control of described control module, described data processing module is delivered to described data processing module by file system data and control documents data;
Described data processing module, in response to the control signal of described control module, is changed described file system data, passes to described control module, and described data processing module is processed described control documents data to generate control signal output.
Described offline control device, described Serial Peripheral Interface (SPI) comprises direction control end, leads from going out end, leading from entering end and clock signal terminal; Described clock signal terminal is connected with described data processing module with described memory module, for providing work clock to described memory module and described data processing module; Described direction control end, master enter from going out end to go out to be connected with described commutating circuit from entering end with main.
Described offline control device, described memory module is safe digital card (SD card).
Described offline control device, also comprises load module, and described load module is connected with described control module, for to described control module input of control commands.
Described offline control device, also comprises display module, and described display module is connected with described control module, for display status information.
Described offline control device, described control module is microcontroller.
Described offline control device, described data processing module is on-site programmable gate array FPGA or complex programmable logic device (CPLD).
Described offline control device, described control module and described data processing module are integrated in monolithic integrated optical circuit.
The present invention also provides a kind of method that is applied to device described in claim 1, comprises the following steps:
A1: described control module is carried out initialization by Serial Peripheral Interface (SPI) to memory module;
A2: described control module reads the data of described memory module file system;
A3: described data processing module reads control documents data from described memory module;
A4: the controlled signal of described data processing module processing controls file data;
A5: export described control signal.
Described method, the concrete following steps of carrying out of described steps A 2:
A21: described control module sends the order of reading described memory module, obtains described memory module effective response;
A22: described control module is controlled described data processing module in data receiving state;
A23: described memory module is exported to described data processing module by described file system data, described data processing module, by described file system data conversion figure place, deposits the asynchronous FIFO of described data processing module in;
A24: described control module reads described file system data from described asynchronous FIFO.
Described method, described steps A 21, sends described order by described control module by Serial Peripheral Interface (SPI), and obtains described memory module effective response.
Described method, the concrete following steps of carrying out of described steps A 3:
A31: described control module obtains the relevant information of described control documents according to described file system data;
A32: according to described file-related information, described control module sends reading order, and obtain the effective response of described memory module;
A33: described control module is controlled described data processing module in data processing state;
A34: under described control module is controlled, described memory module is exported to described data processing module by described control documents.
Described method, in steps A 23, described memory module is exported 4 bit data, and described data processing module is converted into 8 bit data.
Adopt such scheme, the present invention by control module control store module and and external apparatus interface, the data processing module of tailor-made algorithm is done data processing, each is with chief, the performance requirement of reduction to control module and data processing module, facilitates type selecting to reduce cost of products.
Accompanying drawing explanation
Fig. 1 is the theory diagram of prior art;
Fig. 2 is the theory diagram of prior art;
Fig. 3 is the theory diagram of a kind of offline control device embodiment of the present invention;
Fig. 4 is the process flow diagram of a kind of off line control method of the present invention embodiment.
Embodiment
Below in conjunction with the drawings and specific embodiments, the present invention is described in detail.
Embodiment 1
As shown in Figure 3, the present embodiment provides a kind of LED off line to control data processing equipment, comprises memory module 11, control module 12 and data processing module 13; Preferably, control module 12 is connected with memory module 11 control end CMD by serial peripheral equipment interface SPI (Serial Peripheral Interface), for example, by other communication modes (CPU parallel port mode), be connected with data processing module 13 control ends, realize data communication function, data processing module 13 is also connected with memory module 11 data terminals, control module 12, for sending control command to memory module 11 and data processing module 13, is controlled data processing module from memory module reading out data; Data processing module 13 is for the control signal in response to control module 12, from memory module file reading system data and control documents data, then data processing module is processed control documents data, obtains light fixture control signal, and exports light fixture control signal.
At data processing module, common data processing method is that 256 grades of grey scale signals are processed and obtained brightness control signal, belongs to common practise, and does not belong to emphasis of the present invention, do not repeat them here.
What deserves to be explained is, Serial Peripheral Interface (SPI) (Serial Peripheral Interface) SPI, it can make microcontroller and various peripherals communicate with exchange message with serial mode, and this interface is general uses 4 lines: serial time clock line (SCK), mainly enter from going out data line (MISO), mainly going out from entering the slave selection line (SS) of data line (MOSI) and Low level effective.
In the present embodiment, adopt the microcontroller (MCU) with SPI interface, this SPI interface comprises that clock signal terminal SCK, master go out from entering to hold MOSI, master to enter from going out to hold MISO, direction control end DIR, clock signal terminal SCK is connected with data processing module 13 with memory module 11, for providing work clock to memory module 11 and data processing module 13; Direction control end DIR, master enter from going out to hold MISO to go out from entering to hold MOSI to be connected with commutating circuit 131 with master.The directional control circuit 131 arranging by data processing module 13 is (for ease of drawing, directional control circuit 131 is plotted in the outside of data processing module 13) complete communicating by letter between control module 12 and memory module 11, wherein direction control end DIR controls for the direction of directional control circuit 131, MOSI moves by memory module CMD line traffic control memory module, meanwhile, MISO receives the feedback signal of memory module by memory module CMD line.Adopt this high speed of SPI, efficient interfacing, can meet LED and control the feature that data volume is large, message transmission rate is high.
Embodiment 2
On the basis of embodiment 1, memory module 11 is used mobile memory card, SD card for example, be plugged on for fixing the fixed slot of this storage card, control module 12 adopts microcontroller (Micro Controller Unit), AVR single-chip microcomputer for example, data processing module 13 preferably adopts on-site programmable gate array FPGA (Field-Programmable Gate Array) or complex programmable logic device (CPLD) (Complex Programmable Logic Device), the Stratix III Series FPGA that for example can adopt altera corp to release.Single-chip microcomputer is cheap, and control ability is stronger, and FPGA data-handling capacity is powerful, and applying flexible, and the two,, in conjunction with respectively getting the chief, realizes low-cost, high performance target.
Embodiment 3
On the basis of embodiment 1, the offline control device of the present embodiment also comprises load module (not shown), such as being hand-hold wireless input equipment, wired input equipment, or key-press input equipment, it is connected with control module 12, be used for to control module 12 input of control commands, such as controlling the control command of play content, broadcasting speed, broadcast mode.
Another example, the off line of the present embodiment is controlled data processing equipment can also comprise display module
(not shown), such as adopting liquid crystal display, digital tube display device or pilot lamp, provides man-machine communication's platform, and this display module 16 is connected with control module 12, for display system work state information.
Another example, in off line, control in data processing equipment, can as required control module 12 and data processing module 13 be integrated in monolithic integrated optical circuit, such as using programmable logic device (PLD) to make controller " soft core " and utilize, should " soft core " complete microcontroller partial function, the resource of other programmable logic device (PLD) completes data processing function, or adopt monolithic integrated the scheme of microcontroller of programmable logic device (PLD), by FPGA (Field Programmable Gate Array) integrated on microcontroller, partly completed the method for tailor-made algorithm data processing; Adopt monolithic integrated optical circuit, simplify circuit, facilitate wires design.
Embodiment 4
The present embodiment provides a kind of off line control method that is applied to the various embodiments described above; Fig. 4 is the method process flow diagram; the first step; after system powers on; by control module, by serial peripheral equipment interface SPI, memory module is carried out to initialization, mainly comprise that storage card inserts detection, write-protect detection, electrification reset, the switching of storage card state etc.
Second step, control module reads memory module file system data; Preferably, this step can realize like this: control module sends the order (file system comprises the computer file systems such as FAT16, FAT32 and NTFS) of reading memory module file system data by serial peripheral equipment interface SPI, and obtains memory module effective response; Preferably, when direction control signal DIR is output as 1, control module is used MOSI line to send and is read the order of memory module to the CMD line of memory module, and when DIR is output as 0, control module receives the memory module response feedback signal on CMD line by MISO line; Meanwhile, under the control of control module control signal, data processing module, in data receiving state, prepares to receive the file system data from memory module; Memory module is exported file system data, and data processing module is changed figure place by file system data, such as, 4 bit data are converted to 8 bit data, deposit asynchronous FIFO (FIRST IN FIRST OUT, first-in first-out) in; Control module is from above-mentioned asynchronous FIFO file reading system data.
The 3rd step, data processing module reads light fixture control documents data from memory module; Preferably, this step realizes like this: control module is according to the file system data from above-mentioned asynchronous FIFO, such as DBR (DOS BOOT RECORD), FAT (File Allocation Table), obtain the relevant information of light fixture control documents, mainly comprise partition information, bunch information, file address information, document size information; According to above-mentioned relevant information, obtain the concrete memory address of file, control module sends and reads the order of address above mentioned, and obtains the effective response of memory module; Meanwhile, control module is controlled data processing module in data processing state, prepares to accept and process the light fixture control documents from memory module; Memory module is exported to data processing module by light fixture control documents.
The 4th step, data processing module is processed light fixture control documents data and is obtained light fixture control signal, such as grey scale signal is processed into brightness control signal; The 5th step, exports above-mentioned light fixture control signal.
Adopt said method to make full use of control function and the powerful data processing function of data processing module (as FPGA, CPLD etc.) of microcontroller, learn from other's strong points to offset one's weaknesses, the performance requirement of reduction to microcontroller and data processing module, facilitates type selecting, reduces cost of products.
Should be understood that, for those of ordinary skills, can be improved according to the above description or convert, and all these improvement and conversion all should belong to the protection domain of claims of the present invention.

Claims (8)

1. an offline control device, is characterized in that, comprises memory module, control module and data processing module; Wherein,
Described memory module arranges control end and data terminal, and described data processing module arranges control end;
Described control module is connected with described memory module control end by Serial Peripheral Interface (SPI) and directional control circuit successively; Described control module is also connected with described data processing module control end,
Described data processing module is also connected with described memory module data terminal,
Described control module sends control command to described memory module and described data processing module, and under the control of described control module, described data processing module is from memory module file reading system data and control documents data;
Described data processing module is in response to the control signal of described control module, described file system data is changed, pass to described control module, described control module is according to the file system data after conversion, control described data processing module in data processing state, prepare to receive and process the control documents data from described memory module, described data processing module is processed described control documents data to generate control signal output;
Described Serial Peripheral Interface (SPI) comprises direction control end, leads from going out end, leading from entering end and clock signal terminal; Described clock signal terminal is connected with described data processing module with described memory module, for providing work clock to described memory module and described data processing module; Described direction control end, master enter from going out end to go out to be connected with described directional control circuit from entering end with main;
Also comprise load module, described load module is connected with described control module, for to described control module input of control commands; Described load module is hand-hold wireless input equipment or wired input equipment.
2. offline control device according to claim 1, is characterized in that, described memory module is safe digital card (SD card).
3. offline control device according to claim 1, is characterized in that, also comprises display module, and described display module is connected with described control module, for display status information.
4. offline control device according to claim 1, is characterized in that, described control module is microcontroller.
5. offline control device according to claim 1, is characterized in that, described data processing module is on-site programmable gate array FPGA or complex programmable logic device (CPLD).
6. offline control device according to claim 1, is characterized in that, described control module and described data processing module are integrated in monolithic integrated optical circuit.
7. a method that is applied to offline control device described in claim 1, is characterized in that, comprises the following steps:
A1: described control module, to described memory module initialization, is inserted detection, write-protect detection, electrification reset, the switching of storage card state to storage card;
A2: described control module reads the data of described memory module file system;
A3: described data processing module reads control documents data from described memory module;
A4: the controlled signal of described data processing module processing controls file data;
A5: export described control signal;
The concrete following steps of carrying out of described steps A 2:
A21: send described order by described control module by Serial Peripheral Interface (SPI), and obtain described memory module effective response; When direction control signal DIR is output as 1, control module is used MOSI line to send and is read the order of memory module to the CMD line of memory module, and when DIR is output as 0, control module receives the memory module response feedback signal on CMD line by MISO line;
A22: described control module is controlled described data processing module in data receiving state;
A23: described memory module is exported to described data processing module by described file system data, described data processing module, by described file system data conversion figure place, deposits the asynchronous FIFO of described data processing module in;
A24: described control module reads described file system data from described asynchronous FIFO;
The concrete following steps of carrying out of described steps A 3:
A31: described control module obtains the relevant information of described control documents according to described file system data;
A32: according to described file-related information, described control module sends reading order, and obtain the effective response of described memory module;
A33: described control module is controlled described data processing module in data processing state;
A34: under described control module is controlled, described memory module is exported to described data processing module by described control documents.
8. method according to claim 7, is characterized in that, in steps A 23, described memory module is exported 4 bit data, and described data processing module is converted into 8 bit data.
CN200910083852.0A 2009-05-08 2009-05-08 Offline control device Expired - Fee Related CN101594719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910083852.0A CN101594719B (en) 2009-05-08 2009-05-08 Offline control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910083852.0A CN101594719B (en) 2009-05-08 2009-05-08 Offline control device

Publications (2)

Publication Number Publication Date
CN101594719A CN101594719A (en) 2009-12-02
CN101594719B true CN101594719B (en) 2014-12-03

Family

ID=41409083

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910083852.0A Expired - Fee Related CN101594719B (en) 2009-05-08 2009-05-08 Offline control device

Country Status (1)

Country Link
CN (1) CN101594719B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105118440A (en) * 2015-09-29 2015-12-02 成都贝发信息技术有限公司 LED (Light Emitting Diode) large screen display system with wide visual range
CN105118439A (en) * 2015-09-29 2015-12-02 成都贝发信息技术有限公司 Novel LED (light-emitting diode) large screen display device
CN105260150A (en) * 2015-09-29 2016-01-20 成都贝发信息技术有限公司 Dual-CPU control based information display system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417768A (en) * 2002-11-08 2003-05-14 卢建 Movable graphic display LED device
EP1647964A2 (en) * 2004-10-18 2006-04-19 Genesis Microchip, Inc. Virtual extended display information data (EDID) in a flat panel controller
CN101329835A (en) * 2008-05-20 2008-12-24 北京巨数数字技术开发有限公司 LED luminous element for integrated display control device
CN201234382Y (en) * 2008-07-31 2009-05-06 华南理工大学 SD card data reading transmission system based on FPGA and AVR

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1417768A (en) * 2002-11-08 2003-05-14 卢建 Movable graphic display LED device
EP1647964A2 (en) * 2004-10-18 2006-04-19 Genesis Microchip, Inc. Virtual extended display information data (EDID) in a flat panel controller
CN101329835A (en) * 2008-05-20 2008-12-24 北京巨数数字技术开发有限公司 LED luminous element for integrated display control device
CN201234382Y (en) * 2008-07-31 2009-05-06 华南理工大学 SD card data reading transmission system based on FPGA and AVR

Also Published As

Publication number Publication date
CN101594719A (en) 2009-12-02

Similar Documents

Publication Publication Date Title
CN103064805B (en) SPI controller and communication means
CN101345629B (en) Double on-site bus interface converter
CN201604665U (en) Communication interface equipment of train control center
CN202084028U (en) Modularized multi-serial port expanding device
CN103454996A (en) Master-slave computer system and control method thereof
CN202748785U (en) Double-channel 1553B and RS422 converting card
CN203812236U (en) Data exchange system based on processor and field programmable gate array
CN104090857A (en) System and method for expanding peripheral interfaces of intelligent terminal
CN101594719B (en) Offline control device
CN2833681Y (en) HART interface holding RS232 and USB dual interface
CN101494543A (en) Bluetooth wireless hub and apparatus based on Bluetooth wireless transmission
CN109407574B (en) Multi-bus selectable output control device and method thereof
CN201909987U (en) Constant-current supply networking system on basis of serial bus
CN102445981B (en) Data transmission system and data transmission method
CN101594718A (en) A kind of offline control device
CN201556201U (en) Configurable serial communication device
CN205721225U (en) A kind of electric power data acquisition and communication system
CN210986125U (en) Embedded industrial control all-in-one machine
CN201226150Y (en) Electronic device
CN210691255U (en) Synchronous awakening device
CN203025276U (en) Tester of capacitive touch screen module
CN202551030U (en) Bluetooth adapter and Bluetooth communication system
CN202495661U (en) USB conversion device
CN102364452A (en) Realization method for thermal plugging use of PS2 interface keyboard and mouse
CN201869223U (en) Machine to machine terminal, communication module and data sending 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
DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Beijing Zhongqing Micro Digital Equipment Development Co., Ltd.

Document name: Notification to Pay the Fees

DD01 Delivery of document by public notice
DD01 Delivery of document by public notice

Addressee: Beijing Zhongqing Micro Digital Equipment Development Co., Ltd.

Document name: Notification of Termination of Patent Right

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20141203

Termination date: 20180508