Initialize (I)
Function | Initializes the settings of the device |
Can be issued through | Network (broadcasts ignored*, login required); serial port |
Command format | I |
Possible replies | A, D, F |
Initialize command restores the settings of the device to their default factory values. Some settings are initialized each time this command is executed. Other settings are initialized or left intact depending on the interface (network or serial) through which the Initialize command was issued and also on whether or not a particular setting contained a valid or invalid value.
All settings can be divided into three groups:
-
Settings that are initialized unconditionally, no matter whether the Initialize command is issued through the network or through the serial port. For example, the Routing Mode (RM) setting is always reset to 0 (server) after the initialization.
-
Settings that are initialized unconditionally for the serial Initialize command, but are only initialized in case they contained an invalid value (or found to be corrupted) for the network Initialize command. One of such settings is the IP-address (IP). Since resetting the IP-address might possibly make the device inaccessible through the network the risk is minimized by leaving the setting intact unless it is “bad”.
-
Settings that are only initialized when they contained an invalid value, no matter whether command was issued through the network or through the serial port. For example, the MAC-address (FE) setting is never altered unless found to be invalid. This is because the MAC-address is preset during the production and should not be altered unless absolutely necessary.
When issued through the network, the Initialize command requires prior login using the Login (L) command. Denied (D) reply code is returned if the programming session is not in progress or if it doesn’t belong to the sender of the Initialize command - the DS remembers the IP-address of the network host that opens the programming session and requires that all subsequent commands (that require prior login) are sent from the same IP.
* Without prior selection using Select In Broadcast Mode (W) command.