User Tools

Site Tools


en:recomendations

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

en:recomendations [2019/12/30 17:44]
golikov
en:recomendations [2020/03/25 16:28]
Line 1: Line 1:
-**Recommendations for Users** 
  
-**1 Power up devices in succession** 
-  
-Make a test program for every device in the network to check this particular device. Connect the device directly to the central computer using separate tested ribbon cable and check if the device operates properly. After making sure the device is fully operational proceed with the following device. Re-run previous tests as you add new devices to the network. If a device stops working there must be a disruption in wiring. Re-check all recently connected devices. 
- 
- 
-**2 Monitor error codes** 
-  
-Request functions will return an error code shall something go wrong. It pays to handle errors with code like that: 
- 
-<code c> 
-  if (LSS_OK == transmitter_turn_on(1)) ​ 
-  {  
-    /*Doing something */ 
-  }  
-  else  
-  {  
-    printf("​Error! Failed to turn on transmitter \n"​); ​ 
-  }  
-</​code>​ 
- 
-This will let you identify bugs in your program faster than if you code this way: 
- 
-<code c> 
-  transmitter_turn_on(1) 
-</​code>​ 
- 
-**3 Wait for devices to complete boot-up** 
- 
-Once powered up with the xxx_power_on() command, devices will need some time to boot up. After they boot up, they still won’t be able to respond immediately to the first request they receive. If you want to power up a device and operate it, wait for the device to complete booting (no longer than 1 second) and prepare it for receiving data if you can. The latter can be done by either sending the bus_setup() command to the bus or sending any data to this or another device. 
- 
-<note important>​ 
-**//​Additionally,​ make sure that your software is up-to-date. The most recent versions can be found here.//** 
-</​note>​ 
en/recomendations.txt · Last modified: 2020/03/25 16:28 (external edit)