CN109697087A - A kind of recognition methods for realizing application apparatus software and hardware version for POS system - Google Patents
A kind of recognition methods for realizing application apparatus software and hardware version for POS system Download PDFInfo
- Publication number
- CN109697087A CN109697087A CN201710984503.0A CN201710984503A CN109697087A CN 109697087 A CN109697087 A CN 109697087A CN 201710984503 A CN201710984503 A CN 201710984503A CN 109697087 A CN109697087 A CN 109697087A
- Authority
- CN
- China
- Prior art keywords
- pos system
- version
- application apparatus
- software
- pos
- 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
Links
Classifications
-
- 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
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4063—Device-to-bus coupling
- G06F13/4068—Electrical coupling
-
- 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
-
- 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/445—Program loading or initiating
- G06F9/44536—Selecting among different versions
Abstract
A kind of recognition methods for realizing application apparatus software and hardware version for POS system, there is the POS system POS to handle chip, the POS processor chips have multiple GPIO pins, it is characterized in that, there are several Version Control GPIO pins in the multiple GPIO pin, the Version Control GPIO pin is set with default value all in accordance with the software and hardware version of the POS system application apparatus, based on starting step used by above-mentioned recognition methods, the POS system obtains the software and hardware version of POS system application apparatus according to the method for claim 1;The POS system is initialized according to the software and hardware version of the POS system application apparatus;The POS system application apparatus starting.Its implementation is easier simultaneously for the convenience and maintainability that version of the present invention improves version information reading, and cost of implementation is low more honest and cleaner, and application range is also more extensive.
Description
Technical field
The present invention relates to POS system technical fields, in particular to a kind of to realize application apparatus software and hardware version for POS system
This recognition methods.
Background technique
Rapid development now with information technology and the development with user's diversified demand, various POS
System utility device is applied to every field.During researching and developing new product, be many times research and develop at the same time it is a plurality of
Similar product, and be same set of code, for this reason, it may be necessary on the basis of numerous identical distinguish version difference.
In the prior art on the one hand recognition methods has the disadvantage in that, a variety of in the prior art to pass through software realization system
The method that version is distinguished, but this method considerably increases the complexity of code, reduces the readability and maintainability of code;
On the other hand, the system before software operation can not also carry out different system initialization operations according to the difference of version.
Summary of the invention
The technical problems to be solved by the present invention are: providing, a kind of prevent from screwing out completely simultaneously again can the anti-loosening use to fall off
In the screw lock structure of security protection adapter.
The present invention in order to solve the above problem used by technical solution are as follows: one kind for POS system realize application apparatus it is soft
There is POS to handle chip for the recognition methods of hardware version, the POS system, and there are the POS processor chips multiple GPIO to draw
Foot has several Version Control GPIO pins in the multiple GPIO pin, and the Version Control GPIO pin is all in accordance with described
The software and hardware version of POS system application apparatus is set with default value, the recognition methods the following steps are included:
Step 1: the POS system reads the default value of each Version Control GPIO pin;
Step 2: the POS system calculates according to the default value of each Version Control GPIO pin and obtains version
Control combination value;
Step 3: the POS system determines the soft of the POS application apparatus according to the Version Control combined value
Hardware version.
Preferably, each Version Control GPIO pin is the POS system application apparatus, automatic except this is realized
Other than the method for identifying software and hardware version, the vacant GPIO pin that is not used in operational process.
Preferably, the quantity of the Version Control GPIO pin is 4.
Preferably, the POS system calculates according to the default value of each Version Control GPIO pin and obtains version
Control combination value, specifically: the described POS system operation version is macro or version function, determines Version Control according to the following formula
Combined value val:val=gpio1 | (gpio2 < < 8) | (gpio3 < < 16) | (gpio4 < < 24) wherein, gpio1, gpio2,
Gpio3, gpio4 are respectively the default value of 4 Version Control GPIO pins.
It is realized based on above-mentioned POS system and starts control method used by the recognition methods of application apparatus software and hardware version:
Step 1: the POS system obtains the soft or hard of POS system application apparatus according to the method for claim 1
Part version;
Step 2: the POS system carries out initialization behaviour according to the software and hardware version of the POS system application apparatus
Make;
Step 3: the POS system application apparatus starting.
Compared with the prior art, the advantages of the present invention are as follows:
It on the one hand, is version due in multiple GPIO pins of the application apparatus processor chips of POS system, there is several pins
This control GPIO pin, each Version Control GPIO pin are set with default all in accordance with the software and hardware version of POS system application apparatus
Value, then in version automatic identifying method, POS system can calculate acquisition by reading the default value of each Version Control GPIO pin
Version Control combined value, and then according to the software and hardware of the determining POS system application apparatus of the Version Control combined value
Version improves the convenience and maintainability of version information reading to simplify existing pure software version differentiating method;
On the other hand, using starting method of the invention, version information can be provided before system is run, realizes differentiated
System start-up initialisation.And POS system application apparatus of the invention realizes the method for version automatic identification and starts method
Implementation is easy, and cost of implementation is cheap, and application range is also relatively broad.
Detailed description of the invention
The drawings described herein are used to provide a further understanding of the present invention, constitutes a part of the invention, this hair
Bright illustrative embodiments and their description are used to explain the present invention, and are not constituted improper limitations of the present invention.
The step of Fig. 1 is a kind of recognition methods that application apparatus software and hardware version is realized for POS system of the invention;
Fig. 2 is a kind of this practical starting method and step that application apparatus software and hardware version is realized for POS system;
Specific embodiment
Carry out the embodiment that the present invention will be described in detail below in conjunction with accompanying drawings and embodiments, how the present invention is applied whereby
Technological means solves technical problem and reaches the realization process of technical effect to fully understand and implement.
Specific embodiments of the present invention are as shown in Figure 1, a kind of knowledge for realizing application apparatus software and hardware version for POS system
There is POS to handle chip for other method, POS system, and POS processor chips have multiple GPIO pins, have in multiple GPIO pins
Several Version Control GPIO pins, Version Control GPIO pin are set with all in accordance with the software and hardware version of POS system application apparatus
Default value, recognition methods the following steps are included:
Step 1: POS system reads the default value of each Version Control GPIO pin;
Step 2: POS system calculates according to the default value of each Version Control GPIO pin and obtains Version Control combined value;
Step 3: POS system determines the software and hardware version of POS application apparatus according to Version Control combined value.
Each Version Control GPIO pin is POS system application apparatus, except the side for realizing the automatic identification software and hardware version
Other than method, the vacant GPIO pin that is not used in operational process;The quantity of Version Control GPIO pin is 4.
POS system is calculated according to the default value of each Version Control GPIO pin obtains Version Control combined value, tool
Body are as follows: POS system runs that version is macro or version function, determines Version Control combined value val:val=according to the following formula
Gpio1 | (gpio2 < < 8) | (gpio3 < < 16) | (gpio4 < < 24) wherein, gpio1, gpio2, gpio3, gpio4 are respectively 4
The default value of Version Control GPIO pin.
Specific embodiments of the present invention are as shown in Fig. 2, realize the knowledge of application apparatus software and hardware version based on above-mentioned POS system
Start control method used by other method:
Step 1: the POS system obtains the soft or hard of POS system application apparatus according to the method for claim 1
Part version;
Step 2: the POS system carries out initialization behaviour according to the software and hardware version of the POS system application apparatus
Make;
Step 3: the POS system application apparatus starting.
When debugging a serial chip or similar a plurality of products, in order to which management service code is convenient, usually using same
A set of code;And increase the method for control difference version in code by software, and the complexity of code is increased in this way, it is readable
Property and maintainability;And sometimes just need to distinguish version before software difference version function initialization, it is at this moment existing
The function of software difference version just fails in technology.Method of the invention in hardware design phase early period, just plan it is good how
Using GPIO, the default value that each project is fixed to be provided several GPIO PIN foot, and these GPIO are arranged is high or low;It is different
System version, the combined value of GPIO is different, such as: provide 4 GPIO, the default value point of 4 GPIO can be set in we
It Wei 1001,1010,0011 etc.;In software, realize that a function is responsible for specially calculating the combination of the GPIO of control version
Value, can be by calling the function to obtain the combined value of GPIO and judging which system is in system starting process or operation
Version does corresponding different work according to the difference of version.Method to remove complicated software maintenance system version, drop
The complexity of low code, enhancing code readability and reliability, facilitate developer to operate and implement.
The beneficial effects of the present invention are: on the one hand simplifying existing pure software version differentiating method, version letter is improved
Cease the convenience read and maintainability;On the other hand, and POS system application apparatus of the invention realizes version automatic identification
Method and the implementation for starting method are easy, and cost of implementation is cheap, and application range is also relatively broad.
Only highly preferred embodiment of the present invention is described above, but is not to be construed as limiting the scope of the invention.This
Invention is not only limited to above embodiments, and specific structure is allowed to vary.All protection models in independent claims of the present invention
Interior made various change is enclosed to all fall in the scope of protection of the present invention.
Claims (5)
1. a kind of recognition methods for realizing application apparatus software and hardware version for POS system, the POS system is with POS processing
Chip, the POS processor chips have multiple GPIO pins, which is characterized in that if having dry plate in the multiple GPIO pin
This control GPIO pin, the Version Control GPIO pin are set all in accordance with the software and hardware version of the POS system application apparatus
Surely have default value, the recognition methods the following steps are included:
Step 1: the POS system reads the default value of each Version Control GPIO pin;
Step 2: the POS system calculates according to the default value of each Version Control GPIO pin and obtains Version Control
Combined value;
Step 3: the POS system determines the software and hardware of the POS application apparatus according to the Version Control combined value
Version.
2. a kind of recognition methods for realizing application apparatus software and hardware version for POS system according to claim 1, special
Sign is that each Version Control GPIO pin is the POS system application apparatus, and except realization, the automatic identification is soft or hard
Other than the method for part version, the vacant GPIO pin that is not used in operational process.
3. a kind of recognition methods for realizing application apparatus software and hardware version for POS system according to claim 2, special
Sign is that the quantity of the Version Control GPIO pin is 4.
4. a kind of recognition methods for realizing application apparatus software and hardware version for POS system according to claim 3, feature
It is, the POS system calculates according to the default value of each Version Control GPIO pin and obtains Version Control combined value,
Specifically: the described POS system operation version is macro or version function, determines Version Control combined value val according to the following formula:
Val=gpio1 | (gpio2 < < 8) | (gpio3 < < 16) | (gpio4 < < 24) wherein, gpio1, gpio2, gpio3, gpio4 difference
For the default value of 4 Version Control GPIO pins.
5. a kind of method for realizing the starting control of POS system application apparatus based on method described in claim 1, feature exist
In, the described starting control method the following steps are included:
Step 1: the POS system obtains the software and hardware version of POS system application apparatus according to the method for claim 1
This;
Step 2: the POS system is initialized according to the software and hardware version of the POS system application apparatus;
Step 3: the POS system application apparatus starting.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984503.0A CN109697087A (en) | 2017-10-20 | 2017-10-20 | A kind of recognition methods for realizing application apparatus software and hardware version for POS system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710984503.0A CN109697087A (en) | 2017-10-20 | 2017-10-20 | A kind of recognition methods for realizing application apparatus software and hardware version for POS system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109697087A true CN109697087A (en) | 2019-04-30 |
Family
ID=66225417
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710984503.0A Pending CN109697087A (en) | 2017-10-20 | 2017-10-20 | A kind of recognition methods for realizing application apparatus software and hardware version for POS system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109697087A (en) |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980446A (en) * | 2005-12-06 | 2007-06-13 | 中兴通讯股份有限公司 | Edition information processing method of inlaid distribution system |
CN103019977A (en) * | 2012-12-07 | 2013-04-03 | 上海市共进通信技术有限公司 | Method for automatically identifying edition by application apparatus of embedded system and starting method |
CN107210931A (en) * | 2015-01-02 | 2017-09-26 | 希斯泰克公司 | Control architecture |
-
2017
- 2017-10-20 CN CN201710984503.0A patent/CN109697087A/en active Pending
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1980446A (en) * | 2005-12-06 | 2007-06-13 | 中兴通讯股份有限公司 | Edition information processing method of inlaid distribution system |
CN103019977A (en) * | 2012-12-07 | 2013-04-03 | 上海市共进通信技术有限公司 | Method for automatically identifying edition by application apparatus of embedded system and starting method |
CN107210931A (en) * | 2015-01-02 | 2017-09-26 | 希斯泰克公司 | Control architecture |
Non-Patent Citations (1)
Title |
---|
冯育长主编: "《单片机系统设计与实例分析》", 31 May 2007, 西安电子科技大学出版社 * |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
TW470885B (en) | Apparatus and method for emulating an I/O instruction for the correct processor and for servicing software SMI's in a multi-processor environment | |
CN106776308B (en) | Uboot-based electronic product fault debugging method and system | |
CN105740080B (en) | A kind of stuck detection method of program and processor | |
US6754747B2 (en) | System and method for configuring an I/O bus | |
CN106250279B (en) | Except wrong method and device thereof | |
CN106918775A (en) | The access method of chip test mode | |
CN100587669C (en) | Method and system for automated technical support for computers | |
CN106454498B (en) | The method of Android platform management USB device | |
CN103838610B (en) | A kind of method for product software automatic identification motherboard configuration information | |
CN107491293A (en) | A kind of BIOS foundation code design methods based on Board ID | |
CN105224483B (en) | Data transmission method, electronic equipment and universal serial bus device | |
CN107977311B (en) | Method and system for automatically detecting information safety of power distribution terminal | |
CN105653475B (en) | A kind of recognition methods of USB device and system | |
CN103019977A (en) | Method for automatically identifying edition by application apparatus of embedded system and starting method | |
CN204009745U (en) | There is the computing machine that a key recovers BIOS default value function | |
CN109697087A (en) | A kind of recognition methods for realizing application apparatus software and hardware version for POS system | |
CN104750600B (en) | Equipment state recording method and system | |
CN112084481A (en) | All-in-one machine based on Feiteng 2000-4 processor | |
CN104063297A (en) | Method and device capable of diagnosing computer hardware through USB interfaces | |
CN104915789B (en) | Safety impression method, device and its system | |
CN102982318A (en) | Fingerprint acquisition system and network identity authentication system using the same | |
CN108491057A (en) | A kind of starting-up method and its server of server | |
CN106354592A (en) | Computer automatic startup and shutdown testing device | |
US7519497B2 (en) | Apparatus and method for state selectable trace stream generation | |
CN101329648B (en) | Contact smart card emulator capable of debugging ATR |
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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190430 |