Summary of the invention
Technical matters to be solved by this invention is to provide method for supervising and the device of environment in a kind of goods transportation way, can monitor the environmental data of article in compartment envelope in transit and be recorded in article tag.
For solving the problems of the technologies described above, the technical solution adopted in the present invention is: the method for supervising of environment in a kind of goods transportation way, comprises the following steps:
One, a plurality of three-dimensional sensors that distribute are set in compartment envelope, obtain the inner three-dimensional environmental data distributing of envelope, obtain exceeding in environmental data data and the position thereof of preset value;
Two, the RFID label adhering on article in envelope environment is positioned, to obtain the positional information of article tag;
Three, by exceeding the positional information of environmental data of preset value and the positional information of article tag, undertaken associatedly, the described data that exceed preset value are write in the article tag of correspondence position.
Preferably, in step 1, comprise the following steps:
One, set up space coordinates, according to the size of article, by the three dimensions of compartment envelope discrete be equal-sized regular discrete unit;
Two, by a plurality of sensor random arrangement in a plurality of discrete units;
Three, using the geometric center of each discrete unit as interpolation point, obtain the distance that interpolation is put each sensor, adopt and carry out three dimensions interpolation apart from weight reciprocal, carry out global search, try to achieve the environmental data of various discrete unit;
Four, the environmental data of various discrete unit and preset value are compared, obtain the component environment data that exceed preset value in environmental data.
Preferably, in step 2, comprise the following steps:
One, in compartment envelope, arrange at least four separation and known location rfid interrogator;
Two, according to article tag to be positioned, arrive the signal strength data of each rfid interrogator, obtain article tag to be positioned to the distance of each rfid interrogator, and obtain the position of article tag to be positioned.
Preferably, four rfid interrogators, one of them is as the initial point of coordinate system, its excess-three respectively as in x-axis, y-axis and z-axis a bit.
Preferably, the signal strength data of collecting, processes signal strength data by gaussian filtering and weighted mean;
By in the indoor classical distance~loss model of the signal strength data substitution after processing, obtain environmental parameter and the distance value of model;
Described gaussian filtering refers to by certain data processing and reduces the impact of small probability event on whole event;
Described indoor classical distance~loss model refers to through real example, and summarize the rule of the signal intensity obeys logarithm normal distribution receiving after multipath transmisstion, by signal, the decay in space carrys out estimated distance to this model.
In step 3, use least square location algorithm to treat positioning label position and carry out refinement, comprising:
Using the rfid interrogator of location aware as with reference to rfid interrogator;
For label to be positioned, obtain with reference to the distance between rfid interrogator and label to be positioned, and form distance set;
Adjust the distance and carry out cluster, reject the reference rfid interrogator that some numerical value differ greatly, remaining with reference to rfid interrogator continuation participation location;
The reference rfid interrogator of the accumulation cluster degree minimum of chosen distance error is as reference rfid interrogator;
Adopt least square method to ask for the coordinate of target to be positioned.
In goods transportation way, a supervising device for environment, comprises environment information acquisition module, position acquisition module and information writing module;
Environmental data acquisition module, for according to the three-dimensional distributed data of described compartment envelope transport space environment, obtains the data that exceed default environment value in described three-dimensional distributed data;
Position acquisition module, for using RFID location algorithm to position envelope environment article tag, obtains the positional information of article tag;
Information writing module, is undertaken associatedly by exceeding the positional information of environmental data of preset value and the positional information of article tag, and the described data that exceed preset value are write in the article tag of correspondence position.
Environmental data acquisition module comprises:
The first data capture unit, for being used three-dimensional interpolation algorithm to obtain the three-dimensional distributed data of described envelope transport space environment;
The second data capture unit, for described three-dimensional distributed data and described default environment value are compared, obtains the data that exceed default environment value in described three-dimensional distributed data.
Described the first data capture unit is used for setting up space coordinates, according to the size of article case, transport space is carried out to discretize processing, the size of each unit and article packing in the same size, by the three dimensions of compartment envelope discrete be equal-sized regular discrete unit; As a reference point with described environment information acquisition equipment, in several discrete units of three dimensions that several environment information acquisition deployed with devices are transported at described envelope; Using the geometric center of each discrete unit as interpolation point, obtain point to be inserted to each sensor distance, adopt and carry out three-dimensional interpolation apart from weight reciprocal, carry out global search, try to achieve the environmental data of various discrete unit.
Described position acquisition module comprises:
Range cells, for using signal strength data and indoor range finding model, obtains the distance of rfid interrogator and label to be positioned;
Location information acquiring unit, for the range information by rfid interrogator and label to be positioned and location model, obtains the positional information of label to be positioned;
Position refinement unit, carries out refinement for using improved least square location algorithm to treat positioning label position.
Described range cells, for collecting signal strength data, processes signal strength data by described gaussian filtering and weighted mean; By in the indoor classical distance~loss model of the signal strength data substitution after processing, obtain environmental parameter and the distance value of model;
Described position refinement unit is for using the rfid interrogator of location aware as with reference to rfid interrogator; For label to be positioned, obtain with reference to the distance between rfid interrogator and label to be positioned, and form distance set; Adjust the distance and carry out cluster, reject the reference rfid interrogator that some numerical value differ greatly, remaining with reference to rfid interrogator continuation participation location; The reference rfid interrogator of the accumulation cluster degree minimum of chosen distance error is as reference rfid interrogator; Adopt improved least square method to ask for the coordinate of target to be positioned.
Method for supervising and the device of environment in a kind of goods transportation provided by the invention way, can monitor the environmental data of article in compartment envelope in transit and be recorded in article tag, for example the article tag based on RFID technology.The present invention not only can monitor vehicle particular location, can also precise monitoring vehicle in position and the environmental data of concrete article.
Embodiment
A method for supervising for environment in goods transportation way, comprises the following steps:
One, a plurality of three-dimensional sensors that distribute are set in compartment envelope, obtain the inner three-dimensional environmental data distributing of envelope, obtain exceeding in environmental data data and the position thereof of preset value;
Two, the RFID label adhering on article in envelope environment is positioned, to obtain the positional information of article tag;
Three, by exceeding the positional information of environmental data of preset value and the positional information of article tag, undertaken associatedly, the described data that exceed preset value are write in the article tag of correspondence position.
The technical scheme that the embodiment of the present invention provides, by RFID location algorithm is combined with three-dimensional interpolation algorithm, utilize the storage characteristics of RFID label in prior art, realization is comprehensively monitored the environment in envelope space, compartment, and acquisition exceeds the environmental data of preset value, be then written in article tag, therefore can record the accident because of in transit, the impact that article are caused and article are changed, and this variation is ignorant in prior art, thereby cause the consequence that is difficult to expectation, after adopting the present invention, the consequence that this variation in transit causes is avoidable.Adopt and coordinate other modes such as warning, remote information transmission, this variation even can approach real-time being prevented from.Especially, method of the present invention can accurately be applicable to the many article that simultaneously transport, and can not affect other article, even if each article are different for the requirement of environment, also can guarantee that each article are suitable for different environmental datas.Different from prior art, the present invention not be used on each article sensor is set, even if there is variation in the size of transportation article, the environmental data producing by interpolation method, still can with change after article realize corresponding, therefore the present invention also can be recycled, and further reduces use cost.Sensor in this example includes but not limited to temperature, humidity, acceleration and pressure transducer, obtains correspondingly temperature, humidity, acceleration and pressure environment data, to adapt to the movement requirement of different article.
Preferably, in step 1, comprise the following steps:
One, set up space coordinates, according to the size of article, by the three dimensions of compartment envelope discrete be equal-sized regular discrete unit;
First discretize processing being carried out to according to the size of article case in envelope space, set up space coordinates, is M*N*Q interpolation point according to large young pathbreaker's envelope spatial division of each article case.
Two, by a plurality of sensor random arrangement in a plurality of discrete units;
Three, using the geometric center of each discrete unit as interpolation point, obtain the distance that interpolation is put each sensor, adopt and carry out three dimensions interpolation apart from weight reciprocal, carry out global search, try to achieve the environmental data of various discrete unit;
Obtain described to be inserted some N to each environment information acquisition equipment M
idistance be di,
The property value environment value T that wherein N is ordered is
Wherein n is illustrated in the sampled point number searching out in spherical search window, and u generally gets 2, represents the described index apart from weight reciprocal, adopts global search.
More than to use described three-dimensional interpolation algorithm to obtain the process of the three-dimensional distributed data of environment in described envelope transport space.
Four, the environmental data of various discrete unit and preset value are compared, obtain the component environment data that exceed preset value in environmental data.
In step 2, comprise the following steps:
One, in compartment envelope, arrange at least four separation and known location rfid interrogator;
Two, according to article tag to be positioned, arrive the signal strength data of each rfid interrogator, obtain article tag to be positioned to the distance of each rfid interrogator, and obtain the position of article tag to be positioned.
Four rfid interrogators, one of them is as the initial point of coordinate system, its excess-three respectively as in x-axis, y-axis and z-axis a bit.
The signal strength data of collecting, processes signal strength data by gaussian filtering and weighted mean;
Described gaussian filtering is applicable to the event of approximate Normal Distribution, for reducing the impact of small probability event on whole event.When a rfid interrogator obtains n RSSI value in the period, by gaussian filtering, choose the RSSI value of high probability, reject small probability event, then get geometrical mean.Reduce like this event of small probability to whole impact, improved the precision of location.
Wherein the formula of gauss of distribution function is:
In formula:
If be greater than 0.6 for high probability, have
0.6≤f(x)≤1;
Wherein:
0.15σ+μ≤x≤3.09σ+μ;
After gaussian filtering, by the filtered RSSI value of taking-up and ask its geometrical mean, being relatively accurate RSSI value after processing is signal strength data.
Logarithm path loss model is to use the change in signal strength of the most general description RFID label in indoor propagated process.
Wherein PL (d) means that signal is through the path loss of transmission range d, and in indoor environment, d0 generally gets 1m, PL (d) and PL (d0) YidBWei unit.N is path loss index, its value relevant with environmental factor around (shadowing factor and envirment factor), and span is generally [2,5].X σ is that average is 0, and standard deviation is the Gaussian noise (shadowing factor) of σ (dB), represents that the path loss of signal intensity is with the speed of distance growth.
There is following relation with the intensity of emissive power Pt and signal echo in path loss PL (d):
P
r(d)=P
t-PL(d);
Have:
What Pr (d0) represented is the label signal intensity that rfid interrogator receives at d0 place, and what Pr (d) represented is the label signal intensity that rfid interrogator receives, and its unit is dBm, by this formula, can obtain the relation between distance and RSSI.
Work as d
0during=1m, in above formula, can be rewritten as:
P
r(d)=A-10klg(d)-X
σ;
In above formula, parameter A and k are empirical values, and its value is relevant with concrete actual environment of living in and hardware, and in different environment, A is different from k, therefore need in actual environment, test.Therefore, suitable A and k must be selected, range error could be reduced as much as possible.In order to reduce the impact of environment, can take described least-squares algorithm to carry out curve fitting, determine A optimum in current environment and the value of k, and then set up relatively accurate indoor range finding model.
The step of utilizing least square method to carry out matching is:
(if xi, yi) (i=1,2 ... N), and be given data, equation y=f (x)=Sx+T, asks S with least square fitting straight line, and T also makes:
Minimum, asks local derviation to E (S, T)
Have:
Can obtain S, T, and guarantee E (S, T) minimum.Therefore for formula (1), P
r(d) linear with lgd, therefore, can be by some groups of (P
r(d), lgd), and carry out matching with least-squares algorithm, obtain the value of optimum A and k.
Said process is summarized as: by the indoor classical distance~loss model of the signal strength data substitution after processing, obtain environmental parameter and the distance value of model;
Described gaussian filtering refers to by certain data processing and reduces the impact of small probability event on whole event;
Described indoor classical distance~loss model refers to through real example, and summarize the rule of the signal intensity obeys logarithm normal distribution receiving after multipath transmisstion, by signal, the decay in space carrys out estimated distance to this model.
A kind of clustering algorithm that the present invention also provides, described method comprises:
Obtain the total n of sample, and n sample is divided into n class;
Calculate the distance between class between two, build symmetry distance matrix;
Off-diagonal least member in chosen distance matrix, is merged into a new class by two classes of least member;
Two corresponding row of class of cancellation least member and row, a line and the row that add new class and the remaining between class distance not being aggregated to form, obtain new distance matrix;
Repeat abovementioned steps, find off-diagonal least member in new distance matrix, until meet the end condition of classification, export optimum cluster.
In step 3, use least square location algorithm to treat positioning label position and carry out refinement, comprising:
Using the rfid interrogator of location aware as with reference to rfid interrogator;
For label to be positioned, obtain with reference to the distance between rfid interrogator and label to be positioned, and form distance set;
Adjust the distance and carry out cluster, reject the reference rfid interrogator that some numerical value differ greatly, remaining with reference to rfid interrogator continuation participation location;
The reference rfid interrogator of the accumulation cluster degree minimum of chosen distance error is as reference rfid interrogator;
Adopt least square method to ask for the coordinate of target to be positioned.
The embodiment of the present invention also provides a kind of LSL_DCRB algorithm flow, and described method comprises:
Using the rfid interrogator of location aware as described with reference to rfid interrogator;
For label to be positioned, obtain with reference to the distance between rfid interrogator and label to be positioned, and form distance set;
Adjust the distance and carry out described cluster, reject described with reference to rfid interrogator that some numerical value differ greatly, remaining with reference to rfid interrogator continuation participation location;
The reference rfid interrogator of the accumulation cluster degree minimum of the distance error described in selecting is as described reference rfid interrogator;
Adopt least square method to ask for the coordinate of target to be positioned.
In system of equations, introduce range error, have:
In above-mentioned system of equations, other separate equations of system of equations deduct j equation and carry out depression of order,
AX=B
*+E
Wherein:
AX=B
*+E,X=(A
TA)
-1A
T(B
*+E)
Above-mentioned steps is to use improved least square location algorithm to treat the process that refinement is carried out in positioning label position.
In goods transportation way, a supervising device for environment, comprises environment information acquisition module, position acquisition module and information writing module;
Environmental data acquisition module, for according to the three-dimensional distributed data of described compartment envelope transport space environment, obtains the data that exceed default environment value in described three-dimensional distributed data;
Position acquisition module, for using RFID location algorithm to position envelope environment article tag, obtains the positional information of article tag;
Information writing module, is undertaken associatedly by exceeding the positional information of environmental data of preset value and the positional information of article tag, and the described data that exceed preset value are write in the article tag of correspondence position.
Environmental data acquisition module comprises:
The first data capture unit, for being used three-dimensional interpolation algorithm to obtain the three-dimensional distributed data of described envelope transport space environment;
The second data capture unit, for described three-dimensional distributed data and described default environment value are compared, obtains the data that exceed default environment value in described three-dimensional distributed data.
Described the first data capture unit is used for setting up space coordinates, according to the size of article case, transport space is carried out to discretize processing, the size of each unit and article packing in the same size, by the three dimensions of compartment envelope discrete be equal-sized regular discrete unit; As a reference point with described environment information acquisition equipment, in several discrete units of three dimensions that several environment information acquisition deployed with devices are transported at described envelope; Using the geometric center of each discrete unit as interpolation point, obtain point to be inserted to each sensor distance, adopt and carry out three-dimensional interpolation apart from weight reciprocal, carry out global search, try to achieve the environmental data of various discrete unit.
Described position acquisition module comprises:
Range cells, for using signal strength data and indoor range finding model, obtains the distance of rfid interrogator and label to be positioned;
Location information acquiring unit, for the range information by rfid interrogator and label to be positioned and location model, obtains the positional information of label to be positioned;
Position refinement unit, carries out refinement for using improved least square location algorithm to treat positioning label position.
Described range cells, for collecting signal strength data, processes signal strength data by described gaussian filtering and weighted mean; By in the indoor classical distance~loss model of the signal strength data substitution after processing, obtain environmental parameter and the distance value of model;
Described position refinement unit is for using the rfid interrogator of location aware as with reference to rfid interrogator; For label to be positioned, obtain with reference to the distance between rfid interrogator and label to be positioned, and form distance set; Adjust the distance and carry out cluster, reject the reference rfid interrogator that some numerical value differ greatly, remaining with reference to rfid interrogator continuation participation location; The reference rfid interrogator of the accumulation cluster degree minimum of chosen distance error is as reference rfid interrogator; Adopt improved least square method to ask for the coordinate of target to be positioned.
It should be noted that: during the monitoring of the supervising device of the described environment in transit that above-described embodiment provides environment in goods transportation way, only the division with above-mentioned each functional module is illustrated, in practical application, can above-mentioned functions be distributed and by different functional modules, completed as required, the inner structure of the equipment of being about to is divided into different functional modules, to complete all or part of function described above.In addition, in the goods transportation way that above-described embodiment provides, in the supervising device of environment and goods transportation way, the method for supervising embodiment of environment belongs to same design, and its specific implementation process refers to embodiment of the method, repeats no more here.
The foregoing is only preferred embodiment of the present invention, in order to limit the present invention, within the spirit and principles in the present invention not all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.