User Tools

Translations of this page:

Site Tools


en:recomendations

This is an old revision of the document!


Recommendations

1 Turn on the devices one at a time.
For each device on the network, make a test program that verifies each device specifically. Connect it with a separate, tested loop directly to the central computer and check its operation. After you make sure that the device works as it should, go to the next device. When connecting new devices to the network, check the old tests. If one of the devices has stopped working, then you have made a problem in the wiring. Double-check recently connected devices.

2 Check the error codes.
The query functions return an error code in case something went wrong. The code in the following form

  if (LSS_OK == transmitter_turn_on(1)) 
  { 
    /*Doing something */
  } 
  else 
  { 
    printf("Error! Failed to turn on transmitter \n"); 
  } 

will help you to more quickly identify errors in the program than the code in the form below:

  transmitter_turn_on(1)

3 Allow the devices to load.
After powering on the device with the xxx_power_on () command, the devices require time for loading. In addition, after they load, they cannot respond to the first message sent to them. If you want to turn on the device and start working with it, wait for the device to load (no more than 1 sec) and prepare it for receiving messages either by sending the bus_setup () command to the bus or by sending any message to this or another device.

en/recomendations.1539179508.txt.gz · Last modified: 2020/03/25 16:29 (external edit)