Hi John,
I followed your instructions word for word. Results below.
sudo python AMBEtest3.py -i /dev/ttyS0
pi@raspberrypi:~ $ sudo python AMBEtest3.py -i /dev/ttyS0
AMBEtest3.py -s <serial port>
AMBEtest3.py -n -s <serial port> (for ThumbDV Model A
pi@raspberrypi:~ $ python ambesocktest.py
^CTraceback (most recent call last):
File "ambesocktest.py", line 23, in <module>
d = s.recvfrom(1024)
KeyboardInterrupt
Same command but substituted -s flag and promising results.
pi@raspberrypi:~ $ sudo python AMBEtest3.py -s /dev/ttyS0
Setting ...
/dev/ttyS0
d
8
N
1
False
False
False
Reset
6100010033
Wrote: 5 bytes
a9
Product ID
6100010030
Wrote: 5 bytes
a
0AMBE3000R
Version
6100010031
Wrote: 5 bytes
a11V120.E100.XXXX.C106.G514.R009.B0010411.C0020208
Set DSTAR Mode
61000c000a013007634000000000000048
Wrote: 17 bytes
Then ran this command, things look like they're working as expected.
pi@raspberrypi:~ $ sudo AMBEserver -i /dev/ttyS0
AMBEserver: Starting...
AMBEserver: Opened serial port /dev/ttyS0 at 230400 bps.
AMBEserver: Initialized AMBE3000R version V120.E100.XXXX.C106.G514.R009.B0010411.C0020208.
AMBEserver: Listening for connections on UDP port 2460.
Finally I tried the socket tests
python ambesocketest.py
0AMBE3000R
Server reply : a
0AMBE3000R
Server reply : a
0AMBE3000R
^CTraceback (most recent call last):
File "ambesocketest.py", line 23, in <module>
d = s.recvfrom(1024)
KeyboardInterrupt
Hallelujah! The first positive news of the quarantine.
So then I tried:
pi@raspberrypi:~ $ sudo systemctl enable ambeserver@...
Created symlink /etc/systemd/system/multi-user.target.wants/ambeserver@... → /lib/systemd/system/ambeserver@.service.
pi@raspberrypi:~ $
No visible errors so I assumed it was enabled. I rebooted and tried:
sudo systemctl status ambeserver@...
pi@raspberrypi:~ $ sudo systemctl status ambeserver@...
● ambeserver@... - DV3000 Daemon
Loaded: loaded (/lib/systemd/system/ambeserver@.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Fri 2020-04-24 15:05:48 EDT; 8min ago
Process: 403 ExecStartPre=/bin/chgrp dialout /dev/ttyS0 (code=exited, status=217/USER)
Apr 24 15:05:48 raspberrypi systemd[1]: Starting DV3000 Daemon...
Apr 24 15:05:48 raspberrypi systemd[403]: ambeserver@...: Failed to determine user credentials: No such process
Apr 24 15:05:48 raspberrypi systemd[403]: ambeserver@...: Failed at step USER spawning /bin/chgrp: No such process
Apr 24 15:05:48 raspberrypi systemd[1]: ambeserver@...: Control process exited, code=exited, status=217/USER
Apr 24 15:05:48 raspberrypi systemd[1]: ambeserver@...: Failed with result 'exit-code'.
Apr 24 15:05:48 raspberrypi systemd[1]: Failed to start DV3000 Daemon.
Apr 24 15:05:48 raspberrypi systemd[1]: ambeserver@...: Triggering OnFailure= dependencies.
pi@raspberrypi:~ $
Damn! So close. So I don't know what to make of that.
Colin
Colin G. MacArthur B.A., LL.B.