High-speed non-stop weighing method based on quartz sensor, terminal and storage medium

文档序号:1813786 发布日期:2021-11-09 浏览:21次 中文

阅读说明:本技术 基于石英传感器的高速不停车称重方法、终端及存储介质 (High-speed non-stop weighing method based on quartz sensor, terminal and storage medium ) 是由 郭振杰 张宇航 于 2021-08-09 设计创作,主要内容包括:本发明提供了一种基于石英传感器的高速不停车称重方法、终端及计算机可读存储介质,根据预设时间内接收到的感应线圈的触发信号,判断被测车辆行驶的车道,得到被测车辆对应的多个石英传感器和每个石英传感器的修正系数;获取目标轴对应的n个石英传感器中每个石英传感器采集的目标轴的电压信号;针对n个石英传感器中的任一石英传感器,将石英传感器的修正系数和石英传感器采集的目标轴的电压信号对应的轴重相乘,得到目标轴的第一轴重;将n个传感器得到的目标轴的第一轴重进行加权平均,得到目标轴的第二轴重;将被测车辆的所有轴的第二轴重进行相加,得到被测车辆的重量。本发明能够提高车辆的动态称重精度。(The invention provides a high-speed non-stop weighing method based on quartz sensors, a terminal and a computer readable storage medium, wherein a lane where a detected vehicle runs is judged according to a trigger signal of an induction coil received within preset time, and a plurality of quartz sensors corresponding to the detected vehicle and a correction coefficient of each quartz sensor are obtained; acquiring a voltage signal of a target axis acquired by each quartz sensor in n quartz sensors corresponding to the target axis; aiming at any quartz sensor in the n quartz sensors, multiplying the correction coefficient of the quartz sensor by the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor to obtain the first axle weight of the target axle; carrying out weighted average on the first axle weights of the target axles obtained by the n sensors to obtain the second axle weight of the target axle; and adding the second axle weights of all the axles of the detected vehicle to obtain the weight of the detected vehicle. The invention can improve the dynamic weighing precision of the vehicle.)

1. A high-speed non-stop weighing method based on quartz sensors is characterized in that the method is applied to a road dynamic weighing system, and for any lane, the road dynamic weighing system comprises a group of quartz sensors, an inlet induction coil and an outlet induction coil which are pre-laid in the lane according to the driving direction corresponding to the lane, wherein the group of quartz sensors are positioned between the inlet induction coil and the outlet induction coil, and the method comprises the following steps:

judging a lane where a detected vehicle runs according to a trigger signal of an induction coil received within preset time to obtain a plurality of quartz sensors corresponding to the detected vehicle and a correction coefficient of each quartz sensor in the plurality of quartz sensors;

acquiring a voltage signal of a target shaft acquired by each quartz sensor in n quartz sensors corresponding to the target shaft, wherein the target shaft is any one shaft of the vehicle to be detected;

for any quartz sensor in the n quartz sensors, multiplying a correction coefficient of the quartz sensor by an axle weight corresponding to a voltage signal of the target axle acquired by the quartz sensor to obtain a first axle weight of the target axle;

carrying out weighted average on the first axle weights of the target axles obtained by the n sensors to obtain the second axle weight of the target axle;

and adding the second axle weights of all the axles of the detected vehicle to obtain the weight of the detected vehicle.

2. The method of claim 1, wherein for any lane, the two sets of quartz sensors corresponding to the lane are arranged in two symmetrical rows along a driving direction of the lane, a first lane and a second lane are two adjacent lanes in the same driving direction, the first lane is located on the left side of the second lane along the driving direction, and the determining the lane where the vehicle to be detected runs according to the trigger signal of the induction coil received within a preset time period to obtain the plurality of quartz sensors corresponding to the vehicle to be detected comprises:

if the inlet induction coil and the outlet induction coil corresponding to the first lane are triggered successively within the preset time, and the inlet induction coil and the outlet induction coil corresponding to the lane adjacent to the first lane are not triggered within the preset time, the vehicle to be detected runs on the first lane, and the quartz sensors corresponding to the vehicle to be detected are a group of quartz sensors corresponding to the first lane;

if the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously, and the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously within the preset time, the vehicle to be detected runs across the first lane and the second lane, and along the running direction of the vehicle, the quartz sensors in the row on the right side of the first lane and the quartz sensors in the row on the left side of the second lane are a plurality of quartz sensors corresponding to the vehicle to be detected;

if the induction coil of the second lane is triggered, and the induction coil of the first lane is triggered within the preset time, the vehicle to be tested crosses the first lane from the second lane to the left to run, and the plurality of quartz sensors corresponding to the vehicle to be tested are all quartz sensors with the number of collecting shafts being more than 1 in the first lane and the second lane;

if the induction coil of the first lane is triggered, and the induction coil of the second lane is triggered within the preset time, the detected vehicle crosses the first lane to the second lane to run rightwards, and the plurality of quartz sensors corresponding to the detected vehicle are all quartz sensors with the number of collecting shafts being greater than 1 in the first lane and the second lane.

3. The method of claim 1, further comprising:

performing analog-to-digital conversion on the voltage signal of the target axis acquired by the quartz sensor to obtain an internal code value corresponding to the quartz sensor;

carrying out data preprocessing on the internal code value to obtain correction data, and putting the correction data into an array corresponding to the target axis;

acquiring data in the array to obtain acquired data, and only reserving the acquired data in the array, wherein the acquired data comprises a target internal code value, and the target internal code value is an internal code value corresponding to a first highest point in the correction data, which meets a preset size;

and if the data volume of the acquired data is greater than a first preset volume and a serial number for starting data to be smooth exists, taking the weight corresponding to the target internal code value as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

4. The method of claim 3, wherein preprocessing the inner code value comprises:

judging whether an inner code value larger than a first preset value exists or not, and if so, subtracting a second preset value from the inner code value larger than the first preset value;

and/or replacing the current internal code value with the previous internal code value adjacent to the current internal code value if the absolute value of the difference between the current internal code value and the previous internal code value adjacent to the current internal code value is greater than a third preset value.

5. The method of claim 3, wherein collecting data in the array comprises:

sequentially judging the size of the correction data, and deleting the data of the foremost third preset quantity if the data quantity in the array reaches a second preset quantity and the data larger than a fourth preset value do not appear, wherein the third preset quantity is smaller than the second preset quantity;

when data larger than the fourth preset value appears and the data amount in the array is larger than the fourth preset amount, removing data before the data of a fifth preset amount before the current data, wherein the fifth preset amount is smaller than the fourth preset amount;

when data larger than the fourth preset value appears and the data amount in the array is larger than a sixth preset amount, judging the relationship between the current internal code value and the internal code value of the highest point positioned before the current internal code value, if the current internal code value is smaller than the internal code value of the highest point positioned before the current internal code value, adding 1 to the data amount of a descending point, if the current internal code value is larger than the internal code value of the highest point positioned before the current internal code value, resetting the number of the descending points to be 0, and marking the current internal code value as the highest point;

if the number of the continuous descending points exceeds a seventh preset amount, judging whether the value of the data of the highest point is larger than a fifth preset value, if so, judging that the value of the highest point accords with a preset size, and finishing acquisition to obtain the acquired data.

6. The method of claim 5, further comprising:

if the data volume of the acquired data is greater than the eighth preset volume or the last data before the acquisition is finished is less than the sixth preset value, judging that the data is invalid, and emptying the currently acquired data;

if no serial number for starting data to be smooth exists in the acquired data, judging that the data is invalid, and emptying the currently acquired data;

and if the acquired data has a serial number for starting data smoothing, emptying the data before the serial number for starting data smoothing, and if the remaining data amount after emptying is less than a ninth preset amount or greater than a tenth preset amount, or the preset multiple of the first data in the remaining data after emptying is greater than the maximum value, judging that the data is invalid, and emptying the currently acquired data.

7. The method of claim 6, further comprising:

after the acquired data are obtained, data acquisition is continued, and if the current internal code value is larger than the maximum value in the current data, the current internal code value is marked as the maximum value;

if the current internal code value is smaller than one third of the maximum value in the current array, and the number of data in the current array is greater than or equal to an eleventh preset amount and less than or equal to a twelfth preset amount, judging whether the data of the last thirteenth preset amount in the current array and the maximum value in the current array are both in a preset range, if data which are not in the preset range exist, removing the data which are not in the preset range from the array, and taking the maximum value of the residual data in the array as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

8. The method of any one of claims 1 to 7, further comprising:

acquiring the speed of the detected vehicle;

acquiring a preset speed coefficient corresponding to the speed according to the speed of the detected vehicle;

and correcting the second axle weight of the target axle according to the preset speed coefficient.

9. A terminal comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that the processor implements the steps of the method according to any of the preceding claims 1 to 8 when executing the computer program.

10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.

Technical Field

The invention belongs to the technical field of road monitoring, and particularly relates to a high-speed non-stop weighing method, device and terminal based on a quartz sensor and a computer readable storage medium.

Background

With the rapid development of economy, the traffic demand is increasing. The development of the transportation industry promotes the development of economy in China, meanwhile, the phenomenon of over-limit and overload of vehicles transported on roads is more and more serious, and the over-limit and overload transportation of the vehicles causes great harm to roads, traffic safety and life and property safety of people.

In the static weighing of the traditional fixed monitoring station, a vehicle needs to be stopped to be checked when passing through the detection station, the method influences the normal traffic of the vehicle, the implementation cost is high, and the problems of occupied land site selection and the like are faced, so that the static weighing mode cannot meet the requirement of vehicle overload control.

In order to realize the rapid detection of the overload of the vehicle, a dynamic weighing technical means can be adopted. The weighing sensor that current dynamic weighing system used mainly is bent plate sensor and resistance strain gauge sensor, and wherein resistance strain gauge sensor receives external impact interference influence bigger, and the precision of weighing is low, and the life-span is short, and bent plate sensor stability and repeatability are poor in the use, and the life-span is short, is difficult to maintain. When the vehicle passes through a dynamic weighing system based on the two sensors at high speed, the weighing accuracy is poor.

Disclosure of Invention

In view of the above, the invention provides a high-speed non-stop weighing method, device, terminal and storage medium based on a quartz sensor, which can improve the weighing precision of dynamic weighing of vehicles.

The first aspect of the embodiment of the invention provides a high-speed non-stop weighing method based on a quartz sensor, which is applied to a road dynamic weighing system, wherein the road dynamic weighing system comprises a group of quartz sensors, an inlet induction coil and an outlet induction coil, which are pre-laid in a lane according to the driving direction corresponding to the lane, and the group of quartz sensors are positioned between the inlet induction coil and the outlet induction coil, aiming at any lane, the method comprises the following steps:

judging a lane where a detected vehicle runs according to a trigger signal of an induction coil received within preset time to obtain a plurality of quartz sensors corresponding to the detected vehicle and a correction coefficient of each quartz sensor in the plurality of quartz sensors;

acquiring a voltage signal of a target shaft acquired by each quartz sensor in n quartz sensors corresponding to the target shaft, wherein the target shaft is any one shaft of the vehicle to be detected;

for any quartz sensor in the n quartz sensors, multiplying a correction coefficient of the quartz sensor by an axle weight corresponding to a voltage signal of the target axle acquired by the quartz sensor to obtain a first axle weight of the target axle;

carrying out weighted average on the first axle weights of the target axles obtained by the n sensors to obtain the second axle weight of the target axle;

and adding the second axle weights of all the axles of the detected vehicle to obtain the weight of the detected vehicle.

In a second aspect, an embodiment of the present invention provides a terminal, including a memory, a processor, and a computer program stored in the memory and executable on the processor, where the processor implements the steps of the method according to the first aspect when executing the computer program.

In a third aspect, the present invention provides a computer-readable storage medium, which stores a computer program, and when the computer program is executed by a processor, the computer program implements the steps of the method according to the first aspect.

The embodiment of the invention provides a high-speed non-stop weighing method based on a quartz sensor, a terminal and a storage medium.

Drawings

In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the drawings needed to be used in the embodiments or the prior art descriptions will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without inventive exercise.

FIG. 1 is a flow chart of a high-speed non-stop weighing method based on a quartz sensor according to an embodiment of the present invention;

FIG. 2 is a schematic view of a lane on which a vehicle under test travels according to an embodiment of the present invention;

FIG. 3 is a schematic view of another lane of travel of a vehicle under test according to an embodiment of the present invention;

FIG. 4 is a schematic view of another lane of travel of a vehicle under test according to an embodiment of the present invention;

FIG. 5 is a schematic view of another lane of travel of a vehicle under test according to an embodiment of the present invention;

FIG. 6 is a flow chart for implementing another high-speed non-stop weighing method based on a quartz sensor according to an embodiment of the invention;

FIG. 7 is a flow chart for implementing another high-speed non-stop weighing method based on a quartz sensor according to an embodiment of the invention;

FIG. 8 is a schematic structural diagram of a high-speed non-stop weighing device based on a quartz sensor according to an embodiment of the invention;

fig. 9 is a schematic diagram of a terminal according to an embodiment of the present invention.

Detailed Description

In the following description, for purposes of explanation and not limitation, specific details are set forth, such as particular system structures, techniques, etc. in order to provide a thorough understanding of the embodiments of the invention. It will be apparent, however, to one skilled in the art that the present invention may be practiced in other embodiments that depart from these specific details. In other instances, detailed descriptions of well-known systems, devices, circuits, and methods are omitted so as not to obscure the description of the present invention with unnecessary detail.

In order to make the objects, technical solutions and advantages of the present invention more apparent, the following description is made by way of specific embodiments with reference to the accompanying drawings.

Referring to fig. 1, it shows a flowchart of an implementation of a high-speed non-stop weighing method based on a quartz sensor according to an embodiment of the present invention, which is detailed as follows:

s101, judging a lane where the detected vehicle runs according to the trigger signal of the induction coil received within the preset time, and obtaining a plurality of quartz sensors corresponding to the detected vehicle and a correction coefficient of each quartz sensor in the plurality of quartz sensors.

Optionally, the method provided by the embodiment of the invention is applied to a road dynamic weighing system, and for any lane, the road dynamic weighing system comprises a group of quartz sensors, an inlet induction coil and an outlet induction coil, which are pre-laid in the lane according to the driving direction corresponding to the lane, wherein the group of quartz sensors is located between the inlet induction coil and the outlet induction coil.

Fig. 2 illustrates a road dynamic weighing system provided by an embodiment of the invention, and arrows are used for indicating the specified driving direction of vehicles on corresponding lanes. As shown in fig. 2, a group of quartz sensors and two coils, which are respectively an inlet induction coil and an outlet induction coil, are pre-laid in each lane according to the driving direction corresponding to the lane. Taking the dynamic road weighing system shown in fig. 2 as an example for explanation, 8 quartz sensors are laid on each lane and are symmetrically arranged in two rows.

Taking a three-axis vehicle passing through the rightmost lane as an example, when the vehicle normally passes through the rightmost lane, the induction coil 1 is triggered, and then passes through the quartz sensor area, and each sensor can obtain weighing signals of three axes of the vehicle. And the left lane is used for obtaining a weighing signal corresponding to the axle weight on the left side of the vehicle, and the right lane is used for obtaining a weighing signal corresponding to the axle weight on the right side of the vehicle.

Optionally, for any lane, as shown in fig. 2, a group of quartz sensors corresponding to the lane are arranged in two symmetrical rows along the driving direction of the lane, the first lane and the second lane are two adjacent lanes in the same driving direction, and the first lane is located on the left side of the second lane along the driving direction.

The following describes a plurality of quartz sensors corresponding to a vehicle under test in different driving states:

in the first case: if the inlet induction coil and the outlet induction coil corresponding to the first lane are triggered successively within the preset time, and the inlet induction coil and the outlet induction coil corresponding to the lanes adjacent to the first lane are not triggered within the preset time, the detected vehicle runs on the first lane, and the detected vehicle corresponds to the plurality of quartz sensors and is a group of quartz sensors corresponding to the first lane.

With reference to fig. 2, that is, the induction coil 3 in the first lane is triggered first, the induction coil 4 in the first lane is triggered within a preset time, and the induction coil in the lane adjacent to the first lane are not triggered within the same preset time, which indicates that the vehicle normally travels in the first lane, and 8 quartz sensors in the first lane are quartz sensors corresponding to the vehicle to be tested. Along the running direction of the tested vehicle, the weighing signals obtained by the quartz sensors in the left row of the first lane correspond to the axle load on the left side of the tested vehicle, and the weighing signals obtained by the quartz sensors in the right row of the first lane correspond to the axle load on the right side of the tested vehicle.

In the second case: if the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously, and the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously within the preset time, the detected vehicle travels across the first lane and the second lane, and along the traveling direction of the vehicle, the quartz sensors in the row on the right side of the first lane and the quartz sensors in the row on the left side of the second lane are a plurality of quartz sensors corresponding to the detected vehicle.

Referring to fig. 3, the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously, that is, the induction coil 1 and the induction coil 3 are triggered simultaneously, and the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously within a preset time, that is, the induction coil 2 and the induction coil 4 are triggered simultaneously, which indicates that the vehicle to be detected travels across the first lane and the second lane, and along the traveling direction of the vehicle to be detected, the 4 sensors on the right side of the first lane and the 4 sensors on the left side of the second lane are multiple quartz sensors corresponding to the vehicle to be detected. The weighing signals corresponding to the 4 sensors on the right side of the first lane correspond to the axle load on the left side of the vehicle to be measured, and the weighing signals corresponding to the 4 sensors on the left side of the second lane correspond to the axle load on the right side of the vehicle to be measured.

In the third situation, if the induction coil of the second lane is triggered and the induction coil of the first lane is triggered within the preset time, the detected vehicle crosses the first lane from the second lane to the left to run, and the plurality of quartz sensors corresponding to the detected vehicle are all the quartz sensors with the number of collecting shafts larger than 1 in the first lane and the second lane.

Referring to fig. 4, the induction coil of the second lane, that is, the induction coil 1, is triggered first, and the induction coil of the first lane, that is, the induction coil 4, is triggered within a preset time, which indicates that the vehicle to be detected runs from the left of the second lane to the left of the first lane, and among the 16 quartz sensors of the first lane and the second lane, all the quartz sensors with the number of the acquisition axes greater than 1 are the quartz sensors corresponding to the vehicle to be detected. Among the plurality of quartz sensors corresponding to the vehicle to be measured, the weighing signal obtained by the sensor close to the left in the same row corresponds to the axle load on the left side of the vehicle to be measured, and the weighing signal obtained by the sensor close to the right in the same row corresponds to the axle load on the right side of the vehicle to be measured.

In the fourth situation, if the induction coil of the first lane is triggered and the induction coil of the second lane is triggered within the preset time, the detected vehicle crosses from the first lane to the second lane to run rightwards, and the plurality of quartz sensors corresponding to the detected vehicle are all quartz sensors with the number of collecting shafts being more than 1 in the first lane and the second lane.

Referring to fig. 5, the induction coil 3 in the first lane is triggered first, and the induction coil 2 in the second lane is triggered within a preset time, which indicates that the vehicle is driven from the right intersection of the first lane to the second lane, and among the 16 quartz sensors in the first lane and the second lane, all the quartz sensors with the number of the acquisition axes greater than 1 are the quartz sensors corresponding to the vehicle. Among the plurality of quartz sensors corresponding to the vehicle to be measured, the weighing signal obtained by the sensor close to the left in the same row corresponds to the axle load on the left side of the vehicle to be measured, and the weighing signal obtained by the sensor close to the right in the same row corresponds to the axle load on the right side of the vehicle to be measured.

By default, the quartz sensor coefficient is 1, i.e. the weight obtained by the sensor is equivalent to the real weight information. However, since the weight of the sensor is not completely accurate due to the rolling of the heavy object and the damage of the sensor itself, a correction factor is required to gain or attenuate the data detected by the sensor to obtain the accurate weight. The coefficients corresponding to the sensors are different from each other, so that the first to fourth cases are determined according to the lane in which the vehicle is traveling and the actual traveling condition of the vehicle, and the plurality of quartz sensors corresponding to the vehicle to be measured are determined according to the driving condition of the vehicle, so that the correction coefficient of each quartz sensor of the plurality of quartz sensors corresponding to the vehicle to be measured is obtained. The measured coefficients of the quartz sensors may be preset, or may be calculated according to the measured values of the sensors over a period of time, or the coefficients of each quartz sensor are reset along with the change of time, which is not limited in the embodiment of the present invention.

And S102, acquiring a voltage signal of a target axis acquired by each quartz sensor in the n quartz sensors corresponding to the target axis, wherein the target axis is any one axis of the vehicle to be detected.

In combination with the first condition in step S101, the vehicle normally runs on the first lane, the weighing signals obtained by the quartz sensors in the left row of the first lane correspond to the axle load on the left side of the vehicle to be measured, and the weighing signals obtained by the quartz sensors in the right row of the first lane correspond to the axle load on the right side of the vehicle to be measured. Taking a vehicle to be measured as a three-axis vehicle as an example, the vehicle to be measured is respectively a shaft 1, a shaft 2 and a shaft 3, each sensor in the left column obtains a voltage signal corresponding to the weight of the shaft on the left side of the shaft 1, a voltage signal corresponding to the weight of the shaft on the left side of the shaft 2 and a voltage signal corresponding to the weight of the shaft on the left side of the shaft 3, and each sensor in the right column obtains a voltage signal corresponding to the weight of the shaft on the right side of the shaft 1, a voltage signal corresponding to the weight of the shaft on the right side of the shaft 2 and a voltage signal corresponding to the weight of the shaft on the right side of the shaft 3.

S103, multiplying the correction coefficient of the quartz sensor by the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor aiming at any one quartz sensor in the n quartz sensors to obtain the first axle weight of the target axle.

In the embodiment of the present invention, taking the left shaft with the target shaft as the shaft 1 as an example, the corresponding n quartz sensors are a left row of sensors of the first lane, 4 sensors are provided from top to bottom, and taking the uppermost sensor as an example, the correction coefficient of the sensor is multiplied by the shaft weight corresponding to the voltage signal of the target shaft acquired by the sensor, so as to obtain the first shaft weight of the target shaft corresponding to the sensor.

And S104, carrying out weighted average on the first axis weight of the target axis obtained by the n sensors to obtain the second axis weight of the target axis.

With reference to the above example, each sensor in the left column obtains the first axle weight of the target axle, and the first axle weights of the target axles obtained by the 4 sensors are weighted and averaged to obtain an average value as the second axle weight of the target axle, where the second axle weight is the left axle weight of axle 1.

And S105, adding the second axle weights of all the axles of the vehicle to be measured to obtain the weight of the vehicle to be measured.

Continuing the above example, the left axle weight of the axle 1, the right axle weight of the axle 1, the left axle weight of the axle 2, the right axle weight of the axle 2, the left axle weight of the axle 3 and the right axle weight of the axle 3 are obtained, and the axle weights are added to obtain the axle weight of the vehicle to be measured.

Therefore, the method and the device judge the lane driving condition of the vehicle by the trigger signal of the induction coil on the lane to obtain the quartz sensor corresponding to the vehicle, correct the axle weight by the correction coefficient of the corresponding quartz sensor and improve the precision of the dynamic weighing of the vehicle.

Fig. 6 shows a flow chart of another implementation of the high-speed non-stop weighing method based on the quartz sensor according to the embodiment of the invention, which is detailed as follows:

s601, carrying out analog-to-digital conversion on the voltage signal of the target axis acquired by the quartz sensor to obtain an internal code value corresponding to the quartz sensor.

And obtaining a plurality of internal code values through analog-to-digital conversion.

S602, carrying out data preprocessing on the internal code value to obtain corrected data, and putting the corrected data into an array corresponding to the target axis.

In the present invention, the data in the array refers to the inner code value obtained in step S601.

Optionally, judging whether an inner code value greater than a first preset value exists, and if so, subtracting a second preset value from the inner code value greater than the first preset value; and/or replacing the current internal code value with the previous internal code value adjacent to the current internal code value if the absolute value of the difference between the current internal code value and the previous internal code value adjacent to the current internal code value is greater than a third preset value.

Optionally, the first preset value is 9900, the second preset value is 10000, and the third preset value is 1000.

And sequentially judging each internal code value, if the internal code value is larger than 9900, judging that the internal code value belongs to unreasonable data, and calculating the axle weight by using a correction value obtained by subtracting 10000 from the internal code value according to a large amount of experimental results to obtain reasonable axle weight information.

In the process of judging the current internal code value, if the previous internal code value of the current internal code value exists, the current internal code value is compared with the previous internal code value. If the absolute value of the difference between the two is larger than 1000, the current internal code value is invalid, and the current internal code value is replaced by the previous internal code value.

S603, collecting data in the array to obtain collected data, and only reserving the collected data in the array, wherein the collected data comprises a target internal code value, and the target internal code value is an internal code value corresponding to a first highest point in the correction data, which meets a preset size.

Optionally, the collecting process includes:

and sequentially judging the size of the correction data, and deleting the data of the foremost third preset quantity if the data quantity in the array reaches the second preset quantity and the data larger than the fourth preset quantity do not appear, wherein the third preset quantity is smaller than the second preset quantity.

Optionally, the fourth preset value is set to 12, and when the inner code value is greater than the fourth preset value, it indicates that a vehicle starts to pass through the quartz sensor.

Optionally, the second preset amount is set to 2500, and the third preset amount is set to 1000. And sequentially judging the data in the array, if no data larger than 12 appears in the first 2500 data, which indicates that no vehicle passes through the sensor, deleting the 1000 data positioned at the forefront of the array in real time in order to avoid the invalid data from occupying excessive storage space and increasing unnecessary calculation amount.

And when the data larger than the fourth preset value appears, the data amount in the array is larger than the fourth preset amount, removing the data before the data of the fifth preset amount before the current data, wherein the fifth preset amount is smaller than the fourth preset amount.

Alternatively, the fourth preset amount is set to 2000 and the fifth preset amount is set to 500.

When the internal code value is larger than 12, the vehicle starts to pass through the quartz sensor, if the data stored in the array at the moment is larger than 2000, only the current data, namely 500 data before the first data larger than the fourth preset value are reserved, and the data before the 500 data are removed, so that the invalid data can be prevented from occupying too much storage space and increasing unnecessary calculation amount.

And when data larger than a fourth preset value appears and the data amount in the array is larger than a sixth preset amount, judging the relationship between the current internal code value and the internal code value of the highest point positioned before the current internal code value, if the current internal code value is smaller than the internal code value of the highest point positioned before the current internal code value, adding 1 to the data amount of the descending point, if the current internal code value is larger than the internal code value of the highest point positioned before the current internal code value, resetting the number of the descending points to be 0, and marking the current internal code value as the highest point.

Optionally, the sixth preset amount is set to 8. When the data volume stored in the current array exceeds 8, judging the relationship between the highest point and the current internal code value: if the current internal code value is smaller than the highest point, adding 1 to the number of the descending points; otherwise, the number of the reset descending points is 0, and the current inner code value is marked as the highest point.

If the number of the continuous descending points exceeds the seventh preset amount, judging whether the value of the data of the highest point is larger than a fifth preset value, if so, judging that the value of the highest point accords with the preset size, and finishing the acquisition to obtain the acquired data.

Optionally, the seventh preset amount is set to 5, when the number of the continuously descending points exceeds 5 times, the size of the highest point and the preset value is judged, data is reasonable when the number of the continuously descending points exceeds the preset value, the maximum value is proved to be in accordance with the preset size, the mark collection is finished, and the collected data is obtained.

At this time, the obtained data of the highest point is the target internal code value.

S604, if the data volume of the acquired data is larger than a first preset volume and a serial number for starting data to be smooth exists, taking the weight corresponding to the target internal code value as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

Optionally, after acquiring the collected data, the method further includes: and if the data volume of the acquired data is greater than the eighth preset volume or the last data before the acquisition is finished is less than the sixth preset volume, judging that the data is invalid, and emptying the currently acquired data.

Optionally, the eighth preset amount is set to 9530 and the sixth preset amount is set to 5. And if the quantity of the data stored in the current array is more than 9530 or the last internal code value is less than 5 at the end of acquisition, indicating that the data in the array is invalid data, and clearing the currently acquired data.

If the data is valid, whether the data volume of the acquired data is larger than a first preset volume and whether a serial number for starting data smoothing exists is further judged.

Optionally, the first preset amount is set to 15, and when the number of data stored in the current array exceeds 15, the sequence number of the data starting to be smoothed is calculated.

If no serial number for starting data smoothing exists in the acquired data, the data is judged to be invalid, and the currently acquired data is emptied.

And if the acquired data has a serial number for starting data smoothing, emptying the data before the serial number for starting data smoothing, and if the remaining data amount after emptying is less than a ninth preset amount or greater than a tenth preset amount, or the preset multiple of the first data in the remaining data after emptying is greater than the highest point value, judging that the data is invalid and emptying the currently acquired data.

Optionally, the ninth preset amount is set to 15, the tenth preset amount is set to 5500, and the preset multiple is set to 2.1 times. And if the number of the data before the sequence number of the data starting to be smoothed is cleared, the number of the remaining data in the array is less than 15 or more than 5500, or the maximum value of 2.1 times of the first piece of data is larger, judging that the data is invalid, and clearing the current array.

Further, the present invention also includes:

and after the acquired data is obtained, continuing data acquisition, and if the current internal code value is larger than the maximum value in the current data, marking the current internal code value as the maximum value.

If the current internal code value is smaller than one third of the maximum value in the current array, and the number of data in the current array is greater than or equal to an eleventh preset amount and less than or equal to a twelfth preset amount, judging whether the data of the last thirteenth preset amount in the current array and the maximum value in the current array are both in a preset range, if the data which are not in the preset range exist, removing the data which are not in the preset range from the array, and taking the maximum value of the residual data in the array as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

Alternatively, the eleventh preset amount is set to 30, the twelfth preset amount is set to 3580, and the thirteenth preset amount is set to 5. If the current inner code value is less than one third of the maximum value in the array, and the number of data in the current array is more than or equal to 30 and less than or equal to 3580, the reasonability of the last 5 items of data and the reasonability of the maximum value are judged, unreasonable data are removed according to results, and single-axis data acquisition is completed.

It should be noted that, in the present invention, the settings of each preset value and preset amount can be set according to actual situations, and the specific numerical values shown in the embodiments of the present invention are only an example, and any setting of preset values and preset amounts based on the idea of the present invention is within the protection scope of the present invention.

Therefore, the voltage signal of the target shaft is filtered, so that the reliability of data is improved, and the precision of dynamic weighing of the vehicle is improved.

Fig. 7 shows a flow chart of another implementation of the high-speed non-stop weighing method based on the quartz sensor according to the embodiment of the invention, which is detailed as follows:

and S701, acquiring the speed of the detected vehicle.

Optionally, the instantaneous speed of the vehicle passing through the sensor may be calculated according to the absolute value of the time difference between the data collected by two adjacent rows of sensors and the distance information of the two adjacent rows of sensors.

S702, acquiring a preset speed coefficient corresponding to the speed according to the speed of the detected vehicle.

Alternatively, the faster the vehicle is traveling, the greater the sensor bias will be. Each gear speed corresponds to a preset speed coefficient, and the value of the coefficient can be obtained by analyzing according to an experimental result.

Optionally, for a vehicle with the speed of 20-102 km/h, the speed of the vehicle is divided by 5 to obtain a remainder, and a corresponding speed coefficient is obtained according to the remainder.

And S703, correcting the second axle weight of the target axle according to the preset speed coefficient.

Optionally, the first axle weight of the target axle is obtained by multiplying the axle weight obtained by the voltage signal of the quartz sensor by the correction coefficient of the sensor, and the second weight of the target axle is obtained by performing weighted average on the first axle weights of the target axles obtained by the n quartz sensors corresponding to the target axle.

The correction process in this step is to multiply the second weight of the target axis by the speed coefficient to obtain the corrected axle weight of the target axis.

Therefore, the axle weight is corrected according to the speed of the vehicle passing through the sensor, the method is more suitable for the actual use condition, and the precision of the dynamic weighing of the vehicle is further improved.

It should be understood that, the sequence numbers of the steps in the foregoing embodiments do not imply an execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present invention.

The following are embodiments of the apparatus of the invention, reference being made to the corresponding method embodiments described above for details which are not described in detail therein.

Fig. 8 is a schematic structural diagram of a high-speed non-stop weighing device based on quartz sensors according to an embodiment of the invention, which is applied to a dynamic weighing system for roads, wherein the dynamic weighing system for roads comprises a group of quartz sensors, an inlet induction coil and an outlet induction coil, which are pre-laid in the lane according to the driving direction corresponding to the lane, and the group of quartz sensors is located between the inlet induction coil and the outlet induction coil. For convenience of explanation, only the parts related to the embodiments of the present invention are shown, and detailed as follows:

as shown in fig. 8, the high-speed weighing apparatus 8 based on a quartz sensor includes: determination unit 81, acquisition unit 82, and weight calculation unit 83:

the judging unit 81 is configured to judge a lane where the vehicle to be detected runs according to a trigger signal of the induction coil received within a preset time, and obtain a plurality of quartz sensors corresponding to the vehicle to be detected and a correction coefficient of each quartz sensor of the plurality of quartz sensors;

the acquiring unit 82 is configured to acquire a voltage signal of the target axis acquired by each quartz sensor of the n quartz sensors corresponding to the target axis, where the target axis is any one axis of the vehicle to be detected;

the weight calculation unit 83 is configured to, for any one of the n quartz sensors, multiply the correction coefficient of the quartz sensor by the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor to obtain a first axle weight of the target axle;

the weight calculating unit 83 is further configured to perform weighted average on the first axial weights of the target axes obtained by the n sensors to obtain a second axial weight of the target axis;

the weight calculating unit 83 is further configured to add the second axle weights of all the axles of the vehicle to be measured to obtain the weight of the vehicle to be measured.

Optionally, for any lane, a set of quartz sensors corresponding to the lane is arranged in two symmetrical rows along the driving direction of the lane, the first lane and the second lane are two adjacent lanes in the same driving direction, and along the driving direction, the first lane is located on the left side of the second lane, and the determining unit 81 is configured to:

if the inlet induction coil and the outlet induction coil corresponding to the first lane are triggered successively within the preset time, and the inlet induction coil and the outlet induction coil corresponding to the lane adjacent to the first lane are not triggered within the preset time, the vehicle to be detected runs on the first lane, and the quartz sensors corresponding to the vehicle to be detected are a group of quartz sensors corresponding to the first lane;

if the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously, and the induction coil of the first lane and the induction coil of the second lane are triggered simultaneously within the preset time, the vehicle to be detected runs across the first lane and the second lane, and along the running direction of the vehicle, the quartz sensors in the row on the right side of the first lane and the quartz sensors in the row on the left side of the second lane are a plurality of quartz sensors corresponding to the vehicle to be detected;

if the induction coil of the second lane is triggered, and the induction coil of the first lane is triggered within the preset time, the vehicle to be tested crosses the first lane from the second lane to the left to run, and the plurality of quartz sensors corresponding to the vehicle to be tested are all quartz sensors with the number of collecting shafts being more than 1 in the first lane and the second lane;

if the induction coil of the first lane is triggered, and the induction coil of the second lane is triggered within the preset time, the detected vehicle crosses the first lane to the second lane to run rightwards, and the plurality of quartz sensors corresponding to the detected vehicle are all quartz sensors with the number of collecting shafts being greater than 1 in the first lane and the second lane.

Optionally, the weight calculating unit 83 is further configured to:

performing analog-to-digital conversion on the voltage signal of the target axis acquired by the quartz sensor to obtain an internal code value corresponding to the quartz sensor;

carrying out data preprocessing on the internal code value to obtain correction data, and putting the correction data into an array corresponding to the target axis;

acquiring data in the array to obtain acquired data, and only reserving the acquired data in the array, wherein the acquired data comprises a target internal code value, and the target internal code value is an internal code value corresponding to a first highest point in the correction data, which meets a preset size;

and if the data volume of the acquired data is greater than a first preset volume and a serial number for starting data to be smooth exists, taking the weight corresponding to the target internal code value as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

Optionally, the weight calculating unit 83 is further configured to:

judging whether an inner code value larger than a first preset value exists or not, and if so, subtracting a second preset value from the inner code value larger than the first preset value;

and/or replacing the current internal code value with the previous internal code value adjacent to the current internal code value if the absolute value of the difference between the current internal code value and the previous internal code value adjacent to the current internal code value is greater than a third preset value.

Optionally, the weight calculating unit 83 is further configured to:

sequentially judging the size of the correction data, and deleting the data of the foremost third preset quantity if the data quantity in the array reaches a second preset quantity and the data larger than a fourth preset value do not appear, wherein the third preset quantity is smaller than the second preset quantity;

when data larger than the fourth preset value appears and the data amount in the array is larger than the fourth preset amount, removing data before the data of a fifth preset amount before the current data, wherein the fifth preset amount is smaller than the fourth preset amount;

when data larger than the fourth preset value appears and the data amount in the array is larger than a sixth preset amount, judging the relationship between the current internal code value and the internal code value of the highest point positioned before the current internal code value, if the current internal code value is smaller than the internal code value of the highest point positioned before the current internal code value, adding 1 to the data amount of a descending point, if the current internal code value is larger than the internal code value of the highest point positioned before the current internal code value, resetting the number of the descending points to be 0, and marking the current internal code value as the highest point;

if the number of the continuous descending points exceeds a seventh preset amount, judging whether the value of the data of the highest point is larger than a fifth preset value, if so, judging that the value of the highest point accords with a preset size, and finishing acquisition to obtain the acquired data.

Optionally, the weight calculating unit 83 is further configured to:

if the data volume of the acquired data is greater than the eighth preset volume or the last data before the acquisition is finished is less than the sixth preset value, judging that the data is invalid, and emptying the currently acquired data;

