- This topic has 8 replies, 3 voices, and was last updated 9 years, 3 months ago by Aaron, N3MBH.
-
AuthorPosts
-
August 19, 2015 at 11:02 am #1302MilanUser
hi,
i just got my raspberry pi 2 in the mail today. so the first thing i did was install the OS and plug everything in.i did not expect things to go 100% as planned, but i have some errors in the log i can’t get my head around..
Wed Aug 19 09:54:16 2015: *** ERROR: Open capture audio device failed: No such file or directory
Wed Aug 19 09:54:16 2015: *** ERROR: Could not open audio device for receiver “Rx1”
Wed Aug 19 09:54:16 2015: *** ERROR: Could not initialize RX “Rx1”
Wed Aug 19 09:54:16 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
Wed Aug 19 09:54:16 2015: *** ERROR: No logics available. Bailing out…the first error about the audio device i had fixt a moment ago, but now its broken again.. (than is was a hardware thing ) (but i can’t find the same problem anymore)
than it was complaining about Tx1 (not RX as shown now)what does “RepeaterLogic” mean?
i get it is bailing out if it does not have a RX or TX, what is the point then..this is my problem as today.. “wed 19 aug 2015”
do you have any other problems or solutions leve them below
73,
Milan HofmanAugust 19, 2015 at 12:53 pm #1303Aaron, N3MBHForum AdministratorHello Milan,
Welcome to the forums. The errors that you are getting looks like it might be related to your USB sound card. First make sure that card is showing up using “lsusb” and “aplay -l”. Also check that you audio ports are set correctly in the PORTS tab in the web interface. If they are not you’d probably get an error like this. “RepeaterLogic” is part of the SVXLink core system. It is looking to RX and TX sections in the config file and if they have errors then it cannot start. So it is a domino effect. You get rid of the audio card issue, then everything else will likely resolve also. Good luck and let us know how it goes.73,
Aaron73,
Aaron – N3MBH / WRFV871OpenRepeater is offered free of charge. Find out how you can support us.
August 19, 2015 at 11:18 pm #1310Aaron, N3MBHForum AdministratorMilan,
I checked with Richard earlier tonight and he is running Beta 3 with no issues like this. Looking at your code my hunch is that the sound cards under ports is configured incorrectly. That may partially be my fault for not documenting it very clearly. I just updated the Getting Starting Guide with a little more detail.Here is an excerpt:
Before the repeater will be operational you will need to set the following:
- Go to the “Repeater” settings menu, set your Callsign and click “Update”.
- Go to the “TX/RX Ports” menu, set your TX and RX port settings and click “Update”. Sample Settings:
- RX Mode: COS
- RX GPIO Pin: 22
- RX Audio Device: alsa:plughw:1
- RX Audio Channel: 0
- TX GPIO Pin: 27
- TX Audio Device: alsa:plughw:1
- TX Audio Channel: 1
- At the top of the screen click the “Rebuild Configs & Restart SVXLink” button.
- Restart the system. This is necessary to initiate the GPIO pins you just set with the OS.
Your settings may vary some. Give this a try and let me know if this helps.
73,
Aaron – N3MBH / WRFV871OpenRepeater is offered free of charge. Find out how you can support us.
August 20, 2015 at 4:43 am #1312MilanUseri have set the settings like you suggested, but still.
the “lsusb” command says “command not found”
the “play -l” command says: (with the sound card installed)
**** List of PLAYBACK Hardware Devices ****
card 0: Set [C-Media USB Headphone Set], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0without it installed it says:
root@Set This-repeater:~# aplay -l
aplay: device_list:268: no soundcards found…thanks for the fast response 🙂
73,
Milan Hofmanps, the sound card does work in my mac, no problems.
to me it sounds like a driver thingis it possible to use the GUI so i can try play and record sound
(im not scared of the terminal but im not that good also)August 20, 2015 at 12:07 pm #1313Joseph, N8CNUserSince I’m having the same errors and same issues, i echo the results
the “lsusb” command is not available.
i used “find / -name lsusb” and no results came up. This utility is not installed.
What’s the preferred method with this image to install additions? apt-get? specific sources, if so?I get identical errors:
Wed Aug 19 12:39:44 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
Wed Aug 19 12:39:44 2015: — Using sample rate 16000Hz
Wed Aug 19 12:39:44 2015:
Wed Aug 19 12:39:44 2015: Starting logic: RepeaterLogic
Wed Aug 19 12:39:44 2015: Loading RX: Rx1
Wed Aug 19 12:39:44 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
Wed Aug 19 12:39:44 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
Wed Aug 19 12:39:44 2015: *** ERROR: Open capture audio device failed: No such file or directory
Wed Aug 19 12:39:44 2015: *** ERROR: Could not open audio device for receiver “Rx1”
Wed Aug 19 12:39:44 2015: *** ERROR: Could not initialize RX “Rx1”
Wed Aug 19 12:39:44 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
Wed Aug 19 12:39:44 2015: *** ERROR: No logics available. Bailing out…Here are the contents of /etc/openrepeater/svxlink/svxlink.conf:
root@N8CN-R:~# cat /etc/openrepeater/svxlink/svxlink.conf
[GLOBAL]
MODULE_PATH=/usr/lib/svxlink
LOGICS=RepeaterLogic
CFG_DIR=svxlink.d
TIMESTAMP_FORMAT=”%c”
CARD_SAMPLE_RATE=16000
#LOCATION_INFO=LocationInfo
#LINKS=LinkToR4[RepeaterLogic]
TYPE=Repeater
RX=Rx1
TX=Tx1
#MODULES=NONE
CALLSIGN=N8CN
SHORT_IDENT_INTERVAL=2
LONG_IDENT_INTERVAL=4
EVENT_HANDLER=/usr/share/svxlink/events.tcl
DEFAULT_LANG=en_US
RGR_SOUND_DELAY=1
REPORT_CTCSS=
TX_CTCSS=ALWAYS
MACROS=Macros
FX_GAIN_NORMAL=0
FX_GAIN_LOW=-12
IDLE_TIMEOUT=1
OPEN_ON_SQL=1
OPEN_SQL_FLANK=OPEN
IDLE_SOUND_INTERVAL=0# Port 1 Receive
[Rx1]
TYPE=Local
AUDIO_DEV=alsa:plughw:1
AUDIO_CHANNEL=0# COS Squelch Mode
SQL_DET=GPIO
GPIO_SQL_PIN=gpio22
SQL_HANGTIME=10SQL_START_DELAY=1
SQL_DELAY=10
SIGLEV_SLOPE=1
SIGLEV_OFFSET=0
SIGLEV_OPEN_THRESH=30
SIGLEV_CLOSE_THRESH=10
DEEMPHASIS=1
PEAK_METER=0
DTMF_DEC_TYPE=INTERNAL
DTMF_MUTING=1
DTMF_HANGTIME=100
DTMF_SERIAL=/dev/ttyS0# Port 1 Transmit
[Tx1]
TYPE=Local
AUDIO_DEV=alsa:plughw:1
AUDIO_CHANNEL=1PTT_TYPE=GPIO
PTT_PORT=GPIO
PTT_PIN=gpio27
PTT_HANGTIME=3300TIMEOUT=300
TX_DELAY=500PREEMPHASIS=0
DTMF_TONE_LENGTH=100
DTMF_TONE_SPACING=50
DTMF_TONE_AMP=-18here is the output of “aplay -L”:
root@N8CN-R:~# aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=Set
C-Media USB Headphone Set, USB Audio
Default Audio Device
sysdefault:CARD=Set
C-Media USB Headphone Set, USB Audio
Default Audio Device
front:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
Front speakers
surround21:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
4.0 Surround output to Front and Rear speakers
surround41:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
Direct sample mixing device
dsnoop:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
Direct sample snooping device
hw:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
Direct hardware device without any conversions
plughw:CARD=Set,DEV=0
C-Media USB Headphone Set, USB Audio
Hardware device with all software conversionsIf it would help, I can allow port 443 from my RPi to be available via the internet for your inspection. (I have changed the admin password)
I can also make available port 2422 (ISP blocks port 22) so you would be able to SSH into the RPi as root (I’ve changed that password also) using “ssh -p 2422 root@<ip>”
At this point, I can’t get the image to do much due to underlying svxlink issues.
Thanks! Joe
August 20, 2015 at 1:07 pm #1315MilanUserim not that strong with the command line,.
but i recognise the sound card name i to have a “C-Media USB Headphone Set”
i don’t have an other kind, on hand. but maybe do you? (or someone else)
(my bett its a driver issue)73,
milanAugust 21, 2015 at 12:46 pm #1323Aaron, N3MBHForum AdministratorI don’t have a RPI2 at the moment, but I have one on the way. Richard might be able to offer some insight on RPI2 related topics. As for the sound card, I have no issues with the C-Media CM-108 cards. I have a few variants of that and all seem to work on my BBB. Thanks for hanging in there guys as we smooth out some of the bumps. Your testing is important to the success of the project.
73,
Aaron – N3MBH / WRFV871OpenRepeater is offered free of charge. Find out how you can support us.
August 22, 2015 at 10:40 am #1327Aaron, N3MBHForum AdministratorAlso in the command line try to issue the commands “service svxlink stop” and “service svxlink start” and see if that helps. You won’t see any results in the command line but see if that gets it working for you.
73,
Aaron – N3MBH / WRFV871OpenRepeater is offered free of charge. Find out how you can support us.
August 24, 2015 at 10:56 pm #1349Aaron, N3MBHForum AdministratorI got my RPI2 the other day. The same USB sound card shows up different than on my Beaglebone Black.
On my BBB it works as: alsa:plughw:1
On the RPI2, I had to set it to alsa:plughw:0For the TX channel use 0 for left (tip) and 1 for right (ring).
Hope this solves your issue.
73,
Aaron – N3MBH / WRFV871OpenRepeater is offered free of charge. Find out how you can support us.
-
AuthorPosts
- The topic ‘ERROR's help?’ is closed to new replies.