element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Azure Sphere Starter Kit
  • Products
  • Dev Tools
  • Avnet Boards Community
  • Azure Sphere Starter Kit
  • More
  • Cancel
Azure Sphere Starter Kit
Forum No Azure server connection but WiFi connected
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Azure Sphere Starter Kit to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Not Answered
  • Replies 7 replies
  • Subscribers 47 subscribers
  • Views 831 views
  • Users 0 members are here
Related

No Azure server connection but WiFi connected

psn1
psn1 over 5 years ago

I have tried to run my new mobo

 

 

Followed this  Cabe Atwell's Getting Started Guide

https://hackster.us7.list-manage.com/track/click?u=3fd72855783c7f1a97812d84e&id=4ff0833875&e=537bbb3615

 

 

Updated OS (by azsphere device recover)  to 19.09

 

 

Successfully connected to wifi:

SSID                : *

Configuration state : enabled

Connection state    : connected

Security state      : psk

Frequency           : 2452

Mode                : station

Key management      : WPA2-PSK

WPA State           : COMPLETED

IP Address          : 192.168.2.133

MAC Address         : *

 

I have complete Getting Started Guide but data from my device are not sent to server.

 

 

My investigation:

I have added to the ShockDetect project

bool isNetworkingReady = false;
if ((Networking_IsNetworkingReady(&isNetworkingReady) < 0) || !isNetworkingReady) {
Log_Debug("\nNetwork is not up.\n");
Log_Debug("%s (%d).\n", strerror(errno), errno);
}

 

and receive error

Network is not up.

No error information (0).

---

I have tested also from azure-sphere-samples

1. PrivateNetworkServices project with interface changed to wifi

 

 

output

INFO: Networking_GetInterfaceCount: count=1

INFO: Networking_GetInterfaces: actualCount=1

INFO: interface #0

INFO:   interfaceName="wlan0"

INFO:   isEnabled="1"

INFO:   ipConfigurationType=1 (DhcpClient)

INFO:   interfaceMediumType=1 (Wi-Fi)

INFO:   interfaceStatus=0x0f

 

2. CurlEasyHttps project

 

 

OutPut

Not doing download because network is not up.

---

So I have

Networking_IsNetworkingReady - false

but

Networking_GetInterfaceConnectionStatus - 0 (So OK)

 

 

I have found this issue about similiar problem

https://github.com/Azure/azure-sphere-samples/issues/84

 

 

The reason was device have not sync time server.

 

 

I have tried to use Retail Evaluation Azure Sphere OS feed and try OS 19.10

azsphere device link-feed --feedid 82bacf85-990d-4023-91c5-c6694a9fa5b4

but after

azsphere device image list-targeted

I received

Received HTTP response: 404 (Not Found)

 

 

I have checked two access points with and without PSK key.

Contest App shows green that I am connected

  • Sign in to reply
  • Cancel

Top Replies

  • psn1
    psn1 over 5 years ago +1
    I have tried with third wifi access point - Android Phone - and it started working! I will try find out what was the problem. Maybe I should try check some Internet gate and DNS setup on dev kit
Parents
  • wizio
    0 wizio over 5 years ago

    Log_Debug( Networking_IsNetworkingReady(&isNetworkReady) ); ... is "bad"

    Log_Debug is equivalent of printf, the first parameter must be format string...

    int Log_Debug(const char *fmt, ...);

     

    some like that

    https://github.com/Wiz-IO/framework-azure/blob/master/arduino/core/common.cpp#L7

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • psn1
    0 psn1 over 5 years ago in reply to wizio

    I have corrected this:

     

    bool isNetworkingReady = false;
    if ((Networking_IsNetworkingReady(&isNetworkingReady) < 0) || !isNetworkingReady) {
    Log_Debug("\nNot doing download because network is not up.\n");
    Log_Debug("%s (%d).\n", strerror(errno), errno);
    }

     

    Output:

    Not doing download because network is not up.

    No error information (0).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • wizio
    0 wizio over 5 years ago in reply to psn1

    are you config wifi?

    azsphere dev wifi

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • psn1
    0 psn1 over 5 years ago in reply to wizio

    Yes

    SSID                : *

    Configuration state : enabled

    Connection state    : connected

    Security state      : psk

    Frequency           : 2452

    Mode                : station

    Key management      : WPA2-PSK

    WPA State           : COMPLETED

    IP Address          : 192.168.2.133

    MAC Address         : *

     

    After I commented out part of HTTPS_Curl_Easy responsible for Networking_IsNetworkingReady checking, application correctly connected to external server and downloaded webpage content.

     

     

    But after I omitted Networking_IsNetworkingReady part from  ShockDetect project I received

    IoTHubDeviceClient_LL_CreateWithAzureSphereDeviceAuthProvisioning returned 'AZURE_SPHERE_PROV_RESULT_NETWORK_NOT_READY'.
    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • wizio
    0 wizio over 5 years ago in reply to psn1

    try as this

    https://github.com/Wiz-IO/framework-azure/blob/master/arduino/core/common.cpp#L4

    while and delay

    there is "hidden" process on module reset  for DNS and SNTP

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • psn1
    0 psn1 over 5 years ago in reply to wizio

    Waiting does not help. Stucked on waitWifi()

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Reply
  • psn1
    0 psn1 over 5 years ago in reply to wizio

    Waiting does not help. Stucked on waitWifi()

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube