Commit Graph

80 Commits

Author SHA1 Message Date
paulc 19a5023270 Fixed concatenation of strings to work with modern C++ compilers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6347 acf43c95-373e-0410-b603-e72c3f656dc1
2019-03-13 15:16:40 +00:00
paulc c4c9e994f0 Renamed DebugGoOn to DebugCrit so it better matches its purpose.
Swapped order of DebugCall and DebugNote so DebugCall is less visible.
Changed default debug level to DebugNote.
Modified a few inadequate uses of DebugCrit.


git-svn-id: http://yate.null.ro/svn/yate/trunk@6250 acf43c95-373e-0410-b603-e72c3f656dc1
2017-08-01 13:08:23 +00:00
marian 754e0561fa Added configurable param (disabled by default) used to enable LMS chip autocal on device power on.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6247 acf43c95-373e-0410-b603-e72c3f656dc1
2017-07-31 13:59:46 +00:00
marian 2f247efea3 Disable frequency offset calibration on fatal error.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6245 acf43c95-373e-0410-b603-e72c3f656dc1
2017-07-03 11:03:26 +00:00
marian 3480211959 Added capability to configure buffered samples based on required sampling rate.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6244 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-28 14:01:26 +00:00
marian 554869663b Fixed error reporting. Fixed some returned codes. Added config params documentation.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6243 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-27 11:40:01 +00:00
marian c8c680e8bc Add device speed parameter to notification messages.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6241 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-23 08:44:27 +00:00
marian 3f4284b829 Fixed bug: copy radio params to radio.create message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6240 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-23 08:43:26 +00:00
marian d14f741ce3 Added configurable params for max supported samplig rate on super/high interface. Return HW not available code when no device is found.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6239 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-22 14:02:38 +00:00
marian 74af6b10ac Added recv thread priority config. Improved stats report.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6237 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-22 13:19:36 +00:00
marian eed4b72288 Documented calibration debug parameters. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6236 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-21 13:38:26 +00:00
marian 2b8c37f988 Fixed bug: fill last chunk also when repeating a built vector (pattern) in destination.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6235 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 12:44:07 +00:00
marian af6df24a06 Fixed bug: properly handle calculated result's index when calibrating using a single rx loop.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6234 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 11:24:53 +00:00
marian 5a9d41e180 Yield before sending data.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6233 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 11:22:50 +00:00
marian 118e2f8e32 Fixed bug: properly select PA (transmit) if enabled during loopback.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6232 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 09:15:48 +00:00
marian 13abda5438 Fixed bug: use the same config when running second baseband calibration. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6231 acf43c95-373e-0410-b603-e72c3f656dc1
2017-06-20 07:45:44 +00:00
marian 9f164a78e6 The number of buffers to use with libusb is now configurable. Use MMX if available to scale and saturate sent samples.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6216 acf43c95-373e-0410-b603-e72c3f656dc1
2017-05-09 12:41:41 +00:00
marian 4a5f653677 Stop frequency offset calibration when frequency offset is set by command after TX RF is enabled.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6200 acf43c95-373e-0410-b603-e72c3f656dc1
2017-04-03 12:54:34 +00:00
marian 9fb6af146e Put a debug message when starting specific calibration type.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6198 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-30 14:39:09 +00:00
marian 86899f4b31 Fixed calibration: use the same sampling rate and filter bw when calibrating. Renamed device check to loopback check. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6197 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 14:28:54 +00:00
marian 5ba976cbe1 Set broadcast for module.update sent to notify device events.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6196 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-29 08:24:52 +00:00
marian cddb6bc2e8 Moved radiotest module to modules/radio.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6193 acf43c95-373e-0410-b603-e72c3f656dc1
2017-03-22 09:11:01 +00:00
marian 8496611412 Added extra check for valid tunning frequency. Improved debug. Documented missing config param.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6183 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-13 12:20:54 +00:00
marian 2e99965357 Added capability to open a device specified by serial number. Fixed debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6182 acf43c95-373e-0410-b603-e72c3f656dc1
2017-02-10 15:22:51 +00:00
marian 66a3221ba0 Added support to notify device power on/off. Notify calibration termination also (put calibration parameters on success). Load calibration related parameters if returned in power on notification message.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6172 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 15:56:58 +00:00
marian 7eacae6f17 Fixed bug: removed semicolon after 'if' test. Fixed some debug format specifiers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6168 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:45:16 +00:00
marian 0bccdd4c92 Moved static data member init outside class declaration.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6167 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:39:52 +00:00
marian 4f7e82db4e Fixed data member type.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6166 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-20 11:24:45 +00:00
marian 3a18112a7f Frequency offset calibration by Razvan Varlan.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6164 acf43c95-373e-0410-b603-e72c3f656dc1
2017-01-12 14:56:58 +00:00
marian 63ca635f93 Use float instead of integer for frequency offset value.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6154 acf43c95-373e-0410-b603-e72c3f656dc1
2016-12-05 08:26:43 +00:00
marian bbcc577aa4 Fixed bug: avoid deadlock (ddebug build only).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6148 acf43c95-373e-0410-b603-e72c3f656dc1
2016-11-09 14:07:19 +00:00
marian c392c31c47 Added option (enabled by default) to simulate tx gain correction in software.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6141 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-27 11:39:56 +00:00
marian adf3f05900 Fake fpga gain set for TX only. Properly report set value. Improved debug.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6138 acf43c95-373e-0410-b603-e72c3f656dc1
2016-09-20 09:48:09 +00:00
marian 971ea0f692 Removed activity simulator from the internal send thread: it is eating the processor on higher sampling rates.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6131 acf43c95-373e-0410-b603-e72c3f656dc1
2016-08-19 14:17:55 +00:00
marian 549739060e Removed checking of rx vga gain (compare requested value with actual value) when changing it in radio interface: the value set in the board is rounded to a multiple of 3.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6126 acf43c95-373e-0410-b603-e72c3f656dc1
2016-07-08 07:58:23 +00:00
marian 96d4c7af10 Calibration fix and amplifier linearization feature (work in progress) by David Burgess.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6125 acf43c95-373e-0410-b603-e72c3f656dc1
2016-07-05 11:22:44 +00:00
marian 34a58b284f Replaced calibration algorithm (work in progress). Added asynchronous calibration support. Removed test capability.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6114 acf43c95-373e-0410-b603-e72c3f656dc1
2016-05-04 12:33:21 +00:00
marian 4c8b78b1b1 Additional check for Nuand's vendor and product when choosing a device to open.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6108 acf43c95-373e-0410-b603-e72c3f656dc1
2016-04-13 07:02:40 +00:00
marian 9802fbbc52 Added new, shorter, timeout for samples transfer. Properly handle incomplete transfers.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6067 acf43c95-373e-0410-b603-e72c3f656dc1
2015-11-19 15:15:01 +00:00
andrei 450f4ab68c Added LPF_BANDWIDTH auto calibration.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6057 acf43c95-373e-0410-b603-e72c3f656dc1
2015-10-26 08:32:54 +00:00
marian fb066c3e51 Removed unused RadioInterface methods and data. BladeRF driver is now advertising radio caps and is accumulating data to send to avoid short write operations.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6055 acf43c95-373e-0410-b603-e72c3f656dc1
2015-10-12 15:06:31 +00:00
marian a4ce1f1ed5 Implemented recv. Check for thread cancel when sleeping.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6054 acf43c95-373e-0410-b603-e72c3f656dc1
2015-10-12 07:35:58 +00:00
marian 85eb9cd410 Optimized sample scale and division.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6053 acf43c95-373e-0410-b603-e72c3f656dc1
2015-10-05 15:12:29 +00:00
marian 0abe6470bd Added option to set TX FPGA GAIN from config.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6047 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-25 13:48:19 +00:00
marian d190d4e8a2 Implemented configurable option for TX clamped samples debug threshold. Simplified parameters reload.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6046 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-22 14:30:38 +00:00
marian 9575abca85 Implemented timestamp resync. Added configurable option for allowed interval with timestamps in the past to make sure we are returning from read. Implemented capability to alter rx timestamps (for debug purposes).
git-svn-id: http://yate.null.ro/svn/yate/trunk@6045 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-22 13:36:26 +00:00
marian 085ca47e11 Properly translate libusb errors to RadioInterface codes.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6044 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-21 09:58:15 +00:00
marian e77d49348f Make a non timed lock when serializing tx/rx. Show current time when handling show commands.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6042 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-18 07:05:07 +00:00
marian ba6aef184f Fixed help string contents.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6041 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-17 12:33:24 +00:00
marian ff06c5a467 Added shorter versions of correction, vgagain and show commands.
git-svn-id: http://yate.null.ro/svn/yate/trunk@6040 acf43c95-373e-0410-b603-e72c3f656dc1
2015-09-17 12:28:54 +00:00