开云体育

Date

Re: Other Stations don't decode

 

--
Very interesting this device has native 32000 support.? I don't think I've seen that before.
--

No idea, I didn't even know how to pull the data from the devices to figure that out, so thank you!

--
I'm not sure why you're seeing TWO of these though.? That's unusual if not wrong unless you have two of these unit connected
--

Yes, I do have two of this connected to this machine. One for my 857 and one for the 300DR

--
Your previous email said you were using "ADEVICE plughw:CARD=CODEC,DEV=0" aka.. you ARE using the "plughw" aspect of the ALSA sound system.? Anyway.. can provide some sound captures of direwolf running your SCU-17 at say 44100 and 48000 which DON'T decode on your other station?? This shouldn't be happening.

Btw.. what is your other station using for a soundcard, TNC, etc?
--

Yea, I realized I already had plughw set correctly after I sent that massage but I was in a hurry and didn't want to blow up people's emails with the same message.
My other stations that are listening are a Raspberry Pi using a CMedia sound fob running direwolf connected to a old Kenwood commercial radio that was repurposed just to act as a iGate for the local area. We had a very large gap here in N Idaho that we filled back in.
The other radio is a Yeasu FT3D hand held, neither of them would decode at 44100 or 48000

48000 sample rate gave me the following...
Dire Wolf DEVELOPMENT version 1.7 E (May? 1 2022)
Includes optional support for:? gpsd hamlib cm108-ptt

Reading config file direwolf.conf
Audio device for both receive and transmit: plughw:CARD=CODEC,DEV=0? (channel 0)
Channel 0: 1200 baud, AFSK 1200 & 2200 Hz, A+, 48000 sample rate.
Warning: Calculated pre filter size of 417 is too large.
Decrease the audio sample rate or increase the decimation factor.
You can use -D2 or -D3, on the command line, to down-sample the audio rate
before demodulating.? This greatly decreases the CPU requirements with little
impact on the decoding performance.? This is useful for a slow ARM processor,
such as with a Raspberry Pi model 1.
Ready to accept AGW client application 0 on port 8000 ...
Ready to accept KISS TCP client application 0 on port 8001 ...

Interestingly enough 48000 worked for some reason this time. I've tried it before and it didn't.
Got a 100% response

44100 on the other hand is attached as a wave file recorded from my iGate using FLDigi, it decoded once out of many tries.
The iGate is using a CMedia sound fob

--
Btw.. for your compiler errors on v1.7, this is an issue with gpsd and it's ever changing libraries.? If you can DISABLE the support for gpsd at compile time just for this test, I think that will get you going.
--

Ahh, good to know, but how do I disable support for gpsd?
As I'm just using direwolf as a TNC in this case I don't need it enabled but I'll add it to my notes in case I ever need to recompile and add it back in.

--
Ugh.. sorry.. I was forgetting that the unit here is 10s of milliseconds.?? What you should shoot for here is say 120 to 200ms.? In Direwolf syntax, that should be a "12" to a "20". Start at "20" and see if everything works in communicating to remote packet stations (not just home packet stations).? Then slowly work your way down in say 25ms increments.? Since the FTM300 is a digital radio, I would think it can support faster than average key up times of about 150ms but you'll just have to experiment here
--

Adjusted!
I'll give it some testing later on but 20 sounds nice, there's not a lot of lag between key up and actual packet sending and decoding was working well. 100% success. Only small issue I see is I can't seem to get my audio level below about 70 to 80. Any lower and the pot on the SCU-17 goes quiet and adjusting it via alsamixer does nothing.

--
See the Direwolf User Guide in the "MODEM" section.
--

I'm content with /1. This machine is perfectly capable and is capable of running Windows 10 in a virtual environment while running everything else. Sure it slows a small bit but nothing that bothers me
Between being a quad core 3.2Ghz w/HT and 32GB of RAM it should be fine
Think I should add E+ or since it's default I presume it's assumed?

--
I have it all written down:


--

Wow, that's a heck of a guide!
Looks like I've got some reading to do. I can't say I'll read it all right now but I am saving it to PDF for reference offline.
Thanks a ton!


Re: Headaches with direwolf + linpac

 


This was a little trip I took out the lonely US93 toward Kingman. Pretty decent coverage all the way, for 5 W...

Cheers and 73 - Jon N7UV


Re: Headaches with direwolf + linpac

 

Hey Neil -
Maybe I have badly estimated what 5W can deliver on packet radio.
I have run my APRS mobile tracker N7UV-9 for at least the last 12-15 years using an HT or other 5 W max VHF output radio. Fortunately, for me out west there are a reasonable (but not sufficient) number of high-level digis that provide pretty good service even for my wimpy 5 w radio. I first used a Yaesu Vertex VX-150 but there was something funky about the 4-circuit 3.5 mm plug that would occasionally put the radio in constant TX mode. Yeah, it'd time out, but then it seemed to need to pull and replace the 3.5 mm plug to get it to work again. For the past 10 years I've been using a Friendcom VHF "industrial" radio that I bought from ArgentData way back in the day. It's been bulletproof. The TNC right now is an ArgentData Tracker4, but soon will likely switch to a Microsat TNC.?

Never underestimate what 5 W can do!

Cheers and 73 - Jon N7UV
?


Re: LoRa APRS & DW

 

Hi Tom and the others on this thread:

I have several LoRA-enabled 900 MHz USB-connected radios that are flashed to be stand-alone KISS serial TNCs. Two are unsigned.io RNodes and the other two are TTGO LoRA V2.1 radios. They're all flashed with the unsigned.io rnodeconf tool. In linux-land, the RNodes present as /dev/ttyUSB0 and the TTGO units as /dev/ttyACM0. (I don't know why they behave differently, except maybe cause of the USB chips they use.) When connected to a Windows box the RNodes run without any USB serial driver, while the TTGO nodes require a serial port driver available on git-hub?).

