¿ªÔÆÌåÓý


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

I just used one of these daughterboards on both my Raspberry PI APRS nodes. GPIO pins defined in the Direwolf config file.
Changed default pin 28 to pin 25 and relay on daughter board works fine?
?

Rick KC0HH

On Tue, Jul 23, 2024 at 10:04?PM Rob Giuliano via <kb8rco=[email protected]> wrote:
I am not sure about the "no solder part, the pre-made cables (mini-DIN to stereo sound card jacks) are rather expensive ($25 U.S.), but available
Some of these are as low as a couple of dollars U.S.
Same with PTT.? If the radio has a RCA jack for PTT, then maybe something as simple as cutting off the end of an old speaker wire (with RCA) and using a 3V relay board.
Again, maybe a couple of U.S. dollars each - in quantity.
?
?
That could be wired with yo the Pi GPIO with dupont style plugs.? There are version of the relay board with headers where thge GPIO would connect, so the dupont style connectors would work.
You could probably find some 3.3V realys (without the boards that you could connect with dupont connectors directly.
?
Maybe lots of clicking, but that's about the cheapest you are going to get.
?
-------
Rob KB8RCO


Re: How do you build direwolf with debug symbols and -O0?

 

Hello, Bob.
?
Compiler options are set by the CMAKE_C_FLAGS variable in CMakeLists.txt.? As David mentioned, the build instructions are in the User Guide.
?
If you figure out how to build with vscode, let us know so it can be added to the documentation.
?
There is builtin debug code to reveal what is going on inside the IGate function.? Enable it by adding "-diii" to the direwolf command line.? This might answer your questions without resorting to using a debugger.
?
Yes, "make install" will replace any previous installed version.
?
73,
John WB2OSZ


Re: How do you build direwolf with debug symbols and -O0?

 

¿ªÔÆÌåÓý


Hello Bob,

The basic compiling of Direwolf for various operating systems is covered in Section 6.4 of the Direwolf User Guide:

??


Beyond that, changing the compiler optimization levels, enabling debugging objects, etc. is out of scope for that doc.? There are many developer guides on the Internet that will help you enable those options within say tools like VSCode, etc.

--David
KI6ZHD



On 07/24/2024 03:30 AM, Bob wrote:

I want to study some stuff about aprs-si connections and temporarily build direwolf so I can set breakpoints and look at some variables.? I'm using debian (not on a Raspberry pi). How do you build it for this? When I'm done looking at some things in vscode I'll re-install it in release mode. When I re-install it should I just let the new 'make install' overwrite the debug version?
thanks,
Bob
?


How do you build direwolf with debug symbols and -O0?

Bob
 

I want to study some stuff about aprs-si connections and temporarily build direwolf so I can set breakpoints and look at some variables.? I'm using debian (not on a Raspberry pi). How do you build it for this? When I'm done looking at some things in vscode I'll re-install it in release mode. When I re-install it should I just let the new 'make install' overwrite the debug version?
thanks,
Bob
?


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

I am not sure about the "no solder part, the pre-made cables (mini-DIN to stereo sound card jacks) are rather expensive ($25 U.S.), but available
Some of these are as low as a couple of dollars U.S.
Same with PTT.? If the radio has a RCA jack for PTT, then maybe something as simple as cutting off the end of an old speaker wire (with RCA) and using a 3V relay board.
Again, maybe a couple of U.S. dollars each - in quantity.
?
?
That could be wired with yo the Pi GPIO with dupont style plugs.? There are version of the relay board with headers where thge GPIO would connect, so the dupont style connectors would work.
You could probably find some 3.3V realys (without the boards that you could connect with dupont connectors directly.
?
Maybe lots of clicking, but that's about the cheapest you are going to get.
?
-------
Rob KB8RCO


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

I just read and watched the video about the AIOC. Wow. I don¡¯t NEED onr as have many ways to do everything I need using RPi¡¯s, SignaLinks, MobiLinkD, EasyDigi¡¯s, etc, etc, but totally WANT one of them it¡¯s cool. Glad I looked at this thread now as sold on this AIOC. :-)


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

I haven¡¯t read this thread yet, so apologies if something similar was mentioned, but as per subject I¡¯m just throwing out that I¡¯m using an EasyDigi with USB PTT (uses a Prolific chip) with a FT60R and it works fine for my little small igate/digipeater. I¡¯m using a Fe-Pi clone hat for audio (WB7FHC.com). While I did have to solder the GPIO pins, you could probably order one with them already soldered for a small extra fee I¡¯d imagine. I also have an EasyDigi (with USB PTT) for Kenwood K2 HT¡¯s, such as Baofengs, TYT¡¯s, etc. is this Quenscheng in subject an HT or mobile? If HT, the same EasyDigi I have for K2pin would work with it. I was using a Yaesu 8900R and SignaLink prior to using just a FT60R and it worked fine as well, but wanted to free up my 8900 to use it for voice. Many ways to skin that cat. :-)

Sent from my iPhone Pro Max


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

lonelycollegeboy:

since you will need both audio input and output to support Direwolf, the native Raspberry PI is insufficient: it only has headphone output (unless you want to tap HDMI).

So you need an extra piece of h hardware?anyway.

On Tue, Jul 23, 2024 at 6:45?PM lonelycollegeboy19 via <lonelycollegeboy19=[email protected]> wrote:

Thank you for you patience and reply.? however from what i understand this still requires an additional piece of hardware with DINAH board, this an additional expense and complication.? so not exactly my goal either sadly



--

73,
AB1PH
Don Rolph


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Use the CM108 as is and use the GPIO on the RPi to do the PTT. Keying circuit is simple and easy to build. Yes, you will have to solder a bit. You can't make something out of nothing, so a bit of work is always involved. This would be about the simplest way I can think of to do the job.

On Tue, Jul 23, 2024 at 4:19?PM John Tetreault (WA1OKB) via <john.h.tetreault=[email protected]> wrote:

Soldering really really REALLY isn't all that hard.

On Tue, Jul 23, 2024, 6:48?PM lonelycollegeboy19 via <lonelycollegeboy19=[email protected]> wrote:
Thanks for the reply.
The AIOC is a good solution but sadly rather expensive, hard to get / manufacture, and requires soldering the audio terminals even after the board has arrived.?
So that isn't a good solution for this use case either


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Soldering really really REALLY isn't all that hard.

On Tue, Jul 23, 2024, 6:48?PM lonelycollegeboy19 via <lonelycollegeboy19=[email protected]> wrote:

Thanks for the reply.
The AIOC is a good solution but sadly rather expensive, hard to get / manufacture, and requires soldering the audio terminals even after the board has arrived.?
So that isn't a good solution for this use case either


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Thanks for the reply.
The AIOC is a good solution but sadly rather expensive, hard to get / manufacture, and requires soldering the audio terminals even after the board has arrived.?
So that isn't a good solution for this use case either


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Thank you for you patience and reply.? however from what i understand this still requires an additional piece of hardware with DINAH board, this an additional expense and complication.? so not exactly my goal either sadly


Re: Using A,D and E decoders in parallel ?

 

Good questions.
The different modems A, B, etc. were remnants of my modem improvement experiments.
They were all based on the principle of having a bandpass filter for each of the two tones and seeing which one was stronger.
There were cases where it was beneficial to run more than one in parallel.
This was especially true for the faster phase shift keying (PSK).
Later, I added multiple slicers to compensate for imbalance in the strengths of the two tones. (caused by pre-emphasis & de-emphasis).
?
1. A few years ago, I had a revelation that I was doing it all wrong.? The AFSK demodulator was rewritten to be simpler, faster, better.?? Letters B, C, D, and E were mapped into A for backward compatibility.
?
2. At one time, D was optimized for 300 baud, rather than 1200.? It might map into B now.? Not sure without looking.
?
3. Not for A, C, E.? Maybe with A & B.
?
New demodulator B is? based on a different principle.? It operates like an FM-discriminator, producing a signal proportional to the audio frequency.? In this case, the multiple slicers can compensate for mistuning of an SSB signal.
?
73,
John WB2OSZ


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

The "All In One Cable" (AIOC) is a simple solution.
?
?
73,
John WB2OSZ


Re: No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Direwolf on Raspberry PI supports CM108 PTT directly on a Raspberry PI.? Onee can then connect a CM-108 USB sund?card to the USB port on the Raspberry PI and ?gett PTT with no soldering.

An example is discussed in:



which?uses a traditional?DINAH board or can work with?the DINAH ATGP (stackable DINAH with Pi Zero 2 W).

More?details can be found?at:



On Tue, Jul 23, 2024 at 4:39?PM lonelycollegeboy19 via <lonelycollegeboy19=[email protected]> wrote:

Hello,
?
I see a lot of discuss and possible solutions but they all require a lot of skill and possibly equipment.
I know that VOX is frowned upon for a number of reasons. Although maybe it would be possible to get the custom firmware on the quansheng to be more responsive.
?
?
The use case here is either a total noob to this hobby, or someone in a less developed country where getting additional parts might take longer or be more expensive.
Also a simple mental exercise on to "hack" the most of out the available parts should be pretty interesting.
?
?
So I see a lot of solutions being offered for how to trigger the PTT but they all involve a lot of work. Please do not tell me, why these are not really "problems" or how the end user "should already know how to do this"
as this is often the easy answer offered in almost all communities when something requires a lot of additional thought.
?
Is there then a way to get PTT to work using only the CM108 sound card, a standard set of 2.5 to 3.5 and 3.5 to 3.5 cables and a raspberry pi?
if adding additional wires to connect something from the sound card to the pin is unavoidable then maybe something that can be connected using dupont style connectors for example
might be any option.
?
All of these parts should be easily found just about anywhere in the world at this point in time.
?
Sorry for the rather direct approach but as someone who has been in a bunch of technical communities for a very long time. I have experienced the usual short answer and then someone comes along and finds a new way to
do achieve what was previously undoable via some clever hack or unexpected bug.
?
thanks for your patience and consideration
?
?
?
?



--

73,
AB1PH
Don Rolph


No soldering PTT solution for a Raspberry pi and Quansheng type radio with CM108?

 

Hello,
?
I see a lot of discuss and possible solutions but they all require a lot of skill and possibly equipment.
I know that VOX is frowned upon for a number of reasons. Although maybe it would be possible to get the custom firmware on the quansheng to be more responsive.
?
?
The use case here is either a total noob to this hobby, or someone in a less developed country where getting additional parts might take longer or be more expensive.
Also a simple mental exercise on to "hack" the most of out the available parts should be pretty interesting.
?
?
So I see a lot of solutions being offered for how to trigger the PTT but they all involve a lot of work. Please do not tell me, why these are not really "problems" or how the end user "should already know how to do this"
as this is often the easy answer offered in almost all communities when something requires a lot of additional thought.
?
Is there then a way to get PTT to work using only the CM108 sound card, a standard set of 2.5 to 3.5 and 3.5 to 3.5 cables and a raspberry pi?
if adding additional wires to connect something from the sound card to the pin is unavoidable then maybe something that can be connected using dupont style connectors for example
might be any option.
?
All of these parts should be easily found just about anywhere in the world at this point in time.
?
Sorry for the rather direct approach but as someone who has been in a bunch of technical communities for a very long time. I have experienced the usual short answer and then someone comes along and finds a new way to
do achieve what was previously undoable via some clever hack or unexpected bug.
?
thanks for your patience and consideration
?
?
?
?


Using A,D and E decoders in parallel ?

 
Edited

Hi All,
?
I am currently writing some tutorials for our club members and BTW refreeshing my Direwolf knowledge.
?
While doing so I wanted to write about the MODEM option in teh config file.
To my surprise, the E option is no longer mentionned in the manual for 1200bps, only A and D. Yet the latest dev branch does not complain about my MODEM 1200 E+ configuration.
I wanted to learn more about it and looked deeper into the source code and found out that it is actually legit to configure something like MODEM 1200 ADE+
?
When starting Direwolf it give feedback on which decoder is what
?
I am testing it on our club moutain top digipeater, and it s decoding very well.
?
Or this one!
?
Now the questions
?
  1. Are their any difference between A and E or has E just been renamed to A?
  2. What does actually D do? How is it different from A and E ?
  3. Given I have enough CPU power to run all three of them, is there an actual benefit from it? I have the feeling that some stations are better decoded, but could not prove it yet.
?
73
Geoffrey F4FXL / KC3FRA
?
?
--
Geoffrey F4FXL /? KC3FRA
My Direwolf stuff :


Re: update/upgrade

 

Thanks for the info David. My programming expertise ends after cut/copy/paste with Linux, so I was not successful as the steps were written. The
did work for me. ve7bul-10 is back on the air. Thanks again to all for the assistance.


On Mon, Jul 15, 2024 at 9:09?AM David Ranch via <direwolf-groupsio=[email protected]> wrote:

Hello Gil,

David, your instructions at section 24c do not work as they are.

Ok.. thanks for the report


sudo mv create-new-direwolf-deb.sh /usr/local/bin

This works and creates the file but when I go to execute, after cd /usr/local/bin and ./, I get,
ERROR: Direwolf source directory not found.? Aborting

This line does not appear to exist yet:
cd /usr/src/archive/Rpi-scratch/direwolf/direwolf  There is no .../archive/....
This line does exist, and a create-new...sh does exist. Is this the script I should execute from this location?
/usr/local/bin/create-new-direwolf-deb.sh

A challenge with my documentation and arguably ANY documentation is that it makes assumptions that certain things exist from a previous section.? This is covered in Section 16 but it's probably not obvious enough.? I will make some improvements here to make sure people creates the required base directory:

?? sudo mkdir -p /tmp/usr/src/archive/Rpi-scratch



Does this have anything to do with the RPi OS as opposed to Centos? I see Centos is mentioned a few times. This could be me just messing it up somewhere too. 

No.. has nothing to do with Centos.? The "centos" you see is probably just in the URL itself.? It's a long standing holdover that I need to clean up.? Sorry for the confusion here.

--David


Re: update/upgrade

 

¿ªÔÆÌåÓý


Hello Gil,

David, your instructions at section 24c do not work as they are.

Ok.. thanks for the report


sudo mv create-new-direwolf-deb.sh /usr/local/bin

This works and creates the file but when I go to execute, after cd /usr/local/bin and ./, I get,
ERROR: Direwolf source directory not found.? Aborting

This line does not appear to exist yet:
cd /usr/src/archive/Rpi-scratch/direwolf/direwolf  There is no .../archive/....
This line does exist, and a create-new...sh does exist. Is this the script I should execute from this location?
/usr/local/bin/create-new-direwolf-deb.sh

A challenge with my documentation and arguably ANY documentation is that it makes assumptions that certain things exist from a previous section.? This is covered in Section 16 but it's probably not obvious enough.? I will make some improvements here to make sure people creates the required base directory:

?? sudo mkdir -p /tmp/usr/src/archive/Rpi-scratch



Does this have anything to do with the RPi OS as opposed to Centos? I see Centos is mentioned a few times. This could be me just messing it up somewhere too. 

No.. has nothing to do with Centos.? The "centos" you see is probably just in the URL itself.? It's a long standing holdover that I need to clean up.? Sorry for the confusion here.

--David


Re: update/upgrade

 

Thanks John for the input and the patience to point me in the right direction. I followed the instructions in 7.2.2 and used Filezilla to transfer my original .conf to the Rpi and modified it with nano. The PTT GPIOD gpiochip0 25, and DCD GPIOD gpiochip0 24. I did a systemctl restart direwolf and it restarted. I checked and I was already up and running again. It actually was not as hard as I had anticipated, but I would have been SOL without the guide. So far so good, thanks again.


On Sun, Jul 14, 2024 at 7:01?PM Gil Rand via <gilrand=[email protected]> wrote:
I see what you are saying. I did not download the file and I have now. I did not get as far as I needed to to find the pertinent information. Maybe I'll give it a spin and see what happens. Thanks.

On Sun, Jul 14, 2024 at 6:54?PM WB2OSZ via <wb2osz=[email protected]> wrote:

Gil -

See Radio Interface Guide, section 7.2.2.


Section 7.2.2 describes exactly what you need to do to solve the issue with the latest OS changing the method needed to access GPIO.

73,
John WB2OSZ