Date   

Re: OT: alsamixer - rPi B+ with Compass

VE3MIC
 

Wondering if alsa mixer didn't get installed.
Try> sudo apt-get install alsamixer


OT: alsamixer - rPi B+ with Compass

Mike Besemer - WM4B
 

Hi all,

Sorry for the OT post.

I think I’ve finally got ambeserver, ircddbgateway and dummyrepeater installed.

Now I’m trying to test my USB Soundcard/mic/headset and I cannot get alsamixer to run. 

pi@compass:~ $ sudo alsamixer

cannot open mixer: No such file or directory

pi@compass:~ $

I’ve searched the ‘net and haven’t found anything that works, and apparently everyone has issues with this.  Certainly someone here has the fix.

73 ex tnx,

Mike

WM4B


Re: Original ThumbDV and AMBED

 

I am not sure if it will work, that is a question for the xlxd group.

But besides the baud rate the ThumbDV needs to be programmed with an identifier that the ambed server knows. 


On Thu, Mar 14, 2019, 21:59 Scott Weis (KB2EAR) via Groups.Io <kb2ear=kb2ear.net@groups.io> wrote:
Has anyone gotten an original ThumbDV (230400 baud) to work with xlxd/ambed? I have changed to baudrate in the cusb3000interface.cpp. This is what I get:

Starting AMBEd 1.3.2
Initializing vocodecs:
Detected 1 USB-FTDI devices
Description : ThumbDV    Serial : DA00WQFK
Codec interfaces initialized successfully : 0 channels available
Initializing controller
AMBEd started and listening on 127.0.0.1

any ideas?

Thanks & 73,
Scott KB2EAR


Re: Original ThumbDV and AMBED

Scott Weis (KB2EAR)
 

Also I can use AMBEserver on the same host after unplugging and replugging in the ThumbDV back in to restart usbserial ftdi_sio.

 

root@raspberrypi:~/OpenDV/DummyRepeater# ./AMBEserver

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyUSB0 at 230400 bps.

AMBEserver: Initialized AMBE3000R version V120.E100.XXXX.C106.G514.R009.B0010411.C0020208.

AMBEserver: Listening for connections on UDP port 2460.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of Scott Weis (KB2EAR) via Groups.Io
Sent: Friday, March 15, 2019 12:44 AM
To: ambe@nw-digital-radio.groups.io
Subject: [ambe] Original ThumbDV and AMBED

 

Has anyone gotten an original ThumbDV (230400 baud) to work with xlxd/ambed? I have changed to baudrate in the cusb3000interface.cpp. This is what I get:

Starting AMBEd 1.3.2

Initializing vocodecs:
Detected 1 USB-FTDI devices

Description : ThumbDV    Serial : DA00WQFK
Codec interfaces initialized successfully : 0 channels available

Initializing controller

AMBEd started and listening on 127.0.0.1

any ideas?

Thanks & 73,
Scott KB2EAR


Original ThumbDV and AMBED

Scott Weis (KB2EAR)
 

Has anyone gotten an original ThumbDV (230400 baud) to work with xlxd/ambed? I have changed to baudrate in the cusb3000interface.cpp. This is what I get:

Starting AMBEd 1.3.2
Initializing vocodecs:
Detected 1 USB-FTDI devices
Description : ThumbDV    Serial : DA00WQFK
Codec interfaces initialized successfully : 0 channels available
Initializing controller
AMBEd started and listening on 127.0.0.1

any ideas?

Thanks & 73,
Scott KB2EAR


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

Ah ha! 

 

Methinks the docs need work! 

 

But… I’m learning – I think.

 

73,

 

Mike

WM4B

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 9:07 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Dv3000d is an old name for AMBEserver (they are the same thing)

 

On Tue, Mar 12, 2019, 17:55 Mike Besemer <mwbesemer@...> wrote:

And I still need dv3000d.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 8:51 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That appears good, so something is not right with permissions for the scripts. 

 

On Tue, Mar 12, 2019, 17:11 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:/usr/sbin $ sudo AMBEserver -i /dev/ttyAMA0

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 7:24 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Is your program

 

 

/usr/sbin/ambeserver or AMBEserver?

 

Whichever it is try executing on command line preceded by sudo

 

sudo ambeserver -i /dev/ttyAMA0

 

 

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

Dv3000d is an old name for AMBEserver (they are the same thing)


On Tue, Mar 12, 2019, 17:55 Mike Besemer <mwbesemer@...> wrote:

And I still need dv3000d.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 8:51 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That appears good, so something is not right with permissions for the scripts. 

 

On Tue, Mar 12, 2019, 17:11 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:/usr/sbin $ sudo AMBEserver -i /dev/ttyAMA0

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 7:24 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Is your program

 

 