I have a node set up at my house, on an antenna in the window, and it connects just fine via USB to APRSIS32 running on a Windows 7 box. It presents as a KISS serial modem. I have the LoRA radio set up for approximately 1100 baud to maximize the range. Like you and others have discussed, it'd be great to plug at least one of these into a RPi running direwolf, and get "cross-band" connectivity. Couldn't I set up direwolf to recognize a kiss connection from a serial port within the same RPi, and pass packets between the LoRA radio and the radio natively connected to direwolf?

I'm mildly interested in this since my tests at +17 dBm tx out (the max that the Semtech SX1276 does) has done over 10 km in typical suburban terrain. (Note that my house is about 200' higher than my part of town, so maybe that's cheating...) The other end is another of those radios, connected to a Windows PC in my truck via USB, with the win pc running APRSIS32 as well.?

Anyway, I would like to be able to use these LoRA radios as an adjunct, or backhaul, or just another band radio that gets packets from 2m and spits them out on 900, and vice-versa.

Cheers and 73 - Jon N7UV


Re: Headaches with direwolf + linpac

Neil H. Gray
 

I've been blown away by the attention everyone on this group has given me.? As a thank-you I will share my modest success after following everyone's advice.

As far as I can tell direwolf + linpac had been working from the very beginning.? I think most of you suspected as much.? But empirically testing my setup is difficult because I am located in an area with few packet stations(none closer than 15 miles).

I was able to confirm my working setup with a variety of local hardware and aprs.

Variety of working setups where there was decoding:

1. linpac+direwolf+radio over the air to radio+direwolf+linpac

2. linpac+direwolf+radio over the air to radio+aea-pk900+terminal interface

a. The transmit level of the pk900 is messed up.? It's too low, and the calibration procedure in the manual doesn't work.

b. The pk900 was able to easily decode packets from direwolf even if it couldn't respond.

3. linpac+direwolf+radio over the air to radio+mfj-1274+linpac

a. This appeared to work as well as direwolf for my tests.

b. Eventually this tnc stopped working like the other 30+ year old tnc that I could find.

c. Things broke down before I could estimate a bit error rate.

4. Using a slightly more powerful transmitter(10W) and using Xastir+direwolf to send some position data to aprs via wide-2, one aprs station(k8gps-10) did successfully decode my signal.? That station was the closest to me at 38 miles.

And then there is stuff that still doesn't work.? I cannot connect to some of the local digipeaters even though the operators of those stations have assured me that they accept connections. I'm going to have a chance to meet some of them in person soon. I'll get to the bottom of this.

Maybe I have badly estimated what 5W can deliver on packet radio.

Maybe everyone else's noise floor is way higher than it used to be.

Maybe the old tnc hardware needs a very strong signal to decode direwolf.

But I can play with packet radio just through my own nearby stations for now.? There are some new features(at least new compared to 1992 when I last used packet radio) that I can test.

And I think that I can convince some of my neighboring hams to get on packet radio due to direwolf's lowering the barrier/cost of entry.? A lot of people have raspberry pi's.

I appreciate the outpouring of help.? Now I'm going to go bug the guys at the linpac sourceforge site over a few issues.? Regardless of what help they might offer they're not going to be as cool of a bunch as you guys on the direwolf forum(unless of course they also frequent the direwolf forum).

Neil H. Gray (n8ssw)


Re: Other Stations don't decode

 

开云体育


Hello Patrick,

?5) USB Audio Class Digital alsa audio output interface `hw:3,0'
?- device name?????? = CODEC????????????????????????????????????????????????????? ?
?- interface name??? = USB Audio????????????????????????????????????????????????? ?
?- usb audio class?? = (n/a)????????????????????????????????????????????????????? ?
?- character device? = /dev/snd/pcmC3D0p????????????????????????????????????????? ?
?- samplerates (Hz)? = S8:32000,44100,48000?????????????????????????????????????? ?
?????????????????????? S16_LE:32000,44100,48000


Very interesting this device has native 32000 support.? I don't think I've seen that before.


?6) USB Audio Class Digital alsa audio output interface `hw:4,0'
?- device name?????? = CODEC_1??????????????????????????????????????????????????? ?
?- interface name??? = USB Audio????????????????????????????????????????????????? ?
?- usb audio class?? = (n/a)????????????????????????????????????????????????????? ?
?- character device? = /dev/snd/pcmC4D0p????????????????????????????????????????? ?
?- samplerates (Hz)? = S8:32000,44100,48000?????????????????????????????????????? ?
?????????????????????? S16_LE:32000,44100,48000?????????????????????????????????? ?
?- monitor file????? = /proc/asound/card4/pcm0p/sub0/hw_params??????????????????? ?
?- stream file?????? = /proc/asound/card4/stream0


I'm not sure why you're seeing TWO of these though.? That's unusual if not wrong unless you have two of these unit connected


--
What makes you think that 38000 is better than say 48000 or 44100?
--

Oh! Believe me I don't! LOL It's what I found that worked. I guess if other stations can decode it then it's better than the alternative if you get my drift! LOL
But now with that first command I see that 32000, 44100 and 48000 are native but my other stations can't decode the transmitted signal at those rates for some reason.
I could try using plughw:


Your previous email said you were using "ADEVICE plughw:CARD=CODEC,DEV=0" aka.. you ARE using the "plughw" aspect of the ALSA sound system.? Anyway.. can provide some sound captures of direwolf running your SCU-17 at say 44100 and 48000 which DON'T decode on your other station?? This shouldn't be happening.?

Btw.. what is your other station using for a soundcard, TNC, etc?


--
I think your observation here needs some more troubleshooting in the Direwolf code.? The way I interpret "-DTR" is that DTR should *never* be asserted on that serial port.? Curious, if you shutdown Direwolf and any other programs that might use the SCU-17.. now UNPLUG it's USB cable, wait 5 seconds, plug it's USB cable back in, and then run the "dmesg" command in a terminal window, what do the last 10 lines or so show about the USB device being detected by the kernel?
--

I agree, -DTR shouldn't assert anything on DTR but it does by my observation. It inverts the commands when not signaled and asserts them when signaled.
Here are those dmesg lines...


I'll have to look to see what might be going on here on v1.7 and v1.6.??

Btw.. for your compiler errors on v1.7, this is an issue with gpsd and it's ever changing libraries.? If you can DISABLE the support for gpsd at compile time just for this test, I think that will get you going.



152012.974697] usb 3-2.2.1: new high-speed USB device number 16 using xhci_hcd
[152013.075624] usb 3-2.2.1: New USB device found, idVendor=0424, idProduct=2512, bcdDevice= b.b3
[152013.075633] usb 3-2.2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[152013.133731] hub 3-2.2.1:1.0: USB hub found
[152013.133996] hub 3-2.2.1:1.0: 2 ports detected
[152013.490715] usb 3-2.2.1.1: new full-speed USB device number 17 using xhci_hcd
[152013.621512] usb 3-2.2.1.1: New USB device found, idVendor=10c4, idProduct=ea70, bcdDevice= 1.00
[152013.621522] usb 3-2.2.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[152013.621527] usb 3-2.2.1.1: Product: CP2105 Dual USB to UART Bridge Controller
[152013.621531] usb 3-2.2.1.1: Manufacturer: Silicon Labs
[152013.621534] usb 3-2.2.1.1: SerialNumber: 00F8CEC3
[152013.626585] cp210x 3-2.2.1.1:1.0: cp210x converter detected
[152013.635739] usb 3-2.2.1.1: cp210x converter now attached to ttyUSB0
[152013.638582] cp210x 3-2.2.1.1:1.1: cp210x converter detected
[152013.647739] usb 3-2.2.1.1: cp210x converter now attached to ttyUSB1
[152013.726708] usb 3-2.2.1.2: new full-speed USB device number 18 using xhci_hcd
[152013.852525] usb 3-2.2.1.2: New USB device found, idVendor=08bb, idProduct=29b3, bcdDevice= 1.00
[152013.852536] usb 3-2.2.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[152013.852542] usb 3-2.2.1.2: Product: USB Audio CODEC
[152013.852546] usb 3-2.2.1.2: Manufacturer: Burr-Brown from TI???????????? ?
[152015.359738] input: Burr-Brown from TI?????????????? USB Audio CODEC? as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-2/3-2.2/3-2.2.1/3-2.2.1.2/3-2.2.1.2:1.3/0003:08BB:29B3.0008/input/input20
[152015.418918] hid-generic 0003:08BB:29B3.0008: input,hidraw5: USB HID v1.00 Device [Burr-Brown from TI?????????????? USB Audio CODEC ] on usb-0000:05:00.4-2.2.1.2/input3


Ok.. that looks all reasonable.


--
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0? <--------------- not correct: this line is specifying the same device TWICE
--

My understanding was the first was for input the other for output. Some other applications like JS8Call and WSJTX don't like pointing to the exact some device at times, but it worked.


You're correct.. I forgot about that syntax.


--
TXDELAY 50? <------------ Thast delay value is probably way too high for an FTM300.? I would expect this value to be between 120 and 200
--

I tried 200 and WOW that was a long TX delay so I turned it down. 50 was nice and short.


Ugh.. sorry.. I was forgetting that the unit here is 10s of milliseconds.?? What you should shoot for here is say 120 to 200ms.? In Direwolf syntax, that should be a "12" to a "20".?? Start at "20" and see if everything works in communicating to remote packet stations (not just home packet stations).? Then slowly work your way down in say 25ms increments.? Since the FTM300 is a digital radio, I would think it can support faster than average key up times of about 150ms but you'll just have to experiment here.



The machine is a quad core with hyper threading, well hyper transport for AMD with a boost up to 3.2Ghz. It's not the fastest machine out there but it's by far faster than any Pi could ever think of being
I'd rather ensure a good decode then try to save a little bit on the CPU but if I can get great decode and performance I'm all ears.
I'm not sure what you mean by append a "/3


See the Direwolf User Guide in the "MODEM" section.



If you have any suggestions on changing my config I'll give it a go and test, I'm all ears and very happy to make improvements and proper adjustments.
I won't be able to do any testing until this evening.


I have it all written down:?

??

--David
KI6ZHD


Re: Other Stations don't decode

 

--
That doesn't sound right at all.? Try this command to display what sampling rates this SCU-17 device offers:

?? bash <(wget -q -O - ) -l usb -s
--

) -l usb -s
?5) USB Audio Class Digital alsa audio output interface `hw:3,0'
?- device name?????? = CODEC????????????????????????????????????????????????????? ?
?- interface name??? = USB Audio????????????????????????????????????????????????? ?
?- usb audio class?? = (n/a)????????????????????????????????????????????????????? ?
?- character device? = /dev/snd/pcmC3D0p????????????????????????????????????????? ?
?- samplerates (Hz)? = S8:32000,44100,48000?????????????????????????????????????? ?
?????????????????????? S16_LE:32000,44100,48000?????????????????????????????????? ?
?- monitor file????? = /proc/asound/card3/pcm0p/sub0/hw_params??????????????????? ?
?- stream file?????? = /proc/asound/card3/stream0???????????????????????????????? ?

?6) USB Audio Class Digital alsa audio output interface `hw:4,0'
?- device name?????? = CODEC_1??????????????????????????????????????????????????? ?
?- interface name??? = USB Audio????????????????????????????????????????????????? ?
?- usb audio class?? = (n/a)????????????????????????????????????????????????????? ?
?- character device? = /dev/snd/pcmC4D0p????????????????????????????????????????? ?
?- samplerates (Hz)? = S8:32000,44100,48000?????????????????????????????????????? ?
?????????????????????? S16_LE:32000,44100,48000?????????????????????????????????? ?
?- monitor file????? = /proc/asound/card4/pcm0p/sub0/hw_params??????????????????? ?
?- stream file?????? = /proc/asound/card4/stream0

Interesting!

--
You will want to use the NATIVE sampling rate offered by the card because if you don't and you use the "plughw" prefix in your direwolf.conf's "ADEVICE" line, this will make ALSA take the native sampling rate from the hardware and then interpolate it into the rate you specify.? That's MORE work for the computer to do and will yield poorer audio.
--

Definitely not something I want

--
What makes you think that 38000 is better than say 48000 or 44100?
--

Oh! Believe me I don't! LOL It's what I found that worked. I guess if other stations can decode it then it's better than the alternative if you get my drift! LOL
But now with that first command I see that 32000, 44100 and 48000 are native but my other stations can't decode the transmitted signal at those rates for some reason.
I could try using plughw:

--
I think your observation here needs some more troubleshooting in the Direwolf code.? The way I interpret "-DTR" is that DTR should *never* be asserted on that serial port.? Curious, if you shutdown Direwolf and any other programs that might use the SCU-17.. now UNPLUG it's USB cable, wait 5 seconds, plug it's USB cable back in, and then run the "dmesg" command in a terminal window, what do the last 10 lines or so show about the USB device being detected by the kernel?
--

I agree, -DTR shouldn't assert anything on DTR but it does by my observation. It inverts the commands when not signaled and asserts them when signaled.
Here are those dmesg lines...

152012.974697] usb 3-2.2.1: new high-speed USB device number 16 using xhci_hcd
[152013.075624] usb 3-2.2.1: New USB device found, idVendor=0424, idProduct=2512, bcdDevice= b.b3
[152013.075633] usb 3-2.2.1: New USB device strings: Mfr=0, Product=0, SerialNumber=0
[152013.133731] hub 3-2.2.1:1.0: USB hub found
[152013.133996] hub 3-2.2.1:1.0: 2 ports detected
[152013.490715] usb 3-2.2.1.1: new full-speed USB device number 17 using xhci_hcd
[152013.621512] usb 3-2.2.1.1: New USB device found, idVendor=10c4, idProduct=ea70, bcdDevice= 1.00
[152013.621522] usb 3-2.2.1.1: New USB device strings: Mfr=1, Product=2, SerialNumber=5
[152013.621527] usb 3-2.2.1.1: Product: CP2105 Dual USB to UART Bridge Controller
[152013.621531] usb 3-2.2.1.1: Manufacturer: Silicon Labs
[152013.621534] usb 3-2.2.1.1: SerialNumber: 00F8CEC3
[152013.626585] cp210x 3-2.2.1.1:1.0: cp210x converter detected
[152013.635739] usb 3-2.2.1.1: cp210x converter now attached to ttyUSB0
[152013.638582] cp210x 3-2.2.1.1:1.1: cp210x converter detected
[152013.647739] usb 3-2.2.1.1: cp210x converter now attached to ttyUSB1
[152013.726708] usb 3-2.2.1.2: new full-speed USB device number 18 using xhci_hcd
[152013.852525] usb 3-2.2.1.2: New USB device found, idVendor=08bb, idProduct=29b3, bcdDevice= 1.00
[152013.852536] usb 3-2.2.1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[152013.852542] usb 3-2.2.1.2: Product: USB Audio CODEC
[152013.852546] usb 3-2.2.1.2: Manufacturer: Burr-Brown from TI???????????? ?
[152015.359738] input: Burr-Brown from TI?????????????? USB Audio CODEC? as /devices/pci0000:00/0000:00:08.1/0000:05:00.4/usb3/3-2/3-2.2/3-2.2.1/3-2.2.1.2/3-2.2.1.2:1.3/0003:08BB:29B3.0008/input/input20
[152015.418918] hid-generic 0003:08BB:29B3.0008: input,hidraw5: USB HID v1.00 Device [Burr-Brown from TI?????????????? USB Audio CODEC ] on usb-0000:05:00.4-2.2.1.2/input3

--
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0? <--------------- not correct: this line is specifying the same device TWICE
--

My understanding was the first was for input the other for output. Some other applications like JS8Call and WSJTX don't like pointing to the exact some device at times, but it worked.

--
DWAIT 0???? <------------ This is the default but also shouldn't be needed in almost any sitation; TXDELAY ultimate can mask any use of this variable
--
OK, I'll take that out

--
TXDELAY 50? <------------ Thast delay value is probably way too high for an FTM300.? I would expect this value to be between 120 and 200
--

I tried 200 and WOW that was a long TX delay so I turned it down. 50 was nice and short.

--
MODEM 1200? <---------- Depending on your computer's higher performance hardware, you can append a "/3" to do sub-sampling and lower the CPU load
--

The machine is a quad core with hyper threading, well hyper transport for AMD with a boost up to 3.2Ghz. It's not the fastest machine out there but it's by far faster than any Pi could ever think of being
I'd rather ensure a good decode then try to save a little bit on the CPU but if I can get great decode and performance I'm all ears.
I'm not sure what you mean by append a "/3

--
FIX_BITS 1? <-----------? Do note that FIXBITS is probably OK for connected packet but might create unacceptably weird decodes for APRS.? If you are going to use this for connected mode packet, you actually will want to use the line "FIX_BITS 1 AX25" where the "AX25" tells Direwolf to disable the APRS-specific heuristics.? Packets will decode a little better and Direwolf will complain less about the packets not conforming to APRS specific formatting.
--

Ahh!! Good information! Thank you tons! I will apply it immediately!

If you have any suggestions on changing my config I'll give it a go and test, I'm all ears and very happy to make improvements and proper adjustments.
I won't be able to do any testing until this evening.


Re: Other Stations don't decode

 

开云体育


Hello Patrick,

OK, I think I've got it figured out. This has been my obsession for a bit to long now and I'm glad to have it figured out.

Good to hear.


The SCU-17 can not and does not handle a 44100 sampling rate nor a 48000 sampling rate.? The sampling rates I have found that works are between 22,000 (might be lower) and 38,000 Hz at most. I tried 40,000, 44,100, 48,000 and they didn't work.

That doesn't sound right at all.? Try this command to display what sampling rates this SCU-17 device offers:

?? bash <(wget -q -O - ) -l usb -s


You will want to use the NATIVE sampling rate offered by the card because if you don't and you use the "plughw" prefix in your direwolf.conf's "ADEVICE" line, this will make ALSA take the native sampling rate from the hardware and then interpolate it into the rate you specify.? That's MORE work for the computer to do and will yield poorer audio.


