Background technology
Sensor miscellaneous is used in modern industry and the various modern product widely, for example image sensor, alcohol sensor, optoelectronic switch and specific use sensor or the like.Generally speaking, except just wanting sensed object existence or non-existent sensor, every sensor of the content of sensed object of wanting all has in order to a plurality of sensing cells of sensing and in order to store a plurality of storage unit of sensing gained data.Certainly, sensing cell and storage unit can be separated from each other; Also can be to allow a sensing cell and the synthetic elementary cell of storage unit earlier, a plurality of elementary cells of recombinant become whole sensor,
In the prior art, because sensing gained data storing in all storage unit, so when read sensor, begin from first storage unit, reads the content of all storage unit in regular turn one by one.As shown in Figure 1A, at first prepare sensor 10 with M storage unit 11; Use sensor 10 sensing objects then and make each storage unit 11 all store data (data 1, data 2..., data M); Then read in regular turn again by data 1, data 2 ... to the data 12 that dataM formed.For instance, for using the image sensor of Charged Coupled Device (chargercoupled device), utilize displacement recorder (shift register) record electric charge moving between each elementary cell, begin to read one by one the stored data of each elementary cell from first elementary cell.
Yet, some application for sensor, because when the content of sensing object, often have only storage unit partly can store non-zero (non-zero) signal, also only need (or saying interesting) sensing content partly because the user may not need complete sensing content, therefore above-mentioned prior art is inefficient often.
For instance, shown in Figure 1B and Fig. 1 C, for the photoelectric sensor 15 of the scanner head 14 of scanner, the object to be scanned 16 that is positioned on the transparent platform 13 may be less than photoelectric sensor 15 length in the length of directional light electric inductor 15 directions; And the user may not need the image of whole object to be scanned (171,172,173) and only partly the image of object to be scanned (as 172) is interesting to certain.Therefore, in the prior art, the user must read the data of all unit on the overall optical electric inductor 15 earlier, then could obtain and handle needed part data, obviously is the efficient inadequately scanner method that reads.
Therefore, be necessary to develop new read sensor method, with allow the user more efficiently the autobiography sensor read needed data.
Summary of the invention
Fundamental purpose of the present invention is to solve above-mentioned prior art common deletion, the method that proposition can more efficient read sensor.
Another object of the present invention is under the prerequisite that is not changing existing sensor specification, can not must the start anew method of the data of all unit in the read sensor in regular turn of proposition.
Another purpose of the present invention is to put before the form that does not change each stored data in unit in the sensor, can not must the start anew method of the data of all unit in the read sensor in regular turn of proposition.
The present invention can have one or number person of following several principal characters at least:
(1) is applicable to that each elementary cell (each storage unit at least) is separate sensor.
(2) before reading, receive earlier a parameter (positive integer) and with these unit according to the bark mark that puts in order, skip over numbering some unit then less than parameter, directly begin to read other all unit from the unit that numbering equals parameter.
(3) before reading, except that receiving a parameter, also receive an additional parameter, equal the unit of additional parameter reading numbering then, just stop reading (that is only reading the part unit of numbering between parameter and additional parameter) to sensor.
(4) appointment of parameter and additional parameter can be set by the user, parameter or sensor that can sensor determine according to stored content in detection process automatically.
(5) before reading, can receive a plurality of parameters, when read sensor, only read the part unit that some discrete cell indicated that is corresponded to these parameters then.At this, refer to only read certain two discrete cell and therebetween part unit, and from first unit with these discrete cells in pairs.
Embodiment
Describe the specific embodiment of the present invention in detail below in conjunction with drawings and Examples.
A preferred embodiment of the present invention is a kind of method of read sensor, shown in Fig. 2 A, comprises following basic step at least:
As prepare shown in the square 21, connect linear transducer and receive parameter.Linear transducer has being aligned and puts in order and separate a plurality of storage unit, and this parameter N is a positive integer.And, these storage unit are separate and can read respectively, cmos memory cell for example, as select initial reading shown in the square 22, first storage unit from linear transducer begins to count these storage unit one by one according to the linear array order, till calculating N storage unit.
Read shown in the square 23 as actual, begin, read the content of each storage unit that is not counted as yet according to the linear array order one by one from N storage unit.
Present embodiment also can be described with Fig. 2 B, at first prepares the sensor 20 with M storage unit 24; Use sensor 20 sensing objects then and make each storage unit 24 all store data (data 1, data 2..., data M); Then accept parameter N earlier, read in regular turn again by data N, data N+1 ..., the actual needs data 25 formed of data M.
Apparently, an essential characteristic of present embodiment just is to receive earlier parameter N, is begun by the storage unit that corresponds to N again, read one by one numbering be not less than each storage unit of N stored data N, data N+1 ..., data M.Compared with prior art, present embodiment can't read and be numbered 1 data to each storage unit of (N-1), numbering 1 the stored data of each storage unit to (N-1) be zero or be not to use the person required in (for example situation shown in Figure 1B and Fig. 1 C), present embodiment obviously can dispense and read the time that storage does not need the storage unit of data, the efficient in the time of can promoting read sensor.And the number that stores the storage unit that does not need data is many more, and the time that present embodiment can be saved is just many more with the efficient that can promote.
Certainly, in the present embodiment, parameter N is not a fixing number usually, but can change.For example, want before the read sensor at every turn, just can produce a new N again.Generally speaking, parameter can be by user's setting of importing in the time will reading this linear transducer; Parameter also can be that linear transducer institute produces automatically, is for example produced according to pre-defined rule and detection process gained data by internal software; Parameter also can be linear transducer when the sensing object, first that noted stores a certain particular memory location shared cis-position in these storage unit of linear transducer of non-zero signal.
Further, situation shown in Fig. 1 C, since sometimes not only in these storage unit some storage unit of beginning can't store significant (or saying what the user wanted) data, terminal storage unit can not store significant (or saying that the user wants) data yet, and certain section storage unit can store significant (or saying that the user wants) data just.Therefore, present embodiment only reads the storage unit that corresponds to parameter and the feature of each storage unit subsequently; Can also further expand to and not only read the storage unit that corresponds to certain parameter and each storage unit subsequently, also only read the storage unit that corresponds to another parameter and the feature of each storage unit before simultaneously.
Also promptly, shown in Fig. 2 C, present embodiment can be modified to the sensor 20 that preparation earlier has M storage unit 24; Use sensor 20 sensing objects then and make each storage unit 24 all store data (data 1, data 2..., data M); Then accept parameter N and L earlier, read in regular turn again by data N, data N+1 ..., the actual needs data 25 formed of data L.
In other words, present embodiment still can receive additional parameter L in the lump when receiving parameter N, at this L is positive integer greater than N, with when reading the content of these storage unit that are not counted as yet one by one according to the linear array order, after the data of L the storage unit that reads linear transducer, just no longer read each storage unit that other does not read as yet.At this, generally speaking, additional parameter can be by user's setting of importing in the time will reading linear transducer; Additional parameter also can be that linear transducer institute produces automatically, is for example produced according to pre-defined rule and detection process gained data by internal software; Additional parameter also can be linear transducer when the sensing object, last that noted stores a certain particular memory location shared cis-position in each storage unit of linear transducer of non-zero signal.
Further, because present embodiment only must have certain arrangement sequence relevant with each storage unit of sensor basically, and must each storage unit can independently read relevantly, present embodiment is irrelevant to the details (for example details of each storage unit and relative position) of sensor.Therefore, as described below, present embodiment still can expand to the two-dimensional linear sensor from the one-dimensional linear sensor.
Another preferred embodiment of the present invention still is a kind of method of read sensor, as shown in Figure 3A, comprises following basic step at least:
As prepare shown in the square 31, connect dimension sensor and receive the individual parameter of a given number (X).At this, dimension sensor is formed by the individual linear transducer of given number (X), and any linear transducer has a plurality of linear a plurality of storage unit that put in order each other, and any parameter is all a positive integer and corresponds to a certain linear transducer.
As handling piecemeal shown in the square 32, begin from first linear transducers of these linear transducers, one by one each linear transducer is carried out the following action of reading in regular turn.
Read shown in the square 33 as preparing, when handling K linear transducer, first storage unit from K linear transducer begins to count each storage unit one by one according to the linear array order, till calculating N storage unit, be the parameter that corresponds to K linear transducer at this N.
Read shown in the square 34 as actual, begin, read the content of each storage unit that is not counted as yet according to the linear array order one by one from N storage unit.
Apparently, because dimension sensor can be considered as the combination of a plurality of one dimension sensors basically, therefore present embodiment is to repeat repeatedly last embodiment basically, is that last embodiment only accepts a parameter, and present embodiment is to receive a plurality of parameters.Certainly, if just some linear transducer has stored significant (or saying that the user needs) data from first storage unit, the parameter that corresponds to these linear transducers is zero.Certainly, the form of actual each parameter of input has many variations, can be linear transducer numbering with the staggered form of parameter, also can be only to list numbering and the parameter that does not partly need the linear transducer that starts anew to read, present embodiment does not limit these details.
Certainly, because a big emphasis of present embodiment is before each linear transducer is read, all wants first and will begin to read from that storage unit according to corresponding parameter correction, be just received before how long unimportant as for corresponding parameter.Therefore, although Fig. 3 A shows that receiving all parameters earlier handles each linear transducer more one by one, but present embodiment also can be just to receive corresponding parameter before will handling certain linear transducer, shown in Fig. 3 B (just will prepare square 31 with handle piecemeal the correction of square 32 usefulness prepare square 311 and correction handle piecemeal square 321 replacement).
Because other details of present embodiment is identical with last embodiment, for example be used for ending the corresponding additional parameter that reads to certain linear transducer, therefore will no longer repeat to tire out to state these details.
Again further, " only reading the data that numbering is not less than some storage unit of parameter " of previous two embodiment and two features of " only reading the data that numbering is not more than some storage unit of additional parameter " can also expand to the data that only read some storage unit that is identified by some parameter again.
As shown in Figure 4, another preferred embodiment of the present invention is a kind of method of read sensor, before will reading a certain linear transducer 41 of this sensor, receive a plurality of parameter (N1 earlier, N2...Nn), find out then and in this linear transducer 41, number n the particular memory location 42 that corresponds to these parameters, begin from first particular memory location 42 at this, these particular memory location 42 in pairs in regular turn, and each just indicates a particular memory location zone 43 to particular memory location 42, reads out stored data 44 in each memory cell region 43 at last again.
Certainly, in the shown situation of Fig. 4, be the situation of just importing the even number parameter.Consider that present embodiment is to utilize a plurality of parameters to indicate some particular memory location zone to be read, consider that again certain particular memory location zone can be last storage unit that first storage unit of this linear response device just begins or end at this linear response device, present embodiment also can receive the odd number parameter.About these details, present embodiment does not impose any restrictions.
Because other details of present embodiment is identical with the first two embodiment,, therefore will no longer repeat tired these details of stating for example all applicable to one dimension sensor or dimension sensor.
The above is preferred embodiment of the present invention only, is not in order to limit protection scope of the present invention; All other do not break away from the equivalence of being finished under the disclosed spirit and changes or modification, all should be included in the scope of claims.