This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
university:tools:pluto:hacking:listening_to_yourself [11 Jul 2019 02:04] – Small tweaks Travis Collins | university:tools:pluto:hacking:listening_to_yourself [05 Aug 2019 23:06] (current) – [Tx On, and not sending a signal] Robin Getz | ||
---|---|---|---|
Line 25: | Line 25: | ||
{{ : | {{ : | ||
- | Now our RSSI has gone to 90.5 dB and the hardware gain is set to 68 dB (which is still not at the max gain of the device), we are listening to ourselves, not the actual RF. | + | Now our RSSI has gone to 90.5 dB and the hardware gain is set to 68 dB (which is still not at the max gain of the device), we are listening to our own LO leakage, not the actual RF signal. |
===== Tx Off ===== | ===== Tx Off ===== | ||
Line 36: | Line 36: | ||
dev ' | dev ' | ||
</ | </ | ||
+ | |||
+ | This is the equivalent C source of: | ||
+ | < | ||
+ | /* Create IIO Context */ | ||
+ | ctx = iio_create_context_from_uri(" | ||
+ | |||
+ | /* Find IIO device in current context */ | ||
+ | dev = iio_context_find_device(ctx, | ||
+ | |||
+ | /* Find the IIO output channel in the current device */ | ||
+ | ch = iio_device_find_channel(dev, | ||
+ | |||
+ | /* Write a one into the IIO channel attribute */ | ||
+ | ret = iio_channel_attr_write_longlong(dev, | ||
+ | </ | ||
Then we get: | Then we get: |