discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Discuss-gnuradio] Getting values from external program.


From: Jeon
Subject: [Discuss-gnuradio] Getting values from external program.
Date: Wed, 12 Oct 2016 21:16:56 +0900

Just get to the point.

I have a Bluetooth dongle connected to my PC. I can read a MAC address and internal clock value by typing `hcitool dev` and `hcitool clock` in command line. You can see demo in link below:

http://i.imgur.com/hbQcBQq.png

What I want is to make GNU Radio get those values/contents.

Currently, I've planned to make a source block expressed in pseudocode:

    work(args) {
        file_pointer = popen("hcitool dev"); // or "hcitool clock"
        buf = read(fp);
        val = some_char_array_manipulation(buf);
        publish_message(val);
        pclose(file_pointer);
    }

Recently, I found that ControlPort can bridge GNU Radio and other programs. Well, however, I am new to ControlPort (just used for PerfMonitor) and seems more complicated than the pseudocode above.

Which would you recommend? One condition is, I need to retrieve contents from "hcitool clock" as fast as the system (GNU Radio) can.

Regards,
Jeon.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]