Giter VIP home page Giter VIP logo

teensy4_usb_host_rs-hfiq_library's Introduction

Teensy4_USB_Host_RS-HFIQ_Library

Teensy 4.0 or 4.1 USB Host Port serial control for the 5W RS-HFIQ SDR transceiver placed into the Public Domain.

This is the initial version designed originally to work with my SDR_RA887x Teensy-based SDR radio (https://github.com/K7MDL2/KEITHSDR) but can be used easily by any other Arduino Teensy 4 app.

I am using this library today for normal tuning and also free-form command entry from the USB serial terminal. As of Dec 2022 I changed the CAT interface portion to follow the Elecraft K3/Kenwood protocol to work with WSJT-X (which uses hamlib). I will eventually pull all the CAT command code out in favor of a centralized CAT module separate of the RS-HFIQ code.

You can see how I use this library in my Teensy SDR by searching my SDR_887x code for "$define USE_RS_HFIQ" in the code at https://github.com/K7MDL2/KEITHSDR/tree/main/SDR_RA8875

Uses the Teensy 4 CPU USB host port. The RS-HFIQ uses 150ma over that USB host port so you need a decent 5V supply to account for this.

Contains 2 Arduino terminal program examples to do all commands the RS-HFIQ supports.

a. SDR_RSHFIQ_.ino was the test program used to figure out how it all worked and is self-contained. It does not use the library. b. SDR_RSHFIQ_Lib.ino shows how to use the library and does the same thing as the non-library version.

This permits control via Omni-Rig1 and (and maybe Omni Rig2) interface from PC or Linux SDR programs because the serial interface will accept all commands in the same format the RS-HFIQ accepts. Omni-Rig1 seems to work best so far for me. (Not I have since switched to Elecraft K3/Kenwood in the SDR_887x program version of this lib.

This version uses an internal band map table that ensures any serial terminal request frequency is within the band limits. Invalid requests are ignored and returns a value of 0 to the caller. Otherwise it returns the new valid frequency and a band number. The band number is useful for forcing updates on band changes when multiple VFOs are involved. Can do your own band number lookup based on the returned frequency and ignore the one supplied.

The initialization process has some pecularities that have been worked out by trial and error. The library and now the test program now both share the same startup code which has shown to be reliable. Once in a while a query following a setting returns the wrong or previous query value. 2nd attempt usually get the right answer.

The B, D and E set frequency offset commands are now supported as of April 18,, 2022. The B (BIT - Built-In-Test signal) accepts and reports the right vaules but I have yet to hear the test signal. D is offset, and and E is external RF signal on the ext SMA jack near an endplate (jack is unpopulated). These values are stored in EEPROM so take that into account during reboots and such.

teensy4_usb_host_rs-hfiq_library's People

Contributors

k7mdl2 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

teensy4_usb_host_rs-hfiq_library's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.