Hi,
On 14/06/18 19:39, Davide Depau wrote:
Hi Jonas,
On Thu, Jun 14, 2018 at 7:05 PM Jonas Bonn <[email protected]
<mailto:[email protected]>> 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
_______________________________________________
ofono mailing list
[email protected]
https://lists.ofono.org/mailman/listinfo/ofono