From: Ming Li Wu <mingli@southpole.se>
To: ofono@ofono.org
Subject: Re: [PATCH 1/3] Support Telit cdc acm device
Date: Mon, 17 Dec 2012 19:39:40 +0100 [thread overview]
Message-ID: <50CF66EC.7030408@southpole.se> (raw)
In-Reply-To: <50CF4992.4080209@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 1275 bytes --]
Hi Denis,
>> + /* This is for Telit HE910. */
>> + if(udevng_match_modem_id(modem, "1bc7", "0021")){
>> + options = g_hash_table_new(g_str_hash, g_str_equal);
>> +
>> + if (options == NULL)
>> + return NULL;
>> +
>> + g_hash_table_insert(options, "Baud", "115200");
>> + g_hash_table_insert(options, "Parity", "none");
>> + g_hash_table_insert(options, "StopBits", "1");
>> + g_hash_table_insert(options, "DataBits", "8");
>> + g_hash_table_insert(options, "XonXoff", "off");
>> + g_hash_table_insert(options, "Local", "on");
>> + g_hash_table_insert(options, "RtsCts", "on");
>> + }
>> +
>> + channel = g_at_tty_open(device, options);
>> + if(options){
>> + g_hash_table_destroy(options);
>> + }
>> +
>
> This was already taken care of by the patch from Christopher that was
> applied today.
>
I have two questions about settings of serial ports:
1. Are the following settings necessary?
g_hash_table_insert(options, "XonXoff", "off");
g_hash_table_insert(options, "Local", "on");
g_hash_table_insert(options, "RtsCts", "on");
2.Should settings of modem port and aux port be different?
Thanks!
Mingli
next prev parent reply other threads:[~2012-12-17 18:39 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-17 16:22 [PATCH 0/3] Telit HE910 Mingli Wu
2012-12-17 16:22 ` [PATCH 1/3] Support Telit cdc acm device Mingli Wu
2012-12-17 16:34 ` Denis Kenzior
2012-12-17 18:39 ` Ming Li Wu [this message]
2012-12-17 16:22 ` [PATCH 2/3] Drop checking whether +CMER is supported Mingli Wu
2012-12-17 16:27 ` Denis Kenzior
2012-12-18 10:08 ` Christopher Vogl
2012-12-17 16:22 ` [PATCH 3/3] Delay 10 seconds between CFUN=4 and CFUN=1 Mingli Wu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50CF66EC.7030408@southpole.se \
--to=mingli@southpole.se \
--cc=ofono@ofono.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox