CN107391087A - A kind of method and device of hardware information read-write - Google Patents

A kind of method and device of hardware information read-write Download PDF

Info

Publication number
CN107391087A
CN107391087A CN201710632401.2A CN201710632401A CN107391087A CN 107391087 A CN107391087 A CN 107391087A CN 201710632401 A CN201710632401 A CN 201710632401A CN 107391087 A CN107391087 A CN 107391087A
Authority
CN
China
Prior art keywords
processing function
order
information
function
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710632401.2A
Other languages
Chinese (zh)
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.)
Zhengzhou Yunhai Information Technology Co Ltd
Original Assignee
Zhengzhou Yunhai Information 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 Zhengzhou Yunhai Information Technology Co Ltd filed Critical Zhengzhou Yunhai Information Technology Co Ltd
Priority to CN201710632401.2A priority Critical patent/CN107391087A/en
Publication of CN107391087A publication Critical patent/CN107391087A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/30Arrangements for executing machine instructions, e.g. instruction decode
    • G06F9/30003Arrangements for executing specific machine instructions
    • 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/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/362Software debugging

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Software Systems (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The invention discloses a kind of method and device of hardware information read-write, it is characterised in that including:Command object is received, the command object is reading or the order of modification target hardware information;The processing function of the command object is obtained using corresponding relation;The corresponding relation is the corresponding relation according to stand-by order and corresponding processing function creation;Target hardware information is read or changes using the processing function.As can be seen here, create order and the corresponding relation of processing function, when software and hardware to be debugged and fault location need to read and write hardware information, only need to input corresponding order, the processing function of this order is found by corresponding relation, and read or write using the corresponding hardware information of function pair is handled, without being modified to existing program, that is different programs need not be added according to the difference of reading writing information, directly input order can reading writing information, therefore operate very simple it is efficient.

Description

A kind of method and device of hardware information read-write
Technical field
The present invention relates to hardware and software development field, more specifically to a kind of method and device of hardware information read-write.
Background technology
, it is necessary to obtain or change the related letter of current hardware in the exploitation debugging process of computer hardware or software Breath, to ensure whether occur mistake in exploitation, mistake where occur, and utilize these information debugging errors.
The method for obtaining or changing at present these relevant informations is mainly printed out information using printf.Use Printf process manual modification code mainly when needing reading writing information every time, adds print log, when acquisition of information arrives , it is necessary to this partial code of addition is deleted again.The operation of this method is very cumbersome, and efficiency is very low, the position of daily record addition Also accurate, the requirement to technical staff is higher, and works as the problem of reappearing, and failure can then be destroyed by adding daily record again Scene.
Therefore, in the driving and software development process interacted with hardware, the side that hardware information is read and write during debugging how is made Method is simply efficient, is that those skilled in the art need to solve the problems, such as.
The content of the invention
It is an object of the invention to provide a kind of method and device of hardware information read-write, make to read and write hardware information during debugging Method it is simply efficient.
To achieve the above object, the embodiments of the invention provide following technical scheme:
A kind of method of hardware information read-write, including:
Command object is received, the command object is reading or the order of modification target hardware information;
The processing function of the command object is obtained using corresponding relation;The corresponding relation be according to it is stand-by order with it is right The corresponding relation for the processing function creation answered;
Target hardware information is read or changes using the processing function.
Wherein, the corresponding relation according to stand-by order with corresponding processing function creation, including:
Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing letter of order Number.
Wherein, the processing function of the command object is obtained using the corresponding relation, including:
The command object and all stand-by orders in the array are contrasted one by one, will be treated with command object identical Function is handled corresponding to order as the processing function of the command object.
Wherein, it is described to obtain target information using the processing function, including:
Perform the processing function, the actual driving in call function, utilize the actual driving to read or modification target Hardware information.
Wherein, the processing function includes:
CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing ses page information letters Number.
A kind of device of hardware information read-write, including:
Receiving module, for receiving command object, the command object is reading or the order of modification target hardware information;
Function acquisition module is handled, for obtaining the processing function of the command object using corresponding relation;The correspondence Relation is the corresponding relation according to stand-by order and corresponding processing function creation;
Target information processing module, for reading or changing target hardware information using the processing function.
Wherein, the corresponding relation according to stand-by order with corresponding processing function creation, including:
Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing letter of order Number.
Wherein, the processing function acquisition module, is specifically used for, by the command object with being needed in the array Contrasted one by one with order, the processing using processing function corresponding with the stand-by order of command object identical as the command object Function.
Wherein, the target information processing module is specifically used for, and performs the processing function, the actual drive in call function It is dynamic, read or change target hardware information using the actual driving.
Wherein, the processing function includes:
CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing ses page information letters Number.
By above scheme, a kind of method of hardware information read-write provided in an embodiment of the present invention, it is characterised in that Including:Command object is received, the command object is reading or the order of modification target hardware information;Obtained using corresponding relation The processing function of the command object;The corresponding relation is the corresponding pass according to stand-by order and corresponding processing function creation System;Target hardware information is read or changes using the processing function.
As can be seen here, the method for a kind of hardware information read-write provided by the invention, it is corresponding with processing function to create order Relation, when needing to read and write hardware information, it is only necessary to ordered corresponding to input, the processing of this order is found by corresponding relation Function, and read or write using the corresponding hardware information of function pair is handled, without being modified to existing program, That is different program need not be added according to the difference of reading writing information, directly input order can reading writing information, therefore grasp It is efficient to make very simple.Present invention also offers a kind of device of hardware information read-write, above-mentioned technique effect can be equally realized.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, on the premise of not paying creative work, can be with Other accompanying drawings are obtained according to these accompanying drawings.
Fig. 1 is a kind of method flow diagram of hardware information read-write disclosed in the embodiment of the present invention;
Fig. 2 is a kind of schematic diagram of Ordered Registration disclosed in the embodiment of the present invention;
Fig. 3 is a kind of method flow diagram of acquisition of information disclosed in the embodiment of the present invention;
Fig. 4 is a kind of apparatus structure schematic diagram of hardware information read-write disclosed in the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made Embodiment, belong to the scope of protection of the invention.
The embodiment of the invention discloses a kind of method of hardware information read-write, makes the method letter that hardware information is read and write during debugging It is single efficient.
Referring to Fig. 1, a kind of method of hardware information read-write provided in an embodiment of the present invention, specifically include:
S101, receive for obtaining the command object of target information, the command object is reading or modification target hardware The order of information;.
It should be noted that this programme can apply to interact with hardware in more program development, for example to collect More hardware information returns to main program, for example, multiple temperature sensors, voltage detecting temperature spot, LED, CPLD and Eeprom, it is therefore desirable to these information are obtained on software, it is normal to confirm these information.
In this programme, the operation for obtaining these information is defined as an order, corresponding processing is transferred using order Function, corresponding driving is performed by handling function, to obtain the information to be obtained, information for confirmation is corrected errors.Utilize this The function of individual command calls, which reaches, reads hardware information, debugging drive software and hardware fault positioning purpose.
Specifically, command object is received, this order can be the cli order or debugging software inputted during exploitation The cli orders inputted during function, the cli orders inputted during hardware fault are investigated, ordered by inputting corresponding cli in detection serial ports Order, corresponding function is transferred to realize corresponding operation.
S102, the processing function of the command object is obtained using corresponding relation;The corresponding relation is according to stand-by life Make the corresponding relation with corresponding processing function creation.
Specifically, a corresponding relation is initially set up, this corresponding relation can be preserved with array form, which includes Some order with existing driving initialization and corresponding processing functions according to demand.When receiving command object, first will Order and the commands match in corresponding relation, are searched with the presence or absence of this order in corresponding relation, if it does, calling this life Processing function corresponding to order, operation processing function is operated accordingly, such as reads hardware information.
S103, target hardware information is read or changes using the processing function.
Specifically, when finding processing function corresponding to command object, this processing function is run, wherein, at operation After managing function, function, which can call, actually drives and then returns result to serial port terminal.Can be according to returning to serial port terminal Information judges whether software, hardware are normal, and positioning failure etc..
It should be noted that processing function corresponding to order can be the function to the write-in of a certain hardware information.
As can be seen here, the method for a kind of hardware information read-write provided by the invention, it is corresponding with processing function to create order Relation, when needing to read and write hardware information, it is only necessary to ordered corresponding to input, the processing of this order is found by corresponding relation Function, and read or write using the corresponding hardware information of function pair is handled, without being modified to existing program, That is different program need not be added according to the difference of reading writing information, directly input order can reading writing information, therefore grasp It is efficient to make very simple.
The embodiment of the present invention provides a kind of method of specific hardware information read-write, difference and above-described embodiment, the present invention Embodiment has done specifically defined and explanation to the corresponding relation in above-described embodiment, and other step contents and above-described embodiment are big Cause identical, particular content is referred to above-described embodiment, and here is omitted.Specifically, it is described according to it is stand-by order with it is corresponding Processing function creation corresponding relation, including:
Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing letter of order Number.
Specifically, cli management module mcl.c is established, a structure is defined, includes cli_name order members Function member is handled with cli_handler, safeguards cli_table [] array.With reference to figure 2, in initialization, by cli Order is with corresponding processing function registration into cli_table.Cli orders can be read hardware information order such as i2c, Gpio, temperature etc., such as the order that cli-1 is processing i2c, then corresponding cli can be name_i2c, and its processing function is then I2c processing function will be name_i2c and i2c processing function registration into cli_table [].When needing to know i2c's During information, cli title name_i2c is directly inputted, it is possible to run i2c processing function, obtain relevant information.Similarly, Cli-2, cli-3 and more orders all by name and handle function registration into cli_table [] array, and read-write is related During information, the neme cans of cli corresponding to input call respective function to obtain result.
The embodiment of the present invention provides a kind of method of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment has done specifically defined and explanation, other steps and above-described embodiment content substantially phase to S102 in above-described embodiment Together, above-described embodiment corresponding part is specifically referred to, here is omitted.Specifically, S102 includes:
The command object and all stand-by orders in the array are contrasted one by one, will be treated with command object identical Function is handled corresponding to order as the processing function of the command object.
Specifically, after receiving command object, command object and the order in array are contrasted one by one, if phase is arrived in contrast Same order, then this identical order is handled into processing function of the function as command object, if not contrasting phase Same order, then return to a miscue.
The embodiment of the present invention provides a kind of method of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment has done specifically defined and explanation, other step contents and above-described embodiment substantially phase to the S103 in above-described embodiment Together, particular content is referred to the appropriate section of above-described embodiment, and here is omitted.Specifically, S103 includes:
Perform the processing function, the actual driving in call function, utilize the actual driving to read or modification target Hardware information.
Specifically, when finding processing function corresponding with command object, run and handle function, the reality in call function Driving obtains target information, and information is back into serial port terminal, to be debugged, test using information, the operation such as investigation problem. It should be noted that providing a kind of method driven by command calls in this programme, therefore, called by way of order line Hardware drive program is completed to develop, debugs, verifies, safeguarded also within protection scope of the present invention.
The embodiment of the present invention provides a kind of method of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment has done specifically defined and explanation to the processing function in above-described embodiment, and other step contents and above-described embodiment are big Cause identical, be specifically referred to above-described embodiment corresponding part, here is omitted.Specifically, the processing function includes:
CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing ses page information letters Number.
Specifically, processing function is run by cli and calls corresponding driving to realize printing ses page information, read Take CPLD, read eeprom information reading temperature sensor etc..
After bin file burning is compiled, it may be necessary to state, location hardware are inquired about, can also be by corresponding to input Cli orders, operation alignment processing function realized, result is obtained using function call its actual driving is handled.
When obtaining new board or system exception, corresponding cli orders can also be inputted, call alignment processing function call To the correlation of the peripheral hardware of the return of driving, judge hardware whether normal work, save the right the latter one of oscilloscope measurement The tedious steps of individual investigation.
Based on above-described embodiment, a kind of method of specific hardware information read-write of offer of the embodiment of the present invention, reference picture 3, The embodiment of the present invention specifically includes:
S201, the order of detection serial ports input, is ended up, the command object includes what is inputted during development function with Enter Order, the order inputted during debugging software function, investigate the order inputted during hardware fault.
Whether S202, the order for contrasting input match with the order registered in cli_table [] array.
S203, if it is not, then prompt command returns to mistake.
Specifically, if not matching identical order in array, miscue is returned.
S204, if it is, processing function corresponding to performing.
Specifically, if having matched identical order in array, processing function corresponding to identical order is performed.
S205, call the actual driving in processing function.
S206, result is output to serial port terminal.
Specifically, can whether normal with analysis result when object information returns to serial port terminal, confirm software or hardware It is whether normal.
Therefore, the method for a kind of hardware information read-write provided in an embodiment of the present invention, can will inquire about some hardware Or software information when, input corresponding to order, the order inquired about in the array of initialization whether have with input order it is corresponding Order, if then utilize this order the actual driving of processing function call, then can got in serial port terminal Corresponding information.Therefore, modification addition code, operation side can be avoided by method reading writing information provided in an embodiment of the present invention Just, efficiency is improved.
A kind of device of hardware information read-write provided in an embodiment of the present invention is introduced below, one kind described below The device of hardware information read-write can be with cross-referenced with a kind of above-described method of hardware information read-write, reference picture 4, this hair A kind of device for hardware information read-write that bright embodiment provides, is specifically included:
Receiving module 301, for for receiving command object, the command object to be reading or modification target hardware information Order.
It should be noted that this programme can apply to interact with hardware in more program development, for example to collect More hardware information returns to main program, for example, multiple temperature sensors, voltage detecting temperature spot, LED, CPLD and Eeprom, it is therefore desirable to these information are obtained on software, it is normal to confirm these information.In this programme, obtain this The operation of a little information is defined as an order, and corresponding processing function is transferred using order, corresponding by handling function execution Driving, to obtain the information to be obtained, information for confirmation is corrected errors.Reach reading hardware using the function of this command calls Information, debugging drive software and hardware fault positioning purpose.
Specifically, receiving module 301 receives command object, and this order can be the cli orders inputted during exploitation, can also The cli orders inputted when being debugging software function, the cli orders inputted during hardware fault are investigated, by being inputted in detection serial ports Corresponding cli orders, transfer corresponding function and operated accordingly with obtaining desired information realization.
Function acquisition module 302 is handled, for obtaining the processing function of the command object using corresponding relation;It is described right It should be related to for the corresponding relation according to stand-by order with corresponding processing function creation.
Specifically, a corresponding relation is initially set up, this corresponding relation can be preserved with array form, which includes Some order with existing driving initialization and corresponding processing functions according to demand.When receiving command object, letter is handled Number acquisition module 302 first will order with corresponding relation in commands match, search corresponding relation in the presence or absence of this order, If it does, calling processing function corresponding to this order, the information that operation processing function is gone for carries out corresponding Operation, such as read hardware information.
Target information processing module 303, for reading or changing target hardware information using the processing function.
Specifically, when finding processing function corresponding to command object, target information processing acquisition module 303 runs this Individual processing function, wherein, after operation processing function, function, which can call, actually drives and then returns result to serial port terminal.Can To judge whether software, hardware are normal and position failure etc. according to the information for returning to serial port terminal.
It should be noted that processing function corresponding to order can be the function to the write-in of a certain hardware information.
As can be seen here, the device of a kind of hardware information read-write provided by the invention, it is corresponding with processing function to create order Relation, when needing to read and write hardware information, processing function acquisition module 302 needs to order corresponding to input, is closed by corresponding System finds the processing function of this order, and target information processing module 303 is read using the corresponding hardware information of function pair is handled Or write-in, without being modified to existing program, that is to say, that need not be according to the different addition differences of reading writing information Program, directly input order can reading writing information, therefore operate very simple it is efficient.
The embodiment of the present invention provides a kind of device of specific hardware information read-write, difference and above-described embodiment, the present invention Embodiment has done specifically defined and explanation, other guide and above-described embodiment substantially phase to the corresponding relation in above-described embodiment Together, particular content is referred to above-described embodiment, and here is omitted.Specifically, it is described according to stand-by order and corresponding place The corresponding relation of function creation is managed, including:
Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing letter of order Number.
Specifically, cli management module mcl.c is established, a structure is defined, includes cli_name order members Function member is handled with cli_handler, safeguards cli_table [] array.Initialization when, by cli orders with it is right The processing function registration answered is into cli_table.Cli orders can read order such as the i2c, gpio, temperature of hardware information Deng.
Initialization when, by cli orders with it is corresponding handle function registration into cli_table.Cli orders can be Order such as i2c, gpio, temperature etc. of hardware information are read, such as the order that cli-1 is processing i2c, then corresponding cli can be with For name_i2c, it handles the processing function that function is then i2c, by for name_i2c and i2c processing function registration to cli_ In table [].When needing to know i2c information, cli title name_i2c is directly inputted, it is possible to run i2c place Function is managed, obtains relevant information.Similarly, cli-2, cli-3 and more orders all arrive name and processing function registration In cli_table [] array, when reading and writing relevant information, the neme cans of cli corresponding to input call respective function to be tied Fruit.
The embodiment of the present invention provides a kind of device of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment has done specifically defined and explanation, other guide and above-mentioned reality to handling function acquisition module 302 in above-described embodiment It is roughly the same to apply a content, is specifically referred to above-described embodiment corresponding part, here is omitted.Handle function acquisition module 302 are specifically used for:
The command object and all stand-by orders in the array are contrasted one by one, will be treated with command object identical Function is handled corresponding to order as the processing function of the command object.
Specifically, after receiving command object, processing function acquisition module 302 by the order in command object and array by Individual contrast, if identical order is arrived in contrast, the processing letter using the processing function of this identical order as command object Number, if not contrasting identical order, return to a miscue.
The embodiment of the present invention provides a kind of device of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment the target information processing acquisition module 303 in above-described embodiment has been done it is specifically defined and explanation, other guide with Above-described embodiment is roughly the same, and particular content is referred to the appropriate section of above-described embodiment, and here is omitted.Target information Processing acquisition module 303 is specifically used for:
Perform the processing function, the actual driving in call function, obtain target information and read using the actual driving Take or change target hardware information.Specifically, when finding processing function corresponding with command object, target information processing obtains Module 303, which is run, handles function, and the actual driving in call function obtains target information, and information is back into serial port terminal.With Debugged, tested using information, the operation such as investigation problem.
It should be noted that providing a kind of device driven by command calls in this programme, therefore, pass through order line Mode calls hardware drive program completing to develop, debugging, verifying, safeguarding also within protection scope of the present invention.
The embodiment of the present invention provides a kind of method of specific hardware information read-write, is different from above-described embodiment, the present invention Embodiment has done specifically defined and explanation to the processing function in above-described embodiment, and other step contents and above-described embodiment are big Cause identical, be specifically referred to above-described embodiment corresponding part, here is omitted.Specifically, the processing function includes:
CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing ses page information letters Number.
Specifically, processing function is run by cli and calls corresponding driving to realize printing ses page information, read Take CPLD, read eeprom information reading temperature sensor etc..
After bin file burning is compiled, it may be necessary to state, location hardware are inquired about, can also be by corresponding to input Cli orders, operation alignment processing function realized, result is obtained using function call its actual driving is handled.
When obtaining new board or system exception, corresponding cli orders can also be inputted, call alignment processing function call To the correlation of the peripheral hardware of the return of driving, judge hardware whether normal work, save the right the latter one of oscilloscope measurement The tedious steps of individual investigation.
Each embodiment is described by the way of progressive in this specification, what each embodiment stressed be and other The difference of embodiment, between each embodiment identical similar portion mutually referring to.
The foregoing description of the disclosed embodiments, professional and technical personnel in the field are enable to realize or using the present invention. A variety of modifications to these embodiments will be apparent for those skilled in the art, as defined herein General Principle can be realized in other embodiments without departing from the spirit or scope of the present invention.Therefore, it is of the invention The embodiments shown herein is not intended to be limited to, and is to fit to and principles disclosed herein and features of novelty phase one The most wide scope caused.

Claims (10)

  1. A kind of 1. method of hardware information read-write, it is characterised in that including:
    Command object is received, the command object is reading or the order of modification target hardware information;
    The processing function of the command object is obtained using corresponding relation;The corresponding relation be according to it is stand-by order with it is corresponding Handle the corresponding relation of function creation;
    Target hardware information is read or changes using the processing function.
  2. 2. according to the method for claim 1, it is characterised in that described according to stand-by order and corresponding processing function creation Corresponding relation, including:
    Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing function of order.
  3. 3. according to the method for claim 2, it is characterised in that the place of the command object is obtained using the corresponding relation Function is managed, including:
    The command object and all stand-by orders in the array are contrasted one by one, will be with the stand-by life of command object identical Processing function of the processing function as the command object corresponding to order.
  4. 4. according to the method for claim 1, it is characterised in that it is described to obtain target information using the processing function, wrap Include:
    Perform the processing function, the actual driving in call function, utilize the actual driving to read or modification target hardware Information.
  5. 5. method as claimed in any of claims 1 to 4, it is characterised in that the processing function includes:
    CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing sespage information functions.
  6. A kind of 6. device of hardware information read-write, it is characterised in that including:
    Receiving module, for receiving command object, the command object is reading or the order of modification target hardware information;
    Function acquisition module is handled, for obtaining the processing function of the command object using corresponding relation;The corresponding relation For the corresponding relation according to stand-by order with corresponding processing function creation;
    Target information processing module, for reading or changing target hardware information using the processing function.
  7. 7. device according to claim 6, it is characterised in that described according to stand-by order and corresponding processing function creation Corresponding relation, including:
    Array of the stand-by order with corresponding processing function is preserved, one of them stand-by corresponding processing function of order.
  8. 8. device according to claim 7, it is characterised in that the processing function acquisition module, be specifically used for, by described in Command object contrasts one by one with all stand-by orders in the array, will place corresponding with the stand-by order of command object identical Manage processing function of the function as the command object.
  9. 9. device according to claim 6, it is characterised in that the target information processing module is specifically used for, and performs institute State processing function, the actual driving in call function, utilize the actual driving to read or modification target hardware information.
  10. 10. the device according to any one in claim 6 to 9, it is characterised in that the processing function includes:
    CPLD functions are read, eeprom information functions is read, reads temperature sensor function, printing sespage information functions.
CN201710632401.2A 2017-07-28 2017-07-28 A kind of method and device of hardware information read-write Pending CN107391087A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710632401.2A CN107391087A (en) 2017-07-28 2017-07-28 A kind of method and device of hardware information read-write

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710632401.2A CN107391087A (en) 2017-07-28 2017-07-28 A kind of method and device of hardware information read-write

Publications (1)

Publication Number Publication Date
CN107391087A true CN107391087A (en) 2017-11-24

Family

ID=60341485

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710632401.2A Pending CN107391087A (en) 2017-07-28 2017-07-28 A kind of method and device of hardware information read-write

Country Status (1)

Country Link
CN (1) CN107391087A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491882A (en) * 2018-11-06 2019-03-19 郑州云海信息技术有限公司 A kind of chassis data processing method, system, equipment cabinets and readable storage medium storing program for executing
CN110457869A (en) * 2019-07-23 2019-11-15 Oppo广东移动通信有限公司 Program compiles encryption method, device, storage medium and electronic equipment
CN110795173A (en) * 2019-10-30 2020-02-14 深圳市元征科技股份有限公司 Data processing method and device, electronic equipment and readable storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996799B1 (en) * 2000-08-08 2006-02-07 Mobilygen Corporation Automatic code generation for integrated circuit design
CN101340314A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Real-time debugging positioning method of embedded system and apparatus thereof
CN104598169A (en) * 2012-12-31 2015-05-06 苏州国芯科技有限公司 High-reliability data reading method used for flash memorizer
CN105094910A (en) * 2015-07-31 2015-11-25 上海斐讯数据通信技术有限公司 Driving function user state debugging system and method
CN105468516A (en) * 2015-08-07 2016-04-06 汉柏科技有限公司 Method for user mode to implement exception stack traceback of X86 architecture device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6996799B1 (en) * 2000-08-08 2006-02-07 Mobilygen Corporation Automatic code generation for integrated circuit design
CN101340314A (en) * 2008-08-11 2009-01-07 中兴通讯股份有限公司 Real-time debugging positioning method of embedded system and apparatus thereof
CN104598169A (en) * 2012-12-31 2015-05-06 苏州国芯科技有限公司 High-reliability data reading method used for flash memorizer
CN105094910A (en) * 2015-07-31 2015-11-25 上海斐讯数据通信技术有限公司 Driving function user state debugging system and method
CN105468516A (en) * 2015-08-07 2016-04-06 汉柏科技有限公司 Method for user mode to implement exception stack traceback of X86 architecture device

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109491882A (en) * 2018-11-06 2019-03-19 郑州云海信息技术有限公司 A kind of chassis data processing method, system, equipment cabinets and readable storage medium storing program for executing
CN109491882B (en) * 2018-11-06 2021-10-29 郑州云海信息技术有限公司 Case data processing method and system, equipment case and readable storage medium
CN110457869A (en) * 2019-07-23 2019-11-15 Oppo广东移动通信有限公司 Program compiles encryption method, device, storage medium and electronic equipment
CN110795173A (en) * 2019-10-30 2020-02-14 深圳市元征科技股份有限公司 Data processing method and device, electronic equipment and readable storage medium

Similar Documents

Publication Publication Date Title
US20110107307A1 (en) Collecting Program Runtime Information
CN107391087A (en) A kind of method and device of hardware information read-write
US20210318349A1 (en) Test tube rack dispatching method, analysis system and test tube rack
KR20200007133A (en) Method and apparatus for dinamically injecting fault for vehicle ecu software test
CN101840233A (en) Equipment failure detection device and method
CN102968371B (en) The method of test JAVA API unit component and device
TW201616356A (en) System and method for debug firmware/software to generate trace data, recording medium and computer program product
CN111198811A (en) Page automatic test method and device, electronic equipment and storage medium
CN105515909B (en) A kind of data acquisition test method and apparatus
Stricker et al. Avoiding redundant testing in application engineering
CN107590017A (en) The detection method and device of a kind of electronic equipment
CN104834586A (en) Automatic test method, device and system of Android interface
CN101739002A (en) Integrative system and method for detecting, managing and controlling strength of reinforced bars
US11231348B2 (en) Histological specimens traceability apparatus and method
CN112131101A (en) Automatic testing method, testing terminal and storage medium
CN106844211A (en) Software testing method, device and system
CN110162463A (en) Method for testing software, device and electronic equipment based on automated test tool
CN103186551B (en) Exception analysis method and analogue system based on web application platform
CN113199509B (en) Robot joint testing method, system, device, processing equipment and medium
CN109977953A (en) Implementation method based on the algorithm of target detection of YOLOV3 on embedded device
CN108845902A (en) A kind of ATE hardware configuration and test program check method and apparatus
CN111401578A (en) Equipment point inspection management method and device and computer readable storage medium
CN103116495B (en) Based on automatic storage method and the device of the single-chip microcomputer register value of IDE
CN110471837A (en) Program detecting method, device and computer readable storage medium
CN108694105A (en) The wiring reminding method of rack server system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20171124