Skip to content

Tuning fails when switching to XTAL #1719

Description

@mossmann

What type of issue is this?

permanent - occurring repeatedly

What issue are you facing?

If CLKIN was in use but the external clock signal has disappeared since the last transceiver operation started, an automatic switch to the internal crystal takes place at the start of the next transceiver operation. However, this switch typically happens after tuning, not before, resulting in a tuning failure due to lack of lock.

One way to fix this would be to continuously monitor CLKIN and switch to the best available clock while idle, not just when the transceiver mode changes.

What are the steps to reproduce this?

  1. Provide an external clock signal on CLKIN.
  2. Confirm CLKIN detected with hackrf_clock -i.
  3. Start RX and observe correct tuning.
  4. Stop RX.
  5. Remove external clock signal.
  6. Confirm CLKIN no longer detected with hackrf_clock -i.
  7. Start RX and observe incorrect tuning.

Can you provide any logs? (output, errors, etc.)

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions