Re: ModemManager: Allow plugins to configure DTE-DCE flow control command (AT+IFC)
- From: Dan Williams <dcbw redhat com>
- To: Aleksander Morgado <aleksander lanedo com>
- Cc: "Network Manager \(Devel\)" <networkmanager-list gnome org>
- Subject: Re: ModemManager: Allow plugins to configure DTE-DCE flow control command (AT+IFC)
- Date: Mon, 04 Apr 2011 21:47:25 -0500
On Fri, 2011-04-01 at 09:55 +0200, Aleksander Morgado wrote:
> Hi all,
>
> The attached patch sets up a new property in the Generic-GSM modem to
> identify the command to be used to configure the flow control between
> the PC and the modem.
e520c2d448eb44464e0c932ac71a4895f7c8ea32
thanks!
Dan
> Once enabled, a GSM plugin may then override the new
> MM_GENERIC_GSM_FLOW_CONTROL_CMD property and configure its own value,
> for example:
>
> mm_modem_whatever_gsm_class_init ()
> {
> g_object_class_override_property (
> object_class,
> MM_GENERIC_GSM_PROP_FLOW_CONTROL_CMD,
> MM_GENERIC_GSM_FLOW_CONTROL_CMD);
> }
>
> get_property ()
> {
> ...
> case MM_GENERIC_GSM_PROP_FLOW_CONTROL_CMD:
> /* Enable RTS/CTS flow control */
> g_value_set_string (value, "+IFC=2,2");
> break;
> ...
> }
>
> Cheers,
>
> _______________________________________________
> networkmanager-list mailing list
> networkmanager-list gnome org
> http://mail.gnome.org/mailman/listinfo/networkmanager-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]