External SIM connectivity issue

Hi @gwolff, @RobLauer , I am from India and using notecard NOTE-NBNA and NOTECARRIEER-A.
I am using external SIM card to establish communication as my notecard supports NA region.

Settings:
J *req = NoteNewRequest(“card.wireless”);
JAddStringToObject(req, “apn”, “bsnlnet”);
JAddStringToObject(req, “mode”, “gprs”);
NoteRequest(req);

My question is whether my NOTECARD (NOTE-NBNA) supports India region using external sim card slot?

Thanks in advance, if you get a chance to look at my query.

I checked some commands and see response below.

14:41:07.399 → Card wireless status…

14:41:08.441 → [INFO] {“req”:“card.wireless”,“apn”:“bsnlnet”,“mode”:“gprs”,“crc”:“0000:DDF2C724”}

14:41:08.607 → [INFO] {“apn”:“bsnlnet”,“status”:“{modem-off}”,“mode”:“gsm”,“net”:{“iccid”:“89011704278852103169”,“iccid_external”:“89917330420167484906”,“imsi”:“310170885210316”,“imsi_external”:“404730116748490”,“imei”:“864622040819589”,“modem”:“BG95M1LAR02A04_01.002.01.002”}}

14:41:13.634 → Card version status…

14:41:13.634 → [INFO] {“req”:“card.version”,“crc”:“0001:9295BAB2”}

14:41:13.825 → [INFO] {“version”:“notecard-7.2.1.16425”,“device”:“dev:864622040819589”,“name”:“Blues Wireless Notecard”,“sku”:“NOTE-NBNA”,“ordering_code”:“XA0XT1N0AFAA”,“board”:“1.11”,“cell”:true,“gps”:true,“api”:7,“body”:{“org”:“Blues Wireless”,“product”:“Notecard”,“target”:“r5”,“version”:“notecard-7.2.1”,“ver_major”:7,“ver_minor”:2,“ver_patch”:1,“ver_build”:16425,“built”:“Mar 5 2024 20:15:15”}}

14:41:18.843 → Card status…

14:41:18.843 → [INFO] {“req”:“card.status”,“crc”:“0002:5E9E92F3”}

14:41:19.001 → [INFO] {“status”:“{normal}”,“storage”:20}

14:41:23.967 → Card hun status…

14:41:23.967 → [INFO] {“req”:“hub.set”,“product”:“com.kinetiqco.mproulx:test”,“body”:{“agent”:“note-arduino 1.6.0”,“compiler”:“gcc 12.2.0”,“req_interface”:“i2c”,“cpu_name”:“esp32”},“crc”:“0003:864ECB35”}

14:41:24.266 → [INFO] {}

14:41:29.271 → Hub sync status…

14:41:29.271 → [INFO] {“req”:“hub.sync”,“product”:“com.kinetiqco.mproulx:test”,“crc”:“0004:68A9BB82”}

14:41:29.407 → [INFO] {}
4:41:59.388 → Card card.wireless status…

14:41:59.388 → [INFO] {“req”:“card.wireless.penalty”,“crc”:“0005:EB49A546”}

14:41:59.592 → [INFO] {“seconds”:213,“minutes”:68,“status”:“network: can’t connect (3.6 min remaining) {registration-failure}{network}{extended-network-failure}”,“count”:4}

14:41:59.640 → Card card.connected status…

14:41:59.640 → [INFO] {“req”:“card.connected”,“crc”:“0006:DF57EDEB”}

14:41:59.767 → [INFO] {“err”:“unknown or unsupported request type: card.connected {not-supported}{io}”}

14:41:59.767 → Card card.location status…

14:41:59.767 → [INFO] {“req”:“card.location”,“crc”:“0007:F0AE3444”}

14:41:59.894 → [INFO] {“status”:“GPS inactive {gps-inactive}”,“mode”:“periodic”}

14:41:59.894 → Card card.trace status…

14:41:59.894 → [INFO] {“req”:“card.trace”,“crc”:“0008:D563BC96”}

14:42:00.004 → [INFO] {“stop”:true}

14:42:15.002 → Card card.wireless status…

14:42:15.002 → [INFO] {“req”:“card.wireless.penalty”,“crc”:“0009:EB49A546”}

14:42:15.189 → [INFO] {“seconds”:198,“minutes”:69,“status”:“network: can’t connect (3.3 min remaining) {registration-failure}{network}{extended-network-failure}”,“count”:4}

14:42:15.189 → Card card.connected status…

14:42:15.190 → [INFO] {“req”:“card.connected”,“crc”:“000A:DF57EDEB”}

14:42:15.310 → [INFO] {“err”:“unknown or unsupported request type: card.connected {not-supported}{io}”}

14:42:15.310 → Card card.location status…

14:42:15.310 → [INFO] {“req”:“card.location”,“crc”:“000B:F0AE3444”}

14:42:15.460 → [INFO] {“status”:“GPS inactive {gps-inactive}”,“mode”:“periodic”}

14:42:15.460 → Card card.trace status…

14:42:15.460 → [INFO] {“req”:“card.trace”,“crc”:“000C:D563BC96”}

14:42:15.581 → [INFO] {“stop”:true}

Hi @Srihari the NBNA Notecard is for North America use. For India, you will need an NBGL Notecard.

Thank you for Quick response, also this card won’t support external sim card as well in India region. right?

How to clear existing files to overcome this issue?
{“err”:“error adding note: can’t exceed 100 notes per file (currently 100; see note.template)”}

15:02:42.668 → [INFO] {“req”:“card.temp”,“crc”:“0005:CE0D7EDD”}

15:02:43.806 → [ERROR] i2c: received NACK on transmit of address {io}

15:02:43.806 → [WARN] serial-over-i2c: reattempting to read Notecard response

15:02:44.807 → [ERROR] i2c: received NACK on transmit of address {io}

15:02:44.807 → [WARN] serial-over-i2c: reattempting to read Notecard response

15:02:44.887 → [INFO] {“value”:30.5625,“calibration”:-1}

15:02:44.887 → Temperature = 30.56 *C

15:02:44.887 → Humidity = 46.59 %

15:02:44.887 → Sending sensor data…

15:02:44.887 → [INFO] {“req”:“note.add”,“file”:“sensors.qo”,“sync”:true,“body”:{“temp”:30.5625,“humidity”:46.59329986572266},“crc”:“0006:31FFC106”}

15:02:45.986 → [INFO] {“err”:"error adding note: can’t exceed 100 notes per file (currently 100; see note.template)"}

15:03:01.019 → [INFO] {“req”:“card.temp”,“crc”:“0007:CE0D7EDD”}

15:03:01.321 → [INFO] {“value”:30.5625,“calibration”:-1}

15:03:01.321 → Temperature = 30.56 *C

15:03:01.353 → Humidity = 47.77 %

15:03:01.353 → Sending sensor data…

The NBGL will work with an external SIM, yes.

To resolve that issue, you can issue a card.restore as detailed here: card Requests - API Reference - Blues Developers

1 Like

Also @Srihari be sure to look into using Note Templates to avoid the 100 Note limit! You’ll save storage space in flash and reduce cellular data usage as well.

1 Like

Hi @RobLauer @bsatrom ,
I imported the NBGL note card and executed below commands but don’t see any event my nothehub. Do we need to register this device in my notehub product id to see the data?

