Comments (9)
I experience the same issue on an arduino mega R3 2560
I am waiting for the wifi101 shield to arrive and have been coding in anticipation.
With a bare board, status() fails.
No return from m2m_wifi_init(¶m) in m2m_wifi.c
Last point of failure tracked to nm_read_reg(M2M_WAIT_FOR_HOST_REG) in nmasic.c (No return)
Naturally it should never have got this far into the initialise sequence.
As andreimatei above I expect that the nm_drv_init routine should return with an error much earlier!
David
from wifi101.
@drp0 I've submitted a patch in #23 to resolve this. Would you be able to try it out?
from wifi101.
Yes,
I tried clicking on #23 , then (541b5be#diff-57b01d2f3e2fef366d5fd9f83065c011L53).
This link opens part way into src/driver/source/nmasic.c
I opened the view source, and replaced a copy of nmasic.c with the linked code-
No return from WiFi.status()
Let me know if I have dived down the wrong rabbit hole,
David
from wifi101.
Test 2-
I replaced
#define TIMEOUT (0xfffffffful)
with
#define TIMEOUT (0x2000ul)
Using the CheckWifi101FirmwareVersion sketch, the WIFI.status() routine returned in 15.22 seconds with NOT PRESENT (WL_NO_SHIELD)
David
from wifi101.
@drp0 great, thanks for trying. We'll have to wait for someone to review and merge #23.
from wifi101.
No problem,
I also tried #define TIMEOUT (2000)
as it seemed probable that the timeout was a milli-second value
The routine returned in just over 3 seconds.
from wifi101.
I regret to report that this problem is back in library versions 0.14 and up (2017.03.22). I tried with bare Mega 2560 and Pro Mini boards and reproduced same result as original post.
(Confirmed fixed in 0.9 thru 0.13 though.)
from wifi101.
@z-l-p I've made pull request #205 to resolve this, it would be great to get your feedback on it.
from wifi101.
Thanks! sandeepmistry's change works fine with my ATWINC1500 board (quickly returns correct values for present / !present). I can't do more in-depth testing because my board is now installed in an inaccessible place! Sorry.
from wifi101.
Related Issues (20)
- Compiler warning about buffer overflow in firmwareVersion() HOT 1
- 'if' statement at WifiClient.cpp:149 is useless HOT 1
- Wifi101 doesn't work once add the freeRTOS library HOT 3
- AP mode with WPA
- Modernize CI system
- HTTPS to sites using LetsEncrypt certificates with MKR1000 fails HOT 1
- Progressively slower transmission and potential buffer handling issue. HOT 5
- AP SSID goes back to default wifi101-xxxx after re-entering provision mode
- Add GitHub Actions workflow to synchronise with shared repository labels
- WiFi.ping(ip) freezes mkr1000 if WiFiUdp.h included
- Infinite stall on WiFiWebServer sample / MKR 1000 HOT 1
- WiFiServer simple improvements
- WiFi.hostname("MKR1000") function has no effects
- Multiple compilation problems on ESP8266 HOT 4
- Library does not work with WINC1500 and Mega2560 HOT 9
- Adafruit Feather M0 WiFi with uFL - ATSAMD21 + ATWINC1500 - fw 19.4.4
- Tx Power Mode
- Turn on WiFi hardware once turned off with WiFi.end()
- MKR1000 no connection with SSL (https) HOT 1
- ATWINC1500 with WiFi101 with MQTT always leads to a dead connection after some time HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wifi101.