CN108872963B - Laser radar control method - Google Patents

Laser radar control method Download PDF

Info

Publication number
CN108872963B
CN108872963B CN201810763523.XA CN201810763523A CN108872963B CN 108872963 B CN108872963 B CN 108872963B CN 201810763523 A CN201810763523 A CN 201810763523A CN 108872963 B CN108872963 B CN 108872963B
Authority
CN
China
Prior art keywords
radar
upper computer
data
connection
udp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201810763523.XA
Other languages
Chinese (zh)
Other versions
CN108872963A (en
Inventor
黄诚
彭凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Dahan Zhengyuan Technology Co ltd
Original Assignee
Beijing Dahan Zhengyuan Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Dahan Zhengyuan Technology Co ltd filed Critical Beijing Dahan Zhengyuan Technology Co ltd
Priority to CN201810763523.XA priority Critical patent/CN108872963B/en
Publication of CN108872963A publication Critical patent/CN108872963A/en
Application granted granted Critical
Publication of CN108872963B publication Critical patent/CN108872963B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G01MEASURING; TESTING
    • G01SRADIO DIRECTION-FINDING; RADIO NAVIGATION; DETERMINING DISTANCE OR VELOCITY BY USE OF RADIO WAVES; LOCATING OR PRESENCE-DETECTING BY USE OF THE REFLECTION OR RERADIATION OF RADIO WAVES; ANALOGOUS ARRANGEMENTS USING OTHER WAVES
    • G01S7/00Details of systems according to groups G01S13/00, G01S15/00, G01S17/00
    • G01S7/48Details of systems according to groups G01S13/00, G01S15/00, G01S17/00 of systems according to group G01S17/00

Abstract

The invention relates to a laser radar control method, which comprises the following steps: s1: establishing UDP communication connection between the radar and the upper computer; s2: continuously sending UDP data packets to the radar in the local area network through the upper computer; s3: the radar sends a request to the upper computer after receiving the UDP data packet, and TCP connection is established; s4: after the TCP connection is established, the radar sends the equipment state to the upper computer through the TCP connection; s5: the upper computer receives the equipment state data sent by the radar and then controls the radar or configures radar parameters through the TCP channel; s6: and the radar sends scanning data to the upper computer through UDP connection. The scheme is based on the Ethernet and comprises two types of connection, namely TCP connection and UDP connection, wherein according to the characteristics of the TCP connection and the UDP connection, the TCP connection is used for transmitting information such as radar parameters and radar states; the UDP connection is used only for transmitting scan data.

Description

Laser radar control method
Technical Field
The invention relates to the field of radars, in particular to a laser radar control method.
Background
The laser radar is a radar system that detects a characteristic amount such as a position and a velocity of a target by emitting a laser beam. The working principle is that a detection signal (laser beam) is emitted to a target, then a received signal (target echo) reflected from the target is compared with the emitted signal, and after appropriate processing, relevant information of the target, such as target distance, azimuth, height, speed, attitude, even shape and other parameters, can be obtained, so that the targets of airplanes, missiles and the like are detected, tracked and identified. The laser changes the electric pulse into optical pulse and emits it, and the optical receiver restores the reflected optical pulse from the target into electric pulse and sends it to the display. The laser is used as a transmitting light source, the photoelectric detection technology is mainly adopted, and the laser radar is an advanced detection mode combining the laser technology and the modern photoelectric detection technology. The system consists of a transmitting system, a receiving system, information processing and the like. The emitting system is composed of various lasers, such as a carbon dioxide laser, a neodymium-doped yttrium aluminum garnet laser, a semiconductor laser, a wavelength tunable solid laser, an optical beam expanding unit and the like; the receiving system adopts a telescope and various forms of photodetectors, such as photomultiplier tubes, semiconductor photodiodes, avalanche photodiodes, infrared and visible light multi-element detection devices, and the like. The laser radar adopts 2 working modes of pulse or continuous wave, and the detection method can be divided into laser radars of meter scattering, Rayleigh scattering, Raman scattering, Brillouin scattering, fluorescence, Doppler and the like according to different detection principles.
The laser radar usually needs to configure certain parameters, and if program change is carried out on hardware every time, the efficiency is too low, and the operation is inconvenient; in addition, after the received light beam is processed, data is transmitted to the back end through a software protocol, and a human-computer interface is required to be provided for friendly display of results, so that the results can be conveniently viewed and analyzed. Therefore, lidar control software is necessary.
Disclosure of Invention
The invention aims to overcome the defects of the prior art and provide a laser radar control method to realize the communication between laser radar software and a laser radar. The communication scheme is based on Ethernet and comprises two types of connection, namely TCP connection and UDP connection, wherein according to the characteristics of the TCP connection and the UDP connection, the TCP connection is used for transmitting information such as radar parameters and radar states; the UDP connection is used only for transmitting scan data.
The purpose of the invention is realized by the following technical scheme:
a laser radar control method comprises the following steps:
s1: establishing UDP communication connection between the radar and the upper computer;
s2: continuously sending UDP data packets to the radar in the local area network through the upper computer;
s3: the radar sends a request to the upper computer after receiving the UDP data packet, and TCP connection is established;
s4: after the TCP connection is established, the radar sends the equipment state to the upper computer through the TCP connection;
s5: the upper computer receives the equipment state data sent by the radar and then controls the radar or configures radar parameters through the TCP channel;
s6: and the radar sends scanning data to the upper computer through UDP connection.
As a further improvement of the scheme, after the TCP connection is successfully established, the two sides can carry out bidirectional command interaction and the radar transmits scanning data to the upper computer.
As a further improvement of the scheme, the data of the request sent by the radar to the upper computer comprises identity information and a unique identification number.
As a further improvement of the scheme, after the radar is on line, the equipment state is sent to the upper computer at fixed time intervals T or when the working state is changed.
As a further improvement of the scheme, the time T is 10-20 seconds.
As a further improvement of the solution, the status is represented by a fault code, covering the operating status of each sub-module.
As a further improvement of the scheme, the data transmission adopts a line-by-line transmission mode, that is, the scanning result sends data of one line at a time, wherein the data includes a line index, a starting column index, and the number of points included in the data of the frame.
As a further improvement of the scheme, the time interval of the upper computer continuously sending the UDP broadcast data packets twice is 10-20 seconds.
As a further improvement of the scheme, an information connection port number needs to be attached to the UDP broadcast packet.
As a further improvement of the scheme, the upper computer can modify the parameters of the radar at any time.
The invention has the beneficial effects that: according to the scheme, two connection channels, namely TCP connection and UDP connection, are established between the radar and the upper computer, different communication channels are distributed according to communication contents between the radar and the upper computer, radar control, parameter configuration and the like are carried out by utilizing TCP, data transmission is carried out by utilizing UDP, namely, the communication contents between the radar and the upper computer are divided into instruction types and data types, the instruction types are transmitted by adopting TCP, and the data are transmitted by adopting UDP.
Drawings
FIG. 1 is a system block diagram of the present invention;
fig. 2 is a communication flow diagram of the present invention.
Detailed Description
The technical solution of the present invention is further described in detail with reference to the following specific examples, but the scope of the present invention is not limited to the following.
As shown in fig. 1:
a laser radar control method comprises the following steps:
s1: establishing UDP communication connection between the radar and the upper computer;
s2: continuously sending UDP data packets to the radar in the local area network through the upper computer;
s3: the radar sends a request to the upper computer after receiving the UDP data packet, and TCP connection is established;
s4: after the TCP connection is established, the radar sends the equipment state to the upper computer through the TCP connection;
s5: the upper computer receives the equipment state data sent by the radar and then controls the radar or configures radar parameters through the TCP channel;
s6: and the radar sends scanning data to the upper computer through UDP connection.
A system using the laser radar control method, the system comprising:
the upper computer is provided with an information receiving/transmitting module for continuously transmitting UDP broadcast data packets to the local area network;
the upper computer is provided with a monitoring port for responding to the connection request of the radar at any time;
the radar system receives a UDP (user Datagram protocol) broadcast data packet after the radar is started and enters a local area network, the UDP broadcast data packet needs to be accompanied by an information connection port number, the radar communicates and identifies with an upper computer through the information connection port number, and then TCP (transmission control protocol) information connection is established with the upper computer;
the upper computer information connection adopts a TCP protocol to realize the control and parameter configuration of the radar, the upper computer can modify the parameters of the radar at any time, and the channel connection adopts a UDP protocol for the radar to transmit scanning data to the upper computer.
The upper machine body functions include: monitoring the running condition of the radar in real time; configuring parameters of the radar; receiving real-time scanning data of a radar, and displaying the scanning data of the radar in a 3D mode; the displayed 3D map may be interacted with using a mouse.
The radar mainly comprises the following functions: monitoring the running state of each submodule in real time; the parameters are configurable; and periodically scanning the front obstacle by using the laser, analyzing the returned data, and uploading the data to software or back-end equipment.
After the TCP information connection is successfully established, two sides can carry out bidirectional command interaction and the radar transmits scanning data to the upper computer, namely, the radar and the upper computer start to interact only after the TCP information connection is successfully established, wherein the command information is transmitted through a TCP protocol, and the data information is transmitted through a UDP protocol.
As a preferred embodiment, the data sent by the radar to the upper computer comprises identity information and a unique identification number, in the design, the same upper computer can be simultaneously communicated with a plurality of radars, and in order to ensure the reliability between the radar and the upper computer, the upper computer must be allowed to identify the radars, so that the scheme adds unique identification information which is unique to the radar and can represent the identity of the radar into a data packet to be sent to the upper computer, and the upper computer can effectively identify the radar; meanwhile, in order to avoid decoding the information, when the identity information is sent, the sent data is encrypted, in the scheme, the identity information of the radar is put into N multi-bit binary code numbers, one bit in each bit of binary code is the identity code of the radar, and a method for decoding the code arrangement is stored in the upper computer, so that the radar information can be guaranteed to be intercepted.
After the radar is on line, the working state is sent to the upper computer every fixed time T or when the working state changes, wherein the time T is 10-20 seconds, in the embodiment, the working state is sent every 10 seconds, and besides, the interval time can also be set to be 15 seconds, 20 seconds and the like. The state is represented by a fault code, and covers the working state of each submodule. Similarly, the time interval between two consecutive sending of UDP broadcast data packets by the upper computer is 10-20 seconds.
As a preferred embodiment, the data transmission is performed in a progressive manner, that is, the scanning result sends data of one row at a time, where the data includes a row index, a starting column index, and the data of the frame includes the number of points.
The specific format of the data is as follows:
name (R) Length of Type (B) Description of the invention
Radar numbering 2 Integer number of Unique identification of radar
Y axis (1-200) 2 Integer number of Y-axis numbering in radar scan arrays
X-axis start (1-600) 2 Integer number of X-axis start number in radar scan array
Number of scanning points 2 Integer number of Scanning the number of spots in the x-axis
1 st point Z axis 2 Integer number of Distance to the nearest cm, 1 for 1cm
1 st point signal 2 Integer number of Signal strength
2 nd point Z axis 2 Integer number of
2 nd point signal 2 Integer number of
……
Point N Z axis 2 Integer number of
Nth point signal 2 Integer number of
The specific communication method is shown in fig. 2:
the method comprises the following steps: the upper computer continuously sends UDP data packets to the local area network for radar search;
step two: after receiving the UDP data, the radar communicates with the upper computer according to the information connection port provided by the data class, so that the upper computer searches for the radar;
step three: the radar sends a TCP information connection request, the upper computer completes the establishment of the TCP information connection after agreeing, and therefore UDP communication connection and TCP communication connection are established between the upper computer and the radar;
step four: the radar sends the equipment state to the upper computer through a UDP communication protocol, the upper computer identifies the radar after receiving the equipment state, and the upper computer controls the radar or performs parameter configuration through a TCP communication protocol after the radar passes the identification;
step five: after the configuration is completed, the radar responds to a corresponding instruction of the upper computer and sends scanning data to the upper computer;
thus, the information communication between the whole upper computer and the radar is completed.
The foregoing is illustrative of the preferred embodiments of this invention, and it is to be understood that the invention is not limited to the precise form disclosed herein and that various other combinations, modifications, and environments may be resorted to, falling within the scope of the concept as disclosed herein, either as described above or as apparent to those skilled in the relevant art. And that modifications and variations may be effected by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A laser radar control method is characterized by comprising the following steps:
s1: establishing UDP communication connection between the radar and the upper computer;
s2: continuously sending UDP broadcast data packets to the radar in the local area network through the upper computer;
s3: the radar sends a request to the upper computer after receiving the UDP broadcast data packet, and TCP connection is established;
s4: after the TCP connection is established, the radar sends the equipment state to the upper computer through the TCP connection;
s5: the upper computer receives the equipment state data sent by the radar and then controls the radar or configures radar parameters through the TCP channel;
s6: the radar sends scanning data to an upper computer through UDP connection;
the command class is transmitted by adopting TCP, and the data is transmitted by adopting UDP;
the system also comprises a radar system, when the radar is started and enters the local area network, a UDP broadcast data packet is received, an information connection port number is required to be attached to the UDP broadcast data packet, the radar communicates and identifies with an upper computer through the information connection port number, and then TCP information connection is established with the upper computer;
the upper computer information connection adopts a TCP protocol to realize the control and parameter configuration of the radar, the upper computer can modify the parameters of the radar at any time, and the channel connection adopts a UDP protocol for the radar to transmit scanning data to the upper computer;
the upper machine body functions include: monitoring the running condition of the radar in real time; configuring parameters of the radar; receiving real-time scanning data of a radar, and displaying the scanning data of the radar in a 3D mode; the displayed 3D graph can be interacted by using a mouse;
the radar mainly comprises the following functions: monitoring the running state of each submodule in real time; parameter configuration; periodically scanning a front obstacle by using laser, analyzing returned data, and uploading the data to software or back-end equipment;
after the TCP information connection is successfully established, the two sides can carry out bidirectional command interaction and the radar transmits scanning data to the upper computer, namely, the radar and the upper computer start to interact only after the TCP information connection is successfully established, wherein the command information is transmitted through a TCP protocol, and the data information is transmitted through a UDP protocol.
2. The lidar control method of claim 1, wherein after the TCP connection is successfully established, the two parties can perform bidirectional command interaction and the radar transmits scan data to the upper computer.
3. The lidar control method of claim 2, wherein the data requested by the radar to send to the host computer comprises identity information, the identity information being identified by a unique identification number.
4. The lidar control method according to claim 3, wherein the radar transmits the device status to the upper computer every fixed time T or when the operating status changes after the radar is on line.
5. The lidar control method according to claim 4, wherein the time T is in a range of 10-20 seconds.
6. The lidar control method of claim 5, wherein the status is represented by a fault code covering the operational status of each sub-module.
7. The lidar control method according to claim 6, wherein the data transmission is performed in a row-by-row manner, that is, the scanning result sends data of one row at a time, wherein the data includes a row index, a starting column index, and the data of the frame includes the number of points.
8. The lidar control method according to claim 1, wherein a time interval between two consecutive transmissions of UDP broadcast packets by the upper computer is in a range of 10 to 20 seconds.
9. The lidar control method of claim 8, wherein the UDP broadcast packet is accompanied by an information connection port number.
10. The lidar control method of claim 9, wherein the upper computer is capable of modifying the radar parameters at any time.
CN201810763523.XA 2018-07-12 2018-07-12 Laser radar control method Active CN108872963B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810763523.XA CN108872963B (en) 2018-07-12 2018-07-12 Laser radar control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810763523.XA CN108872963B (en) 2018-07-12 2018-07-12 Laser radar control method

Publications (2)

Publication Number Publication Date
CN108872963A CN108872963A (en) 2018-11-23
CN108872963B true CN108872963B (en) 2022-05-13

Family

ID=64301392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810763523.XA Active CN108872963B (en) 2018-07-12 2018-07-12 Laser radar control method

Country Status (1)

Country Link
CN (1) CN108872963B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111684297A (en) * 2019-01-09 2020-09-18 深圳市大疆创新科技有限公司 Communication method of laser radar, laser radar and upper equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103997539A (en) * 2014-06-06 2014-08-20 北京航空航天大学 Radar operation state collecting and distributing system and method based on web service
CN104010039A (en) * 2014-06-05 2014-08-27 北京航空航天大学 Multi-radar remote monitoring system and method based on WebSocket
CN104777464A (en) * 2015-04-20 2015-07-15 中国民航大学 Method of utilizing ADS-B data to realize multi-radar data semi-physical simulation
CN104950298A (en) * 2015-07-01 2015-09-30 山东康威通信技术股份有限公司 Target defense-area-crossing identification method based on multiple sets of phased array radar
CN106646408A (en) * 2016-12-23 2017-05-10 西安电子科技大学 Radar echo simulation system and method capable of echo signal collection and playback

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20150208195A1 (en) * 2014-01-20 2015-07-23 Safe Frontier Llc Method and apparatus for out of band location services

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104010039A (en) * 2014-06-05 2014-08-27 北京航空航天大学 Multi-radar remote monitoring system and method based on WebSocket
CN103997539A (en) * 2014-06-06 2014-08-20 北京航空航天大学 Radar operation state collecting and distributing system and method based on web service
CN104777464A (en) * 2015-04-20 2015-07-15 中国民航大学 Method of utilizing ADS-B data to realize multi-radar data semi-physical simulation
CN104950298A (en) * 2015-07-01 2015-09-30 山东康威通信技术股份有限公司 Target defense-area-crossing identification method based on multiple sets of phased array radar
CN106646408A (en) * 2016-12-23 2017-05-10 西安电子科技大学 Radar echo simulation system and method capable of echo signal collection and playback

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于OMAPL138和Linux操作系统的嵌入式应用开发;黄曦;《中国优秀硕士学位论文全文数据库 信息科技辑》;20180615(第6期);正文第31-40页 *

Also Published As

Publication number Publication date
CN108872963A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
US11187806B2 (en) LIDAR scanning system
US10746855B2 (en) Multi-line laser radar and multi-line laser radar control method
US20180329037A1 (en) LIDAR Device Based on Scanning Mirrors Array and Multi-Frequency Laser Modulation
KR20190128047A (en) System for Free Space Optical Communication and LIDAR
CN107367737A (en) A kind of multi-thread rotation sweep detection method
CN108872963B (en) Laser radar control method
CN111164457B (en) Laser ranging module, device and method and mobile platform
CN108828556A (en) laser radar control system
CN110333512A (en) A kind of laser radar system and laser ranging system
JP2019512671A (en) Device and corresponding method for presenting user information
WO2019127977A1 (en) Multi-line laser distance measuring apparatus and robot
CN111290434B (en) Unmanned aerial vehicle guiding method, system, equipment and storage medium
CN117471485A (en) Expressway roadbed high slope displacement monitoring method based on unmanned plane laser radar
CN111670561A (en) Information interaction method, system and computer readable medium
US20200217959A1 (en) Application specific integrated circuits for lidar sensor and multi-type sensor systems
CN215116780U (en) Light emitting device, laser radar system and electronic equipment
US20220075038A1 (en) Apparatus and methods for long range, high resolution lidar
CN110412613B (en) Laser-based measurement method, mobile device, computer device, and storage medium
US11327490B2 (en) Dynamic control and configuration of autonomous navigation systems
CN113405546A (en) Global sensing early warning system of intelligent sensing sensor
CN113376658A (en) Unmanned aerial vehicle autonomous obstacle avoidance method and system based on single line laser radar
CN110109190B (en) Object position determining method and system
CN114640394B (en) Communication method and communication device
US20220350000A1 (en) Lidar systems for near-field and far-field detection, and related methods and apparatus
CN215300669U (en) Data processing and communication system of robot and cloud server

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant