CN1280334A - Method and system for controlling hard ware device with multiple models - Google Patents

Method and system for controlling hard ware device with multiple models Download PDF

Info

Publication number
CN1280334A
CN1280334A CN99119541A CN99119541A CN1280334A CN 1280334 A CN1280334 A CN 1280334A CN 99119541 A CN99119541 A CN 99119541A CN 99119541 A CN99119541 A CN 99119541A CN 1280334 A CN1280334 A CN 1280334A
Authority
CN
China
Prior art keywords
model
function
hardware
hardware unit
control
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
CN99119541A
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.)
Samsung Electronics Co Ltd
Original Assignee
Samsung Electronics 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 Samsung Electronics Co Ltd filed Critical Samsung Electronics Co Ltd
Publication of CN1280334A publication Critical patent/CN1280334A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/10Program control for peripheral devices
    • G06F13/102Program control for peripheral devices where the programme performs an interfacing function, e.g. device driver

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Programmable Controllers (AREA)
  • Stored Programmes (AREA)

Abstract

A hardware control method and system is provided to commonly control a plurality of hardware models with a little different control parameters by using a single software. A hardware control method steps of granting an ID to each hardware model by using a dip switch or a voltage divider, defining a function pointer and a specific model function by using a C language, recognizing a model ID for example, in case that an input to a port 3 is zero, the model ID is recognized as a model D or in case that an input to a port 3 is 1, the model ID is recognized as a model C, allocating the specific model function to the function pointer and using the same function pointer as the specific model function. The control system comprises a model recognizer and a controller.

Description

