Enable the hibernation mode in wp7608

Hi all,
I am new to wp7608, i need to enable hibernation mode in wp7608 module ,could you please anyone help me to do this?
Thanks,
GK.

Try removing the usb cable from host, after that module will go to sleep mode and no response on uart console.

i tried with the above thing what you have guided.module is not going to sleep mode even my console is throwing the error messages.

and i am receiving below errors.

[ 574.131883] PM: Some devices failed to suspend, or early wake event detected
[ 574.379755] PM: Some devices failed to suspend, or early wake event detected
[ 575.263028] msm_hsic_host 7c00000.hsic_host: Unable to resume USB. Reset the hsic
[ 575.346374] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 603300ff
[ 575.346402] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 575.346558] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 575.418206] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 603000a8
[ 575.418231] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 575.418387] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 575.488833] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 60310001
[ 575.488858] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 575.489013] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 575.559435] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 60090010
[ 575.559460] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 575.559615] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 575.591871] PM: Some devices failed to suspend, or early wake event detected
[ 575.825818] Freezing of tasks aborted after 0.006 seconds
[ 576.681611] msm_hsic_host 7c00000.hsic_host: Unable to resume USB. Reset the hsic
[ 576.764999] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 603300ff
[ 576.765027] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 576.765182] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 576.835853] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 603000a8
[ 576.835878] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 576.836034] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 576.906541] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 60310001
[ 576.906566] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 576.906721] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 576.977146] msm_hsic_host 7c00000.hsic_host: ulpi_write: timeout ULPI_VIEWPORT: 60090010
[ 576.977171] msm_hsic_host 7c00000.hsic_host: PORTSC: 8c000004 USBCMD: 00010000 FRINDEX: 00000000
[ 576.977326] msm_hsic_host 7c00000.hsic_host: ulpi_write: FRINDEX: 00000000
[ 577.011445] PM: Some devices failed to suspend, or early wake event detected

According to the user guide here, you can check the wakeup source by “cat /sys/power/wake_lock”

https://docs.legato.io/latest/conceptsPwrMgmt.html#conceptsPwrMgmt_troubleshooting

BTW, are you using mangoh red board?
It seems there is some bus activity on HSIC bus.

Yes, I am using mangOH red board. I given the below commands,

root@swi-mdm9x28-wp:~# cat /sys/kernel/debug/wakeup_sources |sed -e s/"^ "/“unnamed”/ | awk ‘{print $6 “\t” $1}’ | grep -v “^0” |sort -n

and
root@swi-mdm9x28-wp:~# cat /sys/power/wake_lock

Pleas find the Screen short

Thanks and Regards,
Gk

Do you connect anything on the OTG?
Btw, which fw are you using? I can give a try on my wp7608 on mangoh red board.

Thanks for replay jyijyi,
please see the below image regarding board connections.

i am using genric firmware is in below link,
https://source.sierrawireless.com/~/media/support_downloads/airprime/software/wp76xx/release12/spk/wp76xx_release12_generic_gcf.ashx?la=en

HI jyijyi,
Could you able to do that hibernation mode with generic firmware.please let me know the procedure.

Thanks and Regards,
GK

i don’t see problem with my mangoh board with WP7607.
After it goes to sleep mode, there is no repsonse on UART console.

root@swi-mdm9x28-wp:~# cm info
Device: WP7607
IMEI: 359779081234565
IMEISV: 6
FSN: VN730485080103
[ 29.635283] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
Firmware Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
Bootloader Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
MCU Version: 002.011
PRI Part Number (PN): 9908958
PRI Revision: 001.000
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.056_000
SKU: 1104301
Last Reset Cause: Power Down
Resets Count: Expected: 59 Unexpected: 0
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator:
Current RAT: Module not registered on network, RAT not available
Status: Not registered but currently searching for a new operator (LE_MRC_REG_SEARCHING)
Signal: No signal strength (0)
PS: Packet Switched Not registered (LE_MRC_REG_NONE)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# tzoneset: Changing timezone to [Etc/GMT-8]…

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# [ 126.156612] Freezing of tasks aborted after 0.008 seconds

Thanks for reply,
the below logs am getting ,

root@swi-mdm9x28-wp:~# cm info
Device: WP7608
IMEI: 352913090000330
IMEISV: 6
FSN: XG742285120902
Firmware Version: SWI9X07Y_02.25.02.01 000000 jenki[ 89.281550] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its p0
ns 2019/01/30 08:13:05
Bootloader Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
MCU Version: 002.011
PRI Part Number (PN): 9907762
**PRI Revision: 001.000 **
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.056_000
SKU: 1103788
Last Reset Cause: Reset, User Requested
Resets Count: Expected: 335 Unexpected: 108
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator: IND airtel
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Very strong signal strength (5)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)

root@swi-mdm9x28-wp:~# cm sim
SIM card is inserted and unlocked (LE_SIM_READY).

Could you please tell me which firmware you are using?

I am using r12…

I am also using same Release version 12 only.

could you please send your firmware then i can test through that firmware.

I used the WP76xx_Release12_GENERIC_GCF.exe (downloaded on following link) on WP7607, no problem is found.
https://source.sierrawireless.com/resources/airprime/software/wp76xx/wp76xx-firmware-release-12/

Does it works for WP7608 also?

yes, it works.

root@swi-mdm9x28-wp:~# cm info
Device: WP7608
IMEI: 352913090100734
IMEISV: 6
FSN: XG805285330204
[ 31.661983] i2c-msm-v2 78b8000.i2c: NACK: slave not responding, ensure its powered: msgs(n:1 cur:0 tx) bc(rx:0 tx:2) mode:FIFO slv_addr:0x3a MSTR_STS:0x0c1300c8 OPER:0x00000090
Firmware Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
Bootloader Version: SWI9X07Y_02.25.02.01 000000 jenkins 2019/01/30 08:13:05
MCU Version: 002.011
PRI Part Number (PN): 9907762
PRI Revision: 001.001
Carrier PRI Name: GENERIC
Carrier PRI Revision: 002.056_000
SKU: 1103788
Last Reset Cause: Power Down
Resets Count: Expected: 391 Unexpected: 9
root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# cm radio
Power: ON
Current Network Operator: CSL
Current RAT: LTE network (LE_MRC_RAT_LTE)
Status: Registered, home network (LE_MRC_REG_HOME)
Signal: Strong signal strength (4)
PS: Packet Switched Registered, home network (LE_MRC_REG_HOME)

root@swi-mdm9x28-wp:~#
root@swi-mdm9x28-wp:~# [ 63.213594] PM: Some devices failed to suspend, or early wake event detected

The given below command i given it not flash , Is there any other command to flash the firmware?
swiflash -m “WP76XX” -i WP76xx_Release12_GENERIC_GCF.exe

I am using ubuntu14.04 .

i think you should use Windows platform to flash it.

At the time of flashing am getting the bellow error log.

**swiflash -m “WP76XX” -i WP76xx_Release12_GENERIC_GCF.spk **
Detecting USB of the target
DONE
Communicating with the target
DONE
Switching to firmware download mode
…ERROR: Failed to enter download mode
slqssdk(7506): Operation not permitted
slqssdk: no process found