new tch/h block gives error

43 views
Skip to first unread message

pwr.kr...@gmail.com

unread,
Mar 13, 2019, 1:36:20 PM3/13/19
to gr-gsm
When i try to use the new tch/h block i got the following error:

    self.gsm_tch_h_decoder_0 = grgsm.tch_h_decoder(1, grgsm.TCH_AHS7_4, False)
AttributeError: 'module' object has no attribute 'TCH_AHS7_4'


someone can please help me ???


Vasil Velichkov

unread,
Mar 13, 2019, 2:05:19 PM3/13/19
to gr-gsm
Hi pwr.krn,


On Wednesday, March 13, 2019 at 7:36:20 PM UTC+2, pwr.kr...@gmail.com wrote:
When i try to use the new tch/h block i got the following error:

How you are using it, could you share your flowgraph or python script?
 
    self.gsm_tch_h_decoder_0 = grgsm.tch_h_decoder(1, grgsm.TCH_AHS7_4, False)
AttributeError: 'module' object has no attribute 'TCH_AHS7_4'


someone can please help me ???

The second argument of tch_h_decoder constructor is a string and not a value from the tch_mode enum like the tch_f_decoder constructor. For example see grgsm_decode line 107

    $ grgsm_decode --help

    --multi-rate=MULTI_RATE
                        The MultiRrate configuration element from the
                        Assignment Command message. Example: 28111a40. See
                        3GPP TS 44.018 - 10.5.2.21aa MultiRate configuration

Vasil Velichkov

unread,
Mar 13, 2019, 2:15:23 PM3/13/19
to gr-gsm
Hi pwr.krn,


On Wednesday, March 13, 2019 at 8:05:19 PM UTC+2, Vasil Velichkov wrote:
    self.gsm_tch_h_decoder_0 = grgsm.tch_h_decoder(1, grgsm.TCH_AHS7_4, False)
AttributeError: 'module' object has no attribute 'TCH_AHS7_4'


someone can please help me ???

The second argument of tch_h_decoder constructor is a string and not a value from the tch_mode enum like the tch_f_decoder constructor. For example see grgsm_decode line 107

    $ grgsm_decode --help

    --multi-rate=MULTI_RATE
                        The MultiRrate configuration element from the
                        Assignment Command message. Example: 28111a40. See
                        3GPP TS 44.018 - 10.5.2.21aa MultiRate configuration


The gsm_tch_h_decoder XML definition is wrong, I'm going to fix it and push a change for review in few hours.
Try to replace lines 22 to 54 with

  <param>
    <name>MultiRrate configuration</name>
    <key>multi_rate</key>
    <type>string</type>
  </param>

And then reinstall - "make && make install" from the build directory

Vasil Velichkov

unread,
Mar 13, 2019, 3:10:44 PM3/13/19
to gr-gsm
Hi,
Just pushed a  change for review https://gerrit.osmocom.org/c/gr-gsm/+/13246
One additional change have to be made, on line 6 replace $mode with $multi_rate

 <make>grgsm.tch_h_decoder($sub_channel, $multi_rate, $boundary_check)</make>

Message has been deleted

pwr.kr...@gmail.com

unread,
Mar 15, 2019, 11:44:27 AM3/15/19
to gr-gsm

Hello Vasil,

thank you for the fast support!

No it is working fine.

But it shows a lot of error messages:

Error! frame_nr:255551 mod26:23 fn_is_odd:0 length:-1
Error! frame_nr:255556 mod26:2 fn_is_odd:1 length:-1
Error! frame_nr:255560 mod26:6 fn_is_odd:0 length:-1
Error! frame_nr:255564 mod26:10 fn_is_odd:1 length:3
Error! frame_nr:255569 mod26:15 fn_is_odd:0 length:-1

and so  on....

andre2...@gmail.com

unread,
Mar 15, 2019, 2:15:46 PM3/15/19
to gr-gsm
 Vasil,

can the sub-channel number field changed, that it is possible to enter a string, like in the demapper?


Vasil Velichkov

unread,
Mar 16, 2019, 8:50:38 AM3/16/19
to gr-gsm
Hi pwr.krn,


On Friday, March 15, 2019 at 5:44:27 PM UTC+2, pwr.kr...@gmail.com wrote:
But it shows a lot of error messages:

Error! frame_nr:255551 mod26:23 fn_is_odd:0 length:-1
Error! frame_nr:255556 mod26:2 fn_is_odd:1 length:-1
Error! frame_nr:255560 mod26:6 fn_is_odd:0 length:-1
Error! frame_nr:255564 mod26:10 fn_is_odd:1 length:3
Error! frame_nr:255569 mod26:15 fn_is_odd:0 length:-1

and so  on....

Set  "Voice boundary detection" to true. See also https://github.com/ptrkrysik/gr-gsm/issues/451

Vasil Velichkov

unread,
Mar 16, 2019, 8:55:26 AM3/16/19
to gr-gsm
Hi Andre,


On Friday, March 15, 2019 at 8:15:46 PM UTC+2, andre2...@gmail.com wrote:
can the sub-channel number field changed, that it is possible to enter a string, like in the demapper? 

Yes it can be changed but it's an int and not a string.

Vasil Velichkov

unread,
Mar 16, 2019, 4:15:14 PM3/16/19
to Andre Kraller, gr-gsm
Hi Andre,

Please always reply to the mailing list and not directly to me.

On 16/03/2019 18.11, Andre Kraller wrote:
> As you may noticed i dont know much about programming,
> can you tell me, how i can change it?

Ok, could you share the flowgraph or the python script that you use?

Vasil Velichkov

unread,
Mar 18, 2019, 7:05:53 AM3/18/19
to gr-gsm
Hi Andre,


On Saturday, March 16, 2019 at 10:15:14 PM UTC+2, Vasil Velichkov wrote:
On 16/03/2019 18.11, Andre Kraller wrote:
> As you may noticed i dont know much about programming,
> can you tell me, how i can change it?

Ok, could you share the flowgraph or the python script that you use?

In the gnuradio-companion right-click on the block and select Properties


Right now the parameter's name is different - "TCH/H Channel" in the Demapper block and "sub-channel number" in the Decoder block but I'm going to change both to "Sub-channel number" in https://gerrit.osmocom.org/c/gr-gsm/+/13246



Reply all
Reply to author
Forward
0 new messages