-
Notifications
You must be signed in to change notification settings - Fork 128
Arduino 101 + Wifi 101 Shield board freeze. #50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@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 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? |
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.
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. |
I installed WiFi101 library 0.9.0 and updated 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? |
Hi @apiascik , |
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? |
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)? |
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 |
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. |
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... |
I believe the "freeze" is the result of the I took the scanNetworks example, set up my own serial output |
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. |
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! |
🎉 😄 |
Moved from arduino/Arduino#4797
@apiascik:
The text was updated successfully, but these errors were encountered: