# Message passing - PSDU block and sink connection

**URL:** <https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218>\
**Category:** GNU Radio\
**Created:** [September 26, 2012, 6:48am UTC](https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218 "2012-09-26T06:48:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![aris](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/258eb7/32.png) [@aris](https://www.ruby-forum.com/u/aris)\
**Post date:** [September 26, 2012, 6:48am UTC](https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218/1 "2012-09-26T06:48:17Z")

</div>

Hi,

I’ve just finished my block that generates PSDUs and then, it transmits  
downstream subscribers using message passing mechanism. I am using as a  
sink “Extras: Blob to Socket”, but when I run my flowgraph in GNU Radio  
Companion (after connect my new block and the sink), I got the following  
error:

Traceback (most recent call last):  
File “/home/usrpvm/Desktop/only\_test\_block/asrp/top\_block.py”, line  
51,  
in   
tb = top\_block()  
File “/home/usrpvm/Desktop/only\_test\_block/asrp/top\_block.py”, line  
33,  
in **init**  
0, 0, 0, 0, 0, 1, 1, 1)  
TypeError: unbound method make() must be called with my\_block instance  
as  
first argument (got int instance instead)

I would really appreciate some help with this issue. Thanks a lot,

Regards,

Jose

---

<div class="post-metadata">

**Author:** ![Jose\_TSDiaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jose\_TSDiaz](https://www.ruby-forum.com/u/Jose_TSDiaz)\
**Post date:** [September 26, 2012, 6:49am UTC](https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218/2 "2012-09-26T06:49:27Z")

</div>

On 09/26/2012 12:47 AM, Jose T. Diaz wrote:

> in
> 
> Jose

Can you post your xml and .i file?

-josh

---

<div class="post-metadata">

**Author:** ![Jose\_TSDiaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jose\_TSDiaz](https://www.ruby-forum.com/u/Jose_TSDiaz)\
**Post date:** [September 26, 2012, 6:59am UTC](https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218/3 "2012-09-26T06:59:23Z")

</div>

Hi Josh,

I’ve attached the xml file for “my\_block.xml”. I don’t have a .i file  
(like  
“my\_block.i”), because it is using the “extras\_blobs.i” file. I’ve  
attached  
for you extras\_blob.i and I added some lines to that .i file in order to  
include “my\_block”.

All the example is based on blob to stream and socket to block.

Many thanks for your kind help,

Regards,

Jose

---

<div class="post-metadata">

**Author:** ![Jose\_TSDiaz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/848f3c/32.png) [@Jose\_TSDiaz](https://www.ruby-forum.com/u/Jose_TSDiaz)\
**Post date:** [September 26, 2012, 8:48pm UTC](https://www.ruby-forum.com/t/message-passing-psdu-block-and-sink-connection/223218/4 "2012-09-26T20:48:31Z")

</div>

On 09/26/2012 12:47 AM, Jose T. Diaz wrote:

> in   
> tb = top\_block()  
> File “/home/usrpvm/Desktop/only\_test\_block/asrp/top\_block.py”, line 33,  
> in **init**  
> 0, 0, 0, 0, 0, 1, 1, 1)  
> TypeError: unbound method make() must be called with my\_block instance as  
> first argument (got int instance instead)

I think the code getting generated is malformed. You might double check  
 and the code in top\_block.py

-josh