Be used to control the method and system of hardware unit with a plurality of models
The present invention relates to control the method and system of hardware unit with a plurality of models, the method and system that has the compatible hardware device of a plurality of models in particular for control, the most controlled variable of the compatible hardware device of these models are identical, and it is different having only sub-fraction.
Hardware by software control has multiple model according to price, application target, performance, date issued, capacity or the like usually in a series.
In with a series of hardware units, the primary structure of these hardware units is identical, but some function of these hardware units and for some structure that realizes some function be to change according to each model in same series hardware device.For ease of understanding, Fig. 1 a and 1b show some examples.Model A in hardware unit is identical with model B from the structure and the course of work, is to export from different ports but their difference is the signal of excitation luminescence diode (LED).Model A has used the signal of port one output drive light emitting diode, and signal B has used the signal of port 2 output drive light emitting diodes.
Therefore, because the minute differences on hardware should be developed similar just a little different software in order to control each hardware.Simple case shown in Fig. 1 a and 1b, the software of model A are programmed and make the output-controlled of port one so that the excitation luminescence diode, and the software of model B is programmed to cause the output-controlled of port 2 so that the excitation luminescence second tube sheet.Yet, do to consume a lot of manpowers and time like this.In addition, the difference between the hardware and software that is caused by model should be identified, so that use up-to-date software.In addition, under the situation of hardware of each model of upgrading, should discern each hardware that causes by model and the difference between each software.
For solving the above problems, the purpose of this invention is to provide a kind of by using public software control to have the method and system of the hardware unit of a plurality of models, these hardware units controlled variable as a rule are identical, but are different under a few cases.
For realizing above-mentioned purpose of the present invention, a kind of method that is used for controlling the hardware unit with a plurality of models is provided compatiblely, wherein most controlled variable are identical, be a small number of parameters difference, this control method comprises the steps: the hardware unit of each model is specified an identifier (ID); The a plurality of specific model functions that are applied to each model hardware unit respectively are provided; Identification is with the ID of controlled hardware unit; Appointment corresponding to the specific model function of the ID that is identified as a function pointer, thereby control a corresponding hardware unit.
At this, the ID identification step preferably includes: an ID port is provided, is used for by the step of each model output to the different ID of hardware unit.
Preferably the specific function allocation step is used the function of the function pointer in the C language.
A kind of system that is used to control the compatible hardware device with a plurality of models also is provided, and wherein most controlled variable are identical, and just the minority controlled variable is different, and this control system comprises: a model recognizer that is used to discern the model of each hardware; One controller, by using a plurality of specific model functions of the hardware that is applied to each model respectively, the corresponding specific model function of model that is used to specify and is identified in the model recognizer is as a function pointer and the corresponding hardware unit of control.
By the detailed description of reference accompanying drawing to the structure of the present invention and the course of work, it is more cheer and bright that objects and advantages of the present invention will become.
Fig. 1 a and 1b illustrate the structure of the hardware simplicity device that is used to illustrate conventional hardware unit control method respectively;
Fig. 2 is the calcspar of the control system of the embodiment of the invention;
Fig. 3 a and 3b show the structure of the hardware unit of the simplification that is used to illustrate hardware unit control method of the present invention;
Fig. 4 is the process flow diagram that is used to illustrate the control method of embodiments of the invention.
Below with reference to accompanying drawings embodiments of the invention are described in detail.
In Fig. 2, control system 1 comprises a model recognizer 11 and a controller 12.Each hardware 2 in the series is exported a different ID value according to each model.Model recognizer 11 receives from the ID value of hardware unit 2 outputs, discerns the model that this hardware unit 2 has then.Controller 12 specifies a specific model function to give a function pointer, each model of control hardware device then according to the model that identifies.
Fig. 3 a and 3b show the structure of hardware unit 2 of simplification of the method for the hardware unit that is used to illustrate the control embodiment of the invention.Model C and model D have the port 3 of ID value that is used to export its model separately.When the voltage of port 3 was Vcc, when just the voltage of port 3 was corresponding to a system voltage, model recognizer 11 these hardware units of identification were model C, and when port 3 was grounded, model recognizer 11 these hardware units of identification were model D.Remaining hardware unit is identical on structure and the course of work, but they have the different port of the signal that is used for the output drive light emitting diode.Model C is by the signal of port one output drive light emitting diode, and model D is by the signal of port 2 output drive light emitting diodes.
Fig. 4 is the process flow diagram that is used to illustrate the control method of embodiments of the invention.Each step wherein will be described in detail belows.
At first, in hardware unit, distribute an ID (S10) according to each model.When two models are arranged this embodiment, can use a single straight fork to close and distribute the ID of two models simply.If the model number is to be equal to or greater than at 2 o'clock, a model ID can be closed by straight fork and distribute, and as the minimum value in the integer, it is more than or equal to Log 2N.If used mould-number (A/D) transducer, the ID of so various models can be distributed by one of the working voltage bleeder circuit single analog input port.
Then, define a function pointer and a specific model function (S20).In table 1, the processing procedure of function pointer and the function that defines the light emitting diode that is switched on or switched off model C and D is by the C language Symbols.Coding L100 to L106 defined function pointer Fn_LED_On and Fn_LED_Off, function F n_LED_On_C and Fn_LED_Off_C are used to control the light emitting diode (LED) of model C, and the light emitting diode of function F n_LED_On_D and Fn_LED_Off_D definition model D.Grammer " the port1|=0x1 of L103; " be and " port1=port1|0x1; " identical, it is illustrated in not that the data of coordination are sent under the situation of port one, and the light emitting diode that promptly is connected to port one is switched on, and then last quilt " 1 " replaces.Grammer " the port1﹠amp of L104;=~0x1; " be and " port1=port1﹠amp;~0x1; " identical, it is illustrated in not that the data of coordination are sent under the situation of port one, and when the light emitting diode that promptly is connected to port one was disconnected, last quilt " 0 " replaced.L105 has the meaning similar to L100 to L104 with L106.
Table 1
L100?typedef?void(*VFnDef)(void)
L101?VFnDef?Fn_LED_On,Fn_LED_Off;
L102?int?port1,port2,port3;
L103?void?Fn_LED_On_C(void){port1|=0x1;}
L104?void?Fn_LED_Off_C(void){port1&=~0x1;}
L105?void?Fn_LED_On_D(void){port2|=0x1;}
L106?void?Fn_LED_Off_D(void){port2&=~Ox1;}
……………..
Then, discern a model ID (S30).After the input of port 3 is identified, if the input of port 3 is " 0 ", think that so then hardware unit is model D, if the input of port 3 is " 1 ", think that so then hardware unit is a model C.
Then, a specific model function is assigned to function pointer (S40).In table 2, the processing procedure of function of distributing the light emitting diode be switched on or switched off model C and model D to a function pointer is by the C language Symbols.Coding L200 to L207 partition function pointer Fn_LED_On and Fn_LED_Off give corresponding function.L201 and L202 mean that after the input of port 3 is identified a function pointer Fn_LED_On is assigned to function F n_LED_On_D.Input at port 3 is under the situation of " 0 ", and promptly hardware unit is identified as model D, and when the input of port 3 was " 1 ", when promptly hardware unit was identified as model C, function pointer Fn_LED_Off was assigned to function F n_LED_Off_D.L204 and L205 have the meaning similarly with L200 to L202.
Table 2
L200?switch(port3){
L201?case?0:Fn_LED_On=Fn_LED_0n_B;
L202 Fn_LED_Off=Fn_LED_Off_B;
L203 break;
L204?case?1:Fn_LED_On=Fn_LED_On_A;
L205 Fn_LED_Off=Fn_LED_Off_A;
L206 break;
L207 }
A specific model function is used as recognition function pointer (S50) then.That is, do not consider model C or D, connect light emitting diode, and disconnect light emitting diode with Fn_LED_Off () with Fn_LED_On ().
Therefore, model C can be by software control mutually with D.Under the situation that model quantity increases, to increase function definition process and function assigning process, wherein control procedure is identical only.
As mentioned above, the hardware unit that the present invention's control has a plurality of models, wherein most of controlled variable are identical, it is different having only very little a part of parameter.So the exploitation of software and management afterwards can be carried out effectively.When increasing the new model of making by the existing model of upgrading, can provide effective management of hardware unit.

Claims (6)

1, a kind of method that is used for controlling hardware unit with a plurality of models compatiblely, most of controlled variable are identical in the hardware unit of described a plurality of models, are only a few parameter difference, wherein said control method comprises the steps:
The hardware unit of each model is specified an identifier (ID);
The a plurality of specific model functions that are applied to each model hardware unit respectively are provided;
Identification is with the ID of controlled hardware unit; And
Distribution corresponding to the specific model function of the ID that is identified as a function pointer, thereby control a corresponding hardware unit.
2, control method according to claim 1 is characterized in that described ID identification step comprises: the step of an ID port is provided, and this ID port is used for by each model to the different ID value of hardware unit output.
3, control method according to claim 1 is characterized in that described specific model function given step uses the function of the function pointer in the C language.
4, a kind of system that is used to control compatible hardware device with a plurality of models, most of controlled variable are identical in the compatible hardware device of described a plurality of models, and just the only a few controlled variable is different, and wherein said system comprises:
Be used to discern a model recognizer of the model of each hardware;
One controller, by using a plurality of specific model functions of the hardware that is applied to each model respectively, the corresponding specific model function of model that is used to specify and is identified in the model recognizer is as a function pointer and the corresponding hardware unit of control.
5, control system according to claim 4 is characterized in that different ID value identification one model that described model recognizer provides according to each model hardware unit.
6, control method according to claim 4 is characterized in that described specific model function assigning process uses the function of the function pointer in the C language.
CN99119541A 1999-07-08 1999-09-02 Method and system for controlling hard ware device with multiple models Pending CN1280334A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1019990027542A KR20010009261A (en) 1999-07-08 1999-07-08 Method and system for series controlling of hardwares in commom
KR99-27542 1999-07-08

Publications (1)

Publication Number Publication Date
CN1280334A true CN1280334A (en) 2001-01-17

Family

ID=19600349

Family Applications (1)