6:59:08.123 → entry 0x403c9868
16:59:10.747 → Card wireless status…
16:59:11.775 → [INFO] {“req”:“card.wireless”,“apn”:“bsnlnet”,“mode”:“m”,“crc”:“0000:C5A8B260”}
16:59:11.957 → [INFO] {“apn”:“bsnlnet”,“status”:“{cell-registration-wait}”,“mode”:“m1”,“net”:{“iccid”:“89011704278852030370”,“iccid_external”:“89917330420167484906”,“imsi”:“310170885203037”,“imsi_external”:“404730116748490”,“imei”:“867730051747446”,“modem”:“BG95M3LAR02A03_01.017.01.017”}}
16:59:17.002 → Card version status…
16:59:17.002 → [INFO] {“req”:“card.version”,“crc”:“0001:9295BAB2”}
16:59:17.155 → [INFO] {“version”:“notecard-7.3.1.16689”,“device”:“dev:867730051747446”,“name”:“Blues Wireless Notecard”,“sku”:“NOTE-NBGL”,“ordering_code”:“XB0XT1N0AFAB”,“board”:“1.11”,“cell”:true,“gps”:true,“api”:7,“body”:{“org”:“Blues Wireless”,“product”:“Notecard”,“target”:“r5”,“version”:“notecard-7.3.1”,“ver_major”:7,“ver_minor”:3,“ver_patch”:1,“ver_build”:16689,“built”:“Jun 21 2024 17:22:56”}}
16:59:22.183 → Card status…
16:59:22.183 → [INFO] {“req”:“card.status”,“crc”:“0002:5E9E92F3”}
16:59:22.342 → [INFO] {“status”:“{normal}”,“storage”:1,“cell”:true}
16:59:27.313 → Card hub status…
16:59:27.313 → [INFO] {“req”:“hub.set”,“product”:“com.kinetiqco.mproulx:test”,“body”:{“agent”:“note-arduino 1.6.0”,“compiler”:“gcc 12.2.0”,“req_interface”:“i2c”,“cpu_name”:“esp32”},“crc”:“0003:864ECB35”}
16:59:27.583 → [INFO] {}
16:59:32.603 → Hub sync status…
16:59:32.603 → [INFO] {“req”:“hub.sync”,“product”:“com.kinetiqco.mproulx:test”,“crc”:“0004:68A9BB82”}
16:59:32.748 → [INFO] {}
16:59:32.603 → [INFO] {“req”:“hub.sync”,“product”:“com.kinetiqco.mproulx:test”,“crc”:“0004:68A9BB82”}
16:59:32.748 → [INFO] {}
17:00:02.752 → [INFO] {“req”:“card.temp”,“crc”:“0005:CE0D7EDD”}
17:00:02.863 → [INFO] {“value”:39,“calibration”:-1}
17:00:02.863 → Temperature = 39.00 *C
17:00:02.863 → Humidity = 46.59 %
17:00:02.863 → Sending sensor data…
17:00:02.863 → [INFO] {“req”:“note.add”,“file”:“sensors.qo”,“sync”:true,“body”:{“temp”:39,“humidity”:46.59329986572266},“crc”:“0006:1CCE0729”}
17:00:03.096 → [INFO] {“total”:47}
17:00:03.096 → Card card.wireless status…
17:00:03.096 → [INFO] {“req”:“card.wireless.penalty”,“crc”:“0007:EB49A546”}
17:00:03.217 → [INFO] {}
17:00:03.217 → Card card.connected status…
17:00:03.217 → [INFO] {“req”:“card.connected”,“crc”:“0008:DF57EDEB”}
17:00:03.331 → [INFO] {“err”:“unknown or unsupported request type: card.connected {not-supported}{io}”}
17:00:03.368 → Card card.location status…
17:00:03.368 → [INFO] {“req”:“card.location”,“crc”:“0009:F0AE3444”}
17:00:03.481 → [INFO] {“status”:“GPS is off {gps-inactive}”,“mode”:“off”}
17:00:03.481 → Card card.trace status…
17:00:03.481 → [INFO] {“req”:“card.trace”,“crc”:“000A:D563BC96”}
17:00:03.633 → [INFO] {“stop”:true}
17:00:18.640 → [INFO] {“req”:“card.temp”,“crc”:“000B:CE0D7EDD”}
17:00:18.739 → [INFO] {“value”:39,“calibration”:-1}

Hi @Srihari,

I don’t see any hub.set API call in the above output. You do need to associate your Notehub project’s productUID with your Notecard via that call.

Rob

22:38:27.742 → Card hub status…

22:38:27.742 → [INFO] {“req”:“hub.set”,“product”:“com.kinetiqco.mproulx:test”,“body”:{“agent”:“note-arduino 1.6.0”,“compiler”:“gcc 12.2.0”,“req_interface”:“i2c”,“cpu_name”:“esp32”},“crc”:“0003:864ECB35”}

22:38:27.986 → [INFO] {}

22:38:33.016 → Hub sync status…

22:38:33.016 → [INFO] {“req”:“hub.sync”,“product”:“com.kinetiqco.mproulx:test”,“crc”:“0004:68A9BB82”}

22:38:33.157 → [INFO] {}

23:26:55.936 → Card wireless status…

23:26:56.971 → [INFO] {“req”:“card.wireless”,“apn”:“bsnlnet”,“mode”:“gprs”,“crc”:“0000:DDF2C724”}

23:26:57.162 → [INFO] {“apn”:“bsnlnet”,“status”:“{cell-registration-wait}”,“mode”:“gsm”,“net”:{“iccid”:“89011704278852030370”,“iccid_external”:“89917330420167484906”,“imsi”:“310170885203037”,“imsi_external”:“404730116748490”,“imei”:“867730051747446”,“modem”:“BG95M3LAR02A03_01.017.01.017”}}

