CN105279013A - Method and device for program issuance based on volume production - Google Patents

Method and device for program issuance based on volume production Download PDF

Info

Publication number
CN105279013A
CN105279013A CN201410280843.1A CN201410280843A CN105279013A CN 105279013 A CN105279013 A CN 105279013A CN 201410280843 A CN201410280843 A CN 201410280843A CN 105279013 A CN105279013 A CN 105279013A
Authority
CN
China
Prior art keywords
embedded device
file
program
executable program
batch production
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.)
Granted
Application number
CN201410280843.1A
Other languages
Chinese (zh)
Other versions
CN105279013B (en
Inventor
冯雪
褚衍超
廖方诚
裴卫斌
张孟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen ZTE Netview Technology Co Ltd
Original Assignee
Shenzhen ZTE Netview Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen ZTE Netview Technology Co Ltd filed Critical Shenzhen ZTE Netview Technology Co Ltd
Priority to CN201410280843.1A priority Critical patent/CN105279013B/en
Publication of CN105279013A publication Critical patent/CN105279013A/en
Application granted granted Critical
Publication of CN105279013B publication Critical patent/CN105279013B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Stored Programmes (AREA)

Abstract

The invention discloses a method and a device for program issuance based on volume production. The method comprises: configuring a product identifier according to a product model of an embedded device; according to the input product identifier, reading a corresponding configuration file, and according to the configuration file, extracting a resource file corresponding to the embedded device; according to the resource file, packaging to generate an executable program, and according to the type of a storage medium of the embedded device and at least a check algorithm, generating verification data; burning the generated executable program in the storage medium of the embedded device, and according to the verification data, verifying whether the writing-in of the executable program is successful, and after the writing-in of the executable program is determined to be successful, issuing the executable program. The method simplifies complex software issue procedures in a volume production process, and the issue process basically does not need manual participation, so error probability in a program issuance process is reduced to a large extent.

Description

Based on program dissemination method and the device thereof of batch production
Technical field
The present invention relates to software technology field, in particular to a kind of program dissemination method based on batch production and device thereof.
Background technology
Under current domestic and international economic situation, Video Surveillance Industry is undoubtedly an industry extremely attracted eyeball.In view of the huge size in domestic and international video monitoring market, in order to improve the competitiveness of video monitoring equipment manufacturer, the program dissemination method how proposing a kind of applicable video monitoring product batch production not only can be enhanced productivity, and also improves the reliability and stability of production link to a certain extent.
As everyone knows, in process of production, very important link is exactly that embedded device can the programming of working procedure to embedded device, the high speed development maked rapid progress along with modern social science technology, in market competition, the speed that product is issued and the key that stable quality is won victory beyond doubt.Can one-key operation complete automatic gauging if be published to program burn writing from program, carry out product promotion can to a certain extent video monitoring equipment manufacturer and seize rapidly market provides a huge power-assisted.
Traditional embedded device can the method issued of working procedure often be confined to only to provide corresponding embedded device can working procedure, in follow-up program issuing process, may also need to test oneself just can be issued after testing product performance by carrying out complete machine before dispatching from the factory.But under current production seriation requires more and more higher situation, the model of embedded device product presents diversified feature, the prior art scheme is to the product defects location technical bottleneck beyond doubt occurred in production run.
Summary of the invention
Given this, the object of the embodiment of the present invention is to provide a kind of program dissemination method based on batch production and device thereof.
The embodiment of the present invention realizes by the following technical solutions:
Based on a program dissemination method for batch production, comprising:
According to the product type configuring product identifier of embedded device;
According to the product identifier of input, read corresponding configuration file, and extract the resource file corresponding with embedded device according to this configuration file;
Generate executable program according to described resource file packing, and the storage media types of foundation embedded device and at least one checking algorithm generate checking data;
By the storage medium of the burned embedded device of executable program of generation, and whether successful according to the programming of described checking data verification executable program, and determining the described executable program of the rear issue of executable program programming success.
Preferably, executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.
Preferably, described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.
Preferably, described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and component devices runs order and the catalogue file of required file system.
Preferably, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
Based on a program distributing device for batch production, comprising:
Configuration module, for the product type configuring product identifier according to embedded device;
Load module, for input product identifier;
Matching module, for the product identifier according to input, reads corresponding configuration file;
Extraction module, for extracting the resource file corresponding with embedded device according to this configuration file;
Program packetization module, for generating executable program according to described resource file packing, and the storage media types of foundation embedded device and at least one checking algorithm generate checking data;
Program release module, for the storage medium of the burned embedded device of executable program that will generate, and according to described checking data verification executable program programming whether success, and issues described executable program after determining executable program programming success.
Preferably, executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.
Preferably, described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.
Preferably, described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and component devices runs order and the catalogue file of required file system.
Preferably, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
Program dissemination method based on batch production provided by the invention, set respective product identifier according to different product types, each product identifier represents the volume production software version of the product of a type; According to different product identifier, read the configuration file matched, according to configuration file, extract the file packing generation equipment executable program that product is corresponding; When generating equipment executable program, suitable checking algorithm can be selected according to the storage medium of equipment, automatically generate checking data, after program writes sheet, automatically whether successfully carry out determining program programming according to checking data, and issue described executable program after determining programming success.
This invention simplifies software metric tools flow process loaded down with trivial details in mass production process, issuing process does not need artificial participation substantially, reduces the probability of makeing mistakes in program issuing process to a great extent.Adopt the present invention, automatically checking data can be generated, do not distinguish storage medium and program burn writing equipment, programming completes automatic checker, and whether programming is successful, improve the software metric tools efficiency of batch production, thus it himself has strict self diagnostic capability in program issuing process, any one link is made mistakes and can automatically be identified, exit and point out, helping positioning problems.And the executable program that the method generates can not be distinguished fever writes and writes, it is very large convenient to bring to the issue of program and production, improves reliability.
Accompanying drawing explanation
The program dissemination method schematic flow sheet based on batch production that Fig. 1 provides for the embodiment of the present invention;
The program dissemination method schematic flow sheet that Fig. 2 provides for the present invention one specific embodiment;
The program distributing device structural representation based on batch production that Fig. 3 provides for the embodiment of the present invention.
The realization of the object of the invention, functional characteristics and excellent effect, be described further below in conjunction with specific embodiment and accompanying drawing.
Embodiment
Below in conjunction with the drawings and specific embodiments, technical scheme of the present invention is described in further detail, can better understand the present invention to make those skilled in the art and can be implemented, but illustrated embodiment is not as a limitation of the invention.
As shown in Figure 1, a kind of program dissemination method based on batch production that the embodiment of the present invention provides, comprising:
The product type configuring product identifier of S10, foundation embedded device;
The product identifier of S20, foundation input, reads corresponding configuration file, and extracts the resource file corresponding with embedded device according to this configuration file;
S30, generate executable program according to the packing of described resource file, and generate checking data according to the storage media types of embedded device and at least one checking algorithm;
S40, the storage medium of the burned embedded device of executable program that will generate, and according to described checking data verification executable program programming whether success, and described executable program is issued after determining executable program programming success.
During concrete enforcement, the embedded device of different product model is all deployed different volume production software versions, i.e. executable program, the embedded device of like products model is all deployed consistent volume production software version, and namely the batch production described in the embodiment of the present invention refers to that the embedded device of multiple like products model fires the industrial process of described executable program.
Executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.Described product identifier refers to the character string be made up of letter, short-term and numeral, for uniquely distinguishing the product type of different embedded device.
Described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.Environmental variance gparam parameter mainly contains arm_memsz, the parameters such as cputype, ddrtype, syslog and the little version of software, these parameters can write the storage medium of embedded device, are used for mating the version of software in the hardware of embedded device and positioning product; The product type information of embedded device, the parameters such as the hardware revision information of the storage medium space type of embedded device and size information and embedded device, be used for mating this type product and issue the required resource file extracted, and the position finding it to deposit.
Described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and forms order and the catalogue file of file system needed for built-in equipment operation.These files can be combined into the file system required for a built-in equipment operation, by the storage medium by burned for these files embedded device, when embedded device starts, by building file system voluntarily, ensure the normal operation of product.
In the present embodiment, preferably, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
Fig. 2 issues process flow diagram according to the program of a specific embodiment of the present invention.In an embodiment, suppose that the product identifier needing the embedded device issued is NVRD32-2030, storage medium is Nand, the resource file required for the issue of a series of product and configuration file is deposited in the program distributing device based on batch production corresponding with said method, correspondingly, the configuration file NVRD32-2030.conf using NVRD32-2030 as index tab is stored in the described program distributing device based on batch production.
Step 1, input product identifier NVRD32-2030;
Step 2, obtains this product identifier, and it is mated with configuration file, if the match is successful, then reads corresponding configuration file; Optionally, if it fails to match for identifier, be then expressed as Unknown Product or configuration file disappearance, alarm also exits product issue;
Step 3, according to the configuration file NVRD32-2030.conf that the match is successful, extracts the resource file deposited in the program distributing device based on batch production; Optionally, if resource file extracts unsuccessfully, then represent file publishing disappearance, alarm also exits product issue;
Step 4, according to the resource file that step 3 is extracted, the instruments such as the making of calling system mirror image and packing, generation equipment executable file whole-nand-flash-NVRD32-2030.bin, in the process, can according to the difference of operating system, automatically select suitable instrument to carry out packing, change, the operation such as merging, make calling program issue the difference can ignoring system and carry out issue operation; Simultaneously according to storage media types and the applicable checking algorithm of embedded device, generate checking data;
Step 5, uses flash to write sheet device by the executable program programming that generates in the storage medium of embedded device above, and according to the checking data generated, autotest programming whether success, successful then the issue completing executable program operates.
Correspondingly, shown in figure 3, the embodiment of the present invention additionally provides a kind of program distributing device based on batch production, comprising:
Configuration module 10, for the product type configuring product identifier according to embedded device;
Load module 20, for input product identifier;
Matching module 30, for the product identifier according to input, reads corresponding configuration file;
Extraction module 40, for extracting the resource file corresponding with embedded device according to this configuration file;
Program packetization module 50, for generating executable program according to described resource file packing, and the storage media types of foundation embedded device and at least one checking algorithm generate checking data;
Program release module 60, for the storage medium of the burned embedded device of executable program that will generate, and according to described checking data verification executable program programming whether success, and issues described executable program after determining executable program programming success.
Program packetization module 50 can generate equipment can working procedure, and selection check algorithm and embedded device storage medium generate checking data simultaneously; After program release module 60 carries out program write, judge programming whether success according to checking data, successful then complete the issue of executable program; In the specific implementation, the storage medium of described checking algorithm and embedded device can revise setting according to actual needs flexibly, does not need the difference considering fever writes, only develops inside this distributing device.
The program distributing device of the embodiment of the present invention, being integrated with can checking procedure between working procedure and device storage medium, automatically checking data is generated when generating executable program, and can be whether successful according to the checking data automatic checker programming generated after burning sheet, make the production of product and issue more simple and reliable; And the executable program that the present invention generates, fever writes can not be distinguished and write; Accomplish with product type, issue environment, storage medium, checking algorithm and burn sheet device type and have nothing to do, really accomplish compatible good, simple and fast, safe and reliable.
During concrete enforcement, the embedded device of different product model is all deployed different volume production software versions, i.e. executable program, the embedded device of like products model is all deployed consistent volume production software version, and namely the batch production described in the embodiment of the present invention refers to that the embedded device of multiple like products model fires the industrial process of described executable program.
Executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.Described product identifier refers to the character string be made up of letter, short-term and numeral, for uniquely distinguishing the product type of different embedded device.
Described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.Environmental variance gparam parameter mainly contains arm_memsz, the parameters such as cputype, ddrtype, syslog and the little version of software, these parameters can write the storage medium of embedded device, are used for mating the version of software in the hardware of embedded device and positioning product; The product type information of embedded device, the parameters such as the hardware revision information of the storage medium space type of embedded device and size information and embedded device, be used for mating this type product and issue the required resource file extracted, and the position finding it to deposit.
Described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and component devices runs order and the catalogue file of required file system.These files can be combined into the file system required for a built-in equipment operation, by the storage medium by burned for these files embedded device, when embedded device starts, by building file system voluntarily, ensure the normal operation of product.
In the present embodiment, preferably, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
The foregoing is only the preferred embodiments of the present invention; not thereby the scope of the claims of the present invention is limited; every utilize instructions of the present invention and accompanying drawing content to do equivalent structure or equivalent flow process conversion; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1., based on a program dissemination method for batch production, it is characterized in that, comprising:
According to the product type configuring product identifier of embedded device;
According to the product identifier of input, read corresponding configuration file, and extract the resource file corresponding with embedded device according to this configuration file;
Generate executable program according to described resource file packing, and the storage media types of foundation embedded device and at least one checking algorithm generate checking data;
By the storage medium of the burned embedded device of executable program of generation, and whether successful according to the programming of described checking data verification executable program, and determining the described executable program of the rear issue of executable program programming success.
2. as claimed in claim 1 based on the program dissemination method of batch production, it is characterized in that, executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.
3. as claimed in claim 1 based on the program dissemination method of batch production, it is characterized in that, described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.
4. as claimed in claim 1 based on the program dissemination method of batch production, it is characterized in that, described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and component devices runs order and the catalogue file of required file system.
5. as claimed in claim 1 based on the program dissemination method of batch production, it is characterized in that, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
6., based on a program distributing device for batch production, it is characterized in that, comprising:
Configuration module, for the product type configuring product identifier according to embedded device;
Load module, for input product identifier;
Matching module, for the product identifier according to input, reads corresponding configuration file;
Extraction module, for extracting the resource file corresponding with embedded device according to this configuration file;
Program packetization module, for generating executable program according to described resource file packing, and the storage media types of foundation embedded device and at least one checking algorithm generate checking data;
Program release module, for the storage medium of the burned embedded device of executable program that will generate, and according to described checking data verification executable program programming whether success, and issues described executable program after determining executable program programming success.
7. as claimed in claim 6 based on the program distributing device of batch production, it is characterized in that, executable program refers to the mirror image sintering file of the embedded device that can be mass, the product type one_to_one corresponding of described executable program and embedded device.
8. as claimed in claim 6 based on the program distributing device of batch production, it is characterized in that, described configuration file comprises: the hardware revision information of the product type information of environmental variance gparam parameter, embedded device, the storage medium space type of embedded device and size information and embedded device.
9. as claimed in claim 6 based on the program distributing device of batch production, it is characterized in that, described resource file comprises uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file, and component devices runs order and the catalogue file of required file system.
10. as claimed in claim 6 based on the program distributing device of batch production, it is characterized in that, described checking algorithm is bug check and corrects ecc checking algorithm or cyclic redundancy check (CRC) code CRC check algorithm.
CN201410280843.1A 2014-06-20 2014-06-20 Program dissemination method and its device based on batch production Expired - Fee Related CN105279013B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410280843.1A CN105279013B (en) 2014-06-20 2014-06-20 Program dissemination method and its device based on batch production

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410280843.1A CN105279013B (en) 2014-06-20 2014-06-20 Program dissemination method and its device based on batch production

Publications (2)

Publication Number Publication Date
CN105279013A true CN105279013A (en) 2016-01-27
CN105279013B CN105279013B (en) 2019-11-19

Family

ID=55148068

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410280843.1A Expired - Fee Related CN105279013B (en) 2014-06-20 2014-06-20 Program dissemination method and its device based on batch production

Country Status (1)

Country Link
CN (1) CN105279013B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908404A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 program packaging method, system and terminal device
CN112148309A (en) * 2019-06-28 2020-12-29 青岛海尔空调器有限总公司 Method for producing electric control assembly, device and production equipment thereof
CN112582014A (en) * 2020-12-24 2021-03-30 江苏国科微电子有限公司 Solid state disk batch production method, device, equipment and medium
CN114115934A (en) * 2021-10-25 2022-03-01 珠海格力电器股份有限公司 Program issuing method, electronic device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073519A (en) * 2010-12-31 2011-05-25 青岛海信宽带多媒体技术有限公司 Software updating method
CN103577211A (en) * 2012-08-08 2014-02-12 上海赤炫信息科技有限公司 Novel packaging and burning as well as updating methods for Android ROM (read only memory) system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102073519A (en) * 2010-12-31 2011-05-25 青岛海信宽带多媒体技术有限公司 Software updating method
CN103577211A (en) * 2012-08-08 2014-02-12 上海赤炫信息科技有限公司 Novel packaging and burning as well as updating methods for Android ROM (read only memory) system

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107908404A (en) * 2017-11-17 2018-04-13 深圳市泉眼网络科技有限公司 program packaging method, system and terminal device
CN112148309A (en) * 2019-06-28 2020-12-29 青岛海尔空调器有限总公司 Method for producing electric control assembly, device and production equipment thereof
CN112582014A (en) * 2020-12-24 2021-03-30 江苏国科微电子有限公司 Solid state disk batch production method, device, equipment and medium
CN114115934A (en) * 2021-10-25 2022-03-01 珠海格力电器股份有限公司 Program issuing method, electronic device and storage medium

Also Published As

Publication number Publication date
CN105279013B (en) 2019-11-19

Similar Documents

Publication Publication Date Title
US9841826B2 (en) Automatic test system and test method for computer, record medium, and program product
CN102736978B (en) A kind of method and device detecting the installment state of application program
CN104317618A (en) Firmware partitioning method and device
CN105279013A (en) Method and device for program issuance based on volume production
CN109902005A (en) A kind of method and system of automatic test
CN112214411B (en) Disaster recovery system testing method, device, equipment and storage medium
US20190073292A1 (en) State machine software tester
CN103019722B (en) A kind of method and device extracting Java network application AKU
WO2017020459A1 (en) Method and apparatus for configuring plugin package for host
CN105022694A (en) Test case generation method and system for mobile terminal test
CN104881355A (en) Method and system for testing test coverage
CN111104155A (en) Database script management platform and method, electronic equipment and storage medium
CN109871290A (en) Allocating stack method for tracing, device and storage medium applied to Java
CN103049374B (en) Automatic testing method and device
JP2017084082A (en) Simulation device, test scenario file creation method, and test method using test scenario file
CN107357721B (en) Method and device for testing system
US11188449B2 (en) Automated exception resolution during a software development session based on previous exception encounters
CN104133743B (en) A kind of by burning file to the method for EMMC chip and device
CN111651352A (en) Warehouse code merging method and device
EP3514680B1 (en) Identification of changes in functional behavior and runtime behavior of a system during maintenance cycles
CN105320510A (en) Method and device for automatically tracking data relation
CN104298618B (en) The command handling method and device of a kind of intelligent terminal
CN104459515A (en) Mainboard production testing method
CN111078529A (en) Client write-in module testing method and device and electronic equipment
JP5905313B2 (en) Information processing apparatus, information processing method, information processing system, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 518057 Energy Storage Building, 3099 South Keyuan Road, Yuehai Street, Nanshan District, Shenzhen City, Guangdong Province

Applicant after: SHENZHEN ZNV TECHNOLOGY Co.,Ltd.

Address before: 518057 Nanshan District science and technology zone, Guangdong, Zhejiang Province, South Road, building W1-A, the first floor of the building, building two

Applicant before: SHENZHEN ZNV TECHNOLOGY Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20191119

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