Disconnecting when trying to use WiFI shield

General discussion about topics related to OpenMV.
maged
Posts: 5
Joined: Sun Oct 21, 2018 7:38 am

Disconnecting when trying to use WiFI shield

Postby maged » Sun Oct 21, 2018 7:40 am

Hi,
When trying to run some of the example WiFi-Shield examples, I'm seeing the following:
The board will connect, and print in the serial terminal:
> Trying to connect.. (may take a while)...

It will then disconnect, and not print ifconfig().

Occasionally it also prints:
> Trying to connect.. (may take a while)...
> Running in Station Mode

Any ideas on how to get board's IP?
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: Disconnecting when trying to use WiFI shield

Postby kwagyeman » Sun Oct 21, 2018 3:01 pm

Hi, um, are you running the latest firmware on the OpenMV Cam and what's the device part number on the wifi? In particular, if the firmware is old this can be an issue.

That said, I'd check the pins on the wifi shield are okay. Usually, a problem happens because the soldering job to connect the wifi shield to the OpenMV Cam has an issue. Can you verify you see SPI traffic?
Nyamekye,
maged
Posts: 5
Joined: Sun Oct 21, 2018 7:38 am

Re: Disconnecting when trying to use WiFI shield

Postby maged » Sun Oct 21, 2018 8:37 pm

Firmware version is 3.0.0. Shield part number is ATWINC1500-MR210PB. How do I verify SPI traffic?
maged
Posts: 5
Joined: Sun Oct 21, 2018 7:38 am

Re: Disconnecting when trying to use WiFI shield

Postby maged » Sun Oct 21, 2018 9:16 pm

I'm also seeing the behavior where the camera does not disconnect, but it gets stuck at "Trying to connect (may take a while)...".
maged
Posts: 5
Joined: Sun Oct 21, 2018 7:38 am

Re: Disconnecting when trying to use WiFI shield

Postby maged » Sun Oct 21, 2018 9:22 pm

Actually getting stuck at this line:
> wlan = network.WINC()

not the actual wlan.connect line
User avatar
kwagyeman
Posts: 2401
Joined: Sun May 24, 2015 2:10 pm

Re: Disconnecting when trying to use WiFI shield

Postby kwagyeman » Sun Oct 21, 2018 9:41 pm

Hi,
Please run the following script, send the output (if it doesn't hang).

Code: Select all

import network
wlan = network.WINC()
print(wlan.fw_version())
Also, please make sure all the pins are actually connected (sometimes pins bend and slide to the sides of the connector).
Nyamekye,
maged
Posts: 5
Joined: Sun Oct 21, 2018 7:38 am

Re: Disconnecting when trying to use WiFI shield

Postby maged » Mon Oct 22, 2018 11:31 pm

Looks like it was a pin connection issue. It worked with a different OpenMV cam and wifi shield I had, connected differently. Thanks for the help.

Return to “General Topics”

Who is online

Users browsing this forum: No registered users and 1 guest