Application Number Title Priority Date Filing Date
CN99119541A Pending CN1280334A (en) 1999-07-08 1999-09-02 Method and system for controlling hard ware device with multiple models

Country Status (2)

Country Link
KR (1) KR20010009261A (en)
CN (1) CN1280334A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713132B (en) * 2004-06-22 2010-06-09 京瓷美达株式会社 Electric apparatus, information storing medium
CN101079941B (en) * 2006-05-24 2010-11-17 佳能株式会社 Image management device, image management method
WO2012058891A1 (en) * 2010-11-04 2012-05-10 中兴通讯股份有限公司 Method, device and terminal for identifying lcd screen
CN102800319A (en) * 2012-06-28 2012-11-28 大唐移动通信设备有限公司 Audio encoding and decoding assembly as well as audio encoder-decoder identifying method and system
CN110406561A (en) * 2018-04-28 2019-11-05 比亚迪股份有限公司 Switch control system and rail system
CN111336918A (en) * 2020-03-10 2020-06-26 深圳市兴华炜科技有限公司 Plug-in clamping jaw detection process and system and clamping jaw

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1713132B (en) * 2004-06-22 2010-06-09 京瓷美达株式会社 Electric apparatus, information storing medium
CN101261491B (en) * 2004-06-22 2011-02-09 京瓷美达株式会社 Electric equipment
CN101079941B (en) * 2006-05-24 2010-11-17 佳能株式会社 Image management device, image management method
WO2012058891A1 (en) * 2010-11-04 2012-05-10 中兴通讯股份有限公司 Method, device and terminal for identifying lcd screen
CN102800319A (en) * 2012-06-28 2012-11-28 大唐移动通信设备有限公司 Audio encoding and decoding assembly as well as audio encoder-decoder identifying method and system
CN110406561A (en) * 2018-04-28 2019-11-05 比亚迪股份有限公司 Switch control system and rail system
CN111336918A (en) * 2020-03-10 2020-06-26 深圳市兴华炜科技有限公司 Plug-in clamping jaw detection process and system and clamping jaw

Also Published As

Publication number Publication date
KR20010009261A (en) 2001-02-05

Similar Documents

Publication Publication Date Title
CN1112642C (en) Design part reusing method in configuration tool
CN1143603C (en) System and method for optimizing energy efficiency of building system for target energy consumption level
CN1591446A (en) A method, system, and storage medium for providing a dynamic, multi-dimensional commodity modeling process
EP1921528A2 (en) Event triggered data capture via embedded historians
CN1280334A (en) Method and system for controlling hard ware device with multiple models
CN1906975A (en) Apparatus and method for producing variable intensity of light
CN100339829C (en) Memory updating system for field device
CN101075192A (en) Method and apparatus for defining service flow in data system
EP3739449A1 (en) Prescriptive cloud computing resource sizing based on multi-stream data sources
CN1904855A (en) System and method for automatically relating components of a storage area network in a volume container
CN1385771A (en) Equipment and method for establishing operation parts
EP1524599B1 (en) A method of reassigning objects to processing units
US5980086A (en) Facility operating method
CN1265583C (en) Business resource distribution method
CN1591253A (en) Programmable controller
US7739300B2 (en) System and method for processing a prioritizing protocol
CN1831471A (en) Off-line programing system and method for measuring equipment
CN1501265A (en) Data record, simulation apparatus and method for input operation of keyboard and mouse
Borlea et al. Intelligent lighting system platform architecture and linear process models
CN1604101A (en) Computer system, method and storage medium for control factor management of output plans
KR100816624B1 (en) Method for substrate sorting and dispatching
CN1655155A (en) Industrial bus monitoring system and control software therefor
CN1242591C (en) Household electric appliances control code forming method of local network system
CN113056059B (en) LED driving method and device
CN118034191A (en) Production control method, bright spot solving method of luminous display and related equipment

Legal Events

Date Code Title Description
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C06 Publication
PB01 Publication
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication