Hello,
tring to put mangoH yellow in ULPM.
Steps:
sent AT!POWERWAKE=2,36,1
AT!POWERMODE=3
on console i read:
[ 794.449680] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x1
[ 799.463291] MCU Protocol Command 0xC2 failed, retry=11
[ 799.467513] swimcu_pm_wusrc_config: failed to GPIO config 0x1 (-2)
[ 799.474261] swimcu_psm_enable_attr_store: Failed to enable mode 6: -5
[ 799.484429] swimcu_gpio_irq_event_handle: Re-enabled irq 0 type A for MCU GPIO 0
Nothing to do… no ULPM.
If i set sent AT!POWERWAKE=2,36,5 the device shutsdown:
Device lgt is still in use.
ubidetach: error!: cannot detach mtd14
error 16 (Device or resource busy)
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
[ 1232.881553] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
[ 1232.900381] [RMNET:HI] rmnet_config_notify_cb(): Kernel is trying to unregister bridge0
Requesting system poweroffses
[ 1234.839052] 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
[ 1234.853956] 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
[ 1234.886962] reboot: Power down
[ 1234.889058] Failed to disable secure wdog debug: -4
but when i shake to restart… yellow light blink for a second and device wont boot… no output on console… if i continue to shake… same thing… yellow light… no boot.
Do i need additional steps?
Regards,
Gianmaria
didn’t you should trigger GPIO36 to wake up the module?
I guess the GPIO36 is connected to the INT1 of the BMI160. No?
have you checked if there is interrupt on GPIO36?
you can also see here for more information:
Hi,
I use a Mangoh Yellow with a WP7702 chip
Firmware + Legato:
root@swi-mdm9x28-wp:/sys/bus# cm info
Device: WP7702
IMEI: 352653090211897
IMEISV: 5
FSN: 4L936370610310
Firmware Version: SWI9X06Y_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12
Bootloader Version: SWI9X06Y_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12
MCU Version: 002.014
PRI Part Number (PN): 9909138
PRI Revision: 001.001
Carrier PRI Name: SIERRA
Carrier PRI Revision: 001.036_001
SKU: 1104405
Last Reset Cause: Reset, User Req…
Nope… i dont have an oscilloscope here…
But… when i shake i see yellow light blink for a second…
See attached video…
I think INT1 is connected to GPIO38 according to schematic:
Yes… got same problem… but i need both interrupts active. I use gpio21 in software to handle movement alerts… and also i need INT1 to wake up when in ULPM.
…big problem…
Will try now with GPIO38… gimme some minutes…
Exact same behaviour with GPIO38. Led blinks… no boot.
jyijyi
May 11, 2022, 8:15am
12
how about trying the timeout value in AT!POWERWAKE?
Not sure if you need to trigger POWER_ON_N when module in ULPM mode, you can make some test on this pin
“how about trying the timeout value in AT!POWERWAKE?”
can you send me an example? I will try immediatly…
jyijyi
May 11, 2022, 8:31am
15
you can try
at!powerwake=1,300
at!powermode=3
and see after 300 seconds, will it wake up?
Yes… it works. Using timer it wakeup.
Hi,
It looks like you are using WP7702 firmware version 12.
ULPM cannot be enabled with GPIO36/38. I had the same problem.
In the release note ; https://source.sierrawireless.com/resources/airprime/software/release_notes/wp77xx-release-14,-d-,1-customer-release-notes/
Jérémy
Thanks Jeremy,
this problem is solved in newer rel of firmware? Where can i download latest (14?)
thanks
Gianmaria
jyijyi
May 11, 2022, 9:24am
19
Firmware updated to 14.1:
root@swi-mdm9x28-wp:~# cm info
Device: WP7702
IMEI: 352653090386178
IMEISV: 6
FSN: 4L033685021210
Firmware Version: SWI9X06Y_02.36.06.00 63d944 jenkins 2020/12/10 19:12:28
Bootloader Version: SWI9X06Y_02.36.06.00 63d944 jenkins 2020/12/10 19:12:28
MCU Version: 002.015
PRI Part Number (PN): 9909138
PRI Revision: 001.010
Carrier PRI Name: GENERIC
Carrier PRI Revision: 001.071_001
SKU: 1104405
Last Reset Cause: Power Down
Resets Count: Expected: 143 Unexpected: 0
Still no solution…
when i send
AT!POWERWAKE=2,38,1
in log i read:
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: qmi_at_unsol_ind_cb: ind id:33
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: Received AT command forward request from modem
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: fwdcmd.opcode=11
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: fwdcmd.name=!POWERWAKE
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: fwdcmd.ntokens=3
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: ctrCond signalling complete.
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: Recieved ctrCond: p: 0, S:0, nr: 1
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: POWERWAKE has been detected
Jan 6 01:04:48 swi-mdm9x28-wp user.info kernel: [ 284.856197] gpio_check_and_wake: wake-n_gpio26 STATE=WAKEUP
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: AT response Buffer
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: AT Resp-buffer Len 0
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: sending QMI_AT_FWD_RESP_AT_CMD_REQ_V01 message
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: qmi_client_send_msg_sync returned: 0
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: Send response 1 complete.
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: New request processing complete.
Jan 6 01:04:48 swi-mdm9x28-wp user.info swiapp: Waiting for ctrCond
Jan 6 01:04:48 swi-mdm9x28-wp user.err kernel: [ 284.868631] swimcu_gpio_irq_event_handle: failed to handle IRQ event for gpio2
Jan 6 01:04:48 swi-mdm9x28-wp user.info kernel: [ 284.875233] gpio_check_and_wake: wake-n_gpio26 STATE=SLEEP
and when i try to issue command:
AT!POWERMODE=3
in log i receive:
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: qmi_at_unsol_ind_cb: ind id:33
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: Received AT command forward request from modem
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: fwdcmd.opcode=11
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: fwdcmd.name=!POWERMODE
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: fwdcmd.ntokens=1
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: ctrCond signalling complete.
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: Recieved ctrCond: p: 0, S:0, nr: 1
Jan 6 01:05:58 swi-mdm9x28-wp user.info swiapp: POWERMODE has been detected
Jan 6 01:05:58 swi-mdm9x28-wp user.info kernel: [ 354.911864] pm_set_mcu_ulpm_enable: SWIMCU_PM_ULPS_ENTER - continue sync with MCU
Jan 6 01:05:58 swi-mdm9x28-wp user.info kernel: [ 354.918414] gpio_check_and_wake: wake-n_gpio26 STATE=WAKEUP
Jan 6 01:05:58 swi-mdm9x28-wp user.info kernel: [ 354.924192] swimcu_pm_wusrc_config: configured GPIO wakeup source 0x10000
Jan 6 01:05:58 swi-mdm9x28-wp user.err kernel: [ 354.924218] swimcu_pm_wusrc_config: check statep->gpio_pin_mask 0x10000
Jan 6 01:05:58 swi-mdm9x28-wp user.err kernel: [ 354.937861] swimcu_gpio_irq_event_handle: failed to handle IRQ event for gpio2
Jan 6 01:05:58 swi-mdm9x28-wp user.info kernel: [ 354.944267] gpio_check_and_wake: wake-n_gpio26 STATE=SLEEP
Jan 6 01:05:58 swi-mdm9x28-wp user.err kernel: [ 354.953194] MCU Protocol Command 0xC2 failed, retry=1
Jan 6 01:05:58 swi-mdm9x28-wp user.err kernel: [ 354.965111] MCU Protocol Command 0xC2 failed, retry=2
Jan 6 01:05:58 swi-mdm9x28-wp user.err kernel: [ 355.483915] MCU Protocol Command 0xC2 failed, retry=3
Jan 6 01:05:59 swi-mdm9x28-wp user.err kernel: [ 356.003548] MCU Protocol Command 0xC2 failed, retry=4
Jan 6 01:05:59 swi-mdm9x28-wp user.err kernel: [ 356.525177] MCU Protocol Command 0xC2 failed, retry=5
Jan 6 01:06:00 swi-mdm9x28-wp user.err kernel: [ 357.045139] MCU Protocol Command 0xC2 failed, retry=6
Jan 6 01:06:00 swi-mdm9x28-wp user.err kernel: [ 357.564903] MCU Protocol Command 0xC2 failed, retry=7
Jan 6 01:06:01 swi-mdm9x28-wp user.err kernel: [ 358.084560] MCU Protocol Command 0xC2 failed, retry=8
Jan 6 01:06:01 swi-mdm9x28-wp user.err kernel: [ 358.604579] MCU Protocol Command 0xC2 failed, retry=9
Jan 6 01:06:02 swi-mdm9x28-wp user.err kernel: [ 359.124509] MCU Protocol Command 0xC2 failed, retry=10
Jan 6 01:06:02 swi-mdm9x28-wp user.err kernel: [ 359.642973] MCU Protocol Command 0xC2 failed, retry=11
Jan 6 01:06:02 swi-mdm9x28-wp user.err kernel: [ 359.647093] swimcu_pm_wusrc_config: failed to GPIO config 0x10000 (-2)
Jan 6 01:06:02 swi-mdm9x28-wp user.info kernel: [ 359.654345] swimcu_pm_wusrc_config_reset
Jan 6 01:06:02 swi-mdm9x28-wp user.err kernel: [ 359.654364] swimcu_psm_enable_attr_store: Failed to enable mode 4: -5
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: AT response Buffer
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: AT Resp-buffer Len 0
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: sending QMI_AT_FWD_RESP_AT_CMD_REQ_V01 message
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: qmi_client_send_msg_sync returned: 0
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: Send response 1 complete.
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: New request processing complete.
Jan 6 01:06:02 swi-mdm9x28-wp user.info swiapp: Waiting for ctrCond
and no ULPM is activated…
How did you solved (Jeremy)?
jyijyi
May 11, 2022, 10:19am
21
didn’t you should use AT!POWERWAKE=2,38,5 from what you say above?