WINC1500 provision mode: modify html

Go To Last Post
17 posts / 0 new
Author
Message
#1
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi,

does anyone know how to modify the html page of the provision mode?

Last Edited: Fri. Oct 16, 2015 - 12:28 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 1

It is impossible right now. Please, complain to the official support.

NOTE: I no longer actively read this forum. Please ask your question on www.eevblog.com/forum if you want my answer.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Top Tips:

  1. How to properly post source code - see: https://www.avrfreaks.net/comment... - also how to properly include images/pictures
  2. "Garbage" characters on a serial terminal are (almost?) invariably due to wrong baud rate - see: https://learn.sparkfun.com/tutorials/serial-communication
  3. Wrong baud rate is usually due to not running at the speed you thought; check by blinking a LED to see if you get the speed you expected
  4. Difference between a crystal, and a crystal oscillatorhttps://www.avrfreaks.net/comment...
  5. When your question is resolved, mark the solution: https://www.avrfreaks.net/comment...
  6. Beginner's "Getting Started" tips: https://www.avrfreaks.net/comment...
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi all,

               In the Atmel-Frimware-Update-Procedure-for-WINC-Module-using-a-SAM-Xplained-Pro.pdf there is a section for HTML provisioning customization to change the HTML provisioning page so you can put your company logo,etc. But when I try to run "modify_provisioning_webpage.bat" it shows the error 'image_builder" not recognized. So where is the image_builder.exe app? As far as I understand it should be at the folder WINC1500_FIRMWARE_UPDATE_PROJECT1\src\firmware\Tools\image_builder\debug. The complete name of this app is All-in-one SPI Flash Image Builder", I can't find anywhere in Atmel. Please, help me!! 

Customization

 

Customization2

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi rodrigotaparelli , can you send us the link to this pdf file?

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi Selman,

                    This pdf file you can find in the example WINC1500_FIRMWARE_UPDATE_PROJECT1 in my case for SAMD21 microcontroller. Here it is the address.

 

C:\Users\Rodrigo\Documents\Atmel Studio\7.0\WINC1500_FIRMWARE_UPDATE_PROJECT1\WINC1500_FIRMWARE_UPDATE_PROJECT1\src\doc

 

                 Anyway the filie is attached in this post.

 

                  I openned a support case at Atmel and they sent me the image_builder.exe attached. This .exe file should be placed at the folder Documents\Atmel Studio\7.0\WINC1500_FIRMWARE_UPDATE_PROJECT1\WINC1500_FIRMWARE_UPDATE_PROJECT1\src\firmware\Tools\image_builder\debug). But unfortunatelly it's not working yet, It shows the message "Applying modificaction for 2B0 image:" but nothing happens. It looks like it is freezed somehow, I waited for more than 15min and still nothing happened... : /  

Attachment(s): 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi rodrigotaparelli, Thank you very much bro, you save my life :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hi rodrigotaparelli, Thank you very much, you save my life :)

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

yeslaugh

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

That EXE is exactly what I was missing!!! Thank you rodrigotaparelli!  Now I can change the interface : ).

 

Has anyone figured out the Device Name field on their interface???  I was going to hi-jack it and change it to email but it doesn't seem to pass with the provisioning info.  The provisioning info is only 100 Bytes (SSID(33), Passphrase(65), sec type(1), and status (1).  However, if you look at the data received on the SAMD21 you can see that if just fills any leftover space in the SSID and passphrase with more data as follows:

 

XXXX\0Password\0YYYY\0device-name\0ZZZZ\0connect\0Connect\0"vEOT----------

 

where XXXX = what was entered for SSID, YYYY = what was entered for passphrase, and ZZZZ = what was entered for device-name.  So if i used that field i could parse it out but ONLY if passphrase was far enough under max length to allow it to be stored.  So this would not work in cases with an absurdly long passprhase.  Just wondered if anyone figured out how to confidently access this field.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello,

 

Can someone tell if it's possible to add new input elements in the provision webpage besides the network name and password ?

And if so how can i grab those values?

 

Best regards,

 

Daniele

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Has anyone figured out why does the provison mode only works on android browser and not in the computer browser?

 

 

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I tried and it does work with chrome when you use http:// instead of https://

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

Hello I figured out I was still using google dns.

Thx.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

If it was possible to add new input elements in the provision webpage: Microchip anwsered no its not possible yet.

Last Edited: Thu. Dec 14, 2017 - 10:13 AM
  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

instead of using the provisioning page on winc1500 you can use the host the webpage on the mcu and then you can input other elements.

  • 1
  • 2
  • 3
  • 4
  • 5
Total votes: 0

I don't know if anyone is still interested in this, but if you only want to change the provisioning webpage and not reflash all the firmware, this is how you do it:

- Run modify_provisioning_webpage.bat (this runs image_builder.exe) with your new webpage. The webpage needs to be a bit less than 8192 bytes (8172 bytes or less is good).

- Now use a HEX editor (like HxD) to copy the area where the webpage sits out of the firmware file at 0x7000 to 0x8FFF. (Or delete 0x0000 to 0x6FFF and 0x9000 to the end). Use the binary as is, or use something like bin2h.exe to convert to a hex array.

- Put the WINC into programming mode

- Do programmer_erase(0x7000, 2 * FLASH_SECTOR_SZ); to erase the two sectors where the webpage is located in the WINC flash memory (8192 bytes at 0x7000)
- Use programmer_write_firmware_image() to reprogram those two sectors with the new webpage (that you copied out of the firmware file earlier)

Something like this:
memcpy(flash_content, &provpage[0], FLASH_SECTOR_SZ);
programmer_write_firmware_image(flash_content, 0x7000, FLASH_SECTOR_SZ);
memcpy(flash_content, &provpage[FLASH_SECTOR_SZ], FLASH_SECTOR_SZ);
programmer_write_firmware_image(flash_content, 0x7000 + FLASH_SECTOR_SZ, FLASH_SECTOR_SZ)

 

Restart the WINC and the new webpage will be displayed in provisioning mode.

 

Last Edited: Tue. Apr 2, 2019 - 09:19 AM