Raspberry Pi Serial issues...

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|

Raspberry Pi Serial issues...

Allen Moore
I am attempting to set up an EchoLink Repeater node for our club using a
Raspberry Pi 3 B running SVXlink on Raspian Jesse.

I have successfully compiled SVXlink and have begun configuration.
Audio is via a USB sound card.
I intend to control a Motorola commercial UHF radio to connect to our
repeater's hub via the GPIO serial interface; however, at the moment I
am simply testing in simplex mode...

I am getting an error on startup which is presumably due to a problem
accessing the GPIO serial port on the RPi:

 > SvxLink v1.5.0 Copyright (C) 2003-2015 Tobias Blomberg / SM0SVX
...
 >
 > Using configuration file: /etc/svxlink/svxlink.conf
 > --- Using sample rate 48000Hz
 >
 > Starting logic: SimplexLogic
 > Loading RX: Rx1
 > Loading TX: Tx1
 > open serial port: No such file or directory
 > *** ERROR: Could not initialize TX "Tx1"
 > *** ERROR: Could not initialize Logic object "SimplexLogic". Skipping...
 > *** ERROR: No logics available. Bailing out...

/boot/config.txt includes: enable_uart=0

relevant bits from svxlink.conf:

[Tx1]
TYPE=Local
AUDIO_DEV=alsa:plughw:0
AUDIO_CHANNEL=0
PTT_TYPE=SerialPin
PTT_PORT=ttyAMA0
PTT_PIN=DTRRTS
TIMEOUT=300
TX_DELAY=500
PREEMPHASIS=0
DTMF_TONE_LENGTH=100
DTMF_TONE_SPACING=50
DTMF_DIGIT_PWR=-15


Any suggestions on the error of my ways would be greatly appreciated...
TIA,
-Allen M.

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Raspberry Pi Serial issues...

Rob Janssen
Allen Moore wrote:

> I am attempting to set up an EchoLink Repeater node for our club using a
> Raspberry Pi 3 B running SVXlink on Raspian Jesse.
>
> I have successfully compiled SVXlink and have begun configuration.
> Audio is via a USB sound card.
> I intend to control a Motorola commercial UHF radio to connect to our
> repeater's hub via the GPIO serial interface; however, at the moment I
> am simply testing in simplex mode...
>
> I am getting an error on startup which is presumably due to a problem
> accessing the GPIO serial port on the RPi:
>
>   > SvxLink v1.5.0 Copyright (C) 2003-2015 Tobias Blomberg / SM0SVX
> ...
>   >
>   > Using configuration file: /etc/svxlink/svxlink.conf
>   > --- Using sample rate 48000Hz
>   >
>   > Starting logic: SimplexLogic
>   > Loading RX: Rx1
>   > Loading TX: Tx1
>   > open serial port: No such file or directory
>   > *** ERROR: Could not initialize TX "Tx1"
>   > *** ERROR: Could not initialize Logic object "SimplexLogic". Skipping...
>   > *** ERROR: No logics available. Bailing out...
>
> /boot/config.txt includes: enable_uart=0
>
> relevant bits from svxlink.conf:
>
> [Tx1]
> TYPE=Local
> AUDIO_DEV=alsa:plughw:0
> AUDIO_CHANNEL=0
> PTT_TYPE=SerialPin
> PTT_PORT=ttyAMA0
> PTT_PIN=DTRRTS
> TIMEOUT=300
> TX_DELAY=500
> PREEMPHASIS=0
> DTMF_TONE_LENGTH=100
> DTMF_TONE_SPACING=50
> DTMF_DIGIT_PWR=-15
>
>
> Any suggestions on the error of my ways would be greatly appreciated...
>

Your configuration specifies SerialPin for the PTT control, so it attempts to open the
serial port (which on the Raspberry Pi has no control lines anyway, so this is not a useful option).
You need to remove those PTT_ config lines and replace them with GPIO config like:

