[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Message debug block

From: Vasil Velichkov
Subject: Re: Message debug block
Date: Fri, 19 Nov 2021 12:30:28 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

Hi Marcin,

On 18/11/2021 15.23, Marcin Puchlik wrote:
> *pmt.cons(pmt.intern(""), pmt.make_u8vector(16, 0xFF))  - *where Debug
> block cannot extract the PDU - gr::log :WARN: message_debug0 - Non PDU type
> message received. Dropping.

Not every message is a PDU [1]. Have a look at is_pdu() in pmt.h [2] and read 
the discussion in issue #4191 [3].

 * Returns true if the object is a PDU meaning:
 *   the object is a pair
 *   the car is a dictionary type object (including an empty dict)
 *   the cdr is a uniform vector of any type
PMT_API bool is_pdu(const pmt_t& obj);

[1] https://wiki.gnuradio.org/index.php/Message_Passing#PDUs
[3] https://github.com/gnuradio/gnuradio/issues/4191

reply via email to

[Prev in Thread] Current Thread [Next in Thread]