Azure / azure-sphere-samples

Samples for Azure Sphere
Other
223 stars 200 forks source link

Default Interface #238

Closed BaillyAlex closed 2 years ago

BaillyAlex commented 2 years ago

Hello, the build is working as expect, the only issue I have is related to the network interfaces. I setup and enabled my Wifi interfaces but instead using this one it use the network interface "azspheresvc". Any solution :) ?

Thank you.

chandran-Az commented 2 years ago

Hi @BaillyAlex - Are you using a specific sample for the n/w interface testing? Could you share additional information on how the wifi ids and security details are being configured? Thanks!

BaillyAlex commented 2 years ago

Hi @chandran-Az, thank for your reply. I'm currently using the AzureIOT sample. About the wifi configuration I follow this step : https://docs.microsoft.com/en-us/azure-sphere/install/configure-wifi?pivots=vs-code

BaillyAlex commented 2 years ago

The configuration of my Wifi is currently on Configuration State enabled and ConnectionState Connected

chandran-Az commented 2 years ago

Thanks for the quick update. From a windows powershell, can you run the below command and confirm the connectivity? Ideally, it would show as connected to one of the network connections. below output is for reference.

Command - azsphere device network list-interfaces

Output:

image

BaillyAlex commented 2 years ago

here the screenshot. image

BaillyAlex commented 2 years ago

and my issue.. :) image

chandran-Az commented 2 years ago

Thanks for sharing the screenshots. From the first screenshot, your wifi is configured and connected to Internet with IP 192.168.1.59. When you sideload an application and attach a debugger, the connection to the device is established through FTDI port and uses the 192.168.35.1 address for the connection. This is a non-issue and just how the product works. Hope this helps.

BaillyAlex commented 2 years ago

Do you know how could I use instead wlan0 :) ? I'm not sure it suppose to only use this network interface.

BaillyAlex commented 2 years ago

Fixed with : https://docs.microsoft.com/en-us/azure-sphere/app-development/setup-iot-hub?tabs=cliv2beta#step-4-create-an-x509-device-in-your-iot-hub-for-your-azure-sphere-device