Keyboard Shortcuts
Likes
- Direwolf
- Messages
Search
Re: Compile Error Assistance
As David pointed out, the extra messages during compiling are harmless warnings that can be ignored.
?
The extra messages during run-time are debug messages, not errors.? They are harmless.
?
The question is:? Why are they suddenly showing up??? The related source code has not been changed for many years.
?
What, exactly, does your direwolf command line look like?
?
73,
John WB2OSZ |
Re: Compile Error Assistance
开云体育Understood.? What was the previous version of Direwolf that was successful?? If it's a 1.8DEV version, do you happen to know the date?? I ask all this because while 1.8 should be stable, it is the develop branch and breakages do occur.? If you want the most stable version, it's recommended to run the Direwolf 1.7 release version. --David Ki6ZHD On 09/25/2024 11:38 AM, Jeffrey Komori
(KH6JUZ) via groups.io wrote:
|
Re: Compile Error Assistance
开云体育Hello Jeffrey, I would encourage you to review the archives but I would also recommend you run four independent direwolf instances with one sound device per instance to maximize your APRS performance.? The primary reason for this is direwolf does it's transmissions in a sequential basis so that can inject delays where as if you have four direwolf's running.. they will run completely independently.? Having four instances also gives you a bit more fault isolation, etc. though at the small cost of additional RAM consumption. --David KI6ZHD On 09/25/2024 11:09 AM, Jeffrey Komori
(KH6JUZ) via groups.io wrote:
|
Re: Compile Error Assistance
开云体育Hello Jeffrey, ? Please describe your setup here.? I see you have FOUR sound sources configured in Direwolf.? Are these four unique sound devices, or four unique SDR hardware devices, maybe four slices off one SDR created via ALSA plugins?? I also assume you've mapped these devices to human friendly names in udev correct?
What computer hardware are you running this all on to enable a /2 decimation value?
Having four PTT controls configured infers these are four REAL radios
Have you enabled any debugging statements to see these statements?? If you haven't enabled direwolf, you might try that to see what else you can learn: -- ?????? -d x?? Debug options.? Specify one or more of the following in place of x. ???????????????????? a = AGWPE network protocol client. ???????????????????? k = KISS serial port client. ???????????????????? n = Network KISS client. ???????????????????? u = Display non-ASCII text in hexadecimal. ???????????????????? p = Packet dump in hexadecimal. ???????????????????? g = GPS interface. ???????????????????? W = Waypoints for position or object reports. ???????????????????? t = Tracker beacon. ???????????????????? o = Output controls such as PTT and DCD. ???????????????????? i = IGate ???????????????????? h = Hamlib verbose level.? Repeat for more. ???????????????????? m = Monitor heard station list. ???????????????????? f = Packet filtering. ???????????????????? x = FX.25 increase verbose level. ???????????????????? d = APRStt (DTMF to APRS object conversion). -- --David KI6ZHD |
Re: Compile Error Assistance
When I try to run the compiled version, I get these error messages (which keep repeating and no digipeat/igate happens, when I run a previously compiled version, it runs fine with the same config file):
?
$ direwolf -c /etc/direwolf.conf
Dire Wolf DEVELOPMENT version 1.8 D (Sep 25 2024) Includes optional support for: ?gpsd cm108-ptt libgpiod dns-sd Reading config file /etc/direwolf.conf
Audio device for both receive and transmit: plughw:USBINSIDE,0 ?(channel 0) Audio device for both receive and transmit: plughw:USBMIDDLE,0 ?(channel 2) Audio device for both receive and transmit: plughw:USBOUTSIDE,0 ?(channel 4) Audio device for both receive and transmit: plughw:USBEND,0 ?(channel 6) Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, E+, 48000 sample rate / 2. Channel 2: 9600 baud, K9NG/G3RUH, +, 96000 sample rate x 2. The ratio of audio samples per sec (96000) to data rate in baud (9600) is 10.0 This is a suitable ratio for good performance. Channel 4: 9600 baud, K9NG/G3RUH, +, 96000 sample rate x 2. The ratio of audio samples per sec (96000) to data rate in baud (9600) is 10.0 This is a suitable ratio for good performance. Channel 6: 9600 baud, K9NG/G3RUH, +, 96000 sample rate x 2. The ratio of audio samples per sec (96000) to data rate in baud (9600) is 10.0 This is a suitable ratio for good performance. Using /dev/hidraw2 GPIO 3 for channel 0 PTT control. Using /dev/hidraw1 GPIO 3 for channel 2 PTT control. Using /dev/hidraw0 GPIO 3 for channel 4 PTT control. Using /dev/hidraw3 GPIO 3 for channel 6 PTT control. Ready to accept AGW client application 0 on port 8000 ... Ready to accept KISS TCP client application 0 on port 8001 ... DNS-SD: Avahi: Announcing KISS TCP on port 8001 as 'Dire Wolf on KH6JUZ-12' GPSD: No location fix. DNS-SD: Avahi: Service 'Dire Wolf on KH6JUZ-12' successfully registered. dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=2, ...) dlq_remove (type=7, chan=2, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=4, ...) dlq_remove (type=7, chan=2, ...) dlq_remove (type=7, chan=2, ...) dlq_remove (type=7, chan=6, ...) dlq_remove (type=7, chan=6, ...) |
Re: Compile Error Assistance
开云体育Hello Jeffrey, I see you're using Debian 64bit on the 6.6.47 which I assume is running on a Raspberry Pi hardware.? Regardless, what you're seeing are just warnings and NOT errors.? Your compile completed 100%. --David KI6ZHD On 09/25/2024 08:53 AM, Jeffrey Komori
(KH6JUZ) via groups.io wrote:
|
Compile Error Assistance
? Lately, when I try to download and compile the latest dev version of DireWolf, I get a lot of compile-time errors. Not being a programmer, I don’t understand what it all means and the compiled version of direwolf fails to run. I’ve included the output of my compile attempt below and would appreciate if anybody can tell me what I need to do/install to correct the errors. ? Thanks, -Jeffrey Komori, KH6JUZ ? $ uname -a Linux KH6JUZ 6.6.47+rpt-rpi-2712 #1 SMP PREEMPT Debian 1:6.6.47-1+rpt1 (2024-09-02) aarch64 GNU/Linux? ? $ git clone https://www.github.com/wb2osz/direwolf Cloning into 'direwolf'... warning: redirecting to https://github.com/wb2osz/direwolf.git/ remote: Enumerating objects: 4052, done. remote: Counting objects: 100% (1583/1583), done. remote: Compressing objects: 100% (415/415), done. remote: Total 4052 (delta 1297), reused 1301 (delta 1156), pack-reused 2469 (from 1) Receiving objects: 100% (4052/4052), 139.53 MiB | 4.22 MiB/s, done. Resolving deltas: 100% (2858/2858), done. $ cd direwolf $ git checkout dev branch 'dev' set up to track 'origin/dev'. Switched to a new branch 'dev' $ vi src/direwolf.h $ mkdir build $ cd build $ cmake .. -- The C compiler identification is GNU 12.2.0 -- The CXX compiler identification is GNU 12.2.0 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /usr/bin/cc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Found Git: /usr/bin/git (found version "2.39.5")? -- Dire Wolf Version: 1.8.0-0734e46 -- Build type set to: Release CMake system: Linux -- Target architecture: ARM64 -- Use NEON SIMD instructions -- Looking for strlcpy -- Looking for strlcpy - not found -- Looking for strlcat -- Looking for strlcat - not found -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE ? -- Checking for module 'libgps' -- ? Found libgps, version 3.22 -- Found GPSD: /usr/lib/aarch64-linux-gnu/libgps.so -- Checking for module 'hamlib' -- ? Package 'hamlib', required by 'virtual:world', not found -- Could NOT find hamlib (missing: HAMLIB_LIBRARY HAMLIB_INCLUDE_DIR)? -- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")? -- Found gpiod: /usr/lib/aarch64-linux-gnu/libgpiod.so ? -- Found ALSA: /usr/lib/aarch64-linux-gnu/libasound.so (found version "1.2.8")? -- Checking for module 'libudev' -- ? Found libudev, version 252 -- Found udev: /usr/lib/aarch64-linux-gnu/libudev.so ? -- Found Avahi: TRUE ? -- Configuring done -- Generating done -- Build files have been written to: /home/aprs/direwolf/build $ make -j4 [ ?1%] Building C object external/misc/CMakeFiles/misc.dir/strlcpy.c.o [ ?1%] Building C object external/geotranz/CMakeFiles/geotranz.dir/mgrs.c.o [ ?1%] Building C object external/misc/CMakeFiles/misc.dir/strlcat.c.o [ ?2%] Building C object external/geotranz/CMakeFiles/geotranz.dir/error_string.c.o [ ?2%] Building C object external/geotranz/CMakeFiles/geotranz.dir/polarst.c.o [ ?2%] Linking C static library libmisc.a [ ?3%] Building C object external/geotranz/CMakeFiles/geotranz.dir/tranmerc.c.o [ ?3%] Built target misc [ ?3%] Building C object src/CMakeFiles/decode_aprs.dir/decode_aprs.c.o [ ?4%] Building C object src/CMakeFiles/text2tt.dir/tt_text.c.o [ ?4%] Building C object external/geotranz/CMakeFiles/geotranz.dir/ups.c.o [ ?5%] Building C object external/geotranz/CMakeFiles/geotranz.dir/usng.c.o [ ?5%] Building C object external/geotranz/CMakeFiles/geotranz.dir/utm.c.o [ ?6%] Building C object src/CMakeFiles/decode_aprs.dir/deviceid.c.o [ ?7%] Linking C static library libgeotranz.a [ ?7%] Building C object src/CMakeFiles/decode_aprs.dir/ais.c.o [ ?7%] Linking C executable text2tt [ ?7%] Built target geotranz [ ?7%] Building C object src/CMakeFiles/tt2text.dir/tt_text.c.o [ ?7%] Built target text2tt [ ?8%] Building C object src/CMakeFiles/ll2utm.dir/ll2utm.c.o [ ?8%] Building C object src/CMakeFiles/ll2utm.dir/textcolor.c.o [ ?9%] Linking C executable ll2utm [ ?9%] Built target ll2utm [ 10%] Building C object src/CMakeFiles/utm2ll.dir/utm2ll.c.o [ 10%] Building C object src/CMakeFiles/utm2ll.dir/textcolor.c.o [ 11%] Linking C executable tt2text [ 12%] Linking C executable utm2ll [ 12%] Built target tt2text [ 13%] Building C object src/CMakeFiles/decode_aprs.dir/kiss_frame.c.o [ 13%] Built target utm2ll [ 13%] Building C object src/CMakeFiles/log2gpx.dir/log2gpx.c.o [ 14%] Building C object src/CMakeFiles/gen_packets.dir/gen_packets.c.o [ 14%] Building C object src/CMakeFiles/decode_aprs.dir/ax25_pad.c.o [ 15%] Building C object src/CMakeFiles/log2gpx.dir/textcolor.c.o [ 15%] Linking C executable log2gpx [ 15%] Building C object src/CMakeFiles/atest.dir/atest.c.o [ 15%] Built target log2gpx [ 15%] Building C object src/CMakeFiles/aclients.dir/aclients.c.o [ 15%] Building C object src/CMakeFiles/gen_packets.dir/ax25_pad.c.o [ 16%] Building C object src/CMakeFiles/atest.dir/ais.c.o [ 16%] Building C object src/CMakeFiles/aclients.dir/ax25_pad.c.o [ 17%] Building C object src/CMakeFiles/decode_aprs.dir/dwgpsnmea.c.o [ 17%] Building C object src/CMakeFiles/atest.dir/demod.c.o [ 17%] Building C object src/CMakeFiles/decode_aprs.dir/dwgps.c.o [ 18%] Building C object src/CMakeFiles/decode_aprs.dir/dwgpsd.c.o [ 18%] Building C object src/CMakeFiles/decode_aprs.dir/serial_port.c.o [ 18%] Building C object src/CMakeFiles/gen_packets.dir/ax25_pad2.c.o [ 19%] Building C object src/CMakeFiles/decode_aprs.dir/symbols.c.o [ 20%] Building C object src/CMakeFiles/aclients.dir/fcs_calc.c.o [ 21%] Building C object src/CMakeFiles/gen_packets.dir/fx25_encode.c.o [ 22%] Building C object src/CMakeFiles/atest.dir/demod_afsk.c.o [ 22%] Building C object src/CMakeFiles/aclients.dir/textcolor.c.o [ 22%] Building C object src/CMakeFiles/decode_aprs.dir/textcolor.c.o [ 22%] Building C object src/CMakeFiles/gen_packets.dir/fx25_extract.c.o [ 23%] Linking C executable aclients [ 23%] Building C object src/CMakeFiles/decode_aprs.dir/fcs_calc.c.o [ 23%] Built target aclients [ 23%] Building C object src/CMakeFiles/kissutil.dir/kissutil.c.o [ 24%] Building C object src/CMakeFiles/decode_aprs.dir/latlong.c.o [ 24%] Building C object src/CMakeFiles/atest.dir/demod_psk.c.o [ 24%] Building C object src/CMakeFiles/decode_aprs.dir/log.c.o [ 25%] Building C object src/CMakeFiles/gen_packets.dir/fx25_init.c.o [ 26%] Building C object src/CMakeFiles/kissutil.dir/kiss_frame.c.o [ 26%] Building C object src/CMakeFiles/kissutil.dir/ax25_pad.c.o [ 27%] Building C object src/CMakeFiles/decode_aprs.dir/telemetry.c.o [ 27%] Building C object src/CMakeFiles/gen_packets.dir/fx25_send.c.o [ 28%] Building C object src/CMakeFiles/atest.dir/demod_9600.c.o [ 29%] Building C object src/CMakeFiles/gen_packets.dir/hdlc_send.c.o [ 29%] Building C object src/CMakeFiles/decode_aprs.dir/tt_text.c.o [ 29%] Building C object src/CMakeFiles/gen_packets.dir/fcs_calc.c.o [ 29%] Building C object src/CMakeFiles/atest.dir/dsp.c.o [ 30%] Building C object src/CMakeFiles/gen_packets.dir/gen_tone.c.o [ 31%] Building C object src/CMakeFiles/atest.dir/fx25_extract.c.o [ 31%] Building C object src/CMakeFiles/gen_packets.dir/il2p_codec.c.o [ 32%] Building C object src/CMakeFiles/gen_packets.dir/il2p_scramble.c.o [ 33%] Linking C executable decode_aprs [ 33%] Building C object src/CMakeFiles/gen_packets.dir/il2p_payload.c.o [ 33%] Built target decode_aprs [ 34%] Building C object src/CMakeFiles/kissutil.dir/fcs_calc.c.o [ 35%] Building C object src/CMakeFiles/tnctest.dir/tnctest.c.o [ 36%] Building C object src/CMakeFiles/gen_packets.dir/il2p_init.c.o [ 36%] Building C object src/CMakeFiles/kissutil.dir/textcolor.c.o [ 36%] Building C object src/CMakeFiles/atest.dir/fx25_encode.c.o [ 37%] Building C object src/CMakeFiles/kissutil.dir/serial_port.c.o [ 37%] Building C object src/CMakeFiles/atest.dir/fx25_init.c.o [ 37%] Building C object src/CMakeFiles/gen_packets.dir/il2p_header.c.o [ 37%] Building C object src/CMakeFiles/kissutil.dir/dtime_now.c.o [ 38%] Building C object src/CMakeFiles/kissutil.dir/dwsock.c.o [ 38%] Building C object src/CMakeFiles/tnctest.dir/textcolor.c.o [ 39%] Building C object src/CMakeFiles/tnctest.dir/dtime_now.c.o [ 39%] Linking C executable kissutil [ 40%] Building C object src/CMakeFiles/atest.dir/fx25_rec.c.o [ 40%] Built target kissutil [ 40%] Building C object src/CMakeFiles/tnctest.dir/serial_port.c.o [ 41%] Building C object src/CMakeFiles/cm108.dir/cm108.c.o [ 42%] Building C object src/CMakeFiles/gen_packets.dir/il2p_send.c.o [ 43%] Linking C executable tnctest [ 43%] Building C object src/CMakeFiles/gen_packets.dir/morse.c.o [ 43%] Building C object src/CMakeFiles/atest.dir/hdlc_rec.c.o [ 43%] Built target tnctest [ 43%] Building C object src/CMakeFiles/ttcalc.dir/ttcalc.c.o [ 43%] Building C object src/CMakeFiles/cm108.dir/textcolor.c.o [ 44%] Building C object src/CMakeFiles/ttcalc.dir/ax25_pad.c.o [ 45%] Building C object src/CMakeFiles/gen_packets.dir/dtmf.c.o [ 46%] Linking C executable cm108 [ 47%] Building C object src/CMakeFiles/atest.dir/hdlc_rec2.c.o [ 47%] Built target cm108 [ 47%] Building C object src/CMakeFiles/ttcalc.dir/fcs_calc.c.o [ 48%] Building C object src/CMakeFiles/ttcalc.dir/textcolor.c.o [ 48%] Building C object src/CMakeFiles/atest.dir/il2p_codec.c.o [ 48%] Building C object src/CMakeFiles/gen_packets.dir/textcolor.c.o [ 49%] Building C object src/CMakeFiles/gen_packets.dir/dsp.c.o [ 50%] Building C object src/CMakeFiles/atest.dir/il2p_scramble.c.o [ 50%] Building C object src/CMakeFiles/appserver.dir/appserver.c.o [ 50%] Building C object src/CMakeFiles/atest.dir/il2p_rec.c.o [ 50%] Linking C executable gen_packets [ 50%] Built target gen_packets [ 51%] Building C object src/CMakeFiles/atest.dir/il2p_payload.c.o [ 51%] Building C object src/CMakeFiles/atest.dir/il2p_init.c.o [ 52%] Building C object src/CMakeFiles/appserver.dir/agwlib.c.o [ 53%] Building C object src/CMakeFiles/atest.dir/il2p_header.c.o [ 53%] Building C object src/CMakeFiles/direwolf.dir/direwolf.c.o [ 53%] Building C object src/CMakeFiles/appserver.dir/dwsock.c.o [ 54%] Building C object src/CMakeFiles/appserver.dir/dtime_now.c.o [ 54%] Building C object src/CMakeFiles/atest.dir/multi_modem.c.o [ 54%] Building C object src/CMakeFiles/appserver.dir/ax25_pad.c.o [ 54%] Linking C executable ttcalc [ 54%] Built target ttcalc [ 55%] Building C object src/CMakeFiles/appserver.dir/fcs_calc.c.o /home/aprs/direwolf/src/multi_modem.c: In function ‘multi_modem_process_rec_frame’: /home/aprs/direwolf/src/multi_modem.c:340:73: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] ? 340 | ? ? ? ? ? snprintf (monfmt, sizeof(monfmt), "AIS>%s%1d%1d,NOGATE:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_AIS, nmea); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ /home/aprs/direwolf/src/multi_modem.c:340:11: note: ‘snprintf’ output between 22 and 277 bytes into a destination of size 276 ? 340 | ? ? ? ? ? snprintf (monfmt, sizeof(monfmt), "AIS>%s%1d%1d,NOGATE:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_AIS, nmea); ? ? ? | ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 55%] Building C object src/CMakeFiles/appserver.dir/textcolor.c.o [ 56%] Building C object src/CMakeFiles/atest.dir/rrbb.c.o [ 57%] Building C object src/CMakeFiles/direwolf.dir/ais.c.o [ 57%] Building C object src/CMakeFiles/direwolf.dir/aprs_tt.c.o [ 57%] Building C object src/CMakeFiles/atest.dir/fcs_calc.c.o [ 58%] Building C object src/CMakeFiles/atest.dir/ax25_pad.c.o [ 59%] Building C object src/CMakeFiles/direwolf.dir/audio_stats.c.o [ 59%] Building C object src/CMakeFiles/direwolf.dir/ax25_link.c.o [ 60%] Building C object src/CMakeFiles/direwolf.dir/ax25_pad.c.o [ 61%] Linking C executable appserver [ 61%] Built target appserver [ 61%] Building C object src/CMakeFiles/direwolf.dir/ax25_pad2.c.o [ 62%] Building C object src/CMakeFiles/direwolf.dir/beacon.c.o [ 62%] Building C object src/CMakeFiles/atest.dir/ax25_pad2.c.o [ 62%] Building C object src/CMakeFiles/direwolf.dir/config.c.o /home/aprs/direwolf/src/ax25_link.c: In function ‘dl_connect_request’: /home/aprs/direwolf/src/ax25_link.c:1002:13: warning: ‘get_link_handle’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ?1002 | ? ? ? ? S = get_link_handle (E->addrs, E->num_addr, E->chan, E->client, ok_to_create); ? ? ? | ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1002:13: note: referencing argument 1 of type ‘char[10][12’ /home/aprs/direwolf/src/ax25_link.c:772:21: note: in a call to function ‘get_link_handle’ ? 772 | static ax25_dlsm_t *get_link_handle (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int create) ? ? ? | ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1002:13: warning: ‘get_link_handle’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ?1002 | ? ? ? ? S = get_link_handle (E->addrs, E->num_addr, E->chan, E->client, ok_to_create); ? ? ? | ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1002:13: note: referencing argument 1 of type ‘char[10][12’ /home/aprs/direwolf/src/ax25_link.c:772:21: note: in a call to function ‘get_link_handle’ ? 772 | static ax25_dlsm_t *get_link_handle (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int create) ? ? ? | ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~ [ 63%] Building C object src/CMakeFiles/atest.dir/decode_aprs.c.o /home/aprs/direwolf/src/ax25_link.c: In function ‘dl_disconnect_request’: /home/aprs/direwolf/src/ax25_link.c:1094:13: warning: ‘get_link_handle’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ?1094 | ? ? ? ? S = get_link_handle (E->addrs, E->num_addr, E->chan, E->client, ok_to_create); ? ? ? | ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1094:13: note: referencing argument 1 of type ‘char[10][12’ /home/aprs/direwolf/src/ax25_link.c:772:21: note: in a call to function ‘get_link_handle’ ? 772 | static ax25_dlsm_t *get_link_handle (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int create) ? ? ? | ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~ In file included from /home/aprs/direwolf/src/ax25_link.c:180: /home/aprs/direwolf/src/ax25_pad2.h:30:39: warning: ‘ax25_u_frame_debug’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1125:29: note: in expansion of macro ‘ax25_u_frame’ ?1125 | ? ? ? ? ? ? packet_t pp15 = ax25_u_frame (S->addrs, S->num_addr, cr_cmd, frame_type_U_DISC, p1, nopid0, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:30:39: note: referencing argument 1 of type ‘char[10][12]’ ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1125:29: note: in expansion of macro ‘ax25_u_frame’ ?1125 | ? ? ? ? ? ? packet_t pp15 = ax25_u_frame (S->addrs, S->num_addr, cr_cmd, frame_type_U_DISC, p1, nopid0, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:23:10: note: in a call to function ‘ax25_u_frame_debug’ ? ?23 | packet_t ax25_u_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line); ? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1094:13: warning: ‘get_link_handle’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ?1094 | ? ? ? ? S = get_link_handle (E->addrs, E->num_addr, E->chan, E->client, ok_to_create); ? ? ? | ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1094:13: note: referencing argument 1 of type ‘char[10][12’ /home/aprs/direwolf/src/ax25_link.c:772:21: note: in a call to function ‘get_link_handle’ ? 772 | static ax25_dlsm_t *get_link_handle (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int create) ? ? ? | ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:30:39: warning: ‘ax25_u_frame_debug’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1125:29: note: in expansion of macro ‘ax25_u_frame’ ?1125 | ? ? ? ? ? ? packet_t pp15 = ax25_u_frame (S->addrs, S->num_addr, cr_cmd, frame_type_U_DISC, p1, nopid0, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:30:39: note: referencing argument 1 of type ‘char[10][12]’ ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:1125:29: note: in expansion of macro ‘ax25_u_frame’ ?1125 | ? ? ? ? ? ? packet_t pp15 = ax25_u_frame (S->addrs, S->num_addr, cr_cmd, frame_type_U_DISC, p1, nopid0, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:23:10: note: in a call to function ‘ax25_u_frame_debug’ ? ?23 | packet_t ax25_u_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line); ? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c: In function ‘lm_data_indication’: /home/aprs/direwolf/src/ax25_link.c:2270:13: warning: ‘get_link_handle’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ?2270 | ? ? ? ? S = get_link_handle (E->addrs, E->num_addr, E->chan, client_not_applicable, ? ? ? | ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ?2271 | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? (ftype == frame_type_U_SABM) | (ftype == frame_type_U_SABME)); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:2270:13: note: referencing argument 1 of type ‘char[10][12’ /home/aprs/direwolf/src/ax25_link.c:772:21: note: in a call to function ‘get_link_handle’ ? 772 | static ax25_dlsm_t *get_link_handle (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, int chan, int client, int create) ? ? ? | ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~ [ 63%] Building C object src/CMakeFiles/atest.dir/deviceid.c.o [ 64%] Building C object src/CMakeFiles/direwolf.dir/decode_aprs.c.o In function ‘t1_expiry’, ? ? inlined from ‘dl_timer_expiry’ at /home/aprs/direwolf/src/ax25_link.c:5287:6: /home/aprs/direwolf/src/ax25_pad2.h:30:39: warning: ‘ax25_u_frame_debug’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:5472:29: note: in expansion of macro ‘ax25_u_frame’ ?5472 | ? ? ? ? ? ? ? packet_t pp = ax25_u_frame (S->addrs, S->num_addr, cr, frame_type_U_DM, f, nopid, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:30:39: note: referencing argument 1 of type ‘char[10][12]’ ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:5472:29: note: in expansion of macro ‘ax25_u_frame’ ?5472 | ? ? ? ? ? ? ? packet_t pp = ax25_u_frame (S->addrs, S->num_addr, cr, frame_type_U_DM, f, nopid, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h: In function ‘dl_timer_expiry’: /home/aprs/direwolf/src/ax25_pad2.h:23:10: note: in a call to function ‘ax25_u_frame_debug’ ? ?23 | packet_t ax25_u_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line); ? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~~~~ In function ‘t1_expiry’, ? ? inlined from ‘dl_timer_expiry’ at /home/aprs/direwolf/src/ax25_link.c:5287:6: /home/aprs/direwolf/src/ax25_pad2.h:30:39: warning: ‘ax25_u_frame_debug’ accessing 120 bytes in a region of size 12 [-Wstringop-overflow=] ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:5472:29: note: in expansion of macro ‘ax25_u_frame’ ?5472 | ? ? ? ? ? ? ? packet_t pp = ax25_u_frame (S->addrs, S->num_addr, cr, frame_type_U_DM, f, nopid, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h:30:39: note: referencing argument 1 of type ‘char[10][12]’ ? ?30 | #define ax25_u_frame(a,n,c,f,p,q,i,l) ax25_u_frame_debug(a,n,c,f,p,q,i,l,__FILE__,__LINE__) ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_link.c:5472:29: note: in expansion of macro ‘ax25_u_frame’ ?5472 | ? ? ? ? ? ? ? packet_t pp = ax25_u_frame (S->addrs, S->num_addr, cr, frame_type_U_DM, f, nopid, NULL, 0); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^~~~~~~~~~~~ /home/aprs/direwolf/src/ax25_pad2.h: In function ‘dl_timer_expiry’: /home/aprs/direwolf/src/ax25_pad2.h:23:10: note: in a call to function ‘ax25_u_frame_debug’ ? ?23 | packet_t ax25_u_frame_debug (char addrs[AX25_MAX_ADDRS][AX25_MAX_ADDR_LEN], int num_addr, cmdres_t cr, ax25_frame_type_t ftype, int pf, int pid, unsigned char *pinfo, int info_len, char *src_file, int src_line); ? ? ? | ? ? ? ? ?^~~~~~~~~~~~~~~~~~ [ 64%] Building C object src/CMakeFiles/direwolf.dir/deviceid.c.o [ 65%] Building C object src/CMakeFiles/direwolf.dir/dedupe.c.o [ 65%] Building C object src/CMakeFiles/direwolf.dir/demod_9600.c.o [ 66%] Building C object src/CMakeFiles/atest.dir/dwgpsnmea.c.o [ 67%] Building C object src/CMakeFiles/direwolf.dir/demod_afsk.c.o [ 67%] Building C object src/CMakeFiles/atest.dir/dwgps.c.o [ 68%] Building C object src/CMakeFiles/atest.dir/dwgpsd.c.o [ 68%] Building C object src/CMakeFiles/atest.dir/serial_port.c.o [ 68%] Building C object src/CMakeFiles/atest.dir/telemetry.c.o [ 69%] Building C object src/CMakeFiles/atest.dir/dtime_now.c.o [ 69%] Building C object src/CMakeFiles/atest.dir/latlong.c.o [ 70%] Building C object src/CMakeFiles/atest.dir/symbols.c.o [ 70%] Building C object src/CMakeFiles/direwolf.dir/demod_psk.c.o [ 70%] Building C object src/CMakeFiles/direwolf.dir/demod.c.o [ 70%] Building C object src/CMakeFiles/atest.dir/tt_text.c.o [ 71%] Building C object src/CMakeFiles/direwolf.dir/digipeater.c.o [ 71%] Building C object src/CMakeFiles/direwolf.dir/cdigipeater.c.o [ 72%] Building C object src/CMakeFiles/direwolf.dir/dlq.c.o [ 72%] Building C object src/CMakeFiles/direwolf.dir/dsp.c.o [ 73%] Building C object src/CMakeFiles/atest.dir/textcolor.c.o [ 73%] Linking C executable atest [ 74%] Building C object src/CMakeFiles/direwolf.dir/dtime_now.c.o [ 74%] Building C object src/CMakeFiles/direwolf.dir/dtmf.c.o [ 75%] Building C object src/CMakeFiles/direwolf.dir/dwgps.c.o [ 75%] Built target atest [ 75%] Building C object src/CMakeFiles/direwolf.dir/dwsock.c.o [ 76%] Building C object src/CMakeFiles/direwolf.dir/encode_aprs.c.o [ 76%] Building C object src/CMakeFiles/direwolf.dir/fcs_calc.c.o [ 77%] Building C object src/CMakeFiles/direwolf.dir/fx25_encode.c.o [ 77%] Building C object src/CMakeFiles/direwolf.dir/fx25_extract.c.o [ 78%] Building C object src/CMakeFiles/direwolf.dir/fx25_init.c.o [ 78%] Building C object src/CMakeFiles/direwolf.dir/fx25_rec.c.o [ 79%] Building C object src/CMakeFiles/direwolf.dir/fx25_send.c.o [ 79%] Building C object src/CMakeFiles/direwolf.dir/fx25_auto.c.o [ 80%] Building C object src/CMakeFiles/direwolf.dir/gen_tone.c.o [ 80%] Building C object src/CMakeFiles/direwolf.dir/hdlc_rec.c.o [ 81%] Building C object src/CMakeFiles/direwolf.dir/hdlc_rec2.c.o [ 81%] Building C object src/CMakeFiles/direwolf.dir/hdlc_send.c.o [ 81%] Building C object src/CMakeFiles/direwolf.dir/igate.c.o [ 82%] Building C object src/CMakeFiles/direwolf.dir/il2p_codec.c.o [ 82%] Building C object src/CMakeFiles/direwolf.dir/il2p_scramble.c.o [ 83%] Building C object src/CMakeFiles/direwolf.dir/il2p_rec.c.o [ 83%] Building C object src/CMakeFiles/direwolf.dir/il2p_payload.c.o [ 84%] Building C object src/CMakeFiles/direwolf.dir/il2p_init.c.o [ 84%] Building C object src/CMakeFiles/direwolf.dir/il2p_header.c.o [ 85%] Building C object src/CMakeFiles/direwolf.dir/il2p_send.c.o [ 86%] Building C object src/CMakeFiles/direwolf.dir/kiss.c.o [ 86%] Building C object src/CMakeFiles/direwolf.dir/kiss_frame.c.o [ 86%] Building C object src/CMakeFiles/direwolf.dir/kissserial.c.o [ 87%] Building C object src/CMakeFiles/direwolf.dir/kissnet.c.o [ 87%] Building C object src/CMakeFiles/direwolf.dir/latlong.c.o [ 88%] Building C object src/CMakeFiles/direwolf.dir/log.c.o [ 88%] Building C object src/CMakeFiles/direwolf.dir/morse.c.o [ 89%] Building C object src/CMakeFiles/direwolf.dir/multi_modem.c.o [ 89%] Building C object src/CMakeFiles/direwolf.dir/waypoint.c.o [ 90%] Building C object src/CMakeFiles/direwolf.dir/nettnc.c.o [ 90%] Building C object src/CMakeFiles/direwolf.dir/serial_port.c.o [ 91%] Building C object src/CMakeFiles/direwolf.dir/pfilter.c.o /home/aprs/direwolf/src/multi_modem.c: In function ‘multi_modem_process_rec_frame’: /home/aprs/direwolf/src/multi_modem.c:340:73: warning: ‘snprintf’ output may be truncated before the last format character [-Wformat-truncation=] ? 340 | ? ? ? ? ? snprintf (monfmt, sizeof(monfmt), "AIS>%s%1d%1d,NOGATE:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_AIS, nmea); ? ? ? | ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ^ /home/aprs/direwolf/src/multi_modem.c:340:11: note: ‘snprintf’ output between 22 and 277 bytes into a destination of size 276 ? 340 | ? ? ? ? ? snprintf (monfmt, sizeof(monfmt), "AIS>%s%1d%1d,NOGATE:{%c%c%s", APP_TOCALL, MAJOR_VERSION, MINOR_VERSION, USER_DEF_USER_ID, USER_DEF_TYPE_AIS, nmea); ? ? ? | ? ? ? ? ? ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ [ 91%] Building C object src/CMakeFiles/direwolf.dir/ptt.c.o [ 91%] Building C object src/CMakeFiles/direwolf.dir/recv.c.o [ 92%] Building C object src/CMakeFiles/direwolf.dir/rrbb.c.o [ 92%] Building C object src/CMakeFiles/direwolf.dir/server.c.o [ 93%] Building C object src/CMakeFiles/direwolf.dir/symbols.c.o [ 93%] Building C object src/CMakeFiles/direwolf.dir/telemetry.c.o [ 94%] Building C object src/CMakeFiles/direwolf.dir/textcolor.c.o [ 94%] Building C object src/CMakeFiles/direwolf.dir/tq.c.o [ 95%] Building C object src/CMakeFiles/direwolf.dir/tt_text.c.o [ 95%] Building C object src/CMakeFiles/direwolf.dir/tt_user.c.o [ 96%] Building C object src/CMakeFiles/direwolf.dir/xid.c.o [ 96%] Building C object src/CMakeFiles/direwolf.dir/xmit.c.o [ 97%] Building C object src/CMakeFiles/direwolf.dir/dwgpsnmea.c.o [ 97%] Building C object src/CMakeFiles/direwolf.dir/dwgpsd.c.o [ 98%] Building C object src/CMakeFiles/direwolf.dir/mheard.c.o [ 98%] Building C object src/CMakeFiles/direwolf.dir/audio.c.o [ 99%] Building C object src/CMakeFiles/direwolf.dir/cm108.c.o [ 99%] Building C object src/CMakeFiles/direwolf.dir/dns_sd_common.c.o [100%] Building C object src/CMakeFiles/direwolf.dir/dns_sd_avahi.c.o [100%] Linking C executable direwolf [100%] Built target direwolf ? ? |
Re: Please help with udev rules - non-root GPIO for PTT
Yes Dominic you are right, I missed the "Linux gpio" column. Sorry
?
@Sergei can you please explain better? When you run direwolf as non-root user the issue is only the ptt? Can you please paste here:
- direwolf stdout with non-root
- direwolf stdout with root
*STDOUT is the text normally printed at screen by direwolf
?
Or simply do you want to run direwolf as root just after boot? |
Re: Please help with udev rules - non-root GPIO for PTT
Franco Avino <iz4tow@...> wrote:
Are u sure about pin number? 200 is pretty strangeIt might be hardware pin #16, see the already referenced website <> (I don't use GPIO often so I have no idea but can only assume.) Dr. Sergey Ievkov <doc.ievkov@...> wrote: On NanoPi I try to use GPIO №200 (from [1]AFAIK direwolf does not ask for a root password. How do you start direwolf? If I enter the root password, then PTT via GPIO works.This looks good. The direwolf config is unknown to me though (but as you say it works as root it is obviosly correct). You could try to start direwolf with `strace` and get a few hints, maybe. rn1m@nanopineo:/etc/udev/rules.d$ id rn1mOther than all that I remember me having some problems with a modem that finally made me adding the modem user to the groups gpio and kmem to get access to `/dev/mem` and `/dev/gpiomem`. Maybe worth a try. -dominic -- I'm here to kick ass and chew bubblegum and I'm all out of bubblegum. (found somewhere online) |
Re: Please help with udev rules - non-root GPIO for PTT
Each GPIO has properties and member of groups. Check the properties of
toggle quoted message
Show quoted text
the particular GPIO you are using and either set it so everyone has write access or that you are a member of whatever group it belongs to. Michael WA7SKG Dr. Sergey Ievkov wrote on 9/22/24 8:48 AM: Hello, OMs. |
Re: Working systemd config direwolf.service systemctl
开云体育Thank you for that. The nice thing about Linux is that there several ways to accomplish a goal.E.g., I use cron to both start and restart direwolf (if necessary) as user "repeater". Adjust arguments as needed: # start at boot ... @reboot sleep 10 && /usr/bin/screen -S direwolf -d -m /usr/local/bin/direwolf -c /home/repeater/direwolf.conf -L /home/repeater/direwolf.log -T "\%H:\%M:\%S \%d\%b\%Y" # check every minute to see if it's running, restart if needed ... * * * * * if [ x$(pidof direwolf) = "x" ]; then /usr/bin/screen -S direwolf -d -m /usr/local/bin/direwolf -c /home/repeater/direwolf.conf -L /home/repeater/direwolf.log -T "\%H:\%M:\%S \%d\%b\%Y"; fi This again allows one to ssh from any device, type "screen -r direwolf" to observe activity, and Ctl-a Ctl-d to detach the screen session. On 9/19/24 23:31, Adam K4SPB via
groups.io wrote:
|
Please help with udev rules - non-root GPIO for PTT
Hello, OMs. On NanoPi I try to use GPIO №200 (from ) for PTT in DireWolf. When running direwolf requires root rights. If I enter the root password, then PTT via GPIO works. How can I make it so that when the system starts automatically without root-password? Below is part of my config and the udev rule. What am I missing? direwolf.conf: ... PTT GPIO 200 ... /etc/udev/rules.d/50-gpiod.rules: KERNEL=="gpiochip*", SUBSYSTEM=="gpio", MODE="0666", GROUP="gpiod" rn1m@nanopineo:/etc/udev/rules.d$ id rn1m uid=1000(rn1m) gid=1000(rn1m) groups=1000(rn1m),0(root),5(tty),6(disk),20(dialout),27(sudo),29(audio),44(video),46(plugdev),60(games),100(users),999(systemd-journal),996(input),993(render),108(netdev),1001(gpiod) |
Re: Working systemd config direwolf.service systemctl
开云体育Thank you for this, Adam. I changed the systemd service on my pi to your configuration and it's nice to be able to use screen in an SSH session to monitor my digipeater's activity. I want to add that Control A followed by D (case-insensitive) detaches screen from monitoring Direwolf and returns you to the command prompt. 73. |
Working systemd config direwolf.service systemctl
Since I just spent an hour messing with systemd files to get a direwolf.service working I wanted to post an operational one that may help some people.
?
?$ cat /etc/systemd/system/direwolf.service
[Unit] Description=direwolf After=network.target [Service] Type=forking Restart=always RestartSec=90 StartLimitInterval=400 StartLimitBurst=3 User=<USERNAME> Group=<USERNAME> ExecStart=/usr/bin/screen -S dw -d -m /usr/local/bin/direwolf SyslogIdentifier=Direwolf [Install] WantedBy=multi-user.target ?
this assumes you built from source and have screen installed. check file destinations. after systemctl enable/start just run "screen -r dw"
? |
Re: Good volume level to start with?
Hi David,
?
The audio problem has been solved in another message. Thanks.
I have the levels around 50 now. Radio output level is set to '2' on the Retevis and around 50% on the slider in the soundcard properties.
These are the two images after I made all changes.
?
?
?
This is the content of the Direwilf config file after cleaning up the things I don't use or need:
?
############################################################# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? FIRST AUDIO DEVICE PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? (Channel 0 + 1 if in stereo)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# ADEVICE0 4
ARATE 48000 #############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? CHANNEL 0 PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# CHANNEL 0
MYCALL ON4VP-10 MODEM 1200 #MODEM 9600 PTT COM14 RTS AGWPORT 8000 KISSPORT 8001 #############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? FIXED POSIION BEACONING PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# PBEACON delay=1 every=10 overlay=D symbol="digi" lat=51^04.92N long=005^00.99E power=14 height=60 gain=6 comment="Digipeater & Igate Laakdal" via=WIDE1-1,WIDE2-1
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? APRS DIGIPEATER PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# DIGIPEAT 0 0 ^WIDE[3-7]-[1-7]$|^TEST$ ^WIDE[12]-[12]$
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? ? INTERNET GATEWAY? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# IGSERVER belgium.aprs2.net
IGLOGIN ON4VP-10 22778 IGTXVIA 0 WIDE1-1,WIDE2-1 IGTXLIMIT 6 10 #PBEACON sendto=IG delay=0:30 every=15:00 symbol="igate" overlay=I lat=51^04.92N long=005^00.99E power=14 height=60 gain=6 comment="Digipeater & Igate Laakdal"
#############################################################
#? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # # ? ? ? ? ? ? EXTRA COMMANDS PROPERTIES? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# #? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?# ############################################################# FX25TX 1
PERSIST 63 SLOTTIME 12 RETRY 5 FRACK 5 MAXFRAME 4 #Set MAXFRAME to 1 for HF Packet #MAXFRAME 1 PACLEN 128 #PACLEN 64 FOR HF DWAIT 0 TXDELAY 40 TXTAIL 10 ?
?
73 Phil ON4VP |
Re: Direwolf 1.7 "plughw:" doesn't match any of the input devices
Hi David,
?
After adjusting the ADEVICE command for use with Windows all devices where listed with the asterix for the Digirig for both rx and tx as you can see in the picture I've added.
?
?
I put this line in de config file:
?
ADEVICE0 4
?
Before using Windows 11 I had a raspberry pi 4B running Direwolf and took that config file not knowing some commands differ so the line said:
?
ADEVICE plughw: 4,4
?
?
73 Phil ON4VP
? |
Re: Frequently setting when starting
开云体育Hi Mike My APRS system startup bash script on the vehicle Debian laptop starts rigctld then direwolf and puts them in background, then sleeps a seconds before running some rigctl commands to save/set opfreq. As I am only using it to TX posn on 30m every 10 minutes I have the transceiver toggle between the APRS and voice frequencies. The second delay is about the rig setting VFO mode
(inadvertently) on dw start, when I am actually using a rig
memory. (which also covers mode and bandpass. I have also used it
to "auto" QSY to the 2m APRS frequency then back to HF for voice) Not within the direwolf conf file but works reliably. The base script steps then; In my case the above is within a timed process kill loop, the end
of which has; Hope this is helpful. Cheers Bob VK2YQA On 8/9/24 06:08, Michael Durkin wrote:
|