First choose a NIC。Here choose enp0s3
.
- Don't choose
any
. If so, the protocol of PCAP file islinux cooked capture
. rs_driver doesn't accept it. - If the LiDAR works on
VLAN
, select to capture on physical NIC or virtual NIC. There is VLAN layer in former case, and there is no VLAN in latter case.
Use the following network tools to find out the NIC name.
ipconfig
- on Windowsifconfig
- on Linux
You may exclude non-MSOP/DIFOP packets with filter criteria.
Select Menu File
-> Export Specified Packets ...
to get this dialog.
Export all packets. In above picture, select All Packets
under Packet Range
, to export all packets.
- Select
pcap
format instead ofpcapng
.rs_driver
doesn't support the latter. - Under
Packet Range
, there are two columns:Captured
andDisplayed
. KeepDisplayed
here.Captured
are all captured packets.Displayed
are the filtered. For example, in the line ofAll packets
, captures24333
, and leaves23879
after filtering.- If
Captured
export packets from all captured packets, else export only the filtered.
Here export a range of packets.
- This example give a range
1
-10000
. These two numbers are from all packets. Actually9805
packets are exported.
Here mark a few packets and export them. First mark the packets with Menu Mark/Unmark Packet
.
Here mark two packets, and export all packet between them. Select First to last marked
.
tcpdump
is the a tool on Unix/Linux.
As below, capture packets on NIC eno1
and save them into a.pcap
, with filter criteria UDP
and destination port 6699
or 7788
. And capture 30000
packets.
sudo tcpdump -i eno1 -w a.pcap -c 30000 'udp dst port 7788 or 6699'
Use ifconfig
to find out the NIC name.
Don't use the option-i any
. It captures on NIC any
, and the protocol is linux cooked capture
. This is not the Ethernet protocol. rs_driver doesn't accept it.
sudo tcpdump -i any