Facing issue while syncing using External sim

Your hub.sync requests are completing successfully (you can tell by the "completed":3 in the response, which tells you it has been 3 seconds since the last sync was completed.

Please verify the product you are using in your hub.set request and make sure it matches exactly the ProductUID of your Notehub project. Also, please post the results of a trace log again so we can see what’s happening.

Rob

I couldn’t able to see the device in Notehub even though the sync is completed. Here is the log.


Welcome to the Notecard In-Browser Terminal.
Start making requests below.
(For advanced info, use the 'help' command.)
********************************************
~ Connected to serial
~ DeviceUID dev:867730051259608 (NOTE-NBGL-500) running firmware 4.2.1.4015688
> {"req":"card.version"}
{"version":"notecard-4.2.1.4015688","device":"dev:867730051259608","name":"Blues Wireless Notecard","sku":"NOTE-NBGL-500","board":"1.11","api":4,"body":{"org":"Blues Wireless","product":"Notecard","version":"notecard-4.2.1","ver_major":4,"ver_minor":2,"ver_patch":1,"ver_build":4015688,"built":"Feb 24 2023 11:48:13"}}
> {"req":"hub.set", "product":"com.gmail.sanjay16shankar:respiratory_infections_in_pigs"}
{}
> {"req":"card.wireless","apn":"airtelgprs.com"}
{"apn":"airtelgprs.com","status":"{modem-off}","mode":"auto","count":3,"net":{"iccid":"89011703278520578421","iccid_external":"8991000903657744154","imsi":"310170852057842","imsi_external":"404400971649471","imei":"867730051259608","modem":"BG95M3LAR02A03_01.006.01.006","band":"GSM 1800","rat":"gsm","rssir":-71,"rssi":-72,"sinr":-20,"bars":3,"mcc":404,"mnc":40,"lac":7024,"cid":10271,"updated":1681963020}}
> {"req":"hub.sync"}
{}
> {"req":"hub.sync.status"}
{"status":"modem now ON using external SIM {modem-on}","sync":true,"requested":3}
> {"req":"hub.sync.status"}
{"status":"waiting for wireless service {wait-service} {connecting}","sync":true,"requested":11}
> {"req":"hub.sync.status"}
{"status":"opening unidirectionally-authenticated secure session to 3.229.0.63:8086 {socket-open-session}","sync":true,"requested":18}
> {"req":"hub.sync.status"}
{"status":"modem now OFF {modem-off}","time":1681963050,"sync":true,"completed":3}
> {"req":"hub.sync.status"}
{"status":"starting communications {wait-module} {connecting}","time":1681963050,"sync":true,"completed":10}
> {"req": "hub.sync", "allow": true}
{}
> {"req":"hub.sync.status"}
{"status":"modem now OFF {modem-off}","time":1681963093,"sync":true,"completed":2}

Again, I think we need to see a network sync trace to see what’s really happening. Please initiate the trace and then issue a note.add request like this to make sure there is actually data to be sent:

{"req": "note.add", "file": "test.qo","body": { "temp": 72.22 },"sync": true}

Here is the log of the network sync trace.

Welcome to the Notecard In-Browser Terminal.
Start making requests below.
(For advanced info, use the 'help' command.)
********************************************
~ Connected to serial
~ DeviceUID dev:867730051259608 (NOTE-NBGL-500) running firmware 4.2.1.4015688
> {"req":"card.version"}
{"version":"notecard-4.2.1.4015688","device":"dev:867730051259608","name":"Blues Wireless Notecard","sku":"NOTE-NBGL-500","board":"1.11","api":4,"body":{"org":"Blues Wireless","product":"Notecard","version":"notecard-4.2.1","ver_major":4,"ver_minor":2,"ver_patch":1,"ver_build":4015688,"built":"Feb 24 2023 11:48:13"}}
> {"req":"hub.set", "com.gmail.sanjay16shankar:respiratory_infections_in_pigs"}
{"err":"cannot interpret JSON: ':' expected near '}' {io}"}
> {"req":"hub.set", "product":"com.gmail.sanjay16shankar:respiratory_infections_in_pigs"}
{}
> {"req":"card.wireless","apn":"airtelgprs.com"}
{"apn":"airtelgprs.com","status":"{modem-off}","mode":"auto","count":4,"net":{"iccid":"89011703278520578421","iccid_external":"8991000903657744154","imsi":"310170852057842","imsi_external":"404400971649471","imei":"867730051259608","modem":"BG95M3LAR02A03_01.006.01.006","band":"GSM 1800","rat":"gsm","rssir":-63,"rssi":-63,"sinr":-20,"bars":4,"mcc":404,"mnc":40,"lac":7024,"cid":10271,"updated":1681998418}}
> {"req":"hub.sync"}
{}
> {"req":"hub.sync.status"}
{"status":"connect delayed (51 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}","time":1681998968,"sync":true,"completed":3}
> {"req": "hub.sync", "allow": true}
{}
> {"req":"hub.sync.status"}
{"status":"starting communications {wait-module} {connecting}","sync":true,"requested":3}
> {"req":"hub.sync.status"}
{"status":"modem now OFF {modem-off}","time":1682002676,"sync":true,"completed":3}
> {"req":"card.trace","mode":"on"}
{"stop":true}
M74:45.80 modem: wireless: overriding wireless mode with ',airtelgprs.com'
M74:45.80 modem: wireless: custom APN airtelgprs.com scanning GSM then M1 then NB1
M74:45.89 modem: wireless: waiting for wireless service {wait-service} {connecting}
M74:46.56 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M74:46.65 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M74:47.39 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M74:48.12 modem: wireless: waiting for wireless service 2 sec [----] {cell-registration-wait}
M74:48.86 modem: wireless: waiting for wireless service 3 sec [----] {cell-registration-wait}
M74:49.59 modem: wireless: waiting for wireless service 4 sec [----] {cell-registration-wait}
M74:50.33 modem: wireless: waiting for wireless service 4 sec [----] {cell-registration-wait}
M74:51.07 modem: wireless: waiting for wireless service 5 sec [----] {cell-registration-wait}
M74:51.80 modem: wireless: waiting for wireless service 6 sec [----] {cell-registration-wait}
M74:52.54 modem: wireless: waiting for wireless service 7 sec [----] {cell-registration-wait}
M74:53.28 modem: wireless: waiting for wireless service 7 sec [----] {cell-registration-wait}
M74:54.01 modem: wireless: waiting for wireless service 8 sec [----] {cell-registration-wait}
M74:56.32 modem: wireless: waiting for wireless service 10 sec [----] {cell-registration-wait}
M74:58.62 modem: wireless: waiting for wireless service 13 sec [----] {cell-registration-wait}
M75:00.93 modem: wireless: waiting for wireless service 15 sec [----] {cell-registration-wait}
M75:03.33 modem: wireless: cellular radio gsm band GSM 1800
M75:03.87 modem: wireless: waiting for wireless service 18 sec [++++] {cell-registration-wait}
M75:03.87 modem: wireless: waiting for data service {wait-data} {connecting}
M75:03.87 lwip: tcp task activated
M75:03.92 modem: wireless: network registration took 20 sec
M75:03.92 modem: wireless: connected {connected-closed}
M75:03.92 sync: wakeup: modem connected
S75:03.94 sync: project: using product UID product:com.gmail.sanjay16shankar:respiratory_infections_in_pigs
S75:03.94 sync: notehub: asking discovery service to assign a notehub session handler
S75:03.94 sync: network: opening unidirectionally-authenticated secure session to 3.229.0.63:8086 {socket-open-session}
S75:03.94 lwip: USING NARROWBAND TIMEOUTS
S75:04.86 sync: network: IP connect: waiting for connection for 0 sec (sent:16 rcvd:31)
S75:05.86 sync: network: IP connect: waiting for connection for 1 sec (sent:0 rcvd:0)
S75:06.87 sync: network: IP connect: waiting for connection for 2 sec (sent:0 rcvd:0)
S75:07.87 sync: network: IP connect: waiting for connection for 3 sec (sent:0 rcvd:0)
S75:08.88 sync: network: IP connect: waiting for connection for 4 sec (sent:0 rcvd:0)
S75:09.88 sync: network: IP connect: waiting for connection for 5 sec (sent:0 rcvd:0)
S75:10.89 sync: network: IP connect: waiting for connection for 6 sec (sent:0 rcvd:0)
S75:11.89 sync: network: IP connect: waiting for connection for 7 sec (sent:0 rcvd:0)
S75:12.90 sync: network: IP connect: waiting for connection for 8 sec (sent:0 rcvd:0)
S75:13.91 sync: network: IP connect: waiting for connection for 9 sec (sent:0 rcvd:0)
S75:14.91 sync: network: IP connect: waiting for connection for 10 sec (sent:0 rcvd:0)
S75:15.92 sync: network: IP connect: waiting for connection for 11 sec (sent:0 rcvd:0)
S75:16.92 sync: network: IP connect: waiting for connection for 12 sec (sent:0 rcvd:0)
S75:17.92 sync: network: IP connect: waiting for connection for 13 sec (sent:0 rcvd:0)
S75:18.93 sync: network: IP connect: waiting for connection for 14 sec (sent:0 rcvd:0)
S75:19.93 sync: network: IP connect: waiting for connection for 15 sec (sent:0 rcvd:0)
S75:20.94 sync: network: IP connect: waiting for connection for 16 sec (sent:0 rcvd:0)
I75:21.01 inbound(compute)
I75:21.01 inbound(idle for 300000ms)
S75:21.95 sync: network: IP connect: waiting for connection for 17 sec (sent:0 rcvd:0)
S75:22.95 sync: network: IP connect: waiting for connection for 19 sec (sent:0 rcvd:0)
S75:23.96 sync: network: IP connect: waiting for connection for 20 sec (sent:0 rcvd:0)
S75:24.96 sync: network: IP connect: waiting for connection for 21 sec (sent:0 rcvd:0)
S75:25.97 sync: network: IP connect: waiting for connection for 22 sec (sent:0 rcvd:0)
G75:26.15 accel: movements:12 free-falls:0 5s:1000000000000000000000000000000000000000000000000
S75:26.97 sync: network: IP connect: waiting for connection for 23 sec (sent:0 rcvd:0)
S75:27.98 sync: network: IP connect: waiting for connection for 24 sec (sent:0 rcvd:0)
S75:28.98 sync: network: IP connect: waiting for connection for 25 sec (sent:0 rcvd:0)
S75:29.99 sync: network: IP connect: waiting for connection for 26 sec (sent:0 rcvd:0)
S75:30.99 sync: network: IP connect: waiting for connection for 27 sec (sent:0 rcvd:0)
S75:32.00 sync: network: IP connect: waiting for connection for 28 sec (sent:0 rcvd:0)
S75:33.01 sync: network: IP connect: waiting for connection for 29 sec (sent:0 rcvd:0)
S75:34.01 sync: network: IP connect: waiting for connection for 30 sec (sent:0 rcvd:0)
S75:35.01 sync: network: IP connect: waiting for connection for 31 sec (sent:0 rcvd:0)
S75:36.02 sync: network: IP connect: waiting for connection for 32 sec (sent:0 rcvd:0)
S75:37.02 sync: network: IP connect: waiting for connection for 33 sec (sent:0 rcvd:0)
S75:38.03 sync: network: IP connect: waiting for connection for 34 sec (sent:0 rcvd:0)
S75:39.03 sync: network: IP connect: waiting for connection for 35 sec (sent:0 rcvd:0)
S75:40.04 sync: network: IP connect: waiting for connection for 36 sec (sent:0 rcvd:0)
S75:41.05 sync: network: IP connect: waiting for connection for 37 sec (sent:0 rcvd:0)
S75:42.05 sync: network: IP connect: waiting for connection for 38 sec (sent:0 rcvd:0)
S75:43.06 sync: network: IP connect: waiting for connection for 39 sec (sent:0 rcvd:0)
S75:44.06 sync: network: IP connect: waiting for connection for 40 sec (sent:0 rcvd:0)
S75:45.07 sync: network: IP connect: waiting for connection for 41 sec (sent:0 rcvd:0)
S75:46.07 sync: network: IP connect: waiting for connection for 42 sec (sent:0 rcvd:0)
S75:47.08 sync: network: IP connect: waiting for connection for 43 sec (sent:0 rcvd:0)
S75:48.08 sync: network: IP connect: waiting for connection for 44 sec (sent:0 rcvd:0)
S75:49.09 sync: network: IP connect: waiting for connection for 45 sec (sent:0 rcvd:0)
S75:50.10 sync: network: IP connect: waiting for connection for 46 sec (sent:0 rcvd:0)
S75:51.10 sync: network: IP connect: waiting for connection for 47 sec (sent:0 rcvd:0)
S75:52.11 sync: network: IP connect: waiting for connection for 48 sec (sent:0 rcvd:0)
S75:53.11 sync: network: IP connect: waiting for connection for 49 sec (sent:0 rcvd:0)
S75:54.12 sync: network: IP connect: waiting for connection for 50 sec (sent:0 rcvd:0)
S75:55.12 sync: network: IP connect: waiting for connection for 51 sec (sent:0 rcvd:0)
S75:56.13 sync: network: IP connect: waiting for connection for 52 sec (sent:0 rcvd:0)
S75:57.13 sync: network: IP connect: waiting for connection for 53 sec (sent:0 rcvd:0)
S75:58.14 sync: network: IP connect: waiting for connection for 54 sec (sent:0 rcvd:0)
S75:59.14 sync: network: IP connect: waiting for connection for 55 sec (sent:0 rcvd:0)
S76:00.14 sync: network: IP connect: waiting for connection for 56 sec (sent:0 rcvd:0)
S76:01.15 sync: network: IP connect: waiting for connection for 57 sec (sent:0 rcvd:0)
S76:02.16 sync: network: IP connect: waiting for connection for 58 sec (sent:0 rcvd:0)
S76:03.16 sync: network: IP connect: waiting for connection for 59 sec (sent:0 rcvd:0)
G76:03.77 accel: movements:13 free-falls:0 5s:1000000010000000000000000000000000000000000000000
G76:04.05 accel: movements:15 free-falls:0 5s:3000000010000000000000000000000000000000000000000
S76:04.16 sync: network: IP connect: waiting for connection for 60 sec (sent:0 rcvd:0)
S76:05.17 sync: network: IP connect: waiting for connection for 61 sec (sent:0 rcvd:0)
S76:06.17 sync: network: IP connect: waiting for connection for 62 sec (sent:0 rcvd:0)
S76:07.18 sync: network: IP connect: waiting for connection for 63 sec (sent:0 rcvd:0)
S76:08.18 sync: network: IP connect: waiting for connection for 64 sec (sent:0 rcvd:0)
S76:09.19 sync: network: IP connect: waiting for connection for 65 sec (sent:0 rcvd:0)
S76:10.19 sync: network: IP connect: waiting for connection for 66 sec (sent:0 rcvd:0)
S76:11.20 sync: network: IP connect: waiting for connection for 67 sec (sent:0 rcvd:0)
S76:12.20 sync: network: IP connect: waiting for connection for 68 sec (sent:0 rcvd:0)
S76:13.21 sync: network: IP connect: waiting for connection for 69 sec (sent:0 rcvd:0)
S76:14.21 sync: network: IP connect: waiting for connection for 70 sec (sent:0 rcvd:0)
S76:15.22 sync: network: IP connect: waiting for connection for 71 sec (sent:0 rcvd:0)
S76:16.22 sync: network: IP connect: waiting for connection for 72 sec (sent:0 rcvd:0)
S76:17.23 sync: network: IP connect: waiting for connection for 73 sec (sent:0 rcvd:0)
S76:18.23 sync: network: IP connect: waiting for connection for 74 sec (sent:0 rcvd:0)
S76:19.24 sync: network: IP connect: waiting for connection for 75 sec (sent:0 rcvd:0)
S76:20.24 sync: network: IP connect: waiting for connection for 76 sec (sent:0 rcvd:0)
S76:21.25 sync: network: IP connect: waiting for connection for 77 sec (sent:0 rcvd:0)
S76:22.25 sync: network: IP connect: waiting for connection for 78 sec (sent:0 rcvd:0)
S76:23.26 sync: network: IP connect: waiting for connection for 79 sec (sent:0 rcvd:0)
S76:24.26 sync: network: IP connect: waiting for connection for 80 sec (sent:0 rcvd:0)
S76:25.27 sync: network: IP connect: waiting for connection for 81 sec (sent:0 rcvd:0)
S76:26.27 sync: network: IP connect: waiting for connection for 82 sec (sent:0 rcvd:0)
S76:27.28 sync: network: IP connect: waiting for connection for 83 sec (sent:0 rcvd:0)
S76:28.28 sync: network: IP connect: waiting for connection for 84 sec (sent:0 rcvd:0)
S76:29.29 sync: network: IP connect: waiting for connection for 85 sec (sent:0 rcvd:0)
S76:30.29 sync: network: IP connect: waiting for connection for 86 sec (sent:0 rcvd:0)
S76:31.30 sync: network: IP connect: waiting for connection for 87 sec (sent:0 rcvd:0)
S76:32.31 sync: network: IP connect: waiting for connection for 88 sec (sent:0 rcvd:0)
S76:33.31 sync: network: IP connect: waiting for connection for 89 sec (sent:0 rcvd:0)
S76:34.01 sync: network: *** PPP TIMEOUT AND RESET ***
S76:34.01 penalty: retrying because 3 consecutive open failures is still less than 6 allowed: can't open session to discovery service: socket open PPP: ppp connection timeout?
S76:34.01 sync: work: can't open notehub: can't open session to discovery service: socket open PPP: ppp connection timeout? {notehub-open-failure}
S76:34.01 sync: wireless: modem disconnect requested {cell-disconnect-begin}
S76:34.02 sync: wireless: idle {disconnected}
S76:34.02 sync: wireless: idle {disconnected}
M76:34.51 modem: wireless: idle {disconnected}
S76:34.52 modem: waiting for shutdown
M76:34.90 _log.qo: modem: powered down
M76:34.95 modem: wireless: modem now OFF {modem-off}
M76:34.95 modem: **********************************
M76:34.95 modem: active for 116 sec
M76:34.95 modem:  ppp tx+rx=total: 165+196=361 (overhead of 361, 100.0% of total)
M76:34.95 modem: **********************************
M76:40.00 sync: wakeup: modem shutdown
M76:40.10 modem: wireless: idle {disconnected}
S76:40.14 sync: wireless: modem disconnected {cell-disconnected}
S76:40.14 sync: notehub: disconnected (was {connected}) via close of notebox {notehub-disconnected}
S76:40.14 SyncOnSchedule: can't open session to discovery service: socket open PPP: ppp connection timeout?
S76:41.23 sync: connect requested by  (DATA)
S76:41.49 modem: 5.15V 27.94C at power-on (2023-04-20T15:00:32Z UTC)
S76:41.49 sync: wireless: starting communications {wait-module} {connecting}
T76:44.02 lwip: IP deactivated to conserve energy
S76:45.79 modem: *************** ON ***************
S76:45.79 sync: wireless: modem now ON using external SIM {modem-on}
M76:47.14 modem: 5.15V 27.94C at power-on (2023-04-20T15:00:38Z UTC)
M76:47.14 modem: wireless: starting communications {wait-module} {connecting}
M76:48.35 _log.qo: modem: powered up in data mode
M76:48.35 modem: wireless: overriding wireless mode with ',airtelgprs.com'
M76:48.35 modem: wireless: optimizing band scan for GSM
M76:49.24 modem: will recompute access technology: SIM ICCID changed since last connection
M76:49.49 modem: wireless: overriding wireless mode with ',airtelgprs.com'
M76:49.49 modem: wireless: custom APN airtelgprs.com scanning GSM then M1 then NB1
M76:49.58 modem: wireless: waiting for wireless service {wait-service} {connecting}
M76:50.25 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M76:50.35 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M76:51.09 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M76:51.82 modem: wireless: waiting for wireless service 2 sec [----] {cell-registration-wait}
M76:52.56 modem: wireless: cellular radio gsm band GSM 1800
M76:53.10 modem: wireless: waiting for data service {wait-data} {connecting}
M76:54.00 lwip: tcp task activated
M76:54.05 modem: wireless: network registration took 6 sec
M76:54.05 modem: wireless: connected {connected-closed}
M76:54.05 sync: wakeup: modem connected
S76:54.07 sync: project: using product UID product:com.gmail.sanjay16shankar:respiratory_infections_in_pigs
S76:54.07 sync: notehub: asking discovery service to assign a notehub session handler
S76:54.08 sync: network: opening unidirectionally-authenticated secure session to 3.229.0.63:8086 {socket-open-session}
S76:54.08 lwip: USING NARROWBAND TIMEOUTS
T76:54.78 tcpip: network: IP local:100.106.173.141 remote:10.64.64.64
T76:54.78 tcpip: network: IP connect_status: connected (0)
S76:54.79 sync: network: IP socket connect: success in 0 sec (sent:236 rcvd:259)
S76:54.79 lwip: opened
S76:54.79 sync: network: IP initialized (sent:236 rcvd:259) {socket-ip-init}
S76:54.79 sync: network: connecting to 3.229.0.63:8086 {socket-connecting}
S76:55.57 hsm: secure element enabled
S76:55.69 sync: network: TLS using ECC curve NIST P384
S76:55.69 sync: network: TLS cert  issuer: /C=NL/O=STMicroelectronics nv/CN=STM STSAFE-A PROD CA 25
S76:55.69 sync: network: TLS cert subject: /CN=NB1/serialNumber=0209602e8052ccde390139
S76:55.69 sync: network: connect using TLS {socket-tls-connecting}
S76:55.90 wolf_IORecv(0): connection closed
S76:55.90 sync: network: tls: failed to connect using TLS: network timeout {network} {socket-tls-error}
S76:55.90 hsm: secure element disabled
S76:56.26 lwip: waiting for mbox to be idle (msgs:0 queues:2 sems:1 mutexes:1)
S76:56.76 sync: network: request socket shutdown {socket-disconnected}
S76:56.86 lwip: closed
S76:56.86 penalty: retrying because 4 consecutive open failures is still less than 6 allowed: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S76:56.87 sync: work: can't open notehub: can't open session to discovery service: failed to connect using TLS: network timeout {network} {notehub-open-failure}
S76:56.87 sync: wireless: modem disconnect requested {cell-disconnect-begin}
S76:56.87 sync: wireless: idle {disconnected}
S76:56.87 sync: wireless: idle {disconnected}
S76:56.87 lwip: tcp task deactivated (msgs:0 queues:1 sems:0 mutexes:1)
M76:57.37 modem: wireless: idle {disconnected}
S76:57.38 modem: waiting for shutdown
M76:57.76 _log.qo: modem: powered down
M76:57.81 usage: adding 232/84 to sent/rcvd bytes = 17672/6428
M76:57.81 usage: adding 1/0 to TCP/TLS = 76/0
M76:57.81 modem: wireless: modem now OFF {modem-off}
M76:57.81 modem: **********************************
M76:57.81 modem: active for 16 sec
M76:57.81 modem:  ppp tx+rx=total: 482+353=835 (overhead of 835, 100.0% of total)
M76:57.81 modem:  ota tx+rx=total: 232+84=316 (to/from tower, not to/from modem)
M76:57.81 modem: **********************************
M77:02.86 sync: wakeup: modem shutdown
M77:02.96 modem: wireless: idle {disconnected}
S77:03.00 sync: wireless: modem disconnected {cell-disconnected}
S77:03.00 sync: notehub: disconnected (was {connected}) via close of notebox {notehub-disconnected}
S77:03.00 SyncOnSchedule: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S77:04.09 sync: connect requested by  (DATA)
S77:04.35 modem: 5.15V 27.94C at power-on (2023-04-20T15:00:55Z UTC)
S77:04.35 sync: wireless: starting communications {wait-module} {connecting}
T77:07.12 lwip: IP deactivated to conserve energy
S77:08.65 modem: *************** ON ***************
S77:08.65 sync: wireless: modem now ON using external SIM {modem-on}
M77:10.05 modem: 5.15V 27.94C at power-on (2023-04-20T15:01:01Z UTC)
M77:10.05 modem: wireless: starting communications {wait-module} {connecting}
M77:12.14 modem: will recompute access technology: SIM ICCID changed since last connection
M77:12.40 modem: wireless: overriding wireless mode with ',airtelgprs.com'
M77:12.40 modem: wireless: custom APN airtelgprs.com scanning GSM then M1 then NB1
M77:12.49 modem: wireless: waiting for wireless service {wait-service} {connecting}
M77:13.16 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:13.25 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:13.99 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:14.72 modem: wireless: waiting for wireless service 2 sec [----] {cell-registration-wait}
M77:15.46 modem: wireless: cellular radio gsm band GSM 1800
M77:15.99 modem: wireless: waiting for data service {wait-data} {connecting}
M77:16.50 lwip: tcp task activated
M77:16.54 modem: wireless: network registration took 6 sec
M77:16.54 modem: wireless: connected {connected-closed}
M77:16.55 sync: wakeup: modem connected
S77:16.57 sync: project: using product UID product:com.gmail.sanjay16shankar:respiratory_infections_in_pigs
S77:16.57 sync: notehub: asking discovery service to assign a notehub session handler
S77:16.57 sync: network: opening unidirectionally-authenticated secure session to 3.229.0.63:8086 {socket-open-session}
S77:16.57 lwip: USING NARROWBAND TIMEOUTS
T77:17.21 tcpip: network: IP local:100.98.151.126 remote:10.64.64.64
T77:17.21 tcpip: network: IP connect_status: connected (0)
S77:18.14 sync: network: connected to 3.229.0.63 (sent:95 rcvd:50) {socket-connected}
S77:18.45 hsm: secure element enabled
S77:18.56 sync: network: TLS using ECC curve NIST P384
S77:18.56 sync: network: TLS cert  issuer: /C=NL/O=STMicroelectronics nv/CN=STM STSAFE-A PROD CA 25
S77:18.56 sync: network: TLS cert subject: /CN=NB1/serialNumber=0209602e8052ccde390139
S77:18.57 sync: network: connect using TLS {socket-tls-connecting}
S77:19.12 wolf_IORecv(0): connection closed
S77:19.12 sync: network: tls: failed to connect using TLS: network timeout {network} {socket-tls-error}
S77:19.12 hsm: secure element disabled
S77:19.48 lwip: waiting for mbox to be idle (msgs:0 queues:2 sems:1 mutexes:1)
S77:19.68 sync: network: request socket shutdown {socket-disconnected}
S77:19.78 lwip: closed
S77:19.78 penalty: retrying because 5 consecutive open failures is still less than 6 allowed: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S77:19.78 sync: work: can't open notehub: can't open session to discovery service: failed to connect using TLS: network timeout {network} {notehub-open-failure}
S77:19.78 sync: wireless: modem disconnect requested {cell-disconnect-begin}
S77:19.78 sync: wireless: idle {disconnected}
S77:19.78 sync: wireless: idle {disconnected}
S77:19.78 lwip: tcp task deactivated (msgs:0 queues:1 sems:0 mutexes:1)
M77:20.27 modem: wireless: idle {disconnected}
S77:20.28 modem: waiting for shutdown
M77:20.66 _log.qo: modem: powered down
M77:20.71 usage: adding 232/84 to sent/rcvd bytes = 17904/6512
M77:20.71 usage: adding 1/0 to TCP/TLS = 77/0
M77:20.71 modem: wireless: modem now OFF {modem-off}
M77:20.71 modem: **********************************
M77:20.72 modem: active for 16 sec
M77:20.72 modem:  ppp tx+rx=total: 486+356=842 (overhead of 842, 100.0% of total)
M77:20.72 modem:  ota tx+rx=total: 232+84=316 (to/from tower, not to/from modem)
M77:20.72 modem: **********************************
M77:25.77 sync: wakeup: modem shutdown
M77:25.87 modem: wireless: idle {disconnected}
S77:25.91 sync: wireless: modem disconnected {cell-disconnected}
S77:25.91 sync: notehub: disconnected (was {connected}) via close of notebox {notehub-disconnected}
S77:25.91 SyncOnSchedule: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S77:27.00 sync: connect requested by  (DATA)
T77:30.01 lwip: IP deactivated to conserve energy
S77:31.57 modem: *************** ON ***************
S77:31.57 sync: wireless: modem now ON using external SIM {modem-on}
M77:32.93 modem: 5.15V 27.94C at power-on (2023-04-20T15:01:23Z UTC)
M77:32.93 modem: wireless: starting communications {wait-module} {connecting}
M77:34.12 _log.qo: modem: powered up in data mode
M77:34.13 modem: wireless: overriding wireless mode with ',airtelgprs.com'
M77:34.13 modem: wireless: optimizing band scan for GSM
M77:35.02 modem: will recompute access technology: SIM ICCID changed since last connection
M77:35.36 modem: wireless: waiting for wireless service {wait-service} {connecting}
M77:36.04 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:36.13 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:36.86 modem: wireless: waiting for wireless service 1 sec [----] {cell-registration-wait}
M77:37.60 modem: wireless: waiting for wireless service 2 sec [----] {cell-registration-wait}
M77:37.90 modem: wireless: cellular radio gsm band GSM 1800
M77:38.43 modem: wireless: waiting for data service {wait-data} {connecting}
M77:38.94 lwip: tcp task activated
M77:38.98 modem: wireless: network registration took 6 sec
M77:38.98 modem: wireless: connected {connected-closed}
M77:38.98 sync: wakeup: modem connected
S77:39.01 sync: project: using product UID product:com.gmail.sanjay16shankar:respiratory_infections_in_pigs
S77:39.01 sync: notehub: asking discovery service to assign a notehub session handler
S77:39.01 sync: network: opening unidirectionally-authenticated secure session to 3.229.0.63:8086 {socket-open-session}
S77:39.01 lwip: USING NARROWBAND TIMEOUTS
T77:39.62 tcpip: network: IP local:100.109.236.21 remote:10.64.64.64
T77:39.62 tcpip: network: IP connect_status: connected (0)
S77:39.62 sync: network: IP socket connect: success in 0 sec (sent:235 rcvd:259)
S77:39.62 lwip: opened
S77:39.62 sync: network: IP initialized (sent:235 rcvd:259) {socket-ip-init}
S77:39.63 sync: network: connecting to 3.229.0.63:8086 {socket-connecting}
S77:40.04 sync: network: connected to 3.229.0.63 (sent:93 rcvd:49) {socket-connected}
S77:40.35 hsm: secure element enabled
S77:40.46 sync: network: TLS using ECC curve NIST P384
S77:40.46 sync: network: TLS cert  issuer: /C=NL/O=STMicroelectronics nv/CN=STM STSAFE-A PROD CA 25
S77:40.46 sync: network: TLS cert subject: /CN=NB1/serialNumber=0209602e8052ccde390139
S77:40.47 sync: network: connect using TLS {socket-tls-connecting}
S77:40.66 wolf_IORecv(0): connection closed
S77:40.66 sync: network: tls: failed to connect using TLS: network timeout {network} {socket-tls-error}
S77:40.66 hsm: secure element disabled
S77:41.12 sync: network: request socket shutdown {socket-disconnected}
S77:41.22 lwip: closed
S77:41.22 penalty: delaying because 6 consecutive open failures has reached 6 allowed: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S77:41.22 sync: work: can't open notehub: can't open session to discovery service: failed to connect using TLS: network timeout {network} {notehub-open-failure}
S77:41.22 sync: wireless: modem disconnect requested {cell-disconnect-begin}
S77:41.22 sync: wireless: idle {disconnected}
S77:41.22 sync: wireless: idle {disconnected}
S77:41.22 lwip: tcp task deactivated (msgs:0 queues:1 sems:0 mutexes:1)
M77:41.71 modem: wireless: idle {disconnected}
S77:41.72 modem: waiting for shutdown
M77:42.10 _log.qo: modem: powered down
M77:42.16 usage: adding 232/84 to sent/rcvd bytes = 18136/6596
M77:42.16 usage: adding 1/0 to TCP/TLS = 78/0
M77:42.16 modem: wireless: modem now OFF {modem-off}
M77:42.16 modem: **********************************
M77:42.16 modem: active for 14 sec
M77:42.16 modem:  ppp tx+rx=total: 481+353=834 (overhead of 834, 100.0% of total)
M77:42.16 modem:  ota tx+rx=total: 232+84=316 (to/from tower, not to/from modem)
M77:42.16 modem: **********************************
> {"req":"hub.sync"}
{}
M77:47.21 sync: wakeup: modem shutdown
M77:47.31 modem: wireless: idle {disconnected}
S77:47.35 sync: wireless: modem disconnected {cell-disconnected}
S77:47.35 sync: notehub: disconnected (was {connected}) via close of notebox {notehub-disconnected}
S77:47.35 SyncOnSchedule: can't open session to discovery service: failed to connect using TLS: network timeout {network}
S77:47.37 sync: work: error in isSyncDue: connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure} {sync-error}
S77:47.38 SyncOnSchedule: connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}
S77:47.39 sync: work: error in isSyncDue: connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure} {sync-error}
S77:47.40 SyncOnSchedule: connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}
> {"req":"hub.sync.status"}
{"status":"connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}","time":1682002898,"sync":true,"completed":3}
> {"req":"hub.sync.status"}
{"status":"connect delayed (60 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}","time":1682002898,"sync":true,"completed":69}
> {"req":"card.trace","mode":"off"}

{"stop":true}
~ Each multi-line request object is sent on one line to conform to NDJSON.
> {"req":"hub.sync"}
{}
> {"req":"hub.sync.status"}
{"status":"connect delayed (59 min remaining): can't open session to discovery service: failed to connect using TLS: network timeout {network} {service}{extended-service-failure}","time":1682002991,"sync":true,"completed":1}

I am facing same kind of issue, is it connected finally?