I have my sample rate set as follows....
ARATE 38000

What makes you think that 38000 is better than say 48000 or 44100?




The SCU-17 with Direwolf will trigger FSK and PTT at the same time depending on how you have it set.
The default setting for the SCU are...
DTR - FSK
RTS - PTT
To get the SCU to trigger PTT without FSK on you have to set PTT to -DTR RTS. This will turn FSK on when receiving but off when transmitting. This appears to not affect receiving in any way that I've noticed.
Example:.....
PTT /dev/ttyUSB1 -DTR RTS
FSK and PTT on during transmit....
PTT /dev/ttyUSB1 DTR RTS

I think your observation here needs some more troubleshooting in the Direwolf code.? The way I interpret "-DTR" is that DTR should *never* be asserted on that serial port.? Curious, if you shutdown Direwolf and any other programs that might use the SCU-17.. now UNPLUG it's USB cable, wait 5 seconds, plug it's USB cable back in, and then run the "dmesg" command in a terminal window, what do the last 10 lines or so show about the USB device being detected by the kernel??


Hopefully someone else using a SCU-17 finds this thread useful.

Here is my config file for reference and for software TNC use only
ACHANNELS 1
ARATE 38000
#ARATE 44100
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0? <--------------- not correct: this line is specifying the same device TWICE
ADEVICE plughw:CARD=CODEC,DEV=0
DWAIT 0???? <------------ This is the default but also shouldn't be needed in almost any sitation; TXDELAY ultimate can mask any use of this variable
#SLOTTIME 10
PERSIST 63
TXDELAY 50? <------------ Thast delay value is probably way too high for an FTM300.? I would expect this value to be between 120 and 200
#TXTAIL 10
FULLDUP OFF

CHANNEL 0

MYCALL replace-me-with-your-call

MODEM 1200? <---------- Depending on your computer's higher performance hardware, you can append a "/3" to do sub-sampling and lower the CPU load
#MODEM 2400
#MODEM 4800
#MODEM 9600


# PTT Notes for the SCU-17
# DTR Triggers FSK, RTS Triggers PTT, -DTR will leave FSK on until TX is triggered

#PTT COM1 RTS
#PTT COM1 RTS -DTR
#PTT /dev/ttyUSB1 RTS
PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_00F8CEC3-if01-port0 DTR RTS

AGWPORT 8000
KISSPORT 8001

FIX_BITS 1? <-----------? Do note that FIXBITS is probably OK for connected packet but might create unacceptably weird decodes for APRS.? If you are going to use this for connected mode packet, you actually will want to use the line "FIX_BITS 1 AX25" where the "AX25" tells Direwolf to disable the APRS-specific heuristics.? Packets will decode a little better and Direwolf will complain less about the packets not conforming to APRS specific formatting.

--David
KI6ZHD


Re: Other Stations don't decode

 

Nice write-up!
I am sure anyone working with the SCU-17 that comes across this will appreciate your sharing.

A couple of quick comments on the configuration.
1. Interestingly you specify "PERSIST 63" (at its DEFAULT setting), but comment out "#SLOTTIME 10" (also at its DEFAULT setting).
??? These 2 KISS settings setting work together to determine whether to TX when the channel is deemed open.
??? As a suggestion, since the 2 work together, I recommend either comment both out, or specify both.
??? Since they are at their default, it will make no difference.
2. You chose ARATE 38000.? This is a nonstandard value and may not scale well.
??? Most often users go with multiples (or whole divisions) of the 44,100 and 48,000.? So 22,050 or 24,000.
??? Again, not any sort of fix, just a little more standard.
3. The SCU-17 has 2 "key ports": PTT and FSK (interestingly on the same jack).
??? So it kind of makes sense that it would key both when requesting TX.
??? It also makes sense that you would have to disable the unused pin of the serial port.
??? Thank Goodness Dire Wolf takes multiple parameters so you can specify -DTR RTS
?????? DTR LOW and RTS HIGH on TX
??? Many interface applications like ire Wolf only allow 1 parameter which would probably force user of the
??? SCU-17 (and similar devices) to 'live with' the FSK activating.

Robert Giuliano
KB8RCO



On Monday, May 2, 2022, 11:48:46 PM EDT, Patrick <kd7wpq@...> wrote:


OK, I think I've got it figured out. This has been my obsession for a bit to long now and I'm glad to have it figured out.

I do apologize if I've offended anyone on my other threads. My frustration sometimes gets the best of me.

Anyhow, if anyone runs across this thread regarding the SCU-17 here is what I have found.

The SCU-17 can not and does not handle a 44100 sampling rate nor a 48000 sampling rate.

The sampling rates I have found that works are between 22,000 (might be lower) and 38,000 Hz at most. I tried 40,000, 44,100, 48,000 and they didn't work.

I have my sample rate set as follows....
ARATE 38000

The SCU-17 with Direwolf will trigger FSK and PTT at the same time depending on how you have it set.
The default setting for the SCU are...
DTR - FSK
RTS - PTT
To get the SCU to trigger PTT without FSK on you have to set PTT to -DTR RTS. This will turn FSK on when receiving but off when transmitting. This appears to not affect receiving in any way that I've noticed.
Example:.....
PTT /dev/ttyUSB1 -DTR RTS
FSK and PTT on during transmit....
PTT /dev/ttyUSB1 DTR RTS

Setting to RTS only will also work but will leave FSK stuck on. This does not seem to affect the transmitted signal and DTR RTS doesn't seem to affect receive either as far as I can see.

Unfortunately when I was observing my radio's behavior I was only watching the lights. Just because FSK comes on does NOT mean the radio is keyed. To my detriment and many, MANY hours later I have figured this out so hopefully if someone else runs across these problems they can avoid wasting as much time as I have and can hopefully get on the air and enjoy what they have quickly!

I do also want to thank the makers of Direwolf. They have put a LOT of time and effort into making it work. Though the serial signaling does need to be tuned to not grab a signal that has not been specified it does work and it works quite well.
Direwolf has a lot of features that are easily configured via the config file and it works quit well with very little overhead.
A very impressive application indeed!

