If you’ve been following this series of posts on the Arrow RL78 Intelligent Cloud Connectivity Kit you should now have your RL78G14 RDK talking nicely to your browser at the Renesas Development Board Portal on the Bug Labs site. In this installment we’ll create our own ‘swarm’ and add a second device to it. If you don’t have a second board you can at least see how this works.

Getting on Board

If you have a second board, configure it now according to the directions in the first blog post. The next step is to create your own ‘swarm’ that consists of these two devices.

Log onto the Renesas bugswarm channel. Renesas users can log in using the username renesas and the password renesaspsk. Next click on YRDKRL78G14_portal. Scroll down until you see a board with a green light, which will also show the MAC address for your board. Click on it and you’ll see the data sources that are available from your board:

Now click on Light and you can see the data streaming from your board. Pass your hand over the board to obstruct the light source to verify that this is indeed live data:

Creating a Swarm

A “swarm” is a large group of devices that produce or consume data with other devices in the swarm. Any device that can communicate through HTTP can be configured to join a swarm.

Click on it and you can rename it to something more memorable than a MAC address—like your name. Do the same for the second board using a similar name.

Next click on the New Swarm button at the top right of the screen. Give the swarm a name and if you’d like a description.  Now scroll down until you see your boards listed. You can select whether to make each a Producer or Consumer of data. For this session click on Producer for each. You’ll then see the following screen:

Finally, click Create and you’ll see your newly populated swarm:

Note that the ID number to the upper right is the swarm ID, while each board shows a unique ID number under it. You’ll need these numbers to program your own interface.

Programming Your Own Interface

In the next post we’ll work out a basic HTML/Javascript program that prints out information received from your board(s) and look further into the API.