* [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