skuep / AIOC

Ham Radio All-in-one-Cable
MIT License
701 stars 55 forks source link

Auto-PTT and Auto-COS Feature (Built-in High-Performance Low Latency VOX) #19

Open skuep opened 1 year ago

skuep commented 1 year ago

Referencing comment https://github.com/skuep/AIOC/issues/11#issuecomment-1414191015_

I like "Auto-PTT". Nice! Before implementing this feature I would like to add a HID endpoint for configuring the AIOC. Then we can decide whether we choose the Manual-PTT (current) or the Auto-PTT as default setting. Since you said that even the SignaLink does it, I am a bit more convinced. CM119A based GPIO should be quite easy to implement btw.. If you think it's worthwhile.

The idea is to implement AIOC-based "Auto-PTT", which is basically a fancy VOX feature for digital modes, with very low latency.

Ideas/comments/feature welcome!

EDIT: Branching off of issue https://github.com/skuep/AIOC/issues/17

The "plan" from https://github.com/skuep/AIOC/issues/17#issuecomment-1552875701:

Got ya. I have thought about how I could go about it with my slim resources. What about the following plan:

  1. Implement a simple Auto-PTT and Auto-COS using a threshold of the digital data and a time-out. Is the data above the threshold, enable PTT and reset the time-out. If the time-out expires (e.g. 1ms or 10ms), disable PTT
  2. For now, release two firmware binaries, one with Auto-PTT enabled and also the "regular" firmware (PTT via serial/CM108 only).
  3. Profit At some point in the future, set Auto-PTT as default, if it turns out, that it is more requested, than the current default (serial/CM108). And/or include a configuration feature, where you can configure the AIOC using a python script (and a currently unused HID endpoint). Enable/Disable various PTT sources and set threshold/timeout.

I know we have had this discussion before on whether we should make Auto-PTT enabled by default. But I have not yet found a decisive argument for that (except that SignaLink does it too... IIRC).