Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CW Mode: start of first character clipped with external keyer or straight key #1011

Closed
ve3ids opened this issue Aug 21, 2017 · 34 comments
Closed
Labels

Comments

@ve3ids
Copy link

ve3ids commented Aug 21, 2017

I am having problems trying to use an external keyer or straight key. The internal keyer works great. The start of the character is clipped each time the mcHF goes to TX mode. If the txrx delay is increased, it will send ok as long as the delay is high enough so it doesn't drop between characters. At a word space it will mess up the first letter again. I have a version 6 with the August 19 daily build.
Thanks
Don ve3ids

@la2fda
Copy link

la2fda commented Aug 21, 2017

Like
#659 and #669 ?
I think you find a solution here.
73
Stein

@db4ple
Copy link
Collaborator

db4ple commented Aug 21, 2017

Hello Don,
according to my measurements when working at #669 we had about 23ms delay going from RX to TX in CW with straight key. There may be additional delay before we start processing the first character since we have to wait for the main UI to decide to go to TX. This delay depends a) interrupt load (filtering & DSP use) and the waterfall / scope settings. Please disable waterfall or scope ("increasing" speed to 0 will disable scope or waterfall) and test if this provides improvements.

73
Danilo

@ve3ids
Copy link
Author

ve3ids commented Aug 21, 2017

Hi Danilo and Stein,
Thanks for the info. That is the exact problem I am seeing. Disabling the bandscope and waterfall does help. External keying will work up to about 15 WPM now. Above that and it still messes up. I am assuming this is a processor loading issue that the small MCU can't handle? I tried increasing the TX initial mute delay and that made it much worse. I can send slowly with the hand key with the display turned off, it would be nice to have high speed external keying but I understand the hardware limitations. This would be a good feature to consider in the new design.
73 Don ve3ids

@db4ple
Copy link
Collaborator

db4ple commented Aug 23, 2017

Hi Don,
could you so kind to rename the issue to be a little more descriptive (I cannot do this). I would recommend to "CW Mode: start of first character clipped with external keyer or straight key" just to let the others know what this is about.

The problem is not directly a hardware problem, the SMT32F4 is absolutely capable of responding much faster, it is a problem of the current software architecture. I have an idea how to solve this but it is not trivial to implement so that it works without causing problems.

So stay tuned.
73
Danilo

@df8oe df8oe added the question label Aug 23, 2017
@ve3ids
Copy link
Author

ve3ids commented Aug 23, 2017

Thanks Danilo for your interest. I would like to have a solution to the problem and I realize it will be considerable work. I am really happy with all the other features of the rig and am amazed at the great features you fellows have been able to incorporate into it. I am enjoying it with the fine internal keyer in the meantime. Thank you for all the hard work that has been put into it.
72/73 Don VE3IDS

@ve3ids ve3ids changed the title External keyer or straight key CW Mode: start of first character clipped with external keyer or straight key Aug 23, 2017
@s53dz
Copy link
Contributor

s53dz commented Sep 10, 2017

Just for information about the CW dot values to help further:
An example:
at CW with WPM=20 and weight=1, a dot duration is 60 ms (which is slow) but
at CW with WPM=28 and weight=1, a dot duration is 44 ms.
So, I think for a normal CW the delay could be something like 10 % at the most.

73 Bojan

PS: Yes, an excellent internal keyer.

@flesnick
Copy link

I too am having the same issue of the first character being cut off if Inallow the break in to open or leave the space too long that the radio does break in. Have listened tonit on another radio and can confirm. And this is with a straight key and not the keyer
Fred VE3FAL

@df8oe
Copy link
Owner

df8oe commented Sep 26, 2017

We are reaching the edge of this little radio. I am not sure this can be fixed either because RX/TX switching needs a minimum of time (LO must be retuned, code for calculating sine waves must start and get "clean" output (first ms must be clipped).

So are is only workarounds: use the internal keyer or add a delay so that full BK is disabled. Using internal keyer we can delay the start without clipping the first dot reasonable.

I do not think mcHF will ever become a "high-speed CW TRX" and it is not yet constructed to reach this aim...

But if we are working on audio path maybe there are some ms to gain. We will see... Priority of this is not high because using internal keyer all is working well.

73
Andreas, DF8OE

@KS4L
Copy link

KS4L commented Sep 26, 2017

I have just discovered that my mcHF (0.6 boards, 2.5.72 firmware) also has this problem. I got the radio for CW, including straight key work for skcc, so this is a major disappointment for me.

73,
Randy, KS4L

@df8oe
Copy link
Owner

df8oe commented Sep 26, 2017

ALL mcHF s do have this "problem". The newer firmwares are much faster than the old ones so we already have made a huge improvement. But we are getting into regions where a few ms are disturbing highspeed - CW - but a few ms are definitely needed by software for getting from RX to TX, for switching relay from RX to TX ( and relay is MANDATORY because of pin diodes leads to very distroted TX signals). Additional to get rid of the "popp" at each TX start we must (!!) add a few ms of muted signal to every TX start.

Randy, I think you have choosen the wrong TRX for your working conditions... There are better ones - preferred no-SDRs...

If I am working in CW I use maximum speed of 18...20WM which is the maximum speed I can handle. At this speed I cannot see any issues.

73 de
Andreas, DF8OE

@ve3ids
Copy link
Author

ve3ids commented Sep 26, 2017

Andreas, will the OVI40 have straight key operation or external keyer operation? I would like to build the OVI40 as well but if it has this issue like the mcHF has, it won't do what I want it to do.

73 Don VE3IDS

@db4ple
Copy link
Collaborator

db4ple commented Sep 26, 2017

Hi,
please, do not speculate wildly, but read my comments in the upper part. The issue is related to the way the current software is written. It is not the speed of the processor as such, the STM32F4 is more than capable of doing CW first dit with an external keyer perfectly. But it requires a major rewrite of certain parts of the software. Consequently the OVI40 has the same problem as it shares most of the software with all other UHSDR devices (aka the mcHF).

73
Danilo

@KS4L
Copy link

KS4L commented Sep 26, 2017

In my opinion, any QRP transceiver that won't do a good job at CW is doomed.

73,
Randy, KS4L

@df8oe
Copy link
Owner

df8oe commented Sep 27, 2017

Hi Randy,

that is your conclusion drawn by your position of view. In my opinion UHSDR is already doing a good job in CW. Not a perfect one - all right. But you can work in CW with internal keyer with mainly any problems and if you want to use straight key (or external keyer) you only have to leave full bk or reduce the speed to speeds most CW QSOs do have.

There will come up the time we will completely redraw all audio functions and paths because the existing ones are not flexible and extendable in the way we want. This is a point where we will think about other structures and hopefully CW speed will rise up the speed which technically cannot be improved.

CW routines in radio are ~5% of code - we must stay carefully to not make radio unusable due to sporadic firmware crashes because of routines are left fast but "unclean".

73
Andreas, DF8OE

@df8oe
Copy link
Owner

df8oe commented Jan 30, 2018

tested with speeds up to 30WPM: no more reproduceable. At higher speeds may be.

@df8oe df8oe closed this as completed Jan 30, 2018
@KS4L
Copy link

KS4L commented Jan 30, 2018 via email

@ve3ids
Copy link
Author

ve3ids commented Jan 31, 2018 via email

@df8oe
Copy link
Owner

df8oe commented Jan 31, 2018

I cannot confirm and many others not, too. So I think it is configuration dependent or it is a hardware issue. Additionally it is not possible to improve there something without many, many, many work. So actually nobody will start there anything.

Again we are missing a test report from those who do have this issue, if disbaling waterfall/scope changes the behaviour.

73
Andreas

@ve3ids
Copy link
Author

ve3ids commented Feb 1, 2018 via email

@db4ple
Copy link
Collaborator

db4ple commented Feb 3, 2018

Please try if the next (!) build (2.7.88 or later) will reduce the issue. We added dropping out from display update (which is the most time consuming activity during CW). Please report your findings.

@ve3ids
Copy link
Author

ve3ids commented Feb 4, 2018 via email

@df8oe
Copy link
Owner

df8oe commented Feb 4, 2018

Thanks for aour report! I think we would have started that much earlier if someone would have posted test results w/o activated scope/wf.... But nobody has tried this before - so it seems not very urgent...

@db4ple
Copy link
Collaborator

db4ple commented Feb 4, 2018

Yes, I mentioned that this should be tested on Aug 21th 2017 in comment number 3 for this issue... can barely remember that. But github almost never forgets a thing..
Anyway, I am happy that we could improve this with a simple change (effectively 2 lines modified).
And to be clear, it is not a general cure for the underlying fundamental problem.

@KS4L
Copy link

KS4L commented Feb 4, 2018 via email

@db4ple
Copy link
Collaborator

db4ple commented Feb 5, 2018

Hi Randy,
please help us by testing .89 and .90 as well and tell us the version which broke CAT for you. Please use a separate (new) issue for that. It is most likely absolutely unrelated to the topic discussed here AND this issue is closed anyway.

TNX,
Danilo

@df8oe
Copy link
Owner

df8oe commented Feb 5, 2018

Hi Randy,

please feel free to post there in English. It is a multilanguage community - many developers come from Germany. So English AND German are the languages there. Bug reports indeed must be placed here on GitHub.

@df8oe
Copy link
Owner

df8oe commented Feb 5, 2018

Regarding CAT: I just tested from 88 to 91 but all versions do work flawlessly using same settings on software. Cannot confirm not working CAT.

@KS4L
Copy link

KS4L commented Feb 5, 2018 via email

@ve3ids
Copy link
Author

ve3ids commented Feb 5, 2018 via email

@df8oe
Copy link
Owner

df8oe commented Feb 5, 2018

It is not neccessary to change anything - everything works out-of-the-box as before.

@KS4L
Copy link

KS4L commented Feb 6, 2018 via email

@ve3ids
Copy link
Author

ve3ids commented Feb 6, 2018 via email

@KS4L
Copy link

KS4L commented Feb 7, 2018 via email

@ve3ids
Copy link
Author

ve3ids commented Feb 8, 2018 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants