This is the result after making the prefix modification in the 
cdma_parameters.py file and opening a python session:
>>> from cdma import cdma_parametersCDMA PARAMETERS : for adaptive modulation
bits_per_header= 36
symbols_per_header= 36


bits_per_coded_symbol = [2, 3]  for [uncoded QPSK, rate 2/3 cc &8PSK] 
respectively.

payload_bytes_per_frame= 50
symbols_per_frame= 260
trellis_coded_payload_symbols_per_frame= 216  for [uncoded QPSK, rate 2/3 cc 
&8PSK] respectively.

trellis_coded_payload_bytes_per_frame= [54, 81]  for [uncoded QPSK, rate 2/3 cc 
&8PSK] respectively.

additional_symbols_per_frame= 8  for [uncoded QPSK, rate 2/3 cc &8PSK] 
respectively.

additional_bytes_per_frame= [1, 1]  for [uncoded QPSK, rate 2/3 cc &8PSK] 
respectively.

you have wasted [0.01818181818181818, 0.012195121951219513] percent of bytes 
per payload for [uncoded QPSK, rate 2/3 cc &8PSK] with this symbols_per_frame 
setting.



training_length = 260


Normalized frequency interval =  0.000240384615385
Norma 

     On Friday, January 16, 2015 1:34 PM, Achilleas Anastasopoulos 
<anas...@umich.edu> wrote:
   

 yes, please disregard all previous changes.

They have been incorporated in the updated files.

So, please pull a clean copy from github.

Achilleas

On Fri, Jan 16, 2015 at 1:32 PM, Frank Pinto <frankpint...@yahoo.com> wrote:

Hello Achilleas, thank you I will do that! When I perform this edit in the 
python file should I disregard the changes we did yesterday in th 
cdma_parameters.py file line 124 which was changing the 
"digital_constellation_8psk_natural" with "digital.constellation_8psk" and keep 
the orginal code? 

     On Friday, January 16, 2015 1:23 PM, Achilleas Anastasopoulos 
<anas...@umich.edu> wrote:
   

 Frank,

please pull the latest version of gr-cdma.

You have to make a small edit in the cdma_parameters.py file
(see updated README file) before you install it.

Once you do that, open a python session and do

>>> from cdma import cdma_parameters

This should now give no errors.
Let us know of your progress.

Achilleas


On Thu, Jan 15, 2015 at 6:24 PM, Frank Pinto <frankpint...@yahoo.com> wrote:

I have applied the change, now the error reads: AttributeError: 'module' object 
has no attribute 'constellation_16qam'  

     On Thursday, January 15, 2015 3:37 PM, Achilleas Anastasopoulos 
<anas...@umich.edu> wrote:
   

 OK, great.

This is due to the fact a recent pull request has not yet been merged into 
gnuradio.
SO the constellation module does not have yet the "constellation_8psk_natural"
constellation.

There is a simple fix to that:

please go to your gr-cdma/python directory
and edit the file
cdma_parameters.py
In particular in line 124 change "digital.constellation_8psk_natural" with 
"digital.constellation_8psk".

Now you have to make, sudo make install, sudo ldconfig one more time.

Once you do that, please open a python session and redo

>>> from cdma import cdma_parameters as cp
and let us know what you get.
(if you don't get any errors you are ready to go!)


Achilleas




On Thu, Jan 15, 2015 at 1:25 PM, Frank Pinto <frankpint...@yahoo.com> wrote:

The result is:Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python2.7/dist-packages/cdma/__init__.py", line 34, in 
<module>
    import cdma_parameters
  File "/usr/local/lib/python2.7/dist-packages/cdma/cdma_parameters.py", line 
124, in <module>
    payload_mod = 
[digital.constellation_qpsk(),digital.constellation_8psk_natural(),digital.constellation_16qam()]
AttributeError: 'module' object has no attribute 'constellation_8psk_natural'

 

     On Thursday, January 15, 2015 1:14 PM, Achilleas Anastasopoulos 
<anas...@umich.edu> wrote:
   

 Frank,

Please do the following and report to us what you get.

Open a python session and write

>>> from cdma import cdma_parameters as cp

What is the result of this?

Achilleas



On Thu, Jan 15, 2015 at 12:12 PM, Frank Pinto <frankpint...@yahoo.com> wrote:


| Hello Sir, I just tried that and the first the hier block 
"amp_var_est_hier.grc gets compiled with no issues. However the others are 
producing errors in certain blocks and can therefore not compile. The error 
states "name 'cp' is not defined. And the import box is showing this error "Bad 
import syntax:import cdma.cdma_parameters as cp". This is where I am stuck at 
because it seems all the other blocks that are producing errors has this 'cp' 
in it somehow. 




Sent from Yahoo Mail for iPhone

At Jan 15, 2015, 11:57:05 AM, Achilleas Anastasopoulos<'anas...@umich.edu'> 
wrote:Frank, 

you have to follow the procedure in README by compiling ONE file at a time, 
and RELOADING the blocks as you go on, ie,

Load the hier block "amp_var_est_hier.grc", 
Compile it (this little button on GRC that looks like a pyramid, a sphere and 
an arrow)
Reload it (this little circle button on GRC)

Load "cdma_tx_hier.grc", 
compile it as before
reload


Load "chopper_correlator.grc",
compile
reload


etc...
 "cdma_rx_hier.grc", "cdma_tx_hier1.grc", "cdma_rx_hier1.grc" and compile them

Achilleas


On Thu, Jan 15, 2015 at 11:35 AM, Frank Pinto <frankpint...@yahoo.com> wrote:


| Hello Sir, I have read the readme.md file already. My first issue is where it 
states to "load all the hier blocks and compile them". When I loaded them via 
the GRC by clicking on "open an existing flowgraph" and selecting the files, I 
see that they all are missing some variables, information, and even blocks, and 
are shown as red. 
I have taken a picture to show you this. I am using version 3.7.5.1 of GNuRadio 
by the way 




Sent from Yahoo Mail for iPhone

At Jan 15, 2015, 11:29:05 AM, Frank Pinto<'frankpint...@yahoo.com'> wrote:Sir, 
I have read the readme.md file. My first issue is where it states load all the 
heir blocks and compile them  

     On Thursday, January 15, 2015 11:13 AM, Achilleas Anastasopoulos  wrote:
   

 There is no such instruction to be executed!

Please read the README.md file and let us know which one of the detailed 
instructions mentioned there you don't know how to execute.

Achilles
On Thu, Jan 15, 2015 at 10:52 AM, Frank Pinto <frankpint...@yahoo.com> wrote:

Ok. First instruction that I do not know how to execute is the import variable 
block that says "import coma.cdma_parameters as cp". What exactly am I supposed 
to be replacing in this section. 

     On Wednesday, January 14, 2015 7:08 PM, Frank Pinto 
<frankpint...@yahoo.com> wrote:
   

 Ok. First instruction that I do not know how to execute is "import 
coma.cdma_parameters as cp". What exactly am I supposed to be replacing in this 
section 

     On Wednesday, January 14, 2015 6:54 PM, Achilleas Anastasopoulos 
<anas...@umich.edu> wrote:
   

 Please follow the detailed instructions on the README.md file and 
let us know which of these does not work for you 
(or which of these instructions you don't know how to execute).

best
Achilleas

_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


    

    



    
 |




 |





    



    



    



   
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to