vThings Forums
wifi password truncated : not connected - Printable Version

+- vThings Forums (http://forum.vair-monitor.com)
+-- Forum: vThings (http://forum.vair-monitor.com/forumdisplay.php?fid=1)
+--- Forum: vAir Monitor (CO2, Dust, Tempereature, etc..) (http://forum.vair-monitor.com/forumdisplay.php?fid=2)
+--- Thread: wifi password truncated : not connected (/showthread.php?tid=8)

Pages: 1 2


wifi password truncated : not connected - stephane - 09-23-2016

Hi !

I try to set up my device but my wifi password is not saved in his intregrality.
My password is composed of 63 ASCII characters. 


Quote:---vESPrinoCFG_start---
isMigrated=1
custom_url_arr0=http://192.168.1.7/?vthing&%CO2%&%PM25%&%PM10%
send.interval=120
wifi.ssid=Heaven7
wifi.p1=!GSoQYNfs||Ae3B?Q`\16'I.?4&&
---vESPrinoCFG_end---


 What's is the problem ?

Many thanks for the help ;-)

Stéphane


RE: wifi password truncated : not connected - admin - 09-23-2016

aahh Sorry!.. i realized a couple of days ago that i should envision 64 char long passwords, and added a check about this in one place of the code, completely forgetting the other few Smile
i fixed it now, but for now i will not push a general update for all devices about this, so you can update only yours with the command

otah

in the input field below, it will download and install the new fw in half a minute


RE: wifi password truncated : not connected - stephane - 09-24-2016

thanks for your help but I have this message :


Quote:Will update from: http://anker-bg.com/vlast3k/vesprino/latest.bin]
[HTTP error: connection refused
HTTP_UPDATE_FAILED


strange because I can download from this url directly in chromium.

Can I update from local file ?


RE: wifi password truncated : not connected - admin - 09-24-2016

Smile)) indeed 
you need to have wifi to download the fw
http://forum.vair-monitor.com/showthread.php?tid=6&pid=12#pid12
here i have described how to manually update


RE: wifi password truncated : not connected - stephane - 09-24-2016

Quote:D:\Download\esptool-0.4.9-win32>esptool -vv -cd nodemcu -cb 256000 -cp "COM3" -cf latest.bin
esptool v0.4.9 - © 2014 Ch. Klippel <ck@atelier-klippel.de>
        setting board to nodemcu
        setting baudrate from 115200 to 256000
        setting port from COM1 to COM3
        espcomm_upload_file
        espcomm_upload_mem
        setting serial port timeouts to 1000 ms
opening bootloader
resetting board
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        read 0, requested 1
trying to connect
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
        espcomm_send_command: receiving 2 bytes of data
Uploading 342400 bytes from latest.bin to flash at 0x00000000
        erasing flash
        size: 053980 address: 000000
        first_sector_index: 0
        total_sector_count: 84
        head_sector_count: 16
        adjusted_sector_count: 68
        erase_size: 044000
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        setting serial port timeouts to 15000 ms
        setting serial port timeouts to 1000 ms
        espcomm_send_command: receiving 2 bytes of data
        writing flash
................................................................................ [ 23% ]
................................................................................ [ 47% ]
................................................................................ [ 71% ]
................................................................................ [ 95% ]
...............                                                                  [ 100% ]
starting app without reboot
        espcomm_send_command: sending command header
        espcomm_send_command: sending command payload
        espcomm_send_command: receiving 2 bytes of data
closing bootloader
        flush start
        setting serial port timeouts to 1 ms
        setting serial port timeouts to 1000 ms
        flush complete

I have updated the device but after power off/on, my wifi pass is always truncated  Huh Confused :


RE: wifi password truncated : not connected - Vladimir Savchenko - 09-24-2016

hmm I will check then again in the afternoon
I will set a long password on my router as well

and btw
do you have " in the pwd ?


RE: wifi password truncated : not connected - stephane - 09-24-2016

my wifi password is like this one :

!t?7k?qen?s|:.oiSKO|ar/qcMFreJ&ST`V+k?~cPN9BC=21255o+1B70%h6#k!

but no " in.


RE: wifi password truncated : not connected - admin - 09-24-2016

i found one additional place where i had to check for the length.. i had to test it the first time but i was too sure it would work.. sorry
download again latest.bin (this time it is a bit bigger as i added some other functionality)


RE: wifi password truncated : not connected - stephane - 09-24-2016

Hi Vladimir,

The link : http://anker-bg.com/vlast3k/vesprino/latest.bin give me the same firmware old firmware (md5 : 49096D9E273A1905221B2C4C202B2141)

Don't you have forget to upload it ?  Tongue


RE: wifi password truncated : not connected - admin - 09-24-2016

hmmm are you sure it is not cached somehow ?
the new one is 421k
you can also try
http://anker-bg.com/vlast3k/vesprino/firmware20160924.bin