|
From: Manuel W. <man...@ei...> - 2016-03-01 01:08:06
|
Hi again,
i've tried again with the hardcoded channel settings both in the sniffer
fw (#define CC2530_RF_CONF_CHANNEL 11) and in my Anaren Zigbee devices.
The symptoms remain as in my initial post. See debug output of sensniff
below:
Good night for now,
Manuel
root@raspberrypi:/home/pi/sensniff/host# python sensniff.py -b 460800 -d
/dev/ttyACM0 -D DEBUG
Started logging
Serial port /dev/ttyACM0 opened
FIFO /tmp/sensniff exists. Using it
Commands:
c: Print current RF Channel
n: Trigger new pcap header before the next frame
h,?: Print this message
[11,26]: Change RF channel
q: Quit
No user input
No frame input
No user input
No frame input
No user input
No frame input
No user input
No frame input
No user input
No frame input
<---snip--->
> 30sec passed
<--/snip--->
No frame input
No user input
No frame input
No user input
No frame input
No user input
^CNo frame input
Shutting down
Frame Stats:
Non-Frame: 0
Not Piped: 0
Piped: 0
Captured: 0
Am 2016-03-01 00:53, schrieb George Oikonomou:
> That's right, you set the sniffing channel by setting (replace 25 with
> your own chan):
>
> #define CC2530_RF_CONF_CHANNEL 25
>
> You can set that in the sniffer project's project-conf.h, or in
> platform/cc2530dk/contiki-conf.h
>
> George
>
>> On 29 Feb 2016, at 23:48, Manuel Weiß <man...@ei...> wrote:
>>
>> Hi again,
>>
>> yes im getting _some_ packages, they are mostly small and FCS broken.
>> Your information, that channel switching does currently not work at
>> all,
>> would explain my symptoms, since the channel is picked dynamically on
>> the other devices.
>> So the sniffer firmware would only sniff on a fixed default channel.
>> Can
>> i configure it somewhere ? Eg. via a #define in the project-config.h
>> at
>> compile time ? :)
>>
>> Regards
>> Manuel
>>
>> Am 2016-03-01 00:41, schrieb George Oikonomou:
>>> Setting channel from sensniff's command line doesn't work at the
>>> moment with Contiki firmware. Are you sniffing on the correct
>>> channel?
>>>
>>> From you emails, it is unclear to me whether you are getting "some"
>>> frames with wrong CRC or whether you are getting no frames
>>> whatsoever.
>>> Again, try sensniff with -D INFO to see whether it is picking up
>>> traffic in the first place.
>>>
>>>
>>>
>>>> On 29 Feb 2016, at 23:37, Manuel Weiß <man...@ei...>
>>>> wrote:
>>>>
>>>> Hello George,
>>>> thanks for your answer,
>>>> i have a plain USB 2.0 port and tried it on different PCs, and since
>>>> the
>>>> linux environment on the laptop was virtualized running under a
>>>> windows
>>>> host with the USB port forwarded into the guest, i also tried it on
>>>> a
>>>> native installation on a Raspberry Pi Mod B2 with the same results.
>>>> I had FCS for TI devices enabled inside wireshark. Even without
>>>> setting
>>>> this parameter at all, i guess i should have the packets dumped by
>>>> sensniff.py to a pcap file and into wireshark (but then displayed as
>>>> FCS
>>>> mismatch)
>>>> But there haven't been any actual frames (not even marked as bad)
>>>> from
>>>> my TI devices captured at all, however the fragments i did get may
>>>> have
>>>> been some by-catch from nearby WLAN devices.
>>>> The hardware (CC2531dk stick) itself works fine with the original TI
>>>> packet sniffer software on it, so i don't think it is a hardware
>>>> failure..
>>>> Additionally, I remember missing the response from the device when
>>>> switching channels from the sensniff application:
>>>> Here is the example from the readme how it should look like:
>>>> <--snip-->
>>>> Peripheral: sniffer: Command 0x82
>>>> Peripheral: sniffer: SET_CHANNEL command
>>>> Peripheral: sniffer: Channel 12
>>>> Received a command response: [01 0c]
>>>> Sniffing in channel: 12
>>>> Peripheral: sniffer: Response [ 53 6e 69 66 01 01 01 0c ]
>>>> <--snap-->
>>>> ^^^^^^
>>>> I'm missing the response all together, does that mean the
>>>> PC/SnifferHW connection is disturbed ?
>>>>
>>>> Did the sensniff application or the protocol sniffer<-->host had
>>>> changed, you've mentioned a 'current' and 'legacy' version. Shall i
>>>> get
>>>> the Respone under any circumstances ?
>>>>
>>>> The source code from the contiki sniffer examples explains something
>>>> about using a stub RDC driver. With little knowledge to the contiki
>>>> internals i would guess you register the stub_rdc_driver in the
>>>> project_conf (#define NETSTACK_CONF_RDC stub_rdc_driver)
>>>> so the zigbee frames won't be interpreted by the network stack on
>>>> the
>>>> stick itself and so can just be dumped to the sensniff application.
>>>> Could it happen that the registration of the driver for some reason
>>>> fails ?
>>>> https://github.com/contiki-os/contiki/blob/master/examples/cc2530dk/sniffer/project-conf.h
>>>>
>>>> Regards
>>>> Manuel
>>>>
>>>> Am 2016-02-29 23:34, schrieb George Oikonomou:
>>>>> Hi Manuel
>>>>>
>>>>> For wireshark to correctly display frames, you need to set the TI
>>>>> CC24xx FCS format in wireshark preferences. If WS is showing you
>>>>> something in the first place, this means that your sniffer is
>>>>> capturing & streaming frames in the first place.
>>>>>
>>>>> Running sensniff with -D INFO might provide more information.
>>>>>
>>>>> Issues with sensniff on CC2531 are something I've never seen
>>>>> myself,
>>>>> ever. I have a gut feeling that they may be related with connecting
>>>>> the dongle to a USB 3 port. If I'm right, then connecting to a
>>>>> different port might solve those problems - assuming they exist in
>>>>> the
>>>>> first place :)
>>>>>
>>>>> Hope this helps
>>>>> George
>>>>>
>>>>>> On 29 Feb 2016, at 16:50, Manuel Weiß <man...@ei...>
>>>>>> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> we intended using the contiki packet sniffer example on our
>>>>>> existing
>>>>>> cc2531dk devices together with host side "sensniff"
>>>>>> (https://github.com/g-oikonomou/sensniff) script for zigbee paket
>>>>>> analysis in wireshark.
>>>>>> We've successfully compiled and flashed v3.0 contiki sniffer
>>>>>> example
>>>>>> onto our devices, but unfortunately there are almost none packets
>>>>>> captured and piped into wireshark. All we've seen so far are
>>>>>> "broken"
>>>>>> packages eg. where the FCS dont match. No 'real' traffic
>>>>>> originating
>>>>>> from out Anaren or XBee devices could have been captured so far.
>>>>>> Mr. Oikonomou's sensniff readme mentions some issues on the CC2531
>>>>>> devices (afaik the cc2530 chip with build in USB), but no detailed
>>>>>> description of those issues. I also tried current contiki master
>>>>>> branch
>>>>>> and older versions with no luck either.
>>>>>>
>>>>>> George, you are the author of the sensniff scipt and afaik large
>>>>>> parts
>>>>>> of the cc2530 contiki ports. Could you give me a hint what i might
>>>>>> have
>>>>>> missed, please ?
>>>>>> I also could provide some pcap dumps (the seldom packages with
>>>>>> broken
>>>>>> FCS etc)
>>>>>>
>>>>>> Thanks in advance
>>>>>>
>>>>>> Manuel Weiss
>>>>>>
>>>>>> Graduate Student THM
>>>>>> Department of Electrical Engineering and Information Technology
>>>>>>
>>>>>> ------------------------------------------------------------------------------
>>>>>> Site24x7 APM Insight: Get Deep Visibility into Application
>>>>>> Performance
>>>>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>>>>> Monitor end-to-end web transactions and take corrective actions
>>>>>> now
>>>>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>>>>> _______________________________________________
>>>>>> Contiki-developers mailing list
>>>>>> Con...@li...
>>>>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Site24x7 APM Insight: Get Deep Visibility into Application
>>>>> Performance
>>>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>>>> Monitor end-to-end web transactions and take corrective actions now
>>>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>>>> _______________________________________________
>>>>> Contiki-developers mailing list
>>>>> Con...@li...
>>>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Site24x7 APM Insight: Get Deep Visibility into Application
>>>> Performance
>>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>>> Monitor end-to-end web transactions and take corrective actions now
>>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>>> _______________________________________________
>>>> Contiki-developers mailing list
>>>> Con...@li...
>>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Site24x7 APM Insight: Get Deep Visibility into Application
>>> Performance
>>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>>> Monitor end-to-end web transactions and take corrective actions now
>>> Troubleshoot faster and improve end-user experience. Signup Now!
>>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>>> _______________________________________________
>>> Contiki-developers mailing list
>>> Con...@li...
>>> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>>
>>
>> ------------------------------------------------------------------------------
>> Site24x7 APM Insight: Get Deep Visibility into Application Performance
>> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
>> Monitor end-to-end web transactions and take corrective actions now
>> Troubleshoot faster and improve end-user experience. Signup Now!
>> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
>> _______________________________________________
>> Contiki-developers mailing list
>> Con...@li...
>> https://lists.sourceforge.net/lists/listinfo/contiki-developers
>
>
> ------------------------------------------------------------------------------
> Site24x7 APM Insight: Get Deep Visibility into Application Performance
> APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
> Monitor end-to-end web transactions and take corrective actions now
> Troubleshoot faster and improve end-user experience. Signup Now!
> http://pubads.g.doubleclick.net/gampad/clk?id=272487151&iu=/4140
> _______________________________________________
> Contiki-developers mailing list
> Con...@li...
> https://lists.sourceforge.net/lists/listinfo/contiki-developers
|