Summary of the invention
The problem to be solved in the present invention provides a kind of detection method and device of rotating speed of recording medium, realizing weighing apparatus linear speed channel bit, to have the rotating speed of the data carrier of record frame structure and no record frame structure to read, and recording medium can both be measured its recording medium rotational speed under any rotational speed.
For achieving the above object, technical scheme of the present invention provides a kind of detection method of rotating speed of recording medium, said method comprising the steps of S1, and the hole and the bank of recording medium of rotation sampled; S2 determines A hole of sampling and the used time T of bank, and described A is predefined constant value; S3 according to the hole of all lengths and probability and the hole of all lengths and the run length of bank of bank appearance, determines the run length C of A hole and bank; S4 according to the run length C of the physical length of the unit distance of swimming and described A hole and bank, determines that A is cheated and the distance of swimming physical length L of bank; S5 according to described distance of swimming physical length L and A hole of sampling and the used time T of bank, determines the rotating speed of recording medium.
Wherein, step S2 specifically comprises: determine that A hole of sampling and the used sampling clock number of bank are B, the sampling clock cycle is t, and A hole and the used time T=B * t of bank then sample.
Wherein, step S2 specifically comprises S31, according to modulation coding mode, obtains the hole of all lengths and the probability I that bank occurs
a, I
b..., I
xS32 according to modulation coding mode, obtains the hole of all lengths and the run length a of bank, b ..., x; S33 is according to formula C=a * A * I
a+ b * A * I
b+ ...+x * A * I
x, determine A the hole and the run length C of bank.
Wherein, step S4 specifically comprises: according to formula L=C * l=(a * A * I
a+ b * A * I
b+ ...+x * A * I
x) * l determines A the hole and the distance of swimming physical length L of bank, and wherein l is the physical length of the unit distance of swimming.
Wherein, step S5 specifically comprises: according to formula v=L ÷ T=(a * A * I
a+ b * A * I
b+ ...+x * A * I
x) * l ÷ (B * t), determine the rotating speed v of recording medium.
Wherein, after step S3, further comprising the steps of S6 is according to the formula M=T ÷ C=(÷ (a * A * I of B * t)
a+ b * A * I
b+ ...+x * A * I
x), the time span M of the unit's of obtaining channel bit.
Wherein, after step S6, also comprise: obtain the time span a * M of each hole and bank, b * M ..., x * M.
Technical scheme of the present invention also provides a kind of pick-up unit of rotating speed of recording medium, and described device comprises: sampling unit is used for the hole and the bank of recording medium of rotation sampled; The sampling time acquiring unit is used for determining A hole of sampling and the used time T of bank, and described A is predefined constant value; The run length acquiring unit is used for determining the run length C of A hole and bank according to the hole of all lengths and probability and the hole of all lengths and the run length of bank of bank appearance; Distance of swimming physical length acquiring unit is used for physical length and the definite run length C of run length acquiring unit according to the unit distance of swimming, determines the distance of swimming physical length L of A hole and bank; The rotating speed acquiring unit is used for distance of swimming physical length L and the sampling time acquiring unit definite sampling time T definite according to distance of swimming physical length acquiring unit, determines the rotating speed of recording medium.
Wherein, described device also comprises: the time span acquiring unit of unit channel bit is used for run length C and the sampling time acquiring unit definite sampling time T definite according to the run length acquiring unit, the time span M of the unit's of obtaining channel bit.
Wherein, described device also comprises: the tunnel shore time length acquiring unit is used for time span M and the hole of all lengths and the run length of bank of the unit channel bit that the time span acquiring unit according to the unit channel bit obtains, obtain the time span a * M of each hole bank, b * M ..., x * M.
Compared with prior art, technical scheme of the present invention has following advantage:
The present invention not only can realize weighing the linear speed channel bit, have the rotating speed of data carrier of the recording medium of record frame structure to read, and the rotating speed of the recording medium of can realize weighing linear speed channel bit, no record frame structure reads; In addition, in the present invention, recording medium can both be measured its recording medium rotational speed under any rotational speed.
Embodiment
Below in conjunction with drawings and Examples, the specific embodiment of the present invention is described in further detail.Following examples are used to illustrate the present invention, but are not used for limiting the scope of the invention.
The present invention is example with DVD5, the recording medium of weighing apparatus linear speed channel bit is rotated situation about reading describes under unknown speed, and the detection method of the rotating speed of a kind of recording medium of the embodiment of the invention may further comprise the steps as shown in Figure 1:
Step s101 samples to the hole and the bank of recording medium of rotation.
Step s102 determines A hole of sampling and the used time T of bank, and described A is predefined constant value.Has randomicity characteristics owing to passed through the data of scramble before the modulating-coding, so the probability that each length hole and bank occur is fixed, so given suitable constant A, on the recording medium continuously in the constant A hole bank, the probability that each length hole and bank occur is to cheat and the probability of bank appearance near each length in the modulating-coding theory.Setting for constant A: the probability I that the hole of all lengths and bank occur
a, I
b..., I
xObtain by modulating-coding, if the value of constant A is big more, then in A hole and the bank hole of each length or bank number divided by the value of A more near the hole of each length and the probability I of bank correspondence
a, I
b..., I
xOtherwise when A was 1, the hole of each length or bank number were divided by the hole and the corresponding probability I of bank of value with each length of A in A hole and the bank
a, I
b..., I
xDifference maximum (having only a value is 1, and other is 0 entirely).So, the value of A satisfy system can tolerance range within the time, that should try one's best is big.The predefined constant value A that adopts in the present embodiment is 500, the synoptic diagram of the sampling number statistics effect of weighing apparatus 500 holes of linear speed channel bit and bank as shown in Figure 2, as can be seen from Figure 2, sample the used sampling clock number of 500 holes and bank near 8900, wherein the clock period is t, and 500 holes and the used time T=8900 * t of bank obtain sampling.
Step s103 according to the hole of all lengths and probability and the hole of all lengths and the run length of bank of bank appearance, determines the run length C of A hole and bank.The probability that the hole of all lengths and bank occur is determined by modulation coding mode, because the data before the modulating-coding have the randomness characteristics, modulating-coding come out the probability of the distance of swimming (be various length hole and bank) of all lengths fix, so the probability that the hole of all lengths and bank occur is determined by the mode of modulating-coding; The hole of all lengths and the run length of bank also determined by modulation coding mode, and for example we know that its run length has: 3T, 4T according to the modulating-coding of DVD5,5T, 6T, 7T, 8T, 9T, 10T, 11T, (T is single channel bit to 14T, be a unit run length, the physical length of the 3T of DVD5 is 400 nanometers, and promptly single channel bit length is 400 ÷ 3=133.33 nanometers).In the present embodiment, suppose that the hole of all lengths and the probability that bank occurs are I
a, I
b..., I
x, the hole of all lengths and the run length of bank are a, b ..., x, then the run length C=a * A * I of 500 holes and bank
a+ b * A * I
b+ ...+x * A * I
x
Step s104, the time span of the unit's of obtaining channel bit.In the present embodiment, according to formula M=C ÷ T=(a * 500 * I
a+ b * 500 * I
b+ ...+x * 500 * I
x) ÷ (8900 * t), the time span M of the unit's of obtaining channel bit, wherein C is the run length of 500 holes and bank, T is 500 holes of sampling and used time of bank.
Step s105, time span M and the hole of all lengths and the run length a of bank of the unit channel bit of obtaining according to the time span acquiring unit of unit channel bit, b ..., x obtains the time span a * M of each hole and bank, b * M ..., x * M.
Step s106 according to the run length C of the physical length of the unit distance of swimming and A hole and bank, determines that A is cheated and the distance of swimming physical length L of bank.In the present embodiment, according to formula L=C * l=(a * 500 * I
a+ b * 500 * I
b+ ...+x * 500 * I
x) * l determines the distance of swimming physical length L of 500 holes and bank, and wherein l is the physical length of the unit distance of swimming, i.e. the physical length of unit channel bit, and C is the run length of 500 holes and bank.
Step s107 according to distance of swimming physical length L and A hole of sampling and the used time T of bank, determines the rotating speed of recording medium.In the present embodiment, the valid data number of supposing 500 holes and bank is D, then the speed S=D ÷ T=D ÷ of reading ﹠ recording medium valid data (8900 * t), the rotating speed v=L ÷ T=(a * 500 * I of the recording medium of weighing apparatus linear speed channel bit
a+ b * 500 * I
b+ ...+x * 500 * I
x) * l ÷ (8900 * t).
In embodiments of the present invention, owing to be tunnel shore time length value and the recording medium tachometer value that per 500 holes and bank just calculate one group of channel bit time span value, each length.In order to reduce the error of final value and actual value, the present invention can carry out many groups channel bit time span value of calculating continuously, the tunnel shore time length value and the recording medium tachometer value of each length the mean filter denoising and finally obtain more approaching real value.
When the detection of the rotating speed that carries out recording medium shown in Figure 1, the pick-up unit of the rotating speed of a kind of recording medium of the embodiment of the invention comprise sampling unit, sampling time acquiring unit, run length acquiring unit, distance of swimming physical length acquiring unit, unit channel bit the time span acquiring unit: tunnel shore time length acquiring unit and rotating speed acquiring unit.
Sampling unit is used for the hole and the bank of the recording medium of rotation are sampled; The sampling time acquiring unit is used for determining A hole of sampling and the used time T of bank, and described A is predefined constant value; The run length acquiring unit is used for probability and the hole of all lengths and the run length of bank according to the hole of all lengths and bank appearance, determines the run length C of A hole and bank; Distance of swimming physical length acquiring unit is used for determining the distance of swimming physical length L of A hole and bank according to the physical length of the unit distance of swimming and the definite run length C of run length acquiring unit; The time span acquiring unit of unit channel bit is used for run length C and the sampling time acquiring unit definite sampling time T definite according to the run length acquiring unit, the time span M of the unit's of obtaining channel bit; The tunnel shore time length acquiring unit is used for time span M and the hole of all lengths and the run length of bank of the unit channel bit that the time span acquiring unit according to the unit channel bit obtains, and obtains the time span a * M of each hole bank, b * M ..., x * M; The rotating speed acquiring unit is used for distance of swimming physical length L and the sampling time acquiring unit definite sampling time T definite according to distance of swimming physical length acquiring unit, determines the rotating speed of recording medium.
The present invention not only can realize weighing the linear speed channel bit, have the rotating speed of data carrier of the recording medium of record frame structure to read, and the rotating speed of the recording medium of can realize weighing linear speed channel bit, no record frame structure reads; In addition, in the present invention, recording medium can both be measured its recording medium rotational speed under any rotational speed.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the technology of the present invention principle; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.