CN106201622A - Method and device for making burn-in file - Google Patents
Method and device for making burn-in file Download PDFInfo
- Publication number
- CN106201622A CN106201622A CN201610561878.1A CN201610561878A CN106201622A CN 106201622 A CN106201622 A CN 106201622A CN 201610561878 A CN201610561878 A CN 201610561878A CN 106201622 A CN106201622 A CN 106201622A
- Authority
- CN
- China
- Prior art keywords
- file
- storage device
- board
- identification code
- burning
- 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.)
- Pending
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30003—Arrangements for executing specific machine instructions
- G06F9/30076—Arrangements for executing specific machine instructions to perform miscellaneous control operations, e.g. NOP
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/30—Arrangements for executing machine instructions, e.g. instruction decode
- G06F9/30094—Condition code generation, e.g. Carry, Zero flag
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
本发明公开了一种烧录文件的制作方法和装置。所述烧录文件的制作方法包括:接收服务器发送的文件制作请求;获取其中的TV板卡识别码所对应的存储装置识别码,并向控制装置发送第一切换指令,使所述控制装置控制所述存储装置识别码所对应的存储装置连接至本地;从所述服务器中获取原始编译文件,并将所述原始编译文件存放至所述存储装置;向所述控制装置发送第二切换指令,使所述控制装置控制所述存储装置连接至所述TV板卡识别码所对应的TV板卡;对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件。采用本发明实施例,能够提高烧录文件的制作效率和质量。
The invention discloses a method and a device for making a burning file. The making method of described burning file comprises: receiving the file making request that server sends; Obtain the storage device identification code corresponding to TV card identification code wherein, and send the first switching instruction to control device, make described control device control The storage device corresponding to the storage device identification code is connected locally; the original compiled file is obtained from the server, and the original compiled file is stored in the storage device; a second switching instruction is sent to the control device, Make the control device control the storage device to connect to the TV board card corresponding to the TV board card identification code; restart the TV board card, so that the TV board card obtains the TV board card in the storage device after restarting. The original compiled file, and make the original compiled file into a burning file. By adopting the embodiment of the present invention, the production efficiency and quality of burning files can be improved.
Description
技术领域technical field
本发明涉及计算机技术领域,尤其涉及一种烧录文件的制作方法和装置。The invention relates to the technical field of computers, in particular to a method and device for making a burning file.
背景技术Background technique
bin文件,即二进制文件,是一种内容为二进制格式的文件,在计算机技术领域被广泛地使用。烧录bin文件,即一种用于烧录过程的bin文件。在现有的技术方案中,制作烧录bin文件的各个步骤均需要人工控制,手动完成,包括下载软件、搭建安卓平台、升级安卓系统、初始化系统并制作烧录bin文件、在安卓平台下执行DUMP指令从而将存储于EMMCFLASH中的烧录bin文件导出等。因此制作烧录bin文件的过程效率低下,并且容易出现人为因素造成的质量问题。A bin file, namely a binary file, is a file whose content is in a binary format, and is widely used in the field of computer technology. Burning bin file, that is, a bin file used in the burning process. In the existing technical solutions, each step of making a burning bin file requires manual control and manual completion, including downloading software, building an Android platform, upgrading the Android system, initializing the system and making a burning bin file, and executing it under the Android platform DUMP instruction to export the burning bin file stored in EMMCFLASH, etc. Therefore, the process of making and burning the bin file is inefficient, and is prone to quality problems caused by human factors.
发明内容Contents of the invention
本发明实施例提出一种烧录文件的制作方法和装置,能够提高烧录文件的制作效率和质量。Embodiments of the present invention provide a method and device for making a burning file, which can improve the production efficiency and quality of the burning file.
本发明实施例提供的一种烧录文件的制作方法,具体包括:A method for making a burning file provided in an embodiment of the present invention specifically includes:
接收服务器发送的文件制作请求;其中,所述文件制作请求包括TV板卡识别码和原始编译文件识别码;Receive the file making request that server sends; Wherein, described file making request comprises TV board identification code and original compiled file identification code;
获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地;Obtain the storage device identification code corresponding to the TV board identification code, and send a first switching instruction to the control device according to the storage device identification code, so that the control device controls the storage device according to the first switching instruction The storage device corresponding to the identification code is connected locally;
从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置;Obtaining the original compiled file corresponding to the original compiled file identification code from the server, and storing the original compiled file in the storage device;
根据所述TV板卡识别码向所述控制装置发送第二切换指令,使所述控制装置根据所述第二切换指令控制所述存储装置连接至所述TV板卡识别码所对应的TV板卡;Send a second switching instruction to the control device according to the TV board identification code, so that the control device controls the storage device to connect to the TV board corresponding to the TV board identification code according to the second switching instruction Card;
对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件。The TV board is restarted, so that the TV board obtains the original compiled file in the storage device after restarting, and makes the original compiled file into a burning file.
进一步地,所述获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地,具体包括:Further, the acquisition of the storage device identification code corresponding to the TV board identification code, and sending a first switching instruction to the control device according to the storage device identification code, so that the control device according to the first switching instruction Controlling the storage device corresponding to the storage device identification code to connect locally, specifically includes:
查询预设的配置表,获取所述TV板卡识别码所对应的存储装置识别码;Querying the preset configuration table to obtain the storage device identification code corresponding to the TV board identification code;
根据所述TV板卡识别码、所述存储装置识别码和所述原始编译文件识别码生成任务文件;Generate a task file according to the TV board identification code, the storage device identification code and the original compiled file identification code;
将所述任务文件添加至所述TV板卡识别码所对应的所述TV板卡的任务列表中;Adding the task file to the task list of the TV board corresponding to the TV board identification code;
在检查到所述TV板卡空闲时,读取所述TV板卡的任务列表中的所述任务文件,并根据所述任务文件中的存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地。When it is detected that the TV board is idle, read the task file in the task list of the TV board, and send a first switching instruction to the control device according to the storage device identification code in the task file, so that The control device controls the storage device corresponding to the storage device identification code to connect locally according to the first switching instruction.
进一步地,所述文件制作请求还包括服务器识别码;Further, the file creation request also includes a server identification code;
所述从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置,具体包括:The obtaining the original compiled file corresponding to the original compiled file identification code from the server, and storing the original compiled file in the storage device, specifically includes:
向所述服务器识别码所对应的所述服务器发送文件获取请求;其中,所述文件获取请求包括所述原始编译文件识别码;Sending a file acquisition request to the server corresponding to the server identification code; wherein, the file acquisition request includes the original compiled file identification code;
接收所述服务器根据所述文件获取请求反馈的所述原始编译文件识别码所对应的所述原始编译文件;receiving the original compiled file corresponding to the original compiled file identification code fed back by the server according to the file acquisition request;
将所述原始编译文件解压至所述存储装置。Decompressing the original compiled file to the storage device.
进一步地,所述对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件,具体包括:Further, the TV board is restarted, so that the TV board obtains the original compiled file in the storage device after restarting, and makes the original compiled file into a burning file, specifically include:
向所述控制装置发送上电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行上电,并使所述TV板卡在检查到其系统需要升级时,调用所述存储装置中预先存储的升级包对其系统进行升级;Send a power-on command to the control device, so that the control device controls the power circuit corresponding to the TV board to power on the TV board, and makes the TV board check that its system needs to be upgraded , calling the pre-stored upgrade package in the storage device to upgrade its system;
对所述TV板卡进行重启,使所述TV板卡在重启之后检查所述系统是否需要初始化,若需要,则调用所述存储装置中预先存储的初始化脚本文件以初始化所述系统,并获取所述存储装置中的所述原始编译文件,在初始化后的系统中将所述原始编译文件制作成烧录文件,若不需要,则获取所述存储装置中的所述原始编译文件,并在所述系统中将所述原始编译文件制作成烧录文件。The TV board is restarted, so that the TV board checks whether the system needs to be initialized after restarting, and if necessary, calls the pre-stored initialization script file in the storage device to initialize the system, and obtains The original compiled file in the storage device, the original compiled file is made into a burning file in the initialized system, if not needed, then the original compiled file in the storage device is obtained, and In the system, the original compilation file is made into a burning file.
进一步地,在所述对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件之后,还包括:Further, after the TV board is restarted, the TV board can obtain the original compiled file in the storage device after restarting, and make the original compiled file into a burning file. ,Also includes:
在监控到所述TV板卡通过调用所述存储装置中预先存储的卸载指令将所述烧录文件卸载至所述存储装置时,向所述控制装置发送断电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行断电;When it is monitored that the TV board unloads the programming file to the storage device by calling the pre-stored unloading command in the storage device, it sends a power-off command to the control device, so that the control device controls The power supply circuit corresponding to the TV board is powered off the TV board;
向所述控制装置发送第三切换指令,使所述控制装置控制所述存储装置连接至本地;sending a third switching instruction to the control device, so that the control device controls the storage device to connect to the local;
将所述存储装置中的所述烧录文件压缩至本地,获得压缩烧录文件;Compressing the programming file in the storage device locally to obtain the compressed programming file;
计算所述压缩烧录文件的校验和,当所述校验和正确时,向所述服务器发送文件提取请求;Calculate the checksum of the compressed burning file, and when the checksum is correct, send a file extraction request to the server;
接收所述服务器根据所述文件提取请求反馈的提取指令,并根据所述提取指令将所述压缩烧录文件发送至所述服务器进行存储。receiving an extraction instruction fed back by the server according to the file extraction request, and sending the compressed programming file to the server for storage according to the extraction instruction.
相应地,本发明实施例还提供了一种烧录文件的制作装置,具体包括:Correspondingly, the embodiment of the present invention also provides a device for making a burning file, which specifically includes:
文件制作请求接收模块,用于接收服务器发送的文件制作请求;其中,所述文件制作请求包括TV板卡识别码和原始编译文件识别码;The file making request receiving module is used to receive the file making request sent by the server; wherein, the file making request includes a TV board identification code and an original compilation file identification code;
第一切换指令发送模块,用于获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地;The first switching instruction sending module is used to obtain the storage device identification code corresponding to the TV board identification code, and send the first switching instruction to the control device according to the storage device identification code, so that the control device according to the The first switching instruction controls the storage device corresponding to the storage device identification code to be connected locally;
原始编译文件存放模块,用于从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置;an original compiled file storage module, configured to acquire the original compiled file corresponding to the original compiled file identification code from the server, and store the original compiled file in the storage device;
第二切换指令发送模块,用于根据所述TV板卡识别码向所述控制装置发送第二切换指令,使所述控制装置根据所述第二切换指令控制所述存储装置连接至所述TV板卡识别码所对应的TV板卡;以及,A second switching instruction sending module, configured to send a second switching instruction to the control device according to the TV board identification code, so that the control device controls the storage device to connect to the TV according to the second switching instruction the TV board corresponding to the board identification code; and,
烧录文件制作模块,用于对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件。Burning file production module, used to restart the TV board, so that the TV board can obtain the original compiled file in the storage device after restarting, and make the original compiled file into a burning file document.
进一步地,所述第一切换指令发送模块具体包括:Further, the first switching instruction sending module specifically includes:
存储装置识别码获取单元,用于查询预设的配置表,获取所述TV板卡识别码所对应的存储装置识别码;A storage device identification code acquisition unit, configured to query a preset configuration table, and obtain a storage device identification code corresponding to the TV board identification code;
任务文件生成单元,用于根据所述TV板卡识别码、所述存储装置识别码和所述原始编译文件识别码生成任务文件;A task file generating unit, configured to generate a task file according to the TV board identification code, the storage device identification code and the original compiled file identification code;
任务列表添加单元,用于将所述任务文件添加至所述TV板卡识别码所对应的所述TV板卡的任务列表中;以及,A task list adding unit, configured to add the task file to the task list of the TV board corresponding to the TV board identification code; and,
切换指令发送单元,用于在检查到所述TV板卡空闲时,读取所述TV板卡的任务列表中的所述任务文件,并根据所述任务文件中的存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地。A switching instruction sending unit, configured to read the task file in the task list of the TV board when it is detected that the TV board is idle, and send the task file to the control device according to the storage device identification code in the task file Sending a first switching instruction, so that the control device controls the storage device corresponding to the storage device identification code to connect to the local according to the first switching instruction.
进一步地,所述文件制作请求还包括服务器识别码;Further, the file creation request also includes a server identification code;
所述原始编译文件存放模块具体包括:The original compiled file storage module specifically includes:
文件获取请求发送单元,用于向所述服务器识别码所对应的所述服务器发送文件获取请求;其中,所述文件获取请求包括所述原始编译文件识别码;A file acquisition request sending unit, configured to send a file acquisition request to the server corresponding to the server identification code; wherein, the file acquisition request includes the original compiled file identification code;
原始编译文件接收单元,用于接收所述服务器根据所述文件获取请求反馈的所述原始编译文件识别码所对应的所述原始编译文件;以及,an original compiled file receiving unit, configured to receive the original compiled file corresponding to the original compiled file identification code fed back by the server according to the file acquisition request; and,
原始编译文件解压单元,用于将所述原始编译文件解压至所述存储装置。The original compiled file decompression unit is configured to decompress the original compiled file to the storage device.
进一步地,所述烧录文件制作模块具体包括:Further, the burning file making module specifically includes:
上电指令发送单元,用于向所述控制装置发送上电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行上电,并使所述TV板卡在检查到其系统需要升级时,调用所述存储装置中预先存储的升级包对其系统进行升级;以及,A power-on command sending unit, configured to send a power-on command to the control device, so that the control device controls the power supply circuit corresponding to the TV board to power on the TV board, and makes the TV board When the card checks that its system needs to be upgraded, it invokes the upgrade package pre-stored in the storage device to upgrade its system; and,
TV板卡重启单元,用于对所述TV板卡进行重启,使所述TV板卡在重启之后检查所述系统是否需要初始化,若需要,则调用所述存储装置中预先存储的初始化脚本文件以初始化所述系统,并获取所述存储装置中的所述原始编译文件,在初始化后的系统中将所述原始编译文件制作成烧录文件,若不需要,则获取所述存储装置中的所述原始编译文件,并在所述系统中将所述原始编译文件制作成烧录文件。The TV board restart unit is used to restart the TV board, so that the TV board checks whether the system needs to be initialized after restarting, and if necessary, calls the pre-stored initialization script file in the storage device To initialize the system, and obtain the original compilation file in the storage device, make the original compilation file into a burning file in the initialized system, if not needed, obtain the original compilation file in the storage device the original compilation file, and make the original compilation file into a burning file in the system.
进一步地,所述烧录文件的制作装置还包括:Further, the device for making the burning file also includes:
断电指令发送模块,用于在监控到所述TV板卡通过调用所述存储装置中预先存储的卸载指令将所述烧录文件卸载至所述存储装置时,向所述控制装置发送断电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行断电;A power-off command sending module, configured to send a power-off command to the control device when it is monitored that the TV board unloads the programming file to the storage device by calling the pre-stored unload command in the storage device. An instruction to make the control device control the power supply circuit corresponding to the TV board to power off the TV board;
第三切换指令发送模块,用于向所述控制装置发送第三切换指令,使所述控制装置控制所述存储装置连接至本地;A third switching instruction sending module, configured to send a third switching instruction to the control device, so that the control device controls the storage device to connect locally;
压缩烧录文件获得模块,用于将所述存储装置中的所述烧录文件压缩至本地,获得压缩烧录文件;A compressed burning file obtaining module, configured to compress the burning file in the storage device locally to obtain a compressed burning file;
文件提取请求发送模块,用于计算所述压缩烧录文件的校验和,当所述校验和正确时,向所述服务器发送文件提取请求;以及,A file extraction request sending module, configured to calculate the checksum of the compressed programming file, and when the checksum is correct, send a file extraction request to the server; and,
压缩烧录文件发送模块,用于接收所述服务器根据所述文件提取请求反馈的提取指令,并根据所述提取指令将所述压缩烧录文件发送至所述服务器进行存储。The compressed programming file sending module is configured to receive an extraction instruction fed back by the server according to the file extraction request, and send the compressed programming file to the server for storage according to the extraction instruction.
实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:
本发明实施例提供的烧录文件的制作方法及装置,能够通过向控制装置发送切换指令,使控制装置根据切换指令控制存储装置进行连接的切换,进而使TV板卡完成烧录文件的制作,实现了烧录文件制作过程的全自动化,从而提高了烧录文件的制作效率,而且,无需人工控制,减少了人力成本,同时避免了人为操作可能造成的差错,保证了制作的烧录文件的质量;通过文件制作请求中的TV板卡识别码控制相应的TV板卡制作烧录文件,能够支持不同的TV板卡同时进行制作,实现多任务的并发执行,进一步提高烧录文件的制作效率。The method and device for making a burning file provided by the embodiments of the present invention can send a switch instruction to the control device, so that the control device controls the storage device to switch the connection according to the switching instruction, and then makes the TV board complete the making of the burning file. It realizes the full automation of the production process of burning files, thereby improving the production efficiency of burning files, and without manual control, reducing labor costs, avoiding possible errors caused by human operations, and ensuring the integrity of the produced burning files Quality; through the TV board identification code in the file production request to control the corresponding TV board to make burning files, it can support different TV boards to make at the same time, realize the concurrent execution of multiple tasks, and further improve the production efficiency of burning files .
附图说明Description of drawings
图1是本发明提供的烧录文件的制作方法的一个实施例的流程示意图;Fig. 1 is the schematic flow chart of an embodiment of the making method of burning file provided by the present invention;
图2是本发明提供的烧录文件的制作方法中的控制装置的一个实施例的结构示意图;Fig. 2 is a schematic structural view of an embodiment of the control device in the method for making a burning file provided by the present invention;
图3是本发明提供的烧录文件的制作装置的一个实施例的结构示意图;Fig. 3 is a schematic structural view of an embodiment of a device for making a burning file provided by the present invention;
图4是本发明提供的烧录文件的制作系统的一个实施例的结构示意图。Fig. 4 is a schematic structural diagram of an embodiment of a system for making a burning file provided by the present invention.
具体实施方式detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are only some, not all, embodiments of the present invention. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.
参见图1,是本发明提供的烧录文件的制作方法的一个实施例的流程示意图,包括步骤S11至S15,具体如下:Referring to Fig. 1, it is a schematic flow diagram of an embodiment of a method for making a burning file provided by the present invention, including steps S11 to S15, specifically as follows:
S11:接收服务器发送的文件制作请求;其中,所述文件制作请求包括TV板卡识别码和原始编译文件识别码;S11: Receive a file production request sent by the server; wherein, the file production request includes a TV board identification code and an original compiled file identification code;
S12:获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地;S12: Obtain the storage device identification code corresponding to the TV board identification code, and send a first switching instruction to the control device according to the storage device identification code, so that the control device controls the TV board according to the first switching instruction. The storage device corresponding to the storage device identification code is connected locally;
S13:从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置;S13: Obtain the original compiled file corresponding to the original compiled file identification code from the server, and store the original compiled file in the storage device;
S14:根据所述TV板卡识别码向所述控制装置发送第二切换指令,使所述控制装置根据所述第二切换指令控制所述存储装置连接至所述TV板卡识别码所对应的TV板卡;S14: Send a second switching instruction to the control device according to the TV board identification code, so that the control device controls the storage device to connect to the TV board corresponding to the TV board identification code according to the second switching instruction. TV board;
S15:对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件。S15: Restart the TV board, so that the TV board acquires the original compiled file in the storage device after restarting, and makes the original compiled file into a burning file.
需要说明的是,本发明实施例提供的烧录文件的制作方法由主机执行。其中,主机一端与服务器相连接,另一端与控制装置相连接,同时通过串口与TV板卡相连接。在一些实施方式中,烧录文件为烧录bin文件,服务器为OCS服务器,控制装置为做bin小板,存储装置为U盘。其中,OCS(订单管理)服务器中安装有OCS(订单管理)系统,主要用于管理订单以及存储该订单所对应的原始编译文件和烧录bin文件。该订单为在工厂端的用户将原始编译文件上传至OCS服务器之后,OCS系统生成的该用户的信息和该原始编译文件的信息的对应关系表。主机中包括Web Service程序和制作控制程序。控制装置用于控制存储装置与主机和TV板卡之间的连接的切换,以及用于控制对TV板卡进行上电和断电。It should be noted that the method for making a burning file provided in the embodiment of the present invention is executed by the host. Wherein, one end of the host is connected to the server, the other end is connected to the control device, and at the same time is connected to the TV board through a serial port. In some embodiments, the burning file is a burning bin file, the server is an OCS server, the control device is a bin board, and the storage device is a USB flash drive. Wherein, the OCS (order management) server is installed with an OCS (order management) system, which is mainly used for managing orders and storing original compilation files and burning bin files corresponding to the orders. The order is a table of correspondence between the user's information and the information of the original compiled file generated by the OCS system after the user at the factory side uploads the original compiled file to the OCS server. The host includes a Web Service program and a production control program. The control device is used for controlling the switching of the connection between the storage device and the host and the TV board, and for controlling the power-on and power-off of the TV board.
如图2所示,是本发明提供的烧录文件的制作方法中的控制装置22的一个实施例的结构示意图,控制装置22中具体包括USB集线器221、电源222、转换开关K1和电源开关K2,转换开关K1中包括动触点A1、第一静触点A2和第二静触点A3。其中,USB集线器221的一端与主机21连接,另一端与转换开关K1的第一静触点A2连接。转换开关K1的动触点A1与存储装置24连接,第二静触点A3与TV板卡23连接。电源开关K2的一端与电源222相连接,另一端与TV板卡23相连接。当主机21向控制装置22发送将存储装置24连接至主机21的切换指令时,控制装置22中的控制程序将动触点A1连接至第一静触点A2;当主机21向控制装置22发送将存储装置24连接至TV板卡23的切换指令时,控制装置22中的控制程序将动触点A1连接至第二静触点A3;当主机21向控制装置22发送给TV板卡23上电的指令时,控制装置22中的控制程序将电源开关K2闭合;当主机21向控制装置22发送给TV板卡23断电的指令时,控制装置22中的控制程序将电源开关K2打开。需要进一步说明的是,USB集线器221可以同时与N个转换开关K1相连接,每个转换开关K1的动触点A1和第二静触点A3分别与一个存储装置24和一个TV板卡23相连接,从而使控制装置可以同时与N个存储装置和N个TV板卡相连接,且N个存储装置与N个TV板卡具有一一对应关系。另外,N个TV板卡可分别通过电源开关K2与电源222连接,以使控制装置分别控制每个TV板卡的上电和断电。As shown in Figure 2, it is a schematic structural diagram of an embodiment of the control device 22 in the method for making a burning file provided by the present invention, and the control device 22 specifically includes a USB hub 221, a power supply 222, a transfer switch K1 and a power switch K2 , The transfer switch K1 includes a moving contact A1, a first static contact A2 and a second static contact A3. Wherein, one end of the USB hub 221 is connected to the host computer 21 , and the other end is connected to the first static contact A2 of the transfer switch K1 . The movable contact A1 of the transfer switch K1 is connected to the storage device 24 , and the second static contact A3 is connected to the TV board 23 . One end of the power switch K2 is connected to the power supply 222 , and the other end is connected to the TV board 23 . When the host computer 21 sends a switching instruction that the storage device 24 is connected to the host computer 21 to the control device 22, the control program in the control device 22 connects the movable contact A1 to the first static contact A2; When the storage device 24 is connected to the switching instruction of the TV board 23, the control program in the control device 22 connects the movable contact A1 to the second static contact A3; When the instruction of electricity, the control program in the control device 22 closes the power switch K2; It should be further explained that the USB hub 221 can be connected to N transfer switches K1 at the same time, and the movable contact A1 and the second static contact A3 of each transfer switch K1 are connected to a storage device 24 and a TV board 23 respectively. connection, so that the control device can be connected to N storage devices and N TV boards at the same time, and the N storage devices have a one-to-one correspondence with the N TV boards. In addition, the N TV boards can be respectively connected to the power supply 222 through the power switch K2, so that the control device can respectively control the power-on and power-off of each TV board.
在一个优选地实施方式中,用户将原始编译文件上传至服务器中存储。当需要将某个原始编译文件制作成烧录文件时,用户在预先设计好的操作界面中选中该原始编译文件以及选择将要进行烧录文件制作的TV板卡。服务器根据用户的选择向主机发送一个文件制作请求,该文件制作请求中包括用户选中的TV板卡所对应的TV板卡识别码和原始编译文件所对应的原始编译文件识别码。主机的Web Service程序在接收到该文件制作请求之后,在主机中查找到与该文件制作请求中的TV板卡识别码相对应的存储装置识别码。主机的制作控制装置根据该存储装置识别码向控制装置发送第一切换指令。控制装置在接收到第一切换指令之后,控制该第一切换指令中的存储装置识别码所对应的存储装置连接至主机,并格式化存储装置。随后,主机根据文件制作请求中的原始编译文件识别码从服务器中获取相应的原始编译文件,并将该原始编译文件存放至该存储装置。主机根据文件制作请求中的TV板卡识别码向控制装置发送第二切换指令。控制装置在接收到第二切换指令之后,控制存储装置连接至该第二切换指令中的TV板卡识别码所对应的TV板卡。随后,主机对TV板卡进行重启。TV板卡在重启之后,自动获取该存储装置中的原始编译文件,并将该原始编译文件制作成烧录文件。通过在主机中编写控制程序,使主机通过控制控制装置实现对存储装置连接的切换,进而使TV板卡完成烧录文件的制作,实现了制作烧录文件的过程的全自动化,从而提高了制作烧录文件的过程的效率,而且,无需人工控制,减少了人力成本,同时避免了人为操作可能造成的差错,保证了制作的烧录文件的质量;通过文件制作请求中的TV板卡识别码控制相应的TV板卡制作烧录文件,能够支持不同的TV板卡同时进行制作,实现多任务的并发执行,进一步提高烧录文件的制作效率。另外,主机的操作系统的日志文件系统记录整个烧录文件的制作过程,方便日后对烧录文件的制作过程进行追溯,进一步保证了制作的烧录文件的质量。In a preferred implementation, the user uploads the original compiled file to the server for storage. When it is necessary to make a certain original compiled file into a burning file, the user selects the original compiled file and the TV board to make the burning file in the pre-designed operation interface. The server sends a file making request to the host according to the user's selection, and the file making request includes the TV board identification code corresponding to the TV board selected by the user and the original compiled file identification code corresponding to the original compiled file. After receiving the file creation request, the host's Web Service program searches the host for the storage device identification code corresponding to the TV board identification code in the file creation request. The production control device of the host computer sends a first switching instruction to the control device according to the storage device identification code. After receiving the first switch command, the control device controls the storage device corresponding to the storage device identification code in the first switch command to connect to the host, and formats the storage device. Subsequently, the host obtains the corresponding original compiled file from the server according to the original compiled file identification code in the file making request, and stores the original compiled file in the storage device. The host computer sends the second switching instruction to the control device according to the TV board identification code in the file creation request. After receiving the second switching instruction, the control device controls the storage device to connect to the TV board corresponding to the TV board identification code in the second switching instruction. Subsequently, the host restarts the TV board. After the TV board restarts, it automatically obtains the original compiled file in the storage device, and makes the original compiled file into a burning file. By writing the control program in the host, the host can switch the connection to the storage device by controlling the control device, and then make the TV board complete the production of the burning file, realizing the full automation of the process of making the burning file, thus improving the production efficiency. The efficiency of the process of burning files, and without manual control, reduces labor costs, avoids possible errors caused by human operations, and ensures the quality of the produced burning files; through the TV board identification code in the file production request Control the corresponding TV boards to make burning files, which can support different TV boards to make at the same time, realize the concurrent execution of multi-tasks, and further improve the production efficiency of burning files. In addition, the log file system of the host's operating system records the entire production process of the burning file, which is convenient for tracing the production process of the burning file in the future, and further ensures the quality of the burning file produced.
在另一个优选地实施方式中,所述获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地,具体包括:In another preferred embodiment, the acquisition of the storage device identification code corresponding to the TV board identification code, and sending a first switching instruction to the control device according to the storage device identification code, so that the control device according to The first switching instruction controls the storage device corresponding to the storage device identification code to connect locally, specifically including:
查询预设的配置表,获取所述TV板卡识别码所对应的存储装置识别码;Querying the preset configuration table to obtain the storage device identification code corresponding to the TV board identification code;
根据所述TV板卡识别码、所述存储装置识别码和所述原始编译文件识别码生成任务文件;Generate a task file according to the TV board identification code, the storage device identification code and the original compiled file identification code;
将所述任务文件添加至所述TV板卡识别码所对应的所述TV板卡的任务列表中;Adding the task file to the task list of the TV board corresponding to the TV board identification code;
在检查到所述TV板卡空闲时,读取所述TV板卡的任务列表中的所述任务文件,并根据所述任务文件中的存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地。When it is detected that the TV board is idle, read the task file in the task list of the TV board, and send a first switching instruction to the control device according to the storage device identification code in the task file, so that The control device controls the storage device corresponding to the storage device identification code to connect locally according to the first switching instruction.
需要说明的是,主机中包括任务列表和配置表。该任务列表用于暂时存放未完成的任务所对应的任务文件,与TV板卡具有一一对应关系。该配置表为TV板卡与存储装置、文件重命名规则、计时器总时间等的对应关系表。文件重命名规则是指在将原始编译文件存放至存储装置后对该原始编译文件进行重命名,使之能够被TV板卡处理的规则,与TV板卡具有一一对应关系。计时器总时间是指允许任务文件在任务列表中排队的最长时间,当任务文件在任务列表中排队的时间超过该计时器总时间时,该任务文件所对应的任务视为失败,主机将该任务文件从任务列表中移除,该计时器总时间与TV板卡具有一一对应关系。主机的Web Service程序在接收到服务器发送的文件制作请求后,在配置表中查找到该文件制作请求中的TV板卡识别码所对应的存储装置识别码、文件重命名规则以及计时器总时间等,并根据该存储装置识别码、该文件重命名规则以及该计时器总时间生成本地配置文件。随后,主机的Web Service程序根据该TV板卡识别码、该本地配置文件和文件制作请求中的原始编译文件识别码生成任务文件,并将该任务文件存放于缓冲任务列表中。主机中的制作控制程序在监控到缓冲任务列表中有新的任务文件时,将该任务文件添加至该TV板卡识别码所对应的TV板卡的任务列表中。检查该TV板卡识别码所对应的TV板卡是否正在进行制作烧录文件的任务,若是,则等待,若否,即该TV板卡的状态为空闲,则根据任务列表中的排列顺序依次读取任务文件,并根据读取到的任务文件中的存储装置识别码向控制装置发送第一切换指令。控制装置在接收到第一切换指令之后,控制其中的存储装置识别码所对应的存储装置连接至主机。It should be noted that the host includes a task list and a configuration table. The task list is used to temporarily store task files corresponding to unfinished tasks, and has a one-to-one correspondence with TV boards. The configuration table is a table of correspondence between TV boards and storage devices, file renaming rules, total time of timers, and the like. The file renaming rule refers to the rule for renaming the original compiled file after it is stored in the storage device so that it can be processed by the TV board, and has a one-to-one correspondence with the TV board. The total time of the timer refers to the maximum time allowed for the task file to be queued in the task list. When the queued time of the task file in the task list exceeds the total time of the timer, the task corresponding to the task file will be regarded as failed, and the host will The task file is removed from the task list, and the total time of the timer has a one-to-one correspondence with the TV board. After receiving the file creation request sent by the server, the host's Web Service program searches the configuration table for the storage device identification code, file renaming rules, and timer total time corresponding to the TV board identification code in the file creation request. etc., and generate a local configuration file according to the storage device identification code, the file renaming rule and the total time of the timer. Subsequently, the Web Service program of the host generates a task file according to the TV board identification code, the local configuration file and the original compiled file identification code in the file making request, and stores the task file in the buffer task list. When the production control program in the host monitors that there is a new task file in the buffered task list, it will add the task file to the task list of the TV board corresponding to the TV board identification code. Check whether the TV board corresponding to the TV board identification code is in the process of making a burning file, if yes, wait, if not, that is, the TV board is idle, then proceed according to the sequence in the task list The task file is read, and the first switching instruction is sent to the control device according to the storage device identification code in the read task file. After receiving the first switching instruction, the control device controls the storage device corresponding to the storage device identification code to connect to the host.
进一步地,所述文件制作请求还包括服务器识别码;Further, the file creation request also includes a server identification code;
所述从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置,具体包括:The obtaining the original compiled file corresponding to the original compiled file identification code from the server, and storing the original compiled file in the storage device, specifically includes:
向所述服务器识别码所对应的所述服务器发送文件获取请求;其中,所述文件获取请求包括所述原始编译文件识别码;Sending a file acquisition request to the server corresponding to the server identification code; wherein, the file acquisition request includes the original compiled file identification code;
接收所述服务器根据所述文件获取请求反馈的所述原始编译文件识别码所对应的所述原始编译文件;receiving the original compiled file corresponding to the original compiled file identification code fed back by the server according to the file acquisition request;
将所述原始编译文件解压至所述存储装置。Decompressing the original compiled file to the storage device.
需要说明的是,在主机根据文件制作请求控制相应的存储装置连接至主机之后,主机格式化该存储装置,并向该文件制作请求中的服务器识别码所对应的服务器发送文件获取请求,其中,该文件获取请求包括需要制作成烧录文件的原始编译文件所对应的原始编译文件识别码。服务器在接收到该文件获取请求之后,在服务器中查找到该文件获取请求中的原始编译文件识别码所对应的原始编译文件,并将该原始编译文件反馈至主机。主机在接收到服务器反馈的该原始编译文件之后,将该原始编译文件存放并解压至存储装置。与此同时,主机将预先存储于主机中的升级包、初始化脚本文件和DUMP FLASH指令存放至存储装置中。其中,升级包用于升级TV板卡的系统;初始化脚本文件用于初始化TV板卡的系统;DUMP FLASH指令用于将TV板卡中的烧录文件卸载至存储装置中。It should be noted that after the host controls the corresponding storage device to connect to the host according to the file creation request, the host formats the storage device and sends a file acquisition request to the server corresponding to the server identification code in the file creation request, wherein, The file acquisition request includes an original compiled file identification code corresponding to the original compiled file that needs to be made into a burning file. After receiving the file acquisition request, the server searches the server for the original compiled file corresponding to the original compiled file identification code in the file acquisition request, and feeds back the original compiled file to the host. After receiving the original compiled file fed back by the server, the host computer stores and decompresses the original compiled file to the storage device. At the same time, the host computer stores the upgrade package, the initialization script file and the DUMP FLASH instruction pre-stored in the host computer into the storage device. Wherein, the upgrade package is used to upgrade the system of the TV board; the initialization script file is used to initialize the system of the TV board; the DUMP FLASH command is used to unload the burning file in the TV board to the storage device.
进一步地,所述对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件,具体包括:Further, the TV board is restarted, so that the TV board obtains the original compiled file in the storage device after restarting, and makes the original compiled file into a burning file, specifically include:
向所述控制装置发送上电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行上电,并使所述TV板卡在检查到其系统需要升级时,调用所述存储装置中预先存储的升级包对其系统进行升级;Send a power-on command to the control device, so that the control device controls the power circuit corresponding to the TV board to power on the TV board, and makes the TV board check that its system needs to be upgraded , calling the pre-stored upgrade package in the storage device to upgrade its system;
对所述TV板卡进行重启,使所述TV板卡在重启之后检查所述系统是否需要初始化,若需要,则调用所述存储装置中预先存储的初始化脚本文件以初始化所述系统,并获取所述存储装置中的所述原始编译文件,在初始化后的系统中将所述原始编译文件制作成烧录文件,若不需要,则获取所述存储装置中的所述原始编译文件,并在所述系统中将所述原始编译文件制作成烧录文件。The TV board is restarted, so that the TV board checks whether the system needs to be initialized after restarting, and if necessary, calls the pre-stored initialization script file in the storage device to initialize the system, and obtains The original compiled file in the storage device, the original compiled file is made into a burning file in the initialized system, if not needed, then the original compiled file in the storage device is obtained, and In the system, the original compilation file is made into a burning file.
需要说明的是,在存储装置连接至TV板卡之后,主机向控制装置发送上电指令。控制装置在接收到该上电指令之后,控制该TV板卡所对应的电源电路对该TV板卡进行上电。TV板卡在上电之后自动检查其系统是否需要升级,当其系统需要升级时,调用存储装置中的升级包进行升级,当其系统不需要升级时,则不做处理。随后,主机对TV板卡进行重启。TV板卡在重启之后自动检查其系统是否需要初始化,若需要,则调用存储装置中的初始化脚本文件对其系统进行初始化,并获取存储装置中的原始编译文件,在初始化后的系统中将该原始编译文件制作成烧录文件,若不需要,则获取存储装置中的原始编译文件,并在系统中将该原始编译文件制作成烧录文件。It should be noted that after the storage device is connected to the TV board, the host sends a power-on command to the control device. After receiving the power-on instruction, the control device controls the power supply circuit corresponding to the TV board to power on the TV board. After the TV board is powered on, it automatically checks whether its system needs to be upgraded. When the system needs to be upgraded, it calls the upgrade package in the storage device to upgrade. When the system does not need to be upgraded, it does not process. Subsequently, the host restarts the TV board. After the TV board is restarted, it automatically checks whether its system needs to be initialized. If necessary, it calls the initialization script file in the storage device to initialize its system, and obtains the original compiled file in the storage device. The original compiled file is made into a burning file, if not needed, the original compiled file in the storage device is obtained, and the original compiled file is made into a burning file in the system.
进一步地,在所述对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件之后,还包括:Further, after the TV board is restarted, the TV board can obtain the original compiled file in the storage device after restarting, and make the original compiled file into a burning file. ,Also includes:
在监控到所述TV板卡通过调用所述存储装置中预先存储的卸载指令将所述烧录文件卸载至所述存储装置时,向所述控制装置发送断电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行断电;When it is monitored that the TV board unloads the programming file to the storage device by calling the pre-stored unloading command in the storage device, it sends a power-off command to the control device, so that the control device controls The power supply circuit corresponding to the TV board is powered off the TV board;
向所述控制装置发送第三切换指令,使所述控制装置控制所述存储装置连接至本地;sending a third switching instruction to the control device, so that the control device controls the storage device to connect to the local;
将所述存储装置中的所述烧录文件压缩至本地,获得压缩烧录文件;Compressing the programming file in the storage device locally to obtain the compressed programming file;
计算所述压缩烧录文件的校验和,当所述校验和正确时,向所述服务器发送文件提取请求;Calculate the checksum of the compressed burning file, and when the checksum is correct, send a file extraction request to the server;
接收所述服务器根据所述文件提取请求反馈的提取指令,并根据所述提取指令将所述压缩烧录文件发送至所述服务器进行存储。receiving an extraction instruction fed back by the server according to the file extraction request, and sending the compressed programming file to the server for storage according to the extraction instruction.
需要说明的是,TV板卡在将原始编译文件制作成烧录文件之后,自动调用存储装置中的DUMP FLASH指令,从而将烧录文件卸载至存储装置中。主机在监控到TV板卡将烧录文件卸载至存储装置之后,向控制装置发送断电指令。控制装置在接收到该断电指令之后,控制该TV板卡所对应的电源电路对该TV板卡进行断电。随后,主机向控制装置发送第三切换指令。控制装置在接收到该第三切换指令之后,控制存储装置连接至主机。主机将该存储装置中的烧录文件压缩至主机中,从而得到压缩烧录文件。随后,主机计算该压缩烧录文件的校验和,当校验和正确时,向服务器发送文件提取请求。该服务器接收到该文件提取请求之后,向主机发送提取指令。主机在接收到该提取指令之后,将该压缩烧录文件发送至该服务器中进行存储。当工厂端需要对某个烧录文件进行批量生产时,服务器将相应的烧录文件发送至工厂端。It should be noted that after the TV board makes the original compiled file into a burning file, it automatically invokes the DUMP FLASH command in the storage device, so as to unload the burning file to the storage device. After the host monitors that the TV board unloads the programming file to the storage device, it sends a power-off command to the control device. After receiving the power-off instruction, the control device controls the power supply circuit corresponding to the TV board to power off the TV board. Subsequently, the host computer sends a third switching instruction to the control device. After receiving the third switching instruction, the control device controls the storage device to connect to the host. The host computer compresses the programming file in the storage device to the host computer, thereby obtaining the compressed programming file. Subsequently, the host computer calculates the checksum of the compressed programming file, and when the checksum is correct, sends a file extraction request to the server. After receiving the file extraction request, the server sends an extraction instruction to the host. After receiving the extraction instruction, the host sends the compressed programming file to the server for storage. When the factory side needs to mass-produce a certain programming file, the server will send the corresponding programming file to the factory side.
本发明实施例提供的烧录文件的制作方法,通过在主机中编写控制程序,使主机通过控制控制装置实现对存储装置连接的切换,进而使TV板卡完成烧录文件的制作,实现了制作烧录文件的过程的全自动化,从而提高了制作烧录文件的过程的效率,而且,无需人工控制,减少了人力成本,同时避免了人为操作可能造成的差错,保证了制作的烧录文件的质量;通过文件制作请求中的TV板卡识别码控制相应的TV板卡制作烧录文件,能够支持不同的TV板卡同时进行制作,实现多任务的并发执行,进一步提高烧录文件的制作效率。另外,主机的操作系统的日志文件系统记录整个烧录文件的制作过程,方便日后对烧录文件的制作过程进行追溯,进一步保证了制作的烧录文件的质量。In the method for making a burning file provided by the embodiment of the present invention, by writing a control program in the host, the host can switch the connection of the storage device through the control control device, and then make the TV board complete the making of the burning file, realizing the production The process of burning files is fully automated, thereby improving the efficiency of the process of making burning files, and without manual control, reducing labor costs, avoiding possible errors caused by human operations, and ensuring the integrity of the produced burning files Quality; through the TV board identification code in the file production request to control the corresponding TV board to make burning files, it can support different TV boards to make at the same time, realize the concurrent execution of multiple tasks, and further improve the production efficiency of burning files . In addition, the log file system of the host's operating system records the entire production process of the burning file, which is convenient for tracing the production process of the burning file in the future, and further ensures the quality of the burning file produced.
相应地,本发明还提供一种烧录文件的制作装置,能够实现上述实施例中的烧录文件的制作方法的所有流程。Correspondingly, the present invention also provides a device for making a burning file, which can realize all the processes of the method for making a burning file in the above-mentioned embodiments.
参见图3,是本发明提供的烧录文件的制作装置的一个实施例的结构示意图,具体如下:Referring to Fig. 3, it is a schematic structural diagram of an embodiment of a device for making a burning file provided by the present invention, specifically as follows:
文件制作请求接收模块31,用于接收服务器发送的文件制作请求;其中,所述文件制作请求包括TV板卡识别码和原始编译文件识别码;The file making request receiving module 31 is used to receive the file making request sent by the server; wherein, the file making request includes a TV board identification code and an original compilation file identification code;
第一切换指令发送模块32,用于获取所述TV板卡识别码所对应的存储装置识别码,并根据所述存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地;The first switching instruction sending module 32 is used to obtain the storage device identification code corresponding to the TV board identification code, and send the first switching instruction to the control device according to the storage device identification code, so that the control device can be used according to the specified storage device identification code. The first switching instruction controls the storage device corresponding to the storage device identification code to be connected locally;
原始编译文件存放模块33,用于从所述服务器中获取所述原始编译文件识别码所对应的原始编译文件,并将所述原始编译文件存放至所述存储装置;An original compiled file storage module 33, configured to acquire the original compiled file corresponding to the original compiled file identification code from the server, and store the original compiled file in the storage device;
第二切换指令发送模块34,用于根据所述TV板卡识别码向所述控制装置发送第二切换指令,使所述控制装置根据所述第二切换指令控制所述存储装置连接至所述TV板卡识别码所对应的TV板卡;以及,The second switching instruction sending module 34 is configured to send a second switching instruction to the control device according to the TV board identification code, so that the control device controls the storage device to connect to the TV according to the second switching instruction. the TV board corresponding to the TV board identification code; and,
烧录文件制作模块35,用于对所述TV板卡进行重启,使所述TV板卡在重启之后获取所述存储装置中的所述原始编译文件,并将所述原始编译文件制作成烧录文件。Burning file production module 35 is used to restart the TV board, so that the TV board can obtain the original compiled file in the storage device after restarting, and make the original compiled file into a burning file. record files.
在另一个优选地实施方式中,所述第一切换指令发送模块具体包括:In another preferred embodiment, the first switching instruction sending module specifically includes:
存储装置识别码获取单元,用于查询预设的配置表,获取所述TV板卡识别码所对应的存储装置识别码;A storage device identification code acquisition unit, configured to query a preset configuration table, and obtain a storage device identification code corresponding to the TV board identification code;
任务文件生成单元,用于根据所述TV板卡识别码、所述存储装置识别码和所述原始编译文件识别码生成任务文件;A task file generating unit, configured to generate a task file according to the TV board identification code, the storage device identification code and the original compiled file identification code;
任务列表添加单元,用于将所述任务文件添加至所述TV板卡识别码所对应的所述TV板卡的任务列表中;以及,A task list adding unit, configured to add the task file to the task list of the TV board corresponding to the TV board identification code; and,
切换指令发送单元,用于在检查到所述TV板卡空闲时,读取所述TV板卡的任务列表中的所述任务文件,并根据所述任务文件中的存储装置识别码向控制装置发送第一切换指令,使所述控制装置根据所述第一切换指令控制所述存储装置识别码所对应的存储装置连接至本地。A switching instruction sending unit, configured to read the task file in the task list of the TV board when it is detected that the TV board is idle, and send the task file to the control device according to the storage device identification code in the task file Sending a first switching instruction, so that the control device controls the storage device corresponding to the storage device identification code to connect to the local according to the first switching instruction.
进一步地,所述文件制作请求还包括服务器识别码;Further, the file creation request also includes a server identification code;
所述原始编译文件存放模块具体包括:The original compiled file storage module specifically includes:
文件获取请求发送单元,用于向所述服务器识别码所对应的所述服务器发送文件获取请求;其中,所述文件获取请求包括所述原始编译文件识别码;A file acquisition request sending unit, configured to send a file acquisition request to the server corresponding to the server identification code; wherein, the file acquisition request includes the original compiled file identification code;
原始编译文件接收单元,用于接收所述服务器根据所述文件获取请求反馈的所述原始编译文件识别码所对应的所述原始编译文件;以及,an original compiled file receiving unit, configured to receive the original compiled file corresponding to the original compiled file identification code fed back by the server according to the file acquisition request; and,
原始编译文件解压单元,用于将所述原始编译文件解压至所述存储装置。The original compiled file decompression unit is configured to decompress the original compiled file to the storage device.
进一步地,所述烧录文件制作模块具体包括:Further, the burning file making module specifically includes:
上电指令发送单元,用于向所述控制装置发送上电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行上电,并使所述TV板卡在检查到其系统需要升级时,调用所述存储装置中预先存储的升级包对其系统进行升级;以及,A power-on command sending unit, configured to send a power-on command to the control device, so that the control device controls the power supply circuit corresponding to the TV board to power on the TV board, and makes the TV board When the card checks that its system needs to be upgraded, it invokes the upgrade package pre-stored in the storage device to upgrade its system; and,
TV板卡重启单元,用于对所述TV板卡进行重启,使所述TV板卡在重启之后检查所述系统是否需要初始化,若需要,则调用所述存储装置中预先存储的初始化脚本文件以初始化所述系统,并获取所述存储装置中的所述原始编译文件,在初始化后的系统中将所述原始编译文件制作成烧录文件,若不需要,则获取所述存储装置中的所述原始编译文件,并在所述系统中将所述原始编译文件制作成烧录文件。The TV board restart unit is used to restart the TV board, so that the TV board checks whether the system needs to be initialized after restarting, and if necessary, calls the pre-stored initialization script file in the storage device To initialize the system, and obtain the original compilation file in the storage device, make the original compilation file into a burning file in the initialized system, if not needed, obtain the original compilation file in the storage device the original compilation file, and make the original compilation file into a burning file in the system.
进一步地,所述烧录文件的制作装置还包括:Further, the device for making the burning file also includes:
断电指令发送模块,用于在监控到所述TV板卡通过调用所述存储装置中预先存储的卸载指令将所述烧录文件卸载至所述存储装置时,向所述控制装置发送断电指令,使所述控制装置控制所述TV板卡所对应的电源电路对所述TV板卡进行断电;A power-off command sending module, configured to send a power-off command to the control device when it is monitored that the TV board unloads the programming file to the storage device by calling a pre-stored unload command in the storage device. An instruction to make the control device control the power supply circuit corresponding to the TV board to power off the TV board;
第三切换指令发送模块,用于向所述控制装置发送第三切换指令,使所述控制装置控制所述存储装置连接至本地;A third switching instruction sending module, configured to send a third switching instruction to the control device, so that the control device controls the storage device to connect locally;
压缩烧录文件获得模块,用于将所述存储装置中的所述烧录文件压缩至本地,获得压缩烧录文件;A compressed burning file obtaining module, configured to compress the burning file in the storage device locally to obtain a compressed burning file;
文件提取请求发送模块,用于计算所述压缩烧录文件的校验和,当所述校验和正确时,向所述服务器发送文件提取请求;以及,A file extraction request sending module, configured to calculate the checksum of the compressed programming file, and when the checksum is correct, send a file extraction request to the server; and,
压缩烧录文件发送模块,用于接收所述服务器根据所述文件提取请求反馈的提取指令,并根据所述提取指令将所述压缩烧录文件发送至所述服务器进行存储。The compressed programming file sending module is configured to receive an extraction instruction fed back by the server according to the file extraction request, and send the compressed programming file to the server for storage according to the extraction instruction.
参见图4,是本发明提供的烧录文件的制作系统的一个实施例的结构示意图,包括服务器41、主机42、控制装置43、TV板卡44和存储装置45。其中,主机的一端与服务器相连接,另一端与控制装置相连接,并通过串口与TV板卡相连接。控制装置与TV板卡和存储装置相连接。当服务器向主机发送文件制作请求时,主机控制控制装置将存储装置的连接切换至主机。主机从服务器获取原始编译文件,并解压至该存储装置。随后,主机控制控制装置将存储装置的连接切换至TV板卡,并控制TV板卡将存储装置中的原始编译文件制作成烧录文件。在TV板卡将制作完成的烧录文件卸载至存储装置之后,主机控制控制装置将存储装置的连接切换至主机,以将存储装置中的烧录文件上传至服务器中存储。Referring to FIG. 4 , it is a schematic structural diagram of an embodiment of a system for making a burning file provided by the present invention, including a server 41 , a host 42 , a control device 43 , a TV board 44 and a storage device 45 . Wherein, one end of the host computer is connected with the server, the other end is connected with the control device, and connected with the TV board through the serial port. The control device is connected with the TV board and the storage device. When the server sends a file creation request to the host, the host controls the control device to switch the connection of the storage device to the host. The host gets the original compiled file from the server and decompresses it to the storage device. Subsequently, the host controls the control device to switch the connection of the storage device to the TV board, and controls the TV board to make the original compiled file in the storage device into a burning file. After the TV board unloads the completed burning file to the storage device, the host control control device switches the connection of the storage device to the host, so as to upload the burning file in the storage device to the server for storage.
需要说明的是,本发明实施例仅以控制装置连接一个存储装置、一个TV板卡为例进行描述,但在具体实施当中,控制装置可以同时连接一个或多个TV板卡以及与TV板卡数量相同的存储装置,其数量可以根据实际应用来配置。It should be noted that the embodiment of the present invention is only described as an example in which the control device is connected to a storage device and a TV board, but in actual implementation, the control device can be connected to one or more TV boards and the The number of storage devices with the same number can be configured according to actual applications.
本发明实施例提供的烧录文件的制作装置和系统,通过在主机中编写控制程序,使主机通过控制控制装置实现对存储装置连接的切换,进而使TV板卡完成烧录文件的制作,实现了制作烧录文件的过程的全自动化,从而提高了制作烧录文件的过程的效率,而且,无需人工控制,减少了人力成本,同时避免了人为操作可能造成的差错,保证了制作的烧录文件的质量;通过文件制作请求中的TV板卡识别码控制相应的TV板卡制作烧录文件,能够支持不同的TV板卡同时进行制作,实现多任务的并发执行,进一步提高烧录文件的制作效率。另外,主机的操作系统的日志文件系统记录整个烧录文件的制作过程,方便日后对烧录文件的制作过程进行追溯,进一步保证了制作的烧录文件的质量。The device and system for making a burning file provided by the embodiments of the present invention, by writing a control program in the host, the host can switch the connection of the storage device through the control control device, and then make the TV board complete the making of the burning file, realizing It realizes the full automation of the process of making burning files, thereby improving the efficiency of the process of making burning files. Moreover, it does not require manual control, reduces labor costs, and at the same time avoids possible errors caused by human operations, ensuring the production of burning files. The quality of the file; through the TV board identification code in the file production request to control the corresponding TV board to make the burning file, it can support different TV boards to make at the same time, realize the concurrent execution of multiple tasks, and further improve the burning file. Production efficiency. In addition, the log file system of the host's operating system records the entire production process of the burning file, which is convenient for tracing the production process of the burning file in the future, and further ensures the quality of the burning file produced.
以上所述是本发明的优选实施方式,应当指出,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以作出若干改进和润饰,这些改进和润饰也视为本发明的保护范围。The above description is a preferred embodiment of the present invention. It should be pointed out that for those of ordinary skill in the art, without departing from the principle of the present invention, some improvements and modifications can also be made, and these improvements and modifications are also considered as protection scope of the present invention.
Claims (10)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610561878.1A CN106201622A (en) | 2016-07-14 | 2016-07-14 | Method and device for making burn-in file |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201610561878.1A CN106201622A (en) | 2016-07-14 | 2016-07-14 | Method and device for making burn-in file |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| CN106201622A true CN106201622A (en) | 2016-12-07 |
Family
ID=57476147
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN201610561878.1A Pending CN106201622A (en) | 2016-07-14 | 2016-07-14 | Method and device for making burn-in file |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN106201622A (en) |
Cited By (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108023839A (en) * | 2017-12-13 | 2018-05-11 | 天津光电通信技术有限公司 | One kind is applied to Tb/s grades of optical network signal switching equipment and its control system |
| CN110597528A (en) * | 2019-09-19 | 2019-12-20 | 广州视源电子科技股份有限公司 | File burning system and burning method thereof |
| CN113448600A (en) * | 2021-07-08 | 2021-09-28 | 中科创达软件股份有限公司 | System installation method and device, upper computer and storage medium |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020040518A1 (en) * | 1997-06-11 | 2002-04-11 | William Orson Butts | Method for manufacturing a disk drive |
| CN104636283A (en) * | 2013-11-08 | 2015-05-20 | 大陆汽车系统(天津)有限公司 | System and method for USB burning |
| CN105630559A (en) * | 2015-12-25 | 2016-06-01 | 广州视源电子科技股份有限公司 | Method and system for burning board firmware |
-
2016
- 2016-07-14 CN CN201610561878.1A patent/CN106201622A/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20020040518A1 (en) * | 1997-06-11 | 2002-04-11 | William Orson Butts | Method for manufacturing a disk drive |
| CN104636283A (en) * | 2013-11-08 | 2015-05-20 | 大陆汽车系统(天津)有限公司 | System and method for USB burning |
| CN105630559A (en) * | 2015-12-25 | 2016-06-01 | 广州视源电子科技股份有限公司 | Method and system for burning board firmware |
Cited By (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108023839A (en) * | 2017-12-13 | 2018-05-11 | 天津光电通信技术有限公司 | One kind is applied to Tb/s grades of optical network signal switching equipment and its control system |
| CN108023839B (en) * | 2017-12-13 | 2023-12-08 | 天津光电通信技术有限公司 | Signal switching equipment applied to Tb/s-level optical network and control system thereof |
| CN110597528A (en) * | 2019-09-19 | 2019-12-20 | 广州视源电子科技股份有限公司 | File burning system and burning method thereof |
| CN113448600A (en) * | 2021-07-08 | 2021-09-28 | 中科创达软件股份有限公司 | System installation method and device, upper computer and storage medium |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104199706A (en) | Firmware upgrade method and device for eMMC | |
| CN102339242A (en) | Computer system data recovery device | |
| CN105760200A (en) | Terminal equipment and its system upgrading method | |
| CN101216773A (en) | Embedded Linux system firmware downloading method and device | |
| CN104881604B (en) | The operation method and device of version file | |
| CN105205142B (en) | Preserve method, device and the mobile terminal of journal file | |
| US20190205109A1 (en) | Computer system, baseboard management controller, and os installation method | |
| CN106980493A (en) | Firmware management method and apparatus | |
| CN105677375A (en) | Update control device, terminal, terminal update method and system | |
| CN104572354A (en) | Backup and restoration method for operating system based on restoration service and equipment thereof | |
| CN106201622A (en) | Method and device for making burn-in file | |
| WO2021136200A1 (en) | Bootloader loading method, storage medium, and embedded terminal | |
| CN101221507A (en) | Device, system and method for automatic installation of network TV value-added services | |
| CN110825419A (en) | A firmware refresh method, device, electronic device and storage medium | |
| CN110187872A (en) | A BIOS development method, system, electronic equipment, and storage medium | |
| HK1220018A1 (en) | Method and system for data communication | |
| CN109324931B (en) | The method of realizing vmware mount recovery in the data deduplication system | |
| CN104461622A (en) | system updating method and device of intelligent terminal | |
| CN101325653B (en) | Apparatus and method for implementing plug-and-play function in set-top box | |
| CN104459515A (en) | Mainboard production testing method | |
| CN109245920B (en) | Automatic switch configuration method and device, switch and storage medium | |
| CN106933604A (en) | A kind of method for upgrading system and device | |
| CN109976833A (en) | Firmware loading method, electronic equipment and the server for storing firmware configuration data | |
| CN111158760B (en) | Loading method and device for card configuration file and electronic equipment | |
| CN111382009B (en) | Automatic system maintenance method and computer equipment with automatic maintenance function |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| RJ01 | Rejection of invention patent application after publication |
Application publication date: 20161207 |
|
| RJ01 | Rejection of invention patent application after publication |