First the grc graph:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUzwrXasDh6bIHxxVuY-REbcI8XRZHceu0TLM4yG7kfKZXISz5IMX9DEauqxnB0PV5BnnK_q5Phn8Xx_z-GyVbTkam56aRdm7Txw-ZOlV83Gtkm17M-jnUxseacqXUagQ9jkdaOaiip7s/s640/ed1c1f9edb13c5f79ab1d9432d0f9ff.png)
For making GNU Radio to connect Hackrf One, I set the "Device Arguments" to "hackrf=0" same as in osmocom source block which works fine. And I found this argument in the documentation of the block.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjV5gBt87U1U9sL-9VhAQYQ0CaxiFfN9kF3bn6DEdQ5s-yZYS-W7xwBejxFN7s8FFOr6IX2-8ACqwGL5pXQF7TswJQhiAvW3vn7RrKeE0NsJq4FKpjMsvK-KYooHYPtlr_ffpOZSB9VWyw/s400/33fe74bf66563c465fc76b46936e60f.png)
Then I execute the flow graph and get the error:
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh2S1-Z5a_A1rKWb3kUx4HDreO_K7CASfaUWqLoEO5ZBxoNJpnFJrIJqjMuktWishtD4fTPXWCdYEdrRrcF-mTp2VMxoUVbAmNATvUfHJQt5E57aryNIhOSRTuk5zNZRKNKJFLXTFBtUpI/s640/52d0aa990392e9c7c697f9660b4a629.png)
This really confuses me... Same hardware, same driver, same pc...
OK, time to read some codes.
At last, I found this code:
https://git.osmocom.org/gr-osmosdr/tree/lib/hackrf/hackrf_common.cc
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUD9eC-er11TpmnvE1MusQni1T8Wz1CCphyoHdRg_6InB1SBvFoeEpe0xBWIQxfuBiDzJk-lORIbI8s5xU1SjrZtUVFeX_EiSSWb9kxuTCcDlIyXpAyJJ7zS0JCWYVy1jerMMYHGWr6c0/s1600/7b5b19e256fd5d7aa97f6d1575529e8.png)
It seems when osmocom block is finding a hackrf device with specified serail number given by the block properties window.
Then I tried to remove the "=0" texts from arguments.
Yeah, it worked...
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg5Sckf4kHyHHIY5GcshfrVOL6xGO4xmF3lMLT03tGKr2ZRlXQxutC6lHRTK3WQQIco2ImybbbPpKCiiNaEvmBe7Mbvgmr2Zefjyg8LsBFz68x51o7_9kT-l2LonCVDWhMov4cxfbMbSLY/s640/36dda5fa954538820fd668fb11f8d05.png)
Just like the osmocom source block.
But the "=0" argment takes no effect on osmocom source block...
Why...
🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔🤔
没有评论:
发表评论