# Carrier sense MAC / realtime / etc

**URL:** <https://www.ruby-forum.com/t/carrier-sense-mac-realtime-etc/63992>\
**Category:** GNU Radio\
**Created:** [June 21, 2006, 3:14am UTC](https://www.ruby-forum.com/t/carrier-sense-mac-realtime-etc/63992 "2006-06-21T03:14:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@blair](https://www.ruby-forum.com/u/blair)\
**Post date:** [June 21, 2006, 3:14am UTC](https://www.ruby-forum.com/t/carrier-sense-mac-realtime-etc/63992/1 "2006-06-21T03:14:40Z")

</div>

I’ve just finished checking in a bunch of modifications to  
gnuradio-core and gnuradio-examples. These are the culmination of  
work with Matt over the past few days.

Summary: If you’re tracking CVS+SVN, now’s a good time to update:

gnuradio-core  
usrp  
gr-usrp  
gnuradio-examples

We now have a workable carrier sense MAC.  
The old tunnel\_ip\_null\_mac.py has been removed, and is replaced  
by gnuradio-examples/python/gmsk2/tunnel.py

tunnel.py enables real time scheduling if possible, and implements the  
carrier sense MAC. Running with a raw bitrate of 500k, I’ve been able  
to scp files across the air at aggregate throughput of about 50KB/sec.  
This was tested by using scp to simultaneously pull large files from  
the other node.

There was a bug in tunnel\_ip\_null\_mac that was silently truncating  
large packets, causing TCP throughput to approach zero. That’s fixed  
in tunnel.py

The gmsk2\_pkt.py code is now deprecated, and has been replaced by the  
modulation independent pkt.py. Likewise, all the examples and support  
code in gnuradio-examples/python/gmsk2 have been updated to use this.

If you’ve built similar examples, and they used the receive\_path and  
transmit\_path.py files, your code will need a bit of work. Take a  
look at the new examples to note the changes in the constructor  
arguments.

The README in gnuradio-examples/python/gmsk2 has also be updated to  
reflect the new reality, and to emphasize that the Linux 2.6 kernel  
ships with the tun/tap driver.

Have fun!

Eric

---

<div class="post-metadata">

**Author:** ![blair](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/c37758/32.png) [@blair](https://www.ruby-forum.com/u/blair)\
**Post date:** [June 21, 2006, 6:20am UTC](https://www.ruby-forum.com/t/carrier-sense-mac-realtime-etc/63992/2 "2006-06-21T06:20:13Z")

</div>

I wasn’t sure I understood what exactly that was doing, so I looked  
for some archives:

[http://www.archivum.info/removed\_email\_address@domain.invalid/2005-11/index.html](http://www.archivum.info/removed_email_address@domain.invalid/2005-11/index.html)

in this e-mail you said:

“It’s an optional feature that we plan to use with  
a bunch of the daughterboards. Depending on whether there’s data in  
the FPGA transmit fifo or not, specified daughterboard pins  
automatically change state.”

So, are you saying that if the transmitter isn’t doing anything make  
certain pins on the daughterboards will be switched to receive, and  
if the transmitter is doing something then the pins are switched back  
to transmit??? Is this only for the RFX boards?

let me know if I’m on the right track. it sounds like its some  
underlying function that doesn’t effect my work at the moment, but  
its always good to have some idea of how the code you’re using works ; )

David S.
