CN105279013B - Program dissemination method and its device based on batch production - Google Patents

Program dissemination method and its device based on batch production Download PDF

Info

Publication number
CN105279013B
CN105279013B CN201410280843.1A CN201410280843A CN105279013B CN 105279013 B CN105279013 B CN 105279013B CN 201410280843 A CN201410280843 A CN 201410280843A CN 105279013 B CN105279013 B CN 105279013B
Authority
CN
China
Prior art keywords
file
embedded device
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.)
Expired - Fee Related
Application number
CN201410280843.1A
Other languages
Chinese (zh)
Other versions
CN105279013A (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 Liwei Zhilian Technology Co Ltd
Original Assignee
Shenzhen Liwei Zhilian 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 Liwei Zhilian Technology Co Ltd filed Critical Shenzhen Liwei Zhilian 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 kind of program dissemination method and its device based on batch production, which comprises the product type configuring product identifier according to embedded device;According to the product identifier of input, corresponding configuration file is read, and extracts resource file corresponding with embedded device according to the configuration file;It is packaged according to the resource file and generates executable program, and generate verification data according to the storage media types of embedded device and at least one checking algorithm;Whether succeed by the storage medium of the burned embedded device of the executable program of generation, and according to the verification data check executable program programming, and issues the executable program after determining executable program programming success.This invention simplifies softwares cumbersome during mass production to issue process, and issuing process does not need manually to participate in substantially, largely reduces the probability to malfunction in program issuing process.

Description

Program dissemination method and its device based on 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 Its device.
Background technique
Under current domestic and international economic situation, Video Surveillance Industry is undoubtedly the industry extremely to attract eyeball.Mirror How huge size in domestic and international video monitoring market proposes one to improve the competitiveness of video monitoring equipment manufacturer Production efficiency not only can be improved in the program dissemination method of the suitable video monitoring product batch production of kind, also mentions to a certain extent The high reliability and stability of production link.
It is well known that embedded device is in process of production, a critically important link is exactly that embedded device can be run The programming of program, with the high speed development that modern social science technology is maked rapid progress, in market competition, the speed of product publication And stable quality is undoubtedly the key won victory.If being published to program burn writing from program with one-key operation and can complete automatic It examines, product promotion can be carried out to video monitoring equipment manufacturer to a certain extent and market offer one be provided rapidly huge helping Power.
The method that traditional embedded device can run program publication is often confined to be provided solely for embedded accordingly set It is standby to run program, in subsequent program issuing process, it may also need to produce by carrying out complete machine before dispatching from the factory from surveying to detect Moral character can be issued just later.However required in current production seriation under higher and higher situation, embedded device produces Diversified feature is presented in the model of product, and the prior art scheme is undoubtedly the product defects positioning occurred in production process a Technical bottleneck.
Summary of the invention
In consideration of it, the embodiment of the present invention is designed to provide a kind of program dissemination method and its dress based on batch production It sets.
The embodiment of the present invention is implemented with the following technical solutions:
A kind of program dissemination method based on batch production, comprising:
Product type configuring product identifier according to embedded device;
According to the product identifier of input, read corresponding configuration file, and according to the configuration file extract with it is embedded The corresponding resource file of equipment;
Be packaged according to the resource file and generate executable program, and according to the storage media types of embedded device and At least one checking algorithm generates verification data;
It can be held by the storage medium of the burned embedded device of the executable program of generation, and according to the verification data check Whether line program programming succeeds, and issues the executable program after determining executable program programming success.
Preferably, executable program refers to the mirror image sintering file for the embedded device that can be mass, described executable The product type of program and embedded device corresponds.
Preferably, the configuration file include: environmental variance gparam parameter, the product type information of embedded device, The storage medium space type and size information of embedded device and the hardware revision information of embedded device.
Preferably, the resource file includes uboot file, kernel uImage file, kernel module, firmware and application library The order of file system needed for file, Run Script file and component devices are run and catalogue file.
Preferably, the checking algorithm is error checking and correction ecc checking algorithm or cyclic redundancy check code CRC check Algorithm.
A kind of program distributing device based on batch production, comprising:
Configuration module, for the product type configuring product identifier according to embedded device;
Input module is used for input product identifier;
Matching module reads corresponding configuration file for the product identifier according to input;
Extraction module, for extracting resource file corresponding with embedded device according to the configuration file;
Program packetization module generates executable program for being packaged according to the resource file, and according to embedded device Storage media types and at least one checking algorithm generate verification data;
Program release module, the storage medium of the burned embedded device of executable program for that will generate, and according to institute It states whether verification data check executable program programming succeeds, and can be held described in publication after determining executable program programming success Line program.
Preferably, executable program refers to the mirror image sintering file for the embedded device that can be mass, described executable The product type of program and embedded device corresponds.
Preferably, the configuration file include: environmental variance gparam parameter, the product type information of embedded device, The storage medium space type and size information of embedded device and the hardware revision information of embedded device.
Preferably, the resource file includes uboot file, kernel uImage file, kernel module, firmware and application library The order of file system needed for file, Run Script file and component devices are run and catalogue file.
Preferably, the checking algorithm is error checking and correction ecc checking algorithm or cyclic redundancy check code CRC check Algorithm.
Program dissemination method provided by the invention based on batch production sets respective production according to different product types Product identifier, each product identifier represent the volume production software version of a type of product;According to different product identifications Symbol, reads matching configuration file, according to configuration file, extracts the corresponding file of product and is packaged the executable journey of generating device Sequence;In generating device executable program, suitable checking algorithm can be selected according to the storage medium of equipment, automatically generate verification Data come whether determining program programming succeeds automatically according to verification data after program writes piece, and are determining programming success After issue the executable program.
This invention simplifies softwares cumbersome during mass production to issue process, and issuing process does not need manually substantially It participates in, largely reduces the probability to malfunction in program issuing process.Using the present invention, verification data can be automatically generated, Storage medium and program burn writing equipment are not distinguished, and automatic checker is completed in programming, and whether programming is successful, improves batch production Software efficiency for issuing, thus its in program issuing process its own with stringent self diagnostic capability, any one link Error can automatic identification, exit and prompt, help positioning problems.And the executable program that the method generates can not be distinguished Fever writes are written, and it is very big convenient that the publication and production to program are brought, and improve reliability.
Detailed description of the invention
Fig. 1 is the program dissemination method flow diagram provided in an embodiment of the present invention based on batch production;
Fig. 2 is the program dissemination method flow diagram that a specific embodiment of the invention provides;
Fig. 3 is the program distributing device structural schematic diagram provided in an embodiment of the present invention based on batch production.
The realization, functional characteristics and excellent effect of the object of the invention, below in conjunction with specific embodiment and attached drawing do into The explanation of one step.
Specific embodiment
Technical solution of the present invention is described in further detail in the following with reference to the drawings and specific embodiments, so that this The technical staff in field can better understand the present invention and can be practiced, but illustrated embodiment is not as to limit of the invention It is fixed.
As shown in Figure 1, a kind of program dissemination method based on batch production provided in an embodiment of the present invention, comprising:
S10, the product type configuring product identifier according to embedded device;
S20, according to the product identifier of input, read corresponding configuration file, and according to the configuration file extract with it is embedding Enter the corresponding resource file of formula equipment;
S30, generation executable program, and the storage media types according to embedded device are packaged according to the resource file And at least one checking algorithm generates verification data;
S40, by the storage medium of the burned embedded device of the executable program of generation, and according to the verification data check Whether executable program programming succeeds, and issues the executable program after determining executable program programming success.
When it is implemented, the embedded device of different product model is deployed with different volume production software versions Program is executed, the embedded device of like products model is deployed with consistent volume production software version, institute of the embodiment of the present invention The batch production stated refers to that the embedded device of multiple like products models fires the industrial process of the executable program.
Executable program refer to the embedded device that can be mass mirror image sintering file, the executable program with it is embedding The product type for entering formula equipment corresponds.The product identifier refers to the character string being made of letter, short-term and number, For uniquely distinguishing the product type of different embedded devices.
The configuration file includes: environmental variance gparam parameter, the product type information of embedded device, embedded sets The hardware revision information of standby storage medium space type and size information and embedded device.Environmental variance gparam ginseng Number mainly has arm_memsz, cputype, ddrtype, the parameters such as syslog and the small version of software, and insertion can be written in these parameters The storage medium of formula equipment, the version of software in the hardware and positioning product for matching embedded device;Embedded device Product type information, the storage medium space type and size information of embedded device and the hardware version of embedded device The parameters such as this information for matching the resource file extracted required for the publication of this type product, and find the position of its storage.
The resource file includes uboot file, kernel uImage file, kernel module, firmware and application library file, fortune The order for file system needed for this document, and composition built-in equipment operation of traveling far and wide and catalogue file.These files can group File system required for a built-in equipment operation is synthesized, by the way that the storage of the burned embedded device of these files is situated between Matter, by voluntarily constructing file system, guarantees the normal operation of product in embedded device starting.
In the present embodiment, it is preferable that the checking algorithm is error checking and correction ecc checking algorithm or cyclic redundancy school Test a yard CRC check algorithm.
Fig. 2 is the program publication flow chart of a specific embodiment according to the present invention.In embodiment, it is assumed that need to send out The product identifier of the embedded device of cloth be NVRD32-2030, storage medium Nand, correspond to the above method based on A series of resource file required for storage has products to issue in the program distributing device of batch production and configuration file, accordingly Ground, the configuration file NVRD32-2030.conf using NVRD32-2030 as index tab are stored in described raw based on batch In the program distributing device of production.
Step 1, input product identifier NVRD32-2030;
Step 2, this product identifier is obtained, and it is matched with configuration file, if successful match, then reads phase The configuration file answered;Optionally, if it fails to match for identifier, then it represents that lacked for Unknown Product or configuration file, alarm And exit product publication;
Step 3, according to the configuration file NVRD32-2030.conf of successful match, the program hair based on batch production is extracted The resource file stored in cloth apparatus;Optionally, if resource file extracts failure, then it represents that file publishing missing, alarm is simultaneously Exit product publication;
Step 4, according to the extracted resource file of step 3, the tools such as the production of calling system mirror image and packing, generating device Executable file whole-nand-flash-NVRD32-2030.bin, in the process, can according to the difference of operating system, It automatically selects suitable tool and the operation such as is packaged, is converted, merged, the difference for making calling program publication that can ignore system carries out Publication operation;Storage media types according to embedded device and suitable checking algorithm simultaneously generate verification data;
Step 5, using flash write executable program programming that piece device generates front to embedded device storage medium In, according to the verification data of generation, whether autotest programming succeeds, publication behaviour that is successful then completing executable program Make.
Correspondingly, refering to what is shown in Fig. 3, the embodiment of the invention also provides a kind of, the program based on batch production issues dress It sets, comprising:
Configuration module 10, for the product type configuring product identifier according to embedded device;
Input module 20 is used for input product identifier;
Matching module 30 reads corresponding configuration file for the product identifier according to input;
Extraction module 40, for extracting resource file corresponding with embedded device according to the configuration file;
Program packetization module 50 generates executable program for being packaged according to the resource file, and sets according to embedded Standby storage media types and at least one checking algorithm generate verification data;
Program release module 60, the storage medium of the burned embedded device of executable program for that will generate, and foundation Whether the verification data check executable program programming succeeds, and can described in publication after determining executable program programming success Execute program.
The meeting of program packetization module 50 generating device can run program, and simultaneous selection checking algorithm and embedded device storage are situated between Matter generates verification data;After program release module 60 carries out program write-in, according to check number it is judged that whether programming succeeds, Publication that is successful then completing executable program;In the specific implementation, the storage medium of the checking algorithm and embedded device can To carry out flexibly modifying setting according to actual needs, without the concern for the difference of fever writes, only inside this distributing device into Row exploitation.
The program distributing device of the embodiment of the present invention, is integrated with the verification that can be run between program and equipment storage medium Journey automatically generates verification data when generating executable program, and can be automatic according to the verification data of generation after burning piece Whether checking routine programming succeeds, and keeps the production of product and publication simpler reliable;And the present invention is generated executable Program can not distinguish fever writes and is written;Accomplish and product type, publication environment, storage medium, checking algorithm and burning piece Device type is unrelated, has been truly realized good compatibility, simple and fast, safe and reliable.
When it is implemented, the embedded device of different product model is deployed with different volume production software versions Program is executed, the embedded device of like products model is deployed with consistent volume production software version, institute of the embodiment of the present invention The batch production stated refers to that the embedded device of multiple like products models fires the industrial process of the executable program.
Executable program refer to the embedded device that can be mass mirror image sintering file, the executable program with it is embedding The product type for entering formula equipment corresponds.The product identifier refers to the character string being made of letter, short-term and number, For uniquely distinguishing the product type of different embedded devices.
The configuration file includes: environmental variance gparam parameter, the product type information of embedded device, embedded sets The hardware revision information of standby storage medium space type and size information and embedded device.Environmental variance gparam ginseng Number mainly has arm_memsz, cputype, ddrtype, the parameters such as syslog and the small version of software, and insertion can be written in these parameters The storage medium of formula equipment, the version of software in the hardware and positioning product for matching embedded device;Embedded device Product type information, the storage medium space type and size information of embedded device and the hardware version of embedded device The parameters such as this information for matching the resource file extracted required for the publication of this type product, and find the position of its storage.
The resource file includes uboot file, kernel uImage file, kernel module, firmware and application library file, fortune The order for file system needed for this document and component devices operation of traveling far and wide and catalogue file.These files can be combined into one File system required for a built-in equipment operation, by by the storage medium of the burned embedded device of these files, embedding When entering the starting of formula equipment, by voluntarily constructing file system, guarantee the normal operation of product.
In the present embodiment, it is preferable that the checking algorithm is error checking and correction ecc checking algorithm or cyclic redundancy school Test a yard CRC check algorithm.
The above description is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all utilizations Equivalent structure or equivalent flow shift made by description of the invention and accompanying drawing content is applied directly or indirectly in other correlations Technical field, be included within the scope of the present invention.

Claims (10)

1. a kind of program dissemination method based on batch production characterized by comprising
Product type configuring product identifier according to embedded device;
According to the product identifier of input, corresponding configuration file is read, and according to configuration file extraction and embedded device Corresponding resource file;
It is packaged according to the resource file and generates executable program, and according to the storage media types of embedded device and at least A kind of checking algorithm generation verification data;
Journey can be performed by the storage medium of the burned embedded device of the executable program of generation, and according to the verification data check Whether sequence programming succeeds, and issues the executable program after determining executable program programming success.
2. the program dissemination method based on batch production as described in claim 1, which is characterized in that executable program refers to can The mirror image of the embedded device of batch production is sintered file, one a pair of product type of the executable program and embedded device It answers.
3. the program dissemination method based on batch production as described in claim 1, which is characterized in that the configuration file packet Include: environmental variance gparam parameter, the product type information of embedded device, embedded device storage medium space type and The hardware revision information of size information and embedded device.
4. the program dissemination method based on batch production as described in claim 1, which is characterized in that the resource file includes Uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file and component devices The order of file system needed for running and catalogue file.
5. the program dissemination method based on batch production as described in claim 1, which is characterized in that the checking algorithm is mistake Ecc checking algorithm or cyclic redundancy check code CRC check algorithm are looked into and corrected to erroneous detection.
6. a kind of program distributing device based on batch production characterized by comprising
Configuration module, for the product type configuring product identifier according to embedded device;
Input module is used for input product identifier;
Matching module reads corresponding configuration file for the product identifier according to input;
Extraction module, for extracting resource file corresponding with embedded device according to the configuration file;
Program packetization module generates executable program for being packaged according to the resource file, and depositing according to embedded device Storage media type and at least one checking algorithm generate verification data;
Program release module, the storage medium of the burned embedded device of executable program for that will generate, and according to the school It tests whether the programming of data check executable program succeeds, and issues the executable journey after determining executable program programming success Sequence.
7. the program distributing device based on batch production as claimed in claim 6, which is characterized in that executable program refers to can The mirror image of the embedded device of batch production is sintered file, one a pair of product type of the executable program and embedded device It answers.
8. the program distributing device based on batch production as claimed in claim 6, which is characterized in that the configuration file packet Include: environmental variance gparam parameter, the product type information of embedded device, embedded device storage medium space type and The hardware revision information of size information and embedded device.
9. the program distributing device based on batch production as claimed in claim 6, which is characterized in that the resource file includes Uboot file, kernel uImage file, kernel module, firmware and application library file, Run Script file and component devices The order of file system needed for running and catalogue file.
10. the program distributing device based on batch production as claimed in claim 6, which is characterized in that the checking algorithm is Error checking and correction ecc checking algorithm or cyclic redundancy check 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 CN105279013A (en) 2016-01-27
CN105279013B true 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)

