<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Hi, for adding this to configure option , you need to add</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
EXTRA_OECONF += " --with-at-command-via-dbus"<br>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
to the modemmanager recipe or create a bbappend in your custom layer.</div>
<div id="appendonsend"></div>
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size:11pt" color="#000000"><b>From:</b> ModemManager-devel <modemmanager-devel-bounces@lists.freedesktop.org> on behalf of NIKHIL PATIL <nikhilvp29@gmail.com><br>
<b>Sent:</b> Monday, December 28, 2020 9:28 AM<br>
<b>To:</b> Aleksander Morgado <aleksander@aleksander.es><br>
<b>Cc:</b> ModemManager (development) <modemmanager-devel@lists.freedesktop.org><br>
<b>Subject:</b> Re: Run ModemManager in debug mode</font>
<div> </div>
</div>
<div>
<div dir="ltr">Hi Aleksander ,
<div> How we can add these debug option while build time only on yocto build . any idea ?</div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Wed, Dec 9, 2020 at 4:08 PM NIKHIL PATIL <<a href="mailto:nikhilvp29@gmail.com">nikhilvp29@gmail.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div dir="ltr">Hi Aleksander ,
<div> We want to add debug option ad build time only , How we can add these debug option while build time only on yocto build side ? </div>
<div> ModemManager package is in meta-openembedded layer .</div>
<div><br>
</div>
<div> build platform :- yocto</div>
<div> </div>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Mon, Dec 7, 2020 at 7:09 PM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
Hey<br>
<br>
The --debug option gives you 2 things: debug log and AT command<br>
support via the Command() API.<br>
<br>
The mmcli -G DEBUG option only changes the debug log level.<br>
<br>
If you need the AT command support via Command() you need either the<br>
--debug option as you were using, or otherwise make sure you build<br>
ModemManager using the --with-at-command-via-dbus configure option<br>
<br>
On Mon, Dec 7, 2020 at 11:18 AM NIKHIL PATIL <<a href="mailto:nikhilvp29@gmail.com" target="_blank">nikhilvp29@gmail.com</a>> wrote:<br>
><br>
> Hi ,<br>
> I tried to enable using " mmcli -G DEBUG " it come successfully enable debug logging level .<br>
> but , when we run AT command using mmcli we are getting same error as before (error :- modemmanager should in debug mode ).<br>
> how we can proceed on these ?<br>
><br>
> On Sun, Dec 6, 2020 at 1:17 PM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es" target="_blank">aleksander@aleksander.es</a>> wrote:<br>
>><br>
>> Hey<br>
>><br>
>> > After board boots we are changing the ModeManger.service as (ExecStart=/usr/sbin/ModemManager --debug)<br>
>> > but that is not good practice.<br>
>> ><br>
>> > How We can run ModemManager in debug mode while compiling yocto image itself ?<br>
>> > build platform = yocto<br>
>><br>
>> The --debug option gives you 2 things: debug log and AT command<br>
>> support via the Command() API.<br>
>><br>
>> If it's a change you require always by default in all your builds, you<br>
>> could patch the ModemManager recipe to modify the service file to add<br>
>> the --debug.<br>
>><br>
>> If you need to enable the debug log only sometimes during runtime, you<br>
>> could use "mmcli -G DEBUG" to change the daemon logging level.<br>
>><br>
>> If what you need is to unconditionally have AT command support via the<br>
>> Command() API always, you can modify the ModemManager recipe to<br>
>> configure the build with the --with-at-command-via-dbus option, that<br>
>> will enable that API by default regardless of whether --debug is used<br>
>> during runtime or not.<br>
>><br>
>> --<br>
>> Aleksander<br>
>> <a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
<br>
<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote>
</div>
</blockquote>
</div>
</div>
</body>
</html>