Code Monkey home page Code Monkey logo

Comments (9)

drp0 avatar drp0 commented on July 19, 2024

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(&param) 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.

sandeepmistry avatar sandeepmistry commented on July 19, 2024

@drp0 I've submitted a patch in #23 to resolve this. Would you be able to try it out?

from wifi101.

drp0 avatar drp0 commented on July 19, 2024

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.

drp0 avatar drp0 commented on July 19, 2024

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.

sandeepmistry avatar sandeepmistry commented on July 19, 2024

@drp0 great, thanks for trying. We'll have to wait for someone to review and merge #23.

from wifi101.

drp0 avatar drp0 commented on July 19, 2024

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.

z-l-p avatar z-l-p commented on July 19, 2024

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.

sandeepmistry avatar sandeepmistry commented on July 19, 2024

@z-l-p I've made pull request #205 to resolve this, it would be great to get your feedback on it.

from wifi101.

z-l-p avatar z-l-p commented on July 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.