开云体育

ctrl + shift + ? for shortcuts
© 2025 开云体育
Date

Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

I created more options for sBITX Toolbox Launcher and am testing them before pushing to GitHub.. The custom application function allows you to create buttons for websites, binary files, and system commands.? I still need to update documentation for this as well, but wanted to share a preview..

I respectfully ask that the general, CAT "rig control" discussion be moved to a new thread on here. Thank you.













Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

On Tue, Jan 30, 2024 at 03:58 PM, Gordon Gibby wrote:
At a minimum just be able to set the frequency and possibly go into transmit mode.
This level of stuff is possible already, you can see it operate from the command line.

On my sbitx:

1) Start the sbitx application

2) Open a Terminal

3) Install some software:

$ sudo apt install libhamlib-utils

4) Use the 'rigctl' command to send hamlib commands to the sbitx application

5) The following set my sbitx's frequency to 7070 kHz

$ rigctl -m 2 -r 127.0.0.1:4532 F 7070000

Interpretation:
> -m 2 means mode 2 which is hamlib net rigctl
> -r 127.0.0.1:4532 connects to sbitx's hamlib implementation (see earlier post)
> F is the frequency command
> 70700000 is frequency in Hertz

6) Do 'man rigctl' then move forward till you see 'rigctl Commands' to get a list of the commands that should work (but most don't).

7) Cross check this with $HOME/sbitx/hamlib.c to see what is actually possible (hint: not a lot)



So you can see the 'T 1' command puts the radio into transmit and 'T 0' takes it out.

As we used to say in the early days of open source, UTSL (Use the Source, Luke!).


?if there is a way to access the sound card so much the better but external sound cards can be used. ?
This already works for wsjt-x and for fldigi, why would it not work for other software?

Or are you saying you need to use software that runs on Windows and not on Linux?
?
--
Regards,
Dave, N1AI


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

On Wed, Jan 31, 2024 at 04:38 AM, Gordon Gibby wrote:
Ashhar, I'm not familiar with "Net Rig Conttrol"? ? Is this related?to "rigcat" which is one of the options in FLDGI?? ?
My understanding is:
  • "rigcat" came from the authors of "fldigi"?
  • "net rig control" came from "hamlib" which came from a different group
  • it's more correct name is "hamlib net rigctl" based on the "rigctl" program provided by the hamlib-utils package you can install on the Pi
  • both "rigcat" and "hamlib" support a programming interface that supports many different kinds of radios underneath
  • "wsjt-x" chose to support "hamlib"?
  • "wsjt-x" is massively popular
  • because of this, most people want/need "hamlib" to work
  • SDRs don't have actual serial ports
  • the easiest way for a SDR to support "hamlib" is via a local network TCP/IP connection
  • the SDR's code can respond to the 127.0.0.1 "localhost" address at a specific port
  • the SDR's code then reads commands and writes responses to/from the network
  • the applications (e.g. "wsjt-x") include the "hamlib" library in their run time code
  • the hamlib support gets configured by user input to either use net rigctl or an actual radio serial port
  • based on this choice the hamlib code calls the right functions to get the desired behavior
  • "fldigi" supports either rigcat or hamlib so hamlib appears to be the more universal choice


This is a screen shot of wsjt-x selecting hamlib net rigctl:




You can see the "localhost" TCP/IP address (127.0.0.1) followed by ":" then by the port number used by sbitx to support rigctl (4532).

This is a screen shot of fldigi's rig control choices in its config dialog with hamlib selected:


?
Note on the left that you can use hamlib or rigcat or other approaches.

Note the sbitx hamlib.c file is lifted from the 'gqrx' SDR application's source code and isn't a full implementation of hamlib net rigctl.

Sbitx itself does not implement rigcat.? I presume you can set up flrig to be a "rig control gateway" that can use hamlib to talk to sbitx, but I presume the limited implementation of hamlib on sbitx means this probably doesn't work very well.? I did try the "grig" linux program and found it wasn't very useful because sbitx's hamlib support is limited to just the things wsjt-x needs to operate and not much more.

The sbitx community should find a better "radio side" implementation of hamlib net rigctl to lift.? I haven't looked at other open source projects to figure out if there is a better one to lift, but pretty much every SDR radio app that wants to work with wsjt-x needs to have one.? I have used "quisk" with hermes lite 2, maybe it has better support, I don't know.? Also looking at linhpsdr and/or pihspdr may provide a better implementation.

