To create new device, you should call vspe_createDevice (or just load configuration file using vspe_loadConfiguration method). This function takes two parameters: name and initString. Name is device type: for example, "Connector" or "Splitter". initString is initialization string. All parameters in initialization string are separated by ';'.
- SerialSettings is special settings block in which parameters are separated by commas. It describes serial port advanced settings.
- Format: Speed,DtrRts,Bits,StopBits,Parity,CustomReadIntervalTimeout
- Example: 19200,0,8,1,0,0
- Initialization string example: 1;0
- Description: ComPortIndex;Emulate baud rate
- Initialization string example: 10;1;0;19200,0,8,1,0,0;0;0;0
- Description: VirtualComPortIndex;RealComPortIndex;ReadOnly;SerialSettings;UseModemRegisters;UseRts;UseDtr
- Initialization string example: 10;11;0
- Description: ComPortIndex1;ComPortIndex2;Emulate Baud rate
- Initialization string example: 1;2
- Description: OldComPortIndex;NewComPortIndex
- Initialization string example: 5555;1;19200,0,8,1,0,0;1;127.0.0.1;0;0
- Description: TcpPort;ComPortIndex;SerialSettings;UseDtrRts;InterfaceIP
- Initialization string example: 192.168.10.2;5555;1;19200,0,8,1,0,0;0;30;MyScript;0;0;ComPortReadOnly;ComPortWriteOnly
- Description: TcpHost;TcpPort;ComPortIndex;SerialSettings;DtrRts;ReconnectTimeout;Script;ComPortReadOnly;ComPortWriteOnly Script can be omitted
- Initialization string example: 192.168.10.2;5555;1;19200,0,8,1,0,0
- Description: Host;Port;ComPortIndex;SerialSettings
- Initialization string example: 1;19200,0,8,1,0,0;2;19200,0,8,1,0,0;0
- Description: ComPortIndex1;SerialSettings1;ComPortIndex2;SerialSettings2;UseModemRegisters