if no serial number for starting data to be smooth exists in the acquired data, judging that the data is invalid, and emptying the currently acquired data;

and if the acquired data has a serial number for starting data smoothing, emptying the data before the serial number for starting data smoothing, and if the remaining data amount after emptying is less than a ninth preset amount or greater than a tenth preset amount, or the preset multiple of the first data in the remaining data after emptying is greater than the maximum value, judging that the data is invalid, and emptying the currently acquired data.

Optionally, the weight calculating unit 83 is further configured to:

after the acquired data are obtained, data acquisition is continued, and if the current internal code value is larger than the maximum value in the current data, the current internal code value is marked as the maximum value;

if the current internal code value is smaller than one third of the maximum value in the current array, and the number of data in the current array is greater than or equal to an eleventh preset amount and less than or equal to a twelfth preset amount, judging whether the data of the last thirteenth preset amount in the current array and the maximum value in the current array are both in a preset range, if data which are not in the preset range exist, removing the data which are not in the preset range from the array, and taking the maximum value of the residual data in the array as the axle weight corresponding to the voltage signal of the target axle acquired by the quartz sensor.

Optionally, the weight calculating unit 83 is further configured to:

acquiring the speed of the detected vehicle;

acquiring a preset speed coefficient corresponding to the speed according to the speed of the detected vehicle;

and correcting the second axle weight of the target axle according to the preset speed coefficient.

Therefore, the method and the device judge the lane driving condition of the vehicle by the trigger signal of the induction coil on the lane to obtain the quartz sensor corresponding to the vehicle, correct the axle weight by the correction coefficient of the corresponding quartz sensor and improve the precision of the dynamic weighing of the vehicle.

Fig. 9 is a schematic diagram of a terminal according to an embodiment of the present invention. As shown in fig. 9, the terminal 9 of this embodiment includes: a processor 90, a memory 91 and a computer program 92 stored in said memory 91 and executable on said processor 90. The processor 90, when executing the computer program 92, implements the steps of the above-described embodiments of the quartz sensor-based high-speed non-stop weighing method, such as steps 101 to 105 shown in fig. 1. Alternatively, the processor 90, when executing the computer program 92, implements the functions of the modules/units in the above-described device embodiments, such as the modules/units 81 to 83 shown in fig. 8.

Illustratively, the computer program 92 may be partitioned into one or more modules/units that are stored in the memory 91 and executed by the processor 90 to implement the present invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution of the computer program 92 in the terminal 9. For example, the computer program 92 may be divided into modules/units 81 to 83 shown in fig. 8.

The terminal 9 may be a desktop computer, a notebook, a palm computer, a cloud server, or other computing devices. The terminal 9 may include, but is not limited to, a processor 90, a memory 91. It will be appreciated by those skilled in the art that fig. 9 is only an example of a terminal 9 and does not constitute a limitation of the terminal 9 and may comprise more or less components than those shown, or some components may be combined, or different components, for example the terminal may further comprise input output devices, network access devices, buses, etc.

The Processor 90 may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic, discrete hardware components, etc. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.

The memory 91 may be an internal storage unit of the terminal 9, such as a hard disk or a memory of the terminal 9. The memory 91 may also be an external storage device of the terminal 9, such as a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card) and the like provided on the terminal 9. Further, the memory 91 may also include both an internal storage unit and an external storage device of the terminal 9. The memory 91 is used for storing the computer program and other programs and data required by the terminal. The memory 91 may also be used to temporarily store data that has been output or is to be output.

It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-mentioned division of the functional units and modules is illustrated, and in practical applications, the above-mentioned function distribution may be performed by different functional units and modules according to needs, that is, the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-mentioned functions. Each functional unit and module in the embodiments may be integrated in one processing unit, or each unit may exist alone physically, or two or more units are integrated in one unit, and the integrated unit may be implemented in a form of hardware, or in a form of software functional unit. In addition, specific names of the functional units and modules are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present application. The specific working processes of the units and modules in the system may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.

In the above embodiments, the descriptions of the respective embodiments have respective emphasis, and reference may be made to the related descriptions of other embodiments for parts that are not described or illustrated in a certain embodiment.

Those of ordinary skill in the art will appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present invention.

In the embodiments provided in the present invention, it should be understood that the disclosed apparatus/terminal and method may be implemented in other ways. For example, the above-described apparatus/terminal embodiments are merely illustrative, and for example, the division of the modules or units is only one logical division, and there may be other divisions when actually implemented, for example, a plurality of units or components may be combined or may be integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.

The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.

In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.

The integrated modules/units, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, all or part of the flow of the method according to the above embodiments may be implemented by a computer program, which may be stored in a computer readable storage medium, and when the computer program is executed by a processor, the steps of the embodiments of the quartz sensor-based high-speed non-stop weighing method may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-Only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, and the like. It should be noted that the computer readable medium may contain other components which may be suitably increased or decreased as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media which may not include electrical carrier signals and telecommunications signals in accordance with legislation and patent practice.

The above-mentioned embodiments are only used for illustrating the technical solutions of the present invention, and not for limiting the same; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; such modifications and substitutions do not substantially depart from the spirit and scope of the embodiments of the present invention, and are intended to be included within the scope of the present invention.

23页详细技术资料下载
上一篇:一种医用注射器针头装配设备
下一篇:并行车辆的动态称重方法、设备、系统及存储介质

网友询问留言

已有0条留言

还没有人留言评论。精彩留言会获得点赞!

精彩留言,会给你点赞!

技术分类