Did you check the modemmanager configure log? It should be under your yocto 
build dir (tmp/work/<your target 
arch>/modemmanager-1.6.4-r0/temp/log.do_configure)
________________________________
From: NIKHIL PATIL <nikhilv...@gmail.com>
Sent: Wednesday, December 30, 2020 2:52:59 PM
To: Frederic Martinsons <frederic.martins...@sigfox.com>
Cc: Aleksander Morgado <aleksan...@aleksander.es>; ModemManager (development) 
<modemmanager-devel@lists.freedesktop.org>
Subject: Re: Run ModemManager in debug mode

Hi ,
   ModemManager has compiled successfully . but when i am doing  mmcli -m 0 
--command="ATI"
    output - operation is only allowed in debug mode.



On Tue, Dec 29, 2020 at 9:34 PM Frederic Martinsons 
<frederic.martins...@sigfox.com<mailto:frederic.martins...@sigfox.com>> wrote:
What do you mean exactly by "it doesn't work"? Is configure of modemmanager had 
not been executed with the above mentioned option?
Did you check the configure log made by yocto?
Anyway, I think we are off the road here since it became a yocto issue rather 
than a modem manager one.
________________________________
From: NIKHIL PATIL <nikhilv...@gmail.com<mailto:nikhilv...@gmail.com>>
Sent: Tuesday, December 29, 2020 1:59:10 PM
To: Frederic Martinsons 
<frederic.martins...@sigfox.com<mailto:frederic.martins...@sigfox.com>>
Cc: Aleksander Morgado 
<aleksan...@aleksander.es<mailto:aleksan...@aleksander.es>>; ModemManager 
(development) 
<modemmanager-devel@lists.freedesktop.org<mailto:modemmanager-devel@lists.freedesktop.org>>
Subject: Re: Run ModemManager in debug mode

Hi ,
   I created modemmanager_1.6.4.bbappend file and in these i copied above data.
   i tried these it not worked.
  Is there another method ?

On Mon, Dec 28, 2020 at 3:20 PM Frederic Martinsons 
<frederic.martins...@sigfox.com<mailto:frederic.martins...@sigfox.com>> wrote:
Hi, for adding this to configure option , you need to add

EXTRA_OECONF +=  " --with-at-command-via-dbus"

to the modemmanager recipe or create a bbappend in your custom layer.
________________________________
From: ModemManager-devel 
<modemmanager-devel-boun...@lists.freedesktop.org<mailto:modemmanager-devel-boun...@lists.freedesktop.org>>
 on behalf of NIKHIL PATIL <nikhilv...@gmail.com<mailto:nikhilv...@gmail.com>>
Sent: Monday, December 28, 2020 9:28 AM
To: Aleksander Morgado 
<aleksan...@aleksander.es<mailto:aleksan...@aleksander.es>>
Cc: ModemManager (development) 
<modemmanager-devel@lists.freedesktop.org<mailto:modemmanager-devel@lists.freedesktop.org>>
Subject: Re: Run ModemManager in debug mode

Hi Aleksander ,
       How we can add these debug option while build time only  on yocto build 
. any idea ?

On Wed, Dec 9, 2020 at 4:08 PM NIKHIL PATIL 
<nikhilv...@gmail.com<mailto:nikhilv...@gmail.com>> wrote:
Hi Aleksander ,
    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 ?
    ModemManager package is in meta-openembedded layer .

    build platform :- yocto


On Mon, Dec 7, 2020 at 7:09 PM Aleksander Morgado 
<aleksan...@aleksander.es<mailto:aleksan...@aleksander.es>> wrote:
Hey

The --debug option gives you 2 things: debug log and AT command
support via the Command() API.

The mmcli -G DEBUG option only changes the debug log level.

If you need the AT command support via Command() you need either the
--debug option as you were using, or otherwise make sure you build
ModemManager using the --with-at-command-via-dbus configure option

On Mon, Dec 7, 2020 at 11:18 AM NIKHIL PATIL 
<nikhilv...@gmail.com<mailto:nikhilv...@gmail.com>> wrote:
>
> Hi ,
>  I tried to enable using    " mmcli -G DEBUG "  it come successfully enable 
> debug logging level .
>   but , when we run AT command using mmcli we are getting same error as 
> before (error :- modemmanager should in debug mode ).
>   how we can proceed on these ?
>
> On Sun, Dec 6, 2020 at 1:17 PM Aleksander Morgado 
> <aleksan...@aleksander.es<mailto:aleksan...@aleksander.es>> wrote:
>>
>> Hey
>>
>> >     After board boots we are changing the ModeManger.service as 
>> > (ExecStart=/usr/sbin/ModemManager --debug)
>> > but that is not good practice.
>> >
>> >     How We can run ModemManager in debug mode while compiling yocto image 
>> > itself ?
>> >     build platform = yocto
>>
>> The --debug option gives you 2 things: debug log and AT command
>> support via the Command() API.
>>
>> If it's a change you require always by default in all your builds, you
>> could patch the ModemManager recipe to modify the service file to add
>> the --debug.
>>
>> If you need to enable the debug log only sometimes during runtime, you
>> could use "mmcli -G DEBUG" to change the daemon logging level.
>>
>> If what you need is to unconditionally have AT command support via the
>> Command() API always, you can modify the ModemManager recipe to
>> configure the build with the --with-at-command-via-dbus option, that
>> will enable that API by default regardless of whether --debug is used
>> during runtime or not.
>>
>> --
>> Aleksander
>> https://aleksander.es



--
Aleksander
https://aleksander.es
_______________________________________________
ModemManager-devel mailing list
ModemManager-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/modemmanager-devel

Reply via email to