Skip to content

WiresharkによるCANメッセージの可視化方法 #1

@HarukiOgawa1

Description

@HarukiOgawa1

python-canのドキュメントにWiresharkでCANメッセージを可視化してデバックしやすい記述があったので,それらのメモを残す.
https://python-can.readthedocs.io/en/stable/interfaces/socketcan.html

Ubuntu 22.04のWiresharkインストール方法

sudo apt update
sudo apt install wireshark

# 非特権ユーザーでキャプチャーするための設定
sudo dpkg-reconfigure wireshark-common

# 実行方法
wireshark

# Wiresharkグループにユーザーを追加する
sudo usermod -aG wireshark <username>

# Wiresharkが「許可がありません」と表示されてキャプチャが開始できない→dumpcapコマンドに実行権限がないためらしいので実行権限を付与する
sudo chmod +x /usr/bin/dumpcap

# dumpcapをwiresharkグループに設定する
sudo chgrp wireshark /usr/bin/dumpcap

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions