Keyboard Shortcuts
Likes
- Direwolf
- Messages
Search
Re: dw 1.3: "gps must be configured to use tbeacon"
David Ranch
开云体育Hello Shimniok (no call given), ? I assume you've configured a Tracker beacon (tbeacon) in your direwolf.conf and also configured the use of your GPS using either the GPSNEMA or GPSD keywords.
Looking at the older Direwolf 1.2 Raspberry-Pi-APRS-Tracker.pdf documentation, this GPS support is via gpsd method ONLY.? Unfortunately, it seems the TBEACON there assumes that things just work vs. modern version of Direwolf requires that you specify which GPS method you want to use (GPSNEMA - aka direct serial support or GPSD via the daemon) in the direwolf.conf file.? This is obviously a change in behavior from a configuration point of view but I don' think this is a big deal.
Please update your direwolf.conf to reflect how you want to use your GPS and let us know how it goes. --David KI6ZHD |
dw 1.3: "gps must be configured to use tbeacon"
I'm running into a TBEACON error on RPi / direwolf 1.3.?I searched github issues, googled, and searched yahoo groups -- to no avail. I figured I'd ask if anyone's seen this... On RPi 2, newly dist-upgraded Debian Jessie, using a USB GPS and gpsd set up as instructed,?direwolf 1.3 (rebuilt for gpsd as instructed)?issues this error upon startup: Config file, line 58: GPS must be configured to use TBEACON But on direwolf-1.2 -- using the very same config file -- no such error and, in fact, the older version happily beacons the gps-provided position as instructed by the TBEACON statement. Q: Is anyone else running direwolf 1.3 on a Raspberry Pi? Are you seeing the same error or not? I haven't dug into the source code to any great extent yet, but the code generating this error message doesn't exist in 1.2. I've eliminated gpsd as the problem -- direwolf 1.2 works fine along with?cgps -s?and gpsmon commands.
|
Re: Audio input device 0 error: Input/output error
David Ranch
开云体育Hello John, If things are working for an hour or so and then things start to break down, I would begin to suspect: ?? - RFI from your radio getting back into the soundcard and/or Rpi and confusing/corrupting it ????? - Try disconnecting the PTT line from the radio and make it a purely RX setup.? See if that makes your Direwolf setup run longer.? Say all day, etc. ????? - If this helps, make sure you have the audio lines using decoupling caps, the polarity of the lines are correct, wrap ferrite chokes on both sides of all audio cables.? More turns per side, the better (within reason) ?? - Do you have any other software running that is trying to use the soundcard:? mixers, pavucontrol, etc? ?? - You might have a poor/weak power supply for the Rpi.? You should ideally be running a 5.1volt (not 5.0 but 5.1V) 2A or better supply.? ???? ?? - You might have a marginal hardware be it the sound device or Rpi.? Could be say heat could be building up and making it fault (do you see other OS errors in /var/log/syslog?)? What kind of airflow does the Rpi have through it's case? Ps.? I see that you're using Audio device 0 here meaning that you disabled or swapped the built-in sound device to be "audio device 1".? I generally leave the built-in soundcard in place and set as the default audio device.? I then let the USB sound device for packet to be device 1.? This seems to avoid misconfiguration issues, etc. --David KI6ZHD On 03/08/2017 07:37 AM, John Spoonhower
jpspoonhower@... [direwolf_packet] wrote:
? |
Re: Audio input device 0 error: Input/output error
David, sorry for the delay. Just to be sure I checked the patch level of Jessie: ?apt-get update ??? apt-get upgrade ??? apt-get dist-upgrade ??? rpi-update ??? reboot. ?still see the same error after an hour or so of clean operation. The sound devices are directly connected ...no USB hub. 73, NX2I, John "Insanity: Doing the same thing over and over again and expecting different results" - Albert Einstein On Fri, Mar 3, 2017 at 1:05 AM, David Ranch dranch@... [direwolf_packet] <direwolf_packet@yahoogroups.
|
Re: Serial PTT not functioning after exit
开云体育On 05/03/2017 19:48, wb2osz@...
[direwolf_packet] wrote:
? Just pulled and rebuilt from dev branch. That works for me (user is a gpio group member). Thanks! |
Re: Serial PTT not functioning after exit
Nick B. wrote: > ? Despite being able to write to GPIO as my normal user, > ? Direwolf always wants a sudo password. Commit?58c2707f7d65b5b074b5e67e00c06a50fb968349, on the 'dev' branch, should fix this. Raspbian Jessie has a new 'gpio' group which was not in Wheezy. The logic for getting access to the GPIO pins has been rewritten to take advantage of that. ? |
Re: Audio input device 0 error: Input/output error
David Ranch
开云体育Hello John, ? Ok.. and it's fully patched: ??? apt-get update ??? apt-get upgrade ??? apt-get dist-upgrade ??? rpi-update ??? reboot
Ok.. and how is your Syba sound device connected to your Raspberry Pi?? Directly connected (recommended) or via an attached USB hub (not recommended) --David KI6ZHD |
Re: Audio input device 0 error: Input/output error
Dave, Please see responses below.? 73, John, NX2I On Mar 1, 2017 7:10 PM, "David Ranch dranch@... [direwolf_packet]" <direwolf_packet@...> wrote:
V3
Raspbian Jessie
Basically nothing.
Command line
|
Re: Audio input device 0 error: Input/output error
David Ranch
开云体育Hello John, I've been running Direwolf v1.4 on both a Raspberry Pi v2 and v3 with Syba USB devices with good luck for months.? A few questions if I may: ?? - Are you running on a Rpi v1, v2, or v3??? ?? - What Linux distro and version of distro are you running? ?? - What else is your Rpi running along side Direwolf? ?? - Are you running in command line only mode or running Xwindows? --David KI6ZHD On 03/01/2017 01:26 PM, John Spoonhower
jpspoonhower@... [direwolf_packet] wrote:
? |
Re: Audio input device 0 error: Input/output error
Thanks Tim. I have been testing this solution for the last couple days. Bottom line..... I still see the same error. Thanks and 73, John NX2I On Feb 27, 2017 9:08 AM, "overrocking@... [direwolf_packet]" <direwolf_packet@...> wrote:
|
Re: Audio input device 0 error: Input/output error
开云体育Hi, It may also be worth reducing checking the CPU load by running
top or htop in another terminal. Then reduce the sampling rate by
running with e.g. "direwolf -r 11025" . This made a difference for
me on slower single-core processors (A10, Pi Zero). It could also
be an issue with the soundcard itself. Nick. On 27/02/2017 14:08,
overrocking@... [direwolf_packet] wrote:
? |
L O N G Transmit delay
I'm seeing an odd problem, but it might be difficult to describe. I have a Raspberry Pi Zero running the latest software and DireWolf 1.4.E. ?But it has also done this with version 1.3. I am running this as a digipeater only without any internet. When the transmitter is turned on (PTT from GPIO Pin) normally the audio/data is sent almost instantly. Sometimes there is a long delay between PTT and sending any audio. ?This long delay is sometimes 5 seconds, and I've even heard close to 10 seconds of carrier only, no audio, then the data burst. You might think that it is waiting for the frequency to be clear, but it has already turned on the PTT and is transmitting, just no audio or data yet. I'm sure this isn't enough information yet to figure this out, so where do I start looking? Thanks, Arnold KQ6DI |
Re: Serial PTT not functioning after exit
Apostolos Kefalas
As far as it concerns permissions, everything seems to be fine.
Something else is grabbing your serial port as soon as direwolf exits. After stopping direwolf, try: $ lsof | grep PTT and $ lsof | grep ttyUSB0 On Δευ, 2017-02-27 at 22:54 +0000, overrocking@... [direwolf_packet] wrote:
|
Re: Serial PTT not functioning after exit
开云体育Hi David, thanks for your reply. I've been exploring the sudo issue for a few days now and here's what I've found. - Works perfectly on the default pi user on Rpi. This is because pi is set up for sudo access without password. Can be verified by examining the sudoers file with visudo. - Direwolf calls chmod go+rw on the gpio direction and value irrespective of whether the permissions are set correctly. Can be verified by examining the system logs -? # journalctl | grep gpio. All my user permissions are set up for gpio as you recommended below. I can create gpio devices, change direction and write to value as a normal user with gpio group membership. gpio devices are created by udev rules with root:gpio 0770 permissions. This is set in /etc/udev/rules.d/99-com.rules. Also worth noting that when a gpio device is created under /sys/class/gpio it's actually a symlink to /sys/device/platform/soc//3f200000.gpio/gpio.So Direwolf appears to do some checks for permissions in ptt.c. I've not quite figured that part out yet but for whatever reason it still decides it needs elevated permissions to change the gpio direction and value even if it is correct. I've sent a bug report/query to John regarding this. That aside, the decoding performance on HF is fantastic! I've had a Windows build running with 5@30 300 modems and it's decoding stuff I can barely hear on 10.1476MHz. 73 Nick G4IRX On 28/02/2017 05:05, David Ranch
dranch@... [direwolf_packet] wrote:
? |
Igate-RF path
Hello all,? I've been using DireWolf for quite some time now and I'm really happy with it. The decoding performance is amazing and the program is pretty stable. Uptime without restart at all before the SD-card broke was pretty close to a year. I've used DireWolf as a TNC and digipeater, while APRX had fun taking care of the i-gating. After a sudden death of a micro SD-card in my Raspberry Pi 3, I had to set it all up again and thought I should give DireWolf all the honors being i-gate and all. There are some things I want to RF-gate, messages (of course) and objects within a certain area + my own TCPIP-devices. The issue, as far as I can see, is that I can only select one RF path for all packets I gate from IS to RF (IGTXVIA). Is there a way I can set one path for each line of filters (or something similar)? I'd like messages to be sent as WIDE2-1, objects (originating from IS) to a specific digipeater and my own budlist calls to WIDE2-2. This are just examples, but it's there to show what I mean. If it's not possible; consider it a thing to put on the wishlist :) Thanks in advance. 73 de LA1HSA, Asbj?rn |
Re: Serial PTT not functioning after exit
David Ranch
开云体育As for GPIO access, the running user needs to be apart of the "gpio" group.? Quick example is: -- ??????? b. Add this new user into the following unix groups: ????????????? - "audio" (allow users to access the soundcard) ????????????? - "dialout" (allow serial port access - if needed) ????????????? - "gpio" (allow access to the GPIO pins) ????????????? - "sudo" (allow root access) ????????????? - "video" group (allow diagnostic permissions to the GPU) ???????????????? sudo usermod -G audio,dialout,gpio,sudo,video -- As far as killing direwolf, control-c should be fine as well as using "kill" but don't use the -HUP signal.? When you kill Direwolf and the serial port is no longer available, try running "ps aux | grep modem" and tell us if NetworkManager's "modem-manager" is running. --David KI6ZHD On 02/27/2017 09:37 AM, 'Nick B.'
nick@... [direwolf_packet] wrote:
? |
Re: Serial PTT not functioning after exit
Thanks for the reply,? here is the results: kd9dcs@bluetracker:/dev $ ls -al /dev/ttyUSB0? crw-rw---- 1 root dialout 188, 0 Feb 27 15:26 /dev/ttyUSB0 as an added bonus here is the udev rule I wrote to create the link: ATTRS{product}=="CP2104 USB to UART Bridge Controller", SYMLINK+="PTT", GROUP="dialout", MODE="0660" Tim ... |
Re: Serial PTT not functioning after exit
Apostolos Kefalas
OK lets see the permissions of ttyUSB0
$ ls -al /dev/ttyUSB0 On Δευ, 2017-02-27 at 17:37 +0000, 'Nick B.' nick@... [direwolf_packet] wrote: -- Κεφ?λα? Απ?στολο? - SV1LJJ τηλ: +30 6979 976 039 Echolink id: 309275 skype: apostolis.kef sip:apkefalas@... PGP: 0xA3C19DA0 |