mirror of
https://github.com/DarkFlippers/unleashed-firmware
synced 2024-11-23 04:53:08 +00:00
Add 350Mhz to default range
Actually this frequency is used by some part of home devices like ceiling fans
This commit is contained in:
parent
1534bcf7cb
commit
82f8ad4540
5 changed files with 43 additions and 8 deletions
|
@ -23,10 +23,10 @@
|
|||
static const uint32_t subghz_frequency_list[] = {
|
||||
300000000, 302757000, 303875000, 304250000, 307000000, 307500000, 307800000, 309000000,
|
||||
310000000, 312000000, 312100000, 313000000, 313850000, 314000000, 314350000, 314980000,
|
||||
315000000, 318000000, 330000000, 345000000, 348000000, 387000000, 390000000, 418000000,
|
||||
433075000, 433220000, 433420000, 433657070, 433889000, 433920000, 434075000, 434176948,
|
||||
434390000, 434420000, 434775000, 438900000, 440175000, 464000000, 779000000, 868350000,
|
||||
868400000, 868800000, 868950000, 906400000, 915000000, 925000000, 928000000};
|
||||
315000000, 318000000, 330000000, 345000000, 348000000, 350000000, 387000000, 390000000,
|
||||
418000000, 433075000, 433220000, 433420000, 433657070, 433889000, 433920000, 434075000,
|
||||
434176948, 434390000, 434420000, 434775000, 438900000, 440175000, 464000000, 779000000,
|
||||
868350000, 868400000, 868800000, 868950000, 906400000, 915000000, 925000000, 928000000};
|
||||
|
||||
typedef enum {
|
||||
SubGhzFrequencyAnalyzerStatusIDLE,
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## 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
|
||||
|
||||
1. Please do not do that unless you know what exactly you are doing
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
## 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`
|
||||
|
||||
|
@ -11,26 +11,60 @@ if you need your custom one, make sure it doesn't listed here
|
|||
```
|
||||
/* 300 - 348 */
|
||||
300000000,
|
||||
302757000,
|
||||
303875000,
|
||||
304250000,
|
||||
307000000,
|
||||
307500000,
|
||||
307800000,
|
||||
309000000,
|
||||
310000000,
|
||||
312000000,
|
||||
312100000,
|
||||
312200000,
|
||||
313000000,
|
||||
313850000,
|
||||
314000000,
|
||||
314350000,
|
||||
314980000,
|
||||
315000000,
|
||||
318000000,
|
||||
330000000,
|
||||
345000000,
|
||||
348000000,
|
||||
350000000,
|
||||
|
||||
/* 387 - 464 */
|
||||
387000000,
|
||||
390000000,
|
||||
418000000,
|
||||
433075000, /* LPD433 first */
|
||||
433220000,
|
||||
433420000,
|
||||
433920000 /* LPD433 mid */
|
||||
433657070,
|
||||
433889000,
|
||||
433920000 | FREQUENCY_FLAG_DEFAULT, /* LPD433 mid */
|
||||
434075000,
|
||||
434176948,
|
||||
434190000,
|
||||
434390000,
|
||||
434420000,
|
||||
434620000,
|
||||
434775000, /* LPD433 last channels */
|
||||
438900000,
|
||||
440175000,
|
||||
464000000,
|
||||
|
||||
/* 779 - 928 */
|
||||
779000000,
|
||||
868350000,
|
||||
868400000,
|
||||
868800000,
|
||||
868950000,
|
||||
906400000,
|
||||
915000000,
|
||||
925000000,
|
||||
928000000,
|
||||
```
|
||||
|
||||
### User frequencies added AFTER that default list! You need to continue until you reach the end of that list
|
||||
|
|
|
@ -338,7 +338,7 @@ bool furi_hal_subghz_is_tx_allowed(uint32_t value) {
|
|||
flipper_format_free(fff_data_file);
|
||||
furi_record_close(RECORD_STORAGE);
|
||||
|
||||
if(!(value >= 299999755 && value <= 348000335) &&
|
||||
if(!(value >= 299999755 && value <= 350000335) &&
|
||||
!(value >= 386999938 && value <= 464000000) &&
|
||||
!(value >= 778999847 && value <= 928000000) && !(is_extended)) {
|
||||
FURI_LOG_I(TAG, "Frequency blocked - outside default range");
|
||||
|
|
|
@ -39,6 +39,7 @@ static const uint32_t subghz_frequency_list[] = {
|
|||
330000000,
|
||||
345000000,
|
||||
348000000,
|
||||
350000000,
|
||||
|
||||
/* 387 - 464 */
|
||||
387000000,
|
||||
|
|
Loading…
Reference in a new issue