CN101594718A - A kind of offline control device - Google Patents

A kind of offline control device Download PDF

Info

Publication number
CN101594718A
CN101594718A CNA2009100838516A CN200910083851A CN101594718A CN 101594718 A CN101594718 A CN 101594718A CN A2009100838516 A CNA2009100838516 A CN A2009100838516A CN 200910083851 A CN200910083851 A CN 200910083851A CN 101594718 A CN101594718 A CN 101594718A
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.)
Withdrawn
Application number
CNA2009100838516A
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.)
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 CNA2009100838516A priority Critical patent/CN101594718A/en
Publication of CN101594718A publication Critical patent/CN101594718A/en
Withdrawn legal-status Critical Current

Links

Images

Abstract

The invention discloses a kind of offline control device, comprise memory module, control module and data processing module; The invention also discloses a kind of off line control method simultaneously; The present invention by the microprocessor controls storage card and and external apparatus interface, by programming device data are handled, by above structure annexation, reduction is to the performance requirement of microcontroller and programmable logic device, increase work efficiency, make things convenient for type selecting, reduce product cost.

Description

A kind of 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 controlling schemes has data volume big, and particular algorithm is to the demanding characteristics of controller hardware.Present off line control product has following several solution: scheme one, as Fig. 1, microcontroller uses SPI communication mode operation store card, obtains data and is for data processing according to the data memory format of computer, generates the off line controlling schemes of light fixture control signal, this scheme uses microcontroller to carry out data processing, microcontroller is required height, and all there are bottleneck problem in data-handling efficiency and traffic rate, and control is counted few, display performance is low, is difficult to satisfy the demand that LED shows control; Scheme two, as Fig. 2, the SD bus interface direct control SD card that uses high-end microcontroller to carry, obtain according to the computer data storage format, directly send without handling, divide the control plate to carry out data processing by other and obtain the light fixture control signal, yet high-end microcontroller is only done the application of data format transition of communications, also need the branch control plate of peripheral some to do data transaction generation light fixture signal, device performance utilizes insufficient cost up; Scheme three, the control mode of use programmable logic device, similar scheme two, display performance and control are counted and are higher than scheme two, but still exist exploitation complicated, change inflexible shortcoming.
Therefore, there is defective in prior art, needs to improve.
Summary of the invention
Technical problem to be solved by this invention is at 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:
The present invention at first provides a kind of offline control device, comprises memory module, control module and data processing module; Wherein,
Described memory module is provided with control end and data terminal, and described data processing module is provided with control end;
Described control module is connected with described data processing module control end with described memory module control end respectively, described control module is provided with Serial Peripheral Interface (SPI), described data processing module is provided with a commutating circuit, and described control module is connected with described memory module control end with described commutating circuit by described Serial Peripheral Interface (SPI);
Described data processing module also is connected with described memory module data terminal;
Described control module is to described memory module and described data processing module transmitting control commands, and under the control of described control module, described data processing module arrives described data processing module with file system data and control documents data passes;
Described data processing module is changed described file system data in response to the control signal of described control module, passes to described control module, and described data processing module is handled described control documents data and generated control signal and output.
Described offline control device, described Serial Peripheral Interface (SPI) comprise the direction control end, lead from going out end, leading from going into end and clock signal terminal; Described clock signal terminal is connected with described data processing module with described memory module, is used for providing work clock to described memory module and described data processing module; Described direction control end, master go into from going out end to go out to be connected with described commutating circuit from going into end with main.
Described offline control device, described memory module are safe digital card (SD card).
Described offline control device also comprises input module, and described input module is connected with described control module, is used 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, is used for display status information.
Described offline control device, described control module are microcontroller MCU.
Described offline control device, described data processing module are 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 the monolithic integrated circuit.
The present invention also provides a kind of method that is applied to the described device of claim 1, may further comprise the 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 the 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 described steps A 2 concrete following steps of carrying out:
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 and is in data receiving state;
A23: described memory module is exported to described data processing module with described file system data, and described data processing module deposits described file system data conversion figure place 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 described steps A 3 concrete following steps of carrying out:
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 obtains the effective response of described memory module;
A33: described control module is controlled described data processing module and is in the data processing state;
A34: under the described control module control, described memory module is exported to described data processing module with described control documents.
Described method, in the 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 uses the chief, reduction makes things convenient for type selecting to reduce product cost to the performance requirement of control module and data processing module.
Description of drawings
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 flow chart 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, present embodiment provides a kind of LED off line control data processing unit, 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), be connected with data processing module 13 control ends by other communication modes (for example CPU parallel port mode), realize data communication function, data processing module 13 also is connected with memory module 11 data terminals, control module 12 is used for to memory module 11 and data processing module 13 transmitting control commands, and the control data processing module is from the memory module reading of data; Data processing module 13 is used for the control signal in response to control module 12, read file system data and control documents data from memory module, data processing module is handled the control documents data then, obtains the light fixture control signal, and output light fixture control signal.
At data processing module, common data processing method is 256 grades of grey scale signals to be handled obtain 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 ancillary equipment communicate with exchange message with serial mode, and this interface is general to use 4 lines: serial time clock line (SCK), mainly go into from going out data wire (MISO), mainly going out from going into the effective slave selection wire of data wire (MOSI) and low level (SS).
Adopt the microcontroller (MCU) that has the SPI interface in the present embodiment, this SPI interface comprises that clock signal terminal SCK, master go out from going into to hold MOSI, master to go into 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, is used for providing work clock to memory module 11 and data processing module 13; Direction control end DIR, master go into from going out to hold MISO to go out from going into to hold MOSI to be connected with commutating circuit 131 with the master.The directional control circuit 131 that is provided with by data processing module 13 is (for ease of drawing, directional control circuit 131 is plotted in the outside of data processing module 13) finish communicating by letter between control module 12 and the memory module 11, wherein direction control end DIR is used for the direction control of directional control circuit 131, MOSI is by the action of memory module CMD line traffic control memory module, simultaneously, MISO receives the feedback signal of memory module by memory module CMD line.Adopt this high speed of SPI, interfacing efficiently, can satisfy the characteristics that LED control data amount is big, 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 the fixed slot that is used for fixing this storage card, control module 12 adopts microcontroller MCU (Micro Controller Unit), AVR single-chip microcomputer for example, data processing module 13 preferred on-site programmable gate array FPGA (Field-Programmable Gate Array) or the complex programmable logic device (CPLD)s (Complex Programmable Logic Device) of adopting, 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 the FPGA data-handling capacity is powerful, and applying flexible, and the two realizes low-cost, high performance target in conjunction with respectively getting the chief.
Embodiment 3
On the basis of embodiment 1, the offline control device of present embodiment also comprises the input module (not shown), such as being hand-hold wireless input equipment, wired input equipment, perhaps press key inputting device, it is connected with control module 12, be used for to control module 12 input of control commands, such as the control command of controls playing content, broadcasting speed, broadcast mode.
Another example, the off line control data processing unit of present embodiment can also comprise the display module (not shown), such as adopting LCD, digital tube display device or indicator light, man-machine communication's platform is provided, this display module 16 is connected with control module 12, is used for the display system work state information.
Another example, in off line control data processing unit, can as required control module 12 and data processing module 13 be integrated in the monolithic integrated circuit, also utilize and " soft nuclear " to finish the microcontroller partial function such as using programmable logic device to make controller " soft nuclear ", the resource of other programmable logic devices is finished data processing function, perhaps adopt monolithic integrated the scheme of microcontroller of programmable logic device, partly finish the method for tailor-made algorithm data processing by FPGA (Field Programmable Gate Array) integrated on the microcontroller; Adopt monolithic integrated circuit, simplify circuit, make things convenient for wires design.
Embodiment 4
Present embodiment provides a kind of off line control method that is applied to the various embodiments described above; Fig. 4 is this method flow diagram; the first step; after system powers on; by serial peripheral equipment interface SPI memory module is carried out initialization by control module, comprise that mainly storage card inserts detection, write-protect detection, electrification reset, the switching of storage card state etc.
In second step, control module reads the memory module file system data; Preferably, this step can realize like this: control module sends by serial peripheral equipment interface SPI and reads the order (file system comprises computer file systems such as FAT16, FAT32 and NTFS) of memory module file system data, and obtains the memory module effective response; Preferably, when direction control signal DIR is output as 1, control module is used the MOSI line to send and is read the CMD line of the order of memory module to memory module, and when DIR was output as 0, control module was by the memory module response feedback signal on the MISO line reception CMD line; Simultaneously, under the control of control module control signal, data processing module is 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 with 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 reads file system data from above-mentioned asynchronous FIFO.
In 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; Obtain the concrete memory address of file according to above-mentioned relevant information, control module sends and reads the order of above-mentioned address, and obtains the effective response of memory module; Simultaneously, control module control data processing module is in the data processing state, prepares acceptance and the processing light fixture control documents from memory module; Memory module is exported to data processing module with the light fixture control documents.
In the 4th step, data processing module is handled light fixture control documents data and is obtained the light fixture control signal, such as grey scale signal is processed into brightness control signal; In the 5th step, export above-mentioned light fixture control signal.
Adopt said method to make full use of the controlled 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, reduce performance requirement, make things convenient for type selecting, reduce product cost microcontroller and data processing module.
Should be understood that, for those of ordinary skills, can be improved according to the above description or conversion, and all these improvement and conversion all should belong to the protection range of claims of the present invention.

Claims (13)

1, a kind of offline control device is characterized in that, comprises memory module, control module and data processing module; Wherein,
Described memory module is provided with control end and data terminal, and described data processing module is provided with control end;
Described control module is connected with described data processing module control end with described memory module control end respectively, described control module is provided with Serial Peripheral Interface (SPI), described data processing module is provided with a commutating circuit, and described control module is connected with described memory module control end with described commutating circuit by described Serial Peripheral Interface (SPI);
Described data processing module also is connected with described memory module data terminal;
Described control module is to described memory module and described data processing module transmitting control commands, and under the control of described control module, described data processing module arrives described data processing module with file system data and control documents data passes;
Described data processing module is changed described file system data in response to the control signal of described control module, passes to described control module, and described data processing module is handled described control documents data and generated control signal and output.
2, offline control device according to claim 1 is characterized in that, described Serial Peripheral Interface (SPI) comprises the direction control end, leads from going out end, leading from going into end and clock signal terminal; Described clock signal terminal is connected with described data processing module with described memory module, is used for providing work clock to described memory module and described data processing module; Described direction control end, master go into from going out end to go out to be connected with described commutating circuit from going into end with main.
3, offline control device according to claim 1 is characterized in that, described memory module is safe digital card (a SD card).
4, offline control device according to claim 1 is characterized in that, also comprises input module, and described input module is connected with described control module, is used for to described control module input of control commands.
5, 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, is used for display status information.
6, offline control device according to claim 1 is characterized in that, described control module is microcontroller MCU.
7, 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).
8, offline control device according to claim 1 is characterized in that, described control module and described data processing module are integrated in the monolithic integrated circuit.
9, a kind of method that is applied to the described offline control device of claim 1 is characterized in that, may further comprise the 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 the 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.
10, method according to claim 9 is characterized in that, the described steps A 2 concrete following steps of carrying out:
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 and is in data receiving state;
A23: described memory module is exported to described data processing module with described file system data, and described data processing module deposits described file system data conversion figure place the asynchronous FIFO of described data processing module in;
A24: described control module reads described file system data from described asynchronous FIFO.
11, method according to claim 10 is characterized in that, described steps A 21 sends described order by described control module by Serial Peripheral Interface (SPI), and obtains described memory module effective response.
12, method according to claim 9 is characterized in that, the described steps A 3 concrete following steps of carrying out:
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 obtains the effective response of described memory module;
A33: described control module is controlled described data processing module and is in the data processing state;
A34: under the described control module control, described memory module is exported to described data processing module with described control documents.
13, method according to claim 10 is characterized in that, in the steps A 23, described memory module is exported 4 bit data, and described data processing module is converted into 8 bit data.
CNA2009100838516A 2009-05-08 2009-05-08 A kind of offline control device Withdrawn CN101594718A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2009100838516A CN101594718A (en) 2009-05-08 2009-05-08 A kind of offline control device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2009100838516A CN101594718A (en) 2009-05-08 2009-05-08 A kind of offline control device

