Welcome to the new FlexRadio Community! Please review the new Community Rules and other important new Community information on the Message Board.
If you are having a problem, please refer to the product documentation or check the Help Center for known solutions.
Need technical support from FlexRadio? It's as simple as Creating a HelpDesk ticket.

The Tune button and the API ....

arwhite
arwhite Member ✭✭
I'm using Arduino library by IW7DMH (thank you) to successfully interface with a 6400, (HB SSPA & HB ATU).

Sorry if I have missed the obvious, however is there a means to determine if the 6400 is in Tune rather than TX mode?
73
Many thanks
Andrew G1RVD

Best Answer

  • KD0RC
    KD0RC Member, Super Elmer Moderator
    Answer ✓

    Hi Andrew, Yes!

    Look in the G09_TransmitEvents.ino file in Enzo's library:

    In my case, I am just using the fact that the Tune button in SmartSDR was pressed to take my TeensyMaestro out of screen saver mode.

Answers

  • arwhite
    arwhite Member ✭✭
    Ah ... Thank you Len.

    Also ... thank you for your efforts to keep the Library alive.
    I've ported it to an Arduino GIGA with only one change necessary. The GIGA and an external W5500 Ethernet board, didn't like having interrupts suspended in the int FlexRig::send(String cmd, int parserId) function in FlexRigTeensy.cpp around line 108.
    Otherwise, although I'm still learning my way around, evidenced by my question, it seems to work well.
    73
    Andrew
  • KD0RC
    KD0RC Member, Super Elmer Moderator

    I'm glad it is working for you Andrew! What are you building with your GIGA?

  • arwhite
    arwhite Member ✭✭

    Hi Len,

    I'm building a SSPA using the Ampleon ART2K using W6QPL/DJ0ABR's designs as inspiration. Plus a Vacuum Cap & roller inductor auto ATU, driving an antenna switcher. The LPF is driven from the Flex API (seems to be working).

    Could I ask you another question: What's the best way to determine that the Flex has entered RX mode, i.e. stopped TX or Tuning?

    73 Andrew

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Hi Andrew, It's not intuitive, but look in G08_InterlockEvents.ini for the state_event:

    That is the only one I use, so I commented out the rest to save space.

    In the onInterlock_state() routine, I test for the word "TRANSMITTING" to determine if it is transmitting for any reason, including the tune button. There are several other states, but I can't remember what they all are now. A Serial.print(fRig.interlock.state) statement will show you the states that the radio goes through as it transitions from RX to TX and back. For most purposes, just testing fRig.interlock.state for equal or not equal to "TRANSMITTING" should suffice.

    In this example, I am only using the transmitting state to turn on and off a little red circle to annunciate transmit status on the screen.

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    I'm building a SSPA using the Ampleon ART2K using W6QPL/DJ0ABR's designs as inspiration. Plus a Vacuum Cap & roller inductor auto ATU, driving an antenna switcher. The LPF is driven from the Flex API (seems to be working).

    Wow, that is an ambitious project! You won't likely run out of IO pins with that Giga board!

  • arwhite
    arwhite Member ✭✭

    Hi Len,

    The interesting feature of the GIGA is dual cores. I have the smaller (M4) core sensing real time signals like the power meters and stepper motor POTs (& controlling the steppers), and the larger M7 core handing the slower communications tasks (mqtt to node-red and CAN to the power supply, etc).

    It's not working yet … let's see 😀

    Thank you for your tips. They save an awful lot of time.

    73 Andrew

  • arwhite
    arwhite Member ✭✭

    The Flex seems to send READY when coming out of TX.

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Ah, that's right. I can't remember why that did not work well for me. I found that the TRANSMITTING message was the one for my needs.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.