These are chat archives for SmingHub/Sming

11th
Aug 2016
ThomasL
@tht
Aug 11 2016 06:54
#3: This function disables some SDK printing to the serial console: system_set_os_print(0);. In combination with Serial.systemDebugOutput(false); this disabled all the output to the serial console after the boot process.
#2: Check the Makefile-user.mk. There is an option to specify the SPIFFS size. I don't know what the exact maximum value is. I assume 950kB is on the safe side. Just don't quote me on that ;)
ThomasL
@tht
Aug 11 2016 07:02
#1: As far as I know spiffs does not support directories (source: https://github.com/pellepl/spiffs). So no MKD command... PASV should be possible to implement.
psychegr
@psychegr
Aug 11 2016 13:12
@tht Forgot to mention that i am using SmingRTOS. system_set_os_print(0); is not declared in that framework and i dont know the reason. Regarding SPIFFS size i added the SPIFFS_SIZE = 1048576 and it created a 1Mb SPIFFS filesystem. I will try to max it out at 3Mb as this morning i figured out that the file that i want to put in there is a few bytes bigger than 2Mb. I dont know how this is going to work out though. I have a 4Mb flash. Should the user code take more than 1Mb? I dont think so.
hreintke
@hreintke
Aug 11 2016 21:28
@psychegr :
Should be no problem to create a 3Mb Spiffs.
Program code can never be larger than 1Mb. That is an architectural limitation of the esp8266.
You can prevent to always need to reflash the SPIFFS by setting it to a fixed location and than only reflash application.
@psychegr :
Serial.systemDebugOutput(false); should prevent debug output. What output do you still get on the serial line ?
psychegr
@psychegr
Aug 11 2016 21:34
@hreintke thank you for the reply! Maybe i can add one more recipe in the makefile? One to upload only the SPIFFS, in the fixed location and may turn DISABLE_SPIFFS to 1 so that it only flashes the firmware! I want to save some data in spiffs and then encrypt them and save to an SD card or send to a client.
I also found a big crypto library for arduino and i am trying to port it to sming (https://github.com/rweather/arduinolibs/tree/master/libraries/Crypto). I am having issues with the PROGMEM thing. Are there any crypto stuff in the EPS8266 that i can use in SmingRTOS?
Regarding the serial stuff, i still get the line when the ESP8266 adjusts the rf power? or something like that.
hreintke
@hreintke
Aug 11 2016 21:37
@psychegr :
@tht is correct. Spiffs does not support directories.
psychegr
@psychegr
Aug 11 2016 21:39
@hreintke and @tht I think that it supports it in an "indirect" way. I read in the docs that it can create a file in a directory if the filename is "directory/tmp.txt". I havent tried it yet but i will the next days.
hreintke
@hreintke
Aug 11 2016 21:39
@psychegr :
There is no crypto yet in Sming. @harry-boe is working on that. maybe he has a proposal for you.
@psychegr :
Yes, that is correct. We also were thinking to use that together with the cwd of ftp, need to check what already available on that. That will/is only available in SminRTOS.
On PASV : there are currently no plans to include that.
psychegr
@psychegr
Aug 11 2016 21:48
@hreintke i just compiled the whole cryptolib and tested it with AES128 CBC algo. It works. Maybe @harry-boe has something better? I am interested in AES256 CBC and if EPS has one i would gladly take it. I dont want to use extra stuff that ESP already has in there, but not documented...