EasyManua.ls Logo

Sys Tec Electronic GW-003 - Example for a Customer-Specific Configuration Script

Default Icon
108 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
CAN – Ethernet Gateway
50 © SYS TEC electronic GmbH 2007 L-1032e_9
- there are example configuration scripts for client and
server applications (refer to section
3.5.2)
The CAN-Ethernet Gateway is in the set state following a
start with the customer specific configuration and can
attempt establishing a connection or wait for a connection
to be established.
The corresponding configuration script is selected and executed in the
event of a power-on or software reset, according to the requirements
listed above.
5.2 Example for a Customer-Specific Configuration Script
The following overview shows a series of commands and parameters
as used in the example file
rc.
siocfg 9600
Switching on the RS-232 interface and
setting the baud rate
ipcfg 192.168.10.117
255.255.255.0
192.168.10.1
Setting the IP address, subnet mask and
standard Gateway
mkif led
Creating the LED interface for status display
/if/led0/fin +l +hd1
Configuration of the LED interface
mkif can
Creating a CAN interface
mkif udp
Creating a UDP client interface for
establishing an active connection to another
Gateway
mkif udpserv
Creating a UDP server interface
/if/can0 baud:0
canid:fe on
Configuring the CAN interface for 1 Mbit/s
with CAN error message, CAN interface is
switched on
/if/udp0
to:192.168.10.115 on
Configuring the UDP client interface with
target IP address entry, the interface is
switched on and starts the connection

Table of Contents