Avnet Azure Sphere- Cannot connect to ethernet

Nishith V Poojary 21 Reputation points
2021-03-17T12:13:45.043+00:00

Hello,
I use Starter Kit Rev2.
I was working on PrivateNetworkServices sample provided by the Azure from this link (https://github.com/Azure/azure-sphere-samples/tree/master/Samples/PrivateNetworkServices).
I was able to get output on Command prompt when I used WiFi(“wlan0”). But when I changed the Network Interface to “eth0” in the ‘main.c’ program, I get an error in Visual studio as below
78667-image.png

How can I remove this error? Thank you.

Azure Sphere
Azure Sphere
An Azure internet of things security solution including hardware, operating system, and cloud components.
156 questions
{count} votes

1 additional answer

Sort by: Most helpful
  1. Chandranmsft 856 Reputation points
    2021-03-18T19:23:29.423+00:00

    From the logs shared with my colleague, I do not see eth0 configuration on the device. I could repro the same without connecting an ethernet board. When an ethernet board is connected to my device, I could see the eth0 in my device configuration (even without sideloading the image package). It could be that the ethernet board is faulty or something wrong with the connection.

    INTERFACE STATUS:
    -> Interface name: [azspheresvc]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : False
    -> Connected to internet : False
    -> Interface name: [lo]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : False
    -> Connected to internet : False
    -> Interface name: [wlan0]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : False
    -> Connected to internet : False

    With ethernet board connected

    INTERFACE STATUS:
    -> Interface name: [azspheresvc]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : False
    -> Connected to internet : False
    -> Interface name: [eth0]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : True
    -> Connected to internet : False
    -> Interface name: [lo]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : False
    -> Connected to internet : False
    -> Interface name: [wlan0]
    -> Network interface up : True
    -> Connected to network : False
    -> Interface has IP address assigned : True
    -> Connected to internet : False