Date   
Re: ambeserver failing?

 

Same way as your email of the 12th

Mike Besemer mwbesemer@... via groups.io 

Mar 12, 2019, 5:11 PM (4 days ago)
to ambe

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

AMBEserver: Starting...

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


Leave running in one window and then try your other programs.

--


John D. Hays
Edmonds, WA
K7VE

   

Re: ambeserver failing?

Mike Besemer
 

How do I do that?

 

 

 

From: ambe@nw-digital-radio.groups.io [mailto:ambe@nw-digital-radio.groups.io] On Behalf Of John D Hays - K7VE
Sent: Saturday, March 16, 2019 5:33 PM
To: ambe@nw-digital-radio.groups.io
Subject: Re: [ambe] ambeserver failing?

 

Try starting it on the command line, not using the systemctl / service scripts and see if it stays up.

 

On Sat, Mar 16, 2019 at 2:01 PM Mike Besemer <mwbesemer@...> wrote:

Still struggling.  Currently getting an ‘Unable to Transmit’ error from dummyrepeater. 

I went back and looked at ambeserver.  As you can see below, I start ambeserver and immediately check the status.  It appears to start properly.  Then I check the status again less than a minute later and see a ‘failed’ message.  I don’t know if this is what’s causing dummyrepeater to throw the error code, but I don’t think this is right.

Mike

WM4B

pi@compass:~ $ sudo systemctl start ambeserver@...

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: active (running) since Sat 2019-03-16 16:55:45 EDT; 12s ago

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

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

 Main PID: 2204 (AMBEserver)

   CGroup: /system.slice/system-ambeserver.slice/ambeserver@...

           └─2204 /usr/sbin/AMBEserver -p 2460 -i /dev/ttyAMA0 -r

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: failed (Result: exit-code) since Sat 2019-03-16 16:56:22 EDT; 22s ago

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

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

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

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

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Unit entered failed state.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@compass:~ $

 


 

--

 


John D. Hays
Edmonds, WA

K7VE

 

   

 

Re: ambeserver failing?

 

Try starting it on the command line, not using the systemctl / service scripts and see if it stays up.

On Sat, Mar 16, 2019 at 2:01 PM Mike Besemer <mwbesemer@...> wrote:

Still struggling.  Currently getting an Unable to Transmit error from dummyrepeater. 

I went back and looked at ambeserver.  As you can see below, I start ambeserver and immediately check the status.  It appears to start properly.  Then I check the status again less than a minute later and see a failed message.  I dont know if this is what’s causing dummyrepeater to throw the error code, but I dont think this is right.

Mike

WM4B

pi@compass:~ $ sudo systemctl start ambeserver@...

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: active (running) since Sat 2019-03-16 16:55:45 EDT; 12s ago

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

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

 Main PID: 2204 (AMBEserver)

   CGroup: /system.slice/system-ambeserver.slice/ambeserver@...

           └─2204 /usr/sbin/AMBEserver -p 2460 -i /dev/ttyAMA0 -r

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: failed (Result: exit-code) since Sat 2019-03-16 16:56:22 EDT; 22s ago

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

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

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

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

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Unit entered failed state.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@compass:~ $




--


John D. Hays
Edmonds, WA
K7VE

   

ambeserver failing?

Mike Besemer
 

Still struggling.  Currently getting an Unable to Transmit error from dummyrepeater. 

I went back and looked at ambeserver.  As you can see below, I start ambeserver and immediately check the status.  It appears to start properly.  Then I check the status again less than a minute later and see a failed message.  I dont know if this is what’s causing dummyrepeater to throw the error code, but I dont think this is right.

Mike

WM4B

pi@compass:~ $ sudo systemctl start ambeserver@...

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: active (running) since Sat 2019-03-16 16:55:45 EDT; 12s ago

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

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

 Main PID: 2204 (AMBEserver)

   CGroup: /system.slice/system-ambeserver.slice/ambeserver@...

           └─2204 /usr/sbin/AMBEserver -p 2460 -i /dev/ttyAMA0 -r

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

pi@compass:~ $ sudo systemctl status ambeserver@...

● ambeserver@... - DV3000 Daemon

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

   Active: failed (Result: exit-code) since Sat 2019-03-16 16:56:22 EDT; 22s ago

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

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

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

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

Mar 16 16:55:45 compass systemd[1]: Starting DV3000 Daemon...

Mar 16 16:55:45 compass systemd[1]: Started DV3000 Daemon.

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Starting...

Mar 16 16:55:45 compass AMBEserver[2204]: AMBEserver: Opened serial port /dev/ttyAMA0 at 230400 bps.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Main process exited, code=exited, status=1/FAILURE

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Unit entered failed state.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.

Mar 16 16:56:22 compass systemd[1]: ambeserver@...: Failed with result 'exit-code'.

pi@compass:~ $


Re: How to add the Compass Linux repository to Debian ?

Stefsan
 

Hi its easy to compile only one line

before get it from github, unzip it and configure the c code by eding 2 lines  , make and make install and if neccesarry add a scritp in autostart or start service with init.d

here manual in german,translate to google if you want

_______________________________

4 AMBE Server installieren


laden Sie den Source Code aus github herunter.

Terminal Console offnen und

cd /tmp eingeben


(Sie sind nun im tmp Verzeichniss)

Nun Daten laden mit

sudo wget https://github.com/marrold/AMBEServer/archive/master.zip


Wenn fertig sind diese nun im tmp Verzeciniss und müssen entpackt werden mi

sudo unzip master.zip


Ein Unterverzeichniss AMBEServer-master ist nun entstanden, diese beinhaltet die zu compilierenden Komponenten

Nun im Terminal die Datei AMBEserver.c mit sudo nano AMBEserver.c öffnen

DV30 Stick Baudrate 460800Bd

alter ThumbDV 230600 Bd

AMBE3000 Board für MyDV  230600 Bd


Hier habe ich die Standard-Baudrate eingestellt, mit der der Dongle arbeitet. Ich habe das gemacht, weil die neuen Dongles alle bei 460800 Baud laufen und nicht bei 230400.

 Suche in AMBEserver.c nach
# Define default_baud 230400
und ändern Sie die 230400 in 460800
so wird es zu:
# Define default_baud 460800
Sichere diese Datei
Wenn die Zeile geändert ist mit strg O speichern.
Nun muss kompiliert werden
sudo make
danach mit 
sudo make install.
Der Programmaufruf kann nun mit AMBEserver -x  getestet werden.

Ein Start Script kann mit nano im Verzeichniss .config/autostart angelegt werden.
[Desktop Entry]
GenericName=AMBEServer
Name=AMBEServer
Comment=DV30 USB AMBEServer
Exec=sh -c "cd /usr/bin ; ./AMBEserver -x"
Terminal=false
;Terminal=true
Type=Application
Categories=Network;WebBrowser;
;Icon=/home/pi/Downloads/DV4Mini_Raspi/dv4.ico
Icon=/home/pi/Downloads/ambe.jpeg

Dann startet der AMBE Server automatisch!!! beim Neustart

Am 15.03.19 um 15:50 schrieb John Anderson via Groups.Io:

I want to add the Compass Linux repository to Debian, what file do i edit to do this ?

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
 

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
 

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
 

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
 

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
 

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
 

 

$ 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