Most recent activity
-
-
-
can it be inadequate power-some power glitch/brownout? if you use esp8266 with it an connect it to same power source the total system power draw may change a lot e.g due to wifi traffic and may cause random power issues if it draws too much.
I thought about it too but i use very good voltage regulators.
-
@Gordon thank you for your suggestions and efforts! I tested a lot too. And I have come to the conclusion that sometimes reading and writing to storage is very slow. This is not a problem anyway, but if there is a delayed reboot after that, the memory will be cleared. But it also happens very rarely and I think it has to do with running out of memory.
This strange code sometimes produced this error:
function log(f){ if (require("Storage").read(f) == "undefined") { require("Storage").write(f,'1'); }else{ var n=parseInt(require("Storage").read(f))+1; n=n.toString(); require("Storage").write(f,n); } } for (var g=0; g<10; g++) { clearInterval(); clearWatch(); console.log(require("Storage").getFree()+'-'+parseInt(require("Storage").read('gs4.pc'))+1); log('gs4.pc'); setTimeout(E.reboot,2000); }
Thank you very much!
-
I use the MDBT42Q with the 2v09 firmware.
I connected the ESP8266 to it.
After 2 months of operation, the flash became empty!>require("Storage").list() =[ ] >require("Storage").getFree(); =40960
The code and the logs are disappeared.
The device has been self-initialized, working, and can be connected.
I tried another MDBT42Q yesterday and the same thing happened!
Is it possible that the storage write could cause a problem?
I do a simple log, I write very little data (basically i am writing a counter):function log(f){ if (require("Storage").read(f) == "undefined") { require("Storage").write(f,'1'); }else{ var n=parseInt(require("Storage").read(f))+1; n=n.toString(); require("Storage").write(f,n); } }
This log runs very rarely.
I couldn't manually reproduce this thing maybe someone has a similar experience?
This is very scary for me. -
Same here..MDBT42Q, 2v09
>require("Storage").list() =[ ] >require("Storage").getFree(); =40960 >process.memory(); ={ free: 2458, usage: 42, total: 2500, history: 17, gc: 0, gctime: 3.47900390625, blocksize: 16, stackEndAddress: 536928976, flash_start: 0, flash_binary_end: 432868, flash_code_start: 442368, flash_length: 524288 } >
I can connect to the device, but I don’t want to do anything else with it until there’s a suggestion.
The power supply was continuous and i use a good quality adapter, voltage regulator and battery. I was able to connect to the device, I didn’t have to reboot, but the flash was completely empty. I used the flash to log in, but that couldn't be much data. -
- 13 comments
- 2,822 views
-
Hello @Gordon, this Puck.js Lite is a good idea! It was tiring to solder the beacon :) When can I order these?