does anyone know how to modify the html page of the provision mode?
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.
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!!
Hi rodrigotaparelli , can you send us the link to this pdf file?
This pdf file you can find in the example WINC1500_FIRMWARE_UPDATE_PROJECT1 in my case for SAMD21 microcontroller. Here it is the address.
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... : /
Hi rodrigotaparelli, Thank you very much bro, you save my life :)
Hi rodrigotaparelli, Thank you very much, you save my life :)
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:
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.
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?
Has anyone figured out why does the provison mode only works on android browser and not in the computer browser?
I tried and it does work with chrome when you use http:// instead of https://
Hello I figured out I was still using google dns.
If it was possible to add new input elements in the provision webpage: Microchip anwsered no its not possible yet.
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.
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, 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.
© 2018 Microchip Technology Inc.