Publications (1)

Publication Number Publication Date
CN101594718A true CN101594718A (en) 2009-12-02

Family

ID=41409082

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2009100838516A Withdrawn CN101594718A (en) 2009-05-08 2009-05-08 A kind of offline control device

Country Status (1)

Country Link
CN (1) CN101594718A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104284487A (en) * 2014-09-26 2015-01-14 苏州博络克信息技术服务有限公司 Set-card separation single lamp controller and single lamp control method
CN107025869A (en) * 2017-04-27 2017-08-08 西安诺瓦电子科技有限公司 Off line detecting method and system

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104284487A (en) * 2014-09-26 2015-01-14 苏州博络克信息技术服务有限公司 Set-card separation single lamp controller and single lamp control method
CN107025869A (en) * 2017-04-27 2017-08-08 西安诺瓦电子科技有限公司 Off line detecting method and system

Similar Documents

Publication Publication Date Title
CN104956347B (en) By a kind of interconnection agreement enumerate and/or configuration mechanism be used for different interconnection agreements
CN1552028B (en) Method and apparatus for distributed direct memory access for systems on chip
CN103064805B (en) SPI controller and communication means
CN101246678B (en) Multi-screen real-time signal processing method and system
CN201604665U (en) Communication interface equipment of train control center
CN1069799C (en) Transmission converter of personal computer and equipment for communication
CN101778161A (en) Mobile Internet terminal
CN101814058A (en) Commonly-used storing device
CN102063939B (en) Method and device for implementing electrically erasable programmable read-only memory
CN101272405B (en) Receiving equipment, MMIS interface and data interaction method
CN116450552A (en) Asynchronous batch register reading and writing method and system based on I2C bus
CN101594719B (en) Offline control device
CN101594718A (en) A kind of offline control device
CN102566805A (en) File transmission method and communication system with file transmission function
CN201348780Y (en) Interface expanding device and mobile terminal
CN203554492U (en) Controller LAN bus intelligent interface device and satellite
CN201556201U (en) Configurable serial communication device
CN202282789U (en) SOE (SERCOS OVER EtherCAT) communication conversion card for servo driver
CN112199312B (en) Interface conversion device of communication equipment and communication system
CN201226150Y (en) Electronic device
EP2506659B1 (en) Device and method for enhancing flexibility of interface between 3g communication module and application processor
CN202495661U (en) USB conversion device
CN201004223Y (en) Interface host bridging device based on serial high-rank connection technology
CN202551030U (en) Bluetooth adapter and Bluetooth communication system
CN201846331U (en) Enhanced type serial port set up based on FPGA

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C04 Withdrawal of patent application after publication (patent law 2001)
WW01 Invention patent application withdrawn after publication

Open date: 20091202