Setup Tool (configuration)

Configuration is a tool for setting Device Name to be used for accessing the device, and it is also used for hardware setting and firmware update and output diagnostic report of some devices.
Because of character-based tool, you can perform the setting operation by selecting the command with numbers or alphabets and press the enter key from the menu.

For API-DIO(LNX), the device can be used when the driver is started and the setting file(contec_dio.conf) is copied to /proc.
Start and stop device driver by executing driver start script (contec_dio_start.sh) and driver stop script (contec_dio_stop.sh).
Configuration generates the setting file and these script files. For the processing details, refer to the script file.

Start option

While the Setup menu switch between Japanese and English depending on environment variable LANG, you can select the menu language by specifying the option when the Setup is started.

-j : Show the menu in Japanese
-e : Show the menu in English

Example of start screen

When you start up the configuration, the following screen will be displayed.
*You need root privileges to launch the configuration.

By selecting various commands and pressing Enter, you can set and detect the device and output the diagnostic report.

Device settings

Diagnostic report function

Configuration command

The commands used in the configuration are as follows.
The commands that can be executed depend on the target device.

Change DeviceName

Set the device name.
It can not have the same name as any other device.
When specifying a device from an application, specify this DeviceName.

Add device manually

- Devices can be added manually by selecting "a" on the config screen and press Enter.
- In case of 1-7, devices according to each category can be registered manually.
- In case of 8, DEMO DEVICE can be added. For more information of DEMO DEVICE, please refer to Demo Device Specifications.

Network settings

Configure the wired LAN network.

920MHz wireless settings

Make settings related to 920MHz wireless communication.
Aging Time
Set the connection maintenance time between the master and slave.
The initial value is 600. Normally, use the default value, but if you have changed Data Interval setting,
We recommend changing the value to about 10 times Data Interval setting.
It is also recommended to set the same value for this setting on the master unit and the slave unit.
Wireless Channel
Set the channel used for 920 MHz band communication.
PAN ID
Set the PAN ID used for 920 MHz band communication.
It is fixed to 0 when Device Mode of "Other settings" is set to "CONPROSYS mode"
Tx Power
Set transmission output.
Normally, it uses the initial value of 20 (mW).
Bit Rate
Set the bit rate (communication speed).
Normally, it uses the initial value of 100 (kbps).
Request Timeout
Set the communication timeout time between the master unit and slave unit.
Normally, it uses the initial value of 3000 (msec).
Encryption Key
Set the encryption key used for communication between the master unit and the slave unit.
It is specified with 32-digit or 64-digit hexadecimal number, and the initial value is all 0.
In order for the master unit and the slave unit to communicate, the same value must be set in Encryption Key.
Priority Route
Specify the preferred communication route.
This is valid only when Device Mode is "Wireless I/O mode".

FailSafe settings

Configure the fail-safe function
Event Trigger
Sets the condition to activate fail-safe state.
Linkdown is conditional on link down of the network such as disconnection of the LAN cable.
NoAccess is conditional on condition that there is no access for a certain period of time.
Failsafe OutBit
Set the output terminal to output with the fail-safe function.
It specifies by hexadecimal number, and it outputs from the output terminal with bit 1.
Setting example: To use output terminals 0, 1, 2, 3, set F
Pattern Setting
Set the output data to be output with the fail-safe function.
Set 0 or 1 output in hexadecimal from the output terminal set with "FailSafe OutBit".
Setting example: To set the output of output terminals 0, 1, 2, 3 to "0, 1, 0, 1", set A
Start wait time
Set the time to disable the fail-safe function after turning on the power.
The fail-safe function is enabled after the set time has elapsed.

Firewall settings

Set whether to allow Event Notify Function (UDP:0x501F) in Firewall settings.
If unregistered, the event notification function of the ETH device will not be available.
If registered, the port on the PC side will be released and connections from the ETH device UDP:0x501F will be allowed.

When an ETH device is detected, the ETH device UDP:0x501F is allowed by default.

Other settings

DI Count
Select Enabled to start the digital input counter function when the device starts up.
Apart from this setting, it is also possible to start and stop by executing the API function after starting.
Count Edge
Select the direction in which you want to count the digital inputs.
Unit ID
When using the same product, it is necessary to set the Unit ID uniquely.
Device ID
When using several slave units with one master unit, it is necessary to set the Device ID uniquely.
Digital Filter
Set the digital filter value at power on of this device.
When using this device with API-DIO(LNX) driver, it is possible to set the digital filter at any time by API function separately from this setting.
Data Interval
Sets the time interval at which the input value of this device is transmitted to its master unit.
Device Mode
Normally, it is used in the default "Wireless I/O mode".
When using as a slave unit of our product CONPROSYS series, select "CONPROSYS mode".
Select "Peer-to-Peer mode" when operating with two slave units without using the master unit.
Modbus Function
Set enable / disable of Modbus function.
It is compatible with Modbus TCP Slave and can collect and control data from upper communication equipment with Modbus master function.
The default value is Enabled.

Diagnostic report function

This function outputs a diagnostic report for the environment in which the customer is using.
The diagnostic report will include information such as your PC environment and the status of connected devices.
Information such as the PC environment is output as a diagnostic result even when the device is not connected.
When contacting the support center, please include this report.

The procedure for using the diagnostic report output function is shown below.

(1) Select "e" on the config screen and press Enter.
    

(2) Select the device to output the diagnostic report and press Enter. (Please select the number listed in the device list.)
    To output the diagnostic report for all devices, select "a" and press Enter.
   

(3) Remove the cable from the device to check the input / output.
    After selecting "y" and pressing Enter, the diagnostic report will be saved in the same location as the configuration you ran.
    * Disconnect the cable connected to the terminal.
       If the USB cable, LAN cable, or power cable is disconnected, the diagnosis cannot be performed normally.
   

   ■ Example of diagnostic report

      An example of a diagnostic report is shown below.
     The diagnostic report will include the results of checking the operation of your PC environment and device.