Menu

#36 failed handshake between dtls_server example and tests/dtls_client

1.0
open
nobody
None
2015-09-13
2015-09-13
Salties
No

Hi!

I am trying tinydtls-0.8.2 over the latest InstantContiki_3.0 but I couldn't get the handshake done. :(

Here are my steps:

  1. Extract tinydtls-0.8.2.tgz and move it to ~/contiki/apps/tinydtls
  2. Under ~/contiki/apps/tinydtls:
    ./configure --without-ecc
    make
    So I have tests/dtls-client complied for Ubuntu.
  3. Again in ~/contiki/apps/tinydtls:
    ./configure --with-contiki --without-ecc
    Sets the config for contiki.
  4. Go to cooja and created 2 nodes:
    (1) ~/contiki/apps/tinydtls/example/contiki/dtls_server.c on Wismote (aaaa::200:0:0:1)
    (2) ~/contiki/apps/example/ipv6/rpl-border-router/border-router.c on Sky (aaaa::212:7402:2:202)
    Then start the simulation and connect to (2) using `make connect-router-cooja' under border-router folder.
  5. Wait for a while until (1) can be pinged.
  6. Run ~/contiki/apps/tinydtls/tests/dtls-client {(1)'s address}.
    However, the dtls-client then frozes and log on wireshark shows: Hello Request[Unreassembled Packet] of the last packet.

The reason I disabled ecc is that the handshake packets seem too large for the simulated network (e.g. CLIENT_HELLO for 140 bytes) and I can't even see it in the radio messages in cooja. ( I think 6lowPAN specifies the maximum pakcet size to be 127 bytes?)

Attached are the wireshark logs, cooja file and its radio log.

Could anyone please help me with this?

1 Attachments

Discussion

Monday.com Logo