




已阅读5页,还剩12页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
文献翻译道路撞击检测系统中英文资料外文翻译文献 线性扫描式照相机控制的道路检测系统的研究摘要:本论文描述了基于GPS和单片机的串行端口通讯技术的道路检测系统,该技术过去常常用来控制线性扫描式照相机。本论文集中论述了GPS和串行端口通讯以及单片机控制程序。通过对比和分析大量的实验数据和该系统对高速行驶的汽车拍摄的一系列图片,显示出该系统的设计满足了对于道路检测系统在实时线性扫描式照相机中外部触发器控制的要求。这一结果显示以高速拍摄的这些图片是相当清晰的。关键词:GPS,单片机,串行通讯,撞击检测1绪论由于车辆的超重,雨水的腐蚀,气候的变化,道路可能被毁坏。使用传统的撞击检测方法可能导致不良效果,高额成本,不安全已经检测结果缺乏一致性。随着计算机软硬件技术的发展,自动化道路检测技术变为可能。这一技术不仅极大的改善提高了检测的准确率,缩短了检测周期,而且克服了检测的主体性。在自动化道路检测领域有重大的意义。目前,我国与发达国家的道路检测技术仍然存在着巨大差距。 在道路撞击检测系统中,线性扫描式照相机记录关于道路的高速实时照片,然后将照片发送至主要的图像处理计算机,最后通过图像分析软件处理照片,得出撞击的位置,长度以及面积为了得出对于道路保养的相关信息。该检测系统主要是由汽车,线性扫描式照相机,GPS,计算机,图像处理软件,单片机控制系统。使用该系统检测沥青道路可以发现仅仅2毫米宽或长的撞击和撞击的位置。通过使用高速GPS1和单片机控制算法,认识到对于线性扫描式照相机的实时控制根据每2毫米产生一触发信号。这一检测结果满足该系统的要求,与此同时获得了更为清晰的道路动态图像。线性扫描式照相机控制系统的设计结构如下图1-1所示图1-1 线性扫描式照相机控制系统设计结构图2.GPS和单片机串行端口通讯以及控制实现方式通过GPS的使用,这一系统主要被用作测量撞击的位置和车辆的速度。GPS和单片机的连接依靠RS232串行接口标准。RS232定义为在数据终端设备(DTE)和数据通讯设备(DCE)之间的物理接口标准2。单片机串行端口初始化程序依靠特殊功能寄存器PCON和功率控制寄存器SCON。SCON串行端口被用作设置工作模式,接收或发送控制/状态信号。串行端口有四种工作模式。该系统使用工作模式2。由于安装了波特率为4800的GPS,不再需要计算它。通讯模式采用8-N-1。GPS定位模式有2种。一种是信号点定位模式,另一种是不同的定位模式。信号点定位方式一直使用一个GPS接收器为了接收3或4个卫星信号以便于确定接收信号的位置。但是它的错误率相对比较高,甚至高达515米。GPS有不同种类的数据格式,通常我们在数据的开头使用$GPRMC格式,设置它作为标准接收数据格式。GPS使用RS232来传输数据,所以我们应该在GPS和SCM之间添加一个MAX232来完成逻辑标准转换。转换后的数据被直接传输到SCM后,该系统能够获得车辆的速度值。电路设计如下图2-1所示。图2-1 GPS&SCM串行通讯接口电路设计该系统采用COM 1传输数据,波特率为4800。单片机串行端口采用工作方式2。以下是部分执行程序:TMOD=0x20;/定时器 1 工作模式2 (主要用于定时)TL1=0xf3;11TH1=0xf3;SCON=0x50;PCON=0x00;IE=0x90;/串行端口中断许可TR1=1; 串行 () 中断 4 使用 1 /串行端口中断服务功能实现RI=0; /软件清除中断标记if (SBUF=0x24)num+;record=1;i=0;k=0;r=1;igps=0;/记录速度数据的数字numbercoma=0; if (record=1) / Begin to judge whether the data received 开始判断这一数据是否接受GPRMC格式 s=GPRMC;stringk=SBUF;k+;r=strcmp(string,s);if(r=0) if(SBUF=0x2c) numbercoma+;/记录逗号的个数if(numbercoma=2)if(SBUF=0x41)/ 如果第二个判断是A,那么数据有效if (numbercoma=7) /位于第七个逗号后的字符代表速度信号stringgpsigps=SBUF; /将这个字符赋予字符串 stringgps 中igps+; / the first command is over when receive the second $, Variable given the initial value当接受到赋予初值的第二个$时第一条命令结束if (num=2)stringgpsigps=0; / The end of the data presented at the end of the string字符串结束标志位numbercoma=0; num=0; Record=0; igps=0; /当变量为零时重新接受速度数据3单片机控制的实时行扫描照相机单片机控制的实时行扫描照相机使用单片机89C513微控制机。由于每两毫米产生一个触发信号的需要给照相机,该系统使用计时器来控制单片机中的触发时间,显示来自依靠串行通讯的GPS的车辆速度4。它使用该单片机的T1计时器来计时。计时器的模式采用模式1。它需要计算间隔时间,该时间是2毫米的触发器根据车辆的速度值所得到的。在这一模式中,该系统预先设置时间作为12秒使用计时器T1,依靠P20端口标准输出来实现对于照相机的控制。该系统使用方式1计时。该方式能获得更多的计时时间和更大的计时周期。该检测系统能过满足照相机工作频率的要求5。通过使用软件来控制TF1和TR1能够得到最好的计时器输入和输出,这意味着依靠计时器的时间和计时周期来控制触发器信号。该系统选择计时器1的模式1工作。振晶为12MHz。机器周期为1s,预设时间周期为12s,接着12s =(2-Y)*1s,然后计算初始计时值Y作为65,524,将这一值放进16位计时器,接受启动T1计时器。当计时时间为12s时结束,TF1=1。根据不同的速度值和公式:x=3000/v,计算周期时间和为了控制照相机的工作频率获得P20高低水平控制。以下是部分执行程序:int v=35;int x;/加入速度值,作为一变量x=(3000)/(v); /计算周期时间led_on();time_lms(x);led_off();time_lms(x);while(1);time_lms(lms)TMOD=TMOD& (0x0f)|0x10;TR1=1; /开始计时While (lms-)TH1=65524/256;TL1=65524/256;While (!TF1)TF1=1;TR1=0;led_off()P2_0=1;led_on()P2_0=0;3 图像分析和对比系统使用GPS为了定位起始位置并且将道路公里数结合于标记精确的道路撞击地点6。由于该系统需要在车辆运行时拍摄道路的动态照片,同时需要满足每两毫米拍摄一帧图片的要求,因此该系统需要控制线性扫描式照相机的工作频率以获得实时照片。该系统使用GPS为了获得车辆的速度值,并且通过串行通讯传输该速度值至单片机控制系统以实现每两毫米拍摄一帧照片的照相机控制。由于该系统采用线性排列的照相机,它需要在每毫米的距离提供一个触发信号来满足两毫米宽度路面撞击的检测精度要求7。如果该系统并未采用实时控制照相机的工作频率,那么线性扫描式照相机接受到的大部分照片是不清晰的。由于车辆在行驶中的速度总是不断变化的,使用该论文中设计的控制系统将获得更加清晰路面照片8。采用恒定的频率采集方式将达不到如此清晰的动态照片。该论文设计的系统满足道路撞击检测精度要求。与此同时下面的图片提供了可靠的根据。图3-1和图3-2是拍摄的两张道路检测的照片案例。图3-1 实时控制照相机采集的照片图3-2 非实时照相机采集的照片4 结论该系统设计实现了以下功能:(1) 该系统通过硬件和软件的设计实现了速度值的测量,并且设计了控制GPS和单片机串行通讯的程序9。(2) 根据车辆的速度值程序控制P20单片机端口输出电压以监控线性扫描式实时照相机的工作频率。(3) 该系统使道路撞击检测精确度要求达到了2毫秒级别的精度,并且能够获得十分清晰的动态图片以至在公路检测方面达到很好的效果。(4) 通过对比采集照片的质量和大量的外围实验数据显示,该设计系统能够在车辆高速行驶的情况下获得清晰的动态照片。Line-Scan Camera Control Pavement DetectionSystem ResearchZhao-yun Sun1, Ai-min Sha2, Li Zhao3, and Chang-rong Xie1 College of information engineering, Changan University, Xian 710064, C2 College of road, Changan University, Xian 710064, China3 College of information engineering, Changan University, Xian 710064, ChinaAbstract. The paper designs the pavement detecting system, which is based on GPS and the serial port communication technology of the SCM (single-chipmicrocomputer) used to control the line-scan camera. The paper focuses on GPS and the serial port communication as well as the control programs of singlechip microcomputer .By comparing and analyzing large amounts of experiments data and the serial images which are obtained in the high-speed vehicle moving by using this system, it shows that this system design satisfies the requirement of external trigger control in real-time line-scan camera for the pavement detection system. The result shows that the images obtained in high speed are much clearer.Keywords: GPS; single-chip microcomputer; serial communication; crack detection.1 IntroductionBecause of the overweight of vehicles, rain erosion, climate change, the pavement may be destroyed. Using traditional crack detecting methods may lead to low efficiency, high cost, insecurity and poor consistency of detecting results. With the development of computer hardware and software technology, automatic pavement detection technology becomes possible. It not only greatly improves the detection rate, shortens the detecting cycle, but also overcomes the subjectivity of the detecting. It has great significance in the automatic pavement detection field. At present, there is still a wide gap between Chinas road detecting technology and the developed countries. In the pavement crack detection system, the line-scan camera first captures highspeed real-time images about the road, then sends it to the main image processor computer, at last processes it with image analysis software, get the cracks place, length and area so as to give reference to the road maintenance. Detection system is composed of the vehicle, line-scan camera, GPS, computer, image processing software, SCM control system. Detecting the asphalt pavement by use of the system can find the crack which is more than two millimeters, including its width, length and locations. By using the speed of GPS 1 and SCM control algorithms, it realizes the real time control for line-scan camera according to every two millimeters to give a Line-Scan Camera Control Pavement Detection System Research 9 triggering signal. The detecting results meet the requirements of the system, meanwhile,obtain much clearer pavement moving images.The design structure of line-scan camera control system is shown in Fig 1.Fig 1. Line-scan camera control system design structure2 GPS and SCM Serial Port Communication as Well as Control Realizing MethodBy using GPS, the system is mainly used to obtain the crack location and the speed of the vehicle. The link between GPS and SCM depends on the RS232 serial interface standard. RS232 defines the physical interface standards between the data terminal equipment (DTE) and the data communications equipment (DCE) 2. SCM serial port initializes programming finished by the special function register PCON and power control SCON register. SCON serial port is used to set the working modes, accept or send the control / state signal. The serial port has four working modes. This system uses working mode 2. Because the GPS 4800 baud rate is fixed, there is no need to calculate it. Communication mode adopts 8-N-1. GPS locating method has two modes. One is a single point locating mode. The other one is differential locating mode. Single-point approach is using a GPS receiver to receive three or four satellite signals so as to determine the location of receiving points. But its error is larger relatively, even up to 5 15 m. GPS has several kinds of data formats, typically we use $ GPRMC at the beginning of the data, set it as the standard receiving data format. GPS uses the RS232 to transfer data, so we should plus a MAX232 between GPS and SCM to finish logic level conversion. After the conversion data can be directly transmitted to the SCM, the system can obtain the speed value of the vehicle. The circuit design is shown in Fig.2.Fig. 2. GPS & SCM serial communication interface circuit designThe system adopts com1 to transfer data. The baud rate is 4800. SCM serial portadopts the mode 2 to work. Part of the realizing program is as follows:TMOD=0x20; /timer1 working mode 2 (mainly used for timing)TL1=0xf3;11TH1=0xf3; SCON=0x50; PCON=0x00; IE=0x90;/serial port interrupt permittingTR1=1; serial () interrupt 4 using 1 /Serial port interrupt service functionRI=0; /software clear interrupt indexif (SBUF=0x24)num+;record=1;i=0;k=0;r=1;igps=0;/ variables Recording number of charactersspeed datanumbercoma=0; if (record=1) / Begin to judge whether the data receivedGPRMC format s=GPRMC;stringk=SBUF;k+;r=strcmp(string,s);if(r=0) if(SBUF=0x2c) numbercoma+;/record the numbers of commaif(numbercoma=2)if(SBUF=0x41)/ if the second judge is A, then the data is validif (numbercoma=7) /the character followed the seventh comma is speed signalstringgpsigps=SBUF; /put the character into the string stringgps igps+; / the first command is over when receive the second $, Variable giventhe initial valueif (num=2)stringgpsigps=0; / The end of the data presented at the end of thestringnumbercoma=0; num=0; Record=0; igps=0; /restart receiving speed data whenVariable get zero.3 SCM Control the Line- Scan Camera in Real-TimeSCM controls the line-scan camera in real-time by using SCM 89 C51 3 microcontroller.Due to the need of every two millimeters to give a trigger signal to the camera, the system uses timer to control the trigger time in SCM, reads the vehicles speed from the GPS by serial communication 4. It uses the SCM T1 timer to time. The timing mode adopts mode1. It needs to calculate the interval time required by 2 millimeters to trigger according to the vehicles speed value. In this method, the system presets time to be 12 seconds by using timers T1, depends on the P20 port level output to realize the control for camera. The system uses manner 1 to time .This mode can get much timing time and more timing cycles. The detection system can meetthe requirements of the cameras work frequency5. It can get the best timer input and output by using software to control TF1 and TR1, which means depending on the timers time and timing cycles to control trigger signal. The system selects timer1s mode 1 to work. The crystal is 12 MHz. The machine cycle is 1s. presetting time period is 12s,then 12s = (2 -Y)*1s, next calculates the initial timing value Y as 65,524 and puts it into a 16 bits timer, then starts T1 to work .When the timing time12s is over, TF1 = 1. According to the different speed values and formula: x=3000v, calculate the cycle times and get to control for P20 high-low level so as to control the working frequency of the camera. Part of the realizing programs asfollows:int v=35;int x;/adding the speed values, there is a Valuationx=(3000)/(v); /calculate the cycle timesled_on();time_lms(x);led_off();time_lms(x);while(1);time_lms(lms)TMOD=TMOD& (0x0f)|0x10;TR1=1; /start the timerWhile (lms-)TH1=65524/256;TL1=65524/256;While (!TF1)TF1=1;TR1=0;led_off()P2_0=1;led_on()P2_0=0;3 Image Analysis and ComparisonThe system uses GPS to locate the beginning place and combines the road kilometer piles to mark the exact pavement cracks place 6. Because the system needs to capture the pavement dynamic images in the vehicle moving, at the same time, meet the requirements two meters to give a frame image , thus the system needs to control the work frequency of line-scan camera to obtain real-time images. The system uses GPS to get the speed of the vehicle, and then sends it to the SCM control system by the serial communication, realizes the control for camera according to each two meters to capture a frame. Because the system adopts the linear array camera, it needs to give a trigger signal in each millimeter to meet the accuracy requirement of detecting two millimeters width pavement cracks 7. If the system does not adopt real-time control for the camera work frequency, most of the moving images received by line-scan camera are not clear. Because the speed of the vehicle is always changing in the moving, using the control system designed in this paper will obtain much clearer road images 8. Adopting fixed frequency acquisition method has no very good moving image effect. The system designed in this paper satisfies the pavement cracks detection acquisition requirement. Meanwhile it lays a good foundation for the following image processing. Two examples of capturing pavement detection images are Fig 3 and Fig 4.Fig. 3. Real-time control capturing acquisition imagesFig. 4. Non- real-time capturing acquisition images4 ConclusionThe system design realizing the functions are as follows:(1) The system realizes the speed values measurement by designing hardware and software, programs to control GPS and SCM serial communication 9.(2) According to the vehicles speed value, programs control SCM P20 port output voltage to supervise the work frequency of the line-scan camera in real-time.(3) The system finishes the pavement cracks detection accuracy requirement which is to recognize 2mm crack. It can obtain much clearer moving images and also run well in the highway dete
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年中国家用厨房用品行业市场全景分析及前景机遇研判报告
- 设备设施缺陷管理制度
- 设计勘查安全管理制度
- 2025年中国鸡冠提取物行业市场全景分析及前景机遇研判报告
- 诊室医护日常管理制度
- 诊所消毒卫生管理制度
- 诊疗质量监督管理制度
- 财务账本凭证管理制度
- 财富公司风险管理制度
- 货代公司工位管理制度
- 气象行业天气预报技能竞赛理论试题库资料(含答案)
- 城市轨道交通车辆检修工(中级)技能鉴定考试题库资料(含答案)
- 山东省烟台市莱山区(五四制)八年级下学期期末数学试题(解析版)
- 一把手讲安全课件:提升全员安全意识
- 校园环保之星事迹材料(7篇)
- 四川省成都市金牛区2023-2024学年七年级下学期期末数学试题
- 人教版初中政治名言总结
- 植物学基础智慧树知到期末考试答案章节答案2024年哈尔滨师范大学
- 白豆蔻提取物的药理药效学研究
- 2024届广东省深圳市龙岗区八年级下册数学期末考试试题含解析
- 2022-2023学年浙江省温州市八年级(下)期末数学试卷(附答案详解)
评论
0/150
提交评论