--
Regards,
Dave, N1AI


Re: #sBitx WM8731 Codec #sBitx

 

On Mon, Sep 4, 2023 at 06:23 AM, Rafael Diniz wrote:
I don't see any reason why you can not use other ALSA devices. You can - just make sure the order they are brought up so not to confuse userland.

Again, sorry if I'm digging up an old thread, but the topic popped up again.

I think the right approach is not to rely on order of bring up, the answer is to use more specific names.

Use?"plughw:CARD=audioinjectorpi,DEV=0" instead of?"hw:0,0" and you'll always get the Wolfson codec and not someone's HDMI speakers or USB headset.

I wrote about this in??




This is another area where a quick PR could put this to bed quickly.

My problem is like yours, in that my code base has diverged from the afarhan sbitx github repo so much that it's hard to do PRs now.

But maybe I'll find the time to do a PR anyhow, we shall see.

Then we'll see how long it takes for that PR to be merged.

?
--
Regards,
Dave, N1AI


Re: Strong click when switching on the transmission #sBitx

 

This sound can be heard when I switch from reception to transmission at ft8. It sounds like a metallic sound, like a metal door being slammed.
Sometimes it's louder, sometimes it's softer.
I didn't find any logic in it. There were times when I thought that among the many stations, one or two switched on first and that's it.
Then I pushed the tx delay (here cw delay) up to 1000, but it had no effect.

You might ask why I haven't heard or said anything about this until now.
It has been present until now, with varying volumes and lengths. It is always present when switching from reception to transmission.
This is what is permanent.

I would like to know if those who have delved into the hardware repair to different depths on several occasions have experienced such a phenomenon.
I guess they were happy to find the source of the error.
I read somewhere that self-vibration was mentioned for some stages, but now I can't find the discussion. A 100nF capacitor solved the problem there.

It is possible that an audio mute would solve the problem.
I've only been using it regularly since last November - with over a thousand ft8 qso's. Initially, due to the lack of LOG saving, I used another log program.

I just got to the point of noticing this phenomenon as well. I see that there is no progress in the matter of complex callsigns.
(displaying /p or /prefix or unusual multi-number, multi-letter callsigns)
--
Gyula HA3HZ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

Ashhar, I'm not familiar with "Net Rig Conttrol"? ? Is this related?to "rigcat" which is one of the options in FLDGI?? ?Unfortunately I don't know if that is at all related to how N3FJP or WINLINK authors control radios.? ? However, emulation of any of several popular radios makes controlling from? any of these software products fairly easy.? ? ?I may be able to dig up the code that I wrote to have a uBitx do a tiny bit of emulation of an Icom just so frequency?control could be accomplished.? ? One of the yaesu's was already built into the uBitx (I'm sure your'e?more familiar with this than I)

Here is some code I found in an ancient .ino file that I think could read a single CAT command and change the frequency.? ?I had a raduino?controlling in a Heathkit vacuum tube radio, substituting for the vacuum tube VFO - it worked.


// --------------------------TRY TWO TO DO CAT---------------------------

// ?The minimum command we have to listen for is change frequency
// ?5 bytes: ? MM MK KK HH ?01 ? is the command
// ?where MMM are the megaherts ?(eg ?01 4
// ?and the KKK are the kilohertz ?(eg ? 234
// ?so for example ? 01, 42, 345, 56, 01 means
// ?change frequency to 14,234.56 kilohertz


void checkSerialData() {
? int packed;
? int i = Serial.available();
? // Note that the internal buffer on the arduino can hold up to 64 bytes
? ? if (i < 5) return;

?// if you got here then there are at least 5 ints (?bytes?) ?waiting: get it.

printLine(1, (char *)"5bytes");
? ? ? ? delay(10);
?
? ? for (i=0; i<5; i++) {
? ? ? ? receivedserial[i] = Serial.read();
? ? ? ? // Serial.read pulls exactly one byte
? ? }

? ? // now chek for the command in the last byte
? ? switch (receivedserial[4]) {

? ? ? ? ? ? ?
? ? ? ? case 1:

// frequency is in packed BCD; binary coded decimal;
// so left 4 bits give top decimal number 0-9 ?and right 4 bits give bottom decimal number 0-9


// ? ? ? ?case CAT_FREQ_SET:
? ? ? ? ? ? // convert the 4 bytes of numbers (tens of MHz), (hundreds of kHz), (kHz), (tens of hz)
? ? ? ? ? frequency = 0UL;
? ? ? ? ? packed = receivedserial[0];
? ? ? ? ? frequency = ? ? 10000000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F) ) ;
? ? ? ? ? packed = receivedserial[1];
? ? ? ? ? frequency = frequency + ?100000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));
? ? ? ? ? packed = receivedserial[2];
? ? ? ? ? frequency = frequency + 1000UL * ? (unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));
? ? ? ? ? packed = receivedserial[3];
? ? ? ? ? frequency = frequency -40 + 10UL * ?(unsigned long) ( ((packed & 0xF0)>>4 )* 10 ?+ ? (packed & 0x0F));

