question

15451811 avatar image
0 Votes"
15451811 asked ChandraNekanti-3683 answered

Avnet Azure Sphere- Cannot connect to ethernet

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
image.png (12.9 KiB)
· 3
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@15451811 thank you for your question. Can you please confirm that you have followed the Board Configuration as described here?: https://docs.microsoft.com/en-us/azure-sphere/network/connect-ethernet?tabs=cliv2beta#board-configuration

78780-image.png

Thank you!

0 Votes 0 ·
image.png (139.3 KiB)

I have created the Board Configuration package as given in the Microsoft documents.
I have also sideloaded it checked it whether it is present or not using this command "azsphere device image list-installed".
Thanks for your response

0 Votes 0 ·

Thank you for confirming it @15451811 . I can see that you opened another issue here: https://github.com/Azure/azure-sphere-samples/issues/198

Adding it for cross-link.

1 Vote 1 ·
ChandraNekanti-3683 avatar image
1 Vote"
ChandraNekanti-3683 answered

Updating the thread:

In this scenario, ETH WIZ click board was being used which is unsupported with Azure Sphere. Currently, only the ENC28J60 ethernet chipset boards are supported.

https://docs.microsoft.com/en-us/azure-sphere/network/connect-ethernet?tabs=cliv2beta

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

ChandraNekanti-3683 avatar image
0 Votes"
ChandraNekanti-3683 answered 15451811 edited

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


· 6
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

This is what I did.
First I used PrivateNetworkServices sample and set "wlan0" as NetworkInterface in main.c and debug.
Then I used the command "ipconfig" in command prompt . I got the required output
Then I set the Network interface as "eth0", connected the ETHERNET board on Click1 and connected the ethernet cable and then "Build" and "Debug". This is when I got the error.

0 Votes 0 ·

As the eth0 is not visible, it could be a faulty eth click board. Do you have another click board or Azure Sphere board to identify if either board is causing the issue?

0 Votes 0 ·
15451811 avatar image 15451811 ChandraNekanti-3683 ·

I tried it with different Azure boards. Got same error.

0 Votes 0 ·
15451811 avatar image 15451811 ChandraNekanti-3683 ·

I have also tried using another Ethernet board. Still I have the same error.

85614-image.png


0 Votes 0 ·
image.png (11.8 KiB)
15451811 avatar image 15451811 ChandraNekanti-3683 ·

I have also tried using the Custom NTP sample program. Here too I have the same error.
85700-image.png


0 Votes 0 ·
image.png (18.0 KiB)

I didn't use any Azure Hub connections on the code.
I used Private Network Service and Custom NTP sample code.
I can join in for Support call.

0 Votes 0 ·