RFID Hacking/usrp/

From Noisebridge
< RFID Hacking(Difference between revisions)
Jump to: navigation, search
Line 27: Line 27:
  
 
gnuradio build:
 
gnuradio build:
./configure --prefix=/usr/local/gnuradio-rfid --enable-gr-gen2-rfid --enable-gnuradio-core
+
./configure --prefix=/usr/local/gnuradio-rfid --enable-gr-gen2-rfid --enable-gnuradio-core --enable-gr-audio-oss
  
 
make
 
make
Line 35: Line 35:
 
step #8
 
step #8
 
cp gen2_reader/gnuradio/misc_files/gen2_reader.rbf /usr/local/gnuradio-rfid/share/usrp/rev4
 
cp gen2_reader/gnuradio/misc_files/gen2_reader.rbf /usr/local/gnuradio-rfid/share/usrp/rev4
 +
 +
 +
step #9
 +
<PRE>
 +
42,48d41
 +
< // FIXME NB
 +
< inline float min(float a, float b)
 +
< {
 +
<  return a <= b ? a : b;
 +
< }
 +
<
 +
<
 +
645,647c638,639
 +
<    //FIXME NB
 +
<    //int mm = std::min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
 +
<    int mm = min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
 +
---
 +
>   
 +
>    int mm = std::min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
 +
</PRE>

Revision as of 18:28, 11 April 2009

notes about the install procedure for someone's modified gnuradio library:

$ svn co -r 10532 http://gnuradio.org/svn/gnuradio/trunk gnuradio

step #1 Copy gen2_reader/gnuradio/misc_files/grc_gr_gen2_rfid.m4 to gnuradio/config

cp gen2_reader/gnuradio/misc_files/grc_gr_gen2_rfid.m4 gnuradio/config

step #2

cp -a gen2_reader/gnuradio/gr-gen2-rfid gnuradio/

step #4 line 304: GRC_GR_GEN2_RFID

--

This here are software dependencies from a different gnuradio project so it should contain most gnuradio dependencies : apt-get install -y libboost-dev python python2.5-dev libfftw3-dev swig sdcc-nf libusb-dev guile-1.8-dev libcppunit-dev libosip2-dev libortp7-dev asterisk

gnuradio dependencies:

  • built/installed the latest libboost

apt-get install libgsl0-dev

gnuradio build: ./configure --prefix=/usr/local/gnuradio-rfid --enable-gr-gen2-rfid --enable-gnuradio-core --enable-gr-audio-oss

make

make install

step #8 cp gen2_reader/gnuradio/misc_files/gen2_reader.rbf /usr/local/gnuradio-rfid/share/usrp/rev4


step #9

42,48d41
< // FIXME NB
< inline float min(float a, float b)
< {
<   return a <= b ? a : b;
< }
< 
< 
645,647c638,639
<    //FIXME NB
<     //int mm = std::min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
<     int mm = min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
---
>     
>     int mm = std::min((tx_msg->length() - d_msg_count) / sizeof(gr_complex), (long unsigned int) noutput_items - nout);
Personal tools