Third SIM disconnecting sessions when using digital HIGH to read sensor

Hi
Let me introduce the problem. I use Boron LTE OS 2.01 with third SIM Soracom and I have a fully access to the Soracom console to be able to monitoring every activity like session created, modified and deleted.

Using a custom PCB we run a firmware where we have to turn HIGH a digital pin to read a sensor. When using the internal Particle SIM, we don’t notice disconnecting from Cloud and when append, the Boron reconnect by himself. But when using a third SIM, we are able to see sessions are not stable and something the boron stop to be connected to the Particle Cloud and we need to manually press RESET button.

The second test was made using the same custom PCB, a third SIM and the same firmware. We have disabled the digital HIGH pin. (We just comment the line). Since the firmware is running now since long hours we never see a disconnecting to the Particle Cloud and also our third SIM never ended a session.

Who see the same problem ?

Take a note we use third SIM for some subscription reason and can’t use internet SIM

Can you be sure it is the digitalWrite(pin, HIGH) statement itself that causes the issue or may it be the external circuitry reacting to that command that’s causing the issue.

  • What sensor are you controlling via that pin?
  • How is that sensor wired in?
  • What actions follow the activation of the sensor?
  • Is the effect immediate or only somewhat related to the pin being set HIGH?
  • Is the connection absolutely stable while the pin is set LOW?
  • What Particle.keepAlive() are you using with that SIM?

BTW, the correct terms would be “third party SIM” and “internal SIM”.

Hi, here is some additionals informations to help to understand.

  • What sensor are you controlling via that pin? SHT-20 + 1x analog sensor output 0-5v
  • How is that sensor wired in? On a terminal socket and our custom pcb
  • What actions follow the activation of the sensor? We turn HIGH a digital pin and let HIGH and provide 3.3v to the sensor. In this pcb version we don’t have our 5v booster.
  • Is the effect immediate or only somewhat related to the pin being set HIGH? Not immediatly, I can’t identify a pattern about the time from when we power the Particle and the time when disconnecting event start
  • Is the connection absolutely stable while the pin is set LOW? I see one time a problem when I have commented the line for digital HIGH.
  • What Particle.keepAlive() are you using with that SIM? 30 and we use this for all others third party SIM with our others pcb

Here is and example when the third party SIM is disconnected. I needed to press 2 times the RESET button to put back the Particle connected to cloud

0054067943 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
Particle Publish : "f1":0.0,"f2":0.0,"f3":21.7,"f4":23.4,"f5":31.8,"f6":36.6,"f7":0.0,"f8":0.0,"f9":20.6,"version":1.23,"ba":73.6,"rssi":-1,
0054072465 [ncp.client] INFO: Using external Nano SIM card
0054072474 [ncp.client] ERROR: Failed to perform early initialization
0054083474 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054087993 [ncp.client] INFO: Using external Nano SIM card
0054088002 [ncp.client] ERROR: Failed to perform early initialization
0054099003 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054103534 [ncp.client] INFO: Using external Nano SIM card
0054103545 [ncp.client] ERROR: Failed to perform early initialization
0054114546 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054119057 [ncp.client] INFO: Using external Nano SIM card
0054119067 [ncp.client] ERROR: Failed to perform early initialization
0054130068 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054134620 [ncp.client] INFO: Using external Nano SIM card
0054134630 [ncp.client] ERROR: Failed to perform early initialization
0054145631 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054150151 [ncp.client] INFO: Using external Nano SIM card
0054150161 [ncp.client] ERROR: Failed to perform early initialization
0054161162 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054165705 [ncp.client] INFO: Using external Nano SIM card
0054165715 [ncp.client] ERROR: Failed to perform early initialization
0054176716 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054181252 [ncp.client] INFO: Using external Nano SIM card
0054181262 [ncp.client] ERROR: Failed to perform early initialization
0054192262 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054196788 [ncp.client] INFO: Using external Nano SIM card
0054196797 [ncp.client] ERROR: Failed to perform early initialization
0054207798 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054212336 [ncp.client] INFO: Using external Nano SIM card
0054212346 [ncp.client] ERROR: Failed to perform early initialization
0054223347 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054227860 [ncp.client] INFO: Using external Nano SIM card
0054227869 [ncp.client] ERROR: Failed to perform early initialization
0054238870 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054243401 [ncp.client] INFO: Using external Nano SIM card
0054243411 [ncp.client] ERROR: Failed to perform early initialization
0054254412 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054258940 [ncp.client] INFO: Using external Nano SIM card
0054258949 [ncp.client] ERROR: Failed to perform early initialization
0054269950 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054274489 [ncp.client] INFO: Using external Nano SIM card
0054274500 [ncp.client] ERROR: Failed to perform early initialization
0054285500 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054290021 [ncp.client] INFO: Using external Nano SIM card
0054290031 [ncp.client] ERROR: Failed to perform early initialization
0054301032 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054305539 [ncp.client] INFO: Using external Nano SIM card
0054305549 [ncp.client] ERROR: Failed to perform early initialization
0054316549 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054321074 [ncp.client] INFO: Using external Nano SIM card
0054321083 [ncp.client] ERROR: Failed to perform early initialization
0054332084 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054336591 [ncp.client] INFO: Using external Nano SIM card
0054336600 [ncp.client] ERROR: Failed to perform early initialization
0054347601 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054352151 [ncp.client] INFO: Using external Nano SIM card
0054352160 [ncp.client] ERROR: Failed to perform early initialization
0054363161 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054367671 [ncp.client] INFO: Using external Nano SIM card
0054367680 [ncp.client] ERROR: Failed to perform early initialization
Particle Publish : "f1":0.0,"f2":0.0,"f3":21.7,"f4":23.4,"f5":31.8,"f6":36.6,"f7":0.0,"f8":0.0,"f9":20.6,"version":1.23,"ba":73.4,"rssi":-1,
0054378681 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054383218 [ncp.client] INFO: Using external Nano SIM card
0054383228 [ncp.client] ERROR: Failed to perform early initialization
0054394228 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054398748 [ncp.client] INFO: Using external Nano SIM card
0054398757 [ncp.client] ERROR: Failed to perform early initialization
0054409758 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054414315 [ncp.client] INFO: Using external Nano SIM card
0054414324 [ncp.client] ERROR: Failed to perform early initialization
0054425325 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054429855 [ncp.client] INFO: Using external Nano SIM card
0054429865 [ncp.client] ERROR: Failed to perform early initialization
0054440865 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054445373 [ncp.client] INFO: Using external Nano SIM card
0054445383 [ncp.client] ERROR: Failed to perform early initialization
0054456384 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054460918 [ncp.client] INFO: Using external Nano SIM card
0054460927 [ncp.client] ERROR: Failed to perform early initialization
0054471928 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054476441 [ncp.client] INFO: Using external Nano SIM card
0054476451 [ncp.client] ERROR: Failed to perform early initialization
0054487451 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054491999 [ncp.client] INFO: Using external Nano SIM card
0054492009 [ncp.client] ERROR: Failed to perform early initialization
0054503010 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054507522 [ncp.client] INFO: Using external Nano SIM card
0054507531 [ncp.client] ERROR: Failed to perform early initialization
0054518532 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054523088 [ncp.client] INFO: Using external Nano SIM card
0054523098 [ncp.client] ERROR: Failed to perform early initialization
0054534098 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054538627 [ncp.client] INFO: Using external Nano SIM card
0054538636 [ncp.client] ERROR: Failed to perform early initialization
0054549637 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054554191 [ncp.client] INFO: Using external Nano SIM card
0054554201 [ncp.client] ERROR: Failed to perform early initialization
0054565201 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054569727 [ncp.client] INFO: Using external Nano SIM card
0054569736 [ncp.client] ERROR: Failed to perform early initialization
0054580736 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054585241 [ncp.client] INFO: Using external Nano SIM card
0054585252 [ncp.client] ERROR: Failed to perform early initialization
0054596253 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054600800 [ncp.client] INFO: Using external Nano SIM card
0054600809 [ncp.client] ERROR: Failed to perform early initialization
0054611810 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054616322 [ncp.client] INFO: Using external Nano SIM card
0054616332 [ncp.client] ERROR: Failed to perform early initialization
0054627332 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054631871 [ncp.client] INFO: Using external Nano SIM card
0054631881 [ncp.client] ERROR: Failed to perform early initialization
0054642882 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054647416 [ncp.client] INFO: Using external Nano SIM card
0054647427 [ncp.client] ERROR: Failed to perform early initialization
0054658428 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054662966 [ncp.client] INFO: Using external Nano SIM card
0054662975 [ncp.client] ERROR: Failed to perform early initialization
Particle Publish : "f1":0.0,"f2":0.0,"f3":21.7,"f4":23.4,"f5":31.8,"f6":36.6,"f7":0.0,"f8":0.0,"f9":20.6,"version":1.23,"ba":73.2,"rssi":-1,
0054673976 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054678515 [ncp.client] INFO: Using external Nano SIM card
0054678524 [ncp.client] ERROR: Failed to perform early initialization
0054689525 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054694047 [ncp.client] INFO: Using external Nano SIM card
0054694057 [ncp.client] ERROR: Failed to perform early initialization
0054705057 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054709583 [ncp.client] INFO: Using external Nano SIM card
0054709593 [ncp.client] ERROR: Failed to perform early initialization
0054720593 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054725100 [ncp.client] INFO: Using external Nano SIM card
0054725109 [ncp.client] ERROR: Failed to perform early initialization
0054736110 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054740648 [ncp.client] INFO: Using external Nano SIM card
0054740658 [ncp.client] ERROR: Failed to perform early initialization
0054751659 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0054756172 [ncp.client] INFO: Using external Nano SIM card
0054756182 [ncp.client] ERROR: Failed to perform early initialization
[Disconnected]
[Connected]
0000004876 [ncp.client] INFO: Using external Nano SIM card
0000004886 [ncp.client] ERROR: Failed to perform early initialization
0000020317 [ncp.client] INFO: Using external Nano SIM card
0000020326 [ncp.client] ERROR: Failed to perform early initialization
0000031327 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0000035834 [ncp.client] INFO: Using external Nano SIM card
0000035844 [ncp.client] ERROR: Failed to perform early initialization
0000046845 [net.pppncp] ERROR: Failed to initialize cellular NCP client: -210
0000051369 [ncp.client] INFO: Using external Nano SIM card
0000051379 [ncp.client] ERROR: Failed to perform early initialization
[Disconnected]
[Connected]
0000002485 [gsm0710muxer] INFO: Received response to CLD or timed out, exiting multiplexed mode
0000002535 [gsm0710muxer] INFO: GSM07.10 muxer thread exiting
0000002536 [gsm0710muxer] INFO: GSM07.10 muxer stopped
0000002536 [gsm0710muxer] INFO: Starting GSM07.10 muxer
0000002537 [gsm0710muxer] INFO: GSM07.10 muxer thread started
0000002836 [gsm0710muxer] INFO: Stopping GSM07.10 muxer
0000002837 [gsm0710muxer] INFO: Gracefully stopping GSM07.10 muxer
0000002837 [gsm0710muxer] INFO: Closing all muxed channels
0000002838 [gsm0710muxer] INFO: Muxed channel 1 already closed
0000002838 [gsm0710muxer] INFO: Muxed channel 2 already closed
0000002839 [gsm0710muxer] INFO: Muxed channel 3 already closed
0000002839 [gsm0710muxer] INFO: Muxed channel 4 already closed
0000003490 [gsm0710muxer] INFO: Sending CLD (multiplexer close down)
0000004391 [gsm0710muxer] INFO: Received response to CLD or timed out, exiting multiplexed mode
0000004441 [gsm0710muxer] INFO: GSM07.10 muxer thread exiting
0000004442 [gsm0710muxer] INFO: GSM07.10 muxer stopped
0000004455 [ncp.client] INFO: Using external Nano SIM card
0000005511 [gsm0710muxer] INFO: Starting GSM07.10 muxer
0000005511 [gsm0710muxer] INFO: Openning mux channel 0
0000005512 [gsm0710muxer] INFO: GSM07.10 muxer thread started
0000005516 [gsm0710muxer] INFO: Openning mux channel 1
0000005589 [gsm0710muxer] INFO: Openning mux channel 2
0000007780 [system.nm] INFO: State changed: IFACE_UP -> IFACE_LINK_UP
0000007782 [system.nm] INFO: State changed: IFACE_LINK_UP -> IP_CONFIGURED
0000007783 [system] INFO: Cloud: connecting
0000007786 [system] ERROR: Failed to load session data from persistent storage
0000008673 [system] INFO: Cloud socket connected
0000008673 [comm.protocol.handshake] INFO: Establish secure connection
0000014360 [comm.protocol.handshake] INFO: Sending HELLO message
0000015146 [comm.protocol.handshake] INFO: Handshake completed
0000015513 [comm.protocol] INFO: Posting 'S' describe message
0000015533 [comm.protocol] INFO: Posting 'A' describe message
0000015535 [comm.protocol] INFO: Sending subscriptions
0000017053 [comm.protocol] INFO: Received TIME response: 1617883187
0000017344 [comm.protocol] INFO: Received DESCRIBE request; flags: 0x04
0000017405 [comm.protocol] INFO: Posting 'M' describe message
0000017409 [system] INFO: Cloud connected

What is the combined maximum current draw of both sensors?
Are you running the Boron with a LiPo?
What is the cellular signal quality with the 3rd party SIM vs. the Particle SIM?

The Boron only accepts 3.3V max. on any GPIO.

How would the sonsor output 5V when it’s not supplied with 5V?

1 Like