Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
$ toit serial reinstall --firmware v1.4.2 -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=nbiot.tdc.dk --port=/dev/ttyUSB0
Detecting chip type. This can take up to 10s.
Reinstalling hardware with firmware: v1.4.2 (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/830338688/otadata877195231 0x10000 /tmp/830338688/ota_0453304242"
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 23778.4 kbit/s)...
Hash of data verified.
Compressed 1313936 bytes to 802041...
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... (51 %)
Writing at 0x00074000... (53 %)
Writing at 0x00078000... (55 %)
Writing at 0x0007c000... (57 %)
Writing at 0x00080000... (59 %)
Writing at 0x00084000... (61 %)
Writing at 0x00088000... (63 %)
Writing at 0x0008c000... (65 %)
Writing at 0x00090000... (67 %)
Writing at 0x00094000... (69 %)
Writing at 0x00098000... (71 %)
Writing at 0x0009c000... (73 %)
Writing at 0x000a0000... (75 %)
Writing at 0x000a4000... (77 %)
Writing at 0x000a8000... (79 %)
Writing at 0x000ac000... (81 %)
Writing at 0x000b0000... (83 %)
Writing at 0x000b4000... (85 %)
Writing at 0x000b8000... (87 %)
Writing at 0x000bc000... (89 %)
Writing at 0x000c0000... (91 %)
Writing at 0x000c4000... (93 %)
Writing at 0x000c8000... (95 %)
Writing at 0x000cc000... (97 %)
Writing at 0x000d0000... (100 %)
Wrote 1313936 bytes (802041 compressed) at 0x00010000 in 13.1 seconds (effective 805.5 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.pwr | 27 |
| cellular.apn | nbiot.tdc.dk |
| model.cellular.enabled | 1 |
| model.cellular.tx | 5 |
| model.cellular.rx | 23 |
| model.cellular.rts | 19 |
| model | esp32-4mb |
| broker.host | device.toit.io |
| broker.cn | device.toit.io |
| broker.port | 9426 |
| model.cellular.monarch | 1 |
| model.cellular.cts | 18 |
+------------------------+----------------+
$ 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.016165) [toit] INFO: booting toit {sdk: v1.4.2, model: esp32-4mb}
(0.020907) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.515289) [toit.state] INFO: starting new session {session_id: 1, session_time: 0.521636}
(0.603706) [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.706690) [toit.console_sync] INFO: loaded last console sync {time: null}
(0.717838) [toit.scheduler] INFO: running job {job: console_sync}
(0.720593) [toit.scheduler] INFO: running job {job: flush_metrics}
(0.722614) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
(0.730084) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.737232) [toit.console] INFO: waiting for console connection to be established
(0.741939) [toit.network] DEBUG: connecting {network: Cellular (nbiot.tdc.dk)}
(0.749501) [toit.metrics] INFO: persisting metrics
(0.752855) [toit.metrics] INFO: flushing metrics
(0.958683) [toit] INFO: -> AT
(0.970278) [toit] INFO: <- +CEREG: 5,"1BBC","00EEAE14",7
(0.973451) [toit] INFO: <- *ignored* [URC] +CEREG [5, 1BBC, 00EEAE14, 7]
(0.975306) [toit] INFO: <- OK
(1.079006) [toit] INFO: -> ATE0
(1.084716) [toit] INFO: <- OK
(1.107989) [toit] INFO: -> AT+CMEE=2
(1.113521) [toit] INFO: <- OK
(1.135702) [toit] INFO: -> AT+CFUN=4
(1.834935) [toit] INFO: <- OK
(1.837895) [toit] INFO: <- +CEREG: 0
(1.840449) [toit] INFO: <- *ignored* [URC] +CEREG [0]
(1.860555) [toit] INFO: -> AT+CPIN?
(1.866396) [toit] INFO: <- +CPIN: <custom>
(1.869006) [toit] INFO: <- OK
(1.890487) [toit] INFO: -> AT+CGMM
(1.895759) [toit] INFO: <- FiPy
(1.898318) [toit] INFO: <- OK
(1.920132) [toit] INFO: -> AT+CGMR
(1.925353) [toit] INFO: <- UE5.4.0.2
(1.935937) [toit] INFO: <- OK
(1.957928) [toit] INFO: -> AT+SQNCCID?
(1.964010) [toit] INFO: <- +SQNCCID: "89882390000069114786",""
(1.966578) [toit] INFO: <- OK
(1.969166) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: 89882390000069114786}
(1.988727) [toit] INFO: -> AT+CPIN?
(1.994623) [toit] INFO: <- +CPIN: <custom>
(1.997952) [toit] INFO: <- OK
(2.019828) [toit] INFO: -> AT+CPSMS=0
(2.027633) [toit] INFO: <- OK
(2.050339) [toit] INFO: -> AT+CEDRXS=0
(2.058324) [toit] INFO: <- OK
(2.081095) [toit] INFO: -> AT+SQNIBRCFG=0
(2.093796) [toit] INFO: <- OK
(2.116787) [toit] INFO: -> AT+SQNIPSCFG=1,100
(2.135598) [toit] INFO: <- OK
(2.158236) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(2.233740) [toit] INFO: <- +SQNBANDSEL: <custom>
(2.236415) [toit] INFO: <- OK
(2.258365) [toit] INFO: -> AT+CGDCONT?
(2.264782) [toit] INFO: <- +CGDCONT: 1,"IP","nbiot.tdc.dk",,,,0,0,0,0,0,0,0,,0
(2.267790) [toit] INFO: <- OK
(2.270771) [toit.cellular] DEBUG: connecting {operator: null}
(2.289503) [toit] INFO: -> AT+COPS?
(2.295784) [toit] INFO: <- +COPS: 0
(2.298278) [toit] INFO: <- OK
(2.320020) [toit] INFO: -> AT+CFUN=1
(2.393620) [toit] INFO: <- OK
(2.415916) [toit] INFO: -> AT+CEREG=2
(2.426894) [toit] INFO: <- OK
(2.597059) [toit] INFO: <- +CEREG: 2
(2.599360) [toit] INFO: <- [URC] +CEREG [2]
(3.431488) [toit] INFO: -> AT
(3.436762) [toit] INFO: <- OK
(4.440858) [toit] INFO: -> AT
(4.446255) [toit] INFO: <- OK
(5.437855) [toit] INFO: <- +CEREG: 5,"1BBC","00EEAE14",7
(5.440544) [toit] INFO: <- [URC] +CEREG [5, 1BBC, 00EEAE14, 7]
(5.461101) [toit] INFO: -> AT+CEREG=0
(5.484509) [toit] INFO: <- OK
(5.506169) [toit] INFO: -> AT+COPS?
(5.512597) [toit] INFO: <- +COPS: 0,2,"23801",7
(5.515241) [toit] INFO: <- OK
(5.517663) [toit.cellular] DEBUG: connected successfully
(5.529897) [toit.network] DEBUG: connected {network: Cellular (nbiot.tdc.dk)}
(5.543891) [toit] INFO: -> AT+CSQ
(5.551600) [toit] INFO: <- +CSQ: 14,99
(5.554750) [toit] INFO: <- OK
(5.558025) [toit.console_conn] INFO: initialized {identity: a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com}
(5.576770) [toit] INFO: -> AT+SQNDNSLKUP="device.toit.io"
(5.770514) [toit] INFO: <- +SQNDNSLKUP: <custom>
(5.773472) [toit] INFO: <- OK
(5.828318) [toit.console_conn] INFO: connecting to console {host: 35.228.86.200:9426, common_name: device.toit.io, protocol: tls}
(5.833366) [toit] INFO: -> AT+SQNSCFG=1,1,300,0,80,50
(5.847246) [toit] INFO: <- OK
(5.870769) [toit] INFO: -> AT+SQNSD=1,0,9426,"35.228.86.200",0,0,1
(6.318920) [toit] INFO: <- OK
(6.342728) [toit] INFO: -> AT+SQNSSENDEXT=1,243
(6.349464) [toit] INFO: <- >
(6.351681) [toit] INFO: -> <243 bytes>
(6.356530) [toit] INFO: <-
(6.358659) [toit] INFO: <- OK
(6.597336) [toit] INFO: <- +SQNSRING: 1
(6.599645) [toit] INFO: <- [URC] +SQNSRING [1]
(6.619958) [toit] INFO: -> AT+SQNSI=1
(6.626404) [toit] INFO: <- +SQNSI: 1,243,846,846,0
(6.629151) [toit] INFO: <- OK
(6.651006) [toit] INFO: -> AT+SQNSRECV=1,1500
(6.657586) [toit] INFO: <- +SQNSRECV: <custom>
(6.667512) [toit] INFO: <- OK
(10.031817) [toit] INFO: -> AT+SQNSSENDEXT=1,856
(10.039370) [toit] INFO: <- >
(10.041272) [toit] INFO: -> <856 bytes>
(10.054534) [toit] INFO: <-
(10.056678) [toit] INFO: <- OK
(10.079250) [toit] INFO: -> AT+SQNSI=1
(10.085908) [toit] INFO: <- +SQNSI: 1,1099,846,0,856
(10.088659) [toit] INFO: <- OK
(10.300424) [toit] INFO: <- +SQNSRING: 1
(10.302687) [toit] INFO: <- [URC] +SQNSRING [1]
(10.307270) [toit] INFO: <- +SQNSRING: 1
(10.309570) [toit] INFO: <- [URC] +SQNSRING [1]
(10.323070) [toit] INFO: -> AT+SQNSI=1
(10.329422) [toit] INFO: <- +SQNSI: 1,1099,1647,801,0
(10.332092) [toit] INFO: <- OK
(10.353992) [toit] INFO: -> AT+SQNSRECV=1,1500
(10.360434) [toit] INFO: <- +SQNSRECV: <custom>
(10.369929) [toit] INFO: <- OK
(10.396954) [toit.console_conn] INFO: established
(10.402262) [toit] INFO: -> AT+SQNSSENDEXT=1,31
(10.412918) [toit] INFO: <- >
(10.414837) [toit] INFO: -> <31 bytes>
(10.416708) [toit] INFO: <-
(10.418735) [toit] INFO: <- OK
(10.422406) [toit.console] INFO: connected, starting main loop
(10.442475) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(10.454234) [toit] INFO: <- >
(10.456225) [toit] INFO: -> <52 bytes>
(10.458085) [toit] INFO: <-
(10.460095) [toit] INFO: <- OK
(10.482155) [toit] INFO: -> AT+SQNSI=1
(10.488860) [toit] INFO: <- +SQNSI: 1,1182,1647,0,83
(10.491829) [toit] INFO: <- OK
(10.514489) [toit] INFO: -> AT+SQNSSENDEXT=1,68
(10.520400) [toit] INFO: <- >
(10.521942) [toit] INFO: -> <68 bytes>
(10.523975) [toit] INFO: <-
(10.525914) [toit] INFO: <- OK
(10.719649) [toit.scheduler] INFO: running job {job: persist_metrics}
(10.724083) [toit] INFO: -> AT+CSQ
(10.732476) [toit] INFO: <- +CSQ: 14,99
(10.735278) [toit] INFO: <- OK
(10.738215) [toit.metrics] INFO: persisting metrics
(10.785360) [toit] INFO: <- +SQNSRING: 1
(10.788203) [toit] INFO: <- [URC] +SQNSRING [1]
(10.809032) [toit] INFO: -> AT+SQNSI=1
(10.818994) [toit] INFO: <- +SQNSI: 1,1250,1737,90,0
(10.821984) [toit] INFO: <- OK
(10.843845) [toit] INFO: -> AT+SQNSRECV=1,1500
(10.850057) [toit] INFO: <- +SQNSRECV: <custom>
(10.852833) [toit] INFO: <- OK
(10.862922) [toit.time] INFO: adjusting time by 454957h23m21.196587144s, accuracy: null -> 427331000 ns
(10.869322) [toit.console] INFO: received action {action: new epoch}
(10.871648) [toit.console] INFO: new epoch cef6355d-81e7-41a8-bc36-92a20a4a43b0
(10.896279) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(10.904063) [toit] INFO: <- >
(10.906474) [toit] INFO: -> <52 bytes>
(10.908383) [toit] INFO: <-
(10.910418) [toit] INFO: <- OK
(10.932721) [toit] INFO: -> AT+SQNSI=1
(10.939398) [toit] INFO: <- +SQNSI: 1,1302,1737,0,52
(10.942307) [toit] INFO: <- OK
(10.960348) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(10.969229) [toit] INFO: -> AT+SQNSSENDEXT=1,69
(10.975273) [toit] INFO: <- >
(10.976824) [toit] INFO: -> <69 bytes>
(10.978880) [toit] INFO: <-
(10.980807) [toit] INFO: <- OK
(11.241264) [toit] INFO: <- +SQNSRING: 1
(11.243531) [toit] INFO: <- [URC] +SQNSRING [1]
(11.266646) [toit] INFO: -> AT+SQNSI=1
(11.272987) [toit] INFO: <- +SQNSI: 1,1371,1791,54,0
(11.275726) [toit] INFO: <- OK
(11.298105) [toit] INFO: -> AT+SQNSRECV=1,1500
(11.304788) [toit] INFO: <- +SQNSRECV: <custom>
(11.307561) [toit] INFO: <- OK
(11.329448) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(11.335491) [toit] INFO: <- >
(11.337355) [toit] INFO: -> <52 bytes>
(11.339206) [toit] INFO: <-
(11.341185) [toit] INFO: <- OK
(11.366403) [toit] INFO: -> AT+SQNSI=1
(11.373524) [toit] INFO: <- +SQNSI: 1,1423,1791,0,52
(11.376424) [toit] INFO: <- OK
(11.398863) [toit] INFO: -> AT+SQNSSENDEXT=1,58
(11.404610) [toit] INFO: <- >
(11.406122) [toit] INFO: -> <58 bytes>
(11.407904) [toit] INFO: <-
(11.410087) [toit] INFO: <- OK
(11.632178) [toit] INFO: <- +SQNSRING: 1
(11.634457) [toit] INFO: <- [URC] +SQNSRING [1]
(11.654768) [toit] INFO: -> AT+SQNSI=1
(11.666691) [toit] INFO: <- +SQNSI: 1,1481,1863,72,0
(11.669144) [toit] INFO: <- OK
(11.691850) [toit] INFO: -> AT+SQNSRECV=1,1500
(11.698294) [toit] INFO: <- +SQNSRECV: <custom>
(11.701236) [toit] INFO: <- OK
(11.714246) [toit.time] INFO: adjusting time by -16.681702ms, accuracy: 427331000 -> 392989000 ns
(11.721852) [toit.console] INFO: received action {action: report config}
(11.723806) [toit.console] INFO: reporting config
(11.734496) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(11.741083) [toit] INFO: <- >
(11.742539) [toit] INFO: -> <52 bytes>
(11.744676) [toit] INFO: <-
(11.746977) [toit] INFO: <- OK
(11.769255) [toit] INFO: -> AT+SQNSI=1
(11.775811) [toit] INFO: <- +SQNSI: 1,1533,1863,0,52
(11.778987) [toit] INFO: <- OK
(11.801470) [toit] INFO: -> AT+SQNSSENDEXT=1,235
(11.807562) [toit] INFO: <- >
(11.809074) [toit] INFO: -> <235 bytes>
(11.812420) [toit] INFO: <-
(11.814586) [toit] INFO: <- OK
(12.069338) [toit] INFO: <- +SQNSRING: 1
(12.071556) [toit] INFO: <- [URC] +SQNSRING [1]
(12.091874) [toit] INFO: -> AT+SQNSI=1
(12.098305) [toit] INFO: <- +SQNSI: 1,1768,1917,54,0
(12.101020) [toit] INFO: <- OK
(12.122836) [toit] INFO: -> AT+SQNSRECV=1,1500
(12.129259) [toit] INFO: <- +SQNSRECV: <custom>
(12.132048) [toit] INFO: <- OK
(12.154078) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(12.160351) [toit] INFO: <- >
(12.162224) [toit] INFO: -> <52 bytes>
(12.164402) [toit] INFO: <-
(12.166713) [toit] INFO: <- OK
(12.188675) [toit] INFO: -> AT+SQNSI=1
(12.195257) [toit] INFO: <- +SQNSI: 1,1820,1917,0,52
(12.198174) [toit] INFO: <- OK
(12.220603) [toit] INFO: -> AT+SQNSSENDEXT=1,58
(12.226344) [toit] INFO: <- >
(12.227871) [toit] INFO: -> <58 bytes>
(12.229654) [toit] INFO: <-
(12.231581) [toit] INFO: <- OK
(12.538345) [toit] INFO: <- +SQNSRING: 1
(12.540632) [toit] INFO: <- [URC] +SQNSRING [1]
(12.560963) [toit] INFO: -> AT+SQNSI=1
(12.567591) [toit] INFO: <- +SQNSI: 1,1878,2190,273,0
(12.570372) [toit] INFO: <- OK
(12.595766) [toit] INFO: -> AT+SQNSRECV=1,1500
(12.602098) [toit] INFO: <- +SQNSRECV: <custom>
(12.605338) [toit] INFO: <- OK
(12.618751) [toit.console] INFO: received action {action: config update}
(12.634128) [toit.kernel] INFO: using model parameters {cellular.rts: 19, cellular.rx: 23, cellular.tx: 5, cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27}
(12.642972) [toit.console] INFO: config updated: 2671320
(12.654328) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(12.670957) [toit] INFO: <- >
(12.672876) [toit] INFO: -> <52 bytes>
(12.674747) [toit] INFO: <-
(12.676765) [toit] INFO: <- OK
(12.699062) [toit] INFO: -> AT+SQNSI=1
(12.705586) [toit] INFO: <- +SQNSI: 1,1930,2190,0,52
(12.708484) [toit] INFO: <- OK
(12.730901) [toit] INFO: -> AT+SQNSSENDEXT=1,60
(12.736637) [toit] INFO: <- >
(12.738145) [toit] INFO: -> <60 bytes>
(12.739931) [toit] INFO: <-
(12.741847) [toit] INFO: <- OK
(13.218304) [toit] INFO: <- +SQNSRING: 1
(13.220917) [toit] INFO: <- [URC] +SQNSRING [1]
(13.241327) [toit] INFO: -> AT+SQNSI=1
(13.247794) [toit] INFO: <- +SQNSI: 1,1990,2262,72,0
(13.250589) [toit] INFO: <- OK
(13.272477) [toit] INFO: -> AT+SQNSRECV=1,1500
(13.278849) [toit] INFO: <- +SQNSRECV: <custom>
(13.281869) [toit] INFO: <- OK
(13.290420) [toit.console] INFO: synchronized with console
(13.320201) [toit] INFO: -> AT+SQNSI=1
(13.327722) [toit] INFO: <- +SQNSI: 1,1990,2262,0,0
(13.331057) [toit] INFO: <- OK
(13.353766) [toit] INFO: -> AT+SQNSSENDEXT=1,54
(13.359994) [toit] INFO: <- >
(13.361581) [toit] INFO: -> <54 bytes>
(13.363386) [toit] INFO: <-
(13.365634) [toit] INFO: <- OK
(13.388034) [toit] INFO: -> AT+SQNSSENDEXT=1,84
(13.394316) [toit] INFO: <- >
(13.395967) [toit] INFO: -> <84 bytes>
(13.397780) [toit] INFO: <-
(13.399719) [toit] INFO: <- OK
(13.421656) [toit] INFO: -> AT+SQNSSENDEXT=1,55
(13.427944) [toit] INFO: <- >
(13.429652) [toit] INFO: -> <55 bytes>
(13.431438) [toit] INFO: <-
(13.433401) [toit] INFO: <- OK
(13.714385) [toit] INFO: <- +SQNSRING: 1
(13.716732) [toit] INFO: <- [URC] +SQNSRING [1]
(13.723943) [toit] INFO: <- +SQNSRING: 1
(13.726326) [toit] INFO: <- [URC] +SQNSRING [1]
(13.738077) [toit] INFO: -> AT+SQNSI=1
(13.744309) [toit] INFO: <- +SQNSI: 1,2183,2344,82,0
(13.746997) [toit] INFO: <- OK
(13.768802) [toit] INFO: -> AT+SQNSRECV=1,1500
(13.775623) [toit] INFO: <- +SQNSRECV: <custom>
(13.778393) [toit] INFO: <- OK
(13.802922) [toit] INFO: -> AT+SQNSI=1
(13.810650) [toit] INFO: <- +SQNSI: 1,2183,2344,0,0
(13.813985) [toit] INFO: <- OK
(13.836714) [toit] INFO: -> AT+SQNSSENDEXT=1,55
(13.842884) [toit] INFO: <- >
(13.844420) [toit] INFO: -> <55 bytes>
(13.846378) [toit] INFO: <-
(13.848637) [toit] INFO: <- OK
(13.871004) [toit] INFO: -> AT+SQNSSENDEXT=1,32
(13.877056) [toit] INFO: <- >
(13.878918) [toit] INFO: -> <32 bytes>
(13.880752) [toit] INFO: <-
(13.882695) [toit] INFO: <- OK
(13.904671) [toit] INFO: -> AT+SQNSSENDEXT=1,56
(13.910628) [toit] INFO: <- >
(13.912556) [toit] INFO: -> <56 bytes>
(13.914378) [toit] INFO: <-
(13.916344) [toit] INFO: <- OK
(14.822466) [toit] INFO: -> AT
(14.827490) [toit] INFO: <- OK
(15.831737) [toit] INFO: -> AT
(15.836593) [toit] INFO: <- OK
(16.840821) [toit] INFO: -> AT
(16.845643) [toit] INFO: <- OK
(17.849703) [toit] INFO: -> AT
(17.854828) [toit] INFO: <- OK
(18.868771) [toit] INFO: -> AT
(18.873786) [toit] INFO: <- OK
(19.878749) [toit] INFO: -> AT
(19.883752) [toit] INFO: <- OK
(20.774287) [toit.scheduler] INFO: running job {job: persist_metrics}
(20.778720) [toit] INFO: -> AT+CSQ
(20.784671) [toit] INFO: <- +CSQ: 14,99
(20.787657) [toit] INFO: <- OK
(20.790559) [toit.metrics] INFO: persisting metrics
(20.889770) [toit] INFO: -> AT
(20.895314) [toit] INFO: <- OK
(20.978420) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(21.900554) [toit] INFO: -> AT
(21.905823) [toit] INFO: <- OK
(22.910200) [toit] INFO: -> AT
(22.915009) [toit] INFO: <- OK
(23.919298) [toit] INFO: -> AT
(23.924324) [toit] INFO: <- OK
(24.928599) [toit] INFO: -> AT
(24.933430) [toit] INFO: <- OK
(25.938595) [toit] INFO: -> AT
(25.943250) [toit] INFO: <- OK
(26.947242) [toit] INFO: -> AT
(26.952292) [toit] INFO: <- OK
(27.956516) [toit] INFO: -> AT
(27.966659) [toit] INFO: <- OK
(28.970898) [toit] INFO: -> AT
(28.975791) [toit] INFO: <- OK
(29.979794) [toit] INFO: -> AT
(29.984588) [toit] INFO: <- OK
(30.816529) [toit.scheduler] INFO: running job {job: persist_metrics}
(30.824292) [toit] INFO: -> AT+CSQ
(30.830382) [toit] INFO: <- +CSQ: 15,99
(30.833103) [toit] INFO: <- OK
(30.835949) [toit.metrics] INFO: persisting metrics
(30.998632) [toit] INFO: -> AT
(31.002834) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(31.010853) [toit] INFO: <- OK
(32.015798) [toit] INFO: -> AT
(32.021107) [toit] INFO: <- OK
(33.025387) [toit] INFO: -> AT
(33.030162) [toit] INFO: <- OK
(34.034184) [toit] INFO: -> AT
(34.038968) [toit] INFO: <- OK
(35.043126) [toit] INFO: -> AT
(35.048011) [toit] INFO: <- OK
(36.052320) [toit] INFO: -> AT
(36.057676) [toit] INFO: <- OK
(37.062236) [toit] INFO: -> AT
(37.066811) [toit] INFO: <- OK
(38.071034) [toit] INFO: -> AT
(38.075589) [toit] INFO: <- OK
(39.079798) [toit] INFO: -> AT
(39.084419) [toit] INFO: <- OK
(40.088827) [toit] INFO: -> AT
(40.093609) [toit] INFO: <- OK
(40.867099) [toit.scheduler] INFO: running job {job: persist_metrics}
(40.871387) [toit] INFO: -> AT+CSQ
(40.878053) [toit] INFO: <- +CSQ: 99,99
(40.884470) [toit] INFO: <- OK
(40.887139) [toit.metrics] INFO: persisting metrics
(41.021738) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(41.098762) [toit] INFO: -> AT
(41.103955) [toit] INFO: <- OK
(42.108603) [toit] INFO: -> AT
(42.113607) [toit] INFO: <- OK
(43.118587) [toit] INFO: -> AT
(43.123271) [toit] INFO: <- OK
(43.484841) [toit] INFO: <- +SQNSH: 1
(43.487276) [toit] INFO: <- [URC] +SQNSH [1]
(43.492182) [toit.console] ERROR: watch died {error: TRANSPORT_CLOSED}
(43.514816) [toit.scheduler] INFO: changing run level {run_level: 0}
(43.519103) [toit.scheduler] INFO: going into deep sleep {ms: 4989}
(43.521398) [toit.metrics] INFO: persisting metrics
(43.525942) [toit] INFO: -> AT+CFUN=0
(43.824255) [toit] INFO: <- OK
(43.931774) [toit] INFO: entering deep sleep {ms: 4989}
Entering deep sleep for 4989ms
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.016168) [toit] INFO: booting toit {sdk: v1.4.2, model: esp32-4mb}
(0.020910) [toit.scheduler] INFO: set initial run_level {run_level: 4}
(0.039199) [toit.state] INFO: resumed session {session_id: 1, session_time: 48.998489}
(0.054209) [toit.kernel] INFO: using model parameters {cellular.rts: 19, cellular.rx: 23, cellular.tx: 5, cellular.cts: 18, cellular.enabled: 1, cellular.monarch: 1, cellular.pwr: 27}
(0.089638) [toit.console_sync] INFO: loaded last console sync {time: 43.463893}
(0.107942) [toit.scheduler] INFO: running job {job: console_sync}
(0.110792) [toit.scheduler] INFO: running job {job: poll_metric_flash_usage}
(0.112867) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(0.121591) [toit.console] INFO: waiting for console connection to be established
(0.126200) [toit.network] DEBUG: connecting {network: Cellular (nbiot.tdc.dk)}
(0.168122) [toit] INFO: -> AT
(0.429476) [toit] INFO: -> AT
(0.690004) [toit] INFO: -> AT
(0.950626) [toit] INFO: -> AT
(1.216742) [toit] INFO: -> AT
(1.477922) [toit] INFO: -> AT
(1.738582) [toit] INFO: -> AT
(1.918555) [toit] INFO: <- OK
(2.024378) [toit] INFO: -> ATE0
(2.032190) [toit] INFO: <- OK
(2.054049) [toit] INFO: -> AT+CMEE=2
(2.059829) [toit] INFO: <- OK
(2.081688) [toit] INFO: -> AT+CFUN=4
(2.147180) [toit] INFO: <- OK
(2.168738) [toit] INFO: -> AT+CPIN?
(2.174430) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.431941) [toit] INFO: -> AT+CPIN?
(2.437809) [toit] INFO: <- +CME ERROR: SIM not inserted
(2.692508) [toit] INFO: -> AT+CPIN?
(2.803156) [toit] INFO: <- +CPIN: <custom>
(2.805812) [toit] INFO: <- OK
(2.827660) [toit] INFO: -> AT+CGMM
(2.832736) [toit] INFO: <- FiPy
(2.835263) [toit] INFO: <- OK
(2.857640) [toit] INFO: -> AT+CGMR
(2.877634) [toit] INFO: <- UE5.4.0.2
(2.880167) [toit] INFO: <- OK
(2.906459) [toit] INFO: -> AT+SQNCCID?
(2.913043) [toit] INFO: <- +SQNCCID: "89882390000069114786",""
(2.915670) [toit] INFO: <- OK
(2.918483) [toit.cellular] DEBUG: initialized {model: FiPy, version: UE5.4.0.2, iccid: 89882390000069114786}
(2.937771) [toit] INFO: -> AT+CPIN?
(2.944205) [toit] INFO: <- +CPIN: <custom>
(2.946938) [toit] INFO: <- OK
(2.968951) [toit] INFO: -> AT+CPSMS=0
(2.977203) [toit] INFO: <- OK
(2.999980) [toit] INFO: -> AT+CEDRXS=0
(3.009150) [toit] INFO: <- OK
(3.030956) [toit] INFO: -> AT+SQNIBRCFG=0
(3.050934) [toit] INFO: <- OK
(3.073930) [toit] INFO: -> AT+SQNIPSCFG=1,100
(3.091299) [toit] INFO: <- OK
(3.113550) [toit] INFO: -> AT+SQNBANDSEL=0,"standard","20"
(3.181688) [toit] INFO: <- +SQNBANDSEL: <custom>
(3.184335) [toit] INFO: <- OK
(3.206058) [toit] INFO: -> AT+CGDCONT?
(3.212616) [toit] INFO: <- +CGDCONT: 1,"IP","nbiot.tdc.dk",,,,0,0,0,0,0,0,0,,0
(3.215286) [toit] INFO: <- OK
(3.218141) [toit.cellular] DEBUG: connecting {operator: null}
(3.237585) [toit] INFO: -> AT+COPS?
(3.243688) [toit] INFO: <- +COPS: 0
(3.246158) [toit] INFO: <- OK
(3.267910) [toit] INFO: -> AT+CFUN=1
(3.338424) [toit] INFO: <- OK
(3.360593) [toit] INFO: -> AT+CEREG=2
(3.453255) [toit] INFO: <- OK
(3.780360) [toit] INFO: <- +CEREG: 2
(3.782655) [toit] INFO: <- [URC] +CEREG [2]
(4.458478) [toit] INFO: -> AT
(4.463586) [toit] INFO: <- OK
(5.468759) [toit] INFO: -> AT
(5.474018) [toit] INFO: <- OK
(6.478738) [toit] INFO: -> AT
(6.483977) [toit] INFO: <- OK
(7.488568) [toit] INFO: -> AT
(7.493441) [toit] INFO: <- OK
(8.507462) [toit] INFO: -> AT
(8.512246) [toit] INFO: <- OK
(9.008665) [toit] INFO: <- +CEREG: 5,"1BBC","0059C514",7
(9.011380) [toit] INFO: <- [URC] +CEREG [5, 1BBC, 0059C514, 7]
(9.030952) [toit] INFO: -> AT+CEREG=0
(9.056116) [toit] INFO: <- OK
(9.077765) [toit] INFO: -> AT+COPS?
(9.083747) [toit] INFO: <- +COPS: 0,2,"23801",7
(9.086402) [toit] INFO: <- OK
(9.088867) [toit.cellular] DEBUG: connected successfully
(9.099842) [toit.network] DEBUG: connected {network: Cellular (nbiot.tdc.dk)}
(9.117738) [toit] INFO: -> AT+CSQ
(9.125817) [toit] INFO: <- +CSQ: 14,99
(9.128983) [toit] INFO: <- OK
(9.132249) [toit.console_conn] INFO: initialized {identity: a966ebf8-6407-4964-9685-95ac15170168.743.2021-09-26.device.toitware.com}
(9.200210) [toit.console_conn] INFO: connecting to console {host: 35.228.86.200:9426, common_name: device.toit.io, protocol: tls}
(9.205566) [toit] INFO: -> AT+SQNSCFG=1,1,300,0,80,50
(9.219891) [toit] INFO: <- OK
(9.244005) [toit] INFO: -> AT+SQNSD=1,0,9426,"35.228.86.200",0,0,1
(9.455972) [toit] INFO: <- OK
(9.481179) [toit] INFO: -> AT+SQNSSENDEXT=1,971
(9.488162) [toit] INFO: <- >
(9.490086) [toit] INFO: -> <971 bytes>
(9.503716) [toit] INFO: <-
(9.506105) [toit] INFO: <- OK
(10.115915) [toit.scheduler] INFO: running job {job: persist_metrics}
(10.123439) [toit] INFO: -> AT+CSQ
(10.129979) [toit] INFO: <- +CSQ: 14,99
(10.133031) [toit] INFO: <- OK
(10.135952) [toit.metrics] INFO: persisting metrics
(10.162679) [toit] INFO: <- +SQNSRING: 1
(10.165512) [toit] INFO: <- [URC] +SQNSRING [1]
(10.185815) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(10.190427) [toit] INFO: -> AT+SQNSI=1
(10.199005) [toit] INFO: <- +SQNSI: 1,971,143,143,0
(10.201669) [toit] INFO: <- OK
(10.223863) [toit] INFO: -> AT+SQNSRECV=1,1500
(10.230278) [toit] INFO: <- +SQNSRECV: <custom>
(10.233335) [toit] INFO: <- OK
(10.255312) [toit] INFO: -> AT+SQNSSENDEXT=1,51
(10.261829) [toit] INFO: <- >
(10.263620) [toit] INFO: -> <51 bytes>
(10.265428) [toit] INFO: <-
(10.267435) [toit] INFO: <- OK
(10.287361) [toit.console_conn] INFO: established
(10.292648) [toit] INFO: -> AT+SQNSSENDEXT=1,31
(10.299849) [toit] INFO: <- >
(10.301959) [toit] INFO: -> <31 bytes>
(10.303824) [toit] INFO: <-
(10.305858) [toit] INFO: <- OK
(10.309723) [toit.console] INFO: connected, starting main loop
(10.333082) [toit] INFO: -> AT+SQNSSENDEXT=1,52
(10.339504) [toit] INFO: <- >
(10.341284) [toit] INFO: -> <52 bytes>
(10.343110) [toit] INFO: <-
(10.345128) [toit] INFO: <- OK
(10.367894) [toit] INFO: -> AT+SQNSI=1
(10.374256) [toit] INFO: <- +SQNSI: 1,1105,143,0,134
(10.377193) [toit] INFO: <- OK
(10.399903) [toit] INFO: -> AT+SQNSSENDEXT=1,70
(10.406029) [toit] INFO: <- >
(10.407586) [toit] INFO: -> <70 bytes>
(10.409385) [toit] INFO: <-
(10.411308) [toit] INFO: <- OK
(10.430619) [toit] INFO: <- +SQNSRING: 1
(10.432955) [toit] INFO: <- [URC] +SQNSRING [1]
(10.453225) [toit] INFO: -> AT+SQNSI=1
(10.459725) [toit] INFO: <- +SQNSI: 1,1175,182,39,153
(10.462515) [toit] INFO: <- OK
(10.484390) [toit] INFO: -> AT+SQNSRECV=1,1500
(10.490883) [toit] INFO: <- +SQNSRECV: <custom>
(10.493980) [toit] INFO: <- OK
(10.516145) [toit] INFO: -> AT+SQNSI=1
(10.522686) [toit] INFO: <- +SQNSI: 1,1175,182,0,153
(10.525681) [toit] INFO: <- OK
(10.792971) [toit] INFO: <- +SQNSRING: 1
(10.795235) [toit] INFO: <- [URC] +SQNSRING [1]
(10.816293) [toit] INFO: -> AT+SQNSI=1
(10.822679) [toit] INFO: <- +SQNSI: 1,1175,254,72,0
(10.825409) [toit] INFO: <- OK
(10.848046) [toit] INFO: -> AT+SQNSRECV=1,1500
(10.854477) [toit] INFO: <- +SQNSRECV: <custom>
(10.857514) [toit] INFO: <- OK
(10.865978) [toit.console] INFO: synchronized with console
(10.890940) [toit] INFO: -> AT+SQNSI=1
(10.898713) [toit] INFO: <- +SQNSI: 1,1175,254,0,0
(10.905767) [toit] INFO: <- OK
(10.936291) [toit] INFO: -> AT+SQNSSENDEXT=1,54
(10.942508) [toit] INFO: <- >
(10.944084) [toit] INFO: -> <54 bytes>
(10.946075) [toit] INFO: <-
(10.948283) [toit] INFO: <- OK
(10.970556) [toit] INFO: -> AT+SQNSSENDEXT=1,94
(10.976760) [toit] INFO: <- >
(10.978446) [toit] INFO: -> <94 bytes>
(10.980510) [toit] INFO: <-
(10.982461) [toit] INFO: <- OK
(11.004513) [toit] INFO: -> AT+SQNSSENDEXT=1,55
(11.016699) [toit] INFO: <- >
(11.018657) [toit] INFO: -> <55 bytes>
(11.020485) [toit] INFO: <-
(11.022463) [toit] INFO: <- OK
(11.235509) [toit] INFO: <- +SQNSRING: 1
(11.238091) [toit] INFO: <- [URC] +SQNSRING [1]
(11.246932) [toit] INFO: <- +SQNSRING: 1
(11.249315) [toit] INFO: <- [URC] +SQNSRING [1]
(11.258503) [toit] INFO: -> AT+SQNSI=1
(11.264845) [toit] INFO: <- +SQNSI: 1,1378,336,82,0
(11.267564) [toit] INFO: <- OK
(11.289449) [toit] INFO: -> AT+SQNSRECV=1,1500
(11.295958) [toit] INFO: <- +SQNSRECV: <custom>
(11.298908) [toit] INFO: <- OK
(11.324618) [toit] INFO: -> AT+SQNSI=1
(11.332285) [toit] INFO: <- +SQNSI: 1,1378,336,0,0
(11.335603) [toit] INFO: <- OK
(11.358324) [toit] INFO: -> AT+SQNSSENDEXT=1,55
(11.364486) [toit] INFO: <- >
(11.366010) [toit] INFO: -> <55 bytes>
(11.367795) [toit] INFO: <-
(11.370000) [toit] INFO: <- OK
(11.392313) [toit] INFO: -> AT+SQNSSENDEXT=1,32
(11.398647) [toit] INFO: <- >
(11.400287) [toit] INFO: -> <32 bytes>
(11.402088) [toit] INFO: <-
(11.404027) [toit] INFO: <- OK
(11.425991) [toit] INFO: -> AT+SQNSSENDEXT=1,56
(11.431985) [toit] INFO: <- >
(11.433696) [toit] INFO: -> <56 bytes>
(11.435486) [toit] INFO: <-
(11.437455) [toit] INFO: <- OK
(12.340262) [toit] INFO: -> AT
(12.345122) [toit] INFO: <- OK
(13.349405) [toit] INFO: -> AT
(13.354311) [toit] INFO: <- OK
(14.358503) [toit] INFO: -> AT
(14.363160) [toit] INFO: <- OK
(15.367294) [toit] INFO: -> AT
(15.375649) [toit] INFO: <- OK
(16.380361) [toit] INFO: -> AT
(16.385390) [toit] INFO: <- OK
(17.390049) [toit] INFO: -> AT
(17.395108) [toit] INFO: <- OK
(18.399313) [toit] INFO: -> AT
(18.403956) [toit] INFO: <- OK
(19.417226) [toit] INFO: -> AT
(19.421834) [toit] INFO: <- OK
(20.181368) [toit.scheduler] INFO: running job {job: persist_metrics}
(20.185636) [toit] INFO: -> AT+CSQ
(20.191836) [toit] INFO: <- +CSQ: 16,99
(20.195044) [toit] INFO: <- OK
(20.197980) [toit.metrics] INFO: persisting metrics
(20.224980) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(20.426598) [toit] INFO: -> AT
(20.432081) [toit] INFO: <- OK
(21.436641) [toit] INFO: -> AT
(21.441517) [toit] INFO: <- OK
(22.445822) [toit] INFO: -> AT
(22.450502) [toit] INFO: <- OK
(23.454716) [toit] INFO: -> AT
(23.459470) [toit] INFO: <- OK
(24.463502) [toit] INFO: -> AT
(24.468241) [toit] INFO: <- OK
(25.472381) [toit] INFO: -> AT
(25.477408) [toit] INFO: <- OK
(26.485451) [toit] INFO: -> AT
(26.490172) [toit] INFO: <- OK
(27.494434) [toit] INFO: -> AT
(27.498989) [toit] INFO: <- OK
(28.503385) [toit] INFO: -> AT
(28.507966) [toit] INFO: <- OK
(29.512180) [toit] INFO: -> AT
(29.516772) [toit] INFO: <- OK
(30.243851) [toit.scheduler] INFO: running job {job: persist_metrics}
(30.248206) [toit] INFO: -> AT+CSQ
(30.254382) [toit] INFO: <- +CSQ: 16,99
(30.260893) [toit] INFO: <- OK
(30.263912) [toit.metrics] INFO: persisting metrics
(30.269041) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(30.520981) [toit] INFO: -> AT
(30.526022) [toit] INFO: <- OK
(31.530399) [toit] INFO: -> AT
(31.535219) [toit] INFO: <- OK
(32.539250) [toit] INFO: -> AT
(32.543932) [toit] INFO: <- OK
(33.548552) [toit] INFO: -> AT
(33.553300) [toit] INFO: <- OK
(34.557324) [toit] INFO: -> AT
(34.562042) [toit] INFO: <- OK
(35.566353) [toit] INFO: -> AT
(35.571806) [toit] INFO: <- OK
(36.576339) [toit] INFO: -> AT
(36.580971) [toit] INFO: <- OK
(37.585182) [toit] INFO: -> AT
(37.589731) [toit] INFO: <- OK
(38.593901) [toit] INFO: -> AT
(38.598440) [toit] INFO: <- OK
(39.602803) [toit] INFO: -> AT
(39.607373) [toit] INFO: <- OK
(40.298602) [toit.scheduler] INFO: running job {job: persist_metrics}
(40.306512) [toit] INFO: -> AT+CSQ
(40.310018) [toit.scheduler] INFO: running job {job: poll_metric_memory_profile}
(40.318093) [toit] INFO: <- +CSQ: 15,99
(40.320544) [toit] INFO: <- OK
(40.323329) [toit.metrics] INFO: persisting metrics
(40.612772) [toit] INFO: -> AT
(40.618527) [toit] INFO: <- OK
(41.623464) [toit] INFO: -> AT
(41.628026) [toit] INFO: <- OK
(42.632313) [toit] INFO: -> AT
(42.636894) [toit] INFO: <- OK
(43.641371) [toit] INFO: -> AT
(43.645963) [toit] INFO: <- OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment