Peer-to-peer Application

This sample shows how to organize the simplest peer-to-peer link. At least 2 nodes should be used, but in total up to 8 nodes can be engaged. Each device is assigned with a distinct short (network) address and its own device type. This is done differently depending on the platform. Network address is identified either by DIP switches or by a special configuration parameter.

The network start procedure is initiated automatically on device startup. After network formation wireless data exchange is performed strictly in pairs according to assigned short addresses: node 0 with node 1, node 2 with node 3, node 4 with node 5, node 6 with node 7.

A node forwards to the corresponding peer all data received from the host over the serial interface (USART). On frame reception peer node in its turn sends received data to its own USART channel, thus establishing a simple wireless USART link. For input/output of serial data on devices with USART/USB connection to PC Windows HyperTerminal can be used.

More detailed decription can be found in BitCloud API Reference.