How to setup Wireshark to work with any ESP32
- Go into Firmware/ESP32
- Create
main/wifi_creds.h
and add there SSID and Password for you WiFi AP
#define EXAMPLE_ESP_WIFI_SSID "your-ssid"
#define EXAMPLE_ESP_WIFI_PASS "your-password"
- Go into
main/CanIf.c
and select GPIO where you have connected CAN transciever
#define TX_GPIO_NUM (GPIO_NUM_5)
#define RX_GPIO_NUM (GPIO_NUM_4)
- Go into
main/uart.c
and select GPIO where you have connected KLINE transciever
#define TXD1_PIN (GPIO_NUM_38)
#define RXD1_PIN (GPIO_NUM_37)
- Open esp-idf (Power Shell or CMD) go to Firmware/ESP32
- Setup device using
idf.py set-target esp32
(oridf.py set-target esp32s3
etc.) - Compile firmware using
idf.py build
- Upload firmware using
idf.py -p COMn flash
where COMn is debug UART of your ESP32 device - Start Wireshark using
wireshark -k -i TCP@127.0.0.1:19000
for Datagram (PDU) tracing orwireshark -k -i TCP@127.0.0.1:19001
for SocketCAN tracing. Replace127.0.0.1
with IP address of ESP32 device. - Copy scripts into Wireshark LUA script folder
Help -> About -> Folders -> Personal Lua Plugins
- If you want to further develop those scripts, use something like
mklink /J "C:\Path\To\AppData\Roaming\Wireshark\plugins" "D:\Git\Monitor\Plugins"
- You can also load coloring rules via
View -> Coloring Rules -> Import