Hopefully someone else using a SCU-17 finds this thread useful.

Here is my config file for reference and for software TNC use only
ACHANNELS 1
ARATE 38000
#ARATE 44100
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0
ADEVICE plughw:CARD=CODEC,DEV=0
DWAIT 0
#SLOTTIME 10
PERSIST 63
TXDELAY 50
#TXTAIL 10
FULLDUP OFF

CHANNEL 0

MYCALL replace-me-with-your-call

MODEM 1200
#MODEM 2400
#MODEM 4800
#MODEM 9600


# PTT Notes for the SCU-17
# DTR Triggers FSK, RTS Triggers PTT, -DTR will leave FSK on until TX is triggered

#PTT COM1 RTS
#PTT COM1 RTS -DTR
#PTT /dev/ttyUSB1 RTS
PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_00F8CEC3-if01-port0 DTR RTS

AGWPORT 8000
KISSPORT 8001

FIX_BITS 1


Re: Direwolf as a TNC Help

 

Got it all working.

I updated this thread on this group...

/g/direwolf/topic/other_stations_don_t_decode/90829585?p=,,,20,0,0,0::recentpostdate/sticky,,,20,2,0,90829585,previd%3D1651549724754083416,nextid%3D1649302366690394507&previd=1651549724754083416&nextid=1649302366690394507

The FTM-300DR does not support CAT control but the SCU-17 does take DTR and RTS commands and does trigger PTT on the 300DR.

Thank you everyone for the help!

I do apologize of I have offended anyone, my frustration has a tenancy to get the best of me at times.

While I still believe the someone on the direwolf team should polish up the RTS DTR commands to not grab one or the other if they have not been specified in the config file I do believe that direwolf is a VERY robust application for what it is being used for. It has very little overhead while having a lot of options and I am very thankful for the time that everyone has put into the application and don't want anyone to think I don't appreciate their hard work of which they likely don't get paid for.

Case Closed!


Re: Other Stations don't decode

 

OK, I think I've got it figured out. This has been my obsession for a bit to long now and I'm glad to have it figured out.

I do apologize if I've offended anyone on my other threads. My frustration sometimes gets the best of me.

Anyhow, if anyone runs across this thread regarding the SCU-17 here is what I have found.

The SCU-17 can not and does not handle a 44100 sampling rate nor a 48000 sampling rate.

The sampling rates I have found that works are between 22,000 (might be lower) and 38,000 Hz at most. I tried 40,000, 44,100, 48,000 and they didn't work.

I have my sample rate set as follows....
ARATE 38000

The SCU-17 with Direwolf will trigger FSK and PTT at the same time depending on how you have it set.
The default setting for the SCU are...
DTR - FSK
RTS - PTT
To get the SCU to trigger PTT without FSK on you have to set PTT to -DTR RTS. This will turn FSK on when receiving but off when transmitting. This appears to not affect receiving in any way that I've noticed.
Example:.....
PTT /dev/ttyUSB1 -DTR RTS
FSK and PTT on during transmit....
PTT /dev/ttyUSB1 DTR RTS

Setting to RTS only will also work but will leave FSK stuck on. This does not seem to affect the transmitted signal and DTR RTS doesn't seem to affect receive either as far as I can see.

Unfortunately when I was observing my radio's behavior I was only watching the lights. Just because FSK comes on does NOT mean the radio is keyed. To my detriment and many, MANY hours later I have figured this out so hopefully if someone else runs across these problems they can avoid wasting as much time as I have and can hopefully get on the air and enjoy what they have quickly!

I do also want to thank the makers of Direwolf. They have put a LOT of time and effort into making it work. Though the serial signaling does need to be tuned to not grab a signal that has not been specified it does work and it works quite well.
Direwolf has a lot of features that are easily configured via the config file and it works quit well with very little overhead.
A very impressive application indeed!

Hopefully someone else using a SCU-17 finds this thread useful.

Here is my config file for reference and for software TNC use only
ACHANNELS 1
ARATE 38000
#ARATE 44100
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0
ADEVICE plughw:CARD=CODEC,DEV=0
DWAIT 0
#SLOTTIME 10
PERSIST 63
TXDELAY 50
#TXTAIL 10
FULLDUP OFF

CHANNEL 0

MYCALL replace-me-with-your-call

MODEM 1200
#MODEM 2400
#MODEM 4800
#MODEM 9600


# PTT Notes for the SCU-17
# DTR Triggers FSK, RTS Triggers PTT, -DTR will leave FSK on until TX is triggered

#PTT COM1 RTS
#PTT COM1 RTS -DTR
#PTT /dev/ttyUSB1 RTS
PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_00F8CEC3-if01-port0 DTR RTS

AGWPORT 8000
KISSPORT 8001

FIX_BITS 1


Re: Add Bluetooth…

 

开云体育


Hello Armando,

Please don't hijack a thread about Bluetooth for your SDR question.? Please create a new thread.? In that new thread. you can mention any questions you might have after reading:

??

--David



On 05/01/2022 03:23 PM, Armando Rodriguez wrote:

Good afternoon. I am currently running a Digipeater using a uv5r, raspberry pi 4 B, an audio card and the corresponding connections. 

Now i would like to use a SDR to feed the digipeater. I am a new ham and would like to get some help in this matter.  I forgot, the pi is running build a pi. 

Any ideas. 

Best Regards. 
Armando Rodriguez

On May 1, 2022, at 5:19 PM, Patrick <kd7wpq@...> wrote:

?Think this will help....?















Re: Add Bluetooth…

 

Good afternoon. I am currently running a Digipeater using a uv5r, raspberry pi 4 B, an audio card and the corresponding connections.

Now i would like to use a SDR to feed the digipeater. I am a new ham and would like to get some help in this matter. I forgot, the pi is running build a pi.

Any ideas.

Best Regards.
Armando Rodriguez

On May 1, 2022, at 5:19 PM, Patrick <kd7wpq@...> wrote:

?Think this will help....?


Re: Direwolf as a TNC Help

 

开云体育

