...
View file | ||||
---|---|---|---|---|
|
Set IP address
To set the IP address of the netIC you can use the netIdent protocol. The netIdent protocol was developed by Hilscher for easy configuration of Hilscher devices with Ethernet interfaces.
...
PC UDP port: 25384
netIC UDP port: 25383
UDP Frame
Data (118 bytes)
IP address to be assigned to the netIC (C0 a8 01 0b = 192 168 1 11)
...
There are several possibilities to send TCP/UDP packets. On the next page there are two command line examples for netcat and packetsender.
netcat
To send and receive udp packets you can use as example 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\
...
-s IP address of the NIC, only necessary if you have multiple NICs
-p bind to UDP port
For Windows https://nmap.org/ncat
echo <hex to ascii> | ncat -u -w 1 -v -s 192.168.1.10 -p 25384 255.255.255.255 25383
packetsender
To send and receive udp packets you can use as example packetsender.
Packetsender can be used for Linux, Mac and Windows. https://packetsender.com/
...
-u for UDP
-x for hex data
-w 1000 for close connection after 1second
-b bind to UDP port
The example command works only with one NIC
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.
Download and information at https://winscp.net/
After the installation the WinSCP installation path must be added to the Windows environment variable PATH.
e.g.
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).
FTP files
*.nxf is the firmware file
*.nxd are the configuration files
In the path
/SYSVOLUME/Port_1/sx/pub
are the web server files 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:
...