CN107870835A - Hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal - Google Patents

Hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal Download PDF

Info

Publication number
CN107870835A
CN107870835A CN201711016152.0A CN201711016152A CN107870835A CN 107870835 A CN107870835 A CN 107870835A CN 201711016152 A CN201711016152 A CN 201711016152A CN 107870835 A CN107870835 A CN 107870835A
Authority
CN
China
Prior art keywords
hardware
parameter value
information
intelligent terminal
hardware information
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
Application number
CN201711016152.0A
Other languages
Chinese (zh)
Other versions
CN107870835B (en
Inventor
谢强德
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Atte Intelligent Technology Co Ltd
Original Assignee
Shenzhen Atte Intelligent Technology Co Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by Shenzhen Atte Intelligent Technology Co Ltd filed Critical Shenzhen Atte Intelligent Technology Co Ltd
Priority to CN201711016152.0A priority Critical patent/CN107870835B/en
Publication of CN107870835A publication Critical patent/CN107870835A/en
Application granted granted Critical
Publication of CN107870835B publication Critical patent/CN107870835B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2247Verification or detection of system hardware configuration

Abstract

The invention discloses a kind of hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal, for debugging the hardware parameter of intelligent terminal, this method includes:Receive the configuration text that control terminal is sent;The content of configuration text is parsed, to obtain each hardware information of intelligent terminal and corresponding parameter value;Parameters value is respectively written into hardware corresponding to corresponding hardware information, and drives corresponding parameter value in each hardware to come into force.The embodiment of the present invention is by the way that intelligent terminal for reception to be controlled to the configuration text of terminal transmission and parses its content, obtain each hardware information for needing modification debugging and corresponding parameter value, and each corresponding parameter value is written in corresponding hardware, parameters value in hardware is come into force, solves the problems, such as to be required for modification source code, compiling and efficiency caused by burning low in existing hardware debugging every time.

Description

Hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal
Technical field
The present invention relates to hardware debugging technique field, more particularly to a kind of hardware adjustment method, system, readable storage medium Matter and intelligent terminal.
Background technology
With the fast development of social economy, the living standard of people increasingly improves, and the purchasing power of people also has very big Improve, therefore production firm increasingly considers consumer demand in the design and production process of electronic equipment, for example run Processing is more powerful quick, and display effect is apparent gorgeous, the more perfect shock of tonequality, so that user is more on the spot in person.But very Under good hardware platform, it is also desirable to which the instruction of production firm, the similar hardware product that its different production firm produces, it shows The perception of the photo that screen and camera are shot etc. also differs, and these are all because the difference for hardware of production firm is debugged Result.
In the debugging of existing hardware parameter, as the debugging main method of camera be production firm on model with special After instrument debugs effect, the parameter of correlation is exported, then by the source code of these parameter integrations to camera software It is compiled, is compiled out writable firmware, and burning firmware into terminal, boots up in the terminal again, operation Parameter is written to by I2C buses by terminal master chip by camera during camera application program, realizes the hardware of camera The debugging of parameter.
However, when the result that production firm debugs to hardware is dissatisfied need to readjust hardware parameter when, this When need change source code inside parameter, then recompilate out firmware again, checking turned back on after burning firmware.But This method needs recompility and burning firmware every time and turned back on, and its is extremely inefficient time consuming.
The content of the invention
Based on this, the embodiment of the present invention proposes that a kind of hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal are set It is standby, solve the problems, such as to be required for modification source code, compiling and efficiency caused by burning low in existing hardware debugging every time.
The embodiment of the present invention provides a kind of hardware adjustment method, and concrete technical scheme is as follows:
A kind of hardware adjustment method, for debugging the hardware parameter of intelligent terminal, methods described includes:
Receive the configuration text that control terminal is sent;
The content of the configuration text is parsed, to obtain each hardware information of the intelligent terminal and corresponding parameter Value;
Each parameter value is respectively written into hardware corresponding to the corresponding hardware information, and drives each institute The corresponding parameter value in hardware is stated to come into force.
The embodiment of the present invention is obtained by the way that intelligent terminal for reception to be controlled to the configuration text of terminal transmission and parses its content It is each to need to change the hardware information of debugging and corresponding parameter value, and each corresponding parameter value is written to corresponding hardware In so that the parameters value in hardware can come into force, and when commissioning staff is dissatisfied to the debugging result, only need to continue By controlling terminal to intelligent terminal send configuration text, to cause the parameter of hardware to be modified and come into force.The present invention passes through Allow to debug the hardware of intelligent terminal in real time using the hardware adjustment method, without all needing to repair during debugging every time The step of changing the parameter of source code, and can just checking be booted up after compiling and burning, it can effectively raise hard The efficiency of part debugging, solve and be required for changing source code, compiling and efficiency caused by burning every time in existing hardware debugging The problem of low.
Further, the content of the parsing configuration text, to obtain each hardware information of the intelligent terminal Include with the step of corresponding parameter value:
Detection judges whether the form of content and cannonical format are identical in the configuration text;
If so, then parse the content of the configuration text, to obtain each hardware information of the intelligent terminal and correspondingly Parameter value.
Wherein, the judgement matching of the form to content in configuration text and cannonical format compares, when function in configuration text Form and the form of specification when differing, then can not extract its hardware information and corresponding parameter information, then this is matched somebody with somebody Put content of text be defined as it is invalid.By matching the problem of comparison can prevent from wrongly writing hardware parameter.
Further, it is described that each parameter value is respectively written into hardware corresponding to the corresponding hardware information The step of include:
Each hardware information is compared with the predetermined hardware information stored in database respectively, it is each to judge In the database whether the hardware information;
If so, then each parameter value is respectively written into hardware corresponding to the corresponding hardware information.
Wherein, by the way that hardware information is compared with the predetermined hardware information stored in database, parsing is determined Whether hardware information is the predetermined hardware information stored in database, and following hardware ginseng can be smoothly carried out when it is determined that being Several write steps.When hardware information differs with the predetermined hardware information stored in database respectively, then can not find pair The hardware answered, and can not be written in its corresponding hardware.
Further, it is described that each parameter value is respectively written into hardware corresponding to the corresponding hardware information The step of include:
By parameter value corresponding to each hardware, targets threshold scope corresponding with each hardware is compared respectively It is right;
When each parameter value is in the range of corresponding targets threshold, by each parameter value be respectively written into In hardware corresponding to the corresponding hardware information.
Wherein, when the parameter value of extraction exceedes targets threshold scope, it can not correctly write the hardware and join accordingly Numerical value.It can determine whether the parameter value of its extraction is correct, can avoid by being compared with corresponding targets threshold scope Due to mistake parameter read-in to hardware strap hardware or system failure the problem of.
Further, it is described that each parameter value is respectively written into hardware corresponding to the corresponding hardware information In, and drive the step of corresponding parameter value comes into force in each hardware to include:
The interface provided by the bottom hardware driver of calling system writes each parameter value to the drive In dynamic program, and the corresponding parameter value in each hardware is driven to come into force by the driver.
Wherein, the hardware information of acquisition and parameter value can be written to bottom by the interface provided by call driver In layer hardware, hardware is driven so that bottom hardware parameter comes into force by driver, without as source need to be changed in existing The parameter of code, and checking can be just booted up after compiling and burning, it can effectively improve the efficiency of hardware debugging.
An alternative embodiment of the invention proposes a kind of hardware debugging system, for debugging the hardware parameter of intelligent terminal, The hardware debugging system includes:
Receiving module, the configuration text sent for receiving control terminal;
Parsing module, the content of the configuration text received for parsing the receiving module, to obtain the intelligence The each hardware information and corresponding parameter value of energy terminal;
Writing module, it is respectively written into for the parsing module to be parsed into each parameter value determined to corresponding institute State in hardware corresponding to hardware information, and drive the corresponding parameter value in each hardware to come into force.
Wherein, the embodiment of the present invention is by the way that receiving module to be received to the configuration text of control terminal transmission and by parsing mould Block parses its content, obtains each hardware information for needing modification debugging and corresponding parameter value, and will be each by writing module Parameter value corresponding to individual is written in corresponding hardware so that the parameters value in hardware can come into force so that debugging When the parameter of source code need to be changed not necessarily like prior art, and the step of checking can be just booted up after compiling and burning Suddenly, the efficiency of hardware debugging can effectively be improved.
Further, the parsing module includes:
First judging unit, the form of content in the configuration text that the receiving module receives is judged for detecting It is whether identical with cannonical format;
Resolution unit, for when first judging unit judges identical, parsing the content of the configuration text, with Each hardware information and corresponding parameter value to the intelligent terminal.
Wherein, compared by matching of first judge module to the form of content in configuration text and cannonical format, when with When putting that the form of function and the form of specification differ in text, then resolution unit can not extract its hardware information and correspondingly Parameter information, then the configuration text content be defined as invalid.
Further, said write module includes:
Second judging unit, for each hardware information to be entered with the predetermined hardware information stored in database respectively In the database whether row compares, to judge each hardware information;
First writing unit, for determining each hardware information in the data when second judging unit When in storehouse, each parameter value is respectively written into hardware corresponding to the corresponding hardware information;
Comparing unit, for by the target threshold corresponding with each hardware respectively of parameter value corresponding to each hardware Value scope is compared;
Second writing unit, for determining each parameter value in corresponding targets threshold model when the comparing unit When enclosing interior, each parameter value is respectively written into hardware corresponding to the corresponding hardware information.
Wherein, hardware information is compared with the predetermined hardware information stored in database by the second judging unit, Whether the hardware information for determining parsing is the predetermined hardware information stored in database, and the second writing unit can when it is determined that being Smoothly to carry out the write step of hardware parameter.When the second judging unit judges each hardware information with being stored in database Predetermined hardware information when differing, then can not find corresponding to hardware and can not be written in its corresponding hardware.
It can determine whether parameter value corresponding to its extraction hardware information is correct by the comparison of comparing module, when comparison mould When the parameter value that block compares out extraction exceedes targets threshold scope, then the second writing unit will not write the hardware and join accordingly Numerical value.The problem of hardware or system failure due to wrong parameter read-in to hardware strap can be avoided.
Further, an alternative embodiment of the invention proposes a kind of readable storage medium storing program for executing, is stored thereon with application program, The step of middle any one methods described as described above is realized when the program is executed by processor.
Further, an alternative embodiment of the invention propose a kind of intelligent terminal, including memory, processor with And storage is on a memory and the application program that can run on a processor, during the computing device described program, realization is as above The step of stating middle any one methods described.
Brief description of the drawings
Fig. 1 is the flow chart for the hardware adjustment method that first embodiment of the invention proposes.
Fig. 2 is the flow chart for the hardware adjustment method that second embodiment of the invention proposes.
Fig. 3 is the structured flowchart for the hardware debugging system that one embodiment of the invention proposes.
Fig. 4 is the structured flowchart for the hardware debugging system that another embodiment of the present invention proposes.
Embodiment
In order to facilitate the understanding of the purposes, features and advantages of the present invention, below in conjunction with the accompanying drawings to the present invention Embodiment be described in detail.Many details are elaborated in the following description in order to fully understand this hair It is bright.But the invention can be embodied in many other ways as described herein, those skilled in the art can be not Similar improvement is done in the case of running counter to intension of the present invention, therefore the present invention is not limited to the specific embodiments disclosed below.
, wherein it is desired to be appreciated that, the intelligent terminal of production firm's production is in addition to the demand to hardware, it is also necessary to which it is The good instruction adaptation of system software.Intelligent terminal is in identical hardware environment, due under the debugging of different production firms, Its hardware parameter is also not quite similar, and using effect also likely to be present otherness.Wherein the hardware of intelligent terminal includes camera, touched Screen, liquid crystal panel etc. are touched, the hardware parameter of its camera is a variety of including pixel, resolution ratio, white balance etc., and it is provided to production Manufacturer is voluntarily set, therefore a identical camera quality that it is imaged in the case where the religion of different production firms is adjusted, sight Sense also differs.Its liquid crystal panel is also the same as above-mentioned, the color contrast of its display, color in the case where the religion of different production firms is adjusted Temperature, screen intensity are also not quite similar.Therefore production firm can win the consumer of corresponding demand by a series of differentiation. It can determine that its intelligent terminal plays the corresponding hardware parameter of good performance by a variety of debugging simultaneously, and Applied on its intelligent terminal.
Fig. 1 is refer to, the flow chart of the hardware adjustment method proposed for the first embodiment of the present invention, wherein, this method For debugging the hardware parameter of intelligent terminal, this method includes:
Step S101, receive the configuration text that control terminal is sent;
Wherein, this method be applied to intelligent terminal in, the intelligent terminal be smart mobile phone, Intelligent flat, intelligent television with And any one in intelligent wearable device etc..The intelligent terminal establishes connection, the control firstly the need of between control terminal Terminal processed can be PC, wherein in the present embodiment, intelligent terminal is connected with control terminal by USB data line, and Now control and adb (Android Debug Bridge) debugging acid is installed in terminal, control terminal passes through adb debugging acids The file system of intelligent terminal can be accessed, and by controlling the shell of adb debugging acids (order line) will to control terminal In file be written in the file of intelligent terminal.
Further, when commissioning staff needs to modify to hardware parameter, its configuration established in control terminal Every hardware information for needing to set and corresponding parameter information are write in text, now by adb debugging acids The configuration text is written in the destination folder of intelligent terminal by shell writing commands, wherein it is desired to, it is noted that should Destination folder is the CONFIG.SYS folder of android operating systems in intelligent terminal, and user operates with intelligent terminal When, this document folder is opened and accessed without authority, it is therefore desirable to by the adb debugging acids in control terminal that the configuration is literary Originally it is written in the destination folder.
Further, the configuration text that now intelligent terminal for reception is sent to control terminal.
Step S102, the content of the configuration text is parsed, to obtain each hardware information of the intelligent terminal and right The parameter value answered;
, wherein it is desired to, it is noted that being provided with a debugging routine in the intelligent terminal, the debugging routine, which possesses, accesses the mesh The authority of file is marked, new file is received in the destination folder when the debugging routine is got, and configuration text text When the name of part is identical with pre-set text file designation, the debugging routine possesses the authority for opening the configuration text, now opens The configuration text, and start to read the content of its configuration text, row information is entered by the keyword in the function of the configuration text Extraction, wherein the information extracted includes needing to change the hardware information of the hardware of parameter, and parameter corresponding to the hardware information The information of value, each hardware information and corresponding parameter value are obtained by the extraction to configuration text information.Wherein hardware bag Camera, touch-screen, liquid crystal panel etc. are included, and each hardware information includes each letter that can adjust its parameter under its hardware Breath.
Step S103, each parameter value is respectively written into hardware corresponding to the corresponding hardware information, and The corresponding parameter value in each hardware is driven to come into force;
Wherein, the debugging routine its parameters value is written to according to the parameter information extracted corresponding in hardware, And drive corresponding parameter value in each hardware to come into force, wherein, the debugging routine can determine according to the hardware information got Go out its hardware that need to be write.It writes to parameter value corresponding to each hardware information, such as to pixel, resolution in camera The many kinds of parameters such as rate, white balance are write, and many kinds of parameters such as contrast, colour temperature, screen intensity in liquid crystal panel is write.
For example, when commissioning staff needs to carry out parameter testing to its liquid crystal panel so that it shows various functions, as protected Eye pattern, reading model etc., there is the function of the entitled liquid crystal panel of a function in the content of its configuration text, include in function multiple Parameter name and corresponding parameter value, parameter name include as lightness (Luminance), contrast (Contrast Ratio), The uniformity (Uniformity), white chromaticity (White Chromaticity), backlight (Back light), reaction time (Response Time) etc., wherein by adjusting multiple parameters its display effect difference, such as the debugging in eyeshield pattern In can pass through the parameter for adjusting and reducing blue peak in liquid crystal panel backlight so that it can remove the aobvious of most of blue light Show, so that being effectively protected eyes;It can be joined in the debugging of reading model by adjusting lightness, contrast etc. Number so that the display screen of intelligent terminal can be close to the display effect of electronic ink screen so that its effect closer to papery books Fruit, it can teach the use for recalling different effects so that production firm meets different consumers for different parameter regulations Demand.The plurality of parameter is now extracted by the setting of the parameters to liquid crystal panel, debugging routine, and is written to corresponding In liquid crystal panel hardware so that its display effect changes.
Further, when commissioning staff is dissatisfied to the parameter of the hardware, it can be continuous to this in control terminal relay The parameter value of each hardware is modified in configuration text, and is written to intelligent terminal by adb debugging acids after the completion of modification In, now the current configuration text file will cover former configuration text file, and the debugging routine on intelligent terminal gets this and matched somebody with somebody When putting the temporal information of text and changing, re-read and parse its each amended new parameter, and be written to each In corresponding hardware, commissioning staff can debug it again and change the intelligent terminal after hardware parameter comes into force, above-mentioned according to this, work as tune After examination personnel debug out satisfied effect, all parameters determined can be recorded, and are applied in the intelligent terminal series, Complete to debug the hardware parameter of intelligent terminal series.
The embodiment of the present invention is obtained by the way that intelligent terminal for reception to be controlled to the configuration text of terminal transmission and parses its content It is each to need to change the hardware information of debugging and corresponding parameter value, and each corresponding parameter value is written to corresponding hardware In so that the parameters value in hardware can come into force, and when commissioning staff is dissatisfied to the debugging result, only need to continue By controlling terminal, to intelligent terminal send configuration text, to cause the parameter of hardware to be modified and come into force, the present invention passes through Allow to debug the hardware of intelligent terminal in real time using the hardware adjustment method, without all needing to repair during debugging every time The step of changing the parameter of source code, and can just checking be booted up after compiling and burning, it can effectively raise hard The efficiency of part debugging, solve and be required for changing source code, compiling and efficiency caused by burning every time in existing hardware debugging The problem of low.
Fig. 2 is refer to, the flow chart of the hardware adjustment method provided in the second embodiment of the present invention, wherein, this method For debugging the hardware parameter of intelligent terminal, this method includes:
Step S111, receive the configuration text that control terminal is sent.
Step S112, detection judge whether the form of content and cannonical format are identical in the configuration text;
Wherein, when detection judges that the form of content is identical with cannonical format in the configuration text, step is performed S113。
Wherein, the content of debugging routine parsing configuration text is by the content of the configuration text and the specification lattice prestored Formula is compared,, can not root if differing to determine whether the form of function and the form of specification are identical in the configuration text Its hardware information and corresponding parameter information are extracted according to its preset keyword.Now debugging routine sends the first mistake letter Breath, presentation of information is carried out by display screen, can not to prompt the content format of the configuration text of its write-in of commissioning staff wrong Parse its hardware information and corresponding parameter value.
Step S113, the content of the configuration text is parsed, to obtain each hardware information of the intelligent terminal and right The parameter value answered.
Wherein, under the Function Format of specification, it is each hard that its can be extracted successively by the comparison with preset keyword Part name and corresponding parameter value.
Step S114, each hardware information is compared with the predetermined hardware information stored in database respectively, To judge each hardware information whether in the database;
Wherein, when judging each hardware information in the database, step S115 is performed.
Wherein, the hardware information and parameter value that debugging routine extracts are what is extracted by the form with specification, but It not can determine that the hardware whether there is in the intelligent terminal, it should be pointed out that the debugging routine passes through call driver The interface provided for upper application software can determine the information for all hardware that the smart machine includes, and the intelligence is set The information of standby middle all hardware is stored into its database.Now debugging routine will need each hardware information for setting respectively with The predetermined hardware information stored in its database is compared, to judge its each hardware information whether all in database, when When title is wrong or its hardware is not present in this intelligent terminal of hardware in the configuration text of commissioning staff's write-in, it is not It can be present in the database of debugging routine storage, therefore its debugging routine will be unable to be written in its corresponding hardware, now Debugging routine sends the second error message, and presentation of information is carried out by display screen, to prompt the configuration text of its write-in of commissioning staff Hardware information in this content is wrong or is not present, and can not be written in its corresponding hardware.
Step S115, by the targets threshold model corresponding with each hardware respectively of parameter value corresponding to each hardware Enclose and be compared;
, wherein it is desired to, it is noted that the information of debugging software acquisition hardware simultaneously, also gets the hardware parameter value Adjustable extent, and the targets threshold scope is stored into its database.The debugging software extract each hardware information and After corresponding parameter information, because the parameter value of each hardware has a threshold range, for example, the brightness of the intelligent terminal Highest only has 400 nits (nits), and the parameter value of its correspondence hardware extracted by configuration text is more than 400, is 500 Or other when, i.e., its parameter value exceed the intelligent terminal hardware parameter targets threshold scope when, its intelligent terminal can not be real Now the parameter value comes into force, and now debugging software sends the 3rd error message, presentation of information is carried out by display screen, to prompt to adjust Parameter value in the content of the configuration text of its write-in of examination personnel exceedes targets threshold scope, and can not be written to hard corresponding to it In part.
Step S116, when each parameter value is in the range of corresponding targets threshold, by each parameter value It is respectively written into hardware corresponding to the corresponding hardware information, and drives the corresponding parameter value in each hardware Come into force;
Wherein, when debugging software extracts each hardware information and corresponding parameter information, and determine that parameter value is equal When in the range of corresponding targets threshold, now parameters value is write into corresponding hardware, so that corresponding in hardware Parameters value come into force.
Wherein parameters value, which is respectively written into the step in corresponding hardware, includes:
The interface provided by the bottom hardware driver of calling system writes each parameter value to the drive In dynamic program, and the corresponding parameter value in each hardware is driven to come into force by the driver.
, wherein it is desired to, it is noted that android operating systems use Linux bottom kernels, and Sysfs is Linux 2.6 A kind of Virtual File System provided.Sysfs is an initialization files system based on internal memory on the basis of ramfs, It provides one and can export kernel data structure, interior core attributes and establish a kind of side of link in kernel and user's space Method.In device model, Sysfs file system is used for representing the structure of equipment, by being reacted to for the hierarchical structure image of equipment In user's space, the Sysfs file system not only can equipment (devices) and the information of driver (drivers) from Kernel is output to user's space, may also be used for making Devices and Drivers setting modification, user's space can change Sysfs In file attribute change the property value of device hardware.I.e. its bottom layer driving of Android system is upper level applications (debugging Software) control interface is provided, the parameter value that demand changes can be written to by the control interface in bottom hardware.
It is embodied as, Linux Sysfs file system provides the user interface operated to the attribute of equipment, And a virtual file can be created and operated for user, for example row write or read operation are entered to device drives file, it is possible to modification or Person reads the corresponding information of driving.Actually DRIVER_ATTR property files in driving file are write or read operation When can call corresponding function i.e. store functions or show functions, the property file of user's write driver will call driving Store functions, and user's reading attributes file will call the show functions of driving.Therefore by calling store functions each The parameter of individual hardware, which carries out write-in, can change the parameter of hardware, you can write parameters into corresponding hardware.
Wherein DRIVER_ATTR is one grand, and its prototype is:
“#define DRIVER_ATTR(_name,_mode,_show,_store)\
Struct driver_attribute driver_attr_##_name=__ATTR (_ name, _ mode, _ show,_store)”
Wherein _ name represents hardware names, and _ mode represents access rights, and _ show is represented to read display, and _ store is represented Write-in storage.
For example, when we need to change the parameters of camera, include webcam driver in sysfs file system File, catalogue where this document is "/sys/bus/i2c/drivers/camera/camera ".Wherein the driving file includes Multiple functions, wherein defining a structure hereof, i.e.,:
static DRIVER_ATTR(camera,0777,get_camera,set_camera);
It is expressed as entitled camera (camera), access rights 0777, represents that user possesses reading and writing, performed Authority, function reading are get_camera functions, and write-in function is set_camera functions, and now user needs to change camera Related hardware parameter when, upper level applications (debugging routine) pass through to file/sys/bus/i2c/drivers/ Set_camera functions are performed corresponding to camera/camera write parameters information can, by calling set_camera letters Number can be by the parameter read-in of each hardware into hardware, so as to realize the parameters of modification camera hardware.
Fig. 3 is refer to, for the structured flowchart of the hardware debugging system provided in one embodiment of the invention, the system 100 For debugging the hardware parameter of intelligent terminal, the system 100 includes:
Receiving module 101, the configuration text sent for receiving control terminal.
Parsing module 102, the content of the configuration text received for parsing the receiving module 101, to obtain The each hardware information and corresponding parameter value of the intelligent terminal.
Writing module 103, each parameter value for the parsing module 102 to be parsed to determination are respectively written into right In hardware corresponding to the hardware information answered, and the corresponding parameter value in each hardware is driven to come into force.
Fig. 4 is refer to, for the structured flowchart of the hardware debugging system provided in another embodiment of the present invention, the system 110 hardware parameter for debugging intelligent terminal, the system 110 include:
Receiving module 111, the configuration text sent for receiving control terminal.
Parsing module 112, the content of the configuration text received for parsing the receiving module 111, to obtain The each hardware information and corresponding parameter value of the intelligent terminal.
Writing module 113, each parameter value for the parsing module 112 to be parsed to determination are respectively written into right In hardware corresponding to the hardware information answered, and the corresponding parameter value in each hardware is driven to come into force.
Wherein parsing module 112 includes:
First judging unit 1121, for detect judge it is interior in the configuration text that the receiving module 111 receives Whether the form of appearance is identical with cannonical format;
Resolution unit 1122, for when first judging unit 1121 judges identical, parsing the configuration text Content, to obtain each hardware information of the intelligent terminal and corresponding parameter value.
Wherein writing module 113 includes:
Second judging unit 1131, for each hardware information to be believed with the predetermined hardware stored in database respectively In the database whether breath is compared, to judge each hardware information;
First writing unit 1132, for existing when second judging unit 1131 determines each hardware information When in the database, each parameter value is respectively written into hardware corresponding to the corresponding hardware information;
Comparing unit 1133, for by the mesh corresponding with each hardware respectively of parameter value corresponding to each hardware Mark threshold range is compared;
Second writing unit 1134, for determining each parameter value in corresponding mesh when the comparing unit 1133 When marking in threshold range, each parameter value is respectively written into hardware corresponding to the corresponding hardware information.
The technical characteristic and technique effect for the hardware debugging system that the embodiment of the present invention proposes propose with the embodiment of the present invention Method it is identical, will not be described here.
The embodiment of the present invention additionally provides a kind of readable storage medium storing program for executing, is stored thereon with application program, and the program is processed The step of device realizes any one method in above-described embodiment 1,2 when performing.
The embodiment of the present invention additionally provides a kind of intelligent terminal, including memory, processor and is stored in storage Realized on device and the application program that can run on a processor, during the computing device described program in above-described embodiment 1,2 The step of any one method.
Expression or logic and/or step described otherwise above herein in flow charts, for example, being considered use In the order list for the executable instruction for realizing logic function, may be embodied in any computer-readable medium, for Instruction execution system, device or equipment (such as computer based system including the system of processor or other can be held from instruction The system of row system, device or equipment instruction fetch and execute instruction) use, or combine these instruction execution systems, device or set It is standby and use.For the purpose of this specification, " computer-readable medium " can any can be included, store, communicate, propagate or pass Defeated program is for instruction execution system, device or equipment or the dress used with reference to these instruction execution systems, device or equipment Put.
The more specifically example (non-exhaustive list) of computer-readable medium includes following:Connected up with one or more Electrical connection section (electronic installation), portable computer diskette box (magnetic device), random access memory (RAM), read-only storage (ROM), erasable edit read-only storage (EPROM or flash memory), fiber device, and portable optic disk is read-only deposits Reservoir (CDROM).In addition, computer-readable medium, which can even is that, to print the paper of described program thereon or other are suitable Medium, because can then enter edlin, interpretation or if necessary with it for example by carrying out optical scanner to paper or other media His suitable method is handled electronically to obtain described program, is then stored in computer storage.
It should be appreciated that each several part of the present invention can be realized with hardware, software, firmware or combinations thereof.Above-mentioned In embodiment, software that multiple steps or method can be performed in memory and by suitable instruction execution system with storage Or firmware is realized.If, and in another embodiment, can be with well known in the art for example, realized with hardware Any one of row technology or their combination are realized:With the logic gates for realizing logic function to data-signal Discrete logic, have suitable combinational logic gate circuit application specific integrated circuit, programmable gate array (PGA), scene Programmable gate array (FPGA) etc..
In the description of this specification, reference term " one embodiment ", " some embodiments ", " example ", " specifically show The description of example " or " some examples " etc. means specific features, structure, material or the spy for combining the embodiment or example description Point is contained at least one embodiment or example of the present invention.In this manual, to the schematic representation of above-mentioned term not Necessarily refer to identical embodiment or example.Moreover, specific features, structure, material or the feature of description can be any One or more embodiments or example in combine in an appropriate manner.
Embodiment described above only expresses the several embodiments of the present invention, and its description is more specific and detailed, but simultaneously Therefore the limitation to the scope of the claims of the present invention can not be interpreted as.It should be pointed out that for one of ordinary skill in the art For, without departing from the inventive concept of the premise, various modifications and improvements can be made, these belong to the guarantor of the present invention Protect scope.Therefore, the protection domain of patent of the present invention should be determined by the appended claims.

Claims (10)

  1. A kind of 1. hardware adjustment method, for debugging the hardware parameter of intelligent terminal, it is characterised in that methods described includes:
    Receive the configuration text that control terminal is sent;
    The content of the configuration text is parsed, to obtain each hardware information of the intelligent terminal and corresponding parameter value;
    Each parameter value is respectively written into hardware corresponding to the corresponding hardware information, and driven each described hard The corresponding parameter value comes into force in part.
  2. 2. hardware adjustment method according to claim 1, it is characterised in that the content of the parsing configuration text, To include the step of obtaining each hardware information of the intelligent terminal and corresponding parameter value:
    Detection judges whether the form of content and cannonical format are identical in the configuration text;
    If so, the content of the configuration text is then parsed, to obtain each hardware information of the intelligent terminal and corresponding ginseng Numerical value.
  3. 3. hardware adjustment method according to claim 1, it is characterised in that described to be respectively written into each parameter value Step into hardware corresponding to the corresponding hardware information includes:
    Each hardware information is compared with the predetermined hardware information stored in database respectively, it is each described to judge In the database whether hardware information;
    If so, then each parameter value is respectively written into hardware corresponding to the corresponding hardware information.
  4. 4. hardware adjustment method according to claim 1, it is characterised in that described to be respectively written into each parameter value Step into hardware corresponding to the corresponding hardware information includes:
    By parameter value corresponding to each hardware respectively with each hardware corresponding to targets threshold scope be compared;
    When each parameter value is in the range of corresponding targets threshold, each parameter value is respectively written into corresponding The hardware information corresponding in hardware.
  5. 5. hardware adjustment method according to claim 1, it is characterised in that described to be respectively written into each parameter value Into hardware corresponding to the corresponding hardware information, and drive the step that the corresponding parameter value comes into force in each hardware Suddenly include:
    The interface provided by the bottom hardware driver of calling system writes each parameter value to the driving journey In sequence, and the corresponding parameter value in each hardware is driven to come into force by the driver.
  6. 6. a kind of hardware debugging system, for debugging the hardware parameter of intelligent terminal, it is characterised in that the system includes:
    Receiving module, the configuration text sent for receiving control terminal;
    Parsing module, the content of the configuration text received for parsing the receiving module, to obtain the intelligence eventually Each hardware information and corresponding parameter value at end;
    Writing module, it is respectively written into for the parsing module to be parsed into each parameter value determined to corresponding described hard In hardware corresponding to part information, and the corresponding parameter value in each hardware is driven to come into force.
  7. 7. hardware debugging system according to claim 6, it is characterised in that the parsing module includes:
    First judging unit, judge the form of content and rule in the configuration text that the receiving module receives for detecting Whether model form is identical;
    Resolution unit, for when first judging unit judges identical, the content of the configuration text being parsed, to obtain State each hardware information of intelligent terminal and corresponding parameter value.
  8. 8. hardware debugging system according to claim 6, it is characterised in that said write module includes:
    Second judging unit, for each hardware information to be compared with the predetermined hardware information stored in database respectively It is right, to judge each hardware information whether in the database;
    First writing unit, for determining each hardware information in the database when second judging unit When, each parameter value is respectively written into hardware corresponding to the corresponding hardware information;
    Comparing unit, for by the targets threshold model corresponding with each hardware respectively of parameter value corresponding to each hardware Enclose and be compared;
    Second writing unit, for determining each parameter value in the range of corresponding targets threshold when the comparing unit When, each parameter value is respectively written into hardware corresponding to the corresponding hardware information.
  9. 9. a kind of readable storage medium storing program for executing, is stored thereon with application program, it is characterised in that the program is realized when being executed by processor The step of method as described in any one in claim 1-5.
  10. 10. a kind of intelligent terminal, including memory, processor and storage can be run on a memory and on a processor Application program, it is characterised in that during the computing device described program realize as described in any one in claim 1-5 Method the step of.
CN201711016152.0A 2017-10-25 2017-10-25 Hardware debugging method and system, readable storage medium and intelligent terminal device Active CN107870835B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711016152.0A CN107870835B (en) 2017-10-25 2017-10-25 Hardware debugging method and system, readable storage medium and intelligent terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711016152.0A CN107870835B (en) 2017-10-25 2017-10-25 Hardware debugging method and system, readable storage medium and intelligent terminal device

Publications (2)

Publication Number Publication Date
CN107870835A true CN107870835A (en) 2018-04-03
CN107870835B CN107870835B (en) 2021-06-25

Family

ID=61753404

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711016152.0A Active CN107870835B (en) 2017-10-25 2017-10-25 Hardware debugging method and system, readable storage medium and intelligent terminal device

Country Status (1)

Country Link
CN (1) CN107870835B (en)

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830048A (en) * 2018-06-14 2018-11-16 沈阳东软医疗系统有限公司 A kind of display control method, device and the equipment of the display screen terminal of CT machine
CN108928213A (en) * 2018-07-17 2018-12-04 深圳市汇川技术股份有限公司 Method for parameter configuration, control panel and the controlled device of control panel
CN109413499A (en) * 2018-10-24 2019-03-01 深圳市康冠技术有限公司 Configuration method, system and the equipment of Android TV-set fixer
CN109660727A (en) * 2018-12-29 2019-04-19 上海创功通讯技术有限公司 Scaling method and device, the call method and electronic equipment that shoot algorithm
CN111049912A (en) * 2019-12-17 2020-04-21 用友网络科技股份有限公司 Debugging method, test development device, and computer-readable storage medium
CN112306576A (en) * 2020-11-03 2021-02-02 深圳市桑达无线通讯技术有限公司 Method for modifying internal number of application program of android device
CN112882715A (en) * 2021-02-09 2021-06-01 广州思林杰科技股份有限公司 Measurement and control device definition method, computer and definable measurement and control device
CN114020335A (en) * 2021-09-07 2022-02-08 中科创达软件科技(深圳)有限公司 Hardware driving method, device and equipment
CN116088882A (en) * 2023-03-31 2023-05-09 深圳市微克科技有限公司 Function configuration method, system and medium based on intelligent wearable device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914315A (en) * 2012-12-31 2014-07-09 展讯通信(上海)有限公司 Configuration method of drivers
CN104991872A (en) * 2015-06-19 2015-10-21 上海卓易科技股份有限公司 Method and apparatus for implementing driving of intelligent device on peripheral device
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
US9585037B1 (en) * 2014-02-07 2017-02-28 Solutelia, LLC Evaluating the performance of a communication network using a mobile device application

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103914315A (en) * 2012-12-31 2014-07-09 展讯通信(上海)有限公司 Configuration method of drivers
US9585037B1 (en) * 2014-02-07 2017-02-28 Solutelia, LLC Evaluating the performance of a communication network using a mobile device application
CN105450463A (en) * 2014-08-26 2016-03-30 阿里巴巴集团控股有限公司 Hardware equipment debugging method, hardware equipment debugging device and hardware equipment debugging system
CN105630465A (en) * 2014-10-29 2016-06-01 Tcl商用信息科技(惠州)股份有限公司 Display screen parameter setting method applied to terminal and terminal
CN104991872A (en) * 2015-06-19 2015-10-21 上海卓易科技股份有限公司 Method and apparatus for implementing driving of intelligent device on peripheral device

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
CRAZYLEEN: "在sysfs中添加文件--添加设备非默认属性", 《HTTPS://BLOG.CSDN.NET/CRAZYLEEN/ARTICLE/DETAILS/7015008》 *
杨迈1949: "adb常用命令|修改build.porp文件", 《HTTPS://BLOG.CSDN.NET/Y22222LY/ARTICLE/DETAILS/50970252》 *

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108830048A (en) * 2018-06-14 2018-11-16 沈阳东软医疗系统有限公司 A kind of display control method, device and the equipment of the display screen terminal of CT machine
CN108928213A (en) * 2018-07-17 2018-12-04 深圳市汇川技术股份有限公司 Method for parameter configuration, control panel and the controlled device of control panel
CN109413499A (en) * 2018-10-24 2019-03-01 深圳市康冠技术有限公司 Configuration method, system and the equipment of Android TV-set fixer
CN109660727A (en) * 2018-12-29 2019-04-19 上海创功通讯技术有限公司 Scaling method and device, the call method and electronic equipment that shoot algorithm
CN111049912A (en) * 2019-12-17 2020-04-21 用友网络科技股份有限公司 Debugging method, test development device, and computer-readable storage medium
CN112306576A (en) * 2020-11-03 2021-02-02 深圳市桑达无线通讯技术有限公司 Method for modifying internal number of application program of android device
CN112306576B (en) * 2020-11-03 2023-11-07 深圳市桑达无线通讯技术有限公司 Method for modifying built-in number of android device application program
CN112882715A (en) * 2021-02-09 2021-06-01 广州思林杰科技股份有限公司 Measurement and control device definition method, computer and definable measurement and control device
CN114020335A (en) * 2021-09-07 2022-02-08 中科创达软件科技(深圳)有限公司 Hardware driving method, device and equipment
CN116088882A (en) * 2023-03-31 2023-05-09 深圳市微克科技有限公司 Function configuration method, system and medium based on intelligent wearable device

Also Published As

Publication number Publication date
CN107870835B (en) 2021-06-25

Similar Documents

Publication Publication Date Title
CN107870835A (en) Hardware adjustment method, system, readable storage medium storing program for executing and intelligent terminal
CN106448612A (en) Electronic device capable of displaying and performing color compensation and color compensation method
CN107566914B (en) Bullet screen display control method, electronic equipment and storage medium
CN101527119B (en) Intelligent automatic backlight control scheme
US20060092182A1 (en) Display brightness adjustment
US11175895B2 (en) Code generation and simulation for graphical programming
CN104484363B (en) Search result shows method and device
CN107249105A (en) Exposure compensation, device and terminal device
CN109784369A (en) H5 page test method and device, electronic equipment, storage medium
CN109298912B (en) Theme color adjusting method and device, storage medium and electronic equipment
CN103929676B (en) The method and intelligent television board of a kind of remote-controlled test intelligent television board function
WO2018053910A1 (en) Method and system for improving universality of refrigerator controller, and refrigerator
US20140002473A1 (en) Brightness Control Method, Apparatus and Program Product
CN113391778A (en) Paper-like screen display method, device and equipment
CN110221897A (en) Adjusting method, device, terminal device and the medium of character boundary
CN102103820A (en) Image display apparatus, its driving method and apparatus driving program
CN106251827A (en) Control method and control device
CN109147708A (en) Gamma value adjusting method, device and the display equipment of display panel
CN110618852B (en) View processing method, view processing device and terminal equipment
CN109213465B (en) Multi-display identification method and system for education operation system
CN109871205B (en) Interface code adjustment method, device, computer device and storage medium
US20230237946A1 (en) Display Effect Enhancement Method, Apparatus, and Device
US9552779B2 (en) Electronic apparatus and display backlight control method
CN104240677A (en) Electronic equipment and parameter adjusting method
CN108965837A (en) A kind of projection environment brightness control method, system and terminal 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
GR01 Patent grant
GR01 Patent grant
PE01 Entry into force of the registration of the contract for pledge of patent right

Denomination of invention: Hardware debugging methods, systems, readable storage media, and intelligent terminal devices

Effective date of registration: 20230905

Granted publication date: 20210625

Pledgee: Bank of Shanghai Limited by Share Ltd. Shenzhen branch

Pledgor: SHENZHEN ATTE SMART LIFE Co.,Ltd.

Registration number: Y2023980055341

PE01 Entry into force of the registration of the contract for pledge of patent right