? ? ? ? ?
? ? ? ? ? ?
? ? ? ? ? ?setFrequency(frequency);
? ? ? ? ?
? ? ? ? ? ?Serial.write(ACK);
? ? ? ? ? ? break;
? ? ? ?
? ? ? ? default:
? ? ? ? ? ? printLine(1, (char *)"Othercmd");
? ? ? ? ? ? delay(10);
? ? ? ? ? ? Serial.write(ACK);
? ? ? ? ? ? break;
? ? }

}? ??


On Wed, Jan 31, 2024 at 1:23?AM Ashhar Farhan <farhanbox@...> wrote:
Net Rig Ctrl is already implemented on sbitx. That is how wsjtx and fldigi work with it



On Wed, Jan 31, 2024, 5:07 AM Dave, N1AI <n1ai@...> wrote:
My understanding is the classic generic radio to emulate via hamlib is the Kenwood TS-2000.

At least this is what the Flex product line does going back to the days of the Flex 1500 which I bought in the mid 2000s.

Seems this was a popular radio as hamlib was being developed.

I actually have one but have never attached it to any computer.

--
Regards,
Dave, N1AI


Re: Strong click when switching on the transmission #sBitx

 

Hi Gyula,

The only clicking sound I notice is when the alsa capture level (rx or mic) is changed. Is that the case for you?

- Rafael

On 1/30/24 21:56, HA3HZ wrote:
It seems to me that there is only one satisfactory solution.
Headphones must be connected to the headphone jack.
Any other controls have no effect on this clicking sound.
I tried the volume, the tx driver, the cw delay.
Temporarily as if something happens, then it clicks again.
--
Gyula HA3HZ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

Hi JJ,

There is no tx_compression implemented in Farhan's (there are no programmers, just one programmer) sBitx code.

- Rafael

On 1/30/24 18:57, JJ - W9JES wrote:
On Tue, Jan 30, 2024 at 01:41 AM, Paul wrote:

Looking good, curious, is the Compression level setting a hidden
setting not available on the front panel?
Ideally mic gain ahould be increased and compression only used if
really needed and at a fairly low level so wondering how I change
the compression setting without the aid of the panel. Bringing it
out to your panel makes it more accessible to get adjusted right.
Great work on developing this toolbox panel
Regards
Paul G0KAO

Hi Paul,

I have no idea why the sBitx programmers decided to hide the *Mic Compression* settings. I also agree that the compression level displayed in the image is incorrect. I set it to 40 manually just to test functions. Ideally the comp level should be much lower for real world applications and the mic gain should be adjusted first before any compression is added. Thanks for pointing that out and I appreciate your comments!


-JJ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

Owen Baldwin
 

Thank you Gyula,


On Tue, 30 Jan 2024 at 12:37, HA3HZ <gyula@...> wrote:

Owen,

please make sure Python is installed as it is required for this to work. Whichever OS you use.

--
Gyula HA3HZ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

Net Rig Ctrl is already implemented on sbitx. That is how wsjtx and fldigi work with it



On Wed, Jan 31, 2024, 5:07 AM Dave, N1AI <n1ai@...> wrote:
My understanding is the classic generic radio to emulate via hamlib is the Kenwood TS-2000.

At least this is what the Flex product line does going back to the days of the Flex 1500 which I bought in the mid 2000s.

Seems this was a popular radio as hamlib was being developed.

I actually have one but have never attached it to any computer.

--
Regards,
Dave, N1AI


Re: hacking the audio system of sbitx DE, V2, V3

 

I forgot to say that I use the term 'wisdom files' because it creates two files, one for single precision, another for double.

If one cherry picks Mark N8ME's changes to just use single precision and get rid of double, only one file is needed.

And if you are using Pi 5 you should not use any of the checked in files, they were made on Pi 4.

