Code Monkey home page Code Monkey logo

Comments (14)

sandeepmistry avatar sandeepmistry commented on July 1, 2024

@apiascik I'm not seeing this issue at all with my Arduino 101 board using core v1.0.5 and a modified version of v0.9.0. I've tested with both firmware version 19.3.0 and 19.4.4 running on the shield.

The both the ScanNetworks and ConnectWithWPA examples are running fine.

The last two changes I mentioned in #51 (comment) are needed to build v0.9.0 on the 101, a regression was introduced in #47. How did you test v0.9.0 of the library?

Do you have another Arduino boards other than the 101 to test the shield out with?

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@sandeepmistry

How did you test v0.9.0 of the library?

To try out the WiFi101 0.9.0 library, I removed WiFiMdnsResponder.cpp/h from the library folder. This is obviously not anywhere near a real solution, but it was enough to get things to compile so I could at least try out 0.9.0.

Do you have another Arduino boards other than the 101 to test the shield out with?

I don't have any other Arduino boards, such as the Uno, to test things out with.

I haven't looked in depth at #51 (comment), but will try to update to 0.9.0 and (correctly) get things to compile to see if I observe any differences. I will report back on my results.

Is there anything else about my environment that might explain our different results? IDE 1.6.8? USB 2.0 vs 3.0? Please let me know if there's any other information I can provide.

FYI, I've been looking at the SPI traffic while attempting to scan networks. I don't see anything that indicates the code attempts to handle the M2M_WIFI_RESP_SCAN_DONE case (even when I don't call Serial.begin). I'm still familiarizing myself with the interface, so nothing is jumping out at me as incorrect/invalid.

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@sandeepmistry

I installed WiFi101 library 0.9.0 and updated WiFiMdnsResponder.cpp and pgmspace.h with the modifications in to #51 and observed the same behavior.

I used Arduino IDEs 1.6.8, [http://downloads.arduino.cc/javaide/pull_requests/arduino-PR-4820-BUILD-546-windows.zip], and the latest nightly build (2016-04-05 12:13:10 GMT). Please let me know if I missed something. Just for completeness, this was on my USB 2.0-only system with Windows 7 x64.

Is there something else I can/should try?

from wifi101.

facchinm avatar facchinm commented on July 1, 2024

Hi @apiascik ,
maybe the issue is not Curie or Wifi101 related but you are experiencing a side effect of an IDE bug. We are trying to solve it here arduino/Arduino#4792 (comment), would you give this build a spin? Thanks you so much!

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@sandeepmistry

Right now, the information I can get from debugging is limited. It would be helpful to have M2M_ERR print to the console, however, defining CONF_WINC_DEBUG results in compilation errors. What is involved in configuring the WiFi101 library for debug output?

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@facchinm,

I tried build 547 but got the same result (at least from a serial output perspective).

I just want to make sure I did the right thing to test the build. I downloaded the BUILD-547-windows.zip, extracted the files into that directory, and ran Arduino.exe right from there. After that didn't work, I pointed DeviceManager at the build folder but it indicated drivers were up to date.

Please let me know if I should have done something more/differently (for example, should I have uninstalled 1.6.8 first)?

from wifi101.

facchinm avatar facchinm commented on July 1, 2024

No need to uninstall the 1.6.8, all the steps you performed were correct. I'll keep you posted if I find something new

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@facchinm, @sandeepmistry

I think I've identified another symptom that might help explain what's going on. I happened to have headphones plugged in and noticed what I considered to be an excessive number of USB disconnects/connects when executing the ScanNetworks example. I compared this to the Blink example, and sure enough, there was a difference.

I took a modified Blink example ( added "while(!Serial);Serial.println("starting");" ) with the Serial monitor window closed. Before opening it, the Serial Monitor device eventually appears. Opening up the Serial monitor window, the device stays there, and I hear no USB device disconnects.

On the other hand, starting from the same state with ScanNetworks, I observe the device disappear the "Scanning available networks...\n** Scan Networks ** text, the device disappears from Device Manager, then reappears a few seconds later.

I tried closing and re-opening the SerialMonitor but got the message "Board at COM6 is not available". Hopefully this points toward something.

I'll try this on my other system tomorrow to see if I observe the same behavior.

from wifi101.

facchinm avatar facchinm commented on July 1, 2024

@apiascik, I believe you are experiencing #4700 or #4777. The fix for these bugs has been merged in mainline, so if you downloads an hourly build from here the problem should disappear

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@facchinm

Thanks for the quick feedback. I tried this release one my two systems. I observed the same behavior as before on both. The Serial Monitor device doesn't disappear until the network scan begins (after the MAC address has been retrieved). I don't observe this behavior when executing the CheckWiFi101FirmwareVersion.

*EDIT: I should also note that after this occurs, I need to disconnect and reconnect the Arduino, as any attempt to upload a new sketch fails (Device is not responding, make sure you have the right COM port...

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@facchinm

I believe the "freeze" is the result of the while(!Serial) loop in setup(), i.e., the board (or sketch) appears to restart/reset.

I took the scanNetworks example, set up my own serial output (SoftwareSerial mySerial(0,1);, modified the output to distinguish the call to listNetworks in setup() from the one in loop() and observe the one in setup() being executed repeatedly.

ScanNetworks2.ino.txt

from wifi101.

facchinm avatar facchinm commented on July 1, 2024

Ok, since the problem is not the serial port (or, at least, it's not THE problem), I believe that the last thing to check is that the board is not underpowered. This topic on the forum shows roughly the same problem (http://forum.arduino.cc/index.php?topic=377942.0) and it was resolved by using a wall charger.

from wifi101.

apiascik avatar apiascik commented on July 1, 2024

@facchinm

Bingo! I didn't have a wall wart handy, so I tried different USB ports on my laptop and I have available networks printing out sigh of relief. I'll definitely be picking up a few adapters... Hopefully it'll be smooth sailing from here.

Thanks for all your help, and sorry it took so long to get to this conclusion!

from wifi101.

facchinm avatar facchinm commented on July 1, 2024

🎉 😄

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.