Skip to main content

Ethernet

{{@218#bkmrk-open-iot-and-iiot-ga}}

Link to repositories:

  • C
  • MicroPython (#TODO)

Connection

EthernetETHERNET connectionadapter isshould associatedbe connected to WLAN with allocatinga RJ45 cable.

image-33.webp

Description

This example demonstrates basic usage of ETHERNET driver. After flashing the CGE2 will try to obtain an unique IP address whichin a network it will identifybe connected to. Once it will be done it will be possible to ping the device in athis network. DependingThis onexample the purpose, it might be necessary to choose between allocatingis a dynamicgood orbase afor staticdeveloping IPown address.network Forsolutions.

developer

Console usage,output

there are both examples provided.

image.png

Remember to connect the IoT Gateway to the network by an Ethernet cable.image.png

IP adressing:

  • dynamic - There is no need to do any modifications. Just flash into device. Blinking green LED indicates communication. Open serial port monitor to see logs.

2a6e6bbb-da0b-4e19-aefb-cbdcd54912ec.png

  • static - In this example it is important to set network settings manually. Flash into device. Blinking green LED indicates communication. Open serial port monitor to see logs.

Parameters to be changed:

  • DEFAULT_IP (IP address)
  • DEFAULT_GW (Gateway address)
  • DEFAULT_NM (Network mask)

13302356-4e8c-4d59-aa7b-6f7c9c16edaf.png