Forum Replies Created

Viewing 10 posts - 1 through 10 (of 18 total)
  • Author
    Posts
  • in reply to: echolink ID issue #1382

    From what I can tell, activating the EchoLink module (or modifying the settings) causes a merge from data within /etc/openrepeater/svxlink/svxlink.d/ModuleEchoLinkOLD.conf into the “realtime file” /etc/openrepeater/svxlink/svxlink.d/ModuleEchoLink.conf

    The bummer is, there appears to be static data in the OLD file (N3MBH username, etc) that is not being overwritten by part of the process.

    I’m confused because ModuleEchoLink.conf appears to contain the actual data being used, but ModuleEchoLinkOLD.conf still had the original data in it.

    Well, on a whim, I put my OWN credentials into this file and did “service svxlink restart” – the result is that I showed up on the status page with my own callsign!

    http://www.echolink.org/logins.jsp

    N8CN-R Traverse City, MI ON 01:17 288970

    It also didn’t appear to “take over” Aaron’s session (as happened last time):
    N3MBH-R OpenRepeater Test Server ON 00:17 994420

    We have another echo link node I can hit from my dining room table here in Traverse City.
    I tried to link to it:
    W8TVC-R Traverse City, Michigan ON 00:21 56464

    This was successful, it announced on its frequency that “N8CN Repeater” had connected.
    Transmissions made on that repeater came through mine.
    But transmissions through my repeater did not come through that repeater. The PTT line was held up like there should have been audio, but nothing came through.

    I disconnected and tried a connection to N3MBH repeater. I heard the default echo link svxlink hello message sent from the N3MBH repeater.

    Couldn’t get anyone on the air to verify that they could hear me, and I couldn’t hear much back.

    Guess I will go try the test server and see if audio is passing to and from it properly.

    But – word of advice. MANUALLY EDIT YOUR OWN INFO into the file: /etc/openrepeater/svxlink/svxlink.d/ModuleEchoLinkOLD.conf
    or your echo link will not come online due to using bad credentials. For some reason in beta1-beta3, this file contains default information that isn’t being changed by the WebUI in a way that affects its realtime operation.

    (edit: since I could not confirm 100% proper operation of echo link without confirming with Aaron N3MBH I’m leaving my echo link disabled until that time. I’ll update with a confirmation if it’s deemed a success.)

    73,
    Joe

    in reply to: uploading courtesy tones doesn't work #1381

    My file looked a little different than the order of lines you presented above.

    Almost everything was identical, except:
    location / {
    try_files $uri $uri/ =404;
    }

    I changed mine to what you suggested:
    location / {
    try_files \$uri \$uri/ =404;
    }

    to be safe I just rebooted the RPi.

    The web service fails to start completely now.
    nginx shows running, but nothing on the page loads correctly.

    I removed the backslashes and restarted nginx using “service nginx restart”

    Things working again.
    Here is the file, please let me know what needs modifying:

    ///

    server{
    listen 127.0.0.1:80;
    server_name 127.0.0.1;
    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    client_max_body_size 25M;
    client_body_buffer_size 128k;

    root /var/www/openrepeater;
    index index.php;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }
    server{
    listen 443;
    listen [::]:443 default_server ipv6only=on;

    include snippets/snakeoil.conf;
    ssl on;

    root /var/www/openrepeater;

    index index.php;

    server_name openrepeater;

    location / {
    try_files $uri $uri/ / =404;
    }

    access_log /var/log/nginx/access.log;
    error_log /var/log/nginx/error.log;

    location ~ \.php$ {
    include snippets/fastcgi-php.conf;
    include fastcgi_params;
    fastcgi_pass unix:/var/run/php5-fpm.sock;
    fastcgi_param SCRIPT_FILENAME /var/www/openrepeater/$fastcgi_script_name;
    }

    # Disable viewing .htaccess & .htpassword & .db
    location ~ .htaccess {
    deny all;
    }
    location ~ .htpassword {
    deny all;
    }
    location ~^.+.(db)$ {
    deny all;
    }
    }

    ///

    Thanks!
    73
    Joe N8CN

    in reply to: remote control #1377

    i notice that on the RPi image, OpenVPN is installed, but not configured or started.

    There’s room for movement there if SSL encryption (https) and SSH isn’t “strong enough” or convenient enough.

    IE: configure OpenVPN on the unit in a “receiving” posture for “remote users” to connect to.

    Actually, there are probably canned configurations for this out there, and perhaps web UIs for such a beast as well.. 🙂

    in reply to: uploading courtesy tones doesn't work #1374

    Actually, it appears all I needed to do was place the file in /usr/share/openrepeater/sounds/courtesy_tones/ and then refresh the Courtesy Tones section on the page.

    It finds it, I can select it, and it shows “active” but the active tone is the previous tone I had selected before the change. :/

    -jre

    in reply to: no logics available, bailing out (error) #1372

    Ack, I pasted the wrong URL above for the GPIO Pullup reference I ended up using. Here is the correct diagram for what I am using on the COR/COS from radio to RPi (low/gnd when signal is present):

    Raspberry Pi GPIO Pullup Reference for low-active COR/COS

    in reply to: usb sound card chipsets? #1370

    Update: all three of my USB sound cards work.
    The default config and example simply referenced a device that doesn’t exist when you only have one USB sound card plugged in: “1”
    The first card detected, and only card when one is detected, is “0” — zero!

    updated data at post:
    https://openrepeater.com/forums/topic/no-logics-available-bailing-out-error

    For some reason, it too me FOREVER to try the last line in your last suggestion:
    “Just for kicks, try changing your values for alsa:plughw:1 to alsa:plughw:0 ”
    .. because that is what worked! 🙂

    Thanks!
    73
    Joe

    in reply to: no logics available, bailing out (error) #1369

    I have it working now – the missing ingredient appeared when I connected all three of my USB audio cards. — it started without error!

    .. but why?

    The default settings in beta3 are:
    RX Audio Device : alsa:plughw:1
    TX Audio Device : alsa:plughw:1

    Anyway, something was working. I plugged in speakers to each USB fob. Audio was coming out of one of the channels on the 2nd fob to be recognized.

    This told me that audio device numbering must start at ZERO instead of ONE.

    I changed it to:
    RX Audio Device : alsa:plughw:0
    TX Audio Device : alsa:plughw:0

    then rebooted.

    It fired right up. Not only that, it works with ALL THREE of my USB audio dongles.

    Success!!

    Also conquered the GPIO issues I had been encountering.

    Settings working for me:
    RX Mode: COS
    RX GPIO Pin: 22
    RX Audio Device : alsa:plughw:0
    RX Audio Channel: 1
    TX GPIO Pin: 27
    TX Audio Device : alsa:plughw:0
    TX Audio Channel: 0

    From the audio in/out and GPIO, I connected through the EasyDigi unit I’ve had for a while (and never previously used). Radios send a ground out when COS happens, so a pull-up reference was necessary.
    Pull Up and Pull Down GPIO reference for COS

    Things were a little inconsistent. The fix was to make common the RPi Ground, EasyDigi “DigGND” and the ground signal on the radio. (relying on the ground isolation in the EasyDigi led to issues… Inconsistent COS, no open trigger at times, false open trigger at times).

    I used two Motorola Maxtrac units I had laying around. They lend nicely to UHF work. Using the LAB RSS you can turn the radio down in power very linearly. It’s capable of 40W, and I had mine turned down to half a watt for testing. It’s been running for a few days without much issue, so today I bumped it to 15W. With some horizontal and vertical separation, it’s actually working nicely without a set of duplexers (haven’t tuned them yet)..

    Next step is to move from breadboard to shielded and streamlined.

    Will likely build a case that holds both radios and a space for the RPi, 12V-5V 1A converter, EasyDigi and other circuit stuff, and a fan on the back.. voila, portable repeater.

    Bonus plans: USB to SERIAL port for local console access, which can be used to program the Pi in the field to connect to a nearby WiFi network (via already installed USB WiFi dongle).

    Anyway, I’m up and working with favorable results..

    (the audio quality is supar!!)

    Joe

    in reply to: usb sound card chipsets? #1314

    made updates to this in the related thread at: https://openrepeater.com/forums/topic/errors-help

    Looks like underlying svxlink issues.

    lsusb is not an available command, and I attached the output of aplay -L to that thread also.

    It looks like my issue is not unique, and others are having the same issues.

    I’m tempted to order the SPECIFIC usb audio dongle linked to (via amazon) for $7 or whatever just to see if a minor difference in the chipset is killing the deal, Richard might have a unique variant of USB audio card.

    PS, at the above thread, I also posted the contents of my automatically-made /etc/openrepeater/svxlink/svxlink.conf file.

    Thanks!
    Joe

    in reply to: ERROR's help? #1313

    Since 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=10

    SQL_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=1

    PTT_TYPE=GPIO
    PTT_PORT=GPIO
    PTT_PIN=gpio27
    PTT_HANGTIME=3300

    TIMEOUT=300
    TX_DELAY=500

    PREEMPHASIS=0
    DTMF_TONE_LENGTH=100
    DTMF_TONE_SPACING=50
    DTMF_TONE_AMP=-18

    here 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 conversions

    If 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

    in reply to: usb sound card chipsets? #1305

    Yep, RPI2 model B version 1.1
    Running Raspi-2 Beta 3 release

    Here is what I’m seeing, from the web UI after a reboot and fresh login:
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: SvxLink comes with ABSOLUTELY NO WARRANTY. This is free software, and you are
    Wed Aug 19 12:23:14 2015: welcome to redistribute it in accordance with the terms and conditions in the
    Wed Aug 19 12:23:14 2015: GNU GPL (General Public License) version 2 or later.
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
    Wed Aug 19 12:23:14 2015: — Using sample rate 16000Hz
    Wed Aug 19 12:23:14 2015:
    Wed Aug 19 12:23:14 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:23:14 2015: Loading RX: Rx1
    Wed Aug 19 12:23:14 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:23:14 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:23:14 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:23:14 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:23:14 2015: *** ERROR: No logics available. Bailing out…

    looks like the service isn’t even starting:
    root@N8CN-R:~# ps waux | grep sv
    root 72 0.0 0.0 0 0 ? S< 12:23 0:00 [ext4-rsv-conver]
    root 541 0.0 0.0 1388 336 tty1 S+ 12:24 0:00 tail -f /var/log/svxlink
    root 555 0.0 0.1 2064 1172 pts/0 S+ 12:27 0:00 grep sv

    re-inserting the USB audio adapter:
    [ 293.408355] usb 1-1.2: USB disconnect, device number 4
    [ 295.910347] usb 1-1.2: new full-speed USB device number 8 using dwc_otg
    [ 296.060643] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000c
    [ 296.112445] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 296.160915] usb 1-1.2: Product: C-Media USB Headphone Set
    [ 296.240862] input: C-Media USB Headphone Set as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/0003:0D8C:000C.0004/input/input3
    [ 296.294143] hid-generic 0003:0D8C:000C.0004: input,hidraw0: USB HID v1.00 Device [C-Media USB Headphone Set ] on usb-bcm2708_usb-1.2/input3

    I have a few different audio adapters available (I bought a bunch intending to find a chipped C-Media adapter instead of the ‘blobbed’ type so that I could modify them to make a custom URI-X for a radio for use with asterisk, and then kinda decided it would be too much work, so I have a small box full of misc audio adapters. I had chosen the few higher-quality-looking devices, but here I’ll try inserting a few to see what happens..):

    [ 504.833909] usb 1-1.2: new full-speed USB device number 10 using dwc_otg
    [ 504.980051] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000e
    [ 505.021808] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 505.064082] usb 1-1.2: Product: Generic USB Audio Device
    [ 505.165349] cm109: Keymap for Komunikate KIP1000 phone loaded
    [ 505.208037] input: CM109 USB driver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/input/input4
    [ 505.254653] usbcore: registered new interface driver cm109
    [ 505.294836] cm109: CM109 phone driver: 20080805 (C) Alfred E. Heggestad

    Wed Aug 19 12:34:03 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:34:03 2015: Loading RX: Rx1
    Wed Aug 19 12:34:03 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:34:03 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:34:03 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:34:03 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:34:03 2015: *** ERROR: No logics available. Bailing out…

    [ 726.302498] usb 1-1.2: new full-speed USB device number 11 using dwc_otg
    [ 726.448696] usb 1-1.2: New USB device found, idVendor=0d8c, idProduct=000e
    [ 726.494767] usb 1-1.2: New USB device strings: Mfr=0, Product=1, SerialNumber=0
    [ 726.536504] usb 1-1.2: Product: Generic USB Audio Device
    [ 726.610647] input: CM109 USB driver as /devices/platform/bcm2708_usb/usb1/1-1/1-1.2/1-1.2:1.3/input/input5

    Wed Aug 19 12:35:49 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:35:49 2015: Loading RX: Rx1
    Wed Aug 19 12:35:49 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:35:49 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:35:49 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:35:49 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:35:49 2015: *** ERROR: No logics available. Bailing out…

    [ 825.903085] usb 1-1.2: new full-speed USB device number 12 using dwc_otg
    [ 826.041604] usb 1-1.2: New USB device found, idVendor=077d, idProduct=07af
    [ 826.081139] usb 1-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
    [ 826.120526] usb 1-1.2: Product: iMic USB audio system
    [ 826.157864] usb 1-1.2: Manufacturer: Griffin Technology, Inc
    [ 826.203495] usb 1-1.2: current rate 0 is different from the runtime rate 48000
    [ 826.243402] usb 1-1.2: current rate 0 is different from the runtime rate 48000
    [ 826.300507] usb 1-1.2: Warning! Unlikely big volume range (=656), cval->res is probably wrong.
    [ 826.339914] usb 1-1.2: [1] FU [PCM Playback Volume] ch = 2, val = -10496/0/16

    Wed Aug 19 12:37:28 2015: Using configuration file: /etc/openrepeater/svxlink/svxlink.conf
    Wed Aug 19 12:37:28 2015: — Using sample rate 16000Hz
    Wed Aug 19 12:37:28 2015:
    Wed Aug 19 12:37:28 2015: Starting logic: RepeaterLogic
    Wed Aug 19 12:37:28 2015: Loading RX: Rx1
    Wed Aug 19 12:37:28 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:37:28 2015: ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
    Wed Aug 19 12:37:28 2015: *** ERROR: Open capture audio device failed: No such file or directory
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not open audio device for receiver “Rx1”
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not initialize RX “Rx1”
    Wed Aug 19 12:37:28 2015: *** ERROR: Could not initialize Logic object “RepeaterLogic”. Skipping…
    Wed Aug 19 12:37:28 2015: *** ERROR: No logics available. Bailing out…

    at this point, i’m kinda thinking there’s an issue somewhere that I can’t fix..
    -jre

Viewing 10 posts - 1 through 10 (of 18 total)