Fast dormancy

Sebastian Sjoholm sebastian.sjoholm at gmail.com
Wed Oct 5 17:27:56 UTC 2016


>>> Does libqmi support the 'WDS/Go Dormant Request' (0x0025) command?
>>> I saw that it exists in the gobi-api (GobiConnectionMgmtAPI.h).
>>> 
>>> I tried to look through the libqmi code but was not able to find
>>> anything related to this.
>> 
>> 
>> WDS 0x0025 isn't supported yet; see:
>> https://cgit.freedesktop.org/libqmi/tree/data/qmi-service-wds.json
>> 
>> Patches welcome :)
> 
> I implemented GoDormant/GoActive/GetDormancyStatus in the dcbw/wds-
> updates branch here:
> 
> https://cgit.freedesktop.org/libqmi/log/?h=dcbw/wds-updates
> 
> Does that do what you want?
> 

I have used the version from Dan, and it seems to work with MC7304,

# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-start-network=lte1.dynamic.com --client-no-release-cid
[/dev/cdc-wdm0] Network started
	Packet data handle: '1205682768'
[/dev/cdc-wdm0] Client ID not released:
	Service: 'wds'
	    CID: '12'
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-get-dormancy-status
[/dev/cdc-wdm0] Dormancy Status: 'traffic-channel-active'
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-go-dormant
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-get-dormancy-status
[/dev/cdc-wdm0] Dormancy Status: 'traffic-channel-dormant'
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-go-active
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-get-dormancy-status
[/dev/cdc-wdm0] Dormancy Status: 'traffic-channel-active'
# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-stop-network=1205682768 --client-cid=12
Network cancelled... releasing resources
[/dev/cdc-wdm0] Network stopped
#

This is now tested on MC7304 on WCDMA.

One peculiar thing is that modem config (at!custom) REL8FASTDORMDIS should be enabled by default (value 0), but then I get the reply

# /usr/bin/qmicli -d /dev/cdc-wdm0 --wds-go-dormant
error: couldn't go dormant: QMI protocol error (25): ‘DeviceUnsupported

If I set REL8FASTDORMDIS to 1 (which according to the document is disabled) then I get the working result as above.

This is however not related to libqmi in any way, so I will look into this and let you know what I find.

Thanks Dan for the fix!

Regards,
Sebastian



More information about the libqmi-devel mailing list