Welcome to the 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.

TeensyMaestro

1141516171820»

Comments

  • K3CDY
    K3CDY Member ✭✭✭

    Oleg -

    Just curious, why aren’t you using the ribbon cable that comes supplied with the Ethernet kit? That could eliminate a possible variable in your situation.

  • NV0E
    NV0E Member ✭✭

    Hi Oleg,

    I noticed that you're not using the Teensy 4.1 Ethernet Kit for the wires between the Teensy 4.1 and the MagJack. (https://www.digikey.com/en/products/detail/sparkfun-electronics/18615/15775140)

    How long is your connection? Is each wire in the R+/R- and T+/T- pair the same length?

    Because R+/R- and T+/T- are differential pairs, the wires in each pair should be the same length and shouldn't be too long. I haven't tested what works, but MS Copilot suggests that more than 20cm in length or a difference (skew) of more than about 1cm in a pair might be problematic. (Twisting each pair would help too).

    Since the Ethernet PHY only supports 10/100 Mbps its going to be a bit more tolerant of these lengths than 1Gbps. But if you have wires that are a couple of meters long, then it would definitely be an issue.

    As Bill said, using the standard kit might eliminate that as a potential issue.

  • SM6KZW
    SM6KZW Member ✭✭

    Hi Len,

    First of all, thank you for making TeensyMaestro available to the community. I am building a V2.001 project on HW V2 and I am very pleased with both the hardware and software, and the functionality it provides.

    My FlexRadio is located at a remote QTH in the forest, with no PC or server present, just the FlexRadio and a router. I access the radio via VPN (TAP mode), where the router acts as the server. This setup works fine, my PC connects and I can run SmartSDR locally.

    Initially, I tried to bridge my PC’s OpenVPN connection to the TeensyMaestro using an external USB Ethernet dongle. While it kind of worked, Windows had difficulty passing DHCP across the bridge, and I had to resort to using a static IP for the TeensyMaestro. Unfortunately, the bridge introduced networking quirks on the Windows side, so I started searching for a cleaner solution.

    Connection Modes

    I modified the code to support three different connection modes specified in the MMConfig.ini:

    Auto Discovery: Behaves like the original TeensyMaestro, using Flex UDP discovery on the local LAN.
    Fixed: Connects directly to a specified hostname or IPv4 address (with port).
    Fixed + Failover: Tries the fixed hostname/IP first, and if that fails, falls back to Auto Discovery.

    This means that my TeensyMaestro can now connect to any FlexRadio across the Internet, independent of the PC. I just plug it into any network outlet with Internet access,and it connects directly to my radio. For many Flex owners with remote stations, this is a common use case.

    MTP / SD Card Access

    The only part I have not been able to get working reliably is MTP (to expose the SD card to Windows as a portable device). With the original precompiled HEX file, I sometimes saw the Teensy SD card appear as a drive in Windows, but after building my own firmware it never shows up. I would very much like to know exactly which MTP and SD libraries you used, which versions, and whether you had to apply any patches or shims to make it work reliably.

    Main Question

    Do you think it is acceptable that I use and extend your source code in this way for private use? If so, would you also be interested in a pull request or patch set with my changes, so this capability could be included in the official firmware? I currently keep my changes in a private GitHub repo, but I believe many users would benefit from being able to connect their TM directly to their FlexRadio without setting up double SoftEther servers or complex bridging workarounds.

    Thank you again for all the work you have put into TeensyMaestro. I am very impressed with what it can do,and I would be happy to contribute back if you think this direction makes sense.

  • KD0RC
    KD0RC Member, Super Elmer Moderator

    Hi, yes what you are doing is completely appropriate. I would be interested in adding your functionality. I currently use the SoftEther VPN to connect remotely and it has been very reliable. My bigger challenge is finding camping spots that have enough cell service to allow remote operation!

    I am on a road trip this week with very limited cell service, so I may be delayed in any responses here. Once I get home, I will be adding 2BISQ functionality, so that will take precedence. Once that is working, I will have time to look at your code.

  • R8ct
    R8ct Member
    I tried to check Teensy ethernet shield functioning uploaded sketch
    https://drive.google.com/file/d/1_dJw_sNbGwf28g2VU3UJabM_xejgI_7N/view?usp=sharing
    But still no success.
    Router is no determining Teensy board.
    I would be grateful for any recommendations.
    Regards, Oleg
  • R8ct
    R8ct Member
    edited 6:03PM
    BILL K3CDY - Thank you.
    I am using DIY cable 'cause at nearest electronic shop has no ribbon cable.
    Simon, NV0E - thank you.
    Lenght of DIY cable is 13 cm long
    https://drive.google.com/file/d/1uYmVq5iVXrFdmQ82rSx_IFPPYIOL8wLe/view?usp=sharing

    Regards, Oleg

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.