how to start dedicated bearer through libqmi?
dcbw at redhat.com
Fri Sep 23 19:36:41 UTC 2016
On Thu, 2016-09-15 at 20:37 +0000, Chen, Jing wrote:
> Hello, Everybody:
> Could libqmi do fine operations/controls on the connected QMI device?
> For example, "+CGACT" is the AT command to control each PDP context
> or bearer. And, "+CGDATA" is the AT command to send data traffic
> through specific context ID.
> What is the corresponding API function in libqmi to achieve the same
> goals? I know there is a function "qmi_client_wds_start_network"
> could start network, with "ifconfig wwan0 up" + "dhclient wwan0 "
> system commands followed to have the interface up and an IP address
> If my target is to control each default/dedicated bearer in the
> connected QMI device, assuming the hardware supported, how could I
> use libqmi to achieve my goal? Thank you so much!
>From what we understand, what QMI calls "Profiles" are equivalent to
PDP contexts. So WDS' GetProfileList command should return the list of
contexts, and WDS GetProfileSettings would return the actual settings
of the context.
The CGDATA analogue in QMI would pretty much be WDS StartNetwork. That
would of course also include doing the stuff CGACT does.
I'm not sure about the CGACT analogue; I could be wrong but I don't
think the GoActive/GoDormant stuff isn't related to context activation,
that's more for power control while active.
The CGATT analogue for CGATT would be NAS InitiateAttachRequest.
On a slightly higher level, what are you trying to do with the bearers?
That might help narrow things down.
> [cid:image001.png at 01D20F56.5B7FC530]
> Jing Chen
> Spirent Communications e-mail confidentiality.
> This e-mail contains confidential and / or privileged information
> belonging to Spirent Communications plc, its affiliates and / or
> subsidiaries. If you are not the intended recipient, you are hereby
> notified that any disclosure, copying, distribution and / or the
> taking of any action based upon reliance on the contents of this
> transmission is strictly forbidden. If you have received this message
> in error please notify the sender by return e-mail and delete it from
> your system.
> Spirent Communications plc
> Northwood Park, Gatwick Road, Crawley, West Sussex, RH10 9XN, United
> Tel No. +44 (0) 1293 767676
> Fax No. +44 (0) 1293 767677
> Registered in England Number 470893
> Registered at Northwood Park, Gatwick Road, Crawley, West Sussex,
> RH10 9XN, United Kingdom.
> Or if within the US,
> Spirent Communications,
> 27349 Agoura Road, Calabasas, CA, 91301, USA.
> Tel No. 1-818-676- 2300
> libqmi-devel mailing list
> libqmi-devel at lists.freedesktop.org
More information about the libqmi-devel