Skip to content
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

Problem using Arduino Wifi101 with UNO as a web server #8

Closed
sdumans opened this issue Nov 25, 2015 · 11 comments
Closed

Problem using Arduino Wifi101 with UNO as a web server #8

sdumans opened this issue Nov 25, 2015 · 11 comments
Assignees
Labels
status: waiting for information More information must be provided before work can proceed

Comments

@sdumans
Copy link

sdumans commented Nov 25, 2015

I am using the sketch found at

  www.arduino.cc/en/Tutorial/Wifi101SimpleWebServerWiFi

The instructions on this web page are a bit messed up since they talk about lighting
an LED while the code is intended to write out the values of analog voltages.
However, as far as I can tell, that has nothing to do with the problem I am having
getting the sketch to work.

Here is my system configuration:

 Arduino Uno
 Arduino IDE 1.7.7
 Arduino Wifi 101 shield
 Linksys wireless router

I've also tried Arduino IDE 1.6.6 and that doesn't seem to make any difference.
Here is what I see in the Serial window when I run the code:

 Attempting to connect to SSID: linksys1
  SSID: linksys1
  IP Address: 192.168.1.108
  signal strength (RSSI):-50 dBm

When I then try to connect with 'http://192.168.1.108' with my web browser (firefox)
I then see

  new client
  client disconnected

in the Serial window. This indicates to me that I am actually successfully communicating
with the WiFi 101 (I can also ping it ... another good sign) and that the problem is with
the code or that there is something else I need to do from my browser to get the code to
work.

@agdl
Copy link
Member

agdl commented Nov 26, 2015

Well actually thank you because there was a bad link that now I fixed. The right example that must be there is
https://github.com/arduino-libraries/WiFi101/blob/master/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino

And previously there were:
https://github.com/arduino-libraries/WiFi101/blob/master/examples/WiFiWebServer/WiFiWebServer.ino

Using this last example if I upload it and I go to the ip address it prints on the serial monitor I can read out the analog values without problems. I also have firefox as browser. Have you something that maybe blocks the page in the browse? Haver you updated the WiFi101 library to the latest release?

@agdl agdl self-assigned this Nov 26, 2015
@agdl agdl added the status: waiting for information More information must be provided before work can proceed label Nov 26, 2015
@sdumans
Copy link
Author

sdumans commented Nov 26, 2015

Arturo,

Thanks for your note. I was actually interested in reading the analog
voltages from my Arduino. That being
said, I tried the LED sketch at the link you sent me and the same
problem occurs. Specifically, as soon as I
point my browser to the web address the result is the same as seen on
the serial monitor:

     new client
     client disconnected

I do not see a message on my browser and I cannot control the LED.

As far as I know, I have the latest WiFi101 library ... how can I check
that? Also, please note that I am using
the WiFi101 shield with an Arduino Uno, not an Arduino Zero.

Steve Umans

Dr. Stephen D. Umans
Consultant
Life Fellow, IEEE
Member, US National Academy of Engineering

617-306-9773
umans@alum.mit.edu
http://alum.mit.edu/www/umans

On 11/26/2015 3:49 AM, Arturo Guadalupi wrote:

Well actually thank you because there was a bad link that now I fixed.
The right example that must be there is
https://github.com/arduino-libraries/WiFi101/blob/master/examples/SimpleWebServerWiFi/SimpleWebServerWiFi.ino

And previously there were:
https://github.com/arduino-libraries/WiFi101/blob/master/examples/WiFiWebServer/WiFiWebServer.ino

Using this last example if I upload it and I go to the ip address it
prints on the serial monitor I can read out the analog values without
problems. I also have firefox as browser. Have you something that
maybe blocks the page in the browse? Haver you updated the WiFi101
library to the latest release?


Reply to this email directly or view it on GitHub
#8 (comment).

@agdl
Copy link
Member

agdl commented Nov 26, 2015

Argh... you are right. Actually it doesn't work with all the AVR boards! @sandeepmistry @cmaglie any idea?

We ( @facchinm and me) tried to solve it but without success

@sandeepmistry
Copy link
Contributor

I can confirm this behaviour with an Arduino Uno running the SimpleWebServerWiFi example with the master version of the library and using Chrome.

It might have something to so with the packet buffer sizes, as things work fine with the Zero.

@agdl
Copy link
Member

agdl commented Nov 26, 2015

@sandeepmistry we tried to modify the buffer size but the problem persist

@sdumans
Copy link
Author

sdumans commented Nov 26, 2015

Thanks. Does that mean that there is something I can to do in order to
get around the problem?
Do I need to download another version of the IDE, a new library of some
sort, etc.?

Tnx

Dr. Stephen D. Umans
Consultant
Life Fellow, IEEE
Member, US National Academy of Engineering

617-306-9773
umans@alum.mit.edu
http://alum.mit.edu/www/umans

On 11/26/2015 3:41 PM, Cristian Maglie wrote:

Closed #8 #8 via
#9 #9.


Reply to this email directly or view it on GitHub
#8 (comment).

@agdl
Copy link
Member

agdl commented Nov 27, 2015

@sdumans we are planning a new release so you can update the library from the library manager. If you don't want to wait you can download the actual library as a zip here:

https://github.com/arduino-libraries/WiFi101/archive/master.zip

and replace the files in your sketchbook/libraries folder

agdl added a commit that referenced this issue Nov 27, 2015
@sdumans
Copy link
Author

sdumans commented Nov 27, 2015

Thanks Arturo. I downloaded the zip file but quite frankly, as a
newcomer to Arduiono, I don't know how to proceed to
update the WiFi101 library from the zip file. Are there instructions
somewhere?

Steve Umans

Dr. Stephen D. Umans
Consultant
Life Fellow, IEEE
Member, US National Academy of Engineering

617-306-9773
umans@alum.mit.edu
http://alum.mit.edu/www/umans

On 11/27/2015 5:58 AM, Arturo Guadalupi wrote:

@sdumans https://github.com/sdumans we are planning a new release so
you can update the library from the library manager. If you don't want
to wait you can download the actual library as a zip here:

https://github.com/arduino-libraries/WiFi101/archive/master.zip

and replace the files in your sketchbook/libraries folder


Reply to this email directly or view it on GitHub
#8 (comment).

@mbanzi
Copy link

mbanzi commented Nov 27, 2015

Steve from the release number of your IDE I can see you're using the IDE release by somebody else.

Please go to https://www.arduino.cc/en/Main/Software and download the 1.6.6 Arduino IDE
then download the file https://github.com/arduino-libraries/WiFi101/archive/master.zip
Unzip it and rename the folder to WiFi101 then follow this guide https://www.arduino.cc/en/Guide/Libraries at "Manual Installation"

@sdumans
Copy link
Author

sdumans commented Nov 27, 2015

Thank you! I installed the library using the 'Sketch => Include Library
=> Add .ZIP Library...' option and that worked.
The sketch now works properly and I am indeed able to control the LED
from my browser. I will now try some of
the other examples that I couldn't get to work such as reading the
Analog voltages from my Arduino Uno board.

Steve Umans

Dr. Stephen D. Umans
Consultant
Life Fellow, IEEE
Member, US National Academy of Engineering

617-306-9773
umans@alum.mit.edu
http://alum.mit.edu/www/umans

On 11/27/2015 9:12 AM, Massimo Banzi wrote:

Steve from the release number of your IDE I can see you're using the
IDE release by somebody else.

Please go to https://www.arduino.cc/en/Main/Software and download the
1.6.6 Arduino IDE
then download the file
https://github.com/arduino-libraries/WiFi101/archive/master.zip
Unzip it and rename the folder to WiFi101 then follow this guide
https://www.arduino.cc/en/Guide/Libraries at "Manual Installation"


Reply to this email directly or view it on GitHub
#8 (comment).

@jahangirali555
Copy link

@agdl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: waiting for information More information must be provided before work can proceed
Projects
None yet
Development

No branches or pull requests

5 participants