CN101594719B - Offline control device - Google Patents
Offline control device Download PDFInfo
- 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
- control
- module
- data processing
- data
- processing module
- 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
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
Technical Field
The invention relates to the technical field of LED control, in particular to an LED off-line control device.
Background
The LED display offline control scheme has the characteristics of large data volume and high requirement of a special algorithm on controller hardware. The current off-line control products have several solutions as follows: according to the first scheme, as shown in fig. 1, a microcontroller operates a memory card in an SPI communication mode, obtains data according to a data storage format of a computer and processes the data to generate an offline control scheme of a lamp control signal, the scheme uses the microcontroller for data processing, the requirement on the microcontroller is high, the bottleneck problems exist in data processing efficiency and communication speed, the number of control points is small, the display performance is low, and the requirement on LED display control is difficult to meet; according to the second scheme, as shown in fig. 2, the SD card is directly operated by using an SD bus interface of the high-end microcontroller, the SD card is obtained according to a computer data storage format and is directly sent out without processing, and other sub-control boards perform data processing to obtain a lamp control signal; and the third scheme is a control mode using a programmable logic device, the structure is similar to the second scheme, the display performance and the number of control points are higher than those of the second scheme, and the defects of complex development and inflexible change still exist.
Accordingly, the prior art is deficient and needs improvement.
Disclosure of Invention
The invention aims to solve the technical problem of providing a novel offline control device and an offline control method aiming at the defects of the prior art.
The technical scheme of the invention is as follows:
the invention provides an off-line control device, which comprises a storage module, a control module and a data processing module; wherein,
the storage module is provided with a control end and a data end, and the data processing module is provided with a control end;
the control module is respectively connected with the control end of the storage module and the control end of the data processing module,
the data processing module is also connected with the data end of the storage module,
the control module sends a control command to the storage module and the data processing module, and the data processing module transmits file system data and control file data to the data processing module under the control of the control module;
the data processing module responds to the control signal of the control module, converts the file system data and transmits the converted data to the control module, and the data processing module processes the control file data to generate and output a control signal.
In the off-line control device, the serial peripheral interface comprises a direction control end, a master-in slave-out end, a master-out slave-in end and a clock signal end; the clock signal end is connected with the storage module and the data processing module and is used for providing a working clock for the storage module and the data processing module; the direction control end, the main input/output end and the main output/input end are connected with the reversing circuit.
In the offline control device, the storage module is a secure digital card (SD card).
The off-line control device also comprises an input module, wherein the input module is connected with the control module and is used for inputting control commands to the control module.
The off-line control device also comprises a display module, and the display module is connected with the control module and used for displaying state information.
In the off-line control device, the control module is a microcontroller MCU.
In the offline control device, the data processing module is a field programmable gate array FPGA or a complex programmable logic device CPLD.
The off-line control device, the control module and the data processing module are integrated in a single integrated circuit.
The invention also provides a method applied to the device of claim 1, comprising the following steps:
a1: the control module initializes the storage module through the serial peripheral interface;
a2: the control module reads the data of the storage module file system;
a3: the data processing module reads control file data from the storage module;
a4: the data processing module processes the control file data to obtain a control signal;
a5: and outputting the control signal.
In the method, the step a2 specifically executes the following steps:
a21: the control module sends a command for reading the storage module to obtain an effective response of the storage module;
a22: the control module controls the data processing module to be in a data receiving state;
a23: the storage module outputs the file system data to the data processing module, and the data processing module converts the bit number of the file system data and stores the converted bit number into an asynchronous FIFO of the data processing module;
a24: the control module reads the file system data from the asynchronous FIFO.
The method, in the step a21, the control module sends the command through a serial peripheral interface, and obtains a valid response of the storage module.
In the method, the step a3 specifically executes the following steps:
a31: the control module obtains the relevant information of the control file according to the file system data;
a32: according to the file related information, the control module sends a reading command and obtains an effective response of the storage module;
a33: the control module controls the data processing module to be in a data processing state;
a34: and under the control of the control module, the storage module outputs the control file to the data processing module.
In step a23, the memory module outputs 4 bits of data, and the data processing module converts the data into 8 bits of data.
By adopting the scheme, the control module controls the storage module and the interface of the storage module and the external equipment, and the data processing module of the special algorithm performs data processing, so that the advantages of each function are reduced, the performance requirements on the control module and the data processing module are reduced, the model selection is convenient, and the product cost is reduced.
Drawings
FIG. 1 is a schematic block diagram of the prior art;
FIG. 2 is a schematic block diagram of the prior art;
FIG. 3 is a functional block diagram of an embodiment of an offline control apparatus of the present invention;
FIG. 4 is a flow chart of an embodiment of an offline control method of the present invention.
Detailed Description
The invention is described in detail below with reference to the figures and the specific embodiments.
Example 1
As shown in fig. 3, the present embodiment provides an LED offline control data processing apparatus, which includes a storage module 11, a control module 12 and a data processing module 13; preferably, the control module 12 is connected to the control end CMD of the storage module 11 through a serial Peripheral interface spi (serial Peripheral interface), and is connected to the control end of the data processing module 13 through another communication method (for example, a CPU parallel interface method) to implement a data communication function, the data processing module 13 is further connected to the data end of the storage module 11, and the control module 12 is configured to send a control command to the storage module 11 and the data processing module 13, and control the data processing module to read data from the storage module; the data processing module 13 is configured to read file system data and control file data from the storage module in response to the control signal of the control module 12, and then the data processing module processes the control file data to obtain a lamp control signal and outputs the lamp control signal.
In the data processing module, a common data processing method is to process 256 levels of gray signals to obtain a brightness control signal, which belongs to the common knowledge and is not the key point of the present invention, and is not described herein again.
It is worth noting that a Serial Peripheral Interface (SPI), which enables a microcontroller to communicate with various peripherals in a Serial manner to exchange information, generally uses 4 lines: a serial clock line (SCK), a master-in slave-out data line (MISO), a master-out slave-in data line (MOSI) and an active low slave select line (SS).
In this embodiment, a Microcontroller (MCU) with an SPI interface is used, the SPI interface includes a clock signal terminal SCK, a master-slave input terminal MOSI, a master-slave input terminal MISO, and a direction control terminal DIR, and the clock signal terminal SCK is connected to the storage module 11 and the data processing module 13, and is configured to provide a working clock to the storage module 11 and the data processing module 13; the direction control terminal DIR, the master-in slave-out terminal MISO, and the master-out slave-in terminal MOSI are connected to the commutation circuit 131. Communication between the control module 12 and the memory module 11 is accomplished by a direction control circuit 131 (for convenience of drawing, the direction control circuit 131 is drawn outside the data processing module 13) provided in the data processing module 13, wherein a direction control terminal DIR is used for direction control of the direction control circuit 131, MOSI controls the memory module action through a memory module CMD line, and at the same time, MISO receives a memory module feedback signal through a memory module CMD line. By adopting the high-speed and high-efficiency interface technology of the SPI, the characteristics of large LED control data volume and high data transmission rate can be met.
Example 2
On the basis of embodiment 1, the storage module 11 uses a removable memory card, such as an SD card, and is plugged into a fixed slot for fixing the memory card, the control module 12 uses a microcontroller mcu (micro Controller unit), such as an AVR single chip, and the data processing module 13 preferably uses a Field-Programmable Gate Array FPGA (Field-Programmable Gate Array) or a complex Programmable Logic device cpld (complex Programmable Logic device), such as a stratx III-series FPGA available from Altera corporation. The single chip microcomputer is low in price, strong in control capacity, strong in FPGA data processing capacity and flexible in application, and the advantages of the two are combined, so that the aims of low cost and high performance are achieved.
Example 3
On the basis of embodiment 1, the offline control apparatus of this embodiment further includes an input module (not shown in the figure), which may be a handheld wireless input device, a wired input device, or a key input device, and is connected to the control module 12 for inputting control commands, such as control commands for controlling playing content, playing speed, and playing mode, to the control module 12.
As another example, the offline control data processing apparatus of the present embodiment may further include a display module
(not shown), such as a liquid crystal display, a nixie tube display device or an indicator light, to provide a platform for man-machine interaction, and the display module 16 is connected to the control module 12 for displaying the system operating status information.
As another example, in the offline control data processing apparatus, the control module 12 and the data processing module 13 may be integrated into a single integrated circuit as required, for example, a programmable logic device is used as a "soft core" of the controller and the "soft core" is used to complete part of functions of the microcontroller, resources of other programmable logic devices are used to complete data processing functions, or a scheme of a microcontroller with a single integrated programmable logic device is adopted, and a method of processing dedicated algorithm data by a programmable logic part integrated on the microcontroller is completed; and a monolithic integrated circuit is adopted, so that the circuit is simplified, and the wiring design is convenient.
Example 4
In the first step, after the system is powered on, the control module initializes the storage module through the serial peripheral interface SPI, and the method mainly includes memory card insertion detection, write protection detection, power-on reset, memory card state switching, and the like.
Secondly, reading the file system data of the storage module by the control module; preferably, this step can be implemented by: the control module sends a command for reading the data of the file system of the storage module (the file system comprises computer file systems such as FAT16, FAT32, NTFS and the like) through the serial peripheral interface SPI and obtains an effective response of the storage module; preferably, when the output of the direction control signal DIR is 1, the control module sends a command for reading the memory module to a CMD line of the memory module by using a MOSI line, and when the output of the DIR is 0, the control module receives a memory module response feedback signal on the CMD line through a MISO line; meanwhile, under the control of the control signal of the control module, the data processing module is in a data receiving state and is ready to receive the file system data from the storage module; the storage module outputs file system data, and the data processing module converts the file system data into bits, for example, 4 bits of data are converted into 8 bits of data and stored into an asynchronous FIFO (FIRST IN FIRST OUT, first-in first-OUT); and the control module reads the file system data from the asynchronous FIFO.
Thirdly, the data processing module reads the lamp control file data from the storage module; preferably, this step is carried out by: the control module obtains the relevant information of the lamp control file according to the file system data from the asynchronous FIFO, such as DBR (DOS BOOT record) and FAT (File Allocation Table), and the relevant information mainly comprises partition information, cluster information, file address information and file size information; obtaining a specific storage address of the file according to the related information, and sending a command for reading the address by the control module to obtain an effective response of the storage module; meanwhile, the control module controls the data processing module to be in a data processing state and prepares to receive and process the lamp control file from the storage module; the storage module outputs the lamp control file to the data processing module.
Fourthly, the data processing module processes the lamp control file data to obtain a lamp control signal, for example, a gray signal is processed into a brightness control signal; and fifthly, outputting the lamp control signal.
The method makes full use of the control function of the microcontroller and the powerful data processing function of the data processing module (such as FPGA, CPLD and the like), makes up for deficiencies of each other, reduces the performance requirements on the microcontroller and the data processing module, is convenient for model selection and reduces the product cost.
It will be understood that modifications and variations can be made by persons skilled in the art in light of the above teachings and all such modifications and variations are intended to be included within the scope of the invention as defined in the appended claims.
Claims (8)
1. An off-line control device is characterized by comprising a storage module, a control module and a data processing module; wherein,
the storage module is provided with a control end and a data end, and the data processing module is provided with a control end;
the control module is connected with the control end of the storage module sequentially through a serial peripheral interface and a direction control circuit; the control module is also connected with the control end of the data processing module,
the data processing module is also connected with the data end of the storage module,
the control module sends a control command to the storage module and the data processing module, and the data processing module reads file system data and control file data from the storage module under the control of the control module;
the data processing module responds to a control signal of the control module, converts the file system data and transmits the converted file system data to the control module, the control module controls the data processing module to be in a data processing state according to the converted file system data and prepares to receive and process the control file data from the storage module, and the data processing module processes the control file data to generate a control signal and outputs the control signal;
the serial peripheral interface comprises a direction control end, a master-in slave-out end, a master-out slave-in end and a clock signal end; the clock signal end is connected with the storage module and the data processing module and is used for providing a working clock for the storage module and the data processing module; the direction control end, the master-in slave-out end and the master-out slave-in end are connected with the direction control circuit;
the input module is connected with the control module and is used for inputting control commands to the control module; the input module is a handheld wireless input device or a wired input device.
2. The offline control device of claim 1, wherein the storage module is a secure digital card (SD card).
3. The offline control device of claim 1, further comprising a display module coupled to the control module for displaying status information.
4. The offline control device of claim 1, wherein the control module is a microcontroller MCU.
5. The offline control device of claim 1, wherein said data processing module is a Field Programmable Gate Array (FPGA) or a Complex Programmable Logic Device (CPLD).
6. The offline control device of claim 1, wherein said control module and said data processing module are integrated within a single integrated circuit.
7. A method applied to the offline control device of claim 1, comprising the steps of:
a1: the control module initializes the storage module, and performs insertion detection, write protection detection, power-on reset and storage card state switching on the storage card;
a2: the control module reads the data of the storage module file system;
a3: the data processing module reads control file data from the storage module;
a4: the data processing module processes the control file data to obtain a control signal;
a5: outputting the control signal;
the step a2 specifically executes the following steps:
a21: the control module sends the command through a serial peripheral interface and obtains an effective response of the storage module; when the output of the direction control signal DIR is 1, the control module sends a command for reading the memory module to a CMD line of the memory module by using an MOSI line, and when the output of the DIR is 0, the control module receives a memory module response feedback signal on the CMD line through a MISO line;
a22: the control module controls the data processing module to be in a data receiving state;
a23: the storage module outputs the file system data to the data processing module, and the data processing module converts the bit number of the file system data and stores the converted bit number into an asynchronous FIFO of the data processing module;
a24: the control module reads the file system data from the asynchronous FIFO;
the step a3 specifically executes the following steps:
a31: the control module obtains the relevant information of the control file according to the file system data;
a32: according to the file related information, the control module sends a reading command and obtains an effective response of the storage module;
a33: the control module controls the data processing module to be in a data processing state;
a34: and under the control of the control module, the storage module outputs the control file to the data processing module.
8. The method as claimed in claim 7, wherein in step a23, the memory module outputs 4 bits of data, which the data processing module converts into 8 bits of data.
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)
| 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 |
| CN105260150A (en) * | 2015-09-29 | 2016-01-20 | 成都贝发信息技术有限公司 | Dual-CPU control based information display system |
| CN105118439A (en) * | 2015-09-29 | 2015-12-02 | 成都贝发信息技术有限公司 | Novel LED (light-emitting diode) large screen display device |
Citations (4)
| 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 |
-
2009
- 2009-05-08 CN CN200910083852.0A patent/CN101594719B/en not_active Expired - Fee Related
Patent Citations (4)
| 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 |
|---|---|---|
| CN110245101B (en) | A multi-communication interface data exchange board and its implementation system | |
| CN105677598B (en) | The module and method of multiple MEMS sensor data are quickly read based on I2C interface | |
| CN105512085B (en) | Information processing method and electronic equipment | |
| CN110941583A (en) | USB3.0 data transmission system control method based on FPGA | |
| CN101594719B (en) | Offline control device | |
| CN116450552B (en) | Asynchronous batch register reading and writing method and system based on I2C bus | |
| CN212276395U (en) | Touch screen display | |
| CN114168503A (en) | Interface IP core control method, interface IP core, device and medium | |
| CN201383075Y (en) | PC104-plus controller based on PowerPC processor | |
| CN101494543A (en) | Bluetooth wireless hub and apparatus based on Bluetooth wireless transmission | |
| CN107704407A (en) | A system and method for data processing between SPI and UART | |
| CN101594718A (en) | A kind of offline control device | |
| CN107370651B (en) | Communication method between SPI slave machines | |
| CN210793057U (en) | A nuclear core plate and on-vehicle electronic equipment for car cockpit system | |
| Somkuarnpanit et al. | Fpga-based multi protocol data acquisition system with high speed usb interface | |
| CN102841878B (en) | Internet security and acceleration (ISA) interface internet protocol (IP) core based on processor local bus (PLB) | |
| CN210986125U (en) | Embedded industrial control all-in-one machine | |
| CN212411050U (en) | Smart card management device and smart card system | |
| CN116541329A (en) | Data transmission method, device, equipment and medium | |
| CN201846416U (en) | Image sensor | |
| CN115202257A (en) | LPC bus protocol conversion and equipment parallel control device and method | |
| CN116560736A (en) | A display system, electronic device and communication control method | |
| CN218004058U (en) | Computer mainboard compatible with various serial port output interfaces | |
| CN201869223U (en) | Machine to machine terminal, communication module and data sending device | |
| CN201589769U (en) | Ion Chromatography Data Acquisition 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 |