Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PDU Head/Tail crashes with soft bit PDU #507

Open
mondbaron opened this issue Jul 21, 2023 · 1 comment
Open

PDU Head/Tail crashes with soft bit PDU #507

mondbaron opened this issue Jul 21, 2023 · 1 comment

Comments

@mondbaron
Copy link

mondbaron commented Jul 21, 2023

I tried to use PDU Head/Tail to retrieve the tail without the ASM of a soft bit PDU stream:

BPSK Demodulator -> Sync and create PDU soft -> PDU Head/Tail -> ...

The sync block finds a packet and afterwards the flowgraph crashes with

***** VERBOSE PDU DEBUG PRINT ******
()
pdu length =       8320 bytes (printing disabled)
************************************
thread_body_wrapper :error: ERROR thread[thread-per-block[22]: <block pdu_head_tail(4)>]: pmt_u8vector_elements: wrong_type #[-1.129528 -1.015640 1.115806 0.741441 -0.994889 ...

Using: GNU Radio Companion 3.10.6.0

@daniestevez
Copy link
Owner

daniestevez commented Jul 21, 2023

Indeed PDU Head/Tail currently assumes that the PDU contains an u8vector. Certainly it could be made to to work with any type of PMT uniform vector (and now that I look at the code again, there is no need to copy the data to a second vector cut_msg).

By the way, the output of Sync and create PDU soft does not include the ASM. But a PDU Head/Tail supporting f32vector would be needed if you want to skip headers as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants