Recommendations for users
1. Turn on the devices one at a time
For each device on the network, make a test program that checks this particular device. Connect it with a separate tested cable directly to the central computer and check its functioning. After you make sure that the device is working properly, move on to the next device. When connecting new devices to the network, check the old tests. If one of the devices has stopped working, it means that you have introduced a problem in the wiring. Double-check the recently connected devices.
2. Monitor error codes
The query functions return an error code in case something went wrong. The code looks like: ``cpp goodcode if (LSS_OK == transmitter_turn_on(1)) { /Doing something / } else { printf("Error! Failed to turn on transmitter \n"); }
It will help you quickly identify errors in the program much better than the code like:
```cpp badcode
transmitter_turn_on(1)
3. Allow the devices to load
After powering the device with the command xxx_power_on(), the devices need time to load. In addition, after downloading, they cannot begin to respond to the first package intended for them. If you want to turn on the device and start working with it, wait for the device to load (no more than 1 second) and, if possible, prepare it for reception. Either by sending the bus_setup() command to the CAN bus, or by sending any package to this or another device.
Also make sure that you have up-to-date software. You can find it here.