CN109634670A - A kind of PDA quickly configuration method and device based on USB OTG - Google Patents
A kind of PDA quickly configuration method and device based on USB OTG Download PDFInfo
- Publication number
- CN109634670A CN109634670A CN201811386370.8A CN201811386370A CN109634670A CN 109634670 A CN109634670 A CN 109634670A CN 201811386370 A CN201811386370 A CN 201811386370A CN 109634670 A CN109634670 A CN 109634670A
- Authority
- CN
- China
- Prior art keywords
- data
- pda
- storage unit
- variance
- usb otg
- 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
- 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/382—Information transfer, e.g. on bus using universal interface adapter
- G06F13/385—Information transfer, e.g. on bus using universal interface adapter for adaptation of a particular data processing system to different peripheral devices
-
- 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
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Software Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Computer Security & Cryptography (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The present invention relates to a kind of PDA quickly configuration methods and device based on USB OTG, comprising the following steps: S1, obtains initial data;S2, the customization operations information for receiving user's input customize data according to customization operations information acquisition, and will customize data storage into setting database;S3, the data being arranged in database are read by APP, the data being arranged in database is compared with initial data, obtain the variance data of the two;S4, variance data is imported in PDA to be configured, dissection process is carried out to variance data by PDA to be configured, completes the configuration of PDA to be configured.Implementing the present invention can be improved code terseness, reduce workload, increase version stability;And for a user, custom configuration can be done between part and whole PDA, flexibility is high, improves service efficiency, while can also promote user experience.
Description
Technical field
The present invention relates to handheld terminal technical fields, quickly match more specifically to a kind of PDA based on USB OTG
Set method and apparatus.
Background technique
In PDA (Personal Digital Assistant, palm PC), also it is handheld terminal industry, customer type
More and wide, different clients is different to the requirement of PDA machine, this generally requires to make various dedicated customization PDA.
Traditional customization mode are as follows: first is that change system code, carries out various default configurations when factory;Second is that
Manual setting is good to client when equipment is less.Both modes are all not flexible, and inefficiency, are unable to satisfy client's difference
The demand of application scenarios.
Summary of the invention
The technical problem to be solved in the present invention is that in view of the above drawbacks of the prior art, providing a kind of based on USB OTG
PDA quickly configuration method and device.
The technical solution adopted by the present invention to solve the technical problems is: it is quick to provide a kind of PDA based on USB OTG
Configuration method, comprising the following steps:
S1, initial data is obtained;
S2, the customization operations information for receiving user's input customize data according to the customization operations information acquisition, and by institute
The storage of customization data is stated into setting database;
S3, the data in the setting database are read by APP, by the data and the original in the setting database
Beginning data are compared, and obtain the variance data of the two;
S4, the variance data is imported in PDA to be configured, parsing is carried out to variance data by the PDA to be configured
Reason, completes the configuration of PDA to be configured.
Preferably, after the step S1 further include:
The initial data is stored in the first storage unit.
Preferably, include: before the step S3
The confirmation instruction of user's input is received in the APP.
Preferably, the step S3 includes:
S31, the data in the setting database are read by APP;
S32, the data in the setting database are stored in the second storage unit;
The data in data and second storage unit in S33, traversal first storage unit complete described the
The comparison of the data in data and first storage unit in two storage units, obtains the variance data of the two.
Preferably, after the step S33 further include:
S34, the variance data of the two is stored in third storage unit.
Preferably, the method also includes: show the variance data.
Preferably, first storage unit, second storage unit and the third storage unit are file.
Preferably, the step S4 includes:
The variance data is imported in the PDA to be configured by wired mode.
Preferably, the step S4 includes:
USB data line by being equipped with OTG interface imports the variance data in the PDA to be configured.
The present invention also provides a kind of PDA rapid configuration device based on USB OTG, comprising:
Acquiring unit, for obtaining initial data;
Setting unit is customized, for receiving the customization operations information of user's input, according to the customization operations information acquisition
Data are customized, and by customization data storage into setting database;
Data processing unit will be in the setting database for reading the data in the setting database by APP
Data be compared with the initial data, the variance data both obtained;
Configuration unit, for importing the variance data in PDA to be configured, by the PDA to be configured to variance data
Dissection process is carried out, the configuration of PDA to be configured is completed.
Implement the PDA quickly configuration method of the invention based on USB OTG, has the advantages that the implementation present invention
Code terseness can be improved, reduce workload, increase version stability;It and for a user, can be local and complete
Custom configuration is done between portion PDA, flexibility is high, improves service efficiency, while can also promote user experience.
Detailed description of the invention
Present invention will be further explained below with reference to the attached drawings and examples, in attached drawing:
Fig. 1 is that the embodiment of the present invention provides a kind of flow diagram of PDA quickly configuration method based on USB OTG;
Fig. 2 is that the embodiment of the present invention provides a kind of configuration schematic diagram of PDA quickly configuration method based on USB OTG;
Fig. 3 is that the embodiment of the present invention provides a kind of logic diagram of PDA rapid configuration device based on USB OTG.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
With reference to Fig. 1, the present invention provides a kind of PDA quickly configuration methods based on USB OTG, comprising the following steps:
Step S1, initial data is obtained.
In the embodiment of the present invention, initial data is provided by server.Specifically, taking a PDA for PDA configuration, it is
Convenient for illustrating, in the embodiment of the present invention, which is defined as standard PDA, when standard PDA starts for the first time, with server
Connection, and read operation is completed, initial data is read from the database of server.
Further, after step S1 further include: initial data is stored in the first storage unit.
In the embodiment of the present invention, the first storage unit is file, i.e. initial data can be stored directly in the one of standard PDA
In a file.
Step S2, the customization operations information for receiving user's input customizes data according to customization operations information acquisition, and will determine
Data storage processed is into setting database.
Specifically, user can directly execute relevant modification operation on standard PDA when needing to customize, input is corresponding
Customization operations information, standard PDA sets according to the corresponding customization data of customization operations information acquisition that user inputs, synchronous vacations
The data stored in database are set, i.e. data in setting database change accordingly with customization data.It is to be appreciated that setting
Set the setting database that database is standard PDA.
Step S3, by APP read setting database in data, will be arranged database in data and initial data into
Row compares, and obtains the variance data of the two.
It further, include: the confirmation instruction that user's input is received in APP before step S3.I.e. user is carrying out phase
After the completion of closing customization operations, corresponding APP on standard PDA, input validation instruction are entered.After the instruction of user's input validation,
APP just starts to read again the data in setting database.
Specifically, step S3 includes:
Step S31, the data in setting database are read by APP.
Step S32, the data being arranged in database are stored in the second storage unit.
Step S33, the data in the data and the second storage unit in the first storage unit are traversed, it is single to complete the second storage
The comparison of the data in data and the first storage unit in member, obtains the variance data of the two.
Further, after step S33 further include:
Step S34, the variance data of the two is stored in third storage unit.
Optionally, in the embodiment of the present invention, the second storage unit and third storage unit are file.
Further, before the variance data of the two is stored in third storage unit, also by variance data in standard
Variance data is shown in the display unit of PDA, and is saved in third again after being confirmed by user to variance data selection and deposits
In storage unit.It is directly viewable by the way that variance data is shown to user, and is saved in third storage again after selecting confirmation by user
In unit, the misconfiguration to PDA to be configured can be prevented.
Step S4, variance data is imported in PDA to be configured, dissection process is carried out to variance data by PDA to be configured, it is complete
At the configuration of PDA to be configured.
In the embodiment of the present invention, step S4 includes: to be imported variance data in PDA to be configured by wired mode.
Further, in the embodiment of the present invention, step S4 includes: by being equipped with the USB data line of OTG interface for difference
Data import in PDA to be configured.For example, connect standard PDA with PDA to be configured by the data line with USB OTG interface,
And realize that the data of standard PDA and PDA to be configured are transmitted by the data line with USB OTG interface.
In the embodiment of the present invention, step S1 to step S3 is real in the PDA for providing variance data to PDA to be configured
It is existing, wherein dedicated APP to be equipped in the PDA, which is APP described in above mentioned step S3, by the APP
By user's trigger action, may be implemented for the data being arranged in database to be compared with initial data, to obtain the difference of the two
Heteromerism evidence.
The present invention can be sent data to any one PDA by standard PDA and be set by one standard PDA of setting
It is standby upper, and come into force in real time, the configuration to other PDA is quickly completed, can complete to refer to and customize PDA without code revision, effectively
Customization time and workload are reduced, and can flexibly, efficiently apply to other changeable usage scenarios, improves software version
Versatility and practicability, and can improve service efficiency and promoted user experience.
Solve conventional custom PDA needs by modifying code, period length, heavy workload, use by implementing the present invention
The problems such as inconvenient, user can not independently customize.It can be by user according to itself product customization need specifically, implementing the present invention
Independently to be rapidly completed configuration, and can the customization of unlimited number code terseness can be improved for the producer, reduce work
It measures, increases version stability, improve user experience.For users, it can be configured between part and whole PDA, flexibly
Property it is high, service efficiency is high.
It is illustrated below with a concrete application implementation:
With reference to Fig. 2, PDA-A indicates standard PDA, is arranged dedicated APP thereon, PDA-B represent any one it is to be configured
PDA.Further, in this embodiment, the first storage unit is indicated with file 1, and the second storage unit is indicated with file 2, the
Three storage units are indicated with file 3, wherein the first storage unit, the second storage unit, third storage unit are arranged at PDA-
In A.
As shown in Fig. 2, PDA-A is connect with server, when PDA-A starts for the first time by the data in server
It reads in PDA-A, and read initial data is stored in file 1.When user needs to carry out specific customization to PDA-B
When, user can open setting operation directly in PDA-A, export corresponding customization operations information, PDA-A is inputted according to user
The corresponding customization data of customization operations acquisition of information, and there are setting database (the Settings numbers of PDA-A by the customization data
According to library) in, so that the data in the setting database of PDA-A change accordingly.Then, into defeated in the dedicated APP of PDA-A
Enter confirmation instruction and reads again the data in setting database, and again after APP receives the confirmation instruction of user's input
The data of reading are stored in file 2;Then, the data for traversing file 1 and file 2 carry out the data of file 1 and file 2
Compare, obtain the differences of the data of two files, i.e. variance data, and by variance data obtained PDA-A display
Real-time display is carried out in unit, confirmation is checked and selected for user, and after receiving the confirmation instruction of user's input, by difference
Data are saved in file 3.After obtaining variance data, PDA-A is connect with PDA-B by the data line with USB OTG,
By in the reading data to PDA-B in the file 3 of PDA-A, after carrying out dissection process to the data of file 3 on PDA-B, will solve
Treated that data are written into the Settings database of PDA-B for analysis, completes the configuration of PDA-B.
It will of course be understood that ground, can be directly by more when needing to configure more PDA in some other embodiment
PDA is connect with PDA-A, is respectively completed into each PDA, and by each PDA from PDA-A by the reading data in file 3 respectively
Dissection process operation, and the data after dissection process are written in respective Settings database, it can be completed more PDA's
Configuration.
With reference to Fig. 3, the present invention also provides a kind of PDA rapid configuration device based on USB OTG, comprising:
Acquiring unit 301, for obtaining initial data.
Setting unit 302 is customized, it is fixed according to customization operations information acquisition for receiving the customization operations information of user's input
Data processed, and customization data are stored into setting database.
The number in database will be arranged for reading the data in setting database by APP in data processing unit 303
It is compared according to initial data, obtains the variance data of the two.
Configuration unit 304 solves variance data by PDA to be configured for importing variance data in PDA to be configured
Analysis processing, completes the configuration of PDA to be configured.
In the embodiment of the present invention, initial data is provided by server.Specifically, taking a PDA for PDA configuration, it is
Convenient for illustrating, in the embodiment of the present invention, which is defined as standard PDA.
In the embodiment of the present invention, acquiring unit 301, customization setting unit 302 and data processing unit 303 are arranged at
In standard PDA, configuration unit 304 is arranged in PDA to be configured.
Specifically, standard PDA is connect with server, is completed by acquiring unit 301 when standard PDA starts for the first time
Read operation reads the initial data being stored in the database of server in standard PDA.Further, acquiring unit
301 after initial data is read standard PDA, are also saved in initial data in the first storage unit of PDA.
When needing to customize, user can directly execute relevant modification operation on standard PDA, input corresponding customization behaviour
Make information, the customization operations information of user's input is received by customization setting unit 302, and believe according to the customization operations of user's input
Breath obtains corresponding customization data, the data stored in synchronous vacations setting database, i.e. data in setting database with
Customization data change accordingly.It is to be appreciated that the setting database that setting database is standard PDA.
Further, data processing unit 303 is after customization setting unit 302 completes the modification setting of customization data, root
According to the confirmation instruction of user's input, the data in the setting database of standard PDA are read again, and data in database will be set
It is compared with initial data, obtains the variance data of the two.
Further, in the embodiment of the present invention, data processing unit 303 includes:
Read module, the data in setting database for reading standard PDA by APP.
Preserving module, for the data being arranged in database to be stored in the second storage unit.
Comparison module completes first for traversing the data in data and the second storage unit in the first storage unit
The data in data and the second storage unit in storage unit obtain the variance data of the two.
Further, data processing unit 303 further include:
Memory module, for the variance data of the two to be stored in third storage unit.
In the embodiment of the present invention, the first storage unit, the second storage unit and third storage unit are file.
Further, before variance data is stored in third storage unit by memory module, data processing unit 303 is also
Variance data shows variance data in the display unit of standard PDA, and variance data is selected to confirm by user
Afterwards, variance data is just stored in third storage unit by memory module.
Above embodiments only technical concepts and features to illustrate the invention, its object is to allow person skilled in the art
Scholar can understand the contents of the present invention and implement accordingly, can not limit the scope of the invention.It is all to be wanted with right of the present invention
The equivalent changes and modifications that range is done are sought, should belong to the covering scope of the claims in the present invention.
It should be understood that for those of ordinary skills, it can be modified or changed according to the above description,
And all these modifications and variations should all belong to the protection domain of appended claims of the present invention.
Claims (10)
1. a kind of PDA quickly configuration method based on USB OTG, which comprises the following steps:
S1, initial data is obtained;
S2, the customization operations information for receiving user's input customize data according to the customization operations information acquisition, and will be described fixed
Data storage processed is into setting database;
S3, the data in the setting database are read by APP, by the data and the original number in the setting database
According to being compared, the variance data of the two is obtained;
S4, the variance data is imported in PDA to be configured, dissection process is carried out to variance data by the PDA to be configured, it is complete
At the configuration of PDA to be configured.
2. the PDA quickly configuration method according to claim 1 based on USB OTG, which is characterized in that the step S1 it
Afterwards further include:
The initial data is stored in the first storage unit.
3. the PDA quickly configuration method according to claim 1 based on USB OTG, which is characterized in that the step S3 it
Before include:
The confirmation instruction of user's input is received in the APP.
4. the PDA quickly configuration method according to claim 2 based on USB OTG, which is characterized in that the step S3 packet
It includes:
S31, the data in the setting database are read by APP;
S32, the data in the setting database are stored in the second storage unit;
The data in data and second storage unit in S33, traversal first storage unit, complete described second and deposit
The comparison of the data in data and first storage unit in storage unit, obtains the variance data of the two.
5. the PDA quickly configuration method according to claim 4 based on USB OTG, which is characterized in that the step S33
Later further include:
S34, the variance data of the two is stored in third storage unit.
6. the PDA quickly configuration method according to claim 1 based on USB OTG, which is characterized in that the method is also wrapped
It includes: showing the variance data.
7. the PDA quickly configuration method according to claim 5 based on USB OTG, which is characterized in that first storage
Unit, second storage unit and the third storage unit are file.
8. the PDA quickly configuration method according to claim 1 based on USB OTG, which is characterized in that the step S4 packet
It includes:
The variance data is imported in the PDA to be configured by wired mode.
9. the PDA quickly configuration method according to claim 1 based on USB OTG, which is characterized in that the step S4 packet
It includes:
USB data line by being equipped with OTG interface imports the variance data in the PDA to be configured.
10. a kind of PDA rapid configuration device based on USB OTG characterized by comprising
Acquiring unit, for obtaining initial data;
Setting unit is customized, for receiving the customization operations information of user's input, is customized according to the customization operations information acquisition
Data, and by customization data storage into setting database;
Data processing unit, for reading the data in the setting database by APP, by the number in the setting database
It is compared according to the initial data, obtains the variance data of the two;
Configuration unit carries out variance data by the PDA to be configured for importing the variance data in PDA to be configured
Dissection process completes the configuration of PDA to be configured.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811386370.8A CN109634670A (en) | 2018-11-20 | 2018-11-20 | A kind of PDA quickly configuration method and device based on USB OTG |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811386370.8A CN109634670A (en) | 2018-11-20 | 2018-11-20 | A kind of PDA quickly configuration method and device based on USB OTG |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109634670A true CN109634670A (en) | 2019-04-16 |
Family
ID=66068582
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811386370.8A Pending CN109634670A (en) | 2018-11-20 | 2018-11-20 | A kind of PDA quickly configuration method and device based on USB OTG |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634670A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905691A (en) * | 2019-11-19 | 2021-06-04 | 中盈优创资讯科技有限公司 | Information synchronization method and device |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520975A (en) * | 2011-11-16 | 2012-06-27 | 深圳创维-Rgb电子有限公司 | Intelligent updating method of external equipment driver, device and system |
CN102768530A (en) * | 2012-08-14 | 2012-11-07 | 山东省科学院自动化研究所 | Function and parameter on-line configuration method of automobile integrated automobile body electronic control unit |
CN106796508A (en) * | 2014-04-30 | 2017-05-31 | 皮沃塔尔软件公司 | Rapid deployment in cloud platform |
CN107358506A (en) * | 2017-07-13 | 2017-11-17 | 浙江宇视科技有限公司 | Product customization method, apparatus and equipment for customizing |
CN107408049A (en) * | 2015-03-16 | 2017-11-28 | 微软技术许可有限责任公司 | Model-driven customizes framework |
CN107491328A (en) * | 2017-08-02 | 2017-12-19 | 广东美的暖通设备有限公司 | Updating firmware program method, system and electric equipment |
CN107659858A (en) * | 2017-08-24 | 2018-02-02 | 四川天邑康和通信股份有限公司 | EPON area Adaptable System |
-
2018
- 2018-11-20 CN CN201811386370.8A patent/CN109634670A/en active Pending
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102520975A (en) * | 2011-11-16 | 2012-06-27 | 深圳创维-Rgb电子有限公司 | Intelligent updating method of external equipment driver, device and system |
CN102768530A (en) * | 2012-08-14 | 2012-11-07 | 山东省科学院自动化研究所 | Function and parameter on-line configuration method of automobile integrated automobile body electronic control unit |
CN106796508A (en) * | 2014-04-30 | 2017-05-31 | 皮沃塔尔软件公司 | Rapid deployment in cloud platform |
CN107408049A (en) * | 2015-03-16 | 2017-11-28 | 微软技术许可有限责任公司 | Model-driven customizes framework |
CN107358506A (en) * | 2017-07-13 | 2017-11-17 | 浙江宇视科技有限公司 | Product customization method, apparatus and equipment for customizing |
CN107491328A (en) * | 2017-08-02 | 2017-12-19 | 广东美的暖通设备有限公司 | Updating firmware program method, system and electric equipment |
CN107659858A (en) * | 2017-08-24 | 2018-02-02 | 四川天邑康和通信股份有限公司 | EPON area Adaptable System |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112905691A (en) * | 2019-11-19 | 2021-06-04 | 中盈优创资讯科技有限公司 | Information synchronization method and device |
CN112905691B (en) * | 2019-11-19 | 2024-05-14 | 中盈优创资讯科技有限公司 | Information synchronization method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN106483860B (en) | For the automatic data collection middleware and its application method of PLC | |
CN104091287B (en) | A kind of task implementation method and device based on data-driven | |
SG115362A1 (en) | Asset management and scheduling graphical user interface for media streamer | |
CN105843873A (en) | System and method for managing data modeling | |
CN106251092A (en) | Field operation managing and control system based on operation template | |
CN103729189B (en) | Broadcasting method for converting protocol based on LUA, system, terminal | |
CN110833693B (en) | Game running method and device, storage medium and electronic device | |
CN109902251A (en) | Scheme Choice method, apparatus, terminal and readable storage medium storing program for executing based on decision tree | |
CN108875289A (en) | A kind of algorithm adjustment method, client, background server and system | |
CN109325024A (en) | Label display method, apparatus, terminal device and the storage medium of project | |
CN109145034B (en) | Resource presentation method and device and computer terminal | |
CN107770212A (en) | Rich communication suite distribution platform, method for updating edition and system, mobile terminal | |
CN106446283A (en) | Page style generating method and device | |
CN111223015A (en) | Course recommendation method and device and terminal equipment | |
CN109634670A (en) | A kind of PDA quickly configuration method and device based on USB OTG | |
CN104484093B (en) | The arrangement display methods and device of graphical interfaces | |
CN104461547B (en) | The arrangement display methods and device of graphical interfaces | |
CN111651289A (en) | Internet of things data docking method and system and related equipment | |
CN104133900A (en) | Definition description method of 360-degree treeview | |
CN110457219A (en) | The method and apparatus of selection of time when a kind of test script is recorded | |
CN113220561A (en) | Test case management method, device, equipment and medium | |
CN109783164B (en) | Method and apparatus for computing device and operating, reconstructing experiments | |
CN107729686B (en) | Building model component display method and device, electronic equipment and storage medium | |
CN110928526A (en) | Processing device for Internet of things | |
CN109214846A (en) | Information storage means and device |
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 |
Application publication date: 20190416 |
|
RJ01 | Rejection of invention patent application after publication |