How To Communicate With The Lw20 Using A Terminal Emulator; Figure 10 :: Connection To A Usb Converter Cable; Figure 11 :: Setting The Baud Rate For Lw20 Communications - Lightware SF20 Product Manual

Lidar sensor
Hide thumbs Also See for SF20:
Table of Contents

Advertisement

6. How to communicate with the LW20 using a terminal emulator

To use a terminal emulation application to setup and test the LW20 you will need to connect the serial port of the LW20 to the USB
port on a PC. This is done using a serial-to-usb converter such as the TTL-232R-3V3-WE converter cable from FTDI (http://
www.ftdichip.com/Products/Cables/USBTTLSerial.htm). This converter provides both the signals and power supply to the LW20.
Once the converter is wired up to the LW20, prepare the Terminal application on the PC as follows:
Download and instal the Terminal application from the LightWare website
Other terminal emulation programs with the correct communication parameters will also work
Open the Terminal application
Select the "Laser" icon
Set the baud rate to 115200
You can tick the "Remember settings" box if you intend to use this configuration again
Apply the change to close the dialog window
To establish communication between the LW20 and the Terminal application:
Plug the LW20 converter into a USB port on the PC
Click the "Connect" icon - a notice of the connection and its associated USB port number should become visible on the toolbar
The LW20 is now running in machine-to-machine mode and will respond to the set of machine commands
Press the <?> key followed by <CR>. The LW20 will reply with the product code, hardware revision and software revision
In this mode, the LW20 will respond to the command set normally used by a controller to communicate using either the serial or I2C
ports. The "?" command mentioned above is the command used to identify the LW20. The full command listing can be found in
Appendix C.
LW20 / SF20 LiDAR - Product manual - Revision 7

Figure 10 :: Connection to a USB converter cable

Figure 11 :: Setting the baud rate for LW20 communications

|
|
11
of
28
© LightWare Optoelectronics (Pty) Ltd, 2018
LW20 / SF20 LiDAR sensor
Product manual
|
www.lightware.co.za

Advertisement

Table of Contents
loading

This manual is also suitable for:

Lw20Lw20/bLw20/cSf20/bSf20/c

Table of Contents