When trying to make modem in low power mode, making AT+CREG=0, AT+CGREG=0 and AT+CFUN=0
Later using AT+KSLEEP=1. Still consuming ~20mA.
How about removing usb cable and uart?
UART is shorted
How can I disable USB cable? Is USB-SS having to do anything with this?
What about wake_lock()?
Yes, host platform needs to put module to usb selective suspend mode
Here is an example on how to control the USB in linux:
Thanks for the document.
But seems like USB is not integrated here.
Is it possible to disconnect USB_SS using AT command?
I found one command AT+CSCLK=1 This prepare the device to go into sleep and disables USB_SS.
I don’t see +csclk command in the AT command user guide…
Can you just remove the usb cable to confirm this is the problem?
trane@trane-Latitude-5430:~$ cd /sys/bus/usb/devices/
trane@trane-Latitude-5430:/sys/bus/usb/devices$ lsusb
Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 003 Device 002: ID 0c45:673c Microdia Integrated_Webcam_FHD
Bus 003 Device 004: ID 0525:a4a2 Netchip Technology, Inc. Linux-USB Ethernet/RNDIS Gadget
Bus 003 Device 003: ID 8087:0033 Intel Corp.
Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
trane@trane-Latitude-5430:/sys/bus/usb/devices$ cd 3-3/
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3$ ls
3-3:1.0 avoid_reset_quirk bDeviceClass bmAttributes bNumConfigurations configuration devnum ep_00 idVendor maxchild product remove subsystem urbnum
3-3:1.1 bcdDevice bDeviceProtocol bMaxPacketSize0 bNumInterfaces descriptors devpath firmware_node ltm_capable port quirks rx_lanes tx_lanes version
authorized bConfigurationValue bDeviceSubClass bMaxPower busnum dev driver idProduct manufacturer power removable speed uevent
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3$ cat product
RNDIS/Ethernet Gadget
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3$ cat idVendor
0525
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3$ cat idProduct
a4a2
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3$ cd power/
trane@trane-Latitude-5430:/sys/bus/usb/devices/3-3/power$ ls
active_duration autosuspend connected_duration level runtime_active_kids runtime_enabled runtime_suspended_time
async autosuspend_delay_ms control persist runtime_active_time runtime_status runtime_usage
Modem is not directly connected through USB, it the RNDIS which is talking to Modem.
then you need to ask the RNDIS to put module into USB selective suspend mode
How can I request RNDIS? Is there any sequence or command (instruction) I need to follow.
I don’t know how to control your own RNDIS
I have few more questions, is it possible to get over a call with my team.
I think you need to contact the distributor for the support on the call
Sure, is there any other way I can disable USB_SS?
I remember putting the host to hibernate mode will also put the client to usb selective suspend mode