Hi Shumin,
netcat (nc) uses TCP by default, but your Socket PDU is set to UDP. So
you are sending and listening to two different sockets.
There are two ways to fix that (but don't apply both at the same time or
it won't work again):
1. Switch the PDU Socket type to TCP Server (like it is done it the
reference you linked).
2. Use the command "nc -u 127.0.0.1 52001" where the -u option will make
netcat use UDP instead.
Yours
Martin
On 09.12.20 09:47, Shumin Yao wrote:
> Hi,
>
> I am working on a straightforward project. In the project, there is a
> Vector Source transmits a vector to a Socket PDU module. I am trying to
> print the vector received by the Socket PDU module on the terminal but
> fail to do that.
>
> My settings are as follows. The transmitted vector is full of "1"s. The
> host of the Socket PDU module is set to "127.0.0.1", and the port of the
> Socket PDU module is set to "52001".
>
> On the terminal window, I type a command "nc 127.0.0.1 52001" (according
> to Section 3 in [1]) but obtain nothing.
>
> Am I missing something?
>
> Note: the screenshot of my flowgraph is attached.
>
> [1] http://joshuaedgcombe.com/getting-started-with-gnu-radio/
>
> Thank you for reading this mail,
>
> Shumin Yao.
>
No comments:
Post a Comment