Hi Charlie,

It's been a while since I've touched Java/Android stuff, but those are
ControlPort functions (part of the GNU Radio API). To use them they have to
be wrapped by the JNI which looks like it was done with
https://github.com/trondeau/GrRxFM/blob/master/controlport/src/main/java/gnuradio.thrift#L103
They are RPC service calls that Thrift should build actual code for as part
of your app build process.

My guess from what I remember working with this is that you have to set up
your gradle/whatever the "project" build system is called now correctly so
that your app gui/main thread can see those service definitions.

On Mon, Oct 17, 2016 at 10:10 PM, Charlie Von <charlie_...@msn.com> wrote:

> Hello every friend,
>
> Could I spare you a few minutes? :) My Teammates and I have learned to
> develop an application using B200mini on Android. We followed Mr.Trondeau
> instructions on http://gnuradio.org/redmine/projects/gnuradio/wiki/Android
> that very helpful for our work. Thank you very much.
> Here are some questions to ask. I would be greatly appreciated if you can
> reply them.
>
> We study the code of GrRxFM project which download from
> https://github.com/trondeau/GrRxFM and find that some lines of codes in
> OnDraw() function in SampleView.java are commented. We guess these codes
> can realize the function that get raw data from flowgraph. However, we
> cannot find the implementation of some key functions. Could you please give
> some explanations or some details about these functions and variables.
>
>
> /////////////////////////////////////
> Extracted from SampleView.java
>
> mGraph.postGetKnob(a);
>
> RunGraph.CPHandlerGet h = mGraph.mControlPortThread.getHandlerGet();
>
> HashMap<String, RPCConnection.KnobInfo> k = h.getKnobs();
>
> ////////////////////////////////////
>
> Rungraph.CPHandleGet, how to define this class?
> mGraph.mControlPortThread.getHandlerGet() how to realize this member
> function?
> and h.getKnobs()  how to realize this member function?
>
>
> We confused by these questions for some weeks and we would be greatly
> appreciated if you can reply them.
>
>
> Thank you very much!
>
> sincerely Charlie
> 2016 1018 1010
>
>
> _______________________________________________
> Discuss-gnuradio mailing list
> Discuss-gnuradio@gnu.org
> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
>
>
_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to