[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Discuss-gnuradio] Making a new packet_sink
From: |
address@hidden |
Subject: |
[Discuss-gnuradio] Making a new packet_sink |
Date: |
Thu, 15 Dec 2005 11:50:14 -0500 |
I am attempting to make a new version of packet_sink that uses a smaller
sync header and fix payload size to save some data bandwidth (remember my
low carrier frequency). I am attempting to generate a new block use the
gr-howto-write-a-block to make it cleaner and not change the original
packet_sink.
I get the following error when I try to run my version of gmsk_test.py from
gmsk2.
>>> gr_fir_ccf: using SSE
Traceback (most recent call last):
File "./gmsk_test.py", line 125, in ?
main()
File "./gmsk_test.py", line 91, in main
fg = my_graph(rx_callback, options.spb, options.bt, options.snr,
options.freq_error, pkt_size)
File "./gmsk_test.py", line 42, in __init__
threshold=4, omega=omega)
File
"/home/mrobitaille/GRworking/MRTS/src/lib/mrts/blksimpl/gmsk2_pkt.py", line
135, in __init__
payload_len_crc, threshold)
File "/home/mrobitaille/GRworking/MRTS/src/lib/mr.py", line 136, in
packet_sink
return _mr.packet_sink(*args)
AttributeError: 'module' object has no attribute 'packet_sink'
Note that I am using mr rather then howto. In the file mr.py, generated by
swig, it imports _mr. I did this manually and there is no _mr.packet_sink.
There is a mr.packet_sink in the mr package that was generated.
Also note that if I overwrite the original (before downloading and
installing the new 2.6 gnuradio I did this) gr_packet_sink my test script,
gmsk_test.py, works great.
The basic problem is why did swig not generate the _mr.packet_sink?
Attached are my some of the files I think are needed to answer this
question (I can only download 3).
Since I can't attach all files, here some other info.
My version of gmsk_test.py uses my version of gmsk2_pkt.py which calls my
new packet_sink
Some key lines in gmsk2_pkt:
import mr
# in class gmsk2_demod_pkts
self._packet_sink = mr.packet_sink(map(ord, access_code),
self._rcvd_pktq,
payload_len_crc, threshold)
Thanks in advance,
Mike
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
Makefile.am
Description: Makefile.am
mr.i
Description: mr.i
mr.py
Description: mr.py
- [Discuss-gnuradio] Making a new packet_sink,
address@hidden <=