Add 350Mhz to default range

Actually this frequency is used by some part of home devices like ceiling fans
This commit is contained in:
MX 2023-01-03 18:40:03 +03:00
parent 1534bcf7cb
commit 82f8ad4540
No known key found for this signature in database
GPG key ID: 6C4C311DFD4B4AB5
5 changed files with 43 additions and 8 deletions

View file

@ -23,10 +23,10 @@
static const uint32_t subghz_frequency_list[] = { static const uint32_t subghz_frequency_list[] = {
300000000, 302757000, 303875000, 304250000, 307000000, 307500000, 307800000, 309000000, 300000000, 302757000, 303875000, 304250000, 307000000, 307500000, 307800000, 309000000,
310000000, 312000000, 312100000, 313000000, 313850000, 314000000, 314350000, 314980000, 310000000, 312000000, 312100000, 313000000, 313850000, 314000000, 314350000, 314980000,
315000000, 318000000, 330000000, 345000000, 348000000, 387000000, 390000000, 418000000, 315000000, 318000000, 330000000, 345000000, 348000000, 350000000, 387000000, 390000000,
433075000, 433220000, 433420000, 433657070, 433889000, 433920000, 434075000, 434176948, 418000000, 433075000, 433220000, 433420000, 433657070, 433889000, 433920000, 434075000,
434390000, 434420000, 434775000, 438900000, 440175000, 464000000, 779000000, 868350000, 434176948, 434390000, 434420000, 434775000, 438900000, 440175000, 464000000, 779000000,
868400000, 868800000, 868950000, 906400000, 915000000, 925000000, 928000000}; 868350000, 868400000, 868800000, 868950000, 906400000, 915000000, 925000000, 928000000};
typedef enum { typedef enum {
SubGhzFrequencyAnalyzerStatusIDLE, SubGhzFrequencyAnalyzerStatusIDLE,

View file

@ -1,6 +1,6 @@
## How to extend SubGHz supported frequency range ## How to extend SubGHz supported frequency range
#### CC1101 Frequency range specs: 300-348 MHz, 386-464 MHz, and 778-928 MHz #### CC1101 Frequency range specs: 300-348 MHz, 386-464 MHz, and 778-928 MHz (+ 350MHz was added to default range)
#### This setting will extend to: 281-361 MHz, 378-481 MHz, and 749-962 MHz #### This setting will extend to: 281-361 MHz, 378-481 MHz, and 749-962 MHz
1. Please do not do that unless you know what exactly you are doing 1. Please do not do that unless you know what exactly you are doing

View file

@ -1,6 +1,6 @@
## How to add new SubGHz frequencies ## How to add new SubGHz frequencies
#### CC1101 Frequency range specs: 300-348 MHz, 386-464 MHz, and 778-928 MHz #### CC1101 Frequency range specs: 300-348 MHz, 386-464 MHz, and 778-928 MHz (+ 350MHz was added to default range)
Edit user settings file located on your microSD card - `subghz/assets/setting_user` Edit user settings file located on your microSD card - `subghz/assets/setting_user`
@ -11,26 +11,60 @@ if you need your custom one, make sure it doesn't listed here
``` ```
/* 300 - 348 */ /* 300 - 348 */
300000000, 300000000,
302757000,
303875000, 303875000,
304250000, 304250000,
307000000,
307500000,
307800000,
309000000,
310000000, 310000000,
312000000,
312100000,
312200000,
313000000,
313850000,
314000000,
314350000,
314980000,
315000000, 315000000,
318000000, 318000000,
330000000,
345000000,
348000000,
350000000,
/* 387 - 464 */ /* 387 - 464 */
387000000,
390000000, 390000000,
418000000, 418000000,
433075000, /* LPD433 first */ 433075000, /* LPD433 first */
433220000,
433420000, 433420000,
433920000 /* LPD433 mid */ 433657070,
433889000,
433920000 | FREQUENCY_FLAG_DEFAULT, /* LPD433 mid */
434075000,
434176948,
434190000,
434390000,
434420000, 434420000,
434620000,
434775000, /* LPD433 last channels */ 434775000, /* LPD433 last channels */
438900000, 438900000,
440175000,
464000000,
/* 779 - 928 */ /* 779 - 928 */
779000000,
868350000, 868350000,
868400000,
868800000,
868950000,
906400000,
915000000, 915000000,
925000000, 925000000,
928000000,
``` ```
### User frequencies added AFTER that default list! You need to continue until you reach the end of that list ### User frequencies added AFTER that default list! You need to continue until you reach the end of that list

View file

@ -338,7 +338,7 @@ bool furi_hal_subghz_is_tx_allowed(uint32_t value) {
flipper_format_free(fff_data_file); flipper_format_free(fff_data_file);
furi_record_close(RECORD_STORAGE); furi_record_close(RECORD_STORAGE);
if(!(value >= 299999755 && value <= 348000335) && if(!(value >= 299999755 && value <= 350000335) &&
!(value >= 386999938 && value <= 464000000) && !(value >= 386999938 && value <= 464000000) &&
!(value >= 778999847 && value <= 928000000) && !(is_extended)) { !(value >= 778999847 && value <= 928000000) && !(is_extended)) {
FURI_LOG_I(TAG, "Frequency blocked - outside default range"); FURI_LOG_I(TAG, "Frequency blocked - outside default range");

View file

@ -39,6 +39,7 @@ static const uint32_t subghz_frequency_list[] = {
330000000, 330000000,
345000000, 345000000,
348000000, 348000000,
350000000,
/* 387 - 464 */ /* 387 - 464 */
387000000, 387000000,