CN109298862A - Value acquisition method, device and the storage medium of customized data - Google Patents
Value acquisition method, device and the storage medium of customized data Download PDFInfo
- Publication number
- CN109298862A CN109298862A CN201811042876.7A CN201811042876A CN109298862A CN 109298862 A CN109298862 A CN 109298862A CN 201811042876 A CN201811042876 A CN 201811042876A CN 109298862 A CN109298862 A CN 109298862A
- Authority
- CN
- China
- Prior art keywords
- code
- agreement
- customized data
- keyword
- protocol
- 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
- G06F8/00—Arrangements for software engineering
- G06F8/30—Creation or generation of source code
- G06F8/36—Software reuse
-
- 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/72—Code refactoring
Landscapes
- Engineering & Computer Science (AREA)
- Software Systems (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Communication Control (AREA)
Abstract
The invention discloses value acquisition method, device and the storage mediums of a kind of customized data.Method includes the following steps: the lookup MAP table between numerical value needed for establishing keyword and customized data in default file, wherein each keyword and each numerical value correspond;The operational order for receiving user obtains the first first code and the first agreement according to operational order, the first first code and corresponding second first code of the first agreement and second protocol is obtained from default file;According to the second first code and second protocol, keyword corresponding with the second first code and second protocol is obtained;According to the second first code and the corresponding keyword of second protocol, MAP table is searched, numerical value corresponding with the keyword in MAP table is obtained.The present invention provides a kind of value acquisition methods of customized data, it is intended to solve the problem of a variety of customized demands for being unable to satisfy user in the prior art and waste significantly is exploited natural resources.
Description
Technical field
The present invention relates to embedded-type electric subdomains more particularly to a kind of value acquisition method of customized data, device and
Computer readable storage medium.
Background technique
With the continuous improvement of people's living standards, various electronic products have come into huge numbers of families, consumption
Requirement of the person for electronic product is higher and higher, and demand also tends to difference.So that in the development process of electronic product, for
The different demands of different clients need for partial data to be customized, to realize the new function of customer requirement.
The technical solution that the numerical value of existing customized data obtains an are as follows: first code in customized data is corresponding with not
Data after determining corresponding agreement according to user demand, are assigned different numerical value further according to agreement, so that data by same agreement
It can be realized different functions, to meet customized requirement.However, being needed soft to main body when the demand of user changes
Part is recompilated, and is wasted and is exploited natural resources significantly.Therefore, how to use it is least exploit natural resources so that software meet it is customized
The requirement of change is current urgent problem to be solved.
Summary of the invention
The main purpose of the present invention is to provide value acquisition method, device and the storage mediums of a kind of customized data.
It aims to solve the problem that and is unable to satisfy customized requirement in the prior art, waste the problem of exploiting natural resources significantly.
To achieve the above object, the present invention provides a kind of value acquisition method of customized data, includes the following steps:
Lookup MAP table between numerical value needed for establishing keyword and customized data in default file, wherein each key
Word and each numerical value correspond;
The operational order for receiving user obtains the first first code and the first agreement according to the operational order, from default file
Middle acquisition first first code and corresponding second first code of first agreement and second protocol;
According to second first code and the second protocol, obtain corresponding with second first code and the second protocol
Keyword;
According to second first code and the corresponding keyword of the second protocol, the MAP table is searched, the MAP is obtained
Numerical value corresponding with the keyword in table.
Optionally, described the step of obtaining the first first code and the first agreement according to the operational order, includes:
According to the operational order, the corresponding code value of the operational order is obtained;
The code value is parsed, the first first code and the first agreement are obtained.
Optionally, described first first code to be obtained from default file and first agreement is second corresponding
Before the step of code and second protocol, further includes:
The corresponding resolution file of default file is obtained, and the default file is parsed by resolution file;
It is described that first first code and corresponding second first code of first agreement and are obtained from default file
The step of two agreements includes:
First first code and corresponding second first code of first agreement are obtained in default file after analytically
And second protocol.
Optionally, described first first code to be obtained from default file and first agreement is second corresponding
Code and the step of second protocol include:
Multiple first codes and multiple agreements are obtained in default file after analytically;
First first code and the first agreement are matched with the multiple first code and multiple agreements, obtained and described first
Code the second first code corresponding with first agreement and second protocol.
Optionally, described first first code to be obtained from default file and first agreement is second corresponding
After the step of code and second protocol further include:
Interrupt number corresponding with first agreement is obtained in default file after analytically;
The driving function with the interrupt number corresponding function is obtained according to the interrupt number;
After described the step of obtaining numerical value corresponding with the keyword in MAP table, further includes:
According to the driving function, the customized data are transmitted.
Optionally, described according to second first code and the second protocol, it obtains and second first code and described the
The step of two agreements corresponding keyword includes:
Program statement is obtained in default file after analytically;
According to preset rules reading program sentence, to obtain the keyword in described program sentence;
Preset rules include: the comment statement skipped in program statement, and remove the second protocol and the second first code pair
Other keywords other than the keyword answered.
Optionally, described while executing the step according to operational order the first first code of acquisition and the first agreement, it executes
Following steps:
The code including variable is obtained according to the operational order;
It is described that the MAP table is searched according to second first code and the corresponding keyword of the second protocol, it obtains described
In MAP table the step of numerical value corresponding with the keyword after, further includes:
The numerical value is assigned to the variable in the code, complete paired data it is customized.
It is optionally, described after all steps further include:
Receive the customized data modification instruction of user;
According to numerical value needed for keyword in MAP table described in the customized data modification instruction modification and customized data
Corresponding relationship.
In addition, to achieve the above object, it is described customized the present invention also provides a kind of numerical value acquisition device of customized data
The numerical value acquisition device for changing data includes: memory, processor and is stored on the memory and can be on the processor
The numerical value of the customized data of operation obtains program, when the numerical value acquisition program of the customized data is executed by the processor
The step of realizing the value acquisition method of customized data as described above.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
The numerical value that customized data are stored on storage medium obtains program, and the numerical value of the customized data obtains program by processor
The step of value acquisition method of customized data as described above is realized when execution.
The present invention provides value acquisition method, device and the storage mediums of a kind of customized data, include the following steps:
Lookup MAP table between numerical value needed for establishing keyword and customized data in default file, wherein each keyword and each
Numerical value corresponds;The operational order for receiving user obtains the first first code and the first agreement according to operational order, from default file
The first first code of middle acquisition and corresponding second first code of the first agreement and second protocol;According to the second first code and second protocol,
Obtain keyword corresponding with the second first code and second protocol;According to the second first code and the corresponding keyword of second protocol, search
MAP table obtains numerical value corresponding with the keyword in MAP table.The present invention is by pre-establishing keyword and customized data institute
The MAP table between numerical value is needed, each keyword and each agreement correspond, and each keyword and each numerical value one are a pair of
It answers, when the demand of user changes, only need to recompilate MAP table, the new function of user's requirement can be realized, be greatly saved out
Resource is sent out, the production cycle is reduced.In addition, acquired first code and agreement is instructed to determine in default file depending on the user's operation
Corresponding first code and agreement realize the one-to-one correspondence of first code and agreement, even if there are multiple agreements, also can to agreement into
The effective parsing of row.
Detailed description of the invention
Fig. 1 is the apparatus structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to;
Fig. 2 is the flow diagram of one embodiment of value acquisition method of the customized data of the present invention;
Fig. 3 is the flow diagram of another embodiment of value acquisition method of the customized data of the present invention;
Fig. 4 is first first code to be obtained from default file and first agreement is right respectively described in the embodiment of the present invention
The step of the second first code and second protocol for answering, refines flow diagram;
Fig. 5 is the flow diagram of the another embodiment of value acquisition method of the customized data of the present invention;
Fig. 6 is the flow diagram of the value acquisition method another embodiment of the customized data of the present invention.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Specific embodiment
In order to make the objectives, technical solutions, and advantages of the present invention clearer, with reference to the accompanying drawings and embodiments, right
The present invention is further elaborated.It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, and
It is not used in the restriction present invention.
As shown in Figure 1, Fig. 1 is the terminal structure schematic diagram for the hardware running environment that the embodiment of the present invention is related to.
The terminal of that embodiment of the invention is the numerical value acquisition device of customized data, can be computer, is also possible to intelligent hand
Machine, tablet computer, portable computer etc. have the packaged type terminal device of display function and input function.
As shown in Figure 1, the terminal may include: processor 1001, such as CPU, communication bus 1002, user interface
1003, network interface 1004, memory 1005.Wherein, communication bus 1002 is for realizing the connection communication between these components.
User interface 1003 may include display screen (Display), input unit such as keyboard (Keyboard), optional user interface
1003 can also include standard wireline interface and wireless interface.Network interface 1004 optionally may include that the wired of standard connects
Mouth, wireless interface (such as WI-FI interface).Memory 1005 can be high speed RAM memory, be also possible to stable memory
(non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of aforementioned processor
1001 storage device.
Optionally, terminal can also include camera, WiFi module etc., and details are not described herein.
It will be understood by those skilled in the art that the restriction of the not structure paired terminal of terminal structure shown in Fig. 1, can wrap
It includes than illustrating more or fewer components, perhaps combines certain components or different component layouts.
In terminal shown in Fig. 1, network interface 1004 is mainly used for connecting background server, carries out with background server
Data communication;User interface 1003 includes mainly input unit such as keyboard, and keyboard includes Wireless Keyboard and wired keyboard, is used for
Client is connected, carries out data communication with client;And processor 1001 can be used for calling the tune stored in memory 1005
The customized data program of sound.
Specific embodiment and following customized data of the present invention as the numerical value acquisition device of the customized data of terminal
Each embodiment of value acquisition method it is essentially identical, therefore not to repeat here.
Referring to Fig. 2, Fig. 2 is the flow diagram of one embodiment of value acquisition method of the customized data of the present invention, this
The value acquisition method for the customized data that embodiment provides includes the following steps:
Step S110, the lookup MAP table between numerical value needed for keyword and customized data are established in default file, wherein
Each keyword and each numerical value correspond;
The MAP table for having different keywords and different numerical value is established in default file, wherein the keyword and number in MAP table
Value corresponds.By the way that numerical value different in MAP table are assigned to code, data is made to realize different functions.In addition, by preparatory
Foundation includes the MAP table of different numerical value, when the demand of user changes, only need to recompilate MAP table, user can be realized and want
The new function asked greatly reduces the maintenance cost of production development, reduces the production development period.
Step S120 receives the operational order of user, obtains the first first code and the first agreement according to the operational order, from
First first code and corresponding second first code of first agreement and second protocol are obtained in default file;
In embodiments of the present invention, by the value acquisition method of the customized data on a remote control application for, answer
When understanding, the present invention be can not only be applied on remote controler, be obtained using the numerical value of customized data disclosed by the invention
Embedded electronic product voice data, screen parameter evidence, the independent of PQ data and signal source configuration may be implemented in method.
In the embodiment of the present invention, user first issues an operational order, such as pressing remote controller key, according to this of user
A operation, software are got because user presses remote controller key the first first code generated and the first agreement.It should be understood that
A pair of of first code and agreement correspond to a kind of function of customer requirement.For example, the same remote keying for same remote controler, A visitor
Family needs to realize the function of increase sound of television, configures corresponding first code and agreement in default file at this time, when B client uses
The same remote keying of this remote controler, it is desirable that realize replacement channel functions when, need to the data in default file MAP table into
Row recompilates.
Multiple agreements and multiple first codes, first code can be added in default file previously according to the different demands of different clients
It is corresponded with function required by agreement and client, i.e., a pair of of first code and agreement, a kind of function of corresponding remote controller key.It connects
After receiving the first first code and the first agreement, default file is traversed, it is right in file to obtain from multiple agreements and multiple first codes
The second first code and second protocol answered.In this way, protocol configuration is realized into the independence of different agreement in topmost paper
Change.When there are multiple agreements, when needing to parse agreement, also it is avoided that in resolving data overlap occur to parse
The phenomenon that failure.
Step S130 is obtained and second first code and described second according to second first code and the second protocol
The corresponding keyword of agreement,;
Multiple keywords are added in the program statement of default file previously according to the different demands of different clients, and are closed
Key word and a pair of of first code and agreement correspond, i.e., a pair of of first code and agreement, the keyword in corresponding one section of programmed statements.It is existing
In technology, obtains after corresponding agreement, being directly realized by the definition to data function in default file, be led when the function of demand is more
When causing agreement more, code confusion is easily caused to cause protocol analysis to fail.And the present invention is corresponding using different keywords
Different agreements, then the subsequent operation defined to data progress function is carried out, so that code logic is more clear, and really realize
The independence of agreement only need to simply recompilate default file when customer demand change, without recompility
Entire main body software.
Step S140 searches the MAP table, obtains according to second first code and the corresponding keyword of the second protocol
The numerical value corresponding with the keyword into the MAP table.
After obtaining corresponding keyword, numerical value corresponding with the keyword is obtained in MAP table.Have not in default file
With the MAP table between keyword and different numerical value, keyword and numerical value in MAP table are corresponded.Different numerical value are assigned to generation
Code, makes data realize different functions.
The value acquisition method of customized data in the present embodiment includes the following steps: to establish in default file crucial
Lookup MAP table between numerical value needed for word and customized data, wherein each keyword and each numerical value correspond;Receive user
Operational order, the first first code and the first agreement are obtained according to operational order, the first first code and first are obtained from default file
Corresponding second first code of agreement and second protocol;According to the second first code and second protocol, obtain and the second first code and second
The corresponding keyword of agreement;According to the second first code and the corresponding keyword of second protocol, MAP table is searched, obtains in MAP table and is somebody's turn to do
The corresponding numerical value of keyword.The present invention passes through the MAP table between numerical value needed for pre-establishing keyword and customized data, Mei Geguan
Key word and each agreement correspond, and each keyword is corresponded with each numerical value, when the demand of user changes, only
MAP table need to be recompilated, the new function of user's requirement can be realized, be greatly saved and exploit natural resources, reduce the production cycle.This
Outside, acquired first code and agreement is instructed to determine corresponding first code and agreement in default file depending on the user's operation, it is real
The one-to-one correspondence of first code and agreement is showed, even if there are multiple agreements, also agreement can effectively accurately parse.
Further, referring to the process for another embodiment of value acquisition method that Fig. 3, Fig. 3 are the customized data of the present invention
Schematic diagram, the step of obtaining the first first code and the first agreement according to the operational order in above-mentioned steps S120 include:
Step S150 obtains the corresponding code value of the operational order according to the operational order;
Step S160 parses the code value, obtains the first first code and the first agreement.
The operational order generated when receiving user using embedded electronic product, and corresponding code is obtained according to operational order
Value.By taking remote controler as an example, when user presses remote controller key, remote control code value is generated immediately.After getting corresponding code value, to code
Value is decoded, and obtains corresponding first first code and the first agreement.Wherein, first code is the division statement in code, plays mark
Effect, pass through first code carry out program statement between matching each other.Agreement is that communication computer both sides must defer to jointly
One group of agreement is to realize network data exchange and rule, agreement or the standard established, and the module communicated with each other will be abided by
The technical specification followed.
Further, above-mentioned steps S120 obtains first first code from default file and first agreement is right respectively
Before the second first code and second protocol answered, further includes:
Step S170 obtains the corresponding resolution file of default file, and is carried out by resolution file to the default file
Parsing;
Above-mentioned steps S120 includes:
Step S121, analytically after default file in obtain first first code and first agreement is corresponding
Second first code and second protocol.
When default file type is ini default file, parsing default file is iniparser.c file, it should be understood that
, different default file types correspond to different resolution files.Ini file as system configuration file can be used to deposit
Put software information, registry information etc..Every configuration of ini file system under the overall leadership is general under the application program that we use
There is ini file, the requirement of different user is realized for configuration software.Therefore the file of preferred configuration ini format of the present invention
As default file, to realize the separation of data and program.The data-interface of prewired program in default file needs more in software
When new, the data of associated data interface need to be only updated, the new function of user's requirement can be realized, meet customized requirement, and
Software need not be recompilated.
It should be understood that the present invention can first parse default file using function decomposition into analytic function, then analytically after
The second first code and second protocol are obtained in default file.After carrying out parsing operation to default file, can analytically it preset
The second first code corresponding with the first first code and the first agreement and second protocol are got in file.
Further, referring to Fig. 4, Fig. 4 be obtained from default file in the step S120 of one embodiment of the invention described in
The step of first first code and corresponding second first code of first agreement and second protocol, refines flow diagram, it is above-mentioned from
The step of first first code and corresponding second first code of first agreement and second protocol are obtained in default file packet
It includes:
Step S122, analytically after default file in obtain multiple first codes and multiple agreements;
Step S123 matches the first first code and the first agreement with the multiple first code and multiple agreements, obtain with
First first code and corresponding second first code of first agreement and second protocol.
After parsing using resolution file to default file, the multiple first codes and multiple agreements in default file are obtained,
Using the first code identical with the first first code in default file as the second first code;It will be identical with the first agreement in default file
Agreement is as second protocol.It should be understood that the second first code and second protocol respectively with the first first code and the first agreement one by one
It is corresponding.In this way, the matching between agreement is directly carried out, the independent of agreement is realized, avoids carrying out to agreement
When parsing, data overlap occurs, the situation of parsing mistake is caused to occur.
Further, referring to the process for the another embodiment of value acquisition method that Fig. 5, Fig. 5 are the customized data of the present invention
Schematic diagram, above-mentioned steps S120 obtains first first code from default file and first agreement is second corresponding
Include: after code and second protocol
Step S180, analytically after default file in obtain interrupt number corresponding with first agreement;
Step S190 obtains the driving function with the interrupt number corresponding function according to the interrupt number;
Above-mentioned steps S140 is obtained in MAP table after numerical value corresponding with the keyword, further includes:
Step S200 transmits the customized data according to the driving function.
Default file is parsed by resolution file, is preset in default file multiple in the interruption of kernel registration
Number, by parsing to default file, obtain interrupt number corresponding with the first agreement.Interrupt number can judge it is which equipment
The operation request of proposition is searched out the address for issuing the equipment interrupted using this characteristic of interrupt number, obtains corresponding equipment
It interrupts, obtains the driving function in device interrupt.The corresponding numerical value in obtaining MAP table, it is corresponding to obtain customized data
After numerical value, using the driving function got, customized data is passed into controlled device, realize the transmitting of actual key value.
This is the prior art, is no longer illustrated secondary.By calling the driving function in relevant device interruption, customized data have been ensured
Transmitting guarantees that controlled device really realizes the function of customer demand.
Further, above-mentioned according to second first code and the second protocol, it obtains and second first code and described
The step of second protocol corresponding keyword includes:
Step S131, analytically after default file in obtain program statement;
Step S132, according to preset rules reading program sentence, to obtain the keyword in described program sentence;
Preset rules include: the comment statement skipped in program statement, and remove the second protocol and the second first code pair
Other keywords other than the keyword answered.
Be built-in in default file from different first codes and the corresponding program statement of agreement, pass through the solution to default file
Analysis, obtains program statement corresponding with the second first code and second protocol.Wherein, program statement is divided into two parts, wherein useful symbol
The sentence of number " # " beginning, this is the comment section of program statement, the remark information of developer is generally left for, to entire journey
The operation of sequence does not work, therefore when search key, directly skips this part.Another part is chapters and sections part, by having meter
The program statement of calculation machine logic of language is constituted, it is able to achieve program function to be expressed.The comment section of program statement is skipped,
Preset keyword corresponding with second protocol and the second first code is obtained in the chapters and sections part of program statement.
The present invention corresponds to different agreements using keyword, then carries out the subsequent operation defined to data progress function, makes
It obtains code logic to be more clear, and is truly realized the independence of agreement, when customer demand change, it is not necessary to recompilate entire main
Body software.
Further, referring to the process for the value acquisition method another embodiment that Fig. 6, Fig. 6 are the customized data of the present invention
Schematic diagram, after all steps further include:
Step S220 receives the customized data modification instruction of user;
Step S230, according to keyword in MAP table described in the customized data modification instruction modification and customized data
The corresponding relationship of required numerical value.,
When user wants to realize more functions or change function, corresponding customized data modification instruction is received,
It is instructed according to customized data modification, need to only change the corresponding relationship of keyword and numerical value needed for customized data in MAP table, change
Become the assignment in data code to dependent variable, the new function of user's requirement can be realized, and then meets customized requirement, without
Software must be recompilated, development cost is greatly saved.
Further, execute the step of the first first code and the first agreement is obtained according to operational order while, execute with
Lower step:
Step S124 obtains the code including variable according to the operational order;
Above-mentioned steps S140 searches the MAP table according to second first code and the corresponding keyword of the second protocol,
It obtains in the MAP table after numerical value corresponding with the keyword, further includes:
The numerical value is assigned to the variable in the code by step S210, complete paired data it is customized.
In the embodiment of the present invention, instruction obtains corresponding code depending on the user's operation, wherein the variable in code not by
Exact numerical value is assigned, so the function of data is not defined, needs to assign variable certain numerical value according to the demand of client.
In obtaining MAP table after numerical value corresponding with the keyword, corresponding numerical value is assigned to the variable in code, completes logarithm
According to the definition of function.The present invention in this way separates data with program, in the demand shift of user, need to only change generation
The specific value of variable, can be achieved with different functions, has reached and saved exploitative purpose in code.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium, the computer readable storage medium
On be stored with the numerical value of customized data and obtain program, the numerical value of the customized data obtains real when program is executed by processor
Now following operation:
Lookup MAP table between numerical value needed for establishing keyword and customized data in default file, wherein each key
Word and each numerical value correspond;
The operational order for receiving user obtains the first first code and the first agreement according to the operational order, from default file
Middle acquisition first first code and corresponding second first code of first agreement and second protocol;
According to second first code and the second protocol, obtain corresponding with second first code and the second protocol
Keyword;
According to second first code and the corresponding keyword of the second protocol, the MAP table is searched, the MAP is obtained
Numerical value corresponding with the keyword in table.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
According to the operational order, the corresponding code value of the operational order is obtained;
The code value is parsed, the first first code and the first agreement are obtained.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
The corresponding resolution file of default file is obtained, and the default file is parsed by resolution file;
First first code and corresponding second first code of first agreement are obtained in default file after analytically
And second protocol.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
Multiple first codes and multiple agreements are obtained in default file after analytically;
First first code and the first agreement are matched with the multiple first code and multiple agreements, obtained and described first
Code the second first code corresponding with first agreement and second protocol.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
Interrupt number corresponding with first agreement is obtained in default file after analytically;
The driving function with the interrupt number corresponding function is obtained according to the interrupt number;
According to the driving function, the customized data are transmitted.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
Program statement is obtained in default file after analytically;
According to preset rules reading program sentence, to obtain the keyword in described program sentence;
Preset rules include: the comment statement skipped in program statement, and remove the second protocol and the second first code pair
Other keywords other than the keyword answered.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
The code including variable is obtained according to the operational order;
The numerical value is assigned to the variable in the code, complete paired data it is customized.
Further, the numerical value of the customized data, which obtains, also realizes following operation when program is executed by processor:
Receive the customized data modification instruction of user;
According to numerical value needed for keyword in MAP table described in the customized data modification instruction modification and customized data
Corresponding relationship.
The specific embodiment of computer readable storage medium of the present invention and the value acquisition method of above-mentioned customized data are each
Embodiment is essentially identical, and therefore not to repeat here.
It should be noted that, in this document, the terms "include", "comprise" or its any other variant are intended to non-row
His property includes, so that the process, method, article or the system that include a series of elements not only include those elements, and
And further include other elements that are not explicitly listed, or further include for this process, method, article or system institute it is intrinsic
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including being somebody's turn to do
There is also other identical elements in the process, method of element, article or system.
The serial number of the above embodiments of the invention is only for description, does not represent the advantages or disadvantages of the embodiments.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can be realized by means of software and necessary general hardware platform, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on this understanding, technical solution of the present invention substantially in other words does the prior art
The part contributed out can be embodied in the form of software products, which is stored in one as described above
In storage medium (such as ROM/RAM, magnetic disk, CD), including some instructions are used so that terminal device (it can be mobile phone,
Computer, server, air conditioner or network equipment etc.) execute method described in each embodiment of the present invention.
The above is only a preferred embodiment of the present invention, is not intended to limit the scope of the invention, all to utilize this hair
Equivalent structure or equivalent flow shift made by bright specification and accompanying drawing content is applied directly or indirectly in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of value acquisition method of customized data, which comprises the following steps:
Lookup MAP table between numerical value needed for establishing keyword and customized data in default file, wherein each keyword with
Each numerical value corresponds;
The operational order for receiving user obtains the first first code and the first agreement according to the operational order, obtains from default file
Take first first code and corresponding second first code of first agreement and second protocol;
According to second first code and the second protocol, key corresponding with second first code and the second protocol is obtained
Word;
According to second first code and the corresponding keyword of the second protocol, the MAP table is searched, is obtained in the MAP table
Numerical value corresponding with the keyword.
2. the value acquisition method of customized data as described in claim 1, which is characterized in that described to be referred to according to the operation
It enables and obtains the first first code and the step of the first agreement includes:
According to the operational order, the corresponding code value of the operational order is obtained;
The code value is parsed, the first first code and the first agreement are obtained.
3. the value acquisition method of customized data as described in claim 1, which is characterized in that described to be obtained from default file
Before the step of taking first first code and corresponding second first code of first agreement and second protocol, further includes:
The corresponding resolution file of default file is obtained, and the default file is parsed by resolution file;
It is described that first first code and corresponding second first code of first agreement and the second association are obtained from default file
The step of view includes:
First first code and corresponding second first code of first agreement and are obtained in default file after analytically
Two agreements.
4. the value acquisition method of customized data as claimed in claim 3, which is characterized in that described to be obtained from default file
The step of taking first first code and corresponding second first code of first agreement and second protocol include:
Multiple first codes and multiple agreements are obtained in default file after analytically;
First first code and the first agreement are matched with the multiple first code and multiple agreements, obtain with first first code and
Corresponding second first code of first agreement and second protocol.
5. the value acquisition method of customized data as claimed in claim 3, which is characterized in that described to be obtained from default file
After the step of taking first first code and corresponding second first code of first agreement and second protocol further include:
Interrupt number corresponding with first agreement is obtained in default file after analytically;
The driving function with the interrupt number corresponding function is obtained according to the interrupt number;
After described the step of obtaining numerical value corresponding with the keyword in MAP table, further includes:
According to the driving function, the customized data are transmitted.
6. the value acquisition method of customized data as claimed in claim 3, which is characterized in that described according to described second
Code and the second protocol, obtain keyword corresponding with second first code and the second protocol the step of include:
Program statement is obtained in default file after analytically;
According to preset rules reading program sentence, to obtain the keyword in described program sentence;
Preset rules include: the comment statement skipped in program statement, and except the second protocol and the second first code are corresponding
Other keywords other than keyword.
7. the value acquisition method of customized data as claimed in any one of claims 1 to 6, which is characterized in that executing basis
While the step of operational order the first first code of acquisition and the first agreement, following steps are executed:
The code including variable is obtained according to the operational order;
It is described according to second first code and the corresponding keyword of the second protocol, search the MAP table, obtain the MAP
In table the step of numerical value corresponding with the keyword after, further includes:
The numerical value is assigned to the variable in the code, complete paired data it is customized.
8. the value acquisition method of customized data as claimed in any one of claims 1 to 6, which is characterized in that in all steps
Later further include:
Receive the customized data modification instruction of user;
It is corresponding with numerical value needed for customized data according to keyword in MAP table described in the customized data modification instruction modification
Relationship.
9. a kind of numerical value acquisition device of customized data, which is characterized in that the numerical value acquisition device packet of the customized data
It includes: memory, processor and the numerical value for being stored in the customized data that can be run on the memory and on the processor
Program is obtained, the numerical value of the customized data, which obtains, to be realized when program is executed by the processor as appointed in claim 1 to 8
The step of value acquisition method of customized data described in meaning one.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium customized
The numerical value of data obtains program, and the numerical value of the customized data is obtained when program processing is executed by processor and realized as right is wanted
Described in asking any one of 1 to 8 the step of the value acquisition method of customized data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811042876.7A CN109298862B (en) | 2018-09-06 | 2018-09-06 | Customized data value acquisition method and device and storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811042876.7A CN109298862B (en) | 2018-09-06 | 2018-09-06 | Customized data value acquisition method and device and storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109298862A true CN109298862A (en) | 2019-02-01 |
CN109298862B CN109298862B (en) | 2021-12-21 |
Family
ID=65166408
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811042876.7A Active CN109298862B (en) | 2018-09-06 | 2018-09-06 | Customized data value acquisition method and device and storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109298862B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346712A (en) * | 2020-10-22 | 2021-02-09 | 深圳市慧为智能科技股份有限公司 | System customization method, device and computer readable storage medium |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104616470A (en) * | 2015-01-30 | 2015-05-13 | 王亚斌 | Method and device for remotely controlling terminal |
CN104702585A (en) * | 2014-02-28 | 2015-06-10 | 杭州海康威视***技术有限公司 | Protocol conversion method and protocol conversion gateway equipment |
CN105118254A (en) * | 2015-07-14 | 2015-12-02 | 芜湖美的厨卫电器制造有限公司 | Communication method used for remote controller to control household electrical appliance, and household electrical appliance system |
CN106357706A (en) * | 2015-07-13 | 2017-01-25 | 青岛海尔滚筒洗衣机有限公司 | Electrical equipment control method, electrical equipment control device and electrical equipment thereof |
CN106713343A (en) * | 2017-01-09 | 2017-05-24 | 青岛金思特电子有限公司 | Method for realizing intelligent analysis of communication protocol based on cloud computation |
CN107037294A (en) * | 2017-05-25 | 2017-08-11 | 绵阳美菱软件技术有限公司 | The detection method and detecting system of a kind of host computer, frequency conversion integrated board |
CN107450924A (en) * | 2017-07-31 | 2017-12-08 | 绵阳美菱软件技术有限公司 | One kind driving monitoring method, device and system |
-
2018
- 2018-09-06 CN CN201811042876.7A patent/CN109298862B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104702585A (en) * | 2014-02-28 | 2015-06-10 | 杭州海康威视***技术有限公司 | Protocol conversion method and protocol conversion gateway equipment |
CN104616470A (en) * | 2015-01-30 | 2015-05-13 | 王亚斌 | Method and device for remotely controlling terminal |
CN106357706A (en) * | 2015-07-13 | 2017-01-25 | 青岛海尔滚筒洗衣机有限公司 | Electrical equipment control method, electrical equipment control device and electrical equipment thereof |
CN105118254A (en) * | 2015-07-14 | 2015-12-02 | 芜湖美的厨卫电器制造有限公司 | Communication method used for remote controller to control household electrical appliance, and household electrical appliance system |
CN106713343A (en) * | 2017-01-09 | 2017-05-24 | 青岛金思特电子有限公司 | Method for realizing intelligent analysis of communication protocol based on cloud computation |
CN107037294A (en) * | 2017-05-25 | 2017-08-11 | 绵阳美菱软件技术有限公司 | The detection method and detecting system of a kind of host computer, frequency conversion integrated board |
CN107450924A (en) * | 2017-07-31 | 2017-12-08 | 绵阳美菱软件技术有限公司 | One kind driving monitoring method, device and system |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112346712A (en) * | 2020-10-22 | 2021-02-09 | 深圳市慧为智能科技股份有限公司 | System customization method, device and computer readable storage medium |
CN112346712B (en) * | 2020-10-22 | 2023-07-18 | 深圳市慧为智能科技股份有限公司 | System customization method, device and computer readable storage medium |
Also Published As
Publication number | Publication date |
---|---|
CN109298862B (en) | 2021-12-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111404883B (en) | Method and device for analyzing Internet of things equipment universal protocol | |
RU2755921C1 (en) | Method, apparatus, device and system for indicating time slot format and data media | |
CN107808672A (en) | For the server and method being controlled to external equipment | |
CN103888833B (en) | A kind of smart television accesses the method and system of TV programme and application program | |
CN108322497A (en) | cross-terminal data transmission method, device, client, server and system | |
CN111586244B (en) | Voice customer service method and system | |
WO2021196596A1 (en) | Method and apparatus for controlling non-intelligent device, and electronic device | |
TWI798652B (en) | A method and system for automatically generating a data collection module | |
CN105630495A (en) | Chip programming method and system | |
CN104852984A (en) | Method and system for transmitting data between smart terminals based on multi-screen interaction | |
CN103533435A (en) | Set-top box with two systems and double-system communication method | |
CN106130824B (en) | Integration of three networks broadband access priority polling control method and system | |
CN115424624B (en) | Man-machine interaction service processing method and device and related equipment | |
JP2022529722A (en) | Smart capacity for workload routing | |
KR20010070863A (en) | A computr network system and method for supplying a fitness education contents using portable information terminal | |
CN104753804B (en) | A kind of data stream transmitting control method, apparatus and system | |
JPH1021165A (en) | Communication method and its device and communication system | |
CN103049244B (en) | Method and device for transmitting operating instructions | |
CN113474768A (en) | Intent driven contact center | |
CN106569984B (en) | Method, device and system for automatically generating and transmitting color word stock | |
CN109298862A (en) | Value acquisition method, device and the storage medium of customized data | |
WO2023082926A1 (en) | Configuration method and apparatus, and device and storage medium | |
US11798545B2 (en) | Speech interaction method and apparatus, device and storage medium | |
CN106152386B (en) | A kind of processing method and processing device of AIR COND SIG Air Conditioner Singnal | |
CN104867364B (en) | A kind of method and system based on LAN interactive teaching |
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 |