...
Configuration of the NIC 52-RE via FTP script
Please find the following Example attached to this Application Note:
...
To set the IP address of the netIC you can use , the netIdent protocol. protocol "netIdent" can be used.
The netIdent protocol was developed by Hilscher for easy configuration of Hilscher devices with Ethernet interfaces.More information about it can be found in the document «NetIdentProtocol_OI_03.pdf»
To set the IP address only one UDP packet has to be send to the device.
...
PC UDP port: 25384
netIC UDP port: 25383
UDP Frame
Data (118 bytes)
...
There are several possibilities to send TCP/UDP packets. On the next page there are
Please find below two command line examples for netcat and packetsender.
...
To send and receive udp packets you can use as for example the Tool netcat.:
For Linux and WSL:
echo -n -e "\x48\x49\x4e\x49\x00\x00\x03\xe8\x00\x00\x00\x03\x00\x00\x00\x01\x00\x00\x20\x7e\x00\x00\x00\x00\xc0\
...
To send and receive udp packets you can use as example packetsender., for example the Tool packetsender can be used:
Packetsender can be used for Linux, Mac and Windows. https://packetsender.com/
...
FTP Script
Prerequisits are:→
- Connection to the device via Ethernet port
...
- FTP server active
...
- IP address set in the netIC
Install WinSCP
In this example WinSCP is used as FTP client.
Please find the Download and more information at https://winscp.net/.
After the installation the WinSCP installation path must be added to the Windows environment variable PATH.e.g.
For example:
C:\Program Files (x86)\WinSCP
Create configuration data
Unfortunately, there is no possibility to create the configuration data directly.
The easiest way to create them is to configure the netIC with the netX Configuration Tool.
Once the netIC is configured, the required data can be downloaded via FTP (Filezilla or similar).
...
*.nxf is the firmware file
*.nxd are the configuration files
In the path
/SYSVOLUME/Port_1/sx/pub
are , the web server files are stored.
FTP Script
The example script "script_netIC.txt" consists of two commands
...
For more information see https://winscp.net/eng/docs/guide_automation.
Calling the script
The script can be called via batch file. The script file is called with the following command:
...