Using Wireshark with Contiki and Cooja

1、Cooja pcap export

In cooja go to tools and thenradio messages (instead of radio logger) in the radio messages window go to analyzer and choose6LoWPAN with PCAP. A log file calledradiolog-xxxxxxx.pcap will be created in contiki/tools/cooja/build directoryjust open the file with wire-shark and it's done. These log files can be opened in Wireshark to perform deeper analyzations.

注意,这里日志文件的存储是和cooja的目录有关,桌面上的cooja存储的目录是contiki/tools/cooja/build;若是在contiki-2.7中启动cooja,那么目录就是contiki-2.7下的tools/cooja/build目录


2、Use Wireshark
Due to 6lowpans statefull compression you might need to set prefix preferences to match your needs
Set Edit->Preferences->Protocols->6LoWPAN->Context 0
For most applications you may want to set the Context 0 to aaaa:: as it is the default prefix for Contiki nodes.

USC ANRG 中还提到了一种分析数据包的方法:sniffer+foren6  可以对实际节点间的数据进行捕获

正如tcpdump至于有线网络一样,sniffer用于无线网络,当然sniffer也用于有线网络(看网上说wireshark也可以抓无线的)

foren6则专用于分析6Lowpan协议的工具

You can also use Cooja (Network Simulator) to analyze an network. In Cooja use "Radio Message with a 6LoWPAN analyzer with pcap export" to store the packet capture in pcap format. Thus you can then use Wireshark or Foren6 to visualize the network and debug it.

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值