PTT_TYPE=GPIO
PTT_PIN=gpio21

Of course you also need to configure the gpio system itself, this can be done by putting this
in /etc/default/svxlink assuming you use the contributed /etc/init.d/svxlink file for Debian:

GPIO_PTT_PIN=21


Rob

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. http://sdm.link/zohodev2dev
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Call show up in EchoLink; but times out when trying to connect

Allen Moore
First,

Thanks to Rob who helped sort out my GPIO issues on the Raspberry Pi...
I am waiting to receive a logic level converter to connect the 3v RPi to
the 5v radio; but, in the mean time thought that I SHOULD be able to at
least hear audio thru the RPi while testing...

svxlink starts fine and the EchoLink call defined (RepeaterLogic) in
ModuleEchoLink.conf show up when I look for available repeaters through
an EchoLink client; however, when I try to connect to the RPi via
EchoLink using my personal call, the connection times out...

Any suggestions?

I hoped to at least monitor the audio passed through the EchoLink
network from the RPi's audio out that eventually will connect to the VHF
radio programmed to talk to our repeater system's hub.

When done, I also want to use the radio's COR output in lieu of VOX;
but, again, won't connect those controls until the logic level converter
arrives in a few days.

TIA once again,

73,

-Allen M.

------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Scott Currie
Have you verified your client is working correctly? Can you connect to the test server?

If your client is working correctly, have you forwarded the Echolink ports to your svxlink server?

Note, when you are testing on the same LAN/Router connection, your client will have to use a proxy. You can't have both the svxlink server and a Echolink client running on the same IP at the same time. Your router won't know where to send the traffic.

-Scott

On Tue, Sep 13, 2016 at 3:03 PM, Allen Moore <[hidden email]> wrote:
First,

Thanks to Rob who helped sort out my GPIO issues on the Raspberry Pi...
I am waiting to receive a logic level converter to connect the 3v RPi to
the 5v radio; but, in the mean time thought that I SHOULD be able to at
least hear audio thru the RPi while testing...

svxlink starts fine and the EchoLink call defined (RepeaterLogic) in
ModuleEchoLink.conf show up when I look for available repeaters through
an EchoLink client; however, when I try to connect to the RPi via
EchoLink using my personal call, the connection times out...

Any suggestions?

I hoped to at least monitor the audio passed through the EchoLink
network from the RPi's audio out that eventually will connect to the VHF
radio programmed to talk to our repeater system's hub.

When done, I also want to use the radio's COR output in lieu of VOX;
but, again, won't connect those controls until the logic level converter
arrives in a few days.

TIA once again,

73,

-Allen M.

------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel



--
-Scott

------------------------------------------------------------------------------

_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Allen Moore
For testing purposes the RPi is connected via WiFi to my home network.  
Ports thru router should be fine as I CAN connect as client from same
subnet.  While testing, I use client on my smartphone using lte cellular
network instead of via WiFi to avoid conflict.

On 9/13/16 5:24 PM, Scott Currie wrote:

> Have you verified your client is working correctly? Can you connect to
> the test server?
>
> If your client is working correctly, have you forwarded the Echolink
> ports to your svxlink server?
>
> Note, when you are testing on the same LAN/Router connection, your
> client will have to use a proxy. You can't have both the svxlink
> server and a Echolink client running on the same IP at the same time.
> Your router won't know where to send the traffic.
>
> -Scott



------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Scott Currie
I have found cellular connections without using a proxy to be unreliable. Sometimes it works, most times it does not. Can your client connect to the Echolink Test Server using cellular?

-Scott

On Tue, Sep 13, 2016 at 3:30 PM, Allen Moore <[hidden email]> wrote:
For testing purposes the RPi is connected via WiFi to my home network.
Ports thru router should be fine as I CAN connect as client from same
subnet.  While testing, I use client on my smartphone using lte cellular
network instead of via WiFi to avoid conflict.

On 9/13/16 5:24 PM, Scott Currie wrote:
> Have you verified your client is working correctly? Can you connect to
> the test server?
>
> If your client is working correctly, have you forwarded the Echolink
> ports to your svxlink server?
>
> Note, when you are testing on the same LAN/Router connection, your
> client will have to use a proxy. You can't have both the svxlink
> server and a Echolink client running on the same IP at the same time.
> Your router won't know where to send the traffic.
>
> -Scott



------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel



--
-Scott

------------------------------------------------------------------------------

_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Allen Moore
I can, and use the cellular network often for EchoLink. I also
re-verified my ability to connect to the test server immediately prior
to trying to connect to my RPi host again; but, it still times out.

-A

On 9/13/16 5:44 PM, Scott Currie wrote:
> I have found cellular connections without using a proxy to be
> unreliable. Sometimes it works, most times it does not. Can your
> client connect to the Echolink Test Server using cellular?



------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Scott Currie
That pretty much says your router is not forwarding the Echolink UDP ports to the svxlink server. In my testing at home I had to use a static IP for svxlink (actually, I used MAC IP reservation), and then used port forwarding on the router. Port triggering would not work for svxlink, though it does work for my client.

-Scott

On Tue, Sep 13, 2016 at 4:00 PM, Allen Moore <[hidden email]> wrote:
I can, and use the cellular network often for EchoLink. I also
re-verified my ability to connect to the test server immediately prior
to trying to connect to my RPi host again; but, it still times out.

-A

On 9/13/16 5:44 PM, Scott Currie wrote:
> I have found cellular connections without using a proxy to be
> unreliable. Sometimes it works, most times it does not. Can your
> client connect to the Echolink Test Server using cellular?



------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel



--
-Scott

------------------------------------------------------------------------------

_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Allen Moore
I suspected that might be the case; but, since the client works from
within the network I thought it less likely.
I've got to head out to a meeting soon; but. will try setting up
dedicated port forwarding in the router tonight or in the morning.

Thanks for the help...  Will report result when complete.

73,
-Allen M.

On 9/13/16 6:11 PM, Scott Currie wrote:
> That pretty much says your router is not forwarding the Echolink UDP
> ports to the svxlink server. In my testing at home I had to use a
> static IP for svxlink (actually, I used MAC IP reservation), and then
> used port forwarding on the router. Port triggering would not work for
> svxlink, though it does work for my client.



------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Allen Moore
OK...  Updating the port forwarding in the router did the trick...

Thanks Scott!

-Allen M.

------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Rob Janssen
In reply to this post by Allen Moore
Allen Moore wrote:
>
> When done, I also want to use the radio's COR output in lieu of VOX;
> but, again, won't connect those controls until the logic level converter
> arrives in a few days.
>
>

Actually it is best to connect unfiltered audio direct from the detector (as you would
use for 9600 baud packet) to the sound device, then configure de-emphasis in svxlink
to have good audio.
With this setup you can use the SIGLEV_DET=NOISE method to detect signal level
using a noise detection and SQL_DET=SIGLEV to make the squelch signal using that
signal level value.  This works very well and you can completely tune it from the
configuration file.

Rob

------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel
Reply | Threaded
Open this post in threaded view
|

Re: Call show up in EchoLink; but times out when trying to connect

Tony Langdon
In reply to this post by Scott Currie
On 14/09/2016 9:11 AM, Scott Currie wrote:
> That pretty much says your router is not forwarding the Echolink UDP
> ports to the svxlink server. In my testing at home I had to use a
> static IP for svxlink (actually, I used MAC IP reservation), and then
> used port forwarding on the router. Port triggering would not work for
> svxlink, though it does work for my client.

Actually, port triggering should work.  The trick is to use TCP port
5200 as the trigger port.

--
73 de Tony VK3JED/VK3IRL
http://vkradio.com


------------------------------------------------------------------------------
_______________________________________________
Svxlink-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/svxlink-devel