Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

General discussion about topics related to OpenMV.
User avatar
jiapei100
Posts: 33
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby jiapei100 » Wed Sep 05, 2018 11:42 pm

It looks like you redefined pins on Cam M7, but the Wifi Shield is too OLD?
  • pin sequence on cam M7:
    GND-VIN-P7-P8-P9-SYN-BOOT-RST
  • pin sequence on Wifi:
    GND-VCC-P7-P8-RST-BOOT-SWD-SWC
Any updated Wifi module?

I'm testing on my own wiring...

Cheers
Pei
Welcome to Longer Vision
http://www.longervision.ca
User avatar
kwagyeman
Posts: 2291
Joined: Sun May 24, 2015 2:10 pm

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby kwagyeman » Thu Sep 06, 2018 12:47 am

The upper pins on the wifi shield aren't connected to anything so it doesn't matter.
Nyamekye,
User avatar
jiapei100
Posts: 33
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby jiapei100 » Thu Sep 06, 2018 2:18 am

Great to know that...

However, I still have an issue: How to test network?

I strictly followed https://docs.micropython.org/en/latest/ ... class-wlan, the code is:

Code: Select all

import network
nic = network.Driver(...)

But, I failed to with the followingn ERROR message:

Code: Select all

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
AttributeError: 'module' object has no attribute 'Driver'

Does OpenMV be fully compatible with MicroPython?


Cheers
Pei
Welcome to Longer Vision
http://www.longervision.ca
User avatar
kwagyeman
Posts: 2291
Joined: Sun May 24, 2015 2:10 pm

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby kwagyeman » Thu Sep 06, 2018 6:45 pm

Have you tried using our WiFi scripts under Examples -> Wifi Shield?
Nyamekye,
User avatar
jiapei100
Posts: 33
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby jiapei100 » Fri Sep 07, 2018 2:54 am

Great !! Thank you !! It's working NOW...

Code: Select all

Trying to connect... (may take a while)...
Running in Station mode...
[-54, 2, 'SHAW-xxxxxx', 'f8:f0:05:a1:b9:ce', '192.168.0.8']
MicroPython v1.9.4-4510-g23e8457de on 2018-06-29; OPENMV3 with STM32F765
Type "help()" for more information.
>>> 
Is the IP address fixed to 192.168.0.8?

How can I set a static IP for OpenMV ?


Cheers
Pei
Welcome to Longer Vision
http://www.longervision.ca
User avatar
kwagyeman
Posts: 2291
Joined: Sun May 24, 2015 2:10 pm

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby kwagyeman » Fri Sep 07, 2018 12:17 pm

The IP address is given out by the DHCP server on your Network. If you use AP mode the IP will be static.
Nyamekye,
User avatar
jiapei100
Posts: 33
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby jiapei100 » Fri Sep 07, 2018 2:28 pm

That might happen. I've got 2 routers, both using the same SSID name.
The master one is a bit far, that is why I'm using the 2nd one as AP.
There is a possibility that OpenMV's Wifi is ONLY able to find the 2nd router ??
Welcome to Longer Vision
http://www.longervision.ca
User avatar
kwagyeman
Posts: 2291
Joined: Sun May 24, 2015 2:10 pm

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby kwagyeman » Fri Sep 07, 2018 2:36 pm

Hi, you should edit your routers config to assign the OpenMV Cam the same IP address based on the OpenMV Cam's MAC address.
Nyamekye,
User avatar
jiapei100
Posts: 33
Joined: Fri Oct 14, 2016 7:07 pm
Contact:

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby jiapei100 » Fri Sep 07, 2018 4:00 pm

I actually have already done that on my master(1st) router for OpenMV.
But, it seems that doesn't help on the 2nd router (AP)...

Should I reboot both of my routers as well, because I've already reboot OpenMV multiple times, and it's always assigned the IP: 192.168.0.8


Cheers
Pei
Welcome to Longer Vision
http://www.longervision.ca
User avatar
kwagyeman
Posts: 2291
Joined: Sun May 24, 2015 2:10 pm

Re: Pins of Wifi Shield is NOT able to directly plugged into Cam M7 ?

Postby kwagyeman » Fri Sep 07, 2018 4:06 pm

The OpenMV Cam has no control over it's IP address assignment. So, you have to go into your routers to make it static.
Nyamekye,

Return to “General Topics”

Who is online

Users browsing this forum: Google [Bot] and 3 guests