* [PATCH 0/2] Detect huawei E3372
@ 2016-09-29 7:52 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 1/2] udevng: Detect huawei E3372 pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
0 siblings, 2 replies; 4+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau @ 2016-09-29 7:52 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 361 bytes --]
I have these two patches after spending some time with E3372 (reflashed with
a so called 21 firmware). I have mixed feeling about those, but just send them
here in case.
Frédéric Dalleau (2):
udevng: Detect huawei E3372 pcui
udevng: Detect huawei E3372 modem and pcui
plugins/udevng.c | 3 +++
1 file changed, 3 insertions(+)
--
2.7.4
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH 1/2] udevng: Detect huawei E3372 pcui
2016-09-29 7:52 [PATCH 0/2] Detect huawei E3372 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
@ 2016-09-29 7:52 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
1 sibling, 0 replies; 4+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau @ 2016-09-29 7:52 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 917 bytes --]
The huawei E3372 exposes two USB tty at /dev/ttyUSB0 and /dev/ttyUSB1
/dev/ttyUSB1 is properly detected as modem.
/dev/ttyUSB0 is the pcui.
lsusb shows 12d1:1506 Huawei Technologies Co., Ltd. Modem/Networkcard
Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
---
plugins/udevng.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 607e381..1a85246 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -330,6 +330,7 @@ static gboolean setup_huawei(struct modem_info *modem)
} else if (g_strcmp0(info->label, "pcui") == 0 ||
g_strcmp0(info->interface, "255/1/2") == 0 ||
g_strcmp0(info->interface, "255/2/2") == 0 ||
+ g_strcmp0(info->interface, "255/2/18") == 0 ||
g_strcmp0(info->interface, "255/1/50") == 0) {
pcui = info->devnode;
} else if (g_strcmp0(info->label, "diag") == 0 ||
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui
2016-09-29 7:52 [PATCH 0/2] Detect huawei E3372 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 1/2] udevng: Detect huawei E3372 pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
@ 2016-09-29 7:52 ` =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 16:01 ` Denis Kenzior
1 sibling, 1 reply; 4+ messages in thread
From: =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau @ 2016-09-29 7:52 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 1201 bytes --]
When the modes are modified with AT^SETPORT="FF;12,1,16", this modem
and pcui will appear using different ids. Update the interfaces
identifier accordingly.
Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
---
plugins/udevng.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/plugins/udevng.c b/plugins/udevng.c
index 1a85246..933bf4f 100644
--- a/plugins/udevng.c
+++ b/plugins/udevng.c
@@ -325,12 +325,14 @@ static gboolean setup_huawei(struct modem_info *modem)
if (g_strcmp0(info->label, "modem") == 0 ||
g_strcmp0(info->interface, "255/1/1") == 0 ||
g_strcmp0(info->interface, "255/2/1") == 0 ||
+ g_strcmp0(info->interface, "255/3/1") == 0 ||
g_strcmp0(info->interface, "255/1/49") == 0) {
mdm = info->devnode;
} else if (g_strcmp0(info->label, "pcui") == 0 ||
g_strcmp0(info->interface, "255/1/2") == 0 ||
g_strcmp0(info->interface, "255/2/2") == 0 ||
g_strcmp0(info->interface, "255/2/18") == 0 ||
+ g_strcmp0(info->interface, "255/3/18") == 0 ||
g_strcmp0(info->interface, "255/1/50") == 0) {
pcui = info->devnode;
} else if (g_strcmp0(info->label, "diag") == 0 ||
--
2.7.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui
2016-09-29 7:52 ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
@ 2016-09-29 16:01 ` Denis Kenzior
0 siblings, 0 replies; 4+ messages in thread
From: Denis Kenzior @ 2016-09-29 16:01 UTC (permalink / raw)
To: ofono
[-- Attachment #1: Type: text/plain, Size: 440 bytes --]
Hi Frédéric,
On 09/29/2016 02:52 AM, Frédéric Dalleau wrote:
> When the modes are modified with AT^SETPORT="FF;12,1,16", this modem
> and pcui will appear using different ids. Update the interfaces
> identifier accordingly.
>
> Signed-off-by: Frédéric Dalleau <frederic.dalleau@collabora.co.uk>
oFono doesn't use Signed-off-by. I took Signed-off-by out manually and
applied both patches.
Thanks!
Regards,
-Denis
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2016-09-29 16:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-29 7:52 [PATCH 0/2] Detect huawei E3372 =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 1/2] udevng: Detect huawei E3372 pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 7:52 ` [PATCH 2/2] udevng: Detect huawei E3372 modem and pcui =?unknown-8bit?q?Fr=C3=A9d=C3=A9ric?= Dalleau
2016-09-29 16:01 ` Denis Kenzior
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.