Main page
Recent changes
Open interface III
B
I
U
S
link
image
code
list
Show page
Syntax
!!!Band decoder {{// BAND DECODER Inputs #define SERBAUD2 9600 // [baud] CAT Serial port in/out baudrate #define ICOM_CIV // read frequency from CIV (icom_civ.h) ** you must enabled 'CI-V transceive' in TRX settings ** // #define KENWOOD_PC // RS232 CAT (kenwood_pc.h) // #define YAESU_CAT // RS232 CAT (yaesu_cat.h) YAESU CAT since 2015 ascii format // #define YAESU_CAT_OLD // Old binary format RS232 CAT (yaesu_cat_old.h) <------- ** tested on FT-817 ** // #define INPUT_SERIAL // telnet ascii input - cvs format [band],[freq]\n (serial.h) // #define YAESU_BCD // TTL BCD in A (yaesu_bcd.h) // #define ICOM_ACC // voltage 0-8V on pin? ACC connector - need calibrate // BAND DECODER Outputs #define SERBAUD3 115200 // [baud] CAT Serial port in/out baudrate #define BCD_OUT // output 11-14 relay used as Yaesu BCD // #define ICOM_CIV_OUT // send frequency to CIV ** you must set TRX CIV_ADRESS, and disable ICOM_CIV ** // #define KENWOOD_PC_OUT // send frequency to RS232 CAT ** for operation must disable REQUEST ** // #define YAESU_CAT_OUT // send frequency to RS232 CAT ** for operation must disable REQUEST ** // #define REMOTE_RELAY // TCP/IP remote relay - need install and configure TCP232 module // #define SERIAL_echo // Feedback on serial line in same baudrate, CVS format <[band],[freq]>\n // BAND DECODER Settings #define WATCHDOG // determines the time, after which the BCD output switch to OFF and Frequency to 0 - uncomment for the enabled <------------------- nefunguje v request modu #define REQUEST // use TXD output for sending frequency request, if not detect frequency in sniff mode (Kenwood PC, Yaesu CAT, Yaesu CAT old, Icom CIV) #define CIV_ADRESS 0x56 // CIV input HEX Icom adress (0x is prefix) // #define CIV_ADR_OUT 0x56 // CIV output HEX Icom adress (0x is prefix) char* ANTname[17] = { // Name antennas on LCD "-", "Dipole", // Band 1 "Vertical", // Band 2 "Yagi", // Band 3 "Windom", // Band 4 "DeltaLoop", // Band 5 "20m Stack", // Band 6 "-", // Band 7 "-", // Band 8 "-", // Band 9 "-", // Band 10 "-", // Band 11 "-", // Band 12 "-", // Band 13 "-", // Band 14 "-", // Band 15 "-" // Band 16 };}} **'''Frequency to Band''' rules{{//=====[ Frequency (Hz) to Band rules ]====================================== // you can expand rules up to 16 BCD Bands if (freq >= 1810000 && freq <= 2000000 ) {BAND=1;} // 160m else if (freq >= 3500000 && freq <= 3800000 ) {BAND=2;} // 80m else if (freq >= 7000000 && freq <= 7200000 ) {BAND=3;} // 40m else if (freq >= 10100000 && freq <= 10150000 ) {BAND=4;} // 30m else if (freq >= 14000000 && freq <= 14350000 ) {BAND=5;} // 20m else if (freq >= 18068000 && freq <= 18168000 ) {BAND=6;} // 17m else if (freq >= 21000000 && freq <= 21450000 ) {BAND=7;} // 15m else if (freq >= 24890000 && freq <= 24990000 ) {BAND=8;} // 12m else if (freq >= 28000000 && freq <= 29700000 ) {BAND=9;} // 10m else if (freq >= 50000000 && freq <= 52000000 ) {BAND=10;} // 6m else if (freq >= 144000000 && freq <= 146000000 ) {BAND=11;} // 2m else {BAND=0;} // out of range //=========================================================================== }} **'''BCD Output''' matrix table{{ -------------------------------------------------------------------- Band # to output relay 0 1 2 3 4 5 6 7 8 9 10 (Yaesu BCD) 160 80 40 30 20 17 15 12 10 6m -------------------------------------------------------------------- | | | | | | | | | | | V V V V V V V V V V V */ { 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 0 }, /* --> BCD1 */ { 0, 0, 1, 1, 0, 0, 1, 1, 0, 0, 1 }, /* --> BCD2 */ { 0, 0, 0, 0, 1, 1, 1, 1, 0, 0, 0 }, /* --> BCD3 */ { 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1 }, /* --> BCD4 */}; }}
Password
Summary of changes