List of Topics:
Research Breakthrough Possible @S-Logix pro@slogix.in

Office Address

Social List

How to run TinyDtls in Contiki Cooja Simulator?

 Execute TinyDtls in Contiki Cooja Simulator

Execution of the TinyDtls in Contiki Cooja Simulator

  • Description:
    Tinydtls is a library for Datagram Transport Layer Security (DTLS) covering both the client and the server state. It is implemented in C and supports the mandatory cipher suites specified in CoAP.
    It provides support for the mandatory cipher suites process.
Step-1
  • Open file menu on cooja and create new simulation with random seeding.
  • It will auto-generate the seeds for every time reload the simulation.
  • File -new simulation (or) (ctrl+ n).
  • click -New random seed on reload option.
  • click -Create .
  • create new simulation with random seeding
Step-2
  • After click the create option number of tabs will appear in terminal it is basic necessary to simulate applications.
  • Open motes menu >> add motes >> create new motes type >> sky.
  • Three files are necessary to run CoAP applications. In order to create the motes,
  • i. border- router.
  • ii. dtls-server.c
  • iii. dtls-client.c
  • It is basic necessary to simulate applications
Step-3
  • To create border router motes
  • home/user/contiki/examples/ipv6/rpl-border-router/border-router.c
  • Choose the file in location >> compile >> create >> Add motes.
  • Create border router motes
Step-4
  • To create server motes.
  • /home/user/contiki/examples/ipv6/CoAP-IDs/tinydtls/dtls-server.c
  • Choose a file location >> compile>> create >> choose sever
  • count(optional)>> Add motes.
  • Here,
  • Create server motes
Step-5
  • To create client motes .
  • /home/user/contiki/examples/ipv6/CoAP-IDs/tinydtls/dtls-client.c
  • Choose a file in location >> compile >> create >> choose client
  •  count(optional) >> Add motes.
  •  Create client motes
Step-6
  • Now connect the serial socket server in border router.
  • In cooja, network terminal .. View menu -choose the options you want,
  • For example: mote Type, mote ID’s, radio traffic, ...
  • Left click on border router motes >> choose: mote tools for sky1 >> serial socket(SERVER).
  • New tab will appear click : start -> now the default port will listen.
  • open one more command terminal and set directories to this location:
  • Cd contiki/ examples/ ipv6/ rpl-border-router/
  • Make connect-router-cooja the server will be connected to router.
  •  Now connect the serial socket server in border router