Re: Pinephone Issue in 2.13

Adam Pigg <[email protected]>
Newsgroups dev.linux.lists.ofono
Message-ID <2292663.Vs0nDVz2aQ@adam-laptop-hp>
Hi Dennis

On Monday 2 December 2024 17:55:18 Greenwich Mean Time Denis Kenzior wrote:
> Hi Adam,
> 
> On 11/28/24 11:41 AM, Adam Pigg wrote:
> > Hi Dennis
> > 
> > Myself and some users have an issue since upgrading from 2.12 to 2.13.
> 
> 2.13 added multiple simultaneous data bearer support, but they should have
> been backwards compatible with those devices that don't support them. 
> Guess I broke something :)  Sorry about that.
> 
No problem, its hard to debug devices you dont have access to, I know the 
feeling! (i support an app that interfaces with various "smart" watches)

> > The logs on my own PP and PPP, and from another users PPP show the
> > following code path, with the device being shut down:
> > Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:discover_cb()
> > Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:create_wda_cb()
> > Nov 28 17:35:59 PinePhone ofonod[2557]:
> > plugins/gobi.c:set_data_format_cb()
> > Nov 28 17:35:59 PinePhone ofonod[2557]:
> > plugins/gobi.c:set_data_format_cb()
> > Trying next data format
> > Nov 28 17:35:59 PinePhone ofonod[2557]:
> > plugins/gobi.c:set_data_format_cb()
> > Nov 28 17:35:59 PinePhone ofonod[2557]:
> > plugins/gobi.c:set_data_format_cb()
> > Trying next data format
> > Nov 28 17:35:59 PinePhone ofonod[2557]:
> > plugins/gobi.c:set_data_format_cb()
> > Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_device()
> > 0x2088ba20
> > Nov 28 17:35:59 PinePhone ofonod[2557]: plugins/gobi.c:shutdown_cb()
> 
> What oFono tries to do is to cycle through three currently supported data
> formats:
> 
> - RAW_IP + QMAPv5 -> this enables multiple simultaneous bearer support. 
> There's also in theory RAW_IP + QMAPv4, but I don't have any devices that
> only support this format.
> - RAW_IP -> Single context, no 802.3 framing overhead
> - 802.3 -> Supported by really old Qualcomm devices.
> 
> Looks like the firmware is rejecting every single format we try to set it
> into. Do you know what format PinePhone uses?  Do you have libqmi / qmicli
> installed on the PinePhone to run some commands?  Something like:
> 
I dont have these packaged, but I can look into that if needed, or ask around

> qmicli --device=/dev/cdc-wdm0
> --wda-get-data-format=ep-type=hsusb,ep-iface-number=<InterfaceNumber>
> 
> where InterfaceNumber is what is being passed to gobi plugin from udevng
> inside the "InterfaceNumber" modem property.
> 
> For oFono 2.12, what do the contents of
> /sys/class/net/<netif>/qmi/raw_ip
> and
> /sys/class/net/<netif>/qmi/pass_through
> 
[root@PinePhone defaultuser]# cat /sys/class/net/wwan0/qmi/pass_through 
N
[root@PinePhone defaultuser]# cat /sys/class/net/wwan0/qmi/raw_ip 
Y


> look like?  <netif> in this case is the QMI wwan network device, something
> like wwan0.
> 
> Regards,
> -Denis

Adam
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.