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.
_______________________________________________ Discuss-gnuradio mailing list Discuss-gnuradio@gnu.org https://lists.gnu.org/mailman/listinfo/discuss-gnuradio