Skip to content

Commit

Permalink
projects: apard32690: Change default static IP
Browse files Browse the repository at this point in the history
Similarly to 18b5609 ("projects: swiot1l: Change default static IP "),
change the default static IP for the echo server project version, since
IPs in the 169.254.0.0/16 range shouldn't be assigned manually.

Update the network mask variable and the documentation accordingly.

Signed-off-by: Ciprian Regus <[email protected]>
  • Loading branch information
CiprianRegus authored and buha committed May 13, 2024
1 parent 9ae3117 commit af89841
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions projects/apard32690/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ APARD32690_STATIC_IP = n
endif

ifeq (y,$(strip $(APARD32690_STATIC_IP)))
NO_OS_IP=169.254.97.40
NO_OS_NETMASK=255.255.255.0
NO_OS_IP=192.168.97.40
NO_OS_NETMASK=255.255.0.0
NO_OS_GATEWAY=0.0.0.0
endif

Expand Down
6 changes: 3 additions & 3 deletions projects/apard32690/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,17 @@ The project includes 2 different examples:
This example is meant to print "Hello world" over UART0. Make sure to have jumpers in the position 2-3 on headers P50 and P55.

2. tcp_echo_server (selected by default) - may be selected by setting the APARD32690_ECHO_SERVER_EXAMPLE = y (and all the other examples to n) in the main Makefile.
This will start a TCP server using the interface ADIN1110 is connected to (the default settings are IP: 169.254.97.40 port: 10000). It will reply back to the connected client with the
This will start a TCP server using the interface ADIN1110 is connected to (the default settings are IP: 192.168.97.40 port: 10000). It will reply back to the connected client with the
characters it receives. The actual IP address, netmask, and gateway used at runtime are printed on the serial port connected through the debug adapter.

The host running the client may require network settings in order to communicate with a device using the 169.254.97.40 IP. These usually include adding a static route
The host running the client may require network settings in order to communicate with a device using the 192.168.97.40 IP. These usually include adding a static route
for the said IP address.

The project may be tested by using netcat on the host:

.. code-block:: bash
netcat 169.254.97.40 10000
netcat 192.168.97.40 10000
#. Open a terminal and navigate to this project directory (if building on Windows, `Git Bash` has to be used).

Expand Down

0 comments on commit af89841

Please sign in to comment.