Upgrading to 1.9.3

Discussion related to "under the hood" OpenMV topics.
User avatar
cagiva
Posts: 76
Joined: Thu Jan 05, 2017 9:23 pm

Upgrading to 1.9.3

Postby cagiva » Thu Nov 16, 2017 3:07 pm

Is there any time frame on when the current OpenMV firmware will be upgraded to the Micropython 1.9.3 release?

I'd like to make usage of the wlan.config() method in 1.9.3 release to setup the M7 board hostname instead of using the naked IP address.

http://docs.micropython.org/en/latest/e ... lan.config
User avatar
kwagyeman
Posts: 1248
Joined: Sun May 24, 2015 2:10 pm

Re: Upgrading to 1.9.3

Postby kwagyeman » Fri Nov 17, 2017 12:03 am

Um, this might be possible if it's not too painful. I'm stuck right now trying to release v2.6. I've finished the IDE but I have to redo a lot of documentation work which is taking forever since there are so many events at the end of the year.

Note that I've found an issue with v2.6 where my SD card I've been using forever fails to work. We might have to go to v2.6.1 to fix this.
Nyamekye,
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Upgrading to 1.9.3

Postby iabdalkader » Fri Nov 17, 2017 8:52 am

Hi, this class is specific to ESP8266 (you can't use it with our WiFi module even if we update to 1.9.3). Currently there's no way to change the host name of WINC1500, it should set the host name to WINC-mac_addr[1]-mac_addr[0]. However, that doesn't seem to happen (looking at my router's DHCP table and the host name is not set), I think maybe it needs a firmware update.
User avatar
cagiva
Posts: 76
Joined: Thu Jan 05, 2017 9:23 pm

Re: Upgrading to 1.9.3

Postby cagiva » Fri Nov 17, 2017 1:37 pm

iabdalkader wrote:
Fri Nov 17, 2017 8:52 am
However, that doesn't seem to happen (looking at my router's DHCP table and the host name is not set), I think maybe it needs a firmware update.
Hi Ibrahim,

Thanks for the clarification about that method being specific to the ESP8266. Regarding the hostname, I see the same problem in my router (i.e. hostname not being set).

I'm trying to use Google single sign-in API to access the camera remotely, but Google requires a hostname. It cannot use the IP address to authenticate. Do you have instructions on how to update the firmware on the WiFi module?
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Upgrading to 1.9.3

Postby iabdalkader » Fri Nov 17, 2017 2:14 pm

There's a script included with the IDE to update the module's firmware, it's really easy to use you just copy the firmware binary to SD and run the script. However I have to pull the latest host driver + firmware from ASF first, merge, upload to a module via serial, test and then dump the binary. This process will take a while, but I plan to work on this soon. The good news is the new host driver and/or firmware allow setting the hostname.
User avatar
cagiva
Posts: 76
Joined: Thu Jan 05, 2017 9:23 pm

Re: Upgrading to 1.9.3

Postby cagiva » Fri Nov 17, 2017 6:42 pm

That will be great. Would you mind posting back here when it is available? Thanks Ibrahim!
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Upgrading to 1.9.3

Postby iabdalkader » Sat Nov 18, 2017 8:59 am

Yes I'll post an update here.
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Upgrading to 1.9.3

Postby iabdalkader » Wed Dec 06, 2017 2:01 pm

Hi, this issue is fixed now, but it won't be released for a while. Here's what you need to do if you want to update the firmware:

* Download and update OpenMV firmware (firmware.bin):
https://github.com/openmv/openmv/tree/m ... re/OPENMV3

* Download the WINC1500 firmware image (winc_19.5.2.bin):
https://github.com/openmv/openmv/tree/m ... e/WINC1500

* Copy winc_19.5.2.bin to uSD root.

* Run the following script:
* Make sure you update OMV firmware before running this script

Code: Select all

# WINC Firmware Update Script.
#
# This script updates the ATWINC1500 WiFi module firmware.
# Copy the firmware image to uSD card before running this script.
# NOTE: Firmware version 19.5.2 does NOT support ATWINC1500-MR210PA.

import network

# Init wlan module in Download mode.
wlan = network.WINC(mode=network.WINC.MODE_FIRMWARE)

# Start the firmware update process.
# For ATWINC1500-MR210PA/B
#wlan.fw_update("/winc_19_4_4.bin")

# For ATWINC1500-MR210PB only.
wlan.fw_update("/winc_19_5_2.bin")
* Reset the camera and run the scan.py script from examples, it should print the following line:

Code: Select all

Firmware version: (19, 5, 2, 19, 3, 0, 1377184)
* Now run connect.py script and check your router's DHCP table, you should see WINC setting a hostname:

Screenshot from 2017-12-06 20-53-51.png
Screenshot from 2017-12-06 20-53-51.png (18.07 KiB) Viewed 74 times
Note I didn't update the host driver to avoid requiring a firmware update to make WINC work.
User avatar
cagiva
Posts: 76
Joined: Thu Jan 05, 2017 9:23 pm

Re: Upgrading to 1.9.3

Postby cagiva » Wed Dec 06, 2017 10:16 pm

I was able to update the firmware to 2.6, but I get this error when I run the WINC Firmware Update Script.

Screen Shot 2017-12-06 at 7.09.56 PM.png
Screen Shot 2017-12-06 at 7.09.56 PM.png (344.08 KiB) Viewed 68 times
User avatar
iabdalkader
Posts: 380
Joined: Sun May 24, 2015 3:53 pm

Re: Upgrading to 1.9.3

Postby iabdalkader » Thu Dec 07, 2017 5:08 am

You need to update to 2.7 (development image) here:

https://github.com/openmv/openmv/tree/m ... re/OPENMV3
User avatar
cagiva
Posts: 76
Joined: Thu Jan 05, 2017 9:23 pm

Re: Upgrading to 1.9.3

Postby cagiva » Thu Dec 07, 2017 11:53 am

Thanks Ibrahim. It works now.

It went from this:
Screen Shot 2017-12-07 at 8.48.08 AM.png
Screen Shot 2017-12-07 at 8.48.08 AM.png (21.02 KiB) Viewed 51 times
To this:
Screen Shot 2017-12-07 at 8.47.04 AM.png
Screen Shot 2017-12-07 at 8.47.04 AM.png (20.46 KiB) Viewed 51 times
Screen Shot 2017-12-07 at 8.44.23 AM.png
Screen Shot 2017-12-07 at 8.44.23 AM.png (112.84 KiB) Viewed 51 times

Return to “Technical Discussion”

Who is online

Users browsing this forum: No registered users and 5 guests