daniestevez / gr4-packet-modem

Packet modem for GNU Radio 4.0
10 stars 1 forks source link

Packet to Stream block cannot be implemented #3

Closed daniestevez closed 4 months ago

daniestevez commented 4 months ago

There doesn't seem to be a way to implement the Packet to Stream block with the current GR4 runtime. The runtime cannot understand that this block is able to produce output even when it has no input, and that its processBulk() function should be called.

This issue blocks the implementation of the complete packet transmitter in its independent-packet form (but not in its continuous-stream form).

daniestevez commented 4 months ago

It seems that I had misunderstood the problem. In the packet to stream example I was running with a single-threaded scheduler and sleeping in the packet strobe block, so the scheduler couldn't call packet to stream at the same time. The problem goes away if the packet strobe block is told not to sleep or if a multi-threaded scheduler is used (but in that case there are bugs with tag propagation).