¿ªÔÆÌåÓý

Adding a TUNE button to a V2 software build


 

OK, perhaps someone has already done this, but I wanted to have a TUNE button on the screen of my V2 and Developers' Editions for multiple reasons:
a)? I sometimes have automatic antenna tuners in line, and I need to send them about 5 watts for the protection of both the sBitx and the automatic tuner, to allow it to adjust impedance matching.
b) I sometimes need to tune an ancient vacuum tube (yes, I know, horrors! but it WORKS) linear amplifier that needs its pi network tuned for maximum output with a steady signal.
?
SO I finally got around to adding code to make a TUNE button.? ?I'm not bright enough to put something on github so if this is useful, perhaps someone else can get that done?
?
There are three parts to it, and all can be found by searching for the key phase GLG TUNE in the accompanying sbitx_gtk.c file:
?
1)? The parameters of the screen display of a toggle button have to be entered into the struct that keeps track of all of those
2)? When the button is pressed, that has to be detected, the existing MODE and DRIVE have to be captured and saved, then the MODE is switched to 2TONE and the drive set to about 40% (which, being a voltage multiplier, means about 16% of maximum power, whatever you have 100 set to on that band); and then the radio pushed into transmit mode.
3)? When the button is again depressed to go back into normal mode, the transmitter must be turned back off, and the MODE and DRIVE returned to their previous values.??
?
You can read the c code below by searing for GLG TUNE to see how I did these items.? ?There may be a better way, this one just seems to work so far!? ?This happens to be part of my larger effort to flatten the receiver and transmitter response and allow for response changes for my high school students, but these should not become active unless you really want them, and can be safely ignored.
?
You could just copy the relevant sections into YOUR sbitx_gtk.c and it should compile.?
73
?Gordon KX4Z


 

Thanks for sharing! This is very similar to what I was working on, so I will see how to make it better, I'll comment your code if I end up using it. My code has variables to set the power and duration as well.


-JJ


 

It is done on the farhandev branch. But the branch is broken at the moment. I had a painful, unscheduled audit at my day work and I couldnt get time to add the oled.h to the repo.


On Sun, Jul 21, 2024, 5:27 AM JJ - W9JES via <w9jes=[email protected]> wrote:
Thanks for sharing! This is very similar to what I was working on, so I will see how to make it better, I'll comment your code if I end up using it. My code has variables to set the power and duration as well.


-JJ


 

More power to both you guys!? ?I'm sure it can be done better; I just had some time and it bubbled to the top of my available projects.
?
This is such an elegant little radio!? ?I'm at our ancient vacation home almost up in the mountains of North Carolina and I have my (repaired) V2 here in a simple plywood "go-box" with an autotuner, a Signalink and a power supply.? ?It drives an ancient Heathkit SB-200 when I want to, along with a heavily repaired Heathkit SB-102 that has just come back "on line."? [Those radios are effectively EMP-immune.]? ? ?The little sBitx now happily responds to WINLINK commands from my PC, changes frequencies, activates the linear if desired, and now has a TUNE button that works analagously to the one on an Icom 7300.? ?All on a tiny circuitboard!? ?I read some other blogs and people are building very nice homebrew radios, but on a zillion boards and not (yet) up and really fully debugged and finished and available to the masses like THIS radio.? Every radio is a compromise to reach some set of goals under some set of constraints but this one is rising to the point that I'm starting to recommend it to newbies in our volunteer disaster communications group.? ?On 80/40 meters we really need the power of the V2 version.? Having a headroom up to 40W makes it so much easier to stay fully linear with 30-35W of data techniques, which we use a LOT.? ?Winlink has just added GIS-mappable report systems and we are rolling out a hamradio technique for volunteers to send in reports from our geographic area that can automatically populate a MAP and give situational awareness to the authorities.? ? I understand that many 911 systems were affected by the CrowdStrike debacle....and our group just keeps on developing RADIO backup systems for disaster response.
?
What an elegant radio!
73
Gordon KX4Z
?
P.S.? For some reason, even tho I have my settings to get individual messages, I didn't seem to....perhaps another outcome of the Crowdstrike????
?


 

A screenshot of the new button:
?


 

Real estate on that main form is tight.
?
I think if we add Gordon¡¯s Tune button the QRO standby/enable button in the 64bit build will need to go into the DSP submenu.
There aren¡¯t many open spots remaining on that control surface for easy go buttons.
?


 

¿ªÔÆÌåÓý

Hello, I am DK1AUP and I am trying to update my sBITX V3.02 to 3.027. But after the installation 3.021 appears. What am I doing wrong? The VFO frequency was also several Hz off.
Can someone help me!
vy 73 Udo -DK1AUP?

Von: [email protected] <[email protected]> im Auftrag von Jon / W2JON via groups.io <sigmazgfx@...>
Gesendet: Sonntag, 21. Juli 2024 16:47
An: [email protected] <[email protected]>
Betreff: Re: [BITX20] Adding a TUNE button to a V2 software build
?
Real estate on that main form is tight.
?
I think if we add Gordon¡¯s Tune button the QRO standby/enable button in the 64bit build will need to go into the DSP submenu.
There aren¡¯t many open spots remaining on that control surface for easy go buttons.
?


 

Udo,
maybe you should switch to 64 bit OS
Please use a new uSD card to keep the original OS.
Make a copy of the important data on a USB stick so that you can copy them to the new OS.
More info here: /g/BITX20/wiki
--
Gyula HA3HZ


 

Gordon, I'm not sure if you saw this behavior or not, but there was a little bug in that tune that would initialize the rig to 2TONE when it was first brought up.
The TUNE OFF condition rolled the previous mode to the literal "last mode" in the mode_name array.?
I have altered the code block slightly to keep the TUNE OFF from tinkering unless we are using the TUNE utility.
?
See attached..
?
?
?


 

I'm thinking that you can disregard my previous comment.?
I am looking now, and I think I may be hitting TUNE OFF on init, Which if it proves to be the case, would be the wrench banging around in the geartrain.
?
Thanks?
?


 

Try the farhandev branch now.


On Mon, Jul 22, 2024, 3:20 AM Jon / W2JON via <sigmazgfx=[email protected]> wrote:
I'm thinking that you can disregard my previous comment.?
I am looking now, and I think I may be hitting TUNE OFF on init, Which if it proves to be the case, would be the wrench banging around in the geartrain.
?
Thanks?
?


 

On Sun, Jul 21, 2024 at 11:31 PM, Ashhar Farhan wrote:
Try the farhandev branch now.
Thank you Ashhar, I'll get there eventually and find your code for that portion.? ?THANKS for working on this!
This is such a wonderful radio.? ? I know you are working on a zillion things.? ?I'm not fascinated with the Raspberry 5, too hot.
What most of us want is just a RADIO that WORKS.? ?Things that have been important to ME
a)? getting a relay (or opto-isolator) output to turn on amplifier etc.? ? (so I built it)
b)? getting leveled power on upper / lower side bands (so I wrote it) (and I see the ripples all the way up and down the waterfall on this particular unit -- code could be written to automatically measure that and automatically insert corrections??)
c)? ability to use for winlink and other modes that require outside computer -- so i added a receiver audio output to go to a Signalink, works GREAT
d)? ability to directly control the frequency from a winlink system -- so with what others wrote, I wrote software to emulate an ICOM 7300 -- really suggest you add that!? ?Mine is only unidirectional (controls radio) but really need BIdirectional (able to read mode, frequency etc).? ?Eventually I'll write that also......
e) TUNE capability -- so I wrote a beginners' effort on that.
?
It is just a wonderful little radio.? ?Eventually I'll replace the huge zeners I put in with all their junction capacitance and put in the tiny TVS diodes you recommended and get more output on higher bands....but of lesser importance to me right now compared to teaching high school students and other projects.? ?
?
I increased the max setting in the field definitions so that the CW delay could go all the way to 2.5 seconds -- needed about 1.5-2 seconds to keep the relays in the SB-200 Heathkit Linear between words on CW.? ?Can't run QSK when using the linear, but that is a tradeoff.? ?Love the RELAY FREE switching of the base unit.??
?
Such a nice radio!
?
73
Gordon Kx4z
?
?
?
?


 

On Sun, Jul 21, 2024 at 02:37 PM, Jon / W2JON wrote:
Gordon, I'm not sure if you saw this behavior or not, but there was a little bug in that tune that would initialize the rig to 2TONE when it was first brought up.
The TUNE OFF condition rolled the previous mode to the literal "last mode" in the mode_name array.?
I have altered the code block slightly to keep the TUNE OFF from tinkering unless we are using the TUNE utility
?
SO COOL, Jon!!!? ?Yes, you are completely correct!? ?I tried it this morning and you are correct.? ?It isn't a big deal to me, but I may insert your correction when I get back to it.? ?I was just so glad to finally have a TUNE capability which saves me SO many clicks etc etc merely to tune the antenna or the linear.? ? THANK YOU for also working on this important additional feature to this cool little radio!? ?I'm just delighted that I sparked a flurry of activity to bring solutions to the forefront.? ?Whatever menu or other solutions end up will be a big improvement for the user.? ?
The important thing about a radio is for it to WORK, and to WORK EASILY.? ?
I love getting up early in the morning and flipping on this receiver and listening to old guys like me chatting on 75 meters, or speedsters catching up with friends on 40 meter CW before daybreak.? ?And, hooray, I have just gotten another Heathkit SB-102 working again, after fixing a zillion issues (had to design a printed circuit relay board to replace the logic of the failed MODE switch and retain EMP-invulnerability) -- and so my little home away from home is getting a full complement of ham radio gear.? ? Absolutely wonderful this morning, 68 (Fahrenheit) gorgeous temperature and the clouds/fog are nestling the hollows between the mountain ridges like a white Christmas wreath.? ?Absolutely delightful.
?
73
Gordon Kx4z
?
( I have worn out the keyboard on this laptop and the capital-x no longer works and the little x barely works)
?


 

On Sun, Jul 21, 2024 at 02:37 PM, Jon / W2JON wrote:
Gordon, I'm not sure if you saw this behavior or not, but there was a little bug in that tune that would initialize the rig to 2TONE when it was first brought up.
The TUNE OFF condition rolled the previous mode to the literal "last mode" in the mode_name array.?
I have altered the code block slightly to keep the TUNE OFF from tinkering unless we are using the TUNE utility.
?
?
Jon -- made your improvement,? now came up on correct mode!? thanks!!
?
Gordon KX4Z
?


 

On Tue, Jul 23, 2024 at 05:12 AM, Gordon Gibby KX4Z wrote:
Jon -- made your improvement,? now came up on correct mode!? thanks!!
?
Gordon KX4Z
?
Also change your last line to:
?
tx_on(TX_SOFT);
?
from
?
sdr_request("tx=on", response);
?
?
-JJ