Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
Single shot transmission or how to stop endless loop #16
Comments
|
@Mictronics I had the same issue, so I changed the block to tagged_stream to make it work. I have added a pull request to this project so hopefully you can use it when the pull request is approved or you can get it from my repo. Good luck! |
|
Thanks, will try. |
Great, let us know how it goes |
|
@A1337CBS Reading into tagged_stream_block make me wonder whether your code is missing an I tried your PR and also modified my project from sync to tagged_stream block. However, I no longer receive any RF output (via hackrf) on a radio scanner nearby. Debugging shows that 32 byte noutput_items are generated in work (from 168 bit input) when a PDU message is received. |
|
Half working. With enable_input=false the cyclic RF output is back, with both, yours and my code. RF on sentence message still not working. |
|
@Mictronics Its been a while since I looked at the code but will look at up when I have time. I am confused though, can you let me know what are you trying to do and post a screenshot of your flowgraph? |
|
@A1337CBS Porting stuff to GR3.8 and Python3 to avoid any hassle in future. Started with a new module from scratch. I'm on the way, stay tuned, I will report back. Steep learning curve btw, I like that. |
|
First working code, more to come. https://github.com/Mictronics/ais-simulator |
I'm using your project as base for an AIS simulator. Implemented some code from another fork, so I can change sentence on the fly.
However, the top_block is running in endless loop, repeating transmission of a sentence. The build_frame block seems to have a "Repeat" option but obviously without effect. Repetition speed seems to be limited only be a delay at the end of "work" function in build_frame implementation.
So, how can I stop endless repetition of a sentence and create a single shot transmission?
Or, how to tell GNU radio that this flow/top_block shall run only one time then return?
Any help appreciated, thanks.
The text was updated successfully, but these errors were encountered: