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

PTT Triggered by DATA with cat control (V drop from 3.3v to 1.5v on PTT line when serial data is being sent to radio) #34

Closed
ITCMD opened this issue Jul 19, 2023 · 16 comments

Comments

@ITCMD
Copy link

ITCMD commented Jul 19, 2023

Sorry for yet another issue to respond to! I know you're busy and I hate taking up your time

I wired up my FT-857D to an AIOC. It works well. I can use it like a digirig with audio and PTT, and I can also do cat control and programming. However, I cant do cat control and audio in and out at the same time. If I have both cables plugged in at once, it constantly toggles PTT over and over again for very short intervals (same speed as the TX of data).

image

Is this expected behavior? Is it possible to do something like CAT control while also using the soundcard and PTT features of the AIOC perhaps by adding another component in my wiring or by rearranging the wires some?

@ITCMD
Copy link
Author

ITCMD commented Jul 19, 2023

Probing with the multimeter, PTT and PTT GND isnt shorted when TXing serial data, but when it's not transmitting serial data (to the radio) the voltage is 3.3 volts across PTT and PT GND. When it transmits, the voltage drops to 1.5v. From my understanding, this is enough to trigger a lot of PTT circuits despite the standard being 2v (only .2 v off)

Compare this to when PTT is actually triggered, and the voltage is 0.

One possible workaround it to add a switch to my PTT line and simply use CAT PTT when doing rig control.

@ITCMD ITCMD changed the title PTT Triggered by DATA with cat control PTT Triggered by DATA with cat control (V drop from 3.3v to 1.5v on PTT line when serial data is being sent to radio) Jul 19, 2023
@ITCMD
Copy link
Author

ITCMD commented Jul 21, 2023

Wanted to add, this happens on both the standard and virtual ptt firmware.

@ITCMD
Copy link
Author

ITCMD commented Jul 24, 2023

Tested this on a few more radios (FT-100d, 878d, Xiegu G90) and am having the same issue. When any data communication goes on, it triggers PTT.

@ITCMD
Copy link
Author

ITCMD commented Jul 26, 2023

Sorry to bug ya! Just wanted to add some activity here in case this issue got lost in the inbox. You're likely just busy with things which I totally get. @skuep

@skuep
Copy link
Owner

skuep commented Jul 27, 2023

Not lost at all! Just a bit swamped with work and health currently. I am planning to look into it this or next weekend.

@ITCMD
Copy link
Author

ITCMD commented Jul 28, 2023

Gotchya, thanks so much Simon! I certainly get that.

@skuep
Copy link
Owner

skuep commented Jul 30, 2023

Sorry for yet another issue to respond to! I know you're busy and I hate taking up your time

I wired up my FT-857D to an AIOC. It works well. I can use it like a digirig with audio and PTT, and I can also do cat control and programming. However, I cant do cat control and audio in and out at the same time. If I have both cables plugged in at once, it constantly toggles PTT over and over again for very short intervals (same speed as the TX of data).

Okay, so we are now getting into the hacky territory? :-) That's not a HT right? That's a "real" radio, that you can remotely control (CAT) and has audio in/out. I like this, and I think the AIOC should be able to work with something like this. The AIOC has been designed with HT's in mind, so that means the serial port and PTT can only work exclusively (because they are on the same pad essentially). But those radios should be close enough to make it work.

image

Is this expected behavior? Is it possible to do something like CAT control while also using the soundcard and PTT features of the AIOC perhaps by adding another component in my wiring or by rearranging the wires some?

If I understand you correctly, that is the (current) expected behaviour. Due to the PTT line being connected to the TXD (Radio RXD) line, the firmware is designed to clear any PTT when it receives a "write serial data" command from the PC. That alone should probably be an issue or is it? Or does the PC only send commands to the radio during transmit silence (PTT off)? Then it should be okay.

