CN109656577B - Method and device for customizing ROM by industrial personal computer - Google Patents
Method and device for customizing ROM by industrial personal computer Download PDFInfo
- Publication number
- CN109656577B CN109656577B CN201811497103.8A CN201811497103A CN109656577B CN 109656577 B CN109656577 B CN 109656577B CN 201811497103 A CN201811497103 A CN 201811497103A CN 109656577 B CN109656577 B CN 109656577B
- Authority
- CN
- China
- Prior art keywords
- configuration
- rom
- user
- personal computer
- configuration file
- 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.)
- Active
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/65—Updates
- G06F8/658—Incremental updates; Differential updates
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/60—Software deployment
- G06F8/61—Installation
- G06F8/62—Uninstallation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F8/00—Arrangements for software engineering
- G06F8/70—Software maintenance or management
- G06F8/71—Version control; Configuration management
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Stored Programmes (AREA)
Abstract
The invention provides a method and a device for customizing a ROM by an industrial personal computer, wherein the method comprises the steps of newly adding an independent storage partition in an industrial personal computer system; storing the user-defined configuration file in the independent storage partition; comparing the user-defined configuration file with the configuration file in the industrial control system to generate a version configuration difference report; and modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report, and performing ROM (read only memory) updating by matching with the configuration content of the configuration file. The invention has the beneficial effects that: the high openness and the autonomous configurability of the ROM of the industrial personal computer are realized, so that the industrial personal computer is applied to industries with different requirements, the consistency of system versions is kept, and the development cost and the maintenance cost of the system are reduced.
Description
Technical Field
The invention relates to a method and a device for customizing a ROM, in particular to a method and a device for customizing a ROM by an industrial personal computer.
Background
At present, industrial personal computers are widely applied to the industries of finance, medical treatment, express delivery and the like, and various self-service terminals such as oiling machines, vending machines and the like are all provided with the industrial personal computers; however, because the application scenes of each industry are different, the industrial personal computers need different built-in applications, different system interaction modes and different display requirements, the industrial personal computers which just leave the factory need to be correspondingly customized, the customization can cause version differentiation, manpower maintenance and modification customization are needed, the customization time and communication cost are very high, a user cannot use a target version which needs to be customized in the first time, and the user experience is affected, so that the current industrial personal computer system needs to be further improved.
Disclosure of Invention
The technical problem to be solved by the invention is as follows: the method and the device for customizing the ROM of the industrial personal computer are used for customizing the corresponding ROM of the industrial personal computer by a user according to actual configuration requirements.
In order to solve the technical problems, the invention adopts the technical scheme that: a method for self-defining ROM by an industrial personal computer comprises the steps of,
an independent storage partition is newly added in an industrial personal computer system;
storing the user-defined configuration file in the independent storage partition;
comparing the user-defined configuration file with the configuration file in the industrial control system to generate a version configuration difference report;
and modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report, and performing ROM (read only memory) updating by matching with the configuration content of the configuration file.
Further, the user-defined configuration file comprises a user-defined system function configuration.
Further, the comparing the user-defined configuration file with the configuration file in the industrial control system to generate the version configuration difference report specifically comprises,
comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration, and generating a version configuration difference report.
Further, the modifying the software code of the corresponding module of each configurable item according to the version configuration difference report, and performing ROM update by matching with the configuration content of the configuration file specifically include,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
Furthermore, the software codes of the corresponding modules of the configurable items are modified, the configuration content of the configuration file is matched, the ROM is updated, and only the functional configuration difference part is updated.
In order to solve the technical problem, the invention adopts another technical scheme as follows: a device of an industrial personal computer for self-defining a ROM comprises,
the storage partition is additionally provided with a module for newly adding an independent storage partition in the industrial personal computer system;
the configuration file storage module is used for storing the user-defined configuration file in the independent storage partition;
the difference report generation module is used for comparing the user-defined configuration file with the configuration file in the industrial control system to generate a version configuration difference report;
and the ROM adaptation module is used for modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report and carrying out ROM updating by matching with the configuration content of the configuration file.
Further, the user-defined configuration file comprises a user-defined system function configuration.
Further, the discrepancy report generating module is specifically configured to,
comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration, and generating a version configuration difference report.
Further, the ROM adaptation module is specifically configured to,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
Furthermore, the ROM adaptation module is further configured to modify software codes of modules corresponding to the configurable items, perform ROM update in cooperation with configuration contents of the configuration file, and update only the functional configuration difference portion.
The invention has the technical effects that: the invention has the advantages that an independent storage space is independently formed in the industrial control system to store the user-defined configuration files, then the user-defined configuration files are compared with the system configuration files to find out the difference between the configuration files, and the difference configuration is updated, so that the user-defined ROM is realized.
Drawings
The following detailed description of the invention refers to the accompanying drawings.
FIG. 1 is a flowchart of a method for customizing a ROM by an industrial personal computer according to an embodiment of the present invention;
FIG. 2 is a block diagram of a device for customizing ROM of an industrial personal computer according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a terminal framework of an industrial personal computer custom ROM of the invention;
fig. 4 is a diagram of an implementation of an industrial personal computer custom ROM according to a specific embodiment of the present invention.
Detailed Description
In order to explain technical contents, structural features, and objects and effects of the present invention in detail, the following detailed description is given with reference to the accompanying drawings in conjunction with the embodiments.
Example one
Referring to fig. 1, in an embodiment, a method for customizing a ROM by an industrial personal computer includes the steps of,
s10, adding an independent storage partition in the industrial personal computer system;
s20, storing the user-defined configuration file in an independent storage partition;
s30, comparing the user-defined configuration file with the configuration file in the industrial control system to generate a version configuration difference report;
and S40, modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report, and updating the ROM according to the configuration content of the configuration file.
Preferably, the user-defined profile comprises a user-defined system functionality configuration.
Preferably, the comparing the user-defined configuration file with the configuration file in the industrial control system to generate the version configuration difference report specifically comprises,
comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration, and generating a version configuration difference report.
Preferably, the modifying the software code of the corresponding module of each configurable item according to the version configuration difference report, and performing the ROM update in cooperation with the configuration content of the configuration file specifically include,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
Preferably, the software codes of the corresponding modules of the configurable items are modified, the ROM is updated according to the configuration content of the configuration file, and only the functional configuration difference part is updated.
Referring to fig. 3, in this embodiment, the industrial personal computer is provided with an operating system (ROM) of the industrial personal computer, a memory, a processor, a display interface, and a peripheral interface, and in some embodiments of the present invention, the operating system (ROM) of the industrial personal computer is an open source operating system, and operating system software of the industrial personal computer may be modified, such as Linux or Android.
The content of the custom ROM includes a camera front-back configuration, a camera installation angle configuration, an application installation white list, an application uninstallation white list, a display, hiding a specific application icon, starting up self-starting application setting, applying silent installation and uninstallation, setting built-in application, starting up and shutting down animation setting, timing starting up and shutting down setting, status bar display/hidden setting, navigation bar display/hidden setting, display direction setting, display density setting, LVDS/VGA/HDMI resolution switching, display interface configuration, default input method and input method configuration, soft keyboard switch setting, automatic time synchronization server configuration, default time format, user-defined serial number, user-defined MAC address, USB permission configuration, adb permission configuration, sdcard access permission configuration, USB multi-point touch configuration, VNC password configuration, never screen-off setting and WIFI default state setting.
In this embodiment, the newly added independent storage partition may be a Flash of the industrial personal computer itself, or may be an independent detachable SPI-Nor Flash; particularly, the independent and detachable SPI-Nor Flash can be used for conveniently manufacturing configuration files of the user-defined ROM in batches, the configuration files are applied to different application scenes in batches, the industrial personal computer system can be a standard version system during sale, the independent and detachable SPI-Nor Flash can be used as an accessory of a customized part for sale, and the independent and detachable SPI-Nor Flash with different contents can be applied to different projects and industries.
The invention has the advantages that an independent storage space is independently formed in the industrial control system to store the user-defined configuration files, then the user-defined configuration files are compared with the system configuration files to find out the difference between the configuration files, and the difference configuration is updated, so that the user-defined ROM is realized.
Example two
Referring to fig. 4, in a specific embodiment, a method for customizing a ROM by an industrial personal computer includes the following steps:
201. the PC configuration software visually lists all customizable options and has default option values;
202. generating configuration results of all self-defining items, and outputting configuration difference items from the last time;
203. making the configuration result into an ext4 file system image;
204. programming a memory or an independent spi-nor flash into an industrial personal computer system through a flash tool;
205. the industrial personal computer is powered on and started, and the bootloader stage reads the configuration partition;
206. explaining the configuration content of the user-defined configuration item of the partition, finding a display interface and a corresponding display resolution and a mac address, and transmitting the display interface, the corresponding display resolution and the mac address into linux kernel cmdlene;
207. finding out an application needing to be built in, copying the application to a data partition for installation, and setting an installed mark;
208. lightening different display interfaces and resolutions by the kernel according to cmdline; the kernel mounts the partition for reading by upper application; and the kernel Ethernet and the wifi module set the Mac address according to the cmdlene. The kernel dynamically matches the hid-multitouch drive according to VID PID information touched by the USB to drive the USB touch screen;
209. and the SettingProvider reads the configuration value of the partition, writes the configuration value into a database, and is used for modules such as a Launcher, a PackageManager, a systemuui, an inputmanager, a TimeManager, an AlarmManager, a Camera HAL, a vncServer, a WiFiManager and the like to respectively read the database and execute initialization operation of corresponding configuration according to the configuration.
The technical scheme realizes the high openness and the autonomous configurability of the ROM of the industrial personal computer, enables the industrial personal computer to be applied to industries with different requirements, simultaneously keeps the consistency of system versions, and reduces the development cost and the maintenance cost of the system.
EXAMPLE III
Referring to fig. 2, in an embodiment, an apparatus for customizing ROM of an industrial personal computer includes,
the storage partition is additionally provided with a module for newly adding an independent storage partition in the industrial personal computer system;
the configuration file storage module is used for storing the user-defined configuration file in the independent storage partition;
the difference report generation module is used for comparing the user-defined configuration file with the configuration file in the industrial control system to generate a version configuration difference report;
and the ROM adaptation module is used for modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report and carrying out ROM updating by matching with the configuration content of the configuration file.
Preferably, the user-defined profile comprises a user-defined system functionality configuration.
Preferably, the discrepancy report generating module is specifically adapted to,
comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration, and generating a version configuration difference report.
Preferably, the ROM adaptation module is specifically adapted to,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
Preferably, the ROM adaptation module is further configured to modify software codes of corresponding modules of the configurable items, perform ROM update in cooperation with configuration contents of the configuration file, and update only the functional configuration difference portion.
In the embodiment, the storage partition adding module independently provides an independent storage space in the industrial control system to store user-defined configuration files, the configuration file storage module stores the user-defined configuration files in the independent storage partition, the difference report generation module compares the user-defined configuration files with system configuration files to find out differences among the configuration files, the configuration file updating module updates difference configuration, only the difference part of the function configuration is replaced in the process of function configuration, updating efficiency is improved, and accordingly user-defined ROM is achieved.
The first … … and the second … … are only used for name differentiation and do not represent how different the importance and position of the two are.
Here, the upper, lower, left, right, front, and rear represent only relative positions thereof and do not represent absolute positions thereof. The above description is only an embodiment of the present invention, and not intended to limit the scope of the present invention, and all modifications of equivalent structures and equivalent processes performed by the present specification and drawings, or directly or indirectly applied to other related technical fields, are included in the scope of the present invention.
Claims (8)
1. A method for customizing a ROM by an industrial personal computer is characterized by comprising the following steps: comprises the steps of (a) carrying out,
an independent storage partition is newly added in an industrial personal computer system;
storing the user-defined configuration file in the independent storage partition;
comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration, and generating a version configuration difference report;
and modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report, and performing ROM (read only memory) updating by matching with the configuration content of the configuration file.
2. The method for customizing the ROM of the industrial personal computer according to claim 1, wherein the method comprises the following steps: the user-defined configuration file comprises user-defined system function configuration.
3. The method for customizing the ROM of the industrial personal computer according to claim 2, wherein the method comprises the following steps: the modifying the software codes of the corresponding modules of each configurable item according to the version configuration difference report, and updating the ROM by matching with the configuration content of the configuration file, specifically comprising,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
4. The method for customizing the ROM of the industrial personal computer according to claim 3, wherein the method comprises the following steps: and modifying the software codes of the corresponding modules of the configurable items, performing ROM update by matching with the configuration content of the configuration file, and only updating the functional configuration difference part.
5. The utility model provides a device of self-defining ROM of industrial computer which characterized in that: comprises the steps of (a) preparing a mixture of a plurality of raw materials,
the storage partition is additionally provided with a module for newly adding an independent storage partition in the industrial personal computer system;
the configuration file storage module is used for storing the user-defined configuration file in the independent storage partition;
the difference report generation module is used for comparing the user-defined system function configuration in the user-defined system function configuration file with the function configuration of the industrial control system item by item, finding out the difference of the system function configuration and generating a version configuration difference report;
and the ROM adaptation module is used for modifying the software codes of the corresponding modules of the configurable items according to the version configuration difference report and carrying out ROM updating by matching with the configuration content of the configuration file.
6. The device for customizing the ROM of the industrial personal computer according to claim 5, is characterized in that: the user-defined configuration file comprises user-defined system function configuration.
7. The device for customizing the ROM of the industrial personal computer according to claim 6, is characterized in that: the ROM adaptation module is specifically configured to,
and comparing the system function configuration customized by the user with the function configuration in the industrial control system, if the function configuration is different, modifying the software codes of the corresponding modules of each configurable item, and updating the ROM by matching with the configuration content of the configuration file.
8. The apparatus of the industrial personal computer custom ROM of claim 7, wherein: the ROM adaptation module is also used for modifying the software codes of the corresponding modules of the configurable items, carrying out ROM updating by matching with the configuration content of the configuration file, and only updating the function configuration difference part.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811497103.8A CN109656577B (en) | 2018-12-07 | 2018-12-07 | Method and device for customizing ROM by industrial personal computer |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811497103.8A CN109656577B (en) | 2018-12-07 | 2018-12-07 | Method and device for customizing ROM by industrial personal computer |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109656577A CN109656577A (en) | 2019-04-19 |
CN109656577B true CN109656577B (en) | 2022-02-25 |
Family
ID=66113625
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811497103.8A Active CN109656577B (en) | 2018-12-07 | 2018-12-07 | Method and device for customizing ROM by industrial personal computer |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109656577B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112000374B (en) * | 2020-07-13 | 2024-01-02 | 深圳市智微智能软件开发有限公司 | USB touch screen replacement method, device, equipment and medium applied to android system |
CN112667311A (en) * | 2020-12-23 | 2021-04-16 | 四川长虹电器股份有限公司 | Software state switching method applied to android system |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103207902A (en) * | 2013-03-27 | 2013-07-17 | 交通银行股份有限公司 | Method and system for updating financial client side data |
CN104252342A (en) * | 2013-06-27 | 2014-12-31 | 中兴通讯股份有限公司 | Method and device for realizing embedding type application with configurable parameters |
CN108182070A (en) * | 2016-12-08 | 2018-06-19 | 北京京东尚科信息技术有限公司 | Customize the method, apparatus and terminal device of Android system ROM |
CN108491217A (en) * | 2018-03-06 | 2018-09-04 | 青岛海信宽带多媒体技术有限公司 | A kind of upgrade method and equipment of configuration file |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8606892B2 (en) * | 2011-11-28 | 2013-12-10 | Wyse Technology Inc. | Deployment and updating of applications and drivers on a client device using an extensible markup language (XML) configuration file |
-
2018
- 2018-12-07 CN CN201811497103.8A patent/CN109656577B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103207902A (en) * | 2013-03-27 | 2013-07-17 | 交通银行股份有限公司 | Method and system for updating financial client side data |
CN104252342A (en) * | 2013-06-27 | 2014-12-31 | 中兴通讯股份有限公司 | Method and device for realizing embedding type application with configurable parameters |
CN108182070A (en) * | 2016-12-08 | 2018-06-19 | 北京京东尚科信息技术有限公司 | Customize the method, apparatus and terminal device of Android system ROM |
CN108491217A (en) * | 2018-03-06 | 2018-09-04 | 青岛海信宽带多媒体技术有限公司 | A kind of upgrade method and equipment of configuration file |
Also Published As
Publication number | Publication date |
---|---|
CN109656577A (en) | 2019-04-19 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109656577B (en) | Method and device for customizing ROM by industrial personal computer | |
CN102902556A (en) | Multistage boot load method of embedded equipment | |
US20110301719A1 (en) | Parameter setting device | |
CN101539866A (en) | Information processing device, and method of starting information processing device | |
WO2013080332A1 (en) | Project data creation device and programmable display unit | |
JP2009146229A (en) | Programmable controller system | |
JP2014032529A (en) | Plc system, drawing editor device thereof, and programmable display | |
US11829781B2 (en) | Method of remotely modifying basic input/output system configuration setting | |
CN111833588A (en) | Customizable wireless remote control adapter, method and device | |
CN105516771A (en) | Television remote controller and television set | |
US20230176852A1 (en) | Storage medium storing update management program, information processing device, and update management method | |
CN110825409A (en) | Parameter management method, electronic device, and computer storage medium | |
CN108351633B (en) | Operating module for a machine in the food industry | |
US20150277413A1 (en) | System construction support apparatus | |
JPWO2014132390A1 (en) | Programmable display, programmable controller system, program | |
CN104133706A (en) | Firmware modifying method and device | |
CN114127685B (en) | Electronic apparatus and control method thereof | |
US11199993B2 (en) | Control system, development assistance device, and development assistance program | |
US20140107847A1 (en) | Operating method and operating system for a pcb drilling-milling machine using different motion control products | |
JPWO2019229845A1 (en) | Program management system, programming support device, program management method, and programming support program | |
EP3480703B1 (en) | Hardware independent peripheral control system and method | |
CN113196788B (en) | Electronic apparatus and control method thereof | |
WO2022111954A1 (en) | Creating a native app method and system | |
CN113348440B (en) | Drawing assistance device, display device, drawing assistance method, and computer program | |
JP4515434B2 (en) | Unit information setting device, unit information setting program, and recording medium recording the same |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |