Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ toit serial reinstall --firmware v1.5.0-rc.1 -p model.cellular.enabled=1 -p model.cellular.tx=5 -p model.cellular.rx=23 -p model.cellular.rts=19 -p model.cellular.cts=18 -p model.cellular.pwr=27 -p model.cellular.monarch=1 -p cellular.apn=internet --port=/dev/ttyUSB0
Detecting chip type. This can take up to 10s.
Reinstalling hardware with firmware: v1.5.0-rc.1 (using model: esp32-4mb) on port /dev/ttyUSB0
Running "/home/christian/.cache/toit/tools/esptool_linux_v3.0 --chip esp32 --port /dev/ttyUSB0 --baud 921600 --before default_reset --after hard_reset write_flash -z --flash_mode dio --flash_freq 40m --flash_size detect 0xd000 /tmp/776750000/otadata047105359 0x10000 /tmp/776750000/ota_0138637922"
esptool.py v3.0
Serial port /dev/ttyUSB0
Connecting....
Chip is ESP32-D0WDQ6 (revision 1)
Features: WiFi, BT, Dual Core, 240MHz, VRef calibration in efuse, Coding Scheme None
Crystal is 40MHz
MAC: f0:08:d1:cf:a4:30
Uploading stub...
Running stub...
Stub running...
Changing baud rate to 921600
Changed.
Configuring flash size...
Auto-detected Flash size: 8MB
Compressed 8192 bytes to 31...
Writing at 0x0000d000... (100 %)
Wrote 8192 bytes (31 compressed) at 0x0000d000 in 0.0 seconds (effective 23046.7 kbit/s)...
Hash of data verified.
Compressed 1323840 bytes to 804568...
Writing at 0x00010000... (2 %)
Writing at 0x00014000... (4 %)
Writing at 0x00018000... (6 %)
Writing at 0x0001c000... (8 %)
Writing at 0x00020000... (10 %)
Writing at 0x00024000... (12 %)
Writing at 0x00028000... (14 %)
Writing at 0x0002c000... (16 %)
Writing at 0x00030000... (18 %)
Writing at 0x00034000... (20 %)
Writing at 0x00038000... (22 %)
Writing at 0x0003c000... (24 %)
Writing at 0x00040000... (26 %)
Writing at 0x00044000... (28 %)
Writing at 0x00048000... (30 %)
Writing at 0x0004c000... (32 %)
Writing at 0x00050000... (34 %)
Writing at 0x00054000... (36 %)
Writing at 0x00058000... (38 %)
Writing at 0x0005c000... (40 %)
Writing at 0x00060000... (42 %)
Writing at 0x00064000... (44 %)
Writing at 0x00068000... (46 %)
Writing at 0x0006c000... (48 %)
Writing at 0x00070000... (50 %)
Writing at 0x00074000... (52 %)
Writing at 0x00078000... (54 %)
Writing at 0x0007c000... (56 %)
Writing at 0x00080000... (58 %)
Writing at 0x00084000... (60 %)
Writing at 0x00088000... (62 %)
Writing at 0x0008c000... (64 %)
Writing at 0x00090000... (66 %)
Writing at 0x00094000... (68 %)
Writing at 0x00098000... (70 %)
Writing at 0x0009c000... (72 %)
Writing at 0x000a0000... (74 %)
Writing at 0x000a4000... (76 %)
Writing at 0x000a8000... (78 %)
Writing at 0x000ac000... (80 %)
Writing at 0x000b0000... (82 %)
Writing at 0x000b4000... (84 %)
Writing at 0x000b8000... (86 %)
Writing at 0x000bc000... (88 %)
Writing at 0x000c0000... (90 %)
Writing at 0x000c4000... (92 %)
Writing at 0x000c8000... (94 %)
Writing at 0x000cc000... (96 %)
Writing at 0x000d0000... (98 %)
Writing at 0x000d4000... (100 %)
Wrote 1323840 bytes (804568 compressed) at 0x00010000 in 13.4 seconds (effective 791.6 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
Hardware successfully reinstalled with the Toit firmware.
The hardware has been reinstalled with the following configurations:
+------------------------+----------------+
| SETTING | VALUE |
+------------------------+----------------+
| context | remote |
| model.cellular.rx | 23 |
| model | esp32-4mb |
| model.cellular.enabled | 1 |
| broker.cn | device.toit.io |
| broker.port | 9426 |
| model.cellular.rts | 19 |
| model.cellular.cts | 18 |
| model.cellular.pwr | 27 |
| model.cellular.monarch | 1 |
| cellular.apn | internet |
| broker.host | device.toit.io |
| model.cellular.tx | 5 |
+------------------------+----------------+
$ toit serial info --output table
+-------------------------------------------------------------------------+-----------+--------------------------------------+
| NAME | MODEL | HARDWARE ID |
+-------------------------------------------------------------------------+-----------+--------------------------------------+
| a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com | esp32-4mb | a966ebf8-6407-4964-9685-95ac15170168 |
+-------------------------------------------------------------------------+-----------+--------------------------------------+
$ toit serial monitor
ets Jun 8 2016 00:22:57
rst:0x1 (POWERON_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:188
ho 0 tail 12 room 4
load:0x40078000,len:12180
load:0x40080400,len:2944
entry 0x400805c8
clearing RTC memory: RTC memory is in inconsistent state
[flash reg] address 0x3f46c000, size 0x00134000
[IDENTITY] name=a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com,model=esp32-4mb
(0.015876) [toit] INFO: booting toit {sdk: v1.5.0-rc.1, model: esp32-4mb}
(0.020853) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.565343) [toit.state] INFO: starting new session {session_id: 1, session_time: 0.572454}
[gc @ 0x3ffcf9f0* | soft limit reached (20480 >= 18432)]
[gc @ 0x3ffcf9f0* | heap: 20kb -> 8kb | external: 0kb -> 0kb | free: 9kb->9kb 1.153ms]
(0.654973) [toit.kernel] INFO: using model parameters {cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27, cellular.rts: 19, cellular.rx: 23, cellular.tx: 5}
(0.767247) [toit.console_sync] INFO: loaded last console sync {time: null}
(0.779200) [toit.scheduler] INFO: running job {job: console_sync}
(0.782098) [toit.scheduler] INFO: running job {job: flush_metrics}
(0.784278) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
[gc @ 0x3ffcf9f0* | soft limit reached (24576 >= 24576)]
[gc @ 0x3ffcf9f0* | byte array allocation failed, length = 6 (heap)]
[gc @ 0x3ffcf9f0* | heap: 24kb -> 16kb | external: 0kb -> 0kb | free: 12kb->12kb 1.774ms]
(0.789197) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.818132) [toit.console] INFO: waiting for console connection to be established
(0.822423) [toit.network] DEBUG: connecting {network: Cellular (internet)}
(0.829729) [toit.metrics] INFO: persisting metrics
(0.832869) [toit.metrics] INFO: flushing metrics
[gc @ 0x3ffcf9f0* | soft limit reached (36892 >= 36864)]
[gc @ 0x3ffcf9f0* | byte array allocation failed, length = 511 (heap)]
[gc @ 0x3ffcf9f0* | heap: 36kb -> 20kb | external: 0kb -> 0kb | free: 12kb->12kb 1.981ms]
(1.028840) [toit] INFO: -> AT
(1.039750) [toit] INFO: <- +CEREG: 0
(1.042587) [toit] INFO: <- *ignored* [URC] +CEREG [0]
(1.044457) [toit] INFO: <- OK
(1.148185) [toit] INFO: -> ATE0
(1.155150) [toit] INFO: <- OK
[gc @ 0x3ffcf9f0* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcf9f0* | heap: 44kb -> 28kb | external: 0kb -> 0kb | free: 6kb->6kb 2.330ms]
(1.177953) [toit] INFO: -> AT+CMEE=2
(1.187974) [toit] INFO: <- OK
(1.210741) [toit] INFO: -> AT+CGMM
(1.216364) [toit] INFO: <- FiPy
(1.219228) [toit] INFO: <- OK
(1.241433) [toit] INFO: -> AT+CGMR
(1.246632) [toit] INFO: <- UE5.4.0.2
(1.249568) [toit] INFO: <- OK
(1.271774) [toit] INFO: -> AT+SQNCCID?
(1.277726) [toit] INFO: <- +SQNCCID: "89882390000069114786",""
(1.280405) [toit] INFO: <- OK
(1.282962) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: 89882390000069114786}
(1.302808) [toit] INFO: -> AT+CFUN=4
(1.415383) [toit] INFO: <- OK
(1.437905) [toit] INFO: -> AT+CPIN?
(1.443712) [toit] INFO: <- +CPIN: READY
(1.446313) [toit] INFO: <- OK
(1.468959) [toit] INFO: -> AT+CPSMS=0
(1.476746) [toit] INFO: <- OK
(1.499626) [toit] INFO: -> AT+CEDRXS=0
(1.507575) [toit] INFO: <- OK
(1.530310) [toit] INFO: -> AT+SQNIBRCFG=0
(1.542933) [toit] INFO: <- OK
(1.565984) [toit] INFO: -> AT+SQNIPSCFG=1,100
(1.584009) [toit] INFO: <- OK
(1.606909) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(1.680581) [toit] INFO: <- +SQNBANDSEL: <custom>
(1.683471) [toit] INFO: <- OK
(1.706315) [toit] INFO: -> AT+SQNBANDSEL=1,"standard","20"
(1.713500) [toit] INFO: <- +CME ERROR: operation not supported
(1.736018) [toit] INFO: -> AT+CGDCONT?
(1.742334) [toit] INFO: <- +CGDCONT: 1,"IP","internet",,,,0,0,0,0,0,0,0,,0
(1.745508) [toit] INFO: <- OK
(1.767909) [toit] INFO: -> AT+CFUN=1
(1.841407) [toit] INFO: <- OK
(2.036528) [toit] INFO: <- +CEREG: 2
(2.039057) [toit] INFO: <- [URC] +CEREG [2]
(2.041128) [toit.cellular] DEBUG: attempt modem's automatic connect
(2.050679) [toit.cellular] DEBUG: connecting {operator: null, attempt: 1}
(2.060042) [toit] INFO: -> AT+COPS?
(2.067285) [toit] INFO: <- +COPS: 0
(2.069877) [toit] INFO: <- OK
(2.092370) [toit] INFO: -> AT+CEREG=2
(2.103215) [toit] INFO: <- OK
(2.125750) [toit] INFO: -> AT+CEREG?
(2.131448) [toit] INFO: <- +CEREG: 2,2
(2.134071) [toit] INFO: <- OK
(3.138849) [toit] INFO: -> AT
(3.143797) [toit] INFO: <- OK
(4.148702) [toit] INFO: -> AT
(4.153763) [toit] INFO: <- OK
(5.158833) [toit] INFO: -> AT
(5.163797) [toit] INFO: <- OK
(6.168927) [toit] INFO: -> AT
(6.174506) [toit] INFO: <- OK
(6.192032) [toit] INFO: <- +CEREG: 80
(6.194283) [toit] INFO: <- [URC] +CEREG [80]
(6.196590) [toit] INFO: <- +CEREG: 2
(6.198564) [toit] INFO: <- [URC] +CEREG [2]
(6.201174) [toit.cellular] DEBUG: connection failed
(6.219198) [toit] INFO: -> AT+CFUN=4
(6.327791) [toit] INFO: <- OK
[gc @ 0x3ffcf9f0* | soft limit reached (57372 >= 55338)]
[gc @ 0x3ffcf9f0* | string allocation failed, length = 1 (heap)]
[gc @ 0x3ffcf9f0* | heap: 56kb -> 24kb | external: 0kb -> 0kb | free: 10kb->10kb 2.284ms]
(6.340352) [toit] INFO: <- +CEREG: 0
(6.343565) [toit] INFO: <- *ignored* [URC] +CEREG [0]
(6.348637) [toit.cellular] DEBUG: failed, detach from network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URQ09OTkVDVElPTiBGQUlMRURbI1UCVVNbI1UmWyNVA1VGVQBsAAI4xFsjVQNVRlUBbAACOT9bI1UDVUZVAmwAAjTBWyNVA1VGVQNsAAI07FsjVQNVRlUEbAACpvRbI1UDVUZVBUkk2FsjVQNVRlUGSSTtWyNVA1VGVQdJJMpbI1UDVUZVCGwAAqezWyNVA1VGVQlsAAKoTVsjVQNVRlUKbAACoLdbI1UDVUZVC2wAApmcWyNVA1VGVQxsAAKo/FsjVQNVRlUNbAACpY5bI1UDVUZVDkkk2FsjVQNVRlUPSSTtWyNVA1VGVRBJJHJbI1UDVUZVEWwAAqXLWyNVA1VGVRJsAAKlZ1sjVQNVRlUTbAABAUdbI1UDVUZVFGwAAZw3WyNVA1VGVRVsAAERV1sjVQNVRlUWbAABEXBbI1UDVUZVF2wAARDtWyNVA1VGVRhJJNhbI1UDVUZVGUkk7VsjVQNVRlUaSSTKWyNVA1VGVRtsAAERBlsjVQNVRlUcbAABERxbI1UDVUZVHUkx81sjVQNVRlUebAACR3BbI1UDVUZVH0kk2FsjVQNVRlUgSSTtWyNVA1VGVSFJJHJbI1UDVUZVImwAAkeFWyNVA1VGVSNsAAJHnFsjVQNVRlUkSTGIWyNVA1VGVSVJMiM=
(6.451497) [toit.network] DEBUG: error connecting {network: Cellular (internet), error: CONNECTION FAILED}
(6.458366) [toit.network] WARN: failed to connect to any network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URRkFJTEVEIFRPIENPTk5FQ1RbI1UCVVNbI1UbWyNVA1VGVQBsAAKppVsjVQNVRlUBbAACqQJbI1UDVUZVAmwAAqWOWyNVA1VGVQNJJNhbI1UDVUZVBEkk7VsjVQNVRlUFSSRyWyNVA1VGVQZsAAKly1sjVQNVRlUHbAACpWdbI1UDVUZVCGwAAQFHWyNVA1VGVQlsAAGcN1sjVQNVRlUKbAABEVdbI1UDVUZVC2wAARFwWyNVA1VGVQxsAAEQ7VsjVQNVRlUNSSTYWyNVA1VGVQ5JJO1bI1UDVUZVD0kkylsjVQNVRlUQbAABEQZbI1UDVUZVEWwAAREcWyNVA1VGVRJJMfNbI1UDVUZVE2wAAkdwWyNVA1VGVRRJJNhbI1UDVUZVFUkk7VsjVQNVRlUWSSRyWyNVA1VGVRdsAAJHhVsjVQNVRlUYbAACR5xbI1UDVUZVGUkxiFsjVQNVRlUaSTIj
(6.550580) [toit] INFO: -> AT+CFUN=0
(6.556741) [toit.scheduler] INFO: changing run level {run_level: 0}
(6.560480) [toit.scheduler] INFO: going into deep sleep {ms: 4988}
(6.562509) [toit.metrics] INFO: persisting metrics
(6.837088) [toit] INFO: <- OK
[gc @ 0x3ffcf9f0* | soft limit reached (50205 >= 49194)]
[gc @ 0x3ffcf9f0* | byte array allocation failed, length = 338 (heap)]
[gc @ 0x3ffcf9f0* | heap: 48kb -> 24kb | external: 1kb -> 0kb | free: 15kb->16kb 2.385ms]
(6.945059) [toit] INFO: entering deep sleep {ms: 4988}
Entering deep sleep for 4988ms
ets Jun 8 2016 00:22:57
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:188
ho 0 tail 12 room 4
load:0x40078000,len:12180
load:0x40080400,len:2944
entry 0x400805c8
[flash reg] address 0x3f46c000, size 0x00134000
[IDENTITY] name=a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com,model=esp32-4mb
(0.015873) [toit] INFO: booting toit {sdk: v1.5.0-rc.1, model: esp32-4mb}
(0.020850) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.052663) [toit.state] INFO: resumed session {session_id: 1, session_time: 12.064485}
[gc @ 0x3ffcfa58* | soft limit reached (20480 >= 18432)]
[gc @ 0x3ffcfa58* | heap: 20kb -> 8kb | external: 0kb -> 0kb | free: 9kb->9kb 1.060ms]
(0.069737) [toit.kernel] INFO: using model parameters {cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27, cellular.rts: 19, cellular.rx: 23, cellular.tx: 5}
(0.110093) [toit.console_sync] INFO: loaded last console sync {time: 6.546453}
(0.126101) [toit.scheduler] INFO: running job {job: console_sync}
[gc @ 0x3ffcfa58* | soft limit reached (24576 >= 24576)]
[gc @ 0x3ffcfa58* | heap: 24kb -> 16kb | external: 0kb -> 0kb | free: 8kb->8kb 1.743ms]
(0.129100) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
(0.143111) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.153000) [toit.console] INFO: waiting for console connection to be established
(0.157202) [toit.network] DEBUG: connecting {network: Cellular (internet)}
[gc @ 0x3ffcfa58* | soft limit reached (36892 >= 36864)]
[gc @ 0x3ffcfa58* | heap: 36kb -> 20kb | external: 0kb -> 0kb | free: 12kb->12kb 1.904ms]
(0.199502) [toit] INFO: -> AT
(0.460893) [toit] INFO: -> AT
(0.721468) [toit] INFO: -> AT
(0.982166) [toit] INFO: -> AT
(1.242997) [toit] INFO: -> AT
(1.503712) [toit] INFO: -> AT
(1.764420) [toit] INFO: -> AT
(1.945706) [toit] INFO: <- OK
(2.051704) [toit] INFO: -> ATE0
(2.059565) [toit] INFO: <- OK
(2.082296) [toit] INFO: -> AT+CMEE=2
(2.088186) [toit] INFO: <- OK
[gc @ 0x3ffcfa58* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcfa58* | heap: 44kb -> 20kb | external: 0kb -> 0kb | free: 10kb->10kb 2.228ms]
(2.110701) [toit] INFO: -> AT+CGMM
(2.120413) [toit] INFO: <- FiPy
(2.123343) [toit] INFO: <- OK
(2.145581) [toit] INFO: -> AT+CGMR
(2.166222) [toit] INFO: <- UE5.4.0.2
(2.169153) [toit] INFO: <- OK
(2.191359) [toit] INFO: -> AT+SQNCCID?
(2.196970) [toit] INFO: <- +SQNCCID: "",""
(2.199698) [toit] INFO: <- OK
(2.202279) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: }
(2.222230) [toit] INFO: -> AT+CFUN=4
(2.619347) [toit] INFO: <- OK
(2.641891) [toit] INFO: -> AT+CPIN?
(2.647808) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.902473) [toit] INFO: -> AT+CPIN?
(2.956329) [toit] INFO: <- +CPIN: READY
(2.959011) [toit] INFO: <- OK
(2.981528) [toit] INFO: -> AT+CPSMS=0
(2.988877) [toit] INFO: <- OK
(3.011631) [toit] INFO: -> AT+CEDRXS=0
(3.019684) [toit] INFO: <- OK
(3.042373) [toit] INFO: -> AT+SQNIBRCFG=0
(3.062524) [toit] INFO: <- OK
(3.085397) [toit] INFO: -> AT+SQNIPSCFG=1,100
(3.102909) [toit] INFO: <- OK
(3.126020) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(3.198652) [toit] INFO: <- +SQNBANDSEL: <custom>
(3.201455) [toit] INFO: <- OK
(3.224059) [toit] INFO: -> AT+SQNBANDSEL=1,"standard","20"
(3.231914) [toit] INFO: <- +CME ERROR: operation not supported
(3.254232) [toit] INFO: -> AT+CGDCONT?
(3.260842) [toit] INFO: <- +CGDCONT: 1,"IP","internet",,,,0,0,0,0,0,0,0,,0
(3.264093) [toit] INFO: <- OK
(3.286674) [toit] INFO: -> AT+CFUN=1
(3.357508) [toit] INFO: <- OK
(4.142041) [toit] INFO: <- +CEREG: 2
(4.144244) [toit] INFO: <- [URC] +CEREG [2]
(4.146255) [toit.cellular] DEBUG: attempt modem's automatic connect
(4.160619) [toit.cellular] DEBUG: connecting {operator: null, attempt: 2}
(4.165038) [toit] INFO: -> AT+COPS?
(4.172501) [toit] INFO: <- +COPS: 0
(4.175582) [toit] INFO: <- OK
(4.198047) [toit] INFO: -> AT+CEREG=2
(4.208041) [toit] INFO: <- OK
(4.230413) [toit] INFO: -> AT+CEREG?
(4.236147) [toit] INFO: <- +CEREG: 2,2
(4.238790) [toit] INFO: <- OK
(5.243519) [toit] INFO: -> AT
[gc @ 0x3ffcfa58* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcfa58* | byte array allocation failed, length = 8 (heap)]
[gc @ 0x3ffcfa58* | heap: 44kb -> 24kb | external: 0kb -> 0kb | free: 10kb->10kb 2.230ms]
(5.259075) [toit] INFO: <- OK
(6.263979) [toit] INFO: -> AT
(6.268480) [toit] INFO: <- OK
(7.273146) [toit] INFO: -> AT
(7.278012) [toit] INFO: <- OK
(8.282652) [toit] INFO: -> AT
(8.287650) [toit] INFO: <- OK
(8.563848) [toit] INFO: <- +CEREG: 80
(8.566319) [toit] INFO: <- [URC] +CEREG [80]
(8.569008) [toit.cellular] DEBUG: connection failed
(8.586947) [toit] INFO: <- +CEREG: 2
(8.589469) [toit] INFO: <- *ignored* [URC] +CEREG [2]
(8.609933) [toit] INFO: -> AT+CFUN=4
(8.739853) [toit] INFO: <- OK
(8.742750) [toit] INFO: <- +CEREG: 0
(8.744746) [toit] INFO: <- *ignored* [URC] +CEREG [0]
(8.746656) [toit.cellular] DEBUG: failed, detach from network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URQ09OTkVDVElPTiBGQUlMRURbI1UCVVNbI1UmWyNVA1VGVQBsAAI4xFsjVQNVRlUBbAACOT9bI1UDVUZVAmwAAjTBWyNVA1VGVQNsAAI07FsjVQNVRlUEbAACpvRbI1UDVUZVBUkk2FsjVQNVRlUGSSTtWyNVA1VGVQdJJMpbI1UDVUZVCGwAAqezWyNVA1VGVQlsAAKoTVsjVQNVRlUKbAACoLdbI1UDVUZVC2wAApmcWyNVA1VGVQxsAAKo/FsjVQNVRlUNbAACpY5bI1UDVUZVDkkk2FsjVQNVRlUPSSTtWyNVA1VGVRBJJHJbI1UDVUZVEWwAAqXLWyNVA1VGVRJsAAKlZ1sjVQNVRlUTbAABAUdbI1UDVUZVFGwAAZw3WyNVA1VGVRVsAAERV1sjVQNVRlUWbAABEXBbI1UDVUZVF2wAARDtWyNVA1VGVRhJJNhbI1UDVUZVGUkk7VsjVQNVRlUaSSTKWyNVA1VGVRtsAAERBlsjVQNVRlUcbAABERxbI1UDVUZVHUkx81sjVQNVRlUebAACR3BbI1UDVUZVH0kk2FsjVQNVRlUgSSTtWyNVA1VGVSFJJHJbI1UDVUZVImwAAkeFWyNVA1VGVSNsAAJHnFsjVQNVRlUkSTGIWyNVA1VGVSVJMiM=
(8.853039) [toit.network] DEBUG: error connecting {network: Cellular (internet), error: CONNECTION FAILED}
(8.860776) [toit.network] WARN: failed to connect to any network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URRkFJTEVEIFRPIENPTk5FQ1RbI1UCVVNbI1UbWyNVA1VGVQBsAAKppVsjVQNVRlUBbAACqQJbI1UDVUZVAmwAAqWOWyNVA1VGVQNJJNhbI1UDVUZVBEkk7VsjVQNVRlUFSSRyWyNVA1VGVQZsAAKly1sjVQNVRlUHbAACpWdbI1UDVUZVCGwAAQFHWyNVA1VGVQlsAAGcN1sjVQNVRlUKbAABEVdbI1UDVUZVC2wAARFwWyNVA1VGVQxsAAEQ7VsjVQNVRlUNSSTYWyNVA1VGVQ5JJO1bI1UDVUZVD0kkylsjVQNVRlUQbAABEQZbI1UDVUZVEWwAAREcWyNVA1VGVRJJMfNbI1UDVUZVE2wAAkdwWyNVA1VGVRRJJNhbI1UDVUZVFUkk7VsjVQNVRlUWSSRyWyNVA1VGVRdsAAJHhVsjVQNVRlUYbAACR5xbI1UDVUZVGUkxiFsjVQNVRlUaSTIj
[gc @ 0x3ffcfa58* | soft limit reached (50205 >= 49194)]
[gc @ 0x3ffcfa58* | byte array allocation failed, length = 455 (heap)]
[gc @ 0x3ffcfa58* | heap: 48kb -> 24kb | external: 1kb -> 0kb | free: 9kb->10kb 2.354ms]
(8.959708) [toit] INFO: -> AT+CFUN=0
(8.965578) [toit.scheduler] INFO: changing run level {run_level: 0}
(8.969508) [toit.scheduler] INFO: going into deep sleep {ms: 4988}
(8.971547) [toit.metrics] INFO: persisting metrics
(9.470945) [toit] INFO: <- OK
(9.579479) [toit] INFO: entering deep sleep {ms: 4988}
Entering deep sleep for 4988ms
ets Jun 8 2016 00:22:57
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:188
ho 0 tail 12 room 4
load:0x40078000,len:12180
load:0x40080400,len:2944
entry 0x400805c8
[flash reg] address 0x3f46c000, size 0x00134000
[IDENTITY] name=a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com,model=esp32-4mb
(0.015873) [toit] INFO: booting toit {sdk: v1.5.0-rc.1, model: esp32-4mb}
(0.020849) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.052392) [toit.state] INFO: resumed session {session_id: 1, session_time: 26.704007}
[gc @ 0x3ffcfa58* | soft limit reached (20480 >= 18432)]
[gc @ 0x3ffcfa58* | byte array allocation failed, length = 20 (heap)]
[gc @ 0x3ffcfa58* | heap: 20kb -> 8kb | external: 0kb -> 0kb | free: 9kb->9kb 1.058ms]
(0.076253) [toit.kernel] INFO: using model parameters {cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27, cellular.rts: 19, cellular.rx: 23, cellular.tx: 5}
(0.119889) [toit.console_sync] INFO: loaded last console sync {time: 20.960926}
(0.136009) [toit.scheduler] INFO: running job {job: console_sync}
[gc @ 0x3ffcfa58* | soft limit reached (24576 >= 24576)]
[gc @ 0x3ffcfa58* | heap: 24kb -> 16kb | external: 0kb -> 0kb | free: 8kb->8kb 1.730ms]
(0.146257) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
(0.152999) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.162986) [toit.console] INFO: waiting for console connection to be established
(0.167105) [toit.network] DEBUG: connecting {network: Cellular (internet)}
[gc @ 0x3ffcfa58* | soft limit reached (36892 >= 36864)]
[gc @ 0x3ffcfa58* | heap: 36kb -> 20kb | external: 0kb -> 0kb | free: 12kb->12kb 1.908ms]
(0.210209) [toit] INFO: -> AT
(0.471597) [toit] INFO: -> AT
(0.732180) [toit] INFO: -> AT
(0.992878) [toit] INFO: -> AT
(1.253898) [toit] INFO: -> AT
(1.514464) [toit] INFO: -> AT
(1.775145) [toit] INFO: -> AT
(1.948179) [toit] INFO: <- OK
(2.054172) [toit] INFO: -> ATE0
(2.062059) [toit] INFO: <- OK
(2.084683) [toit] INFO: -> AT+CMEE=2
(2.090692) [toit] INFO: <- OK
[gc @ 0x3ffcfa58* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcfa58* | heap: 44kb -> 20kb | external: 0kb -> 0kb | free: 10kb->10kb 2.153ms]
(2.116742) [toit] INFO: -> AT+CGMM
(2.122175) [toit] INFO: <- FiPy
(2.125144) [toit] INFO: <- OK
(2.147575) [toit] INFO: -> AT+CGMR
(2.168281) [toit] INFO: <- UE5.4.0.2
(2.170950) [toit] INFO: <- OK
(2.193230) [toit] INFO: -> AT+SQNCCID?
(2.198809) [toit] INFO: <- +SQNCCID: "",""
(2.201483) [toit] INFO: <- OK
(2.204073) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: }
(2.223921) [toit] INFO: -> AT+CFUN=4
(2.289545) [toit] INFO: <- OK
(2.316554) [toit] INFO: -> AT+CPIN?
(2.322297) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.577794) [toit] INFO: -> AT+CPIN?
(2.583564) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.838114) [toit] INFO: -> AT+CPIN?
(2.953816) [toit] INFO: <- +CPIN: READY
(2.956480) [toit] INFO: <- OK
(2.978890) [toit] INFO: -> AT+CPSMS=0
(2.986330) [toit] INFO: <- OK
(3.009301) [toit] INFO: -> AT+CEDRXS=0
(3.017430) [toit] INFO: <- OK
(3.040155) [toit] INFO: -> AT+SQNIBRCFG=0
(3.060639) [toit] INFO: <- OK
(3.083540) [toit] INFO: -> AT+SQNIPSCFG=1,100
(3.101032) [toit] INFO: <- OK
(3.123940) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(3.196404) [toit] INFO: <- +SQNBANDSEL: <custom>
(3.199200) [toit] INFO: <- OK
(3.223489) [toit] INFO: -> AT+SQNBANDSEL=1,"standard","20"
(3.231299) [toit] INFO: <- +CME ERROR: operation not supported
(3.253788) [toit] INFO: -> AT+CGDCONT?
(3.260300) [toit] INFO: <- +CGDCONT: 1,"IP","internet",,,,0,0,0,0,0,0,0,,0
(3.263538) [toit] INFO: <- OK
(3.286296) [toit] INFO: -> AT+CFUN=1
(3.357039) [toit] INFO: <- OK
(3.934306) [toit] INFO: <- +CEREG: 2
(3.936517) [toit] INFO: <- [URC] +CEREG [2]
(3.938547) [toit.cellular] DEBUG: attempt modem's automatic connect
(3.950621) [toit.cellular] DEBUG: connecting {operator: null, attempt: 3}
(3.957611) [toit] INFO: -> AT+COPS?
(3.964746) [toit] INFO: <- +COPS: 0
(3.967302) [toit] INFO: <- OK
(3.989813) [toit] INFO: -> AT+CEREG=2
(3.999713) [toit] INFO: <- OK
[gc @ 0x3ffcfa58* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcfa58* | string allocation failed, length = 6 (heap)]
[gc @ 0x3ffcfa58* | heap: 44kb -> 24kb | external: 0kb -> 0kb | free: 10kb->10kb 2.274ms]
(4.023233) [toit] INFO: -> AT+CEREG?
(4.039426) [toit] INFO: <- +CEREG: 2,2
(4.042032) [toit] INFO: <- OK
(5.046862) [toit] INFO: -> AT
(5.051853) [toit] INFO: <- OK
(6.056808) [toit] INFO: -> AT
(6.062002) [toit] INFO: <- OK
(7.066676) [toit] INFO: -> AT
(7.071697) [toit] INFO: <- OK
(8.076183) [toit] INFO: -> AT
(8.081061) [toit] INFO: <- OK
(8.776050) [toit] INFO: <- +CEREG: 80
(8.778504) [toit] INFO: <- [URC] +CEREG [80]
(8.781118) [toit.cellular] DEBUG: connection failed
(8.795040) [toit] INFO: <- +CEREG: 2
(8.798525) [toit] INFO: <- *ignored* [URC] +CEREG [2]
(8.819144) [toit] INFO: -> AT+CFUN=4
(8.886190) [toit] INFO: <- OK
(8.889068) [toit] INFO: <- +CEREG: 0
(8.891036) [toit] INFO: <- *ignored* [URC] +CEREG [0]
(8.892973) [toit.cellular] DEBUG: failed, detach from network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URQ09OTkVDVElPTiBGQUlMRURbI1UCVVNbI1UmWyNVA1VGVQBsAAI4xFsjVQNVRlUBbAACOT9bI1UDVUZVAmwAAjTBWyNVA1VGVQNsAAI07FsjVQNVRlUEbAACpvRbI1UDVUZVBUkk2FsjVQNVRlUGSSTtWyNVA1VGVQdJJMpbI1UDVUZVCGwAAqezWyNVA1VGVQlsAAKoTVsjVQNVRlUKbAACoLdbI1UDVUZVC2wAApmcWyNVA1VGVQxsAAKo/FsjVQNVRlUNbAACpY5bI1UDVUZVDkkk2FsjVQNVRlUPSSTtWyNVA1VGVRBJJHJbI1UDVUZVEWwAAqXLWyNVA1VGVRJsAAKlZ1sjVQNVRlUTbAABAUdbI1UDVUZVFGwAAZw3WyNVA1VGVRVsAAERV1sjVQNVRlUWbAABEXBbI1UDVUZVF2wAARDtWyNVA1VGVRhJJNhbI1UDVUZVGUkk7VsjVQNVRlUaSSTKWyNVA1VGVRtsAAERBlsjVQNVRlUcbAABERxbI1UDVUZVHUkx81sjVQNVRlUebAACR3BbI1UDVUZVH0kk2FsjVQNVRlUgSSTtWyNVA1VGVSFJJHJbI1UDVUZVImwAAkeFWyNVA1VGVSNsAAJHnFsjVQNVRlUkSTGIWyNVA1VGVSVJMiM=
(8.992470) [toit.network] DEBUG: error connecting {network: Cellular (internet), error: CONNECTION FAILED}
(9.001844) [toit.network] WARN: failed to connect to any network
----
Received a Toit system message but unable to send it to the Toit console for decoding.
Executing the command below will make it human readable:
----
[gc @ 0x3ffcfa58* | soft limit reached (50205 >= 49194)]
[gc @ 0x3ffcfa58* | string allocation failed, length = 591 (heap)]
[gc @ 0x3ffcfa58* | heap: 48kb -> 24kb | external: 1kb -> 0kb | free: 9kb->10kb 2.299ms]
toit serial decode WyNVBVVYU1ULdjEuNS4wLXJjLjFTVQllc3AzMi00bWJbJFUjVRAAAAAAAAAAAAAAAAAAAAAAWyNVBFVFU1UJRVhDRVBUSU9OU1URRkFJTEVEIFRPIENPTk5FQ1RbI1UCVVNbI1UbWyNVA1VGVQBsAAKppVsjVQNVRlUBbAACqQJbI1UDVUZVAmwAAqWOWyNVA1VGVQNJJNhbI1UDVUZVBEkk7VsjVQNVRlUFSSRyWyNVA1VGVQZsAAKly1sjVQNVRlUHbAACpWdbI1UDVUZVCGwAAQFHWyNVA1VGVQlsAAGcN1sjVQNVRlUKbAABEVdbI1UDVUZVC2wAARFwWyNVA1VGVQxsAAEQ7VsjVQNVRlUNSSTYWyNVA1VGVQ5JJO1bI1UDVUZVD0kkylsjVQNVRlUQbAABEQZbI1UDVUZVEWwAAREcWyNVA1VGVRJJMfNbI1UDVUZVE2wAAkdwWyNVA1VGVRRJJNhbI1UDVUZVFUkk7VsjVQNVRlUWSSRyWyNVA1VGVRdsAAJHhVsjVQNVRlUYbAACR5xbI1UDVUZVGUkxiFsjVQNVRlUaSTIj
(9.120131) [toit] INFO: -> AT+CFUN=0
(9.126053) [toit.scheduler] INFO: changing run level {run_level: 0}
(9.130098) [toit.scheduler] INFO: going into deep sleep {ms: 4988}
(9.132141) [toit.metrics] INFO: persisting metrics
(9.379260) [toit] INFO: <- OK
(9.487192) [toit] INFO: entering deep sleep {ms: 4988}
Entering deep sleep for 4988ms
ets Jun 8 2016 00:22:57
rst:0x5 (DEEPSLEEP_RESET),boot:0x13 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0030,len:188
ho 0 tail 12 room 4
load:0x40078000,len:12180
load:0x40080400,len:2944
entry 0x400805c8
[flash reg] address 0x3f46c000, size 0x00134000
[IDENTITY] name=a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com,model=esp32-4mb
(0.015873) [toit] INFO: booting toit {sdk: v1.5.0-rc.1, model: esp32-4mb}
(0.020849) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.052131) [toit.state] INFO: resumed session {session_id: 1, session_time: 41.241807}
[gc @ 0x3ffcfa58* | soft limit reached (20480 >= 18432)]
[gc @ 0x3ffcfa58* | heap: 20kb -> 8kb | external: 0kb -> 0kb | free: 9kb->9kb 1.034ms]
(0.068819) [toit.kernel] INFO: using model parameters {cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27, cellular.rts: 19, cellular.rx: 23, cellular.tx: 5}
(0.110372) [toit.console_sync] INFO: loaded last console sync {time: 35.751765}
[gc @ 0x3ffcfa58* | soft limit reached (24576 >= 24576)]
[gc @ 0x3ffcfa58* | string allocation failed, length = 6 (heap)]
[gc @ 0x3ffcfa58* | heap: 24kb -> 16kb | external: 0kb -> 0kb | free: 8kb->8kb 1.749ms]
(0.126657) [toit.scheduler] INFO: running job {job: console_sync}
(0.142424) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
(0.149029) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.158968) [toit.console] INFO: waiting for console connection to be established
(0.163165) [toit.network] DEBUG: connecting {network: Cellular (internet)}
[gc @ 0x3ffcfa58* | soft limit reached (36892 >= 36864)]
[gc @ 0x3ffcfa58* | heap: 36kb -> 20kb | external: 0kb -> 0kb | free: 12kb->12kb 1.888ms]
(0.207126) [toit] INFO: -> AT
(0.468748) [toit] INFO: -> AT
(0.729321) [toit] INFO: -> AT
(0.990017) [toit] INFO: -> AT
(1.250847) [toit] INFO: -> AT
[gc @ 0x3ffcfa58* | soft limit reached (45084 >= 43050)]
[gc @ 0x3ffcfa58* | string allocation failed, length = 6 (heap)]
[gc @ 0x3ffcfa58* | heap: 44kb -> 24kb | external: 0kb -> 0kb | free: 6kb->6kb 2.262ms]
(1.516348) [toit] INFO: -> AT
(1.778008) [toit] INFO: -> AT
(1.947658) [toit] INFO: <- OK
(2.053657) [toit] INFO: -> ATE0
(2.061500) [toit] INFO: <- OK
(2.084155) [toit] INFO: -> AT+CMEE=2
(2.090281) [toit] INFO: <- OK
(2.113022) [toit] INFO: -> AT+CGMM
(2.118528) [toit] INFO: <- FiPy
(2.121470) [toit] INFO: <- OK
(2.143656) [toit] INFO: -> AT+CGMR
(2.164128) [toit] INFO: <- UE5.4.0.2
(2.167048) [toit] INFO: <- OK
(2.189316) [toit] INFO: -> AT+SQNCCID?
(2.194934) [toit] INFO: <- +SQNCCID: "",""
(2.197659) [toit] INFO: <- OK
(2.200237) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: }
(2.220105) [toit] INFO: -> AT+CFUN=4
(2.554916) [toit] INFO: <- OK
(2.577617) [toit] INFO: -> AT+CPIN?
(2.583378) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.837971) [toit] INFO: -> AT+CPIN?
(2.937700) [toit] INFO: <- +CPIN: READY
(2.940376) [toit] INFO: <- OK
(2.962905) [toit] INFO: -> AT+CPSMS=0
(2.970267) [toit] INFO: <- OK
(2.992964) [toit] INFO: -> AT+CEDRXS=0
(3.000993) [toit] INFO: <- OK
(3.023762) [toit] INFO: -> AT+SQNIBRCFG=0
(3.043982) [toit] INFO: <- OK
(3.066874) [toit] INFO: -> AT+SQNIPSCFG=1,100
(3.084347) [toit] INFO: <- OK
(3.107462) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(3.180217) [toit] INFO: <- +SQNBANDSEL: <custom>
(3.182993) [toit] INFO: <- OK
(3.206823) [toit] INFO: -> AT+SQNBANDSEL=1,"standard","20"
(3.214722) [toit] INFO: <- +CME ERROR: operation not supported
(3.237577) [toit] INFO: -> AT+CGDCONT?
(3.244235) [toit] INFO: <- +CGDCONT: 1,"IP","internet",,,,0,0,0,0,0,0,0,,0
(3.247085) [toit] INFO: <- OK
(3.269603) [toit] INFO: -> AT+CFUN=1
(3.340393) [toit] INFO: <- OK
(4.210342) [toit] INFO: <- +CEREG: 2
(4.212541) [toit] INFO: <- [URC] +CEREG [2]
(4.214570) [toit.cellular] DEBUG: scan for available operators
(4.233461) [toit] INFO: -> AT+CGATT=0
(4.244075) [toit] INFO: <- OK
(4.246960) [toit] INFO: <- +CEREG: 0
(4.248992) [toit] INFO: <- [URC] +CEREG [0]
(4.269186) [toit] INFO: -> AT+COPS=?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment