CN107908430A - A kind of method and POS machine of configuration POS file system - Google Patents
A kind of method and POS machine of configuration POS file system Download PDFInfo
- Publication number
- CN107908430A CN107908430A CN201711060507.6A CN201711060507A CN107908430A CN 107908430 A CN107908430 A CN 107908430A CN 201711060507 A CN201711060507 A CN 201711060507A CN 107908430 A CN107908430 A CN 107908430A
- Authority
- CN
- China
- Prior art keywords
- pos
- file
- pos machine
- configuration
- file system
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4411—Configuring for operating with peripheral devices; Loading of device drivers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4403—Processor initialisation
-
- Y—GENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02P—CLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
- Y02P90/00—Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
- Y02P90/30—Computing systems specially adapted for manufacturing
Abstract
The invention discloses a kind of method and POS machine of configuration POS file system, including at least following steps:S1:File system firmware bag is set under system root directory, and stores multiple driving configuration files;S2:When POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded in the drive load catalogue of POS machine;S3:According to POS machine type, modification driving configuration file, to complete the configuration of POS file system.By the above-mentioned means, the present invention can realize the general system file firmware bag of multiple POS machine types, the configuration driven file of corresponding type need to be only changed, you can complete configuration, therefore can lift work efficiency, reduce difficulty, decrease firmware and download error rate.
Description
Technical field
The present invention relates to POS machine production technical field, more particularly, to a kind of method and POS of configuration POS file system
Machine.
Background technology
As shown in Figure 1, electric terminal (such as POS machine, mobile phone, PC, smart home or automobile data recorder) is producing
During need by downloading boot (System guides file), firmware, (Part Number, zero (portion) piece number, represents out PN codes
Factory's batch), (Serial Number, sequence (order) number, represent factory number to SN codes, are consumer mainly as production number
Use after sale), machine number and configuration file etc., can just work normally machine.
Generally correspond to the method for down loading of a firmware using a type in the industry at present, firmware also needs to pass through phase after downloading
Answer software to download to configuration file in the middle of machine, so need specially right to the independent modification firmware content of a certain type progress
Afterwards generate respective file system firmware bag, and need by developer's manual modification portion at most part configuration file (be used for
Machine with different hardware configurations) it is used to download in corresponding type.
Aforesaid way step is numerous and diverse, great work intensity, efficiency are low, even the machine of identical platform be also required to it is individually solid
Part bag, so need to be easy to cause when multiple types are changed changes a certain type leakage or replaces mistake because personnel neglect
File, and easily because human problems cause, firmware downloads error or configuration file downloads mistake.
The content of the invention
The technical problems to be solved by the invention are:A kind of method and POS machine of configuration POS file system are provided, can be carried
High loading efficiency, reduces error rate.
In order to solve the above-mentioned technical problem, the technical solution adopted by the present invention is:A kind of configuration POS file system is provided
Method, including at least following steps:
S1:File system firmware bag is set under system root directory, and stores multiple driving configuration files;
S2:When POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded to the drive load mesh of POS machine
In record;
S3:According to POS machine type, modification driving configuration file, to complete the configuration of POS file system.
Wherein, step S2 is specially:
S21:When POS machine initializes, start script file;
S22:Script file judges the initialisation identifications for whether having corresponding POS machine type in multiple driving configuration files,
If so, then perform step S23:The driving that the driving configuration file known containing initial dehorn is downloaded to POS machine adds
Carry in catalogue;
If nothing, step S24 is performed:Show mistake, terminate flow.
Wherein, after step S1, step S10 is further included:Increase identifier on different driving configuration files.
Wherein, step S2 is specially:
S25:When POS machine initializes, start script file;
S26:After script file detects POS machine type, and deletion does not meet the driving configuration file of POS machine type, POS will be met
The driving configuration file of type deletes identifier;
S27:Driving configuration file after deletion identifier is downloaded in the drive load catalogue of POS machine.
Wherein, before step S3, step S30 is further included:Component is set to number, to represent POS machine type information.
Wherein, the component numbering length is 14;Wherein preceding 3 expressions POS machine model, the 4th is byte interval
Symbol, rear 10 expressions POS machine configuration information.
To solve the above problems, the present invention also provides a kind of POS machine, POS file system is built-in with, it is characterised in that institute
POS file system is stated to be configured by method described above.
The beneficial effects of the present invention are:The prior art is different from, the present invention is compatible in a file system firmware bag
The driving configuration file of a variety of POS machine types, and when POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded to
In the drive load catalogue of POS machine, and change to complete the configuration of POS file system.By the above-mentioned means, the present invention can be real
Existing multiple general system file firmware bags of POS machine type, need to only change the configuration driven file of corresponding type, you can completion is matched somebody with somebody
Put, therefore work efficiency can be lifted, reduce difficulty, decrease firmware and download error rate.
Brief description of the drawings
Fig. 1 is the flow diagram for configuring POS file system methods in the prior art;
Fig. 2 is the flow diagram of present invention configuration POS file system methods.
Embodiment
For the technology contents that the present invention will be described in detail, the objects and the effects, below in conjunction with embodiment and coordinate attached
Figure is explained.
Fig. 2 is refer to, the present invention provides a kind of method of configuration POS file system, including at least following steps:
S1:File system firmware bag is set under system root directory, and stores multiple driving configuration files;
S2:When POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded to the drive load mesh of POS machine
In record;
S3:According to POS machine type, modification driving configuration file, to complete the configuration of POS file system.
Wherein, step S2 is specially:
S21:When POS machine initializes, start script file;
S22:Script file judges the initialisation identifications for whether having corresponding POS machine type in multiple driving configuration files,
If so, then perform step S23:The driving that the driving configuration file known containing initial dehorn is downloaded to POS machine adds
Carry in catalogue;
If nothing, step S24 is performed:Show mistake, terminate flow.
Wherein, after step S1, step S10 is further included:Increase identifier on different driving configuration files.
Wherein, step S2 is specially:
S25:When POS machine initializes, start script file;
S26:After script file detects POS machine type, and deletion does not meet the driving configuration file of POS machine type, POS will be met
The driving configuration file of type deletes identifier;
S27:Driving configuration file after deletion identifier is downloaded in the drive load catalogue of POS machine.
Wherein, before step S3, step S30 is further included:Component is set to number, to represent POS machine type information.
Wherein, the component numbering length is 14;Wherein preceding 3 expressions POS machine model, the 4th is byte interval
Symbol, rear 10 expressions POS machine configuration information.
Accordingly, the present invention also provides a kind of POS machine, POS file system is built-in with, the POS file system passes through upper
The method is stated to be configured.
The beneficial effects of the present invention are:The prior art is different from, the present invention is compatible in a file system firmware bag
The driving configuration file of a variety of POS machine types, and when POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded to
In the drive load catalogue of POS machine, and change to complete the configuration of POS file system.By the above-mentioned means, the present invention can be real
Existing multiple general system file firmware bags of POS machine type, need to only change the configuration driven file of corresponding type, you can completion is matched somebody with somebody
Put, therefore work efficiency can be lifted, reduce difficulty, decrease firmware and download error rate.
In a specific embodiment, the present invention is walked by the selection firmware to needing manually to be judged and configuration file
Suddenly optimize, to reach raising efficiency, reduce the purpose of production cost.Concrete thought is as follows:
1st, file system is changed so that the same compatible multiple products of NLC firmwares bag energy, can so save work in producing line
The step of people carries out judging Unit-type sclection firmware.
2nd, to machine correspond to the modification of configuration according to PN (Part Number, component numbering) code, can so save
The step of going download configuration file, can also avoid because lower wrong configuration file or configuration file do not issue producing line and lead in time
The production problem of cause.
Due to sharing same platform between different POS machine types, and difference is simply driven with some configuration files between it
Difference, the content of alternative document system is all general, so the present invention can use same NLC firmwares bag (i.e. POS systems
System file firmware bag, it includes the file system needed for machine normal operation), distinguishing file is arranged, such as
The driving file of A types is placed in a file, the driving file of B types is placed in a file, waits firmware to download
The driving of corresponding type is moved in respective directories when start is initialized for the first time afterwards, is comprised the following steps that:
(1) file of a drivers is created under system root directory, the driving comprising A and B is literary in this file
Part.If driving is identical, can be placed on/lib/modules/2.6.32.9/kernel/drivers/ (makees in specific embodiment
For drive load path).
(2) initialization flag is determined whether in starting up's script file rcS.If so, copy command is then performed, will be right
The driving file of type is answered to be put into drive load catalogue.
In addition, the present invention also provides another processing mode, you can with by the way that the suffix name for file of having any different is increased
A identifier, such as * .A, * .B, subsequently can judge type with rcS scripts, remove unwanted file, and renaming is correct
File.Comprise the following steps that:
(1) there are two files of devmgr.conf.A and devmgr.conf.B under/etc/config/ catalogues;
(2) judge that devmgr.conf.B for B types, is then copied to and matched somebody with somebody by this type by rcS scripts during initial configuration
Put default directory/mnt/hwinfo/ of file, and renamed as devmgr.conf.
After the above steps, POS machine gets the configuration file of acquiescence, next can be further by PN codes
Change configuration file so that the configuration file, which is that the present invention is required, to be used to configure POS system file.PN codes (Part
Number, i.e. component are numbered) it is used for representing product detail, according to this point, the present invention can set rational PN codes rule,
Then corresponding configuration file is changed using script.
PN code lengths can such as be set and be fixed as 14.Wherein equipment model is abbreviated as 3 bit bytes, products configuration 10 words of detail
Section, centre plus 1 bit byte interval of "-", each has it to fix implication.By taking S07-C67AS60400 this PN code as an example, preceding 3
Position S07 represents product type, and the 5th C represents screen type, if touch-screen is then T, the 9th represents position for telecommunication,
Different communication configurations is represented with different letter or numbers, for example S represents the type with wifi, Ethernet, wireless module.
How to be realized (code can be called by rcS scripts) below by one section of shell codes introduction:
Wherein $ { DEV_PN } is the PN codes got,1 character of matching is represented, * represents matching random length character,
Modify_data is executable file, for being read out the content in modify_data.conf and performing configuration modification.
Setting in this way, it is possible to easily automatically configured, a download configuration need not be increased completely
The step of file.
It is excellent with matching different types of machines, lower carried convenient, efficiency height etc. using the firmware bag of method of the present invention generation
Point.Compared to existing technology in the industry, the program is by have modified the associated documents in file system so that multiple products can be with
General NLC firmware bags, such developer and producing line personnel need not carry out type judgement when downloading firmware, directly
Firmware is downloaded among machine, while without other download configuration file by the way of PN codes carry out type configuration, so
A lot of configuration files are not just had to manage, and this kind of configuration file is named similar mostly, easily mixes up and triggers asking in production
Topic.
It should be noted that this method is applied equally to use other products under identical platform, for example hand is mechanical, electrical
Brain, smart home, automobile data recorder etc..
The foregoing is merely the embodiment of the present invention, is not intended to limit the scope of the invention, every to utilize this hair
The equivalents that bright specification and accompanying drawing content are made, are directly or indirectly used in relevant technical field, similarly include
In the scope of patent protection of the present invention.
Claims (7)
- A kind of 1. method of configuration POS file system, it is characterised in that including at least following steps:S1:File system firmware bag is set under system root directory, and stores multiple driving configuration files;S2:When POS machine initializes, the driving configuration file of corresponding POS machine type is downloaded to the drive load catalogue of POS machine In;S3:According to POS machine type, modification driving configuration file, to complete the configuration of POS file system.
- 2. the method for POS file system is configured according to claim 1, it is characterised in that step S2 is specially:S21:When POS machine initializes, start script file;S22:Script file judges the initialisation identifications for whether having corresponding POS machine type in multiple driving configuration files,If so, then perform step S23:The driving configuration file known containing initial dehorn is downloaded to the drive load mesh of POS machine In record;If nothing, step S24 is performed:Show mistake, terminate flow.
- 3. the method for POS file system is configured according to claim 1, it is characterised in that after step S1, further include step S10:Increase identifier on different driving configuration files.
- 4. the method for POS file system is configured according to claim 3, it is characterised in that step S2 is specially:S25:When POS machine initializes, start script file;S26:After script file detects POS machine type, and deletion does not meet the driving configuration file of POS machine type, POS machine type will be met Driving configuration file delete identifier;S27:Driving configuration file after deletion identifier is downloaded in the drive load catalogue of POS machine.
- 5. the method for POS file system is configured according to claim 1, it is characterised in that before step S3, further include step S30:Component is set to number, to represent POS machine type information.
- 6. the method for POS file system is configured according to claim 5, it is characterised in that the component numbering length is 14;Wherein preceding 3 expressions POS machine model, the 4th accords with for byte interval, rear 10 expressions POS machine configuration information.
- 7. a kind of POS machine, is built-in with POS file system, it is characterised in that the POS file system passes through claim 1~6 Any one of them method is configured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711060507.6A CN107908430B (en) | 2017-11-01 | 2017-11-01 | Method for configuring POS file system and POS machine |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711060507.6A CN107908430B (en) | 2017-11-01 | 2017-11-01 | Method for configuring POS file system and POS machine |
Publications (2)
Publication Number | Publication Date |
---|---|
CN107908430A true CN107908430A (en) | 2018-04-13 |
CN107908430B CN107908430B (en) | 2022-08-30 |
Family
ID=61843149
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711060507.6A Active CN107908430B (en) | 2017-11-01 | 2017-11-01 | Method for configuring POS file system and POS machine |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107908430B (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109891385A (en) * | 2019-01-10 | 2019-06-14 | 福建联迪商用设备有限公司 | A kind of method and terminal for installing POS machine initial configuration information |
CN110827465A (en) * | 2019-10-31 | 2020-02-21 | 浪潮金融信息技术有限公司 | Method for rapidly configuring all-in-one card reader based on software tool |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120089871A1 (en) * | 2010-10-11 | 2012-04-12 | Inventec Corporation | Test system |
CN104079432A (en) * | 2014-06-20 | 2014-10-01 | 珠海市君天电子科技有限公司 | Method and device for processing abnormity of network equipment |
CN104503792A (en) * | 2014-12-22 | 2015-04-08 | 山东超越数控电子有限公司 | Method for realizing equipment management function in VxWorks |
CN106775897A (en) * | 2017-01-13 | 2017-05-31 | 福州福大海矽微电子有限公司 | A kind of driver for Set Top Box starts method and system |
-
2017
- 2017-11-01 CN CN201711060507.6A patent/CN107908430B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20120089871A1 (en) * | 2010-10-11 | 2012-04-12 | Inventec Corporation | Test system |
CN104079432A (en) * | 2014-06-20 | 2014-10-01 | 珠海市君天电子科技有限公司 | Method and device for processing abnormity of network equipment |
CN104503792A (en) * | 2014-12-22 | 2015-04-08 | 山东超越数控电子有限公司 | Method for realizing equipment management function in VxWorks |
CN106775897A (en) * | 2017-01-13 | 2017-05-31 | 福州福大海矽微电子有限公司 | A kind of driver for Set Top Box starts method and system |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109891385A (en) * | 2019-01-10 | 2019-06-14 | 福建联迪商用设备有限公司 | A kind of method and terminal for installing POS machine initial configuration information |
WO2020142981A1 (en) * | 2019-01-10 | 2020-07-16 | 福建联迪商用设备有限公司 | Method for installing initial configuration information of pos machine, and terminal |
CN110827465A (en) * | 2019-10-31 | 2020-02-21 | 浪潮金融信息技术有限公司 | Method for rapidly configuring all-in-one card reader based on software tool |
CN110827465B (en) * | 2019-10-31 | 2021-08-17 | 浪潮金融信息技术有限公司 | Method for rapidly configuring all-in-one card reader based on software tool |
Also Published As
Publication number | Publication date |
---|---|
CN107908430B (en) | 2022-08-30 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103902265B (en) | One kind applies implementation method and relevant apparatus | |
CN103543993B (en) | Application builds method and system | |
TWI470443B (en) | File download method for mobile device, server and mobile device thereof, and computer program product | |
CN104699515B (en) | A kind of upgrade method and intelligent terminal based on Android operation system | |
CN105094875A (en) | Software upgrading method and device | |
CN102520983B (en) | Method, device and terminal for customizing multiple default settings for software version | |
CN104679532B (en) | kernel module loading method and device | |
CN102752295A (en) | Method and device for setting keys | |
CN105354065B (en) | A kind of multi-product method for upgrading software and terminal | |
CN107908430A (en) | A kind of method and POS machine of configuration POS file system | |
CN104915306A (en) | Data operation control method and device manager | |
CN106445597A (en) | Application download method, terminal, server and system | |
CN101986740A (en) | JAVA card | |
CN110851310A (en) | Electronic equipment testing method and device | |
CN101996086A (en) | Method and device for installing mobile phone software by data line | |
CN104598281B (en) | The method of system for upgrading electronic equipment | |
CN106375999A (en) | Method and device for quickly connecting WiFi | |
CN109849527A (en) | A kind of automatic signaling method and system of laser machine | |
CN103514003A (en) | Program installation method and device | |
CN107357605A (en) | The method and apparatus for running installation file | |
CN104504326A (en) | Method for examining integrity of system flies | |
CN107124446A (en) | Application program method for down loading, server and terminal | |
CN106686120A (en) | Push system and method for remote application based on WeChat official accounts | |
CN101193010A (en) | Simulated board firmware upgrade method for home intelligent network system | |
CN110764819A (en) | RF Card client method and system for communication terminal |
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 |