Пример конфига фрн клиента для *nix систем

FRN линки на базе мини компьютеров Raspberry Pi, OrangePi и т.п.
Ответить
Аватара пользователя
3s
Сообщения:744
Зарегистрирован:14:19, 01 авг 2014, Пт
Пример конфига фрн клиента для *nix систем

Сообщение 3s » 14:09, 23 окт 2015, Пт

Подключение РЭС через конвертер USB-COM и USB звуковую карту
Фрн клиент ревизия r3342+ http://alterfrn.ucoz.ru/L64_R3488.tgz

[Auth]
Callsign=3S-L
OperatorName=Cb
EMailAddress=***@****.ru
City=Moscow
CityPart=ZAO
Password=********
DynamicPassword=
Country=Russian Federation
Description=CB 38ch(27.380 MHz) FM TONE #4(77Hz) RX/TX
BandChannel=27.38000FM CTC 77.0
ClientType=GATEWAY
CharsetName=WINDOWS-1251

[Audio]
InDevice=ALSA:USB PnP Sound Device: USB Audio (hw:1,0)
InSampleRate=44100
InQuality=L
InFactor=2
InAGCEnabled=no
InAGCLevel=99
InAGCMaxGain=20
InHPFEnabled=no
InHPFOrder=5
InHPFDouble=no
OutDevice=ALSA:USB PnP Sound Device: USB Audio (hw:1,0)
OutSampleRate=44100
OutQuality=L
OutFactor=2
OutAGCEnabled=no
OutAGCLevel=99
OutAGCMaxGain=40
OutHPFEnabled=no
OutHPFOrder=5
OutHPFDouble=no

[Radio]
PTT=COM:/dev/ttyUSB0:RTS:
COS=VOX:500
CTCSSWakeTime=400
CarrierCatchTime=200
CarrierLostTime=500
SquelchSettlingTime=100
CourtesyDelay=100
SquelchSettlingTimeIn=100

[Server]
ServerReconnectCount=3
ServerReconnectInterval=3000
ServerAddress=frn.radiocult.ru
ServerPort=10024
CharsetName=WINDOWS-1251
VisibleStatus=AV
Network=Radiocult_cb
#Network=Test

BackupServerMode=YES
ForcedBackupServerAddress=frn3.radiocult.ru
ForcedBackupServerPort=10027

[Manager]
ManagerAddress=sysman.freeradionetwork.eu
ManagerPort=10025
DynamicPasswordMode=YES

[Internet]
ProxyType=NONE
CharsetName=UTF-8

[Message]
PrivateAutoResponse=<a href="http://radiocult.ru">http://radiocult.ru</a>

[System]
CharsetName=UTF-8
WriteDir=
CharsetName=UTF-8
PidFile=
LogFile=
LogControlSound=Yes
LogExternalSound=Yes
LogClientList=Yes
LogCarrier=Yes
LogTiming=No
LogBackupServerMode=Yes
LogCheckServer=Yes

[Sounds]
SoundsDir=
SoundCourtesy=no
EnableCourtesy=no
SoundCourtesyEmptyNet=no
EnableCourtesyEmptyNet=no
SoundRoger=no
EnableRoger=no
SoundNoConnection=no
EnableNoConnection=no
SoundReject=no
EnableReject=no
SoundError=no
EnableError=no

[Hours]
Enabled=yes

[Informer]
Enabled=no
Dir=./informer
Interval=1200
Mode=SEQ
SilenceEnabled=no
SilenceInterval=300
SilenceTime=2000
С уважением, Сергей.

Аватара пользователя
3s
Сообщения:744
Зарегистрирован:14:19, 01 авг 2014, Пт

раздел [Audio]

Сообщение 3s » 14:46, 02 фев 2016, Вт

Раздел [Audio]
Полная документация конфигурирования есть на сайте разработчика http://alterfrn.ucoz.ru/index/manual_russian/0-5
Весь список доступных параметров командной строки поможет получить параметр "help".

Код: Выделить всё

# /home/pi/frn/FRNClientConsole help
 "help" - this help
 "audio" - list of supported audio devices
 "audioconfig" - list of supported audio devices; for configuration file
 "audiolevel [configfilename]" - check audio system perfomance with settings from configuration file
 "radio" - list of supported interfaces for radio
 "checkrate audiodevicename" - check samplerates for certain audio device
 "checkrateconfig [configfilename]" - check samplerates for audio devices from configuration file
 "checkinput:interfacetype:devicename[:inputwire] [configfilename]" - check input wires; input audio must be set
     example: "checkinput:COM:/dev/ttyS0"
     example: "checkinput:COM:/dev/ttyUSB0:DCD"
     example: "checkinput:VOX:250"
     example: "checkinput:GPIO:2"
     example: "checkinput:GPIO:2:gpio2"
 "debug [configfilename]" - debug running
 "nostdout [configfilename]" - debug running without stdout
 "daemon [configfilename]" - run as daemon
Сейчас подробнее о конфигурации раздела [Audio]
Итак, получить список звуковых устройств в формате файла конфигурации можно по команде audioconfig

Код: Выделить всё

# /home/pi/frn/FRNClientConsole audioconfig
На экран - а можно перенаправить вывод в файл - будет выведена информация, нужные строки из которой нужно просто скопировать в конфигурационный файл

Код: Выделить всё

ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.front.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM front
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.surround40.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround40
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround41
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround50
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.surround51.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround51
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.surround71.0:CARD=0'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM surround71
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM iec958
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib confmisc.c:1286:(snd_func_refer) Unable to find definition 'cards.audiocodec.pcm.iec958.0:CARD=0,AES0=4,AES1=130,AES2=0,AES3=2'
ALSA lib conf.c:4241:(_snd_config_evaluate) function snd_func_refer returned error: No such file or directory
ALSA lib conf.c:4720:(snd_config_expand) Evaluate error: No such file or directory
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM spdif
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.hdmi
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.modem
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pcm.c:2217:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.phoneline
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection refused

#
#
[INPUT_AUDIO_DEVICES_LIST]
InDevice=ALSA:audiocodec:  (hw:0,0)
InDevice=ALSA:USB PnP Sound Device: USB Audio (hw:2,0)
InDevice=ALSA:USB Device 0x41e:0x30d3: USB Audio (hw:3,0)
InDevice=ALSA:sysdefault
InDevice=ALSA:default
#
#
#
[OUTPUT_AUDIO_DEVICES_LIST]
OutDevice=ALSA:audiocodec:  (hw:0,0)
OutDevice=ALSA:sndhdmi:  (hw:1,0)
OutDevice=ALSA:USB PnP Sound Device: USB Audio (hw:2,0)
OutDevice=ALSA:USB Device 0x41e:0x30d3: USB Audio (hw:3,0)
OutDevice=ALSA:sysdefault
OutDevice=ALSA:default
OutDevice=ALSA:dmix
#
В данном случаи моя секция Audio выглядит так

Код: Выделить всё

[Audio]
InDevice=ALSA:USB PnP Sound Device: USB Audio (hw:2,0)
InSampleRate=44100
InQuality=L
InFactor=2
InAGCEnabled=no
InAGCLevel=99
InAGCMaxGain=20
OutDevice=ALSA:USB PnP Sound Device: USB Audio (hw:2,0)
OutSampleRate=44100
OutQuality=L
OutFactor=2
OutAGCEnabled=no
OutAGCLevel=99
OutAGCMaxGain=40
Вторая звуковая USB Device 0x41e:0x30d3: USB Audio (hw:3,0) задействована под узел D-Start
С уважением, Сергей.

Аватара пользователя
3s
Сообщения:744
Зарегистрирован:14:19, 01 авг 2014, Пт

Раздел [Radio]

Сообщение 3s » 14:56, 02 фев 2016, Вт

Раздел [Radio]
При использовании самодельного интерфейса , описанного в этой теме http://radiocult.ru/forum/viewtopic.php?f=31&t=21
Изображение
и подключении РЭС через конвертер USB-COM
ID 067b:2303 Prolific Technology, Inc. PL2303 Serial Port
или
ID 0403:6001 Future Technology Devices International, Ltd FT232 USB-Serial (UART) IC
раздел [Radio] выглядит так

Код: Выделить всё

[Radio]
PTT=COM:/dev/ttyUSB0:RTS:
COS=VOX:500
CTCSSWakeTime=400
CarrierCatchTime=100
CarrierLostTime=400
С уважением, Сергей.

Ответить

Вернуться в «FRN линки на базе мини компьютеров»