Страница 1 из 2
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 05:22
Gunka
Hello,
With the new software version 4.2 AIR beta, is there now a specific port binding for LNAenablePin(26), antHiZPin(25), audioMutePin(27) and BTenablePin(27)?
I found that these pins cannot be assigned other ports in the setting.ini. The pins can only be activated or deactivated.
The only exception was that the audioMutePin can also be assigned D26. In the previous software versions it was
Changing the port assignment is possible without any problem.
For example, the modified following configuration does not work:
audioMutePin(27) and BTenablePin(26). The audioMutePin is automatically set to 26.
Even if I want to disable audioMutePin with 0, it stays at 26, like BTenablePin.
I used the "Generius" model and my own hardware project (V9, ILI9488) for these tests, using the "LNA" and "HiZ" buttons for other functions.
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 09:07
Binns
Gunka, Version 4.2 has a new setting.ini file. It is located in the folder with the firmware \firmware\files. You can also download the zip archive with the firmware on the website
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 12:22
Gunka
Many thanks for the quick response. Yes, of course I used the new setting.ini. I mentioned the new variable names in my posting. So now I have to assume that the port assignments for the corresponding variables cannot be changed? Is that right?
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 12:44
Binns
Gunka, please post the setting.ini file here
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 15:11
Gunka
This configuration is working.
But I can not set BTenablePin for example to 26.
In new firmware specific port binding in setting.ini?
Добавлено: 17 апр 2024, 15:11
Gunka
This configuration is working:
// ========================= HARDWARE SETUP =========================
// ============================== PINS ==============================
// ========================================= default TFT display pins
// TFT_MISO 19
// TFT_MOSI 23
// TFT_SCLK 18
// TFT_CS 15 // Chip select control pin
// TFT_DC 2 // Data Command control pin
// TFT_RST 4 // Reset pin (could connect to RST pin)
// ============================================ default TFT touch pin
// TOUCH_CS 5 // Chip select pin (T_CS) of touch screen
// ==================================================== variable pins
//SDAPin , 21 // I2C bus SDA pin on ESP32
//SCLPin , 22 // I2C bus SCL pin on ESP32
//resetPin , 12 // reset pin ESP32
//encoderPinA , 17 // encoder rotate pin A ESP32
//encoderPinB , 16 // encoder rotate pin B ESP32
//encoderSwitchPin , 33 // encoder switch pin ESP32
batteryInfoPin , 35 // battery voltage divider pin ESP32
batteryChargePin , 36 // battery charge divider pin ESP32
beeperPin , 13 // beeper pin ESP32
displayLedPin , 14 // display led control pin ESP32
audioMutePin , 27 // hardware audio mute pin ESP32
decoderPin , 39 // decoder CW & RTTY pin ESP32
audioInputPin , 32 // input audio pin ESP32
LNAenablePin , 26 //26 // LNA enable pin ESP32
antHiZPin , 25 // switching antenna input impedance pin ESP32
//lockSwitchPin , 13 // functional button pin ESP32
BTenablePin , 27 //27 // bluetooth enable pin ESP32
// ============================= SI5351 =============================
//si5351Clk , 0 // =0 for default 25000000 Hz
//emulationSI5351 , 0 // =1 for emulation SI5351
//si473xCLK , 0 // =0,1,2 output CLK pin for freq si473x 32768Hz
//mixerCLK , 1 // =0,1,2 output CLK pin for frequency mixer SA602
// ============================ Decoder =============================
//shiftCW , 800 // Detection tone frequency in Hz
// ============================= Debug ==============================
//screenDebug , 0 // =1 this for draw dots on touch screen
//webDebug , 0 // =1 this for send to serial port incomming
requests to web server
//batLog , 0 // =1 this for battery status logging
to a file in SPIFFS
// ============================= Power===============================
batValueAdjust , +0.18 // adjusting the battery voltage value
batEmpty , 2.8 //2.7 // volt 0% battery charge
//batFull , 3.7 // volt 100% battery charge
batMin , 2.7 //2.65 // volt minimum voltage battery
//batMax , 4.35 // volt maximum voltage battery
// ============================ Wi-Fi AP ============================
//ssidAP , H-RADIO // ssid AP in AP mode
//passAP , harduino // password
// ============================== Seek ==============================
//seekAmRssiThreshold , 10 // Threshold RSSI for seek in AM
//seekAmSrnThreshold , 1 // Threshold SNR for seek in AM
//seekFmRssiThreshold , 10 // Threshold RSSI for seek in FM
//seekFmSrnThreshold , 1 // Threshold SNR for seek in FM
// ============================= Screen =============================
//screenMirror , 0 // =1 this true to screen mirroring
//touchHoriRevers , 0 // =1 this to revers horisontal axis touch screen
//touchVertRevers , 0 // =1 this to revers virtical axis touch screen
//touchAxisNotRotate , 0 // =1 this to not rotate axis touch screen width screen
//touchAxisSwap , 0 // =1 this to swap axis touch screen
//calDataOverrideXOffset , 0 // set override calibrate screen data X offset (0 - not override)
//calDataOverrideXScale , 0 // set override calibrate screen data X scale (0 - not override)
//calDataOverrideYOffset , 0 // set override calibrate screen data Y offset (0 - not override)
//calDataOverrideYScale , 0 // set override calibrate screen data Y scale (0 - not override)
// ========================= Personalisation ========================
//colorBackground , 0 // frequency display background color
//colorIndicatorFreq , 65535 // frequency display foreground color
// ======================== Bands boundaries ========================
// BAND_n_{BEGIN,END} , d n= 1-30 band number. See INFO page
// d= +-delta in KHz or x10 KHz for FM band
// EXAMPLE: BAND_1_END , -100 // Band FM end maximum frequency = 107.00 MHz
// BAND_14_BEGIN , 50 // Band 40M start frequency = 7050 KHz
// ========== Intermediate frequency ranges for the mixer ===========
//MIN_FREQ_TRANS_FM, 75000 // start frequency range for FM
//MAX_FREQ_TRANS_FM, 86000 // end frequency range for FM
//MIN_FREQ_TRANS_AM, 12300 // start frequency range for AM
//MAX_FREQ_TRANS_AM, 30000 // end frequency range for AM
In new firmware specific port binding in setting.ini?
Добавлено: 18 апр 2024, 18:17
dua
Причитал сообщения в этой ветке, решил посмотреть файл Settings.ini. Установлена 4.2 beta от 15.04.2024, приемник самодельный на основе платы v 7.2.2. Зашел на приемник с помощью A-Explorer, и не нашел файла Settings.ini. Что нужно сделать чтобы увидеть реальную конфигурацию приемника?
In new firmware specific port binding in setting.ini?
Добавлено: 18 апр 2024, 22:48
Gunka
dua, Файл setting.ini после переустановки отсутствует в каталоге получателя. Вы можете найти его на своем компьютере по следующему пути: «C:\Program Files (x86)\Harduino\H-RADIO\Installer\firmware\files». Однако файл setting.ini по-прежнему общий и не адаптирован к вашему RX, и вам придется изменить его по своему желанию, а затем вставить с помощью A-Explorer. Вы можете просмотреть свою текущую конфигурацию с помощью функции настройки. Пожалуйста, также сравните сообщение Binns в этой теме.
In new firmware specific port binding in setting.ini?
Добавлено: 19 апр 2024, 09:55
Binns
Gunka, So I checked the operation of the setting.ini file. I have set audioMutePin , 27 and BTenablePin , 26 in the file. This works Can be checked in INFO. However, in your setting.ini file, I noticed several pins that you set with the same value. This conflict should be avoided, it leads to errors in the operation of the receiver.
In new firmware specific port binding in setting.ini?
Добавлено: 19 апр 2024, 14:14
Gunka
Thank you for testing the configuration! In my setting.ini posted here, I used port 27 twice and exactly this configuration worked perfectly for me. However, if I assign BTenablePin to 26, just like you have successfully tested, it doesn't work for me. That's strange. And it's still strange that the following configuration also works perfectly for me: audioMutePin , 26 and BTenablePin , 27. At the moment I can't explain it. I will test the configuration again over the weekend and compare it in the info.