Wp7605 Sleep mode

using wp7605 with R13
I want the microship goto sleep mode and wakeup mode by sending sms.

Does anyone have sample code for sleep mode and wakeup mode?

when you say microchip goes to sleep mode, do you mean the WP7605 goes to USB selective suspend mode?

Can the USB selective suspend mode wakeup by using only command or I should turn off-on the power ??

you can see this document on how to control the host platform to send out USB command to ask the module to enter USB selective suspend mode:

I have check as the link you have sent above and got result as picture below.

Then i want to know that “How can I turn wp7605 to sleep mode and wakeup mode without connect usb cable?”

setting “on” will make the device waking up.

You can measure the current comsumption and see if it drops to sleep mode.
Also you can see if there is any response in UART console.
If it is in sleep mode, there will not be any response.

So,it mean if board turn to sleep mode I have to restart the board to make it working again,right?

What do you mean by “board”?
Host platform?
Or wp7605?

I mean wp7605 when turn t o sleep mode I have to restart the board to make it working again,right?

is it mean sleep mode?
if yes, how can i set time to sleep mode?

nothing show in /sys/bus/usb/devices/1-1/level, is it mean the device was sleep??

How can I make the device become wake up again?

you can ask host platform to send out USB wake up command to wake up the WP module.

You can also use some GPIO to wake up the module according to PTS:

I can see the following:

owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/manufacturer 
Sierra Wireless, Incorporated
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/p
port/    power/   product  
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/p
port/    power/   product  
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/product 
Sierra Wireless WP7607
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/manufacturer 
Sierra Wireless, Incorporated
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/power/level 
on
owner@ubuntu:~$ sudo nano /sys/bus/usb/devices/3-2.1/power/level
[sudo] password for owner: 
owner@ubuntu:~$ sudo nano /sys/bus/usb/devices/3-2.1/power/level
owner@ubuntu:~$ cat /sys/bus/usb/devices/3-2.1/power/level 
auto

why your power/level changed from “on” to “auto” ??

i changed it inside the nano program

After the electric current is decreased but when I tried to bring the electric current back to the way it was. The current isn’t came back.

How can I bring the current back and check that which mode is it??

When you say “when I tried to bring the electric current back to the way it was”, how did you do that?

Did you work with a Ubuntu PC to try this USB selective suspend?

to make current increase to the same value as before it has decreased

how to make it? By setting "/sys/bus/usb/devices/3-2.1/power/level "?

you mean setting it back to on??

but if I did connect USB then how can i setting "/sys/bus/usb/devices/3-2.1/power/level "??