--
Are you saying that Direwolf keys up SCU-17 and it's "FSK" indicator lights up but Direwolf stays playing audio (AFSK modem tones), the SCU-17's turns off the FSK light and then turns on the PTT light?? If so, that does NOT sound right at all.? If you would, please try Direwolf v1.6.?? I would expect Direwolf v1.7* as very stable now but it's NOT released code and it's still undergoing change.
--

Yes... I think, if I understand the question correctly.

Let me elaborate...

The SCU hase 3 LED indicator lights, FSK, PTT and Power...

Direwolf not running, FSK off, PTT off, Power on

Direwolf running, FSK on, PTT off, Power on

YAAC sends message, Direwolf triggers PTT then, FSK off, PTT on, Power on

Direwolf drops PTT, FSK on, PTT off, Power on

Exit Direwolf application, FSK off, PTT off, Power on

--
The vew fellow HAMs who have had issue have been either using unusual sound devices, using unusual isolation devices, etc.? Direwolf can be made to work with any of them but you have to determine what the right signal is for each of them.? In your circumstance, the SCU-17 documentation is non-existent which makes it extra hard.
--

The only documentation I know of for the SCU-17 is this...

But yea, they don't break things down all the way.

--
Of course the choice is yours but I can nearly guarantee you that Direwolf will out perform *any* hardware TNC you buy.? TNCs like a KPC3+ or PK96 can come close but most of the PIC/Arduino based units will have significantly poor decode rates.
--

Oh, I agree for sure! The CPU in the machine is by far more powerful than any TNC and would for sure have better error correcting!
I'm just getting frustrated, I've spent many hours working on this one issue and when I can open another app like FLDigi or WSJTX and make it work perfecting the first time it only adds to the frustration.

--
Well.. I hear the frustration here but Direwolf has recommend hardware mentioned in the User Guide but you're not using that.? You also were doing a lot of testing and you might have actually missed the test that either "-DTR RTS" or "-DTR RTS" was actually working for you (ignore whatever the LED lights are as there is no FSK signal here in AFSK1200 packet).? FSK from an SCU-17 perspective is used for things like "real" RTTY or CW on HF radios.
--

You're right, I very likely missed that with the FSK light on it wasn't keying. I am by no means perfect or infallible so therefor I do make mistake and I'll own.
For instance I didn't know there was recommended hardware. I perused through the guide but I can't say I read it all. I read some parts more than others.
As for FSK, no, I really had NO idea what is was used for. I can say in the past week or so I've learned some things I didn't know before

As for rolling back to 1.6 it seems I've run into a issue compiling it. I get the following.....

dwgpsd.c:64:2: error: #error libgps API version might be incompatible.
?? 64 | #error libgps API version might be incompatible.
????? |? ^~~~~
make[2]: *** [src/CMakeFiles/decode_aprs.dir/build.make:141: src/CMakeFiles/decode_aprs.dir/dwgpsd.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
/home/patrick/direwolf/src/dwgpsd.c:64:2: error: #error libgps API version might be incompatible.
?? 64 | #error libgps API version might be incompatible.
????? |? ^~~~~
[ 16%] Building C object src/CMakeFiles/direwolf.dir/cm108.c.o
make[2]: *** [src/CMakeFiles/direwolf.dir/build.make:843: src/CMakeFiles/direwolf.dir/dwgpsd.c.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 17%] Built target text2tt
[ 19%] Built target utm2ll
[ 27%] Built target gen_packets
make[1]: *** [CMakeFiles/Makefile2:633: src/CMakeFiles/decode_aprs.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 29%] Built target ttcalc
make[1]: *** [CMakeFiles/Makefile2:579: src/CMakeFiles/direwolf.dir/all] Error 2
make: *** [Makefile:152: all] Error 2


If I git checkout dev then it compiles just fine and starts out with...

-- Dire Wolf Version: 1.7.0-c9ffbd7
-- Build type set to: Release
CMake system: Linux
-- Target architecture: x86_64
-- Use SSE2 SIMD instructions
-- Use SSSE3 SIMD instructions
-- Use SSE 4.1 SIMD instructions
-- Use SSE 4.2 SIMD instructions
-- Use AVX SIMD instructions
-- Use AVX2 SIMD instructions
-- Looking for strlcpy
-- Looking for strlcpy - not found
-- Looking for strlcat
-- Looking for strlcat - not found
-- Could NOT find AVAHI (missing: AVAHI_COMMON_FOUND AVAHI_CLIENT_FOUND)
-- Configuring done
-- Generating done
-- Build files have been written
(Continues Compiling Successfully)

I know this message was very long, sorry about that, just trying to be thorough.



Other Stations don't decode

 

One problem after another here.
OK, so Direwolf is finally working for the most part.

My SCU-17 has the FSK light stuck on likely because of the RTS signal. When direwolf is run the FSK light comes on, when PTT is keyed it switches from FSK to PTT until TX is over then it switches back.
I have no idea if it's related to my issue, but there it is.

The issue now is when I have that station transmit to any of my other stations, FT3D or my iGate, neither of them understand the signal or rather rarely.
I've seen 1 success receive out of MANY.

Just wondering if anyone has any ideas as to where to look?

I can hear the problem station transmit and hear the modem noise but the other stations don't understand.
I've adjust the Tx volume, no change (turned it down until barely audible then back up a touch)
I've adjusted the TXDelay up to 1000 in 200 increments, was successful once at 600
The radio in question decodes just fine as far as I can tell as I haven't seen a failed decode yet.

Config is...

ACHANNELS 1
ARATE 44100
#ADEVICE plughw:CARD=CODEC,DEV=0 hw:CARD=CODEC,DEV=0
ADEVICE plughw:CARD=CODEC,DEV=0
DWAIT 0
SLOTTIME 10
PERSIST 63
TXDELAY 300
TXTAIL 10
FULLDUP OFF

CHANNEL 0

MYCALL KD7WPQ

MODEM 1200

#PTT COM1 RTS
#PTT COM1 RTS -DTR
#PTT /dev/ttyUSB1 RTS
PTT /dev/serial/by-id/usb-Silicon_Labs_CP2105_Dual_USB_to_UART_Bridge_Controller_00F8CEC3-if01-port0 -DTR RTS

AGWPORT 8000
KISSPORT 8001


Re: Direwolf as a TNC Help

 

开云体育


Hello Patrick,


If I set direwolf to RTS it triggers FSK and dead keys
If I set direwolf to DTR it triggers PTT and dead keys
If I set direwolf to RTS DTR it triggers PTT and FSK properly, as it should, RTS is set to PTT and DTR is set to FSK
-RTS DTR gives me PTT dead key
RTS -DTR gives me FSK dead key

It seems to me the application is sending the signal but not dropping it as it should or the signals are inverted from what they should be OR stop bits need to be put in place


I also see on the LInuxHams list, you mentioned:

--
PTT /dev/ttyUSB1 -DTR RTS
then the FSK light comes on and when it transmits it flips from FSK to PTT without a dead key.

--

Are you saying that Direwolf keys up SCU-17 and it's "FSK" indicator lights up but Direwolf stays playing audio (AFSK modem tones), the SCU-17's turns off the FSK light and then turns on the PTT light?? If so, that does NOT sound right at all.? If you would, please try Direwolf v1.6.?? I would expect Direwolf v1.7* as very stable now but it's NOT released code and it's still undergoing change.


direwolf is the common denominator in this equation. It's as if it's giving the wrong serial signal, and no I'm not the only one that's had this issue.
My fellow ham has had this issue and a search on the web can find others


The vew fellow HAMs who have had issue have been either using unusual sound devices, using unusual isolation devices, etc.? Direwolf can be made to work with any of them but you have to determine what the right signal is for each of them.? In your circumstance, the SCU-17 documentation is non-existent which makes it extra hard.?



At this point I'm seriously considering switching to a hardware TNC if I'm going to work around the problem.

While Direwolf is a novel application and concept it does not work in all situations, many YES but not all and some have to make it work by working around any problems they may run into.


Of course the choice is yours but I can nearly guarantee you that Direwolf will out perform *any* hardware TNC you buy.? TNCs like a KPC3+ or PK96 can come close but most of the PIC/Arduino based units will have significantly poor decode rates.


This is sad to me. Will I use Direwolf again? Sure, I'll try it but if I run into similar issue I'll likely just spend the time or money to find another solution rather than waste hours upon hours of my time troubleshooting a problem I know to be a software issue.


Well.. I hear the frustration here but Direwolf has recommend hardware mentioned in the User Guide but you're not using that.? You also were doing a lot of testing and you might have actually missed the test that either "-DTR RTS" or "-DTR RTS" was actually working for you (ignore whatever the LED lights are as there is no FSK signal here in AFSK1200 packet).? FSK from an SCU-17 perspective is used for things like "real" RTTY or CW on HF radios.

--David
KI6ZHD


Re: Add Bluetooth…

 

开云体育

Completely agreed, direwolf+bluetooth is a great combo, extend it to the ax.25 network stack on the pi as well,

??

cool,
-craig
KM6LYW

On 5/1/22 2:52 PM, J K via groups.io wrote:


Anyone add Bluetooth support? ?I have a RPi02W with Fe-Pi audio board and even though have a Moblink TNC3 was thinking about getting a second TNC3, but then thought why not just add BT support to the RPi02W running DireWolf and it’d be basically the same thing.


Re: Direwolf as a TNC Help

 

So I have found if I set direwolf to

PTT /dev/ttyUSB1 -DTR RTS
then the FSK light comes on and when it transmits it flips from FSK to PTT.

That I find functional.

Now to figure out why nothing else understands it when it transmits.

I am thankful for all the replies and help, don't misunderstand my frustration but I do believe there is a issue with RTS and DTR in direwolf as I'm not the first to have this issue and likely not the last.


Re: Add Bluetooth…

Lynn Deffenbaugh
 

开云体育

I'm running Bluetooth to a Pi 2 Zero W with Direwolf as KJ4OVQ-9.? I connect to it from my APRSISMO/TestHost Android application when I'm in the vehicle to become a mobile IGate.? It only does SPP and not BLE, so iPhones don't even try it.

Lynn (D) - KJ4ERJ - Author of APRSISCE for Windows Mobile and Win32




On 5/1/2022 5:52 PM, J K via groups.io wrote:


Anyone add Bluetooth support? ?I have a RPi02W with Fe-Pi audio board and even though have a Moblink TNC3 was thinking about getting a second TNC3, but then thought why not just add BT support to the RPi02W running DireWolf and it’d be basically the same thing.



Re: Direwolf as a TNC Help

 

It's definitely got to be a application issue.

I have a serial adapter on order as I can't find the one I have that shows via LED the signals going over the wire so that will have to wait but if I set WSJTX or FLRig or FLDigi to use RTS for PTT it triggers PROPERLY

If I set direwolf to RTS it triggers FSK and dead keys
If I set direwolf to DTR it triggers PTT and dead keys
If I set direwolf to RTS DTR it triggers PTT and FSK properly, as it should, RTS is set to PTT and DTR is set to FSK
-RTS DTR gives me PTT dead key
RTS -DTR gives me FSK dead key

It seems to me the application is sending the signal but not dropping it as it should or the signals are inverted from what they should be OR stop bits need to be put in place

direwolf is the common denominator in this equation. It's as if it's giving the wrong serial signal, and no I'm not the only one that's had this issue.
My fellow ham has had this issue and a search on the web can find others

I've found threads where others have had the issue and worked around the problem but quite frankly I shouldn't have to work around the problem, that's why I bought a sound serial interface device, to minimize the clutter and optimize space and power consumption.

At this point I'm seriously considering switching to a hardware TNC if I'm going to work around the problem.

While Direwolf is a novel application and concept it does not work in all situations, many YES but not all and some have to make it work by working around any problems they may run into.

This is sad to me. Will I use Direwolf again? Sure, I'll try it but if I run into similar issue I'll likely just spend the time or money to find another solution rather than waste hours upon hours of my time troubleshooting a problem I know to be a software issue.