mirror of
https://github.com/eried/portapack-mayhem.git
synced 2025-08-06 21:54:27 -04:00

* Update README.md
Actually valid complete ali h4m link
* Fake brightness reimplementation (#2444)
* Fake brightness reimplementation
* indentation
* added call to the function which is caching the display settings values
* use cached values instead of pmem
* app manager (#2442)
* fix unset autostart
* clean up - add comments to prevent misleading
* move the app to external and with necessary changes
* replace autostart app
* Add + - buttons in Encoder dial settings (#2447)
* M10 additional parser (#2448)
* Remember previous capture settings (#2450)
* Renamed parameters in rx_capture.ini file (#2452)
* Rename settings in file to match screen
* Renamed variables for hopefully better clarity
* Navigation buttons (#2458)
* regenerate bitmap data
* pagination in submenu
* using little font so we are not eating menu buttons
* docker improvements (#2455)
* Update README.md
New metal case link
* The gerber files of the portapack H4 (#2463)
* Create README.txt
* Update README.txt
* Add files via upload
The gerber files of the portapack h4.
* delete
* Upload the gerber files for H4
* Update README.md (#2456)
Added a link to Lab401.com as a purchase option for EU customers.
(Lab401 was added as the EU exclusive distributor for the H4M - https://opensourcesdrlab.com/pages/distributors)
* Update README.md
* rename bitmaps into bmp
* disabling button on main menu, change labels and add 'icons' (#2466)
* disabling button on main menu, change labels and add 'icons'
* fix reverse order of buttons
---------
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* fix for empty text prompt crash (#2468)
* added discord server information (#2471)
* Add the feature to decide rotate direction of encoder (#2472)
* Update README.md
Lab401 link with our redirection
* Fix encoder setting p.mem issue (#2475)
* Update README.md
Discord badge was broken, switching to shields.io
* Add fast flash script for sdcard switch hardware (#2480)
* fix cmake_minimum_required to 3.16 (#2499)
* fix fallthrough warning (#2497)
* Flipper tx: use file_path, example file (#2496)
* added subghz_dir
* use subghz_dir from file_path
* example file
* Externalize antenna calc and wav view (#2498)
* externalize antenna calc and wav view
* Added a tool to check if all the pictures in graphics are used in internal apps
* APRS: add frequency settings for Brazil (#2494)
* Add frequency settings for Brazil, named 'BR' that tunes to 145.570 MHz.
* Also added: Japan: 144.640 MHz (JAP), Thailand: 144.900 MHz (THA), Philippines: 144.740 MHz (PHI)
* Reordered list by increasing frequency
Co-authored-by: gullradriel <3157857+gullradriel@users.noreply.github.com>
* Added different modulations in signal generator (#2492)
* Added DSB, AM 100% mod index and AM 50% mod index. Changed UI.
* put back app in 'Utilities' (#2500)
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* fix baseband (#2501)
* externalize wipe sdcard (#2502)
* Removing vim swap files (#2503)
* Removing vim swap files
* Added vim swap file to .gitignore
* Add modal to turn off screen when charging is detected (#2514)
* Moved country-specific FREQMAN files to the separate repository set up for it. (#2517)
* fix docker build warnings in dockerfile-nogit (#2518)
* Add new app "hopper" app. (#2482)
* make both jammer and hopper exist
* add example hopper payload
* example files
* swap scanner and recon app location
* Add widget preview tool (#2520)
* PoC
* opt
* opt
* Playlist editor (#2506)
* make both exist
* format
* fix focusing issue
* add example hopper payload
* fix compiler err
* clean up
* correct linker script addr
* lint
* PoC
* unknown: write_line issue
* clean up
* merge
* fix read line
* remove debug code
* fix english
* support new file
* support enter delay
* fix crash
* remove debug code
* some final tune
* Support Bug Key AKA Auto Key for OOK Editor app (#2523)
* _
* some final tune
* textual
* rename following gull's suggestion
* add cursor to font viewer app (#2528)
* Allow disable/enable waveform in Audio app to remove decoding problem on some frequencies
* Added different modulations in signal generator
* Added DSB, AM 100% mod index and AM 50% mod index.
* Changed UI.
* Added pulsed CW
* Adding Wefax demodulation mode inside Audio App (#2539)
* Adding_new_WFAX_GUI_mode_Audio_App
* Wefax_APT_demodulation_structure
* Solving REC Apt signal.wav from WFAX
* clang format issues
* correcting comments
* Breakout - The Portapack remake game rises from the pirate's lair (#2541)
* Breakout - The Portapack remake game rises from the pirate's lair
* Fixes
* Added a signature
* Trivial textual change about missing SD content (#2542)
* _
* _
* waveform fix 3 and trivial change (#2540)
* Moved games to new game menu (#2544)
* Moved games to new game menu
* There's enough games to have a menu now and I plan to make more. Having them in "Utilities" made no sense.
* Wefax warning fix modulation fix (#2543)
* changed order of modulations, changed case to avoid capture
* added missing AMAudioFMApt mode to dump pmem
* reorder demod, adding missing ones, fix warnings
* removed uneeded 'previous_modulation', renamed WFAX to AMFM to match other places
* removing uneeded 'previous_modulation' uneeded check in change_modulation
* move capture at the end so AMAUdioFMApt is matching the other arrays for position 4
* added AMFM to Recon Level and Scanner
* clang + more details in some comments
---------
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* Snake (#2549)
* Create the Shopping Cart Lock app
Will demonstrate tomorrow. Don't merge until I do 😁
* Fixes for HTotoo's comments 😎
* Improved audio the best I can.
If nobody has any ideas to further improve high frequencies of the audio, the hardware may not be capable. I still need to check with line-out to better speaker to make sure it's not just the speaker, but it shouldn't be.
* Compared against baseband_api.cpp - matched some things better but still playback seems to be missing higher fq sounds
* renamed wav files to a more specific / less generic name
* indentation + using variables instead of litteral names for wav files to use
* indentation
* Made a Snake game - enjoy
* Code formatting. I always forget.
* move to keep sort order
* Update external.ld
Sorry I should have also asked if there was any reason that address ranges 0xADDA0000--0xADDD0000 were skipped in external.ld. I assumed there wasn't so I changed it to be consecutive using the same 0x10000 step as the other modules. If there is any reason to skip them then we should add a comment to note it. Of course these are all just temporary address values used for linking and get overwritten by a kludgy "search & replace" during the build process.
Resolves enhancement request #764
---------
Co-authored-by: gullradriel <gullradriel@no-mail.com>
Co-authored-by: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com>
* Nested Debug menu into Utilities menu to tidy Home screen (#2551)
* rename rand pwd app (#2552)
* _
* remove wip code that forgot to add in old branch
* Moved speaker 1px to the right to match muted icon variant. (#2554)
* Stopwatch external app (#2553)
* updated bitmaps for speaker icon (#2555)
* updated bitmaps for speaker icon
* removed opera cake icon that was added by mistake
* adding missing Game menu source png
* cyan for Game menu
* regenerated icons
* Breakout icon change (#2556)
- Changed Breakout icon
- Changed Tetris icon color to green
* Snake icon change (#2557)
* Remove deprecated QR Code code (#2558)
* Setting for faster Button Repeat delays (#2559)
* Setting for faster Button Repeat delays
* Tweak fast delay times
* Tweak delay times
* Added description line and tweaked delay again
* OokBrute app opt (#2561)
* zooming_spectrum_AMFM_mode (#2565)
* Update README.md
Fixing opesourcesdrlab link
* Update README.md
Other link broken
* WeFax rx ext app (#2566)
* wf3
* Ookbrute (#2354)
* Revert "Ookbrute (#2354)"
This reverts commit abb8143eec
.
* fix
* test edition
* re enable ble
* re enable ert
* steal amfm stuff
* something happens
* save bmp on start btn
* kinda works
* exit crash fixed
* redline, remove some hardcoded
* removed cpu killer red line, and some fixes
* simplify #1
* seems ok. time to improve
* added hidden freq offset to receiver model, so wefax can be set to the "correct" freq without users needs to substract 300 hz
* badly implemented sync detection, and disabled it.
* fix for fix
* fixes
* fix offset to real life off
* no line on freq enter
* fixes
* Doom - Mayhem Edition (#2570)
* Doom - Mini Mayhem version
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Update ui_doom.cpp
* Doom - Mayhem Edition
Made the Doom - Mayhem Edition game. Some little bugs but good enough for nightly.
* Code formatting. Forgot like always.
* give more initial ammo until i put ammo around the maze to collect
* Update Doom main.cpp for better icon (#2575)
* fix external app address list (#2573)
* Add WEFAX freqman file (#2567)
* Add WEFAX freqman file
* fix bad escaped spaces and unicode characters
* Add icon for the doom game (#2574)
* Add icon for the doom game
* Add b/w .png to convert as doom icon
* Added wefax offset to audio app too. (#2572)
* added wefax offset to audio app too.
* moved from head to cpp
* Put ticker class and pp_colors in hpp file in namespace and remove helper files (#2577)
* stopwatch opt (#2578)
* stopwatch opt
* comments
* format
* fxi ms display when user tune display level
* issue template fine tune (#2579)
* Combined cpp files, stuffed helper files in hpp, updates start and game over screens (#2583)
* Combine cpp, move helpers to hpp (#2584)
* naming space (#2585)
* Tetris: Combined cpp files. Helper files into hpp. Dark mode. Encoder on. (#2587)
* Adding_Waterfall_ZOOM_x2_in_AM_modes_Audio_App (#2586)
* adding zoom_factor to app settings
* separated zoom_factor settings for AM and AMFM
* fix order so zoom factor is also applied correctly on modulation change
* fix zoom not applied when changing bandwidth
* temporary disable the Scanner so we are not breaking the nightly. Until we are choosing to finally remove it or find a better solution
---------
Co-authored-by: gullradriel <3157857+gullradriel@users.noreply.github.com>
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* Fixed the I Tetromino rotation using SRS (Super Rotation System) (#2588)
* Externalize dump pmem (#2590)
* initial commit
* clang
* memory icon
* text output and exit button, FOCUS OVERRIDE TO AVOID COMPILATION ERROR
* modem and data_structure_version accessor
---------
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* remove dead code (#2593)
* remove not yet enabled screening app (#2594)
* move default splash into sdcard (#2595)
* move bmps to sdcard
* remove unrelated files
* gitignore
* credit
* format
* Externalize scanner (#2589)
* externalize scanner
* NFM as main baseband as it's the biggest used one
* fix modulation bug introduced with AMFM
* Externalize level (#2596)
* removing ability to focus on RSSI bars and to launch level app, until a solution to launch external apps from internal ones is given
* externalize Level app
* Remove unneeded AMFM support in those apps (#2597)
* Create CODE_OF_CONDUCT.md
* Create pull_request_template.md
* Create SECURITY.md
* Create CONTRIBUTING.md (#2598)
* Force 433.92 and remove metadata check (#2599)
* Force 433.92 and remove metadata check: we already know the frequency for all files so don't need a million metadata files to match.
* Variable fixes and move to header
* Added more Wefax stations (#2600)
* Delete sdcard/FREQMAN/WEFAX.TXT
Replace with 2 files
* Add more WeFax frequencies
* Update comments
* Oops wrong folder
* Oops wrong folder
* Change comments
* Remove RF TX and use PATX baseband for audio --> speaker out only (#2601)
* Force 433.92 and remove metadata check
We already know the frequency for all files so don't need a million metadata files to match.
* Remove RF TX. Improve PATX baseband.
* code formatting of course
* Issue template again (#2602)
* test1
* test2
* add tap tempo to metronomic app (#2605)
* _
* format
* fix new tree in Arch
* solving_Audio_App_AM_GUI_Problem_issue_2604 (#2609)
* make the ptext_prompt func can define which keyboard to enter (#2608)
* _
* format
* use define
* prevent long life var for audio app - AM (#2610)
* static vars so no external linkage is possible
* persistent settings and no more global living variables
---------
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* theme fix again (#2611)
* theme fix again
* _
* user can disable battery change hint (#2612)
* theme fix again
* _
* _
* GFX EQ App (#2607)
* Make the beginnings of rf3d
* Name change...
* Add mood button
* Remove forced amp settings and add persistent user settings
* Fix options bar layout and SettingsManager
* Make the background paint to black again after opening fq modal
* fix audio/mod/settings and cleaned unneeded parts
* Mapped bars to audio spectrum
* Improved frequency response... still needs work i think
* add on_freqchg to be able to answer to serial frequency change command
* Made calculations for 14 bars to fit screen and little adjustments
* Visual improvements
Co-authored-by: gullradriel
* Improved make_bitmap tool (#2615)
* Enhance Graphic Equalizer Visualization with Improved Frequency Bands and Response (#2614)
* Custom waterfall colors (#2617)
* Custom waterfall gradient
* Installing a custom waterfall gradient via fileman
* default file for user friendly swap
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* Delete dead code in ble_rx_app.cpp (#2620)
Duplicate include on line 24 removed.
* Fix default waterfall file (#2621)
* correct default settings from file
* correct colors names
* fix comments (#2622)
* Touch on waterfall to set cursor pos (#2624)
* init
* fix typo that found by Copilot
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Adding 8.33KHz spacing (#2628)
* Adding 8.33KHz spacing
* remove extern options_db_t freqman_steps which is now brought by ui_receiver.hpp
* use freqman db steps instead of static array
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* Added menu group for transceivers (#2623)
* Added menu group for transceivers
* Reorder apps icons
* Support IPS screen & brightness set for IPS screen (#2629)
* _
* format
* format
* format
* Fix bug that created by PR "Added menu group for transceivers" (#2630)
* spectrum cursor opt again (#2634)
* spectrum cursor opt
* fmt
* remove blink
* remove End event
* cleanup
* Update README.md
Links were dead for opensourcesdrlab
* Fix for #2538 (#2635)
* Fix for #2538
Fix for #2538
Added on_bandwidth_changed Callback to ui_transmitter.hpp
Modified the field_bw.on_change lambda in the TransmitterView constructor to trigger the on_bandwidth_changed callback
Connected the Callback in ui_siggen.cpp
I am not a C++ programmer so this change was proposed by Gemini AI.
I have built and tested the App and it works as expected and I don't think the change will have any unexpected side effects.
* Fix clang issues
Fix clang issues
* Update ui_transmitter.cpp
typo
* Revised change
The proposed change mirrors the way a change to the frequency (on_edit_frequency) is triggered in ui_siggen by the tx_view.
The bw parameter is not passed because it is stored in _setting in the tx_view and will be read by update_config.
A change to the bw is not checked against auto_update to keep its behaviour consistent with a change to the gain, amplitude or frequency.
* Make changes to the channel_bandwidth dynamic whist playing
Behaviour of channel bandwidth is now consistent with frequency, amp and gain.
* comment edit
* revert hackrf submodule checkpoint to the repo
* comment
---------
Co-authored-by: zxkmm <zxkmm@hotmail.com>
* Adding_WFM_AM_mode_to_Audio_App (#2644)
* Adding_WFM_AM_mode_to_Audio_App
* more precise values for cos and sin theta, fix sen_theta to sin_theta
* fix sen_theta to sin_theta
* going back to WFM as main baseband in main.cpp as NFM is now making the apps crashing. Looks like last additions to WFM made it bigger. (#2646)
* remove dead code (#2647)
* Update ui_tetris.cpp (#2650)
Start "I" tetromino a bit higher and block rotate if it will cause out of bounds collision.
* Noaa apt decoder (#2648)
* Explicit_naming_wefax_NOAA_and_small_addition (#2651)
* slightly improved ads-b receiver module (#2649)
* slightly improved ads-b receiver module:
* fix Heading, Speed and Vrate decoders
* decode more ModeS messages
* log all ModeS messages (except DF11)
* fix formatting (clang-style); advice on data alignment taken into account
* ADS-B module: convert Indicated AirSpeed to True AirSpeed if altitute is known
* ADS-B rx module: replacing floating point with integer arithmetic
* adding 10Hz and 50Hz to freqman_steps (#2652)
* Improve_RF_sensitivity_NOAA_signal (#2654)
* Upload the PCB file of PortaPack H4 and update the schematic file (#2657)
* Create README.txt
* Update README.txt
* Add files via upload
The gerber files of the portapack h4.
* delete
* Upload the gerber files for H4
* Create README.txt
This is the V1.0 version PCB file of PortaPack H4.
* Upload the pcb file for H4
* Update README.txt
* Update LCD_TF_Schematic.pdf
* Jammer app add modes (#2659)
* Add new jammer modes
Overview
This PR enhances the PortaPack Jammer app by introducing eight new signal types, ported from my Flipper Zero RF Jammer app (https://github.com/RocketGod-git/flipper-zero-rf-jammer). These modes expand the app's capability to disrupt a wide range of RF communication protocols, from analog radios to modern digital systems. The implementation preserves the original app structure, resolves namespace conflicts, and ensures compatibility with the Mayhem firmware.
New Modes
The following modes have been added to the options_type in ui_jammer.hpp, with corresponding signal generation in proc_jammer.cpp:
Noise: Generates broadband white noise to interfere with analog and digital signals (e.g., Wi-Fi, Bluetooth, key fobs). Highly effective for overwhelming receivers across a frequency range.
Sine: Produces a continuous, unmodulated sine wave to jam narrowband receivers, ideal for analog FM/AM radios or telemetry systems.
Square: Emits a harmonic-rich square wave, disrupting digital protocols (e.g., OOK, ASK) and systems sensitive to sharp transitions, such as remote keyless entry.
Sawtooth (Experimental): Generates a sawtooth wave with a unique harmonic profile, useful for testing interference against PWM-based or niche analog systems.
Triangle (Experimental): Creates a triangle wave with minimal harmonics, suitable for exploratory jamming of narrowband systems or receiver linearity testing.
Chirp: Outputs a rapid frequency-sweeping chirp signal, effective against frequency-hopping and spread-spectrum systems (e.g., some Wi-Fi, Bluetooth, or military radios).
Gauss: Generates Gaussian noise to mimic natural interference, targeting digital systems like GPS or data links by degrading signal-to-noise ratios.
Brute (Experimental): Transmits a constant maximum-amplitude signal to saturate simple receiver front-ends, useful for brute-force jamming of basic analog devices.
* Add new jammer modes
Overview
This PR enhances the PortaPack Jammer app by introducing eight new signal types, ported from my Flipper Zero RF Jammer app (https://github.com/RocketGod-git/flipper-zero-rf-jammer). These modes expand the app's capability to disrupt a wide range of RF communication protocols, from analog radios to modern digital systems. The implementation preserves the original app structure, resolves namespace conflicts, and ensures compatibility with the Mayhem firmware.
New Modes
The following modes have been added to the options_type in ui_jammer.hpp, with corresponding signal generation in proc_jammer.cpp:
Noise: Generates broadband white noise to interfere with analog and digital signals (e.g., Wi-Fi, Bluetooth, key fobs). Highly effective for overwhelming receivers across a frequency range.
Sine: Produces a continuous, unmodulated sine wave to jam narrowband receivers, ideal for analog FM/AM radios or telemetry systems.
Square: Emits a harmonic-rich square wave, disrupting digital protocols (e.g., OOK, ASK) and systems sensitive to sharp transitions, such as remote keyless entry.
Sawtooth (Experimental): Generates a sawtooth wave with a unique harmonic profile, useful for testing interference against PWM-based or niche analog systems.
Triangle (Experimental): Creates a triangle wave with minimal harmonics, suitable for exploratory jamming of narrowband systems or receiver linearity testing.
Chirp: Outputs a rapid frequency-sweeping chirp signal, effective against frequency-hopping and spread-spectrum systems (e.g., some Wi-Fi, Bluetooth, or military radios).
Gauss: Generates Gaussian noise to mimic natural interference, targeting digital systems like GPS or data links by degrading signal-to-noise ratios.
Brute (Experimental): Transmits a constant maximum-amplitude signal to saturate simple receiver front-ends, useful for brute-force jamming of basic analog devices.
* refactor the serial log logic of BLE Rx (#2660)
* Prepare for display orientation part 1 (#2661)
* fix png part
* screen max width fixes (#2663)
* max width fixes
* format
* Audio to right (#2664)
* r.align
* Storing_selected_NOAA_filter_in_settings_file (#2665)
* Storing_selected_NOAA_filter_in_settings_file
* format_issues
* wfm_filters_GUI_name_std (#2668)
* getres cmd (#2671)
* ui new coord system examples and macros (#2672)
* Detector RX ext app (#2673)
* Jammer improvements (#2674)
* Add new jammer modes
Overview:
This PR enhances the PortaPack Jammer app by introducing eight new signal types, ported from my Flipper Zero RF Jammer app (https://github.com/RocketGod-git/flipper-zero-rf-jammer). These modes expand the app's capability to disrupt a wide range of RF communication protocols, from analog radios to modern digital systems. The implementation preserves the original app structure, resolves namespace conflicts, and ensures compatibility with the Mayhem firmware.
New Modes
The following modes have been added to the options_type in ui_jammer.hpp, with corresponding signal generation in proc_jammer.cpp:
Noise: Generates broadband white noise to interfere with analog and digital signals (e.g., Wi-Fi, Bluetooth, key fobs). Highly effective for overwhelming receivers across a frequency range.
Sine: Produces a continuous, unmodulated sine wave to jam narrowband receivers, ideal for analog FM/AM radios or telemetry systems.
Square: Emits a harmonic-rich square wave, disrupting digital protocols (e.g., OOK, ASK) and systems sensitive to sharp transitions, such as remote keyless entry.
Sawtooth (Experimental): Generates a sawtooth wave with a unique harmonic profile, useful for testing interference against PWM-based or niche analog systems.
Triangle (Experimental): Creates a triangle wave with minimal harmonics, suitable for exploratory jamming of narrowband systems or receiver linearity testing.
Chirp: Outputs a rapid frequency-sweeping chirp signal, effective against frequency-hopping and spread-spectrum systems (e.g., some Wi-Fi, Bluetooth, or military radios).
Gauss: Generates Gaussian noise to mimic natural interference, targeting digital systems like GPS or data links by degrading signal-to-noise ratios.
Brute (Experimental): Transmits a constant maximum-amplitude signal to saturate simple receiver front-ends, useful for brute-force jamming of basic analog devices.
* Fixed and made brutal.
This PR introduces user-focused improvements to the Jammer App in the HackRF PortaPack Mayhem Firmware, enhancing usability and flexibility. The changes address specific user requirements for a more intuitive default configuration, continuous waveform support, and dynamic setting adjustments during transmission.
* jammer fix (#2676)
* jammer fix
* Adding_BPF_selection_to_the_NOAA_APT_signal (#2675)
* Adding_BPF_selection_to_the_NOAA_APT_signal
* comments, spell mistake .
* trivial apps folder movement (#2677)
* Clean_LCD_beat_in_NOAA_Rx_App (#2678)
* Added ability to enter custom tone values in Morse app (#2679)
* Added ability to enter custom tone values in Morse app
Added the ability to type in a custom tone value in the morse TX app (issue#2582)
*Click on the tone field to open a keyboard for entering in a desired value between 100hz - 9999hz.
*Maintains original step value of 20 when scrolling the rotary wheel.
* Update ui_morse.cpp
Replaced std::to_string with to_string_dec_uint
* Moved tone_input_buffer init to in-class
* removed some std stuff only used here (#2681)
* 80mhz jammer range (#2682)
Looks great 😎🤘🚀
* Radio app improvements (#2680)
* Rename looking glass preset for clarity and consistency (#2686)
* Gfx widget and Radio (#2685)
* widgetize
* gfx and Radio improvement
* format + handle not wfm visual states
* wf or gf
* Externalize widget (#2688)
* Add all jammer modes in hopper app (#2691)
Added all modes that jammer app supports in hopper app.
* Super secret dont look (#2690)
* Add new jammer modes
Overview
This PR enhances the PortaPack Jammer app by introducing eight new signal types, ported from my Flipper Zero RF Jammer app (https://github.com/RocketGod-git/flipper-zero-rf-jammer). These modes expand the app's capability to disrupt a wide range of RF communication protocols, from analog radios to modern digital systems. The implementation preserves the original app structure, resolves namespace conflicts, and ensures compatibility with the Mayhem firmware.
New Modes
The following modes have been added to the options_type in ui_jammer.hpp, with corresponding signal generation in proc_jammer.cpp:
Noise: Generates broadband white noise to interfere with analog and digital signals (e.g., Wi-Fi, Bluetooth, key fobs). Highly effective for overwhelming receivers across a frequency range.
Sine: Produces a continuous, unmodulated sine wave to jam narrowband receivers, ideal for analog FM/AM radios or telemetry systems.
Square: Emits a harmonic-rich square wave, disrupting digital protocols (e.g., OOK, ASK) and systems sensitive to sharp transitions, such as remote keyless entry.
Sawtooth (Experimental): Generates a sawtooth wave with a unique harmonic profile, useful for testing interference against PWM-based or niche analog systems.
Triangle (Experimental): Creates a triangle wave with minimal harmonics, suitable for exploratory jamming of narrowband systems or receiver linearity testing.
Chirp: Outputs a rapid frequency-sweeping chirp signal, effective against frequency-hopping and spread-spectrum systems (e.g., some Wi-Fi, Bluetooth, or military radios).
Gauss: Generates Gaussian noise to mimic natural interference, targeting digital systems like GPS or data links by degrading signal-to-noise ratios.
Brute (Experimental): Transmits a constant maximum-amplitude signal to saturate simple receiver front-ends, useful for brute-force jamming of basic analog devices.
* Super secret
* You gotta get (Get) that (That) dirt off your shoulder
* Add 1ms hop option to hopper app + 0ms (freeze UI) (#2692)
* add dark theme (#2695)
* Made the Dino Game (#2697)
* Add vendor name in bluetooth rx app (#2696)
* add macaddress db, add vendor name in bluetooth rx app
* show "missing macaddress.db" instead of unknown if db not found
* bluetooth rx list with colors based on mac vendor
* bug fix
* Modified Text Editor to handle long presses. (#2698)
* Improved FPV_ANALOG.txt FREQMAN file (#2700)
* Improved FPV_ANALOG.txt FREQMAN file
Removed unused or super rare analog fpv bands: U, O, H, D
Added 1.2GHz -1.3GHz channels sometimes used for long range analog fpv
* Corrected and updated the labels to be more consistent.
Corrected the labels to be more consistent.
I also somehow messed up the correct channels because 1.3GHz FPV is not fully standardized, but these channels seem to be the most common.
It should be all correct now.
Example transmitters using those channels:
https://greenchip.com.ua/0-0-1615-2.html
https://flymod.net/en/item/walksnail_vtx_9ch
https://pl.aliexpress.com/item/1005006505365351.html
* Filemanager: go to parent directory keep track of the right selected … (#2702)
* Filemanager: go to parent directory keep track of the right selected item and page number
* review: avoid unnecessary copies in get_extension
* ADSB database update (tools, db) (#2701)
* enhance make_airlines_db tool
* enhance make_icao24_db tool
* update airlinescode (.txt, .db), aircraftdatabase/icao24 (.csv, .db)
* Made the Space Invaders game. Argh matey! (#2709)
* Made the Space Invaders game. Argh matey!
* Format code, sigh.
* Made the Blackjack game (#2712)
* Made the Blackjack game
* Format Blackjack main.cpp
* Changed spade to diamond for dark mode visibility
* Format code
* Update app icons for Space Invaders and Dino Game (#2713)
* BLE Rx Improvements (#2710)
* Work to allow for unique beacon parsing functions.
* Fix Copyright
* Update firmware/application/apps/ble_rx_app.cpp
* Update firmware/baseband/proc_btlerx.cpp
* PR suggestions.
* Fix String.
* Refactor
* Added 3d printed cases for the H4M (#2715)
* Battleship (#2720)
* Made the Battleship 2P 2PP game - FSK is wip
* Using POCSAG
* Adding simple FSK Rx Processor. Can be used with New Apps. (#2716)
* Work to allow for unique beacon parsing functions.
* Fixing pull.
* Changes.
* Formatting.
* Fix Copyright
* Update firmware/application/apps/ble_rx_app.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update firmware/baseband/proc_btlerx.cpp
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* PR suggestions.
* Fix String.
* FSK Rx Improvements. Works for my custom protocol.
* Fix buffer size.
* Refactor
* Formatting.
* Formatting.
* Fixing compiling, and BLE Rx UI/Performance.
* More improvements.
* Fixing stuck state.
* More stuck parsing fix.
* Combining PR changes.
* Improvements from previous PR.
* Fix dbM calculation relative to device RSSI.
* Formatting.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: TJ <tj.baginski@cognosos.com>
* Add blue bar to subghzd+weather (#2724)
* AIS map improv (#2725)
* AIS map improv
* format code mismatch with vc
* Add radio settings, new app icon, and other UI improvements (#2732)
* update submodule (#2734)
Co-authored-by: gullradriel <gullradriel@no-mail.com>
* update version (#2735)
Co-authored-by: gullradriel <gullradriel@no-mail.com>
---------
Co-authored-by: Erwin Ried <1091420+eried@users.noreply.github.com>
Co-authored-by: hackrfstuff <leszczyleszczy@icloud.com>
Co-authored-by: sommermorgentraum <24917424+zxkmm@users.noreply.github.com>
Co-authored-by: Totoo <ttotoo@gmail.com>
Co-authored-by: Mark Thompson <129641948+NotherNgineer@users.noreply.github.com>
Co-authored-by: E.T. <tamas@eisenberger.hu>
Co-authored-by: OpenSourceSDRLab <opensourcesdr@outlook.com>
Co-authored-by: quantum-x <simon.yorkston@gmail.com>
Co-authored-by: gullradriel <gullradriel@no-mail.com>
Co-authored-by: Lucas C. Villa Real <lucasvr@users.noreply.github.com>
Co-authored-by: Davide Rovelli <103165301+daviderud@users.noreply.github.com>
Co-authored-by: Gaurav Chaturvedi <oddtazz@users.noreply.github.com>
Co-authored-by: RocketGod <57732082+RocketGod-git@users.noreply.github.com>
Co-authored-by: Lerold <github@lerold.slmail.me>
Co-authored-by: Brumi-2021 <86470699+Brumi-2021@users.noreply.github.com>
Co-authored-by: dark-juju <2839275+dark-juju@users.noreply.github.com>
Co-authored-by: Benjamin Møller <37707273+LupusE@users.noreply.github.com>
Co-authored-by: Oleg Belousov <belousov.oleg@gmail.com>
Co-authored-by: haruk <104354987+exe-noisy@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Luca <61653175+iu2frl@users.noreply.github.com>
Co-authored-by: Richard <richard.toy@gmail.com>
Co-authored-by: zxkmm <zxkmm@hotmail.com>
Co-authored-by: horrordash <45861453+horrordash@users.noreply.github.com>
Co-authored-by: Alien <2142224+mythic-alien@users.noreply.github.com>
Co-authored-by: Petro Danylevskyi <petro@danylevskyi.com>
Co-authored-by: Tommaso Ventafridda <33782489+tomventa@users.noreply.github.com>
Co-authored-by: Netro <146584182+iNetro@users.noreply.github.com>
Co-authored-by: plomek <86431917+plomek@users.noreply.github.com>
Co-authored-by: TJ <tj.baginski@cognosos.com>
1684 lines
39 KiB
C++
1684 lines
39 KiB
C++
/*
|
|
* Copyright (C) 2015 Jared Boone, ShareBrained Technology, Inc.
|
|
* Copyright (C) 2017 Furrtek
|
|
*
|
|
* This file is part of PortaPack.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; see the file COPYING. If not, write to
|
|
* the Free Software Foundation, Inc., 51 Franklin Street,
|
|
* Boston, MA 02110-1301, USA.
|
|
*/
|
|
|
|
#ifndef __DSP_FIR_TAPS_H__
|
|
#define __DSP_FIR_TAPS_H__
|
|
|
|
#include <cstdint>
|
|
#include <array>
|
|
|
|
#include "complex.hpp"
|
|
|
|
template <size_t N>
|
|
struct fir_taps_real {
|
|
float low_frequency_normalized;
|
|
float high_frequency_normalized;
|
|
float transition_normalized;
|
|
std::array<int16_t, N> taps;
|
|
};
|
|
|
|
template <size_t N>
|
|
struct fir_taps_complex {
|
|
float low_frequency_normalized;
|
|
float high_frequency_normalized;
|
|
float transition_normalized;
|
|
std::array<complex16_t, N> taps;
|
|
};
|
|
|
|
// NBFM 16K0F3E emission type /////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=8000, stop=344000, decim=8, fout=384000
|
|
constexpr fir_taps_real<24> taps_16k0_decim_0{
|
|
.low_frequency_normalized = -8000.0f / 3072000.0f,
|
|
.high_frequency_normalized = 8000.0f / 3072000.0f,
|
|
.transition_normalized = 336000.0f / 3072000.0f,
|
|
.taps = {{
|
|
1,
|
|
67,
|
|
165,
|
|
340,
|
|
599,
|
|
944,
|
|
1361,
|
|
1820,
|
|
2278,
|
|
2684,
|
|
2988,
|
|
3152,
|
|
3152,
|
|
2988,
|
|
2684,
|
|
2278,
|
|
1820,
|
|
1361,
|
|
944,
|
|
599,
|
|
340,
|
|
165,
|
|
67,
|
|
1,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=384000, pass=8000, stop=40000, decim=8, fout=48000
|
|
constexpr fir_taps_real<32> taps_16k0_decim_1{
|
|
.low_frequency_normalized = -8000.0f / 384000.0f,
|
|
.high_frequency_normalized = 8000.0f / 384000.0f,
|
|
.transition_normalized = 32000.0f / 384000.0f,
|
|
.taps = {{
|
|
-26,
|
|
-125,
|
|
-180,
|
|
-275,
|
|
-342,
|
|
-359,
|
|
-286,
|
|
-90,
|
|
250,
|
|
733,
|
|
1337,
|
|
2011,
|
|
2688,
|
|
3289,
|
|
3740,
|
|
3982,
|
|
3982,
|
|
3740,
|
|
3289,
|
|
2688,
|
|
2011,
|
|
1337,
|
|
733,
|
|
250,
|
|
-90,
|
|
-286,
|
|
-359,
|
|
-342,
|
|
-275,
|
|
-180,
|
|
-125,
|
|
-26,
|
|
}},
|
|
};
|
|
|
|
// Channel filter: fs=48000, pass=8000, stop=12400, decim=1, fout=48000
|
|
constexpr fir_taps_real<32> taps_16k0_channel{
|
|
.low_frequency_normalized = -8000.0f / 48000.0f,
|
|
.high_frequency_normalized = 8000.0f / 48000.0f,
|
|
.transition_normalized = 4400.0f / 48000.0f,
|
|
.taps = {{
|
|
-73,
|
|
-285,
|
|
-376,
|
|
-8,
|
|
609,
|
|
538,
|
|
-584,
|
|
-1387,
|
|
-148,
|
|
2173,
|
|
1959,
|
|
-2146,
|
|
-5267,
|
|
-297,
|
|
12915,
|
|
24737,
|
|
24737,
|
|
12915,
|
|
-297,
|
|
-5267,
|
|
-2146,
|
|
1959,
|
|
2173,
|
|
-148,
|
|
-1387,
|
|
-584,
|
|
538,
|
|
609,
|
|
-8,
|
|
-376,
|
|
-285,
|
|
-73,
|
|
}},
|
|
};
|
|
|
|
// NBFM 11K0F3E emission type /////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=5500, stop=341500, decim=8, fout=384000
|
|
constexpr fir_taps_real<24> taps_11k0_decim_0{
|
|
.low_frequency_normalized = -5500.0f / 3072000.0f,
|
|
.high_frequency_normalized = 5500.0f / 3072000.0f,
|
|
.transition_normalized = 336000.0f / 3072000.0f,
|
|
.taps = {{
|
|
38,
|
|
102,
|
|
220,
|
|
406,
|
|
668,
|
|
1004,
|
|
1397,
|
|
1822,
|
|
2238,
|
|
2603,
|
|
2875,
|
|
3020,
|
|
3020,
|
|
2875,
|
|
2603,
|
|
2238,
|
|
1822,
|
|
1397,
|
|
1004,
|
|
668,
|
|
406,
|
|
220,
|
|
102,
|
|
38,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=384000, pass=5500, stop=42500, decim=8, fout=48000
|
|
constexpr fir_taps_real<32> taps_11k0_decim_1{
|
|
.low_frequency_normalized = -5500.0f / 384000.0f,
|
|
.high_frequency_normalized = 5500.0f / 384000.0f,
|
|
.transition_normalized = 37000.0f / 384000.0f,
|
|
.taps = {{
|
|
-42,
|
|
-87,
|
|
-157,
|
|
-234,
|
|
-298,
|
|
-318,
|
|
-255,
|
|
-75,
|
|
246,
|
|
713,
|
|
1306,
|
|
1976,
|
|
2656,
|
|
3265,
|
|
3724,
|
|
3971,
|
|
3971,
|
|
3724,
|
|
3265,
|
|
2656,
|
|
1976,
|
|
1306,
|
|
713,
|
|
246,
|
|
-75,
|
|
-255,
|
|
-318,
|
|
-298,
|
|
-234,
|
|
-157,
|
|
-87,
|
|
-42,
|
|
}},
|
|
};
|
|
|
|
// Channel filter: fs=48000, pass=5500, stop=8900, decim=1, fout=48000
|
|
constexpr fir_taps_real<32> taps_11k0_channel{
|
|
.low_frequency_normalized = -5500.0f / 48000.0f,
|
|
.high_frequency_normalized = 5500.0f / 48000.0f,
|
|
.transition_normalized = 3400.0f / 48000.0f,
|
|
.taps = {{
|
|
-68,
|
|
-345,
|
|
-675,
|
|
-867,
|
|
-582,
|
|
247,
|
|
1222,
|
|
1562,
|
|
634,
|
|
-1379,
|
|
-3219,
|
|
-3068,
|
|
310,
|
|
6510,
|
|
13331,
|
|
17795,
|
|
17795,
|
|
13331,
|
|
6510,
|
|
310,
|
|
-3068,
|
|
-3219,
|
|
-1379,
|
|
634,
|
|
1562,
|
|
1222,
|
|
247,
|
|
-582,
|
|
-867,
|
|
-675,
|
|
-345,
|
|
-68,
|
|
}},
|
|
};
|
|
|
|
// NBFM 8K50F3E emission type /////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=4250, stop=340250, decim=8, fout=384000
|
|
constexpr fir_taps_real<24> taps_4k25_decim_0{
|
|
.low_frequency_normalized = -4250.0f / 3072000.0f,
|
|
.high_frequency_normalized = 4250.0f / 3072000.0f,
|
|
.transition_normalized = 33600.0f / 3072000.0f,
|
|
.taps = {{
|
|
38,
|
|
103,
|
|
222,
|
|
409,
|
|
671,
|
|
1006,
|
|
1399,
|
|
1821,
|
|
2236,
|
|
2599,
|
|
2868,
|
|
3012,
|
|
3012,
|
|
2868,
|
|
2599,
|
|
2236,
|
|
1821,
|
|
1399,
|
|
1006,
|
|
671,
|
|
409,
|
|
222,
|
|
103,
|
|
38,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=384000, pass=4250, stop=43750, decim=8, fout=48000
|
|
constexpr fir_taps_real<32> taps_4k25_decim_1{
|
|
.low_frequency_normalized = -4250.0f / 384000.0f,
|
|
.high_frequency_normalized = 4250.0f / 384000.0f,
|
|
.transition_normalized = 39500.0f / 384000.0f,
|
|
.taps = {{
|
|
-33,
|
|
-74,
|
|
-139,
|
|
-214,
|
|
-280,
|
|
-306,
|
|
-254,
|
|
-87,
|
|
222,
|
|
682,
|
|
1274,
|
|
1951,
|
|
2644,
|
|
3268,
|
|
3741,
|
|
3996,
|
|
3996,
|
|
3741,
|
|
3268,
|
|
2644,
|
|
1951,
|
|
1274,
|
|
682,
|
|
222,
|
|
-87,
|
|
-254,
|
|
-306,
|
|
-280,
|
|
-214,
|
|
-139,
|
|
-74,
|
|
-33,
|
|
}},
|
|
};
|
|
|
|
// Channel filter: fs=48000, pass=4250, stop=7900, decim=1, fout=48000
|
|
constexpr fir_taps_real<32> taps_4k25_channel{
|
|
.low_frequency_normalized = -4250.0f / 48000.0f,
|
|
.high_frequency_normalized = 4250.0f / 48000.0f,
|
|
.transition_normalized = 3650.0f / 48000.0f,
|
|
.taps = {{
|
|
-58,
|
|
-14,
|
|
153,
|
|
484,
|
|
871,
|
|
1063,
|
|
770,
|
|
-141,
|
|
-1440,
|
|
-2488,
|
|
-2435,
|
|
-614,
|
|
3035,
|
|
7771,
|
|
12226,
|
|
14927,
|
|
14927,
|
|
12226,
|
|
7771,
|
|
3035,
|
|
-614,
|
|
-2435,
|
|
-2488,
|
|
-1440,
|
|
-141,
|
|
770,
|
|
1063,
|
|
871,
|
|
484,
|
|
153,
|
|
-14,
|
|
-58,
|
|
}},
|
|
};
|
|
|
|
/* CTCSS audio filter */
|
|
/* 12kHz int16_t input
|
|
* -> FIR filter, <300Hz pass, >300Hz stop, gain of 1
|
|
* -> 6kHz int16_t output, gain of 1.0 (I think).
|
|
* Padded to multiple of four taps for unrolled FIR code.
|
|
* sum(abs(taps)): 125270
|
|
*/
|
|
/*constexpr fir_taps_real<64> taps_64_lp_025_025 {
|
|
.taps = { {
|
|
0, 0, -3, -7, -13, -20, -27, -32,
|
|
-34, -33, -25, -10, 13, 47, 94, 152,
|
|
223, 307, 402, 508, 622, 742, 866, 991,
|
|
1113, 1229, 1336, 1430, 1510, 1571, 1614, 1635,
|
|
1635, 1614, 1571, 1510, 1430, 1336, 1229, 1113,
|
|
991, 866, 742, 622, 508, 402, 307, 223,
|
|
152, 94, 47, 13, -10, -25, -33, -34,
|
|
-32, -27, -20, -13, -7, -3, 0, 0
|
|
} },
|
|
};*/
|
|
|
|
/* CTCSS audio filter */
|
|
/* 24kHz int16_t input
|
|
* -> FIR filter, <300Hz pass, >300Hz stop, gain of 1
|
|
* -> 12kHz int16_t output, gain of 1.0 (I think).
|
|
* Padded to multiple of four taps for unrolled FIR code.
|
|
* sum(abs(taps)): 125270
|
|
*/
|
|
constexpr fir_taps_real<64> taps_64_lp_025_025{
|
|
.low_frequency_normalized = 0,
|
|
.high_frequency_normalized = 0,
|
|
.transition_normalized = 0,
|
|
.taps = {{0, 0, 2, 6, 12, 20, 32, 46,
|
|
64, 85, 110, 138, 169, 204, 241, 281,
|
|
323, 367, 412, 457, 502, 547, 590, 631,
|
|
669, 704, 735, 762, 784, 801, 812, 818,
|
|
818, 812, 801, 784, 762, 735, 704, 669,
|
|
631, 590, 547, 502, 457, 412, 367, 323,
|
|
281, 241, 204, 169, 138, 110, 85, 64,
|
|
46, 32, 20, 12, 6, 2, 0, 0}},
|
|
};
|
|
|
|
// DSB AM 6K00A3E emission type ///////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=3000, stop=339000, decim=8, fout=384000
|
|
constexpr fir_taps_real<24> taps_6k0_decim_0{
|
|
.low_frequency_normalized = -3000.0f / 3072000.0f,
|
|
.high_frequency_normalized = 3000.0f / 3072000.0f,
|
|
.transition_normalized = 336000.0f / 3072000.0f,
|
|
.taps = {{
|
|
39,
|
|
104,
|
|
224,
|
|
412,
|
|
674,
|
|
1008,
|
|
1400,
|
|
1821,
|
|
2234,
|
|
2594,
|
|
2863,
|
|
3006,
|
|
3006,
|
|
2863,
|
|
2594,
|
|
2234,
|
|
1821,
|
|
1400,
|
|
1008,
|
|
674,
|
|
412,
|
|
224,
|
|
104,
|
|
39,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=384000, pass=3000, stop=45000, decim=8, fout=48000
|
|
constexpr fir_taps_real<32> taps_6k0_decim_1{
|
|
.low_frequency_normalized = -3000.0f / 384000.0f,
|
|
.high_frequency_normalized = 3000.0f / 384000.0f,
|
|
.transition_normalized = 43000.0f / 384000.0f,
|
|
.taps = {{
|
|
-26,
|
|
-63,
|
|
-123,
|
|
-195,
|
|
-263,
|
|
-295,
|
|
-253,
|
|
-99,
|
|
199,
|
|
651,
|
|
1242,
|
|
1927,
|
|
2633,
|
|
3273,
|
|
3760,
|
|
4023,
|
|
4023,
|
|
3760,
|
|
3273,
|
|
2633,
|
|
1927,
|
|
1242,
|
|
651,
|
|
199,
|
|
-99,
|
|
-253,
|
|
-295,
|
|
-263,
|
|
-195,
|
|
-123,
|
|
-63,
|
|
-26,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=384000, pass=3000, stop=33000, decim=8, fout=48000
|
|
// Narrower taps_6k0_decim_1IFIR version to avoid LCD waterfall aliasing in AMFM Wefax in ZOOM X 2 (means spectrum decimation factor x2)
|
|
// It has BW -3dB's of +-9Khz, Stop band from 33khz onwards -60 dB's , then we can use in all AM modes (DSB, SSB,CW )
|
|
constexpr fir_taps_real<32> taps_6k0_narrow_decim_1{
|
|
.low_frequency_normalized = -3000.0f / 384000.0f,
|
|
.high_frequency_normalized = 3000.0f / 384000.0f,
|
|
.transition_normalized = 30000.0f / 384000.0f,
|
|
.taps = {{
|
|
|
|
58,
|
|
80,
|
|
138,
|
|
219,
|
|
326,
|
|
461,
|
|
622,
|
|
807,
|
|
1011,
|
|
1224,
|
|
1438,
|
|
1640,
|
|
1820,
|
|
1966,
|
|
2069,
|
|
2122,
|
|
2122,
|
|
2069,
|
|
1966,
|
|
1820,
|
|
1640,
|
|
1438,
|
|
1224,
|
|
1011,
|
|
807,
|
|
622,
|
|
461,
|
|
326,
|
|
219,
|
|
138,
|
|
80,
|
|
58,
|
|
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=48000, pass=3000, stop=6700, decim=4, fout=12000
|
|
constexpr fir_taps_real<32> taps_6k0_decim_2{
|
|
.low_frequency_normalized = -3000.0f / 48000.0f,
|
|
.high_frequency_normalized = 3000.0f / 48000.0f,
|
|
.transition_normalized = 3700.0f / 48000.0f,
|
|
.taps = {{
|
|
95,
|
|
178,
|
|
247,
|
|
208,
|
|
-21,
|
|
-474,
|
|
-1080,
|
|
-1640,
|
|
-1857,
|
|
-1411,
|
|
-83,
|
|
2134,
|
|
4978,
|
|
7946,
|
|
10413,
|
|
11815,
|
|
11815,
|
|
10413,
|
|
7946,
|
|
4978,
|
|
2134,
|
|
-83,
|
|
-1411,
|
|
-1857,
|
|
-1640,
|
|
-1080,
|
|
-474,
|
|
-21,
|
|
208,
|
|
247,
|
|
178,
|
|
95,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter fs=48000 ; pass=4500 (cutoff -3dBs) , stop=8000 (<-60dBs), decim=4, fout=12000
|
|
// For Europe AM commercial broadcasting stations in LF/MF/HF, Emissions Designator 9K00A3E Bandwidth: 9.00 kHz (derivated from taps_6k0_decim_2 )
|
|
// Pre-decimate LPF FIR filter design Created with SciPy Python with the "window method", num_taps = 32, cutoff = 5150. sample_rate = 48000 # Hz,
|
|
// Created with h = signal.firwin(num_taps, cutoff, nyq=sample_rate/2, window=('chebwin',50)) , achieving good STOP band plot < -60 dB's with some ripple.
|
|
// post-scaled h taps to avoid decimals , targeting <= similar int values as previous taps_6k0_dsb_channel peak < 32.767 (2 exp 15) and similar H(f)gain
|
|
constexpr fir_taps_real<32> taps_9k0_decim_2{
|
|
.low_frequency_normalized = -4500.0f / 48000.0f, // Negative -cutoff freq -3dB (real achieved data ,in the plot and measurements)
|
|
.high_frequency_normalized = 4500.0f / 48000.0f, // Positive +cutoff freq -3dB (idem)
|
|
.transition_normalized = 3500.0f / 48000.0f, // 3500 Hz = (8000 Hz - 4500 Hz) (both from plot H(f) curve plot)
|
|
.taps = {{-53, -30, 47, 198, 355, 372, 89, -535,
|
|
-1307, -1771, -1353, 370, 3384, 7109, 10535, 12591,
|
|
12591, 10535, 7109, 3384, 370, -1353, -1771, -1307,
|
|
-535, 89, 372, 355, 198, 47, -30, -53}},
|
|
};
|
|
|
|
// Channel filter: fs=12000, pass=3000, stop=3300, decim=1, fout=12000
|
|
/* NOTE: Slightly less than 1.0 gain (normalized to 65536) due to max(taps) being
|
|
* slightly larger than 32767 (33312).
|
|
*/
|
|
constexpr fir_taps_complex<64> taps_6k0_dsb_channel{
|
|
.low_frequency_normalized = -3000.0f / 12000.0f,
|
|
.high_frequency_normalized = 3000.0f / 12000.0f,
|
|
.transition_normalized = 300.0f / 12000.0f,
|
|
.taps = {{
|
|
{-69, 0},
|
|
{-140, 0},
|
|
{119, 0},
|
|
{89, 0},
|
|
{-132, 0},
|
|
{-134, 0},
|
|
{197, 0},
|
|
{167, 0},
|
|
{-273, 0},
|
|
{-206, 0},
|
|
{372, 0},
|
|
{247, 0},
|
|
{-497, 0},
|
|
{-289, 0},
|
|
{654, 0},
|
|
{331, 0},
|
|
{-854, 0},
|
|
{-372, 0},
|
|
{1112, 0},
|
|
{411, 0},
|
|
{-1455, 0},
|
|
{-446, 0},
|
|
{1933, 0},
|
|
{476, 0},
|
|
{-2654, 0},
|
|
{-501, 0},
|
|
{3902, 0},
|
|
{520, 0},
|
|
{-6717, 0},
|
|
{-531, 0},
|
|
{20478, 0},
|
|
{32767, 0},
|
|
{20478, 0},
|
|
{-531, 0},
|
|
{-6717, 0},
|
|
{520, 0},
|
|
{3902, 0},
|
|
{-501, 0},
|
|
{-2654, 0},
|
|
{476, 0},
|
|
{1933, 0},
|
|
{-446, 0},
|
|
{-1455, 0},
|
|
{411, 0},
|
|
{1112, 0},
|
|
{-372, 0},
|
|
{-854, 0},
|
|
{331, 0},
|
|
{654, 0},
|
|
{-289, 0},
|
|
{-497, 0},
|
|
{247, 0},
|
|
{372, 0},
|
|
{-206, 0},
|
|
{-273, 0},
|
|
{167, 0},
|
|
{197, 0},
|
|
{-134, 0},
|
|
{-132, 0},
|
|
{89, 0},
|
|
{119, 0},
|
|
{-140, 0},
|
|
{-69, 0},
|
|
{0, 0},
|
|
}},
|
|
};
|
|
|
|
// Channel filter: fs=12000, pass=4500 (cutoff -3dBs), stop=4940 (<-60dBs), decim=1, fout=12000 (*1) real frec pass / stop , based on plotted H(f) curve)
|
|
// For Europe AM commercial broadcasting stations in LF/MF/HF, Emissions Designator 9K00A3E Bandwidth: 9.00 kHz (derivative from taps_6k0_dsb_channel)
|
|
// FIR filter design created with SciPy Python using "window method"; selected design parameters: num_taps = 64, cutoff = 4575. sample_rate = 12000 # Hz,
|
|
// Created with : h = signal.firwin(num_taps, cutoff, nyq=sample_rate/2, window=('chebwin',50)) , achieving real plot curve (*1) with peak stop band ripple -60dBs.
|
|
// post-scaled h taps to avoid decimals , targeting <= similar int values as previous taps_6k0_dsb_channel peak < 32.767 (2 exp 15), (29625) and similar H(f)gain
|
|
constexpr fir_taps_complex<64> taps_9k0_dsb_channel{
|
|
.low_frequency_normalized = -4500.0f / 12000.0f, // Negative -cutoff freq -3dB (in the H(f) curve plot)
|
|
.high_frequency_normalized = 4500.0f / 12000.0f, // Positive +cutoff freq -3dB (in the H(f) curve plot)
|
|
.transition_normalized = 440.0f / 12000.0f, // 440Hz = (4940 Hz -4500 Hz) cut-3dB's (both data comes from H(f) curve plot and confirmed by measurements )
|
|
.taps = {{
|
|
{2, 0},
|
|
{-18, 0},
|
|
{34, 0},
|
|
{-33, 0},
|
|
{6, 0},
|
|
{44, 0},
|
|
{-91, 0},
|
|
{96, 0},
|
|
{-35, 0},
|
|
{-80, 0},
|
|
{193, 0},
|
|
{-223, 0},
|
|
{116, 0},
|
|
{112, 0},
|
|
{-353, 0},
|
|
{452, 0},
|
|
{-293, 0},
|
|
{-111, 0},
|
|
{584, 0},
|
|
{-844, 0},
|
|
{653, 0},
|
|
{22, 0},
|
|
{-921, 0},
|
|
{1554, 0},
|
|
{-1422, 0},
|
|
{301, 0},
|
|
{1533, 0},
|
|
{-3282, 0},
|
|
{3804, 0},
|
|
{-1819, 0},
|
|
{-4605, 0},
|
|
{29625, 0},
|
|
{29625, 0},
|
|
{-4605, 0},
|
|
{-1819, 0},
|
|
{3804, 0},
|
|
{-3282, 0},
|
|
{1533, 0},
|
|
{301, 0},
|
|
{-1422, 0},
|
|
{1554, 0},
|
|
{-921, 0},
|
|
{22, 0},
|
|
{653, 0},
|
|
{-844, 0},
|
|
{584, 0},
|
|
{-111, 0},
|
|
{-293, 0},
|
|
{452, 0},
|
|
{-353, 0},
|
|
{112, 0},
|
|
{116, 0},
|
|
{-223, 0},
|
|
{193, 0},
|
|
{-80, 0},
|
|
{-35, 0},
|
|
{96, 0},
|
|
{-91, 0},
|
|
{44, 0},
|
|
{6, 0},
|
|
{-33, 0},
|
|
{34, 0},
|
|
{-18, 0},
|
|
{2, 0},
|
|
}},
|
|
};
|
|
|
|
// USB AM 2K80J3E emission type ///////////////////////////////////////////
|
|
|
|
// IFIR prototype filter: fs=12000, pass=3000, stop=3300, decim=1, fout=12000
|
|
constexpr fir_taps_complex<64> taps_2k8_usb_channel{
|
|
.low_frequency_normalized = 0,
|
|
.high_frequency_normalized = 3000.0f / 12000.0f,
|
|
.transition_normalized = 300.0f / 12000.0f,
|
|
.taps = {{
|
|
{-146, 0},
|
|
{-41, -45},
|
|
{-1, 10},
|
|
{-95, 69},
|
|
{-194, -41},
|
|
{-91, -158},
|
|
{14, -43},
|
|
{-150, 67},
|
|
{-299, -133},
|
|
{-100, -307},
|
|
{50, -86},
|
|
{-254, 54},
|
|
{-453, -329},
|
|
{-62, -587},
|
|
{170, -189},
|
|
{-334, 0},
|
|
{-580, -645},
|
|
{104, -986},
|
|
{418, -304},
|
|
{-412, -88},
|
|
{-680, -1178},
|
|
{527, -1623},
|
|
{970, -432},
|
|
{-441, -196},
|
|
{-698, -2149},
|
|
{1617, -2800},
|
|
{2384, -507},
|
|
{-429, -311},
|
|
{-545, -5181},
|
|
{6925, -7691},
|
|
{14340, 0},
|
|
{10601, 11773},
|
|
{-1499, 14261},
|
|
{-8373, 6083},
|
|
{-5095, -1083},
|
|
{-265, -459},
|
|
{-753, 2318},
|
|
{-2954, 1315},
|
|
{-2064, -919},
|
|
{-149, -459},
|
|
{-531, 920},
|
|
{-1669, 355},
|
|
{-1100, -800},
|
|
{-44, -419},
|
|
{-346, 384},
|
|
{-992, 0},
|
|
{-580, -645},
|
|
{35, -332},
|
|
{-205, 149},
|
|
{-577, -123},
|
|
{-280, -485},
|
|
{80, -247},
|
|
{-91, 40},
|
|
{-294, -131},
|
|
{-101, -312},
|
|
{82, -142},
|
|
{-44, 9},
|
|
{-147, -107},
|
|
{-21, -197},
|
|
{79, -88},
|
|
{10, 0},
|
|
{-41, -45},
|
|
{15, -145},
|
|
{0, 0},
|
|
}},
|
|
};
|
|
|
|
// LSB AM 2K80J3E emission type ///////////////////////////////////////////
|
|
|
|
// IFIR prototype filter: fs=12000, pass=3000, stop=3300, decim=1, fout=12000
|
|
constexpr fir_taps_complex<64> taps_2k8_lsb_channel{
|
|
.low_frequency_normalized = -3000.0f / 12000.0f,
|
|
.high_frequency_normalized = 0,
|
|
.transition_normalized = 300.0f / 12000.0f,
|
|
.taps = {{
|
|
{-146, 0},
|
|
{-41, 45},
|
|
{-1, -10},
|
|
{-95, -69},
|
|
{-194, 41},
|
|
{-91, 158},
|
|
{14, 43},
|
|
{-150, -67},
|
|
{-299, 133},
|
|
{-100, 307},
|
|
{50, 86},
|
|
{-254, -54},
|
|
{-453, 329},
|
|
{-62, 587},
|
|
{170, 189},
|
|
{-334, 0},
|
|
{-580, 645},
|
|
{104, 986},
|
|
{418, 304},
|
|
{-412, 88},
|
|
{-680, 1178},
|
|
{527, 1623},
|
|
{970, 432},
|
|
{-441, 196},
|
|
{-698, 2149},
|
|
{1617, 2800},
|
|
{2384, 507},
|
|
{-429, 311},
|
|
{-545, 5181},
|
|
{6925, 7691},
|
|
{14340, 0},
|
|
{10601, -11773},
|
|
{-1499, -14261},
|
|
{-8373, -6083},
|
|
{-5095, 1083},
|
|
{-265, 459},
|
|
{-753, -2318},
|
|
{-2954, -1315},
|
|
{-2064, 919},
|
|
{-149, 459},
|
|
{-531, -920},
|
|
{-1669, -355},
|
|
{-1100, 800},
|
|
{-44, 419},
|
|
{-346, -384},
|
|
{-992, 0},
|
|
{-580, 645},
|
|
{35, 332},
|
|
{-205, -149},
|
|
{-577, 123},
|
|
{-280, 485},
|
|
{80, 247},
|
|
{-91, -40},
|
|
{-294, 131},
|
|
{-101, 312},
|
|
{82, 142},
|
|
{-44, -9},
|
|
{-147, 107},
|
|
{-21, 197},
|
|
{79, 88},
|
|
{10, 0},
|
|
{-41, 45},
|
|
{15, 145},
|
|
{0, 0},
|
|
}},
|
|
};
|
|
|
|
// USB AM 700Hz filter: fs=12000, start=600, end=800, width=200, stop=40db, decim=1, fout=12000
|
|
|
|
constexpr fir_taps_complex<64> taps_0k7_usb_channel{
|
|
.low_frequency_normalized = 600.0f / 12000.0f,
|
|
.high_frequency_normalized = 800.0f / 12000.0f,
|
|
.transition_normalized = 200.0f / 12000.0f,
|
|
.taps = {{
|
|
{531, 0},
|
|
{192, 73},
|
|
{181, 163},
|
|
{129, 254},
|
|
{34, 328},
|
|
{-97, 364},
|
|
{-251, 345},
|
|
{-403, 261},
|
|
{-524, 111},
|
|
{-585, -92},
|
|
{-564, -326},
|
|
{-448, -554},
|
|
{-239, -737},
|
|
{43, -836},
|
|
{366, -822},
|
|
{681, -681},
|
|
{936, -417},
|
|
{1085, -56},
|
|
{1090, 354},
|
|
{935, 757},
|
|
{629, 1090},
|
|
{205, 1296},
|
|
{-283, 1331},
|
|
{-766, 1180},
|
|
{-1172, 851},
|
|
{-1435, 384},
|
|
{-1510, -158},
|
|
{-1377, -702},
|
|
{-1049, -1165},
|
|
{-568, -1480},
|
|
{0, -1596},
|
|
{574, -1496},
|
|
{1072, -1191},
|
|
{1422, -724},
|
|
{1576, -165},
|
|
{1515, 406},
|
|
{1251, 908},
|
|
{827, 1273},
|
|
{309, 1453},
|
|
{-226, 1431},
|
|
{-703, 1218},
|
|
{-1058, 856},
|
|
{-1248, 405},
|
|
{-1257, -65},
|
|
{-1100, -489},
|
|
{-810, -810},
|
|
{-441, -992},
|
|
{-53, -1024},
|
|
{297, -916},
|
|
{566, -699},
|
|
{725, -418},
|
|
{765, -121},
|
|
{697, 148},
|
|
{546, 355},
|
|
{348, 479},
|
|
{138, 517},
|
|
{-50, 477},
|
|
{-194, 381},
|
|
{-280, 252},
|
|
{-308, 118},
|
|
{-285, 0},
|
|
{-228, -87},
|
|
{-153, -138},
|
|
{-241, -473},
|
|
}},
|
|
};
|
|
|
|
// USB AM+FM for Wefax (Weather fax RX) , based USB AM with truncated Differentiator band limmited cuttoff 2.400Hz for Audio Tones FM dem. ///////////////////
|
|
|
|
// IFIR prototype filter: fs=12000, pass=2600, stop=3200, decim=1, fout=12000 // stop band minimum att < -48 dB's (+3300 Hz min atten peak) , rest <50 to -60dB's
|
|
constexpr fir_taps_complex<64> taps_2k6_usb_wefax_channel{
|
|
.low_frequency_normalized = 0,
|
|
.high_frequency_normalized = 2600.0f / 12000.0f,
|
|
.transition_normalized = 600.0f / 12000.0f,
|
|
.taps = {{{-14 + 2},
|
|
{-11 - 5},
|
|
{-2 - 8},
|
|
{6 - 5},
|
|
{13 + 1},
|
|
{15 + 14},
|
|
{0 + 26},
|
|
{-22 + 13},
|
|
{-13 - 11},
|
|
{7 - 1},
|
|
{-20 + 17},
|
|
{-47 - 37},
|
|
{33 - 89},
|
|
{122 + 8},
|
|
{19 + 131},
|
|
{-124 + 26},
|
|
{1 - 123},
|
|
{158 + 52},
|
|
{-94 + 245},
|
|
{-363 - 91},
|
|
{36 - 468},
|
|
{524 - 37},
|
|
{67 + 531},
|
|
{-552 + 5},
|
|
{136 - 686},
|
|
{1013 + 258},
|
|
{-204 + 1527},
|
|
{-2104 + 168},
|
|
{-900 - 2529},
|
|
{2577 - 1881},
|
|
{2868 + 2122},
|
|
{-1209 + 3570},
|
|
{-3768 - 52},
|
|
{-1043 - 3412},
|
|
{2634 - 1801},
|
|
{2083 + 1693},
|
|
{-861 + 1927},
|
|
{-1507 - 318},
|
|
{95 - 1041},
|
|
{692 + 100},
|
|
{-189 + 519},
|
|
{-478 - 241},
|
|
{210 - 481},
|
|
{454 + 122},
|
|
{-35 + 372},
|
|
{-262 + 7},
|
|
{4 - 166},
|
|
{116 + 40},
|
|
{-66 + 108},
|
|
{-117 - 62},
|
|
{33 - 117},
|
|
{95 - 2},
|
|
{19 + 57},
|
|
{-23 + 13},
|
|
{3 - 7},
|
|
{6 + 16},
|
|
{-20 + 16},
|
|
{-25 - 9},
|
|
{-8 - 19},
|
|
{4 - 12},
|
|
{7 - 4},
|
|
{7 + 4},
|
|
{2 + 12},
|
|
{-7 + 13}
|
|
|
|
}}
|
|
|
|
};
|
|
|
|
// WFM 200KF8E emission type //////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=100000, stop=484000, decim=4, fout=768000
|
|
constexpr fir_taps_real<24> taps_200k_wfm_decim_0 = {
|
|
.low_frequency_normalized = -100000.0f / 3072000.0f,
|
|
.high_frequency_normalized = 100000.0f / 3072000.0f,
|
|
.transition_normalized = 384000.0f / 3072000.0f,
|
|
.taps = {{
|
|
48,
|
|
-18,
|
|
-151,
|
|
-364,
|
|
-557,
|
|
-548,
|
|
-139,
|
|
789,
|
|
2187,
|
|
3800,
|
|
5230,
|
|
6071,
|
|
6071,
|
|
5230,
|
|
3800,
|
|
2187,
|
|
789,
|
|
-139,
|
|
-548,
|
|
-557,
|
|
-364,
|
|
-151,
|
|
-18,
|
|
48,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=768000, pass=100000, stop=284000, decim=2, fout=384000
|
|
constexpr fir_taps_real<16> taps_200k_wfm_decim_1 = {
|
|
.low_frequency_normalized = -100000.0f / 768000.0f,
|
|
.high_frequency_normalized = 100000.0f / 768000.0f,
|
|
.transition_normalized = 184000.0f / 768000.0f,
|
|
.taps = {{
|
|
-67,
|
|
-123,
|
|
388,
|
|
622,
|
|
-1342,
|
|
-2185,
|
|
4599,
|
|
14486,
|
|
14486,
|
|
4599,
|
|
-2185,
|
|
-1342,
|
|
622,
|
|
388,
|
|
-123,
|
|
-67,
|
|
}},
|
|
};
|
|
|
|
/* Wideband audio filter */
|
|
/* 96kHz int16_t input
|
|
* -> FIR filter, <15kHz (0.156fs) pass, >19kHz (0.198fs) stop
|
|
* -> 48kHz int16_t output, gain of 1.0 (I think).
|
|
* Padded to multiple of four taps for unrolled FIR code.
|
|
* sum(abs(taps)): 125270
|
|
*/
|
|
constexpr fir_taps_real<64> taps_64_lp_156_198{
|
|
.low_frequency_normalized = -0.156f,
|
|
.high_frequency_normalized = 0.156f,
|
|
.transition_normalized = 0.04f,
|
|
.taps = {{
|
|
-27,
|
|
166,
|
|
104,
|
|
-36,
|
|
-174,
|
|
-129,
|
|
109,
|
|
287,
|
|
148,
|
|
-232,
|
|
-430,
|
|
-130,
|
|
427,
|
|
597,
|
|
49,
|
|
-716,
|
|
-778,
|
|
137,
|
|
1131,
|
|
957,
|
|
-493,
|
|
-1740,
|
|
-1121,
|
|
1167,
|
|
2733,
|
|
1252,
|
|
-2633,
|
|
-4899,
|
|
-1336,
|
|
8210,
|
|
18660,
|
|
23254,
|
|
18660,
|
|
8210,
|
|
-1336,
|
|
-4899,
|
|
-2633,
|
|
1252,
|
|
2733,
|
|
1167,
|
|
-1121,
|
|
-1740,
|
|
-493,
|
|
957,
|
|
1131,
|
|
137,
|
|
-778,
|
|
-716,
|
|
49,
|
|
597,
|
|
427,
|
|
-130,
|
|
-430,
|
|
-232,
|
|
148,
|
|
287,
|
|
109,
|
|
-129,
|
|
-174,
|
|
-36,
|
|
104,
|
|
166,
|
|
-27,
|
|
0,
|
|
}},
|
|
};
|
|
|
|
// WFM 180kHZ General purpose filter with sharp transition , it improves Commercial WFM S/N in weak signals //////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=90000, stop=250000, decim=4, fout=768000
|
|
constexpr fir_taps_real<24> taps_180k_wfm_decim_0 = {
|
|
.low_frequency_normalized = -90000.0f / 3072000.0f,
|
|
.high_frequency_normalized = 90000.0f / 3072000.0f,
|
|
.transition_normalized = 160000.0f / 3072000.0f,
|
|
.taps = {{
|
|
55,
|
|
122,
|
|
244,
|
|
424,
|
|
666,
|
|
965,
|
|
1308,
|
|
1669,
|
|
2019,
|
|
2321,
|
|
2544,
|
|
2663,
|
|
2663,
|
|
2544,
|
|
2321,
|
|
2019,
|
|
1669,
|
|
1308,
|
|
965,
|
|
666,
|
|
424,
|
|
244,
|
|
122,
|
|
55,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=768000, pass=90000, stop=170000, decim=2, fout=384000
|
|
constexpr fir_taps_real<16> taps_180k_wfm_decim_1 = {
|
|
.low_frequency_normalized = -90000.0f / 768000.0f,
|
|
.high_frequency_normalized = 90000.0f / 768000.0f,
|
|
.transition_normalized = 80000.0f / 768000.0f,
|
|
.taps = {{
|
|
55,
|
|
19,
|
|
-356,
|
|
-916,
|
|
-529,
|
|
2139,
|
|
6695,
|
|
10392,
|
|
10392,
|
|
6695,
|
|
2139,
|
|
-529,
|
|
-916,
|
|
-356,
|
|
19,
|
|
55,
|
|
}},
|
|
};
|
|
|
|
// WFM 80kHZ filter with sharp transition //////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=3072000, pass=97000, stop=300000, decim=4, fout=768000
|
|
constexpr fir_taps_real<24> taps_80k_wfm_decim_0 = {
|
|
.low_frequency_normalized = -97000.0f / 3072000.0f,
|
|
.high_frequency_normalized = 97000.0f / 3072000.0f,
|
|
.transition_normalized = 203000.0f / 3072000.0f,
|
|
.taps = {{
|
|
46,
|
|
112,
|
|
230,
|
|
408,
|
|
650,
|
|
953,
|
|
1301,
|
|
1671,
|
|
2029,
|
|
2340,
|
|
2570,
|
|
2692,
|
|
2692,
|
|
2570,
|
|
2340,
|
|
2029,
|
|
1671,
|
|
1301,
|
|
953,
|
|
650,
|
|
408,
|
|
230,
|
|
112,
|
|
46,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=768000, pass=37500, stop=112500, decim=2, fout=384000
|
|
constexpr fir_taps_real<16> taps_80k_wfm_decim_1 = {
|
|
.low_frequency_normalized = -37500.0f / 768000.0f,
|
|
.high_frequency_normalized = 37500.0f / 768000.0f,
|
|
.transition_normalized = 75000.0f / 768000.0f,
|
|
.taps = {{
|
|
83,
|
|
299,
|
|
743,
|
|
1456,
|
|
2396,
|
|
3418,
|
|
4297,
|
|
4808,
|
|
4808,
|
|
4297,
|
|
3418,
|
|
2396,
|
|
1456,
|
|
743,
|
|
299,
|
|
83,
|
|
}},
|
|
};
|
|
|
|
// WFMAM decimation filters ////////////////////////////////////////////////
|
|
// Used for NOAA 137 Mhz APT sat demod.
|
|
// IFIR prototype filter: fs=768000, pass=40000, stop=95000, decim=8, fout=96000
|
|
constexpr fir_taps_real<32> taps_80k_wfmam_decim_1 = {
|
|
.low_frequency_normalized = -40000.0f / 768000.0f,
|
|
.high_frequency_normalized = 40000.0f / 768000.0f,
|
|
.transition_normalized = 53000.0f / 768000.0f,
|
|
.taps = {{
|
|
5,
|
|
-37,
|
|
-120,
|
|
-248,
|
|
-397,
|
|
-519,
|
|
-535,
|
|
-354,
|
|
106,
|
|
896,
|
|
2006,
|
|
3355,
|
|
4797,
|
|
6136,
|
|
7171,
|
|
7736,
|
|
7736,
|
|
7171,
|
|
6136,
|
|
4797,
|
|
3355,
|
|
2006,
|
|
896,
|
|
106,
|
|
-354,
|
|
-535,
|
|
-519,
|
|
-397,
|
|
-248,
|
|
-120,
|
|
-37,
|
|
5,
|
|
|
|
}},
|
|
};
|
|
|
|
// WFMAM decimation filters ////////////////////////////////////////////////
|
|
// Used for NOAA 137 Mhz APT sat demod.
|
|
// IFIR prototype filter: fs=768000, pass=19000, stop=68000, decim=8, fout=96000
|
|
constexpr fir_taps_real<32> taps_38k_wfmam_decim_1 = {
|
|
.low_frequency_normalized = -19000.0f / 768000.0f,
|
|
.high_frequency_normalized = 19000.0f / 768000.0f,
|
|
.transition_normalized = 49000.0f / 768000.0f,
|
|
.taps = {{
|
|
49,
|
|
91,
|
|
175,
|
|
303,
|
|
483,
|
|
724,
|
|
1028,
|
|
1391,
|
|
1805,
|
|
2253,
|
|
2712,
|
|
3158,
|
|
3560,
|
|
3891,
|
|
4127,
|
|
4250,
|
|
4250,
|
|
4127,
|
|
3891,
|
|
3560,
|
|
3158,
|
|
2712,
|
|
2253,
|
|
1805,
|
|
1391,
|
|
1028,
|
|
724,
|
|
483,
|
|
303,
|
|
175,
|
|
91,
|
|
49,
|
|
}},
|
|
};
|
|
|
|
/* 1st Wideband FM demod baseband filter of audio AM tones ,
|
|
to pass all DSB band of AM fsubcarrier 2.4Khz mod. with APT */
|
|
/* 24kHz int16_t input
|
|
* -> FIR filter, <4.5kHz (0.1875fs) pass, >5.2kHz (0.2166fs) stop
|
|
* -> 12kHz int16_t output, gain of 1.0 (I think).
|
|
* sum(abs(taps)): 125152 , before <125270>, very similar.
|
|
*/
|
|
constexpr fir_taps_real<64> taps_64_lp_1875_2166{
|
|
.low_frequency_normalized = -0.1875f,
|
|
.high_frequency_normalized = 0.1875f,
|
|
.transition_normalized = 0.03f,
|
|
.taps = {{
|
|
38,
|
|
-21,
|
|
-51,
|
|
-9,
|
|
77,
|
|
82,
|
|
-50,
|
|
-168,
|
|
-67,
|
|
190,
|
|
253,
|
|
-61,
|
|
-403,
|
|
-243,
|
|
356,
|
|
616,
|
|
15,
|
|
-814,
|
|
-671,
|
|
550,
|
|
1335,
|
|
334,
|
|
-1527,
|
|
-1689,
|
|
725,
|
|
2978,
|
|
1455,
|
|
-3277,
|
|
-5361,
|
|
830,
|
|
13781,
|
|
24549,
|
|
24549,
|
|
13781,
|
|
830,
|
|
-5361,
|
|
-3277,
|
|
1455,
|
|
2978,
|
|
725,
|
|
-1689,
|
|
-1527,
|
|
334,
|
|
1335,
|
|
550,
|
|
-671,
|
|
-814,
|
|
15,
|
|
616,
|
|
356,
|
|
-243,
|
|
-403,
|
|
-61,
|
|
253,
|
|
190,
|
|
-67,
|
|
-168,
|
|
-50,
|
|
82,
|
|
77,
|
|
-9,
|
|
-51,
|
|
-21,
|
|
38,
|
|
}},
|
|
};
|
|
|
|
/* 1st Wideband FM demod baseband filter of audio AM tones ,
|
|
to pass all DSB band of AM fsubcarrier 2.4Khz mod. with APT */
|
|
/* 24kHz int16_t input
|
|
* -> FIR filter, BPF center 2k4 carrier ,APT BW 2kHz
|
|
* -> 12kHz int16_t output, gain of 1.0 (I think).
|
|
*/
|
|
constexpr fir_taps_real<64> taps_64_bpf_2k4_bw_2k{
|
|
.low_frequency_normalized = -0.1875f, // not updated, this is just for LPF , waterfall GUI, we are not using in BPF NOAA app.
|
|
.high_frequency_normalized = 0.1875f, // not used GUI in NOAA App.
|
|
.transition_normalized = 0.03f, // not used GUI in NOAA app.
|
|
.taps = {{-45, -29, 32, 63, 0, -125, -181, -81, 61,
|
|
0, -329, -635, -551, -147, 0, -547, -1404, -1625,
|
|
-849, 0, -414, -2118, -3358, -2422, 0, 911, -1792,
|
|
-6126, -6773, 0, 11839, 21131, 21131, 11839, 0, -6773,
|
|
-6126, -1792, 911, 0, -2422, -3358, -2118, -414, 0,
|
|
-849, -1625, -1404, -547, 0, -147, -551, -635, -329,
|
|
0, 61, -81, -181, -125, 0, 63, 32, -29,
|
|
-45}},
|
|
};
|
|
|
|
// TPMS decimation filters ////////////////////////////////////////////////
|
|
|
|
// IFIR image-reject filter: fs=2457600, pass=100000, stop=407200, decim=4, fout=614400
|
|
static constexpr fir_taps_real<24> taps_200k_decim_0 = {
|
|
.low_frequency_normalized = -100000.0f / 2457600.0f,
|
|
.high_frequency_normalized = 100000.0f / 2457600.0f,
|
|
.transition_normalized = 307200.0f / 2457600.0f,
|
|
.taps = {{
|
|
90,
|
|
94,
|
|
4,
|
|
-240,
|
|
-570,
|
|
-776,
|
|
-563,
|
|
309,
|
|
1861,
|
|
3808,
|
|
5618,
|
|
6710,
|
|
6710,
|
|
5618,
|
|
3808,
|
|
1861,
|
|
309,
|
|
-563,
|
|
-776,
|
|
-570,
|
|
-240,
|
|
4,
|
|
94,
|
|
90,
|
|
}},
|
|
};
|
|
|
|
// IFIR prototype filter: fs=614400, pass=100000, stop=207200, decim=2, fout=307200
|
|
static constexpr fir_taps_real<16> taps_200k_decim_1 = {
|
|
.low_frequency_normalized = -100000.0f / 614400.0f,
|
|
.high_frequency_normalized = 100000.0f / 614400.0f,
|
|
.transition_normalized = 107200.0f / 614400.0f,
|
|
.taps = {{
|
|
-132,
|
|
-256,
|
|
545,
|
|
834,
|
|
-1507,
|
|
-2401,
|
|
4666,
|
|
14583,
|
|
14583,
|
|
4666,
|
|
-2401,
|
|
-1507,
|
|
834,
|
|
545,
|
|
-256,
|
|
-132,
|
|
}},
|
|
};
|
|
|
|
// BTLE RX decimation filters ////////////////////////////////////////////////
|
|
// Default BTLE filter, it is supporting 1M PHY.
|
|
// IFIR image-reject filter: fs=4000000, pass=430000, stop=825000, decim=4, fout=1000000
|
|
// 1M PHY, This one it is for the classic bluetooth , (BW = 1Mhz : +-500k, channel space is 2Mhz)
|
|
// The traditional transmission of 1 Mbit in the Bluetooth Basic Rate was renamed 1M PHY
|
|
static constexpr fir_taps_real<24> taps_BTLE_1M_PHY_decim_0 = {
|
|
.low_frequency_normalized = -430000.0f / 4000000.0f,
|
|
.high_frequency_normalized = 430000.0f / 4000000.0f,
|
|
.transition_normalized = 395000.0f / 4000000.0f,
|
|
.taps = {{
|
|
|
|
12,
|
|
57,
|
|
112,
|
|
83,
|
|
-139,
|
|
-531,
|
|
-813,
|
|
-507,
|
|
766,
|
|
2916,
|
|
5255,
|
|
6788,
|
|
6788,
|
|
5255,
|
|
2916,
|
|
766,
|
|
-507,
|
|
-813,
|
|
-531,
|
|
-139,
|
|
83,
|
|
112,
|
|
57,
|
|
12,
|
|
|
|
}},
|
|
};
|
|
|
|
// IFIR image-reject filter: fs=4000000, pass=920000, stop=1350000, decim=4, fout=1000000
|
|
// Alternative filter, Note : in local test, it improves slightly the sensitivity compared to above filter, but it should have aliasing if co-adjacent channels.
|
|
// Then , we leave that filter in the code ,as experimental , but it should not be set up as default one.
|
|
// It may work well, in areas where we just receive few signals, without adjacent channels and weak far away signals.
|
|
// 2M PHY , Bluetooth 5 has introduced a new transmission mode with a doubled symbol rate.
|
|
// Bluetooth LE has been traditionally transmitting 1 bit per symbol so that theoretically the data rate doubles as well. (BW 2Mhz : +-1Mhz, channel space 2Mhz)
|
|
static constexpr fir_taps_real<24> taps_BTLE_2M_PHY_decim_0 = {
|
|
.low_frequency_normalized = -920000.0f / 4000000.0f,
|
|
.high_frequency_normalized = 920000.0f / 4000000.0f,
|
|
.transition_normalized = 430000.0f / 4000000.0f,
|
|
.taps = {{
|
|
|
|
-8,
|
|
-20,
|
|
42,
|
|
81,
|
|
-142,
|
|
-234,
|
|
371,
|
|
573,
|
|
-884,
|
|
-1414,
|
|
2573,
|
|
8062,
|
|
8062,
|
|
2573,
|
|
-1414,
|
|
-884,
|
|
573,
|
|
371,
|
|
-234,
|
|
-142,
|
|
81,
|
|
42,
|
|
-20,
|
|
-8,
|
|
|
|
}},
|
|
};
|
|
|
|
// Tested to be better at capturing both 4.0 and 5.0 device. Better attenuation at channel end.
|
|
static constexpr fir_taps_real<24> taps_BTLE_Dual_PHY = {
|
|
.low_frequency_normalized = -750000.0f / 4000000.0f,
|
|
.high_frequency_normalized = 750000.0f / 4000000.0f,
|
|
.transition_normalized = 250000.0f / 4000000.0f,
|
|
.taps = {{3,
|
|
-5,
|
|
-97,
|
|
-144,
|
|
317,
|
|
1099,
|
|
396,
|
|
-2887,
|
|
-4814,
|
|
1912,
|
|
18134,
|
|
32767,
|
|
32767,
|
|
18134,
|
|
1912,
|
|
-4814,
|
|
-2887,
|
|
396,
|
|
1099,
|
|
317,
|
|
-144,
|
|
-97,
|
|
-5,
|
|
3}},
|
|
};
|
|
|
|
#endif /*__DSP_FIR_TAPS_H__*/
|