# mangOH Red + wp7603 – System shutdowns after installing textLoc (Low Power) sample app

**URL:** <https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783>\
**Category:** mangOH Red\
**Created:** [July 18, 2019, 2:54am UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783 "2019-07-18T02:54:02Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![luisvi70](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@luisvi70](https://mangoh.discourse.group/u/luisvi70)\
**Post date:** [July 18, 2019, 2:54am UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/1 "2019-07-18T02:54:02Z")

</div>

I am running my mangOH red (wp7603) dev board using Leaf with the latest firmware _[WP76xx Firmware Release 13.1 and Legato 19.02.0](https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-latest-release/)_. My system was working fine until I build and updated my board with the _textLoc_ (_Low Power_) sample app. After installing this app, my system now shutdowns (all LEDs off) and I cannot restart unless I disconnect the power and console USB cables and reconnect them back again. The system then comes back up, but it shutdowns again about 30 seconds after I get the login prompt in the USB console output. I assume it is related to the low power mode trigger from the _textLoc_ app that I installed. So, I restarted the system again and I was able to login and run “_app remove textLoc_” before the system shutdown again. The problem is that I no longer see the app installed, but the system keeps shutting down.

Eventually I had to recover my system using the _[WPxxxx Windows recovery procedure](https://source.sierrawireless.com/resources/legato/wpxxxxrecoveryprocedure/)_. Initially the system was stable, until I updated back my mangOH board to the latest firmware. After the firmware update, I begun to experience again the same system shutdown with all LEDs off.

As I troubleshot my system, I was eventually able to notice that if I used the “_cm radio off_” command before the system shutdowns, then the system will not shutdown and will remain up without any issues. If I “_cm radio on_” again then the system begins to experience the shutdown issue. So, at this point I am wondering if the _textLoc app_ that I installed, somehow enabled a cloud service to trigger my system low power shutdown. Can somebody clarify if this is what is happening and if so, how can I disable this low power trigger? Or alternatively, is this low power trigger hardwired in some internal register?

For your reference I am showing the console output messages that I get when the shutdown process is triggered:

```
Poky (Yocto Project Reference Distro) 2.5.2 swi-mdm9x28-wp /dev/ttyHSL1

swi-mdm9x28-wp login: [60.893091] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x0
[60.899124] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:22) mode:FIFO slv_addr:0x3a MSTR_STS:0x081343c8 OPER:0x00000090
[60.915774] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:22) mode:FIFO slv_addr:0x3a MSTR_STS:0x081343c8 OPER:0x00000090
[60.942097] pm_set_mcu_ulpm_enable: wakeup source setup mask=0x2
rcK: Executing run_K_scripts...
Stopping linkmon: no linkmon found; none killed
done
[61.161560] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister ecm0
[61.190407] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister ecm0
[63.141144] ssrestart_check: do not restart modem during PSM power off
[63.146725] sps:sps_bam_lock:Connection is not in connected state.
[63.152666] bam_mux_write_cmd sps_transfer_one failed rc=-1
Stopping port_bridge: no port_bridge found; none killed
Stopping qmi_ip: no qmi_ip_multiclient found; none killed
Stopping eMBMs_TunnelingModule: no eMBMs_TunnelingModule found; none killed
Stopping netmgrd: stopped netmgrd (pid 1044)
done
Stopping qmuxd: stopped qmuxd (pid 974)
done
no QCMAP_ConnectionManager found; none killed
Stopping fs-scrub-daemon: no fs-scrub-daemon found; none killed
Stopping thermal-engine: stopped thermal-engine (pid 987)
done
stopped qti (pid 1399)
Stopping reboot daemon: stopped reboot-daemon (pid 871)
done
Legato shutdown sequence
Stopping Legato..
DONE.
Finished Legato stop Sequence
stopping time daemon
Stopping time_services: stopped time_daemon (pid 650)
done
stopping ntpd
no ntpd found; none killed
Stopping diagrebootapp: stopped diagrebootapp (pid 643)
done
stopping DNS forwarder and DHCP server: dnsmasq... stopped /usr/bin/dnsmasq (pid 1398)
done.
Deconfiguring network interfaces... ifdown: interface eth0 not configured
done.
Stopping syslogd/klogd: stopped syslogd (pid 626)
stopped klogd (pid 631)
done
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1375)
dropbear.
K96mount_unionfs: RO rootfs fudge allowed.
Stopping system message bus: dbus.
K98mount_early: Executing mount_early_user_stop...
K98mount_early: RO rootfs fudge allowed.
sh: /mnt/flash: unknown operand
K98mount_early: Executing mount_early_legato_stop...
Can't get valid SMEM, init DSSD SMEM
Linux sub system 1
K98mount_early: Executing mount_early_userrw_stop...
K98mount_early: Executing mount_early_unset_timezone...
rcK: Executing kill_all_proc...
rcK: Executing umount_fs_generic...
rcK: Executing print_shutdown_msg...
**SYSTEM SHUTDOWN COMPLETE**
The system is going down NOW!
Sent SIGTERM to all processes
[71.991066] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[72.021016] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
Sent SIGKILL to all processes
Requesting system poweroff
[73.935579] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:14) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[73.950996] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:14) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[73.979432] reboot: Power down
[73.981851] Failed to disable secure wdog debug: -4
[73.986927] Calling SCM to disable SPMI PMI@▒D▒▒▒0?▒▒▒x<▒▒f▒▒▒k▒▒ս▒
```

---

<div class="post-metadata">

**Author:** ![luisvi70](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@luisvi70](https://mangoh.discourse.group/u/luisvi70)\
**Post date:** [July 18, 2019, 8:15pm UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/2 "2019-07-18T20:15:17Z")

</div>

I was able to disable entering the ultra low power mode by modifying the “_enable_” file content located in _/sys/module/swimcu\_pm/boot\_source_

Note that I had to do this using the USB console port. Also, as I indicated before, when the system booted I had to immediately login and execute the “_cm radio off_” command. I am still not sure how is this related, but it avoided triggering the ulpm shutdown process.

Then I executed the following commands:

> cd /sys/module/swimcu\_pm/boot\_source  
> echo 0 \> enable  
> reboot

After the reboot, the system started and did not trigger the ulpm shutdown. So the system is now stable.

---

<div class="post-metadata">

**Author:** ![luisvi70](https://avatars.discourse-cdn.com/v4/letter/l/eb9ed0/32.png) [@luisvi70](https://mangoh.discourse.group/u/luisvi70)\
**Post date:** [July 24, 2019, 11:59pm UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/3 "2019-07-24T23:59:18Z")

</div>

In my previous post I indicated to find a solution to the shutdown problem in my mangOH Red board. It was probably circumstantial but the posted solution does not hold to be true, as I am again experiencing the shutdown issue.

As explained before, if immediately after start-up I execute a “_cm radio off_”, the system will not shutdown. On the other hand, if upon system start-up I do not execute the “_cm radio off_” command, then the system shutdowns.

I have managed to trace some events, and I have observed that the system will shutdown at the time when the device establishes a connection with my AirVantage service, as I can see the label “_Data session started_” in the system timeline information of my AirVantage account which happens at the same time when my system shutdowns.

To help troubleshoot the shutdown issue that I am facing I have collected the console messages following these sequence of events:

1. Using the console, I login and execute a “_cm radio off_” command to avoid the shutdown process.
2. Using a Windows cmd shell, I “_ssh [root@192.168.2.2](mailto:root@192.168.2.2)_” and then execute the “_logread -f_” command.
3. Back in the console, I then execute “_cm radio on_” and wait until the system shutdowns.

In the logread output it is possible to observe a series of **PSM** messages, including a “ **PSMS vendor\_shutdown poweroff** ”. If anybody has an idea on what is triggering these events, I will appreciate any feedback to help solve this issue. Thank you in advanced.

Below you can see both the _console_ and the _Windows cmd shell_ outputs for the previously described events.

**Console output messages:**

```
Poky (Yocto Project Reference Distro) 2.5.2 swi-mdm9x28-wp /dev/ttyHSL1

swi-mdm9x28-wp login: root

It is strongly recommended to setup credentials for remote login.
Please select one of the following options:
  1) Setup ssh keys and disable passwords-based authentication via ssh
     (the most secure)
  2) Setup password (better than nothing)
  3) Do nothing
3

Would you like a reminder next time you log in [Y/n]?
Y
OK, I will remind you next time.
root@swi-mdm9x28-wp:~# cm radio off
root@swi-mdm9x28-wp:~# cm radio on
root@swi-mdm9x28-wp:~# [139.535790] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x0
[139.543021] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:22) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[139.560027] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:22) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[139.587394] pm_set_mcu_ulpm_enable: wakeup source setup mask=0x2
rcK: Executing run_K_scripts...
Stopping linkmon: no linkmon found; none killed
done
[139.801521] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister ecm0
[139.830487] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister ecm0
[141.781427] ssrestart_check: do not restart modem during PSM power off
[141.787366] sps:sps_bam_lock:Connection is not in connected state.
[141.792955] bam_mux_write_cmd sps_transfer_one failed rc=-1
Stopping port_bridge: no port_bridge found; none killed
Stopping qmi_ip: no qmi_ip_multiclient found; none killed
Stopping eMBMs_TunnelingModule: no eMBMs_TunnelingModule found; none killed
Stopping netmgrd: stopped netmgrd (pid 1045)
done
Stopping qmuxd: stopped qmuxd (pid 980)
done
no QCMAP_ConnectionManager found; none killed
Stopping fs-scrub-daemon: no fs-scrub-daemon found; none killed
Stopping thermal-engine: stopped thermal-engine (pid 993)
done
stopped qti (pid 1354)
Stopping reboot daemon: stopped reboot-daemon (pid 948)
done
Legato shutdown sequence
Stopping Legato..
DONE.
Finished Legato stop Sequence
stopping time daemon
Stopping time_services: stopped time_daemon (pid 651)
done
stopping ntpd
no ntpd found; none killed
Stopping diagrebootapp: stopped diagrebootapp (pid 643)
done
stopping DNS forwarder and DHCP server: dnsmasq... stopped /usr/bin/dnsmasq (pid 1334)
done.
Deconfiguring network interfaces... ifdown: interface eth0 not configured
done.
Stopping syslogd/klogd: stopped syslogd (pid 626)
stopped klogd (pid 629)
done
Stopping Dropbear SSH server: stopped /usr/sbin/dropbear (pid 1234)
dropbear.
K96mount_unionfs: RO rootfs fudge allowed.
Stopping system message bus: dbus.
K98mount_early: Executing mount_early_user_stop...
K98mount_early: RO rootfs fudge allowed.
sh: /mnt/flash: unknown operand
K98mount_early: Executing mount_early_legato_stop...
Can't get valid SMEM, init DSSD SMEM
Linux sub system 1
K98mount_early: Executing mount_early_userrw_stop...
K98mount_early: Executing mount_early_unset_timezone...
rcK: Executing kill_all_proc...
rcK: Executing umount_fs_generic...
rcK: Executing print_shutdown_msg...
**SYSTEM SHUTDOWN COMPLETE**
The system is going down NOW!
Sent SIGTERM to all processes
[150.253430] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[150.280527] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
Sent SIGKILL to all processes
Requesting system poweroff
[152.202704] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:14) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[152.217614] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:14) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
[152.251805] reboot: Power down
[152.253923] Failed to disable secure wdog debug: -4
[152.259301] Calling SCM to disable SPMI PMD$Ic▒▒▒▒▒▒

```

**Windows cmd shell output messages:**

```
Microsoft Windows [Version 10.0.18362.239]
(c) 2019 Microsoft Corporation. All rights reserved.

C:\Users\Home>ssh root@192.168.2.2

It is strongly recommended to setup credentials for remote login.
Please select one of the following options:
  1) Setup ssh keys and disable passwords-based authentication via ssh
     (the most secure)
  2) Setup password (better than nothing)
  3) Do nothing
3

Would you like a reminder next time you log in [Y/n]?
Y
OK, I will remind you next time.
root@swi-mdm9x28-wp:~# logread -f
Jul 24 16:30:58 swi-mdm9x28-wp user.warn Legato: -WRN- | supervisor[901]/supervisor T=main | proc.c GetWatchdogAction() 359 | cm@0 watchdogAction '' in proc section
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c app_Start() 3420 | Starting app 'tools'
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_cm.so' to '/legato/systems/current/appsWriteable/tools/lib/libComponent
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_fwupdate.so' to '/legato/systems/current/appsWriteable/tools/lib/libCom
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_gnss.so' to '/legato/systems/current/appsWriteable/tools/lib/libCompone
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so' to '/legato/systems/current/appsWriteable/tools/lib/
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode_default.so' to '/legato/systems/current/appsWriteable/to
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_moduleLoad.so' to '/legato/systems/current/appsWriteable/tools/lib/libC
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_pmtool.so' to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_secstore.so' to '/legato/systems/current/appsWriteable/tools/lib/libCom
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so' to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_uartMode.so' to '/legato/systems/current/appsWriteable/tools/lib/libCom
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/cm' to '/legato/systems/current/appsWriteable/tools/bin/cm': Already exists
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/fwupdate' to '/legato/systems/current/appsWriteable/tools/bin/fwupdate': Already exi
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/gnss' to '/legato/systems/current/appsWriteable/tools/bin/gnss': Already exists
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/kmod' to '/legato/systems/current/appsWriteable/tools/bin/kmod': Already exists
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/pmtool' to '/legato/systems/current/appsWriteable/tools/bin/pmtool': Already exists
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/secstore' to '/legato/systems/current/appsWriteable/tools/bin/secstore': Already exi
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/bin/uartMode' to '/legato/systems/current/appsWriteable/tools/bin/uartMode': Already exi
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_swiQmi.so' to '/legato/systems/current/appsWriteable/tools/lib/libCompo
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/lib/libComponent_le_pa_uartMode.so' to '/legato/systems/current/appsWriteable/tools/lib/
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c CreateFileLink() 2034 | Skipping file link '/legato/systems/current/apps/tools/read-only/scripts/cm' to '/legato/systems/current/appsWriteable/tools/scripts/cm': Already exists
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxCoreDumpFileBytes to value 8192.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileBytes to value 90112.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxLockedMemoryBytes to value 8192.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxFileDescriptors to value 256.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxMQueueBytes to value 512.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxThreads to value 20.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | resourceLimits.c SetRLimitValue() 282 | Setting resource limit maxQueuedSignals to value 100.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | proc.c proc_Start() 1390 | Starting process 'cm@0' with pid 1869
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[1869]/supervisor T=main | proc.c proc_Start() 1355 | Execing 'scripts/cm'
Jul 24 16:30:58 swi-mdm9x28-wp user.err Legato: =ERR= | modemDaemon[937]/modemDaemon T=main | le_sms.c CloseSessionEventHandler() 2181 | SessionRef (0x7f61e1cc) has been closed
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | proc.c proc_SigChildHandler() 2051 | Process 'cm@0' (PID: 1869) has exited with exit code 0.
Jul 24 16:30:58 swi-mdm9x28-wp user.warn kernel: [103.949012] PSM: Modem oprt mode - 0
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | app.c app_StopComplete() 4686 | app 'tools' has stopped.
Jul 24 16:30:58 swi-mdm9x28-wp user.info Legato: INFO | supervisor[901]/supervisor T=main | apps.c DeactivateAppContainer() 374 | Application 'tools' has stopped.
Jul 24 16:30:58 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[937]/le_pa T=main | pa_sim_qmi.c MapSimState() 880 | More than one application 2
Jul 24 16:31:01 swi-mdm9x28-wp user.info Legato: INFO | dcsDaemon[934]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 673 | Packet switch state: previous 0, new 1
Jul 24 16:31:01 swi-mdm9x28-wp user.info Legato: INFO | dcsDaemon[934]/dcs T=main | dcs_db.c le_dcs_EventNotifierTechStateTransition() 341 | Notify all channels of technology 2 of system state transition to up
Jul 24 16:31:01 swi-mdm9x28-wp user.info Legato: INFO | modemDaemon[937]/le_pa T=main | pa_mrc_qmi.c pa_mrc_GetNetworkRegState() 2460 | called
Jul 24 16:31:01 swi-mdm9x28-wp user.warn Legato: -WRN- | modemDaemon[937]/le_pa T=main | pa_sim_qmi.c MapSimState() 880 | More than one application 2
Jul 24 16:31:01 swi-mdm9x28-wp user.info Legato: INFO | dcsDaemon[934]/dcsCellular T=main | dcsCellular.c DcsCellularPacketSwitchHandler() 673 | Packet switch state: previous 1, new 4
Jul 24 16:31:15 swi-mdm9x28-wp user.info kernel: [121.441186] sierra_startup_monitor
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.708817] PSM: Supported: 1
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.709144] PSM: Auto ready rcvd, tau timer: 17380
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.709927] PSM: backup_nv_path /data/psm/psm_nv_backup.txt
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.726217] PSM: Sent enter req. Waiting for modem Complete indication.
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.964154] PSM: Supported: 1
Jul 24 16:31:31 swi-mdm9x28-wp user.warn kernel: [136.964305] PSM: Ready for shutdown
Jul 24 16:31:34 swi-mdm9x28-wp user.warn kernel: [139.521348] PSM: modem_flag_path /data/psm/modem_flag
Jul 24 16:31:34 swi-mdm9x28-wp user.warn kernel: [139.528494] PSM: Shutdown Device
Jul 24 16:31:34 swi-mdm9x28-wp user.warn kernel: [139.528583] PSM: Supported: 1
Jul 24 16:31:34 swi-mdm9x28-wp user.warn kernel: [139.535014] PSMS vendor_shutdown poweroff.
Jul 24 16:31:34 swi-mdm9x28-wp user.info kernel: [139.535764] pm_set_mcu_ulpm_enable: SWIMCU_PM_PSM_SYNC - continue sync with MCU
Jul 24 16:31:34 swi-mdm9x28-wp user.err kernel: [139.535790] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x0
Connection reset by 192.168.2.2 port 22

C:\Users\Home>
```

---

<div class="post-metadata">

**Author:** ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)\
**Post date:** [May 7, 2021, 12:14pm UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/4 "2021-05-07T12:14:58Z")

</div>

hi, can any one guide how to implemented Watchdog timer in application with any sample example

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 7, 2021, 2:31pm UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/5 "2021-05-07T14:31:37Z")

</div>

You can see here

> **[legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/apps/sample/watchdog)**
>
> master/apps/sample/watchdog

---

<div class="post-metadata">

**Author:** ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)\
**Post date:** [May 8, 2021, 6:22am UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/6 "2021-05-08T06:22:03Z")

</div>

Hi,  
When is use the above code, am getting the follwoing error

```
"message": "cannot open source file \"watchdogChain.h\"",
```

---

<div class="post-metadata">

**Author:** ![jyijyi](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/jyijyi/32/997_2.png) [@jyijyi](https://mangoh.discourse.group/u/jyijyi)\
**Post date:** [May 8, 2021, 10:16am UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/7 "2021-05-08T10:16:01Z")

</div>

> **[legatoproject/legato-af](https://github.com/legatoproject/legato-af/tree/master/components/watchdogChain)**
>
> master/components/watchdogChain

---

<div class="post-metadata">

**Author:** ![kalaivani](https://sea2.discourse-cdn.com/flex016/user_avatar/mangoh.discourse.group/kalaivani/32/2183_2.png) [@kalaivani](https://mangoh.discourse.group/u/kalaivani)\
**Post date:** [May 10, 2021, 10:44am UTC](https://mangoh.discourse.group/t/mangoh-red-wp7603-system-shutdowns-after-installing-textloc-low-power-sample-app/2783/8 "2021-05-10T10:44:02Z")

</div>

HI,  
Thanks a lot, it works
