[srsran-users] Paging Sniffer Help

Robert Falkenberg robert.falkenberg at srs.io
Thu Jun 2 19:32:06 UTC 2022


Hi Alessandro,

take a look at the following lines in |pdsch_ue.c|. This should give you 
an example on how to the decoded data can be accessed.

|for (uint32_t tb = 0; tb < SRSRAN_MAX_CODEWORDS; tb++) { if 
(pdsch_cfg.grant.tb[tb].enabled) { srsran_netsink_write(&net_sink, 
data[tb], 1 + (pdsch_cfg.grant.tb[tb].tbs - 1) / 8); } } |

Best regards,
Robert

On 01.06.22 13:29, Alessandro Amici wrote:

> Hi all guys!
>
> Sorry to bother you, I was trying to implement a sniffer for paging 
> messages and have made some progress but I am not sure i'm doing it 
> right: is it correct to say that the paging information is contained 
> within the file /lib/examples/pdsch_ue.c inside thestruct data[0] ? Is 
> it correct to try to print the uint8_t as a hexadecimal using the line 
> of code:
>
>
> for (int i=0; i<len; i++){
>     fprintf(output_file, " %02x", data[0][i]);
>   }
>
> Where len should be the size of data[0].
>
> And finally is there any variable that indicates the length of the 
> message you want to decode, so the size of data[0] in this case?
>
> Sorry again for the trouble and thanks for the help!
>
> Alessandro
>
> _______________________________________________srsran-users mailinglistsrsran-users at lists.srsran.comhttps://lists.srsran.com/mailman/listinfo/srsran-users

​
-- 


      RobertFalkenberg

Senior Engineer

Software Radio Systems

	
	
	
	

	robert at srs.io <mailto:robert at srs.io>

	www.srs.io <//www.srs.io>

	Dortmund, Germany




	
twitter <https://twitter.com/srssystems> 	
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.srsran.com/pipermail/srsran-users/attachments/20220602/debdd8c8/attachment.htm>


More information about the srsran-users mailing list