This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Sniffer CC2531 doesn't "sniff" CC2538

Other Parts Discussed in Thread: CC2538, CC2531

Hello,

I'm trying to make communicate two CC2538 motes by via uIP (Contiki protocol).

I've alrady tried 2 setups:

Setup_1:

1st mote: runs ../contiki-2.7/examples/udp-ipv6/udp-server.c

2nd mote: runs ../contiki-2.7/examples/udp-ipv6/udp-client.c

 

Setup_2:

1st mote: runs ../contiki-2.7/examples/ipv6/rpl-udp/udp-server.c

2nd mote: runs ../contiki-2.7/examples/ipv6/rpl-udp/udp-client.c

In both cases Client applications sends, Server application receives udp-packet and confirms reception by printing a message in Terminal.

I checked the setups in Cooja simulator - they work (altough configured for other mote (not CC2538).

Probably something wrong with hardware setup in CC2538, but how to check it ?

Is there some registers to check, that hardware is properly configured.

The states of such registers I can output in terminal.

Other symptom, that probably there is something wrong with hardware setup is the fact that CC2531 sniffer didn't "sniff" anything when I run Setup_1 or Setup_2.

Ok, probably CC2531 isn't capable to "sniff" LoWPAN, but at least at MAC-level (802.15.4) it should "sniff" some activity ... but it desn't.

Thanks in advance

Cordially

Pavel.

  • Hi Pavel,

    To me it is not clear what is working and what is not... 

    I suggest following the examples on: http://processors.wiki.ti.com/index.php/Contiki-6LOWPAN

    There are one UDP multicast example, and example on how to use the Thingsquare sniffer. (There is a binary provided for CC2538DK)

    As long as you have the right RF channel (26) and are using the same RDC layer settings (try NULL_RDC first) Anyhow the sniffer shall be able to capture IEEE frames. The setup is that the sniffer send everything it hears on the radio to the serial (or USB) interface, wireshark is the used to visualize on a PC.

    In general the sniffer example in Contiki (not the one i Thignsquare) should work on all platforms supported by Contiki, but I know there has been some issues with the USB drivers on CC2531, please also consult the contiki forum/mailing list here: http://contiki-os.org/support.html

    Cheers,

    -Jonas

  • Hi Jonas,

    Thanks. Unfortunately I didn't find binary for UDP multicast, the only binaries in the package are:

    ..\thingsquare-mist-1.1.0\platform\red-io\flasher_m12.bin

    and

    ..\thingsquare-mist-1.1.0\contiki\tools\stm32w\stm32w_flasher\CompositeForSTM32W.bin

    Then I've tried to compile UDP multicast example.

    For this I moved to: ..\thingsquare-mist-1.1.0\examples\udp-multicast\

    and there have executed the following command (in the command prompt):

    make TARGET=cc2538dk udp-multicast

    Unfortunately compilation failed. Here is error message:

      CC        ../../apps/ip64-addr/ip64-addr.c
      CC        ../../apps/ip64/ip64.c
    In file included from ../../apps/ip64/ip64.c:55:0:
    ../../apps/ip64/ip64.h:60:23: fatal error: ip64-conf.h: No such file or directory
     #include "ip64-conf.h"
                           ^
    compilation terminated.
    ../../contiki/Makefile.include:214: recipe for target 'obj_cc2538dk/ip64.o' failed
    make: *** [obj_cc2538dk/ip64.o] Error 1

    Should I modify some text in the Makefile or in the Makefile.mist ?

    Cordially

    Pavel

  • Jonas,

    Having difficulties with compiling of multicast example, I've tried the following:

    1st CC2538 - runs kit-cc2538dk-20140130.bin

    2nd CC2538 - runs  sniffer-eth2538-20140130.bin

    Because of I use TI design kit (not the ThingSquare one) I can't use web-facilities, proposed by ThingSquare.

    So, I was thinking that there are some diagnostics via UART (what I could controlled in Terminal).

    Not at all - the tetminal, connetcted to CC2538, which runs sniffer-eth2538-20140130.bin is empty, so I still can't determine if CC2538 radio staff is OK or not.

    Is there some example/solution (that could be adapted for CC2538DK) that would allow to check CC2538 radio staff capabilities (foundation firmware, Contiki, or something else).

    I'm completely disappointed with this issue

    Thanks in advance.

    BR

    Pavel

  • Thingsquare doesn't provide project files (e.g. for CCS) so I tried to debug/compile the udp-multicast example with the tool I'm familiar: Code::Blocks.

    I've created the project in Code::Blocks and tried to build it. The result is disapointing - the error message (besides it's incomprehensive) addresses to the some temprorary folder in User\AppData hidden folder (please see the picture).

    Has someone an idea on this issue

    BR

    Pavel

  • Resolved !!!

    Including of the instruction UIP_CONF_IPV6=1 into Makefile resolves the problem.