CiA® 305: Layer Setting Services (LSS)

LSS distinguishes between an LSS manager (typically residing in the host controller) and the LSS servers. LSS enables the LSS manager to modify the LSS server’s CANopen node-ID and to switch the entire network from one data rate to another. LSS utilizes exactly two CAN frames. The CAN data frame 7E5h carries the command from the LSS manager to one or several LSS servers. The CAN frame 7E4h is used to provide the response(s) to the LSS manager. LSS is specified in the document CiA 305.

CANopen node-ID assignment via LSS

The entire 128 Bit of the Identity object 1018h (vendor-ID, product-code, revision number, serial number) are called the LSS address. The LSS address allows the LSS manager to differentiate between the LSS servers, even if one or several LSS servers do not own a valid CANopen node-ID. Via the LSS switch state selective command, the LSS servers forces exactly one LSS server to enter the LSS configuration state. Only in this state the LSS server accepts a new CANopen node-ID that is proposed by the LSS manager. It is the LSS manager’s task to ensure that during the assignment of the CANopen node-ID, there is only one LSS server in the LSS configuration state.

In case the LSS addresses of the LSS servers are unknown to the LSS manager, the LSS manager may have several means to detect the LSS addresses. In case the LSS servers own already a valid CANopen node-ID, the LSS manager just reads the content of the object 1018h of all LSS servers in the system, via SDO. In case the LSS servers do not own a valid CANopen node-ID the LSS manager has to rely on additional LSS services. The LSS fastscan service enables the LSS manager to scan via bit masks, whether there exists an unconfigured LSS server, that's LSS address is in a given LSS address range. By executing several scanning cycles, the LSS manager can identify exactly one unconfigured LSS server and can provide subsequently a valid CANopen node-ID. 

CANopen bitrate switch via LSS

The LSS enable the LSS manager to switch the entire CANopen system from one to another bit rate. Therefore the LSS manager configures via LSS in all CANopen devices in the system the new intended bit rate individually. After the successful configuration, the LSS manager requests the bit rate switch via an global LSS service at all LSS servers at the very same time. After a switch delay, all devices in the network operate on the new bit rate.

It is recommended to use the LSS bitrate switch very carefully. In case there is at least one device that is not switching correctly to the new bitrate, the CANopen network shows a severe error behavior. A proper control system is not available any longer. Devices operating on the “wrong” bit rate have to be identified, and dismantled from the system. Those devices have to be placed in a separate system for reconfiguration, prior to install them again in the control system. For initial bit rate adjustment, LSS bitrate switch is not suitable. For such scenarios, the automatic bitrate switch is to be considered.

Typical identification of unconfigured LSS server by means of LSS Fastscan

In case several unconfigured LSS servers exist in a CANopen system, they can be identified by means of the LSS Fastscan service. To be able to distinguish between the different unconfigured LSS servers, the LSS manager achieves the at the beginning unknown LSS addresses of the unconfigured LSS, by a certain number of LSS fastscan scanning cycles. In the first request of a scanning cycle the LSS manager proposes for the IDnumber (either vendor-ID, product code, revision number, serial number of unknown LSS address) a bit-pattern of the size 1 to 31 Bit. All unconfigured LSS servers evaluate, whether their LSS address matches in the given part with the proposed bit pattern. Only if the proposed bit pattern is identical to the given part of the LSS server’s LSS address, the LSS server indicates this to the LSS manager and will continue operating in this scanning cycle. All other unconfigured LSS servers withdraw from the current scanning cycle and will wait for the very next scanning cycle. In the next LSS manager’s request the LSS manager proposes again a bit-pattern of the size 1 to 31 Bit for another part of the LSS address to be identified. Again all unconfigured LSS servers participating in this scanning cycle compare the proposed bit pattern with the relevant part of their LSS address and indicate a 100 % match to the LSS manager. Other LSS servers, where the proposed bit mask is not equal to the relevant part of the LSS address, do not take part in this scanning cycle any longer. This way, by repeating this procedure several times, the LSS manager is enabled to identify a single, unconfigured LSS server and gets automatically the entire LSS address. As soon one unconfigured LSS server is identified, the LSS manager can assign a CANopen node-ID value to this LSS server so that the LSS server is enabled to take part in the CANopen network.

To decrease the boot-up time in CANopen systems that may be modified by the end user, the LSS manager could store LSS addresses that have been identified. On each power-up, the LSS manager could try those addresses first and if there is then still an unconfigured LSS server left in the system, the generic LSS scanning cycle is started.

Title Details
CiA 305 version 3.0.0CANopen layer setting services (LSS) and protocols
DescriptionThis document specifies the layer setting services (LSS) and protocols for CANopen. These services and protocols are used to inquire or to change the settings of three parameters of the physical layer, data link layer, and application layer on a CANopen device with LSS server capability by a CANopen device with LSS manager capability via the CAN network.
DSP1.9 MiB2013-05-08Login