On Tue, Dec 05, 2006 at 11:06:04AM +0800, Jeremy Chew wrote:
Thanks Eric.
Regarding the packet data-type, since I'm modifying
gnuradio-examples-0.7/python/gmsk2/tunnel_ip_null_mac.py, I want to have
the same format used
in that file. Based on examination of the Python code used in there, I
understand that the packets are Python strings.
Could I confirm that this is true? I'm afraid that a wrong packet
data-type
is
causing the crash when the callback is called.
Jeremy
It's a SWIG wrapped C++ gr_message_sptr. It is not a string.
address@hidden ~]$ python
Python 2.4.2 (#1, Oct 13 2006, 17:11:24)
[GCC 4.1.0 (SUSE Linux)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
from gnuradio import gr
m=gr.message()
m
<gnuradio.gr.gnuradio_swig_python.gr_message_sptr; proxy of <Swig Object
of type 'gr_message_sptr *' at 0x80c44b8> >
type(m)
<class 'gnuradio.gr.gnuradio_swig_python.gr_message_sptr'>