I actually think given how many different OSes and processors we have now and in the future, there should be no wisdom files checked in at all.

This means the first start is slow, which is very confusing to newbies, but maybe if we get rid of double precision it won't take so much time.

Ideally we'd post a "creating wisdom file, please wait" message on the UI followed by "done creating wisdom file" when appropriate.

I think each message can be posted with a single line of code.

Finally, I think my changes to put the wisdom files into $HOME/sbitx/data have not been merged.

Maybe I'll make a PR to improve this area, we shall see, or maybe someone else will beat me to it.

--
Regards,
Dave, N1AI


Re: #sBitx on Raspberry Pi OS 64-bit #sBitx

 

Paul,

I set my system time to London/Europe so it be in GMT and ran the sbitx from the command line and got this on
the output:
pi@sbitx:~/sbitx $ ./sbitx 
sbitx v3.02
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
ALSA lib pcm.c:8570:(snd_pcm_recover) underrun occurred
synchronised to unspecified at stratum 3 
   time correct to within 70 ms
   polling server every 512 s
Checking for valid NTP time ...Syncing RTC to 2024-01-31 02:31:28
Mode: LSB
Mode: LSB
Mode: USB
Mode: CW
The time is correct which was about 02:25 when I changed my system time but the title bar
displayed the time an hour short 01:31:xx. I wrote a little c program to do gmtime() and that worked and the "ntptime -r" command returns the correct time as well.

So I took the sbitx V3 software and installed it on the 64-bit OS along with my wiringpi and the sbitx software now shows the same time in GMT as the System clock.
Something has changed in version 3.02 to cause this. I suppose I could run a diff on the sbitx_gtk.c files of the two versions to see what's changed.
--
Jerry Ponko, AC9NM


Re: hacking the audio system of sbitx DE, V2, V3

 

On Fri, Jan 19, 2024 at 04:02 AM, Rafael Diniz wrote:
I just saw you added to the fft code the support for "wisdom" file. How is it created?
I'm sorry if this has already been answered but it has popped up again recently.

The wisdom file gets created by a function in the fftw library.? If the wisdom file is not present, the fftw runtime creates it.?? Once one is created, that same data is reused till it is erased.


I don't understand why we need to create some fft parameters in runtime, during initialization, from the received signal, as far as I understand (sorry my ignorance in DSP matters).
A bit of googling says "wisdom files contain saved information about how to optimally compute (Fourier) transforms of various sizes".? The parameters are created? at runtime based on how fast the current processor runs certain algorithms from the current fftw library.? As I understand it, all Pi 4s running the same code should create similar data.? It is not using the received signal, it is just running standard fftw kernels to figure out the best ones to use.

The real question is what happens if wisdom data is not used.? Our observation is the fftw run time picks algorithms at startup time but it's not clear how it does this.? What is clear is some times it makes bad choices.?? This is the source of the 'ghosts' or 'hallucinations' that were seen before Steve created the wisdom fix.

--
Regards,
Dave, N1AI


Re: SBITX v3 - Ability to use a Headset for phone modes

 

On Tue, Jan 30, 2024 at 11:17 AM, Paul wrote:
this was on the SBITX speaker, not the headset
Ok.?

hence the headset is more comfortable to listen to once I can get the volume/gain level right and ideally adjustable,
I have a range of old-school wired headsets and computer speakers to plug into the headset jack.? Audio could be better but not bad overall.

the headset volume is restricted by the amount of gain controlled by the loopback device used to test
Sorry if I'm being redundant but 'sox' can take a gain factor in db.?

so headset volume adjusted to max and it was easy enough to listen on 40m SSB earlier today even weak signals were audible in the headset compared to listening on the sbitx speaker which is a good improvement really.
Nice!

The logical next step (for playback anyway) now is to get the audio out of audioinjectorpi
Hope I'm not being too picky, but what comes out of audioinjectorpi is not audio, it's radio data that needs to be processed by software (DSP code) to get audio.

into a separate loopback (maybe the unused spare perhaps) as well as the ones used for digital so as not to upset the digital functions that seem to work well so far but volume control fixed in those, need it to be variable in the new Loopback.
I think the space needs to be investigated.? Ideally we'd have something like DAX for the Flexradio 6000 where the user could set up the different things they expect to send data or audio to, and then the software would deliver what is requested and nothing more.? Poor JJ, another app for him to write!? As far as I can tell the current software just writes to the two loopbacks all the time, regardless of if anyone is listening or not.

While I can figure out and read code to some extent I am not a programmer, logically, I would probably copy the code that drives loopback 0(hw:1,0) from hw:0,0 and use it to drive loopback 2(would be hw:3:0) so that hw:0,0 plays audio output to both loopbacks at the same time. That way the changes to drive another audio device can be made in isolation related to the new loopback device.
Repeat this process again for the Capture side of things if needed but just focusing on play for now.
That's certainly possible.

I did install gnuradio with a view to trying to draw this but bit of a learning curve :-)
Yes, I agree.? I was thinking of doing a little video at some point to show how I made this simple flowgraph and how easy it is to extend it.

The art of drawing in text? :-)
hw:0,0 >>>>>> Loopback,DEV=0 (hw:1,0) >>>>>>>> Loopback,DEV=1 (hw:1,1)? >>>>>>>>>>> Digital Software input
hw:0,0 >>>>>> Loopback_2,DEV=0 (hw:3,0) >>>>>> Loopback_2,DEV=1 (hw:3,1) >>>>>>>>>> Alternative Audio Device input i.e. USB Headset

Sort of makes sense to me but happy to be corrected
Makes sense.
?
--
Regards,
Dave, N1AI


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

My understanding is the classic generic radio to emulate via hamlib is the Kenwood TS-2000.

At least this is what the Flex product line does going back to the days of the Flex 1500 which I bought in the mid 2000s.

Seems this was a popular radio as hamlib was being developed.

I actually have one but have never attached it to any computer.

--
Regards,
Dave, N1AI


Re: Strong click when switching on the transmission #sBitx

 

It seems to me that there is only one satisfactory solution.
Headphones must be connected to the headphone jack.
Any other controls have no effect on this clicking sound.
I tried the volume, the tx driver, the cw delay.
Temporarily as if something happens, then it clicks again.
--
Gyula HA3HZ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

开云体育

JJ, that would be great. At a minimum just be able to set the frequency and possibly go into transmit mode. ?if there is a way to access the sound card so much the better but external sound cards can be used. ?

Thanks ! ?

I wrote a simple one for the ICOM emulation for the UB series and it worked


On Jan 30, 2024, at 14:02, JJ - W9JES <w9jes@...> wrote:

?On Tue, Jan 30, 2024 at 04:50 AM, Gordon Gibby wrote:
Why not create an emulation of either a Yaesu or ICOM radio so this radio can be used immediately? ?The uBitx series had this, which made it very attractive
?
Gordon KX4Z?
Hi Gordon,

I am currently developing an interface for this. It is rather complex to interface with the limitations of the sBitx code, so development is somewhat slow. I am also an independent developer/enthusiast not associated with HF Signals :)


-JJ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

On Tue, Jan 30, 2024 at 04:50 AM, Gordon Gibby wrote:
Why not create an emulation of either a Yaesu or ICOM radio so this radio can be used immediately? ?The uBitx series had this, which made it very attractive
?
Gordon KX4Z?
Hi Gordon,

I am currently developing an interface for this. It is rather complex to interface with the limitations of the sBitx code, so development is somewhat slow. I am also an independent developer/enthusiast not associated with HF Signals :)


-JJ


Re: Double or triple LOG saving #sBITX_v3

 

I think we're still not talking about the same thing. v3.02 gtk ui on the 7" screen. This is what I use.
There is a timeout in sbitx_gtk.c that sets it to two minutes. If you go over that, it will autolog save again whether you want it or not.
--
Gyula HA3HZ


Re: sBITX Toolbox - A great companion for the sBitx transceiver is now available for public release #file-notice #sBitx #sbitx_v2 #sBITX_v3 #wiki-notice

 

On Tue, Jan 30, 2024 at 01:41 AM, Paul wrote:
Looking good, curious, is the Compression level setting a hidden setting not available on the front panel?
Ideally mic gain ahould be increased and compression only used if really needed and at a fairly low level so wondering how I change the compression setting without the aid of the panel. Bringing it out to your panel makes it more accessible to get adjusted right.
Great work on developing this toolbox panel
Regards
Paul G0KAO
Hi Paul,

I have no idea why the sBitx programmers decided to hide the Mic Compression settings. I also agree that the compression level displayed in the image is incorrect. I set it to 40 manually just to test functions. Ideally the comp level should be much lower for real world applications and the mic gain should be adjusted first before any compression is added. Thanks for pointing that out and I appreciate your comments!


-JJ