I'm now working on a SIM800 plugin, specifically, for a UART-connected SIM800
and a Raspberry Pi Zero. There are minor adjustments that we need to make, so
we've copied the SIM900 plugin to make sure that we can make adjustments in
a clean way (and also compare it to a known-working SIM900 setup). I, too, was
affected by the latest SIM900-related breakage - right now I'm compiling to check
if it's resolved in current git master.
Some questions I have are:
- Is it possible to compile a plugin standalone and then only distribute that
plugin? I'm wondering because Raspbian repositories already ship ofono, and
given that ofono already has a plugin infrastructure, it seems counterintuitive
to distribute a separate version of ofono through our repositories just because
we've added a plugin. I'm asking because it seems that plugins also need to be
hard-coded in the plugins/udevng.c file - so I'd need to recompile ofono even if
I compile the plugin separately... or not? (as we're using udev to enable the
right plugin, as far as I can tell:
https://github.com/ZeroPhone/ofono-config/blob/master/51-ofono.rules) Is it
something that could be influenced by the new -p command-line option of ofonod
instead? (which I found after compiling git master and running ofonod --help).
- judging by lsof output, ofono doesn't open the serial port until Powered is
set to true (which is what we need), but does not close the serial port after
setting Powered to false (which is undesirable for us, since, unfortunately,
that same port might be used for debugging). Why? Is it something can be
influenced by a plugin?
- Latest git master fails to compile on Raspberry Pi, due to
#pragma GCC diagnostic ignored "-Wrestrict"
in drivers/rilmodem/call-forwarding.c and
drivers/rilmodem/network-registration.c . I can provide error output if
necessary. Is it something expected?
I'm integrating a new Cinterion module and have a small issue I haven't been able to solve nicely in Ofono. One of their commands responds with a list of stuff, followed by an OK but also after the OK there is an empty line. Which is of course wrong, but it might not be solved for a while. Using the g_at_chat_send function with a callback doesn't seem to work then, the callback will not be called it seems and I get stuck in the sequence. Can I without modifying the AT parser handle this somehow?
I just built oFono on Arch Linux from git . 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: Starting Telephony service...
ofonod: oFono version 1.23
systemd: Started Telephony service.
ofonod: parse_devices_reply: found 1st battery device:
I checked the DBus org.ofono.Manager interface: GetModems() returns an
It behaves like no modem is present, even though it's detected by the
[ 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,
[ 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?
PoliEdro <https://poliedro-polimi.it/> – PoliMi Pride <https://polimipride.it/>
Cell: +39 327 798 7963