23:27:02.169 → hub set status…

23:27:02.169 → [INFO] {“req”:“hub.set”,“product”:“com.kinetiqco.mproulx:test”,“sn”:“867730051747446”,“body”:{“agent”:“note-arduino 1.6.0”,“compiler”:“gcc 12.2.0”,“req_interface”:“i2c”,“cpu_name”:“esp32”},“crc”:“0001:E7484770”}

23:27:02.469 → [INFO] {}

23:27:07.442 → Hub sync status…

23:27:07.442 → [INFO] {“req”:“hub.sync”,“crc”:“0002:10BAC79A”}

23:27:07.564 → [INFO] {}

23:27:12.560 → Hub status…

23:27:12.560 → [INFO] {“req”:“hub.status”,“crc”:“0003:5874FEF1”}

23:27:12.715 → [INFO] {“status”:"593s waiting for wireless service {wait-service} {connecting}"
23:27:42.692 → Hub status…

23:27:42.692 → [INFO] {“req”:“hub.status”,“crc”:“0004:5874FEF1”}

23:27:42.863 → [INFO] {“status”:“623s waiting for wireless service {wait-service} {connecting}”}

23:27:42.863 → [INFO] {“req”:“card.temp”,“crc”:“0005:CE0D7EDD”}

23:27:42.966 → [INFO] {“value”:37.125,“calibration”:-1}

23:27:42.966 → Temperature = 37.13 *C

23:27:42.966 → Humidity = 46.59 %

23:27:42.966 → Sending sensor data…

23:27:42.966 → [INFO] {“req”:“note.add”,“file”:“sensors.qo”,“sync”:true,“body”:{“temp”:37.125,“humidity”:46.59329986572266},“crc”:“0006:05EAB413”}

23:27:43.180 → [INFO] {“total”:12}

Hi @Srihari,

  1. Can you please connect your Notecard/Notecarrier to the in-browser terminal and create a debug trace log using:
trace +mdmmax
  1. Then force a sync with Notehub:
{"req":"hub.sync", "allow":true}
  1. After it’s done trying to sync for a while, post the log here please so we can take a look.

Thanks,
Rob

Hi Rob,

Attached sync-trace log file.

(attachments)

notecard_2024-07-30T09_48_00.log (11.3 KB)

> {"req":"card.wireless"}
{
 "status": "{cell-registration-wait}",
 "mode": "m1",
 "net": {
  "iccid": "89011704278852030370",
  "iccid_external": "89917330420169976156",
  "imsi": "310170885203037",
  "imsi_external": "404730116997615",
  "imei": "867730051747446",
  "modem": "BG95M3LAR02A03_01.017.01.017"
 }
}

Hi @Srihari,

You are based in India, correct? The tower location you posted from the trace indicates a location in the US.

Also, it doesn’t look like the commands were executed exactly right. Can you please issue these requests in order (and only these requests…don’t do anything with card.wireless for now):

  1. Reset the Notecard:
    {"req":"card.restore","delete":true}
  2. Notecard will reset and reboot
  3. Set the Notehub project:
    {"req":"hub.set","product":"your-product-uid","mode":"periodic"}
  4. Enable trace:
    trace +mdmmax
  5. Attempt a sync:
    {"req":"hub.sync", "allow":true}
  6. Wait a couple of minutes, then copy/save the entire log
  7. Disable trace with:
    {"req":"card.trace","mode":"off"}

Its worked after switching to AirTel cellular network. Thanks for your support.

2 Likes

Hi Rob,

Couple of questions to increase the Notecard limit.

How can I increase the Note limit from 100 to 500 ?
Is this calculated based on memory?
Any limitation based on subscription plan?
Will this limitation applicable if I use external SIM card?
May I the Notecard memory, how much data we can store when lose the signal?

Appreciated if you get a chance respond to this message.

Hi @Srihari,

The 100 Note “limitation” only applies to Notefiles stored in flash on the Notecard device (due to memory constraints). The use of Notefile Templates allows you to store well beyond 100 Notes per Notefile.

You can always trust that the Notecard will sync your data even if there is signal loss. It will retry any failed attempts even if you are using an external SIM.

Rob

1 Like