Step 0: Modify the source code of hello.bus.45.c. In the line 222 add a const declaration, the final line should be: const static char message[] PROGMEM = "node ";
Step 1: Program the bridge circuit board (using the FabISP burn the c code into the circuit: sudo make -f hello.bus.45.make program-usbtiny). Result: Bridge programmed
Step 2: Program a node (using the FabISP burn the c code into the circuit). Result: Node(s) programmed (Repeat this step if you have several nodes, dont forget to change: #define node_id '0' according to the node id)
Step 3: Connect the bridge and the PC through the USB TLL Serial cable. Result: the network will have energy and data through the serial port
Step 4: Connect the nodes and the bridge through a wire (that is a serial bus network)
Step 5: Execute the application (GtkTerm: sudo gtkterm) and select Configuration->Port-> Port:/dev/ttyUSB0 and Baud rate: 9600. Result: Interact with the network
Step 6: Input the node id number. The node whose id is equal the number you input will flash twice.
Results:
The serial bus networks works sending messages. Each node receives an input and evaluates acoording this criteria: if the number sended is equals the id node number, then the node will flash its LED twice. otherwise it will pass the information to the next node and flash only one time.