However, the second (your) problem is, that the PTT and Radio-RXD are shorted on the AIOC. Thus, each time the PC sends some data, the PTT pin state will change! (They are connected after all. This is not a problem with HT's since this situation does not arise.)
Currently, I can see the following solution:

  1. Remove R13, this will remove the PTT from the serial line. The problem should be gone, but you won't have any PTT anymore
  2. Connect your PTT wire directly to one of the pads of where R13 (see image) was

For a better solution, I could offer you the PTT2 pin (see image in grey), which is currently only accessible using the CM108 feature on GPIO3. It would require some firmware changes to make it configurable, so that the AIOC uses PTT2 pin instead of PTT(1). Since I have configurability of the AIOC planned for the near future (using a simple python tool), this could be a good solution. In this case, you won't need to solder anything (since PTT1 will not interfere with any serial commands) and the radio's PTT will be controlled using the "exclusive" PTT2 pad which does not share functionality.

Untitled

Btw, why is the MIC ground connected to the serial pin? Is that correct?

@ITCMD
Copy link
Author

ITCMD commented Jul 31, 2023

All good ideas. Currently leaving PTT disconnected is my solution, since CAT control can work to trigger PTT, although I'd like to have the ability to hotswap between rig control ptt and AIOC's ptt without having to flip a switch or solder or something (as some apps dont support rig control).

Removing R13 and connecting to that PTT pad in red, that would isolate PTT from the rest? That sounds like a good temporary solution.

The firmware to use PTT2 would be excellent down the road once the python script is done more.

As far as MIC ground connected there, that's what is expected for the official kenwood jack connection standard. I think it works because it gets shorted when PTT is triggered, which it always would be for most MIC input... hmmm

For reference, I based this on:
image
and
image

I think I had one customer wire it to the same ground as speaker and it also worked, so that might be better for compatibility.

Thanks so much for your help!

@ITCMD
Copy link
Author

ITCMD commented Sep 5, 2023

@skuep - was thinking it might be beneficial to start an issue to track the python script. I'd also be willing to put $100 towards your development process of this PTT firmware and the management script. Let me know if this would be significantly helpful.

@skuep
Copy link
Owner

skuep commented Sep 5, 2023

I think issue #30 is already a good start. You can consolidate your feature request proposal regarding configurability of PTT2 in that issue.

I am sorry that I have not yet gotten around to do it. Unfortunately until mid of September I am still not able to, due to work travel. Thanks for your offer anyway but I think I would rather remain independent :-)

@ITCMD
Copy link
Author

ITCMD commented Sep 7, 2023

I think issue #30 is already a good start. You can consolidate your feature request proposal regarding configurability of PTT2 in that issue.

I am sorry that I have not yet gotten around to do it. Unfortunately until mid of September I am still not able to, due to work travel. Thanks for your offer anyway but I think I would rather remain independent :-)

I missed #30, thanks! All totally understandable, and no rush. Just figured if it helped I wouldnt mind throwing support your way with no strings or expectations. I pray work and travel goes well!

@skuep
Copy link
Owner

skuep commented Nov 4, 2023

Have you had another go at the feature? Would be interesting to know if changing to the PTT2 setting works using the HID Python script.

@ITCMD
Copy link
Author

ITCMD commented Nov 6, 2023

I have not, missed your comment on the phython script! I'll have to take a look and figure out how to use it in the coming weeks!

@skuep
Copy link
Owner

skuep commented Dec 31, 2023

Good news, the next hardware revision will have a split-pad for the PTT1/RX signal so you can actually use both signals separately, if you're not using the K1 layout.
Also, PTT1 and PTT2 will be input-capable as well.

Screenshot from 2023-12-31 14-00-52

@skuep
Copy link
Owner

skuep commented Mar 24, 2024

I will close this issue for now. I will let everyone know when the next hardware revision arrives.

@skuep skuep closed this as completed Mar 24, 2024
@ITCMD
Copy link
Author

ITCMD commented Jun 1, 2024

Hi @skuep,

Picking up on this project again. Trying to refresh my memory on some of this. Got busy moving / graduating / getting married.

Not sure if it's available yet - Where can I download the second hardware revision? Id like to take advantage of the split ptt and serial pads on my next big order.

I also hope to customize the design a bit to add some resistors and bring the output serial voltage down to 3.3v on an optional pad.

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

No branches or pull requests

2 participants