/usr/sbin/ambeserver or AMBEserver?

 

Whichever it is try executing on command line preceded by sudo

 

sudo ambeserver -i /dev/ttyAMA0

 

 

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

And I still need dv3000d.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 8:51 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That appears good, so something is not right with permissions for the scripts. 

 

On Tue, Mar 12, 2019, 17:11 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:/usr/sbin $ sudo AMBEserver -i /dev/ttyAMA0

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 7:24 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Is your program

 

 

/usr/sbin/ambeserver or AMBEserver?

 

Whichever it is try executing on command line preceded by sudo

 

sudo ambeserver -i /dev/ttyAMA0

 

 

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

That appears good, so something is not right with permissions for the scripts. 


On Tue, Mar 12, 2019, 17:11 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:/usr/sbin $ sudo AMBEserver -i /dev/ttyAMA0

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 7:24 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Is your program

 

 

/usr/sbin/ambeserver or AMBEserver?

 

Whichever it is try executing on command line preceded by sudo

 

sudo ambeserver -i /dev/ttyAMA0

 

 

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

pi@raspberrypi:/usr/sbin $ sudo AMBEserver -i /dev/ttyAMA0

AMBEserver: Starting...

AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 7:24 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Is your program

 

 

/usr/sbin/ambeserver or AMBEserver?

 

Whichever it is try executing on command line preceded by sudo

 

sudo ambeserver -i /dev/ttyAMA0

 

 

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

Is your program


/usr/sbin/ambeserver or AMBEserver?

Whichever it is try executing on command line preceded by sudo

sudo ambeserver -i /dev/ttyAMA0

 

On Tue, Mar 12, 2019, 14:29 Mike Besemer <mwbesemer@...> wrote:

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

pi@raspberrypi:~ $ sudo systemctl status  ambeserver@ttyAMA0

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 17:27:54 EDT; 1min 27s ago

  Process: 778 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 774 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 771 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 778 (code=exited, status=1/FAILURE)

 

Mar 12 17:27:53 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 17:27:54 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: Starting...

Mar 12 17:27:54 raspberrypi AMBEserver[778]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 17:27:54 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@raspberrypi:~ $

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 5:13 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Ooops -- do it this way

 

sudo usermod -G tty,dialout,gpio,audio,opendv opendv

sudo grep opendv /etc/passwd /etc/group

 

 

On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

 

sudo usermod -G tty opendv

sudo usermod -G dialout opendv

sudo usermod -G gpio opendv

sudo usermod -G audio opendv

 

And restart the daemon, checking status again.

 

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

Ooops -- do it this way

sudo usermod -G tty,dialout,gpio,audio,opendv opendv
sudo grep opendv /etc/passwd /etc/group


On Tue, Mar 12, 2019 at 2:07 PM John D. Hays <john@...> wrote:
Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

sudo usermod -G tty opendv
sudo usermod -G dialout opendv
sudo usermod -G gpio opendv
sudo usermod -G audio opendv

And restart the daemon, checking status again.

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 



--


John D. Hays
Edmonds, WA
K7VE

   



--


John D. Hays
Edmonds, WA
K7VE

   


Re: AMBEServer Install for PiDV

 

Try adding opendv to 'tty' group, I also forgot to add opendv to other groups

sudo usermod -G tty opendv
sudo usermod -G dialout opendv
sudo usermod -G gpio opendv
sudo usermod -G audio opendv

And restart the daemon, checking status again.

On Tue, Mar 12, 2019 at 1:54 PM Mike Besemer <mwbesemer@...> wrote:

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 



--


John D. Hays
Edmonds, WA
K7VE

   


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

 

$ sudo grep opendv /etc/group

opendv:x:1001:

 

$ sudo grep opendv /etc/passwd

opendv:x:1001:1001::/home/opendv:/bin/false

 

$ ls -l /dev/ttyAMA0

crw--w---- 1 root tty 204, 64 Mar 12 16:14 /dev/ttyAMA0

 

 

$ sudo systemctl status ambeserver@ttyAMA0

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor pres

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min a

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AM

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering O

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with

lines 1-16/16 (END)...skipping...

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 16:14:18 EDT; 38min ago

  Process: 298 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 295 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 287 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 298 (code=exited, status=1/FAILURE)

 

Mar 12 16:14:16 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 16:14:17 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: Starting...

Mar 12 16:14:17 raspberrypi AMBEserver[298]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 16:14:18 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:26 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

 

Send me the output of these commands:

 

sudo grep opendv /etc/group

sudo grep opendv /etc/passwd

ls -l /dev/ttyAMA0

sudo systemctl status ambeserver@ttyAMA0

 

BTW - I will be offline most of the rest of the day after about 1 hour.

 

 

 

 

On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

That would suggest that ttyAMA0 is the correct one. (3B+ would be different)

Send me the output of these commands:

sudo grep opendv /etc/group
sudo grep opendv /etc/passwd
ls -l /dev/ttyAMA0
sudo systemctl status ambeserver@ttyAMA0

BTW - I will be offline most of the rest of the day after about 1 hour.




On Tue, Mar 12, 2019 at 1:16 PM Mike Besemer <mwbesemer@...> wrote:

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 



--


John D. Hays
Edmonds, WA
K7VE

   


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

Pi B+ v1.2 and the latest Stretch.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 4:04 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?

 

 

 

On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

Which model Raspberry pi and OS?



On Tue, Mar 12, 2019, 12:57 Mike Besemer <mwbesemer@...> wrote:

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

Mike Besemer - WM4B
 

John,

 

Done.  The following is the result after issuing “sudo systemctl status  ambeserver@ttyAMA0”

 

I don’t know what the heck I’m looking at!

 

Mike

WM4B

 

 

● ambeserver@... - DV3000 Daemon

   Loaded: loaded (/etc/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)

   Active: failed (Result: exit-code) since Tue 2019-03-12 15:48:57 EDT; 14s ago

  Process: 28545 ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/ttyAMA0 $AMBESERVER_FLAGS (code=exited, status=1/FAILURE)

  Process: 28541 ExecStartPre=/bin/chmod 0660 /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

  Process: 28538 ExecStartPre=/bin/chgrp dialout /dev/ttyAMA0 (code=exited, status=0/SUCCESS)

Main PID: 28545 (code=exited, status=1/FAILURE)

 

Mar 12 15:48:56 raspberrypi systemd[1]: Starting DV3000 Daemon...

Mar 12 15:48:57 raspberrypi systemd[1]: Started DV3000 Daemon.

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: Starting...

Mar 12 15:48:57 raspberrypi AMBEserver[28545]: AMBEserver: error when opening /dev/ttyAMA0: Permission denied

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Unit entered failed state.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 12 15:48:57 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Tuesday, March 12, 2019 1:23 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] AMBEServer Install for PiDV

 

Mike,

 

Set up the opendv user:

 

sudo useradd -s /bin/false opendv

 

then 

 

sudo usermod -G dialout

sudo usermod -G gpio

sudo usermod -G audio

 

In /etc/opendv create 3 files:  ambeserver-ttyAMA0.conf  ambeserver-ttyS0.conf  ambeserver-ttyUSB0.conf

 

Each will contain:

#

# Configuration file for the AMBEserver program started by systemd.

# Adding flags to AMBESERVER_FLAGS will pass this to the daemon.

# For example, to change the speed to 460800, use the following line:

# AMBESERVER_FLAGS="-s 460800"

#

 

UDP_PORT=2460

AMBESERVER_FLAGS="-r"

 

create a file in /etc/systemd/system named ambeserver@.service

 

Containing:

[Unit]

Description=DV3000 Daemon

After=network.target serial-getty@%i.service dev-%i.device

Conflicts=serial-getty@%i.service

OnFailure=serial-getty@%i.service

 

[Service]

User=opendv

EnvironmentFile=/etc/opendv/%p-%i.conf

PermissionsStartOnly=true

ExecStartPre=/bin/chgrp dialout /dev/%i

ExecStartPre=/bin/chmod 0660 /dev/%i

ExecStart=/usr/sbin/AMBEserver -p ${UDP_PORT} -i /dev/%i $AMBESERVER_FLAGS

Restart=on-abort

 

[Install]

WantedBy=multi-user.target

 

 

Startup and enable  ambeserver

 

sudo systemctl enable  ambeserver@ttyAMA0

sudo systemctl start  ambeserver@ttyAMA0

sudo systemctl status  ambeserver@ttyAMA0

 

If you are not familiar with systemd  check out manual pages:

 

man systemctl

man systemd

 

 


John D. Hays
Edmonds, WA

K7VE

 

   

 


Re: AMBEServer Install for PiDV

 

Dynamic DNS (like noip.com) is fine if your address doesn't change during a session (and your app can take a DNS name).  Otherwise, you could run something like openvpn on your VM and VPN to it from your local network (or go further and actually get some routable IP address space ala Bringing Net44 and IPV6 to your Ham Radio Station via VPN).

On Tue, Mar 12, 2019 at 9:25 AM John Anderson via Groups.Io <mi0aaz=yahoo.co.uk@groups.io> wrote:
Hi John.

I dont have a static ip from my internet provider but i plan to use my home noip.com account which is running in my fibre router and have a static ip assigned to the Pi on my home network, so i think all i need is instructions and ports number to link the VM via the internet to the Pi, any help would be very much appreciated.

73.

--


John D. Hays
Edmonds, WA
K7VE

   

741 - 760 of 1592