$ python cc2420_txtest_usrp2.py
linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.005.001-49-stable
Traceback (most recent call last):
File "cc2420_txtest_usrp2.py", line 13, in <module>
from gnuradio.ucla_blks import ieee802_15_4_pkt
File "/usr/local/lib/python2.7/dist-packages/gnuradio/ucla_blks/ieee802_15_4_pkt.py", line 27, in <module>
import Numeric
ImportError: No module named Numeric
$ cd /usr/local/lib/python2.7/dist-packages/gnuradio/ucla_blks/
$ sudo backup ieee802_15_4_pkt.py
$ vim ieee802_15_4_pkt.py
$ diff ieee802_15_4_pkt.py.20141212.111410 ieee802_15_4_pkt.py
27c27,28
< import Numeric
---
> #import Numeric
> import numpy
30c31
< from gnruadio import gr, gru
---
> from gnuradio import gr, gru
$ python cc2420_txtest_usrp2.py
linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.005.001-49-stable
Blocked waiting for GDB attach (pid = 12769)
Press Enter to continue:
-- Opening a USRP2/N-Series device...
-- Current recv frame size: 1472 bytes
-- Current send frame size: 1472 bytes
UHD Warning:
The recv buffer could not be resized sufficiently.
Target sock buff size: 50000000 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=50000000
UHD Warning:
The recv buffer could not be resized sufficiently.
Target sock buff size: 50000000 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=50000000
UHD Warning:
The send buffer could not be resized sufficiently.
Target sock buff size: 1048576 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.wmem_max=1048576
-- Detecting internal GPSDO.... Found a Jackson Labs GPS
-- found
UHD Warning:
Unable to set the thread priority. Performance may be negatively affected.
Please see the general application notes in the manual for instructions.
EnvironmentError: OSError: error in pthread_setschedparam
-- Setting references to the internal GPSDO
-- Initializing time to the internal GPSDO
No gain specified.
Setting gain to 17.500000 (from [0.000000, 35.000000])
You must specify -f FREQ or --freq FREQ
いろいろ細かいところを変更(下の方に変更点を全て記述)
$ vim cc2420_txtest_usrp2.py
$ python cc2420_txtest_usrp2.py
linux; GNU C++ version 4.6.3; Boost_104601; UHD_003.005.001-49-stable
Blocked waiting for GDB attach (pid = 12938)
Press Enter to continue:
-- Opening a USRP2/N-Series device...
-- Current recv frame size: 1472 bytes
-- Current send frame size: 1472 bytes
UHD Warning:
The recv buffer could not be resized sufficiently.
Target sock buff size: 50000000 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=50000000
UHD Warning:
The recv buffer could not be resized sufficiently.
Target sock buff size: 50000000 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.rmem_max=50000000
UHD Warning:
The send buffer could not be resized sufficiently.
Target sock buff size: 1048576 bytes.
Actual sock buff size: 131071 bytes.
See the transport application notes on buffer resizing.
Please run: sudo sysctl -w net.core.wmem_max=1048576
-- Detecting internal GPSDO.... Found a Jackson Labs GPS
-- found
UHD Warning:
Unable to set the thread priority. Performance may be negatively affected.
Please see the general application notes in the manual for instructions.
EnvironmentError: OSError: error in pthread_setschedparam
-- Setting references to the internal GPSDO
-- Initializing time to the internal GPSDO
No gain specified.
Setting gain to 17.500000 (from [0.000000, 35.000000])
cordic_freq = 2.425G
data_rate = 2M
samples_per_symbol = 2
usrp_interp = 25
Using Volk machine: avx_64
send message 2:
UUsend message 3:
Usend message 4:
Usend message 5:
UTraceback (most recent call last):
File "cc2420_txtest_usrp2.py", line 121, in <module>
main ()
File "cc2420_txtest_usrp2.py", line 111, in main
time.sleep(options.msg_interval)
KeyboardInterrupt
# 動いた.
# cc2420とは通信できなかった…ペイロードが異なる?