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.

FRstack 3 UDP Broadcast format ?

Hi,

I'm trying to feed my Arduino based MagDeltaLoop system for 80/160 with the 6400 Slice's actual frequency and in this way want to autotune my loop.

I have setup/enabled UDP broadcasting in FRstack. I see packets sent using a sniffer and being received/decoded by the Arduino shield.

Q: what is format of the content format of these UDP packets?

Thanks in advance,
73, Kor - PA0KDV.

Comments

  • Alan
    Alan Member ✭✭✭✭

    XML:

    Here is an actual packet from my FRStack.

    <?xml version="1.0" encoding="utf-8"?><RadioInfo><app>FRStack</app><StationName>Maestro</StationName><RadioNr>2</RadioNr><Freq>43127471</Freq><TXFreq>43187471</TXFreq><Mode>FM</Mode><RadioMox>OFF</RadioMox><FocusRadioNr>3</FocusRadioNr><ActiveRadioNr>3</ActiveRadioNr><ActiveRadioMox>OFF</ActiveRadioMox></RadioInfo>

    Alan

    WA9WUD

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Hi Kor, there is an Arduino library for Flex written by Enzo, IW7DMH. This makes it easy to get information from the radio. I have modified it to work with V2.x and V3.x. It does require a TCP/IP connection, so the Arduino Due and ethernet shield work great for this. For less cost and higher performance, the Teensy 4.1 from PJRC is the best choice.

    With this library, you can go directly to the radio, and not have FRStack as a middleman.

    I plan on making my version of the library available on GitHub today or tomorrow. If you decide to go this route, I would be happy to help you to get it working.

    73,

    Len, KD0RC

  • Kor
    Kor Member
    edited January 2021
    Thanks Alan & Len for your swift insights !
    vy 73, Kor.
  • Kor
    Kor Member
    > @KD0RC said:
    > Hi Kor, there is an Arduino library for Flex written by Enzo, IW7DMH. This makes it easy to get information from the radio. I have modified it to work with V2.x and V3.x. It does require a TCP/IP connection, so the Arduino Due and ethernet shield work great for this. For less cost and higher performance, the Teensy 4.1 from PJRC is the best choice.
    > With this library, you can go directly to the radio, and not have FRStack as a middleman.
    > I plan on making my version of the library available on GitHub today or tomorrow. If you decide to go this route, I would be happy to help you to get it working.
    > 73,
    > Len, KD0RC

    Hi Len,
    I have been trying to Enzo's stuff but so far not able to connect to the 6400. His Tes01 example returns UDP data, but the IP adress returned is different from what the UDP packet says. See below capture.

    Can you share your updated library that you are using in your project?

    Thanks for your help.

    === Started DHCP request
    === Waiting for IP address
    IP address is: 192.168.1.63


    ===Looking for Flex Rig (UDP)===

    FLEX-6400
    3218-8630-6400-2236 version=3.1.12.51 nickname=Kor callsign=PA0KDV ip=192.168.1.55 port=4992 status=Available inuse_ip=192.168.1.54 inuse_host= max_licensed_version=v3 radio_license_id=00-1C-2D-05-09-4E requires_additional_license=0 fpc_mac= wan_connected=0 licensed_clients=2 available_clcFLEX-6400_panadapters=2 available_panadapters=1 max_slices=2 available_slices=1 gui_client_ips=192.168.1.54 gui_client_hostsssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssssss
    ===========Flex Rig=============
    IP Address:105.108.97.98<
    Model Name:FLEX-6400 serial=3218-8630-6400-2236 version=3.1.12.51 nickname=Kor callsign=PA0KDV ip=192.168.1.55 port=4992 status=Available inuse_ip=192.168.1.54 inuse_host= max_licensed_version=v3 radio_license_id=00-1C-2D-05-09-4E requires_additional_license=0 fpc_mac= wan_connected=0 licensed_clients=2 available_clcFLEX-6400_FLilab
  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Hi Kor, well, it looks like you are making good progress! I just sent you the libs that I modified to your QRZ.com e-mail. Note that they are for a Teensy 4.1 board, not an Arduino so I don't know if they will work or not. The NativeEthernet.h library is strictly for the Teensy 4.1, Arduino uses Ethernet.h. The only change is to the NativeEthernet.cpp file - I changed the time out from 60000 to 6000 (from 1 minute to 6 seconds).

    When you start your Arduino, do you already have SmartSDR running? If not, that might explain the IP addresses.

    Here is what I get when I connect (I have probably got some additional print statements in there from when I was debugging):

    === Started DHCP request

    === Waiting for IP address

    IP address is: 192.168.0.25

    TeensyMaestro IP: 192.168.0.25

    ===Looking for Flex Rig (UDP)===

    packetSize: 608

    FLEX-6400

    0720-1014-6400-xxxx

    ===========Flex Rig=============

    IP Address:192.168.0.16<

    Model Name:FLEX-6400<

    Serial:0720-1014-6400-xxxx<

    Version:3.1.12.51<

    NickName:Len.6400<

    FLEX-6400

    0720-1014-6400-xxxx

    Len.6400

    3.1.12.51

    537142100

    Found

    connecting to Flex rig: 192.168.0.16.

    Connected

    5445932B

    M10000001|Client connected from IP 192.168.0.25

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.