Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 4 of 4

Thread: talking to teensy when plugged in to USB?

  1. #1
    Junior Member
    Join Date
    May 2021
    Location
    Charlotte, NC USA
    Posts
    10

    talking to teensy when plugged in to USB?

    I'm looking for a very generic way to send config data to teensy.

    I envision something like this:

    • open a GUI application that can detect the teensy (select it from a list of connected devices?)
    • select the teensy you want to talk to
    • In teensy land, press and hold a button to put your code into "config mode" which then waits to receive a message from the external application.
    • Back in the external app, type in your config string and click SEND to transmit data to selected teensy
    • teensy app then does something useful with the data and exits "config mode" etc.


    Is there a more or less generic GUI app that runs on windows/mac that would allow for this type of "connect and talk to teensy" thing to take place?
    I'm basically trying to avoid writing software that already exists.

    Thanks!

  2. #2
    Senior Member
    Join Date
    Apr 2014
    Location
    Germany
    Posts
    1,500
    If you don't need a customized GUI you can simply use https://github.com/Koromix/tytools to do the PC part of your tasks. Communication would be Serial or SerEmu (HID), whichever you prefer (TyCommander can handle both).

    Click image for larger version. 

Name:	Screenshot 2021-06-09 120438.gif 
Views:	17 
Size:	67.8 KB 
ID:	25005

  3. #3
    Junior Member
    Join Date
    May 2021
    Location
    Charlotte, NC USA
    Posts
    10
    Nice! I'll take a look, thank you @luni !

  4. #4
    Senior Member
    Join Date
    Nov 2015
    Location
    Cold hollow VT
    Posts
    201
    I do this as @LUNI mentioned by using serial commands. On the Teensy end I look for serial events.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •