5

I want to simulate simple smart home iot communication with gateway in cooja. It means that some sensor nodes communicate with a client(e.g. mobile phone) via gateway. As shown in the picture.

But I don't know how to specify the gateway. Is the gateway, Visual, like motes? Or I should add it by code(a .c file)? I don't have real motes and I want to simulate everything.

gateway scenario

anonymous2
  • 4,902
  • 3
  • 22
  • 49

1 Answers1

2

We usually refer to the gateway in RPL as the border router. Here is an example from the Autonomous Networks Research Group of the University of Southern California on how to simulate a border router with Cooja.

Border routers are routers that can be found at the edge of a network. Their function is to connect one network to another.

The page also links to this guide, which explains the setup of a border router:

The RPL border router is used in order to interface a regular IP network with an RPL 6LoWPAN network. This is similar to the bridge that was previously used, except that it also runs an RPL network. The border router is located in the contiki-2.6/examples/ipv6/rpl-border-routerfolder. You must compile it using the following commands:

cd contiki -2.6/ examples/ipv6/rpl-border-router
make TARGET=sky

(the directory referred to is available here, on GitHub)

They also specify how to select mote types in section 3.4, including the border router.

Aurora0001
  • 18,520
  • 13
  • 55
  • 169