Skip to content

Commit

Permalink
Document how to configure static IPs
Browse files Browse the repository at this point in the history
Since both the apard32690 and swiot1l projects are now using the
192.168.97.40/16 IP by default, the user is required to manually
configure an IP in the same network for their host's interface. Update
the documentation to include the wiki guide on how to do this.

Signed-off-by: Ciprian Regus <[email protected]>
  • Loading branch information
CiprianRegus authored and buha committed May 13, 2024
1 parent af89841 commit 7b70f05
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions projects/apard32690/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,7 @@ This example is meant to print "Hello world" over UART0. Make sure to have jumpe
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 192.168.97.40 IP. These usually include adding a static route
for the said IP address.
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 manually adding a static IP for the host's network interface. You may go though the following guide on how to do this: https://wiki.analog.com/resources/no-os/misc_guides/static_ip_setting?rev=1715173602 (choose an IP in the 192.168.97.x/24 range that's different from the board's address).

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

Expand Down
5 changes: 1 addition & 4 deletions projects/swiot1l/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,7 @@ In order to configure and sample data from the SWIOT1L board, you'll have to con
Build the firmware with the `SWIOT1L_STATIC_IP=y` flag, will result in using `192.168.97.40` as an IP address. This is the fastest way of testing the platform, since it doesn't require the DHCP configuration or DHCP timeout (in case of AutoIP).
Alternatively, you may omit `SWIOT1L_STATIC_IP=y` (or set it to `n`), in which case, the board will send a DHCP request and try to get an IP that way. If you don't have a DHCP server listening on the PC's network interface (to which SWIOT1L is connected), a link local address (in the 169.254.x.x\16 range) will be used. This may take a while (~10s) the first time you power the board, since there have to be 2 failed DHCP requests.

In case a link local or static IP address is used, the user may need to add a static route if the PC has multiple network interfaces up. If using Linux, this can be done by running the following in a terminal:

`sudo ip route add 169.254.97.40/32 dev if_name`
`if_name` should be replaced with the name of the network interface the SWIOT1L board is connected on.
In case a link local or static IP address is used for the AD-SWIOT1L-SL, the user may need to manually add a static IP for their PC's network interface which connects to the board. You may do this by going through the following guide https://wiki.analog.com/resources/no-os/misc_guides/static_ip_setting?rev=1715173602 (and choosing an IP in the same subnet as the AD-SWIOT1L-SL board: e.g 192.168.97.1/24).

```mermaid
graph LR
Expand Down

0 comments on commit 7b70f05

Please sign in to comment.