Closed thomasjec closed 4 years ago
i think i ran into the same issue as this person: https://github.com/universam1/iSpindel/issues/302 commenting out the if statement in the flash() function solved the problem on the info page curious if everything works properly now...
another thing i noticed is that when the ubidots token is saved, the memory gets jammed... the ispindel does not connect anymore to my network, so in config mode it's only accessible through the ispindel ap........the serial monitor then says:
mounting FS... mounted! reading config file deserializeJson() failed: NoMemory
when I connect to the iSpindel, the info page gives a tilt value of 0º however when I look at the data collected in ubidots, it's not 0º at all: it gives values ranging from 0-90º, accordingly to however i move it...
below is the output of the serial monitor of 4 readings with 20s interval, i moved the ispindel and it gives different values from the accelerometer -- however, it says "Acc Test Connection ERROR!"
do you think this is because the gy-521 board is broken, or is something else wrong? any thoughts on this?
thomas
`FW 6.2.0 2.2.1(cfd48f3) Worker run! mounting FS... mounted! reading config file parsed config: {"Name":"iSpindel001","Token":"!!!!","Sleep":20,"Server":"","API":0,"Port":80,"Channel":0,"URI":"","DB":"ispindel","Username":"","Password":"","Job":"ispindel","Instance":"000","Vfact":191.8,"TS":0,"OWpin":12,"POLY":"-0.00031tilt^2+0.557tilt-14.054","SSID":"!!!","PSK":"!!!!","Offset":[0,0,0,0,0,0]} Acc Test Connection ERROR! offsets not available Boot-Mode: Deep-Sleep Wake
woken from deepsleep, normal mode Samples:43 min:39.50 max:39.76 time:752 x: 2636 y: 10846 z: 13267 Tilt: 39.65 Tacc: 42.07 Volt: 4.10 Temp: 23.69 Gravity: 7.54 IP: 192.168.0.106
calling Ubidots {"tilt":39.65211,"temperature":23.6875,"battery":4.098019,"gravity":7.544816,"interval":20,"RSSI":-59} Sender: Ubidots posting POST /api/v1.6/devices/iSpindel001?token=!!! HTTP/1.1 Host: things.ubidots.com User-Agent: ESP8266 Connection: close Content-Type: application/json Content-Length: 102
HTTP/1.1 200 OK Server: nginx Date: Fri, 27 Dec 2019 12:07:21 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: close Allow: GET, POST, HEAD, OPTIONS Vary: Origin, Cookie
d1 {"tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "battery": [{"status_code": 201}], "gravity": [{"status_code": 201}], "interval": [{"status_code": 201}], "rssi": [{"status_code": 201}]} 0
Final-sleep: 20s; RT: 3179 !!!! FW 6.2.0 2.2.1(cfd48f3) Worker run! mounting FS... mounted! reading config file parsed config: {"Name":"iSpindel001","Token":"!!","Sleep":20,"Server":"","API":0,"Port":80,"Channel":0,"URI":"","DB":"ispindel","Username":"","Password":"","Job":"ispindel","Instance":"000","Vfact":191.8,"TS":0,"OWpin":12,"POLY":"-0.00031tilt^2+0.557tilt-14.054","SSID":"","PSK":"","Offset":[0,0,0,0,0,0]} Acc Test Connection ERROR! offsets not available Boot-Mode: Deep-Sleep Wake
woken from deepsleep, normal mode Samples:42 min:32.83 max:33.13 time:749 x: 5682 y: 7759 z: 14200 Tilt: 32.97 Tacc: 42.14 Volt: 4.10 Temp: 23.69 Gravity: 3.97 IP: 192.168.0.106
calling Ubidots {"tilt":32.97059,"temperature":23.6875,"battery":4.098019,"gravity":3.973631,"interval":20,"RSSI":-59} Sender: Ubidots posting POST /api/v1.6/devices/iSpindel001?token= HTTP/1.1 Host: things.ubidots.com User-Agent: ESP8266 Connection: close Content-Type: application/json Content-Length: 102
HTTP/1.1 200 OK Server: nginx Date: Fri, 27 Dec 2019 12:07:43 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: close Allow: GET, POST, HEAD, OPTIONS Vary: Origin, Cookie
d1 {"tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "battery": [{"status_code": 201}], "gravity": [{"status_code": 201}], "interval": [{"status_code": 201}], "rssi": [{"status_code": 201}]} 0
Final-sleep: 20s; RT: 2335 !!!! FW 6.2.0 2.2.1(cfd48f3) Worker run! mounting FS... mounted! reading config file parsed config: {"Name":"iSpindel001","Token":"","Sleep":20,"Server":"","API":0,"Port":80,"Channel":0,"URI":"","DB":"ispindel","Username":"","Password":"","Job":"ispindel","Instance":"000","Vfact":191.8,"TS":0,"OWpin":12,"POLY":"-0.00031tilt^2+0.557tilt-14.054","SSID":"","PSK":"","Offset":[0,0,0,0,0,0]} Acc Test Connection ERROR! offsets not available Boot-Mode: Deep-Sleep Wake
woken from deepsleep, normal mode Samples:42 min:6.14 max:6.19 time:752 x: -1537 y: -884 z: 16423 Tilt: 6.16 Tacc: 42.17 Volt: 4.10 Temp: 23.75 Gravity: -10.64 After waiting 401ms, result 3 IP: 192.168.0.106
calling Ubidots {"tilt":6.158267,"temperature":23.75,"battery":4.098019,"gravity":-10.6356,"interval":20,"RSSI":-51} Sender: Ubidots posting POST /api/v1.6/devices/iSpindel001?token= HTTP/1.1 Host: things.ubidots.com User-Agent: ESP8266 Connection: close Content-Type: application/json Content-Length: 100
HTTP/1.1 200 OK Server: nginx Date: Fri, 27 Dec 2019 12:08:05 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: close Allow: GET, POST, HEAD, OPTIONS Vary: Origin, Cookie
d1 {"tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "battery": [{"status_code": 201}], "gravity": [{"status_code": 201}], "interval": [{"status_code": 201}], "rssi": [{"status_code": 201}]} 0
Final-sleep: 20s; RT: 2590 !!!!! FW 6.2.0 2.2.1(cfd48f3) Worker run! mounting FS... mounted! reading config file parsed config: {"Name":"iSpindel001","Token":"","Sleep":20,"Server":"","API":0,"Port":80,"Channel":0,"URI":"","DB":"ispindel","Username":"","Password":"","Job":"ispindel","Instance":"000","Vfact":191.8,"TS":0,"OWpin":12,"POLY":"-0.00031tilt^2+0.557tilt-14.054","SSID":"","PSK":"","Offset":[0,0,0,0,0,0]} Acc Test Connection ERROR! offsets not available Boot-Mode: Deep-Sleep Wake
woken from deepsleep, normal mode Samples:43 min:6.15 max:6.26 time:752 x: -1561 y: -890 z: 16425 Tilt: 6.20 Tacc: 42.19 Volt: 4.10 Temp: 23.81 Gravity: -10.61 IP: 192.168.0.106
calling Ubidots {"tilt":6.197962,"temperature":23.8125,"battery":4.098019,"gravity":-10.61364,"interval":20,"RSSI":-55} Sender: Ubidots posting POST /api/v1.6/devices/iSpindel001?token= HTTP/1.1 Host: things.ubidots.com User-Agent: ESP8266 Connection: close Content-Type: application/json Content-Length: 103
HTTP/1.1 200 OK Server: nginx Date: Fri, 27 Dec 2019 12:08:27 GMT Content-Type: application/json Transfer-Encoding: chunked Connection: close Allow: GET, POST, HEAD, OPTIONS Vary: Origin, Cookie
d1 {"tilt": [{"status_code": 201}], "temperature": [{"status_code": 201}], "battery": [{"status_code": 201}], "gravity": [{"status_code": 201}], "interval": [{"status_code": 201}], "rssi": [{"status_code": 201}]} 0
Final-sleep: 20s; RT: 2299`