CN104503753A - Software management method and system based on modular design - Google Patents

Software management method and system based on modular design Download PDF

Info

Publication number
CN104503753A
CN104503753A CN201410788338.8A CN201410788338A CN104503753A CN 104503753 A CN104503753 A CN 104503753A CN 201410788338 A CN201410788338 A CN 201410788338A CN 104503753 A CN104503753 A CN 104503753A
Authority
CN
China
Prior art keywords
user defined
file
defined resource
information
modular design
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
Application number
CN201410788338.8A
Other languages
Chinese (zh)
Inventor
熊红令
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Jiuzhou Electric Appliance Co Ltd
Original Assignee
Shenzhen Jiuzhou Electric Appliance 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 Jiuzhou Electric Appliance Co Ltd filed Critical Shenzhen Jiuzhou Electric Appliance Co Ltd
Priority to CN201410788338.8A priority Critical patent/CN104503753A/en
Publication of CN104503753A publication Critical patent/CN104503753A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses a software management method and system based on modular design. The method includes the steps of S1, converting one or multiple custom resources into files of preset format by a resource conversion tool, and storing the files in a custom resource area; S2, to revise one or multiple custom resources, repeating the step S1, and converting new custom resources into files imported to the custom resource area. The system comprises the one or multiple custom resources, the resource conversion tool and the custom resource area. By storing the one or multiple custom resources, independent of other software modules, in the custom resource area, normal application of the custom resources is achieved, the problem of high polymerization degree of the software modules is solved, the software part is modularized, and software is more convenient and quicker to revise or upgrade. The software management method and system is widely applicable to various software management systems.

Description

A kind of method of managing software based on modular design and system
Technical field
The present invention relates to Software Architecture Design field, particularly relate to a kind of modular method of managing software, the invention still further relates to a kind of modular software management system.
Background technology
Software architecture (software architecture) is a series of relevant abstract patterns, is used to guide the design of large software system various aspects.Software architecture is the sketch of a system, and it comprises multiple module.
Existing software architecture, the degree of polymerization between module and module is too high, and the little resource in any point is changed all needs whole software of upgrading.As in set-top box software framework, OSD language, start-up picture, default language, user's User Defined resource part such as menucolor and other module degree of polymerization of software too high, the little resource in any point is changed all needs whole set-top box software of upgrading.This high polymerization degree make user when needs change or upgrade a certain module time, need the unnecessary in a large number resource (floating resources, calculation resources and time resource etc.) of waste, have impact on Consumer's Experience.
Summary of the invention
In order to solve the problems of the technologies described above, the object of this invention is to provide a kind of modular software architecture, module can be realized and independently change, the method for managing software that the change between module and module is independent of each other.
In order to solve the problems of the technologies described above, another object of the present invention is to provide a kind of modular software architecture, can realize module and independently change, the software management system that the change between module and module is independent of each other.
The technical solution adopted in the present invention is:
Based on a method of managing software for modular design, it comprises step: S1, one or more User Defined resource is converted to the file of preset format by resources shifting instrument, file is stored in User Defined Resource district; S2, when one or more User Defined resource revised by needs, repeats step S1, then the file that new User Defined resources shifting becomes is imported User Defined Resource district; S3, when User Defined resource used by needs, reads corresponding User Defined resource to User Defined Resource district.
Preferably, when User Defined Resource district does not distribute fixed storage space to one or more User Defined resource, the file of preset format described in step S1 is specially the first formatted file, it comprises head, congfig file, the file of load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, described check information comprises the checking data for authenticating documents security or integrality.
Preferably, described config file is XML file, and described XML file stores User Defined resource information, or described XML file stores storage side-play amount and the storage size information of one or more User Defined resource.
Preferably, when there is fixed storage space in User Defined Resource district to one or more User Defined Resourse Distribute, the file of preset format described in step S1 is specially the second formatted file, it comprises the file of head, load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality.
Preferably, described User Defined resource information is the data of User Defined resource after overcompression.
Preferably, described User Defined resource is user LOGO, OSD language or start-up picture.
Preferably, step S1 is specially: the file one or more User Defined resource being converted to preset format by resources shifting instrument, and file is passed through the programming of the mode such as USB, OTA or network to User Defined Resource district.
Based on a software management system for modular design, it is for implementing a kind of method of managing software based on modular design, and it comprises: one or more User Defined resource; Resources shifting instrument, for converting the file of preset format to by resources shifting instrument by one or more User Defined resource; User Defined Resource district, for storing the file after the conversion of resources shifting instrument.
Preferably, the file of described preset format is specially the file comprising head, congfig file, load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality; Or the file of described preset format is specially the file comprising head, load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality.
Preferably, it also comprises XML parser, described config file is XML file, and described XML parser is used for directly obtaining one or more User Defined resource information from XML file, or obtains storage side-play amount and the storage size information of one or more User Defined resource.
The invention has the beneficial effects as follows:
A kind of method of managing software based on modular design of the present invention is by being stored in User Defined Resource district by one or more User Defined resource independent of other software modules, while the normal use realizing User Defined resource, solve the problem that between software module, the degree of polymerization is too high, make software section modularization, allow the amendment of software or upgrading realize convenient, quick; In addition, by the User Defined resource part independent design of software and storage, user can import resource according to the wish of oneself, generate available storage file as required, also can from User Defined Resource district export, enter editor and amendment, then import the customization that machine User Defined Resource district realizes day software module.
The present invention can be widely used in various software management system.
Another beneficial effect of the present invention is:
A kind of software management system based on modular design of the present invention is by being stored in User Defined Resource district by one or more User Defined resource independent of other software modules, while the normal use realizing User Defined resource, solve the problem that between software module, the degree of polymerization is too high, make software section modularization, allow the amendment of software or upgrading realize convenient, quick; In addition, by the User Defined resource part independent design of software and storage, user can import resource according to the wish of oneself, generate available storage file as required, also can from User Defined Resource district export, enter editor and amendment, then import the customization that machine User Defined Resource district realizes day software module.
The present invention can be widely used in various software management system.
Accompanying drawing explanation
Below in conjunction with accompanying drawing, the specific embodiment of the present invention is described further:
Fig. 1 is resources shifting and the storing process schematic diagram of the first embodiment of the present invention;
Fig. 2 is the data structure schematic diagram of the first embodiment first formatted file of the present invention;
Fig. 3 is the storage organization schematic diagram in the User Defined Resource district of the band fixed storage space of the second embodiment of the present invention;
Fig. 4 is the second embodiment resources shifting of the present invention and storing process schematic diagram.
Embodiment
It should be noted that, when not conflicting, the embodiment in the application and the feature in embodiment can combine mutually.
Based on a method of managing software for modular design, it comprises step: S1, one or more User Defined resource is converted to the file of preset format by resources shifting instrument, file is stored in User Defined Resource district; S2, when one or more User Defined resource revised by needs, repeats step S1, then the file that new User Defined resources shifting becomes is imported User Defined Resource district; S3, when User Defined resource used by needs, reads corresponding User Defined resource to User Defined Resource district.
As the first embodiment of the present invention, as depicted in figs. 1 and 2, when User Defined Resource district does not distribute fixed storage space to one or more User Defined resource, the file of preset format described in step S1 is specially the first formatted file, it comprises head (representing with Header in figure), congfig file, the file of load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, described check information comprises the checking data for authenticating documents security or integrality.
Preferably, described config file is XML file, and described XML file stores User Defined resource information, or described XML file stores storage side-play amount and the storage size information of one or more User Defined resource.
As shown in Figure 1, for set-top box software management, set-top box software comprises boot software module, application module and multiple User Defined resource modules etc.Described multiple User Defined resource is respectively user LOGO, OSD language, start-up picture and software and hardware information etc.Form preset format file after the conversion of multiple User Defined resource by resources shifting instrument, be then stored in the User Defined Resource district in Set Top Box memory headroom.Wherein, resources shifting instrument can be a kind of PC application program or PC edit tool, and user derives the User Defined resource after transforming by USB, then by PC edit tool edit-modify, and then imports Set Top Box, realizes the customization of software module.
Config file is an XML file, as shown in Fig. 2.If User Defined resource is simple character string information, can directly be stored in XML file; If User Defined resource is large data resource, be then placed on payload data region after needing compression, in config file, only store storage side-play amount and the storage size information of User Defined resource, be convenient to save storage space.A built-in XML parser in set-top box software, directly can obtain the User Defined resource of small data after resolving config file and use, the large data resource such as pictures, OSD language needs the storage side-play amount and the storage size information that first obtain User Defined resource, read from payload data region again, and then compare with check information, verify by the use that then decompresses.
In addition, the resource file that resources shifting instrument is preserved can be converted into upgrade file, by the upgrading of the various ways such as USB, OTA and network, realizes the modularization upgrading of User Defined resource, the resource needing to change of only upgrading.
As the second preferred embodiment of the present invention, as shown in Figure 3, when there is fixed storage space in User Defined Resource district to one or more User Defined Resourse Distribute, the file of preset format described in step S1 is specially the second formatted file, it comprises head (representing with Header in figure), the file of load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, described check information comprises the checking data for authenticating documents security or integrality, file is prevented to be destroyed.Wherein, User Defined resource information can be through the data after compression, is conducive to like this saving memory headroom.
Same for set-top box software management, set-top box software comprises boot software module, application program module, user data module and multiple User Defined resource modules etc.Multiple fixed storage space is assigned for storing multiple User Defined resource in the FLASH of Set Top Box.As shown in Figure 4, user will become resource conversion by resource conversion instrument the file of preset format, described second form comprises header information, load data and check information, wherein load data is the form after compression, be convenient to save space, check information is used for the verification to load data, ensures its security.File after conversion is by the corresponding address of USB or OTA programming to FLASH.Set-top box software, when using User Defined resource, can arrive the fixing address of FLASH and read, first use the integrality of check information proof load data, then the use that decompresses.
A kind of method of managing software based on modular design of the present invention is by being stored in User Defined Resource district by one or more User Defined resource independent of other software modules, while the normal use realizing User Defined resource, solve the problem that between software module, the degree of polymerization is too high, make software section modularization, allow the amendment of software or upgrading realize convenient, quick; In addition, by the User Defined resource part independent design of software and storage, user can import resource according to the wish of oneself, generate available storage file as required, also can from User Defined Resource district export, enter editor and amendment, then import the customization that machine User Defined Resource district realizes day software module.
The present invention can be widely used in various software management system.
Based on a software management system for modular design, it is for implementing a kind of method of managing software based on modular design, and it comprises: one or more User Defined resource;
Resources shifting instrument, for converting the file of preset format to by resources shifting instrument by one or more User Defined resource; User Defined Resource district, for storing the file after the conversion of resources shifting instrument.
Preferably, the file of described preset format is specially the first formatted file, it comprises the file of head, congfig file, load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality; Or the file of described preset format is specially the second formatted file, it comprises the file of head, load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality.
Preferably, it also comprises XML parser, described config file is XML file, and described XML parser is used for directly obtaining one or more User Defined resource information from XML file, or obtains storage side-play amount and the storage size information of one or more User Defined resource.
Correspond to an a kind of method of managing software based on modular design based on the principle of work of the software management system of modular design and process, do not do tired stating at this.
A kind of software management system based on modular design of the present invention is by being stored in User Defined Resource district by one or more User Defined resource independent of other software modules, while the normal use realizing User Defined resource, solve the problem that between software module, the degree of polymerization is too high, make software section modularization, allow the amendment of software or upgrading realize convenient, quick; In addition, by the User Defined resource part independent design of software and storage, user can import resource according to the wish of oneself, generate available storage file as required, also can from User Defined Resource district export, enter editor and amendment, then import the customization that machine User Defined Resource district realizes day software module.
The present invention can be widely used in various software management system.
More than that better enforcement of the present invention is illustrated, but the invention is not limited to described embodiment, those of ordinary skill in the art also can make all equivalent variations or replacement under the prerequisite without prejudice to spirit of the present invention, and these equivalent distortion or replacement are all included in the application's claim limited range.

Claims (10)

1. based on a method of managing software for modular design, it is characterized in that, it comprises step:
S1, is converted to the file of preset format, file is stored in User Defined Resource district by resources shifting instrument by one or more User Defined resource;
S2, when one or more User Defined resource revised by needs, repeats step S1, then the file that new User Defined resources shifting becomes is imported User Defined Resource district;
S3, when User Defined resource used by needs, reads corresponding User Defined resource to User Defined Resource district.
2. a kind of method of managing software based on modular design according to claim 1, it is characterized in that, when User Defined Resource district does not distribute fixed storage space to one or more User Defined resource, the file of preset format described in step S1 is specially the first formatted file, it comprises head, congfig file, the file of load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, described check information comprises the checking data for authenticating documents security or integrality.
3. a kind of method of managing software based on modular design according to claim 2, it is characterized in that, described config file is XML file, described XML file stores User Defined resource information, or described XML file stores storage side-play amount and the storage size information of one or more User Defined resource.
4. a kind of method of managing software based on modular design according to claim 1, it is characterized in that, when there is fixed storage space in User Defined Resource district to one or more User Defined Resourse Distribute, the file of preset format described in step S1 is specially the second formatted file, it comprises the file of head, load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality.
5. a kind of method of managing software based on modular design according to any one of Claims 1-4, is characterized in that, described User Defined resource information is the data of User Defined resource after overcompression.
6. a kind of method of managing software based on modular design according to any one of claim 5, is characterized in that, described User Defined resource is user LOGO, OSD language or start-up picture.
7. a kind of method of managing software based on modular design according to claim 1,2,3,4 or 6, it is characterized in that, step S1 is specially: the file one or more User Defined resource being converted to preset format by resources shifting instrument, and file is passed through the programming of the mode such as USB, OTA or network to User Defined Resource district.
8. based on a software management system for modular design, it is characterized in that, it is for implementing a kind of method of managing software based on modular design as described in any one of claim 1 to 7, and it comprises:
One or more User Defined resource;
Resources shifting instrument, for converting the file of preset format to by resources shifting instrument by one or more User Defined resource;
User Defined Resource district, for storing the file after the conversion of resources shifting instrument.
9. a kind of software management system based on modular design according to claim 8, is characterized in that,
The file of described preset format is specially the file comprising head, congfig file, load data and check information, described head comprises the beacon information of one or more User Defined resource, described config file comprises the structural information of load data, described load data comprises one or more User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality;
Or
The file of described preset format is specially the file comprising head, load data and check information, described head comprises the beacon information of User Defined resource, described load data comprises a User Defined resource information, and described check information comprises the checking data for authenticating documents security or integrality.
10. a kind of software management system based on modular design according to claim 9, it is characterized in that, it also comprises XML parser, described config file is XML file, described XML parser is used for directly obtaining one or more User Defined resource information from XML file, or obtains storage side-play amount and the storage size information of one or more User Defined resource.
CN201410788338.8A 2014-12-17 2014-12-17 Software management method and system based on modular design Pending CN104503753A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410788338.8A CN104503753A (en) 2014-12-17 2014-12-17 Software management method and system based on modular design

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410788338.8A CN104503753A (en) 2014-12-17 2014-12-17 Software management method and system based on modular design

