erikkaashoek
58cea9e6d2
Merge remote-tracking branch 'origin/DiSlord_test_branch'
6 years ago
DiSlord
c06b41953b
Rewrite waterfall code
...
Use integer CELL_Y data
It more fast and compact (allow speedup from 46ms to 34ms for update)
6 years ago
erikkaashoek
79e1c4ebda
selftest from console mode working again
6 years ago
erikkaashoek
4a2c18e98c
Selftest error screens can be captured
6 years ago
erikkaashoek
61cc1dc843
Remote control improvements
6 years ago
erikkaashoek
63e8cee471
Calculate correct CW sweep time when spur is on
6 years ago
erikkaashoek
7d259443ab
Added trigger cmd and level cmd in high output mode
6 years ago
erikkaashoek
3db1738e0b
Change to levelchange and sweeptime cmd added
6 years ago
erikkaashoek
88a9a0a866
Add output and f cmd and repair TIME status mismatch in high mode
6 years ago
erikkaashoek
39f01263ba
Hide one letter commands
6 years ago
erikkaashoek
6ce2439898
Shifted to scanraw to ensure compatibility
6 years ago
erikkaashoek
b17c8afdf2
Updated scan command
6 years ago
erikkaashoek
25a302b917
Updating sweep indicators
6 years ago
erikkaashoek
199c771d68
Refer realy off on reset and ui correction
6 years ago
erikkaashoek
e8ce011f5d
dBc, shift waterfall and do not reset cal output
6 years ago
erikkaashoek
3b61c73a11
Replace LCD size constants
6 years ago
erikkaashoek
879ae21538
zero span auto reflevel and display trigger level after setting
6 years ago
erikkaashoek
76bb2d59dc
UI errors corrected and some code squeeze
6 years ago
erikkaashoek
27313d4ea9
Do auto reflevel calculations scaled to scale
6 years ago
erikkaashoek
8f31d8fafd
Reflevel multiple of scale
6 years ago
erikkaashoek
77f8938edd
Many small ui updates
6 years ago
erikkaashoek
7f0efbfdf9
Scale entry and trace command afapted
6 years ago
erikkaashoek
a8a7209f9c
Output sweep time repaired and output on/off implemented
6 years ago
erikkaashoek
93a3c2f439
grid in Linear mode only 5,1,1 and "load" command added
6 years ago
erikkaashoek
9c0584abd7
Simplified scale/refpos approach
6 years ago
erikkaashoek
7100b9aee0
Level offset and sweep time added
6 years ago
erikkaashoek
5ce6439211
Command levelsweep added
6 years ago
erikkaashoek
979f369724
Added modulation and level commands
6 years ago
erikkaashoek
6a9d0737a7
Marker cmd now shows absolue level as 4th number
6 years ago
erikkaashoek
59b7d2b1ad
Stop auto attenuation with attunate command
6 years ago
erikkaashoek
3493e82d83
Small ui corrections
6 years ago
erikkaashoek
068bfacbcf
correction table added to config
6 years ago
erikkaashoek
c0e152f6c0
Small UI improvements and additional units
6 years ago
erikkaashoek
7a4f789a24
Spur menu and reffer startup
6 years ago
erikkaashoek
29821f98de
New menu working
6 years ago
erikkaashoek
330aa3c6ec
LINEARITY measurement added
6 years ago
erikkaashoek
40d5ceac61
Own_microsecond_delay busy loop
6 years ago
erikkaashoek
7ef36b08de
Powercycle SI4432
6 years ago
erikkaashoek
67d1a38816
Trigger debugged
6 years ago
erikkaashoek
ae63eaf7d2
Add trigger option
6 years ago
erikkaashoek
0827aaa16d
PC control working
6 years ago
erikkaashoek
eef33fa47f
Prepare for PC application
6 years ago
erikkaashoek
6c272d1f75
Small UI changes
6 years ago
erikkaashoek
d7763cec48
Add spur menu and cleanup code
6 years ago
erikkaashoek
2898c02d36
Load/Store of settings added
6 years ago
erikkaashoek
faea96b1c9
cmd selftest
6 years ago
erikkaashoek
6c1c5ea809
V0.2 working for board evaluation
6 years ago
erikkaashoek
955973e57b
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
1f7a0357a5
Making ULTRA_SA an option
6 years ago
erikkaashoek
20d9c2bbd6
Harmonic mode implemented
6 years ago
erikkaashoek
aa6c062341
Modify marker menu created adn ADF4351 core added
6 years ago
erikkaashoek
8bffd8ba36
Added harmonic mixer
6 years ago
erikkaashoek
2d430a4f58
Small improvements
6 years ago
erikkaashoek
a7ae6d4197
Serial experiements
6 years ago
erikkaashoek
fddb3310e7
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
3aa934bad8
Tracking generator output and cleaning up UI
6 years ago
erikkaashoek
a651ed2d38
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
1a2664943f
Many marker and measurement related updates
6 years ago
erikkaashoek
2ff78fa061
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
5f3aed5844
Menu structure adapted
6 years ago
erikkaashoek
e986514a18
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
6422f9c5ed
spur table updated and default IF corrected
6 years ago
erikkaashoek
993388625e
Improved SI4432 setup and selftest for sample time and attenuator
6 years ago
erikkaashoek
495063f5bf
First experiment with span in output mode
6 years ago
erikkaashoek
060879f459
Merge branch 'tinySA' into tinySA-v0.2
6 years ago
erikkaashoek
7d64766513
Optimize stack usage by shifting test and calibrate to lowest level
6 years ago
erikkaashoek
b7d2d87825
Corrected the attenuator error
6 years ago
erikkaashoek
0a03ff0a2f
Added full marker tracking
6 years ago
erikkaashoek
4683b88d0c
Menu update
6 years ago
erikkaashoek
ae326020e3
Merge branch 'master' into tinySA
6 years ago
erikkaashoek
dea4d02631
Cleanup settings
6 years ago
erikkaashoek
6c74a28458
Code cleaning
6 years ago
erikkaashoek
39da5289b4
Spur avoidance table added
6 years ago
erikkaashoek
b56af01ba2
Cleaning up the high input menu system
6 years ago
erikkaashoek
f2137f4f97
All except waterfall working
6 years ago
erikkaashoek
4353721ec5
First running port
6 years ago
TT
1656342eeb
feat: add bandwidth setting of detector
6 years ago
TT
0d407577f8
style: uniform code style and untabify
6 years ago
DiSlord
597c2c2958
Better solutiom of prev fixes (reload si5351 settings on sweep begin)
6 years ago
DiSlord
23c765b719
Fix very strange bug, on band 2
...
!!!!! Don`t understand why si5351 non stable on band 2 then change from band 3
It fixed if set before sweep one frequency from band 1 (for example 50MHz)
Possibly problem in tlv320aic3204_set_gain, call only si5351_set_frequency_with_offset not work
Little faster call command from shell
Fix interpolation if points < POINTS_COUNT
6 years ago
DiSlord
3eb8a4cfe9
Fix interpolation range if sweep_points!=source calibration points count
...
use sweep_points exept POINTS_COUNT on marker search and so
Now possible change sweep_points in process (for faster sweep)
6 years ago
DiSlord
45dfd7d970
Fix sweep if points < maximum (mot sweep if frequency[i] == 0)
...
Fix my tupo in extended scan command (not correctly parse point count)
6 years ago
DiSlord
8a11eaa764
Extend scan command, now in have additional input variable (optional), allow more faster get measured data
...
usage: scan {start(Hz)} {stop(Hz)} [points] [outmask]
[outmask] - optional, allow output measured data, its a mask (allow dec, hex, bin, oct)
0b001 - output frequency
0b010 - output CH0 data
0b100 - output CH1 data
Example:
'scan 1000000 5000000 101 0b111' - output data in format: freq ch0[0] ch0[1] ch1[0] ch1[1]
'scan 1000000 5000000 101 0b101' - output data in format: freq ch1[0] ch1[1]
'scan 1000000 5000000 101 0x7' - output data as 0b111
6 years ago
DiSlord
922b66abdb
Move offset variable to si5351.c (better use it as independent library)
...
Define and move constants in nanovna.h, and use it
Fix command 'marker' - display marker freq (not current freq)
6 years ago
DiSlord
88617a31fe
In ili9341.c remove tabs, add palette mode blit function
...
In plot.c prepare for 8bit/pixel mode (test, allow increase cell buffer size by use 4 or 8bit/pixel mode, but not need for now)
main.c little change wait execute shell command in sweep thread
6 years ago
DiSlord
8bdb650212
Implement color command, allow change color settings in config (enabled bu default ENABLE_COLOR_COMMAND)
...
Usage: usage: color {id} {rgb24}
- Grid color: id = -3
- Menu bg color: id = -2
- Selected menu: id = -1
- Trace 1-4: id = 0..3
Color in hex RGB format (but possible any type input, dec, hex, bin. oct)
6 years ago
DiSlord
6f25d0d43f
Remove Mutex use (CH_CFG_USE_MUTEXES = FALSE), now all Mutex depend functions run in sweep thread
...
It allow:
- reduce shell thread stack size
- more compact code
- fix some hardcoded scan command code, allow write better scan version
- run calibrate (not depend from pause sweep flag)
Rewrite uint32_t my_atoui(const char *p), now its allow read:
hex 0xaAbBcC1122
dec 12345678
bin 0b00011100
oct 0o12345678
Add some comments
6 years ago
DiSlord
04fb661b1a
Add flag in config for sweep mode
...
#define FREQ_MODE_START_STOP 0x0
#define FREQ_MODE_CENTER_SPAN 0x1
Now sweep mode not defined from frequency0 > frequency1 or frequency0 < frequency1
frequency0 always < frequency1
All freq must get by use get_sweep_frequency(mode)
Revert Select CH0 reflect channel before set freq, add additional delay on 0 sweep point
6 years ago
DiSlord
77b5d0bcc8
Select CH0 reflect channel before set freq (in some rare cases dsp started but CH not ready)
...
Little code optimization
Add commented 600kHz I2C bus timings (work, give x1.5 speed, but need change DSP ready timings not by wait_count, need use chVTGetSystemTimeX() its better)
6 years ago
TT
6befd57bc1
fix: segv in sample command
6 years ago
DiSlord
45f04420cb
Implement info command, move info_about[] to main.c
...
Command enabled by default: ENABLE_INFO_COMMAND
This feature not increase flash size
6 years ago
DiSlord
fc6e090595
Add vbat_offset to config
...
Implement vbat_offset command (if defined ENABLE_VBAT_OFFSET_COMMAND)
Reduce code size
6 years ago
DiSlord
bb7127fdd0
Remove variable, use speep_mode flag
6 years ago
DiSlord
e896f32803
Replace function wait_dsp(delay) by definition:
...
DSP_START(delay)
//================================================
// Place some code thats need execute while delay
//================================================
DSP_WAIT_READY
Fix Band table description
Add power stabilization delay on sweep start
6 years ago
DiSlord
12d53738bc
Revert some changes:
...
Start/stop generation feature (unstable on segment scan from CPU)
Calibration on paused sweep (need more stack, need find better solution)
Variable use optimization
6 years ago
DiSlord
a43b6e3acc
si5351.c and si5351.h
...
Cleanup and optimize code
Add comments, fix definitions
Fix rounding errors
Fix band 1 stability
mcuconf.h
Set I2C bus clock to SYSCLK (more fast)
Apply 400kHz bus I2C clock timings for 8MHz and 48Mhz clock
main.c
Remove and reset some variables
Add separate sweep for calibration (allow calibrate if sweep paused)
Increase main thread stack (need for run calibrate, possibly need execute some commands in sweep threads for reduce stack usage)
6 years ago
DiSlord
b77e1d6680
Big work around si5351 generator
...
Improve sweep speed about 60%
Stop generation on pause sweep
Remove all hack for si5351
Reduce code size
Fix integer overflow on big freq values
Additional
Change I2C
Others:
move marker_tracking variable to ui config
move some definition to correct place
reduce tlv320aic3204 code size
Speedup marker move from lever (BUTTON_REPEAT_TICKS = 625)
Need test stability
6 years ago
TT
f1cc60e99e
feat: add lever mode for electrical delay
6 years ago
TT
18c5ca9157
feat: add lever operation of electrical delay
6 years ago
DiSlord
ccb3693516
Huge reduce flash usage (about 5k), remove cal_data and _frequencies properties from data section
...
Use void loadDefaultProps() for load default properties (default loaded also on error load from flash)
Move some constants to nanovna.h
6 years ago