* Modem not detected by oFono @ 2018-06-09 13:37 Davide Depau 2018-06-14 12:19 ` Pavel Machek 0 siblings, 1 reply; 7+ messages in thread From: Davide Depau @ 2018-06-09 13:37 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2210 bytes --] Hello, I just built oFono on Arch Linux from git [1]. I made sure no other program was using the modem (Huawei ME906s LTE M.2 Module) and started oFono. The modem is not recognized and I get no output in logs: systemd[1]: Starting Telephony service... ofonod[32448]: oFono version 1.23 systemd[1]: Started Telephony service. ofonod[32448]: parse_devices_reply: found 1st battery device: /org/freedesktop/UPower/devices/battery_BAT0 I checked the DBus org.ofono.Manager interface: GetModems() returns an empty list. It behaves like no modem is present, even though it's detected by the kernel: [ 1471.866434] usb 1-2: new high-speed USB device number 8 using xhci_hcd [ 1472.008230] usb 1-2: New USB device found, idVendor=12d1, idProduct=15c1 [ 1472.008234] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3 [ 1472.008237] usb 1-2: Product: HUAWEI Mobile [ 1472.008239] usb 1-2: Manufacturer: Huawei Technologies Co., Ltd. [ 1472.008241] usb 1-2: SerialNumber: 0123456789ABCDEF [ 1472.012514] cdc_ether 1-2:2.0 wwan0: register 'cdc_ether' at usb-0000:00:14.0-2, Mobile Broadband Network Device, [MAC addr removed] [ 1472.013268] option 1-2:2.2: GSM modem (1-port) converter detected [ 1472.013414] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0 [ 1472.013641] option 1-2:2.3: GSM modem (1-port) converter detected [ 1472.013715] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1 [ 1472.013904] option 1-2:2.4: GSM modem (1-port) converter detected [ 1472.013972] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2 [ 1472.014160] option 1-2:2.5: GSM modem (1-port) converter detected [ 1472.014229] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3 [ 1472.014415] option 1-2:2.6: GSM modem (1-port) converter detected [ 1472.014480] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4 [ 1472.592941] cdc_ether 1-2:2.0 wwp0s20f0u2c2: renamed from wwan0 Did I miss or mess up something? Thank you, Davide [1] https://aur.archlinux.org/packages/ofono-git -- -- Davide Depau PoliEdro <https://poliedro-polimi.it/> – PoliMi Pride <https://polimipride.it/> Cell: +39 327 798 7963 [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 3493 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-09 13:37 Modem not detected by oFono Davide Depau @ 2018-06-14 12:19 ` Pavel Machek 2018-06-14 16:24 ` Davide Depau 0 siblings, 1 reply; 7+ messages in thread From: Pavel Machek @ 2018-06-14 12:19 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2356 bytes --] On Sat 2018-06-09 15:37:18, Davide Depau wrote: > Hello, > I just built oFono on Arch Linux from git [1]. I made sure no other program > was using the modem (Huawei ME906s LTE M.2 Module) and started oFono. The > modem is not recognized and I get no output in logs: > > systemd[1]: Starting Telephony service... > ofonod[32448]: oFono version 1.23 > systemd[1]: Started Telephony service. > ofonod[32448]: parse_devices_reply: found 1st battery device: > /org/freedesktop/UPower/devices/battery_BAT0 > > I checked the DBus org.ofono.Manager interface: GetModems() returns an > empty list. > It behaves like no modem is present, even though it's detected by the > kernel: > > [ 1471.866434] usb 1-2: new high-speed USB device number 8 using xhci_hcd > [ 1472.008230] usb 1-2: New USB device found, idVendor=12d1, idProduct=15c1 > [ 1472.008234] usb 1-2: New USB device strings: Mfr=1, Product=2, > SerialNumber=3 > [ 1472.008237] usb 1-2: Product: HUAWEI Mobile > [ 1472.008239] usb 1-2: Manufacturer: Huawei Technologies Co., Ltd. > [ 1472.008241] usb 1-2: SerialNumber: 0123456789ABCDEF > [ 1472.012514] cdc_ether 1-2:2.0 wwan0: register 'cdc_ether' at > usb-0000:00:14.0-2, Mobile Broadband Network Device, [MAC addr removed] > [ 1472.013268] option 1-2:2.2: GSM modem (1-port) converter detected > [ 1472.013414] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB0 > [ 1472.013641] option 1-2:2.3: GSM modem (1-port) converter detected > [ 1472.013715] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB1 > [ 1472.013904] option 1-2:2.4: GSM modem (1-port) converter detected > [ 1472.013972] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB2 > [ 1472.014160] option 1-2:2.5: GSM modem (1-port) converter detected > [ 1472.014229] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB3 > [ 1472.014415] option 1-2:2.6: GSM modem (1-port) converter detected > [ 1472.014480] usb 1-2: GSM modem (1-port) converter now attached to ttyUSB4 > [ 1472.592941] cdc_ether 1-2:2.0 wwp0s20f0u2c2: renamed from wwan0 > > Did I miss or mess up something? Perhaps modems vid/pid needs to the list somewhere? (Maybe udevng.c ?) Pavel -- (english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 181 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-14 12:19 ` Pavel Machek @ 2018-06-14 16:24 ` Davide Depau 2018-06-14 17:05 ` Jonas Bonn 0 siblings, 1 reply; 7+ messages in thread From: Davide Depau @ 2018-06-14 16:24 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 3227 bytes --] Hi Pavel, thank you. I checked `udevng.c` and I see the vendor ID: > { "huawei", "cdc_wdm", "12d1" }, > { "huawei", "cdc_ether", "12d1" }, > { "huawei", "qmi_wwan", "12d1" }, > { "huawei", "option", "12d1" }, (btw the modem is 12d1:15c1). Maybe it is being detect but discarded somewhere else (I'm just guessing). Is it possible to increase logging level to system log? Davide On Thu, Jun 14, 2018 at 2:19 PM Pavel Machek <pavel@ucw.cz> wrote: > On Sat 2018-06-09 15:37:18, Davide Depau wrote: > > Hello, > > I just built oFono on Arch Linux from git [1]. I made sure no other > program > > was using the modem (Huawei ME906s LTE M.2 Module) and started oFono. The > > modem is not recognized and I get no output in logs: > > > > systemd[1]: Starting Telephony service... > > ofonod[32448]: oFono version 1.23 > > systemd[1]: Started Telephony service. > > ofonod[32448]: parse_devices_reply: found 1st battery device: > > /org/freedesktop/UPower/devices/battery_BAT0 > > > > I checked the DBus org.ofono.Manager interface: GetModems() returns an > > empty list. > > It behaves like no modem is present, even though it's detected by the > > kernel: > > > > [ 1471.866434] usb 1-2: new high-speed USB device number 8 using xhci_hcd > > [ 1472.008230] usb 1-2: New USB device found, idVendor=12d1, > idProduct=15c1 > > [ 1472.008234] usb 1-2: New USB device strings: Mfr=1, Product=2, > > SerialNumber=3 > > [ 1472.008237] usb 1-2: Product: HUAWEI Mobile > > [ 1472.008239] usb 1-2: Manufacturer: Huawei Technologies Co., Ltd. > > [ 1472.008241] usb 1-2: SerialNumber: 0123456789ABCDEF > > [ 1472.012514 <0125%2014>] cdc_ether 1-2:2.0 wwan0: register > 'cdc_ether' at > > usb-0000:00:14.0-2, Mobile Broadband Network Device, [MAC addr removed] > > [ 1472.013268] option 1-2:2.2: GSM modem (1-port) converter detected > > [ 1472.013414] usb 1-2: GSM modem (1-port) converter now attached to > ttyUSB0 > > [ 1472.013641] option 1-2:2.3: GSM modem (1-port) converter detected > > [ 1472.013715] usb 1-2: GSM modem (1-port) converter now attached to > ttyUSB1 > > [ 1472.013904] option 1-2:2.4: GSM modem (1-port) converter detected > > [ 1472.013972] usb 1-2: GSM modem (1-port) converter now attached to > ttyUSB2 > > [ 1472.014160 <0141%2060>] option 1-2:2.5: GSM modem (1-port) converter > detected > > [ 1472.014229 <0142%2029>] usb 1-2: GSM modem (1-port) converter now > attached to ttyUSB3 > > [ 1472.014415 <0144%2015>] option 1-2:2.6: GSM modem (1-port) converter > detected > > [ 1472.014480 <0144%2080>] usb 1-2: GSM modem (1-port) converter now > attached to ttyUSB4 > > [ 1472.592941] cdc_ether 1-2:2.0 wwp0s20f0u2c2: renamed from wwan0 > > > > Did I miss or mess up something? > > Perhaps modems vid/pid needs to the list somewhere? (Maybe udevng.c ?) > > Pavel > -- > (english) http://www.livejournal.com/~pavelmachek > (cesky, pictures) > http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html > -- -- Davide Depau PoliEdro <https://poliedro-polimi.it/> – PoliMi Pride <https://polimipride.it/> Cell: +39 327 798 7963 [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 5454 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-14 16:24 ` Davide Depau @ 2018-06-14 17:05 ` Jonas Bonn 2018-06-14 17:39 ` Davide Depau 0 siblings, 1 reply; 7+ messages in thread From: Jonas Bonn @ 2018-06-14 17:05 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1550 bytes --] Hi Davide, On 14/06/18 18:24, Davide Depau wrote: > Hi Pavel, > thank you. I checked `udevng.c` and I see the vendor ID: > > > { "huawei", "cdc_wdm", "12d1" }, > > { "huawei", "cdc_ether", "12d1" }, > > { "huawei", "qmi_wwan", "12d1" }, > > { "huawei", "option", "12d1" }, > > (btw the modem is 12d1:15c1). Maybe it is being detect but discarded > somewhere else (I'm just guessing). Is it possible to increase logging > level to system log? > > Davide > > On Thu, Jun 14, 2018 at 2:19 PM Pavel Machek <pavel@ucw.cz > <mailto:pavel@ucw.cz>> wrote: > > On Sat 2018-06-09 15:37:18, Davide Depau wrote: > > Hello, > > I just built oFono on Arch Linux from git [1]. I made sure no > other program > > was using the modem (Huawei ME906s LTE M.2 Module) and started > oFono. The > > modem is not recognized and I get no output in logs: > > > > systemd[1]: Starting Telephony service... > > ofonod[32448]: oFono version 1.23 > > systemd[1]: Started Telephony service. > systemd will start ofonod without excessive logging. You will want to run with debug logging on to see what's going on. Stop the systemd instance and run ofono manually from the command line with: # systemctl stop ofono # ofonod -d -n Post the logs from that so that we can check what's going on. /Jonas [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 2662 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-14 17:05 ` Jonas Bonn @ 2018-06-14 17:39 ` Davide Depau 2018-06-14 17:54 ` Jonas Bonn 0 siblings, 1 reply; 7+ messages in thread From: Davide Depau @ 2018-06-14 17:39 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 1826 bytes --] Hi Jonas, On Thu, Jun 14, 2018 at 7:05 PM Jonas Bonn <jonas@southpole.se> wrote: > Hi Davide, > > On 14/06/18 18:24, Davide Depau wrote: > > Hi Pavel, > thank you. I checked `udevng.c` and I see the vendor ID: > > > { "huawei", "cdc_wdm", "12d1" }, > > { "huawei", "cdc_ether", "12d1" }, > > { "huawei", "qmi_wwan", "12d1" }, > > { "huawei", "option", "12d1" }, > > (btw the modem is 12d1:15c1). Maybe it is being detect but discarded > somewhere else (I'm just guessing). Is it possible to increase logging > level to system log? > > Davide > > On Thu, Jun 14, 2018 at 2:19 PM Pavel Machek <pavel@ucw.cz> wrote: > >> On Sat 2018-06-09 15:37:18, Davide Depau wrote: >> > Hello, >> > I just built oFono on Arch Linux from git [1]. I made sure no other >> program >> > was using the modem (Huawei ME906s LTE M.2 Module) and started oFono. >> The >> > modem is not recognized and I get no output in logs: >> > >> > systemd[1]: Starting Telephony service... >> > ofonod[32448]: oFono version 1.23 >> > systemd[1]: Started Telephony service. >> > > systemd will start ofonod without excessive logging. You will want to run > with debug logging on to see what's going on. Stop the systemd instance > and run ofono manually from the command line with: > > # systemctl stop ofono > # ofonod -d -n > > Post the logs from that so that we can check what's going on. > Here you go: https://hastebin.com/oramuhixas.swift I can see there's something going on with the modem, I don't get what's really happening though. Davide > > > /Jonas > > -- -- Davide Depau PoliEdro <https://poliedro-polimi.it/> – PoliMi Pride <https://polimipride.it/> Cell: +39 327 798 7963 [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 4584 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-14 17:39 ` Davide Depau @ 2018-06-14 17:54 ` Jonas Bonn 2018-06-14 18:12 ` Davide Depau 0 siblings, 1 reply; 7+ messages in thread From: Jonas Bonn @ 2018-06-14 17:54 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2574 bytes --] Hi, On 14/06/18 19:39, Davide Depau wrote: > Hi Jonas, > > On Thu, Jun 14, 2018 at 7:05 PM Jonas Bonn <jonas@southpole.se > <mailto:jonas@southpole.se>> wrote: > > systemd will start ofonod without excessive logging. You will > want to run with debug logging on to see what's going on. Stop > the systemd instance and run ofono manually from the command line > with: > > # systemctl stop ofono > # ofonod -d -n > > Post the logs from that so that we can check what's going on. > > > Here you go: https://hastebin.com/oramuhixas.swift > I can see there's something going on with the modem, I don't get > what's really happening though. > From your log, the relevant bits are: i) Modem is correctly detected and the relevant driver (huawei) is started: |ofonod[14886]: plugins/udevng.c:create_modem() /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 ofonod[14886]: plugins/udevng.c:create_modem() driver=huawei ofonod[14886]: src/modem.c:ofono_modem_create() name: (null), type: huawei ofonod[14886]: plugins/udevng.c:setup_huawei() /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 ofonod[14886]: plugins/udevng.c:setup_huawei() quattroggi 2/6/0 00 (null) ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB0 255/6/16 02 (null) ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB1 255/6/19 03 (null) ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB2 255/6/18 04 (null) ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB3 255/6/20 05 (null) ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB4 255/6/27 06 (null) | ii) The interfaces 255/6/* here aren't supported by the 'huawei' driver. See src/udevng.c. The relevant function is setup_huawei(). You'll need to add mapping from USB interface identifier to 'function'. Essentially you want to match cases like: .... } else if (g_strcmp0(info->interface, "255/6/16") == 0) { mdm = info->devnode; } else if (g_strcmp0(info->interface, "255/6/19") == 0) { net = info->devnode; ... etc. .... That's matching the interface string in order to set the function. Which interface corresponds to which function is for you to figure out, but usually these are reasonably consistent in ordering for any given manufacturer so compare with the order of the interfaces already present in the huawei driver. /Jonas [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 5697 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Modem not detected by oFono 2018-06-14 17:54 ` Jonas Bonn @ 2018-06-14 18:12 ` Davide Depau 0 siblings, 0 replies; 7+ messages in thread From: Davide Depau @ 2018-06-14 18:12 UTC (permalink / raw) To: ofono [-- Attachment #1: Type: text/plain, Size: 2816 bytes --] Alright, thanks for the heads up, it was really helpful. I will get into it in the following weekends. Davide On Thu, Jun 14, 2018 at 7:54 PM Jonas Bonn <jonas@southpole.se> wrote: > Hi, > > On 14/06/18 19:39, Davide Depau wrote: > > Hi Jonas, > > On Thu, Jun 14, 2018 at 7:05 PM Jonas Bonn <jonas@southpole.se> wrote: > >> systemd will start ofonod without excessive logging. You will want to >> run with debug logging on to see what's going on. Stop the systemd >> instance and run ofono manually from the command line with: >> >> # systemctl stop ofono >> # ofonod -d -n >> >> Post the logs from that so that we can check what's going on. >> > > Here you go: https://hastebin.com/oramuhixas.swift > I can see there's something going on with the modem, I don't get what's > really happening though. > > From your log, the relevant bits are: > > i) Modem is correctly detected and the relevant driver (huawei) is started: > > > ofonod[14886]: plugins/udevng.c:create_modem() /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 > ofonod[14886]: plugins/udevng.c:create_modem() driver=huawei > ofonod[14886]: src/modem.c:ofono_modem_create() name: (null), type: huawei > ofonod[14886]: plugins/udevng.c:setup_huawei() /sys/devices/pci0000:00/0000:00:14.0/usb1/1-2 > ofonod[14886]: plugins/udevng.c:setup_huawei() quattroggi 2/6/0 00 (null) > ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB0 255/6/16 02 (null) > ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB1 255/6/19 03 (null) > ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB2 255/6/18 04 (null) > ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB3 255/6/20 05 (null) > ofonod[14886]: plugins/udevng.c:setup_huawei() /dev/ttyUSB4 255/6/27 06 (null) > > > > ii) The interfaces 255/6/* here aren't supported by the 'huawei' driver. > See src/udevng.c. The relevant function is setup_huawei(). > > You'll need to add mapping from USB interface identifier to 'function'. > Essentially you want to match cases like: > > .... > } else if (g_strcmp0(info->interface, "255/6/16") == 0) { > mdm = info->devnode; > } else if (g_strcmp0(info->interface, "255/6/19") == 0) { > net = info->devnode; > ... etc. > .... > > That's matching the interface string in order to set the function. Which > interface corresponds to which function is for you to figure out, but > usually these are reasonably consistent in ordering for any given > manufacturer so compare with the order of the interfaces already present in > the huawei driver. > > > /Jonas > -- -- Davide Depau PoliEdro <https://poliedro-polimi.it/> – PoliMi Pride <https://polimipride.it/> Cell: +39 327 798 7963 [-- Attachment #2: attachment.html --] [-- Type: text/html, Size: 8760 bytes --] ^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2018-06-14 18:12 UTC | newest] Thread overview: 7+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2018-06-09 13:37 Modem not detected by oFono Davide Depau 2018-06-14 12:19 ` Pavel Machek 2018-06-14 16:24 ` Davide Depau 2018-06-14 17:05 ` Jonas Bonn 2018-06-14 17:39 ` Davide Depau 2018-06-14 17:54 ` Jonas Bonn 2018-06-14 18:12 ` Davide Depau
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.