Publications (1)

Publication Number Publication Date
CN104503753A true CN104503753A (en) 2015-04-08

Family

ID=52945154

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410788338.8A Pending CN104503753A (en) 2014-12-17 2014-12-17 Software management method and system based on modular design

Country Status (1)

Country Link
CN (1) CN104503753A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156186A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of data model managing device, server and data processing method
CN112463049A (en) * 2020-11-26 2021-03-09 苏州浪潮智能科技有限公司 Method and equipment for customizing storage system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120661A1 (en) * 2002-09-30 2008-05-22 Microsoft Corporation Systems and Methods for Dynamic Conversion of Web Content to an Interactive Walled Garden Program
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102404439A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Storage and application method for binary object code of mobile phone

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080120661A1 (en) * 2002-09-30 2008-05-22 Microsoft Corporation Systems and Methods for Dynamic Conversion of Web Content to an Interactive Walled Garden Program
CN101489026A (en) * 2009-01-07 2009-07-22 深圳市同洲电子股份有限公司 Set-top box starting control method, image display method and set-top box
CN102404439A (en) * 2010-09-14 2012-04-04 上海三旗通信科技股份有限公司 Storage and application method for binary object code of mobile phone

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106156186A (en) * 2015-04-21 2016-11-23 阿里巴巴集团控股有限公司 A kind of data model managing device, server and data processing method
CN112463049A (en) * 2020-11-26 2021-03-09 苏州浪潮智能科技有限公司 Method and equipment for customizing storage system

Similar Documents

Publication Publication Date Title
CN102103573B (en) Method and system for quickly generating files in open formats
CN104035754A (en) XML (Extensible Markup Language)-based custom code generation method and generator
CN103123631B (en) The generation of official documents and correspondence, the methods of exhibiting of webpage official documents and correspondence, device and Website server
CN106547681B (en) Method and device for testing data automatic loading and multiplexing simulation service
CN106250104B (en) A kind of remote operating system for server, method and device
CN102103591B (en) Method and system for realizing automatic update of document contents by using structural data
CN104484216A (en) Method and device for generating service interface document and on-line test tool
CN102982010A (en) Method and device for abstracting document structure
US8756407B2 (en) Configuration rule prototyping tool
CN102665231B (en) Method of automatically generating parameter configuration file for LTE (Long Term Evolution) system
CN110019111B (en) Data processing method, data processing device, storage medium and processor
CN101604241A (en) A kind of code generating method of embedded system
US20190034195A1 (en) Systems and methods for providing patchable rom firmware
CN109522013A (en) A kind of code generating method and device of business function
CN102707948B (en) Source code generation method
CN104657419A (en) Processing method and system for customized letter paper templates
CN104267966A (en) Method and device for generating program codes of software
CN110851511A (en) Data synchronization method and device
CN104679793A (en) Dynamic invoice template invoice issuing system
CN103425692A (en) Data exporting method and data exporting device
CN102591787A (en) Method and device for data processing of JAVA card
CN102203734A (en) Conditional processing method and apparatus
CN104503753A (en) Software management method and system based on modular design
CN103914293A (en) Page generation method and server
CN106293862B (en) A kind of analysis method and device of expandable mark language XML data

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: 20150408

RJ01 Rejection of invention patent application after publication