I'm building some hardware where I've got half a dozen teensy3s digitizing samples and doing some filtering, then shooting them out the USB (pseudo com port). Naturally, the COM port number changes each time you fire the system up, but that one I have figured out. I ask each Teensy to send me back the MAC, which is unique, so then I know the mapping between physical device and COM port. It seems to work ok with the 4 I've got sitting on my desk.
BUT, how would I reprogram the device in-situ. I've done it by running multiple instances of the Arduino environment, but the teensy loader seems to get confused and it doesn't have a menu option for "com port". I've not thrashed systematically on this to figure it out. In any case, I'd like to be able to do it from the command line (so I can load all 6 as needed).
Is it possible to do it without pushing the button? perhaps via some USB shenanigans. I could put a "command" in my little program that says "go to bootloader mode" I suppose, in which case what does that code need to look like. If that command fails and I brick it, then I will have to open it up and push the buttons, one by one. (or, in my case, jumper the appropriate pins on a connector where I brought the PROG and RESET lines out)
BUT, how would I reprogram the device in-situ. I've done it by running multiple instances of the Arduino environment, but the teensy loader seems to get confused and it doesn't have a menu option for "com port". I've not thrashed systematically on this to figure it out. In any case, I'd like to be able to do it from the command line (so I can load all 6 as needed).
Is it possible to do it without pushing the button? perhaps via some USB shenanigans. I could put a "command" in my little program that says "go to bootloader mode" I suppose, in which case what does that code need to look like. If that command fails and I brick it, then I will have to open it up and push the buttons, one by one. (or, in my case, jumper the appropriate pins on a connector where I brought the PROG and RESET lines out)