Amazing technological breakthrough possible @S-Logix pro@slogix.in

Office Address

  • #5, First Floor, 4th Street Dr. Subbarayan Nagar Kodambakkam, Chennai-600 024 Landmark : Samiyar Madam
  • pro@slogix.in
  • +91- 81240 01111

Social List

How to Transfer Data between Server and Client using Cooja Simulator

Send Data Between Server And Client Using Cooja Simulator

Cooja Simulator Exercise for Sending Data between Server and Client

    Description:

        In this example, UDP is implemented on top of RPL. An LLN comprises a UDP server, which accepts available packets, and several UDP clients, which send packets periodically to the server through single-hop or multi-hops. Through this sample, you will learn the basic idea of RPL and operate UDP communications easily without manipulating lower layer functions.

    Steps for creating the IoT network scenario
    Step-1

    Create sky mote1 for UPD-server.c
    In the example, the UDP server does three tasks primarily.
    1. Initializes RPL DAG.
    2.Set up UPD connection.
    3.Waits for packets from the client, receives and prints them on stdout.

    Send data between server and client using cooja simulator Create the IoT network scenario
    Step-2

    Create sky mote2 for udp-client.c
    In the example, UDP Client does two tasks primarily.
    1. Sets up UPD connection.
    2. Sends packet to UDP server periodically.

    Create sky mote1 for udp-server.c Create sky mote2 for udp-client.c
    Step-3

    Data transmission
       The motes output and debug messages generated can be seen in the Motes Output window. You can filter the output based on the node ID:node_id to watch a particular node. You can also watch particular debug messages by filtering them.

    Data transmission