Families Citing this family (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

Also Published As

Publication number Publication date
CN105279013A (en) 2016-01-27

Similar Documents

Publication Publication Date Title
CN105068929B (en) Test script generation method and device, method of testing, test device and test system
CN105279013B (en) Program dissemination method and its device based on batch production
CN108021410A (en) A kind of firmware upgrade method and system of intelligent appliance equipment
CN104317694B (en) Whole machine testing method and device
CN107943707B (en) Behavior tree testing method and device, storage medium and terminal
CN106294171B (en) Test macro, the method and apparatus of product automatic deployment
CN109902005A (en) A kind of method and system of automatic test
CN110008129B (en) Reliability test method, device and equipment for storage timing snapshot
CN107346284B (en) Application program detection method and detection device
Morgado et al. Automated pattern-based testing of mobile applications
Kervinen et al. Model-based testing through a GUI
CN105022694A (en) Test case generation method and system for mobile terminal test
CN106469078A (en) A kind of upgrade method of intelligent appliance and device
CN110457220A (en) Simulator detection method, intelligent terminal and storage medium based on android system
CN106528429A (en) UI testing method and device
CN106681877A (en) System and method for chip debugging and system chip
CN102572591B (en) Method and device for producing advanced security digital television set-top box
CN103823725A (en) Debugging device and debugging method
CN103970616A (en) Data recovery system and method
CN111176924B (en) GPU card dropping simulation method, system, terminal and storage medium
CN104899139A (en) Automatic test method for server basic function test
CN116820996A (en) Automatic generation method and device for integrated test cases based on artificial intelligence
JP2009075886A (en) Specification defect verification system, method thereof, and program
CN109857583A (en) A kind of processing method and processing device
CN105868101B (en) A kind of method for testing software

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