Skip to content

TX starts delayed. #44

Description

@aknrdureegaesr

We see a stream of complaints about TX being delayed, with the delay increasing over time. This is not that bug, but trying to look into the matter, I found some peculiarity. In this off-the-air test run, I was in turbo mode.

I first see a lot of activity to set up everything for sending, at the right time (18 seconds after the minute, for turbo mode):

configuration.js8: 25-11-17T17:23:18.000Z: Configuration::transceiver_online:  Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: off; PTT: off)
configuration.js8: 25-11-17T17:23:18.000Z: Configuration::transceiver_frequency: 3578000 Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: off; PTT: off)
mainwindow.js8: 25-11-17T17:23:18.000Z: Setting PTT to on
configuration.js8: 25-11-17T17:23:18.000Z: Configuration::transceiver_ptt: true Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: off; PTT: off)
transceiverbase.js8: 25-11-17T17:23:18.000Z: "TransceiverBase::set:" #: 3 Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: off; PTT: off)
transceiverbase.js8: 25-11-17T17:23:18.000Z: "TransceiverBase::set:" #: 4 Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: off; PTT: on)
transceiverbase.js8: 25-11-17T17:23:18.000Z: "HamlibTransceiver::do_ptt:" true Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: unknown; PTT: off) reversed = false
mainwindow.js8: 25-11-17T17:23:18.001Z: -> msg: SXB1E+sAV+++                
mainwindow.js8: 25-11-17T17:23:18.001Z: -> bit: 5
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 0 = 0
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 1 = 6
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 2 = 2
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 3 = 3
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 4 = 5
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 5 = 4
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 6 = 1
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 72 = 2
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 73 = 5
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 74 = 0
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 75 = 6
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 76 = 4
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 77 = 1
mainwindow.js8: 25-11-17T17:23:18.001Z: -> tone 78 = 3
configuration.js8: 25-11-17T17:23:18.005Z: Configuration::handle_transceiver_update: Transceiver State #: 3 Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: unknown; PTT: off)

But then, instead of sending right away, a 100 ms delay happens:

configuration.js8: 25-11-17T17:23:18.101Z: Configuration::handle_transceiver_update: Transceiver State #: 4 Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: unknown; PTT: on)
mainwindow.js8: 25-11-17T17:23:18.101Z: MainWindow::handle_transceiver_update: Transceiver::TransceiverState(online: yes Frequency {3578000Hz, 0Hz} Transceiver::DIG_U; SPLIT: unknown; PTT: on)
mainwindow.js8: 25-11-17T17:23:18.101Z: Asking the modulator to emit audio.
modulator.js8: 25-11-17T17:23:18.101Z: Starting 101 ms late into transmission, cutting away initial symbol(s).
modulator.js8: 25-11-17T17:23:18.101Z: Symbol transmission to start immediately.
soundout.js8: 25-11-17T17:23:18.101Z: SoundOutput::restart Selected audio output format: QAudioFormat(48000Hz, 1 Channels, Int16Format)

As the log shows, this causes a too-late start of transmit. In turbo mode, like here, this causes the initial symbol to be dropped.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions