Component Module for GNU radio
Posted
#1
(In Topic #1274)
Regular

I have working my software project for well over a year now, I need to find a way to add in a Software Defined Radio (SDR) into this project, at the moment I am sending out a strings as UDP to GNU Radio. Where the UDP data is modulated and demodulated using in GNU Radio as SDR blocks to be sent to my sound card. If I could edit the SDR stages within GNU Radio or maybe an editor window in Gambas, then by using this GNU Radio configuration file it could be read into a Gambas module. That way I could send strings in and out to this module, with sliders and the like, to interface directly.
I not sure what work would be involve to do this or not, but more of an idea at this stage, any feedback on this subject?
For now I will keep on using UDP with different ports, to send data out and back in, with one for more for interfacing and control.
Posted
Guru

If you could upload a file and explain what you want it converted, or manipulated, to, we may be able to help a little more.
Posted
Regular

GNU Radio
The project I am working on hes two parts one in written in Gambas and the other is in GNU Radio, I going from one to the other via User Datagram Protocol (UDP). The Gambas part is the user interface and the GNU Radio back end, for the radio signals (modulator / demodulator). Is it possible to have a way to use GNU Radio to work within Gambas more like what is done with the Media player Module for example? That way it could be all in one development environment, that has a more direct way to talk to radio software without the need to go in and out via UDP.
I am not sure if this is more helpful or not?
Posted
Administrator

If gnu radio is based on some c library it would be possible for one with know-how in connecting C libraries and Gambas to write a component to directly communicate with the gnu-radio library.GrantXTV said
Is it possible to have a way to use GNU Radio to work within Gambas more like what is done with the Media player Module for example? That way it could be all in one development environment, that has a more direct way to talk to radio software without the need to go in and out via UDP.
That would make working with gnu radio from gambas a lot easier I guess.
More info on connection external C libraries to Gambas: https://gambaswiki.org/wiki/howto/extern
Good luck..
gbWilly
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
- Gambas Dutch translator
- Gambas wiki content contributor
- Gambas debian/ubuntu package recipe contributor
- GambOS, a distro for learning Gambas and more…
- Gambas3 Debian/Ubuntu repositories
… there is always a Catch if things go wrong!
Posted
Regular

Posted
Regular

Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

The library is written in C++:
GNU Radio Manual and C++ API Reference: Usage Manual
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

I found this:GrantXTV said
Is it possible to have a way to use GNU Radio to work within Gambas more like what is done with the Mediaplayer Module for example?
Simple DVB with Gstreamer and GNU Radio - OZ9AEC Website
:? I don't know if that is really consistent with what you are looking for.
Anyway, using the gb.media Component resources, I converted to Gambas the first example, shown on that page, in which a RAW format file is then created from a webcam shot.
Code (gambas)
- pl = New MediaPipeline
- src["device"] = "/dev/video0"
- tol["text"] = "Test Video"
- tol["valignment"] = bottom
- enc["bitrate"] = 1000
- snk["location"] = "/tmp/video.raw" ' <--- the final RAW video file
- ' Connect "GStreamer" plugins:
- src.LinkTo(cnv)
- cnv.LinkTo(tol)
- tol.LinkTo(enc)
- enc.LinkTo(mux)
- mux.LinkTo(snk)
- ' Starts webcam video:
- pl.Play()
- tm = Now
- ' Time elapsed from the beginning of the video shooting is shown in console/Terminal:
- Wait 0.01
- Print "\nRecording ended !"
- ' Having used the "Application_Read()" Event, you must use the "Quit" statement to terminate the program and thus create the video file:
- bo = True
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

Posted
Regular

Theoretically from GNUradio resources (which now we know are written in C++) to the implementation of appropriate Gambas Component.GrantXTV said
…. maybe something like gb.gnuradio is what is needed? I would not know how to go about making this, as this is all new to me.
[Gambas-user] Making a simple C++ component
Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

Posted
Regular

Europaeus sum !
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Posted
Regular

Well is there anyone who would like to take on this project? it is not my area knowledge.
1 guest and 0 members have just viewed this.

