Emulated serial monitor issues...

Status
Not open for further replies.

MuShoo

Well-known member
So, not sure what's causing this. I can't get the Serial Monitor to connect to any instance of an 'emulated' Serial/USB connection.

At first I thought it might have been my hacking away at the MIDI HID descriptors, but it's occurring in all emulated-serial USB types, on Teensyduino 1.19 (with my halfway-finished hacks of the MIDI descriptors) and on another copy of Teensyduino, version... I'm actually not sure how to check that, but it has clean MIDI/USB descriptors. Then I thought, maybe it's because I'm using a custom board with two MINI54's and 2 MK20's (Teensy 3.1 ones, I forget the exact model number) with an onboard USB hub controller. So I tried it with some official PJRC 3.1's, still no luck.

The straight up 'Serial' usb type works fine. On my custom PCB, both processors are recognized as distinct serial ports and work great - but I need to be able to look at the Serial Monitor while debugging and testing these USB MIDI HID Descriptor changes!

I've tried rebooting Arduino (both versions I've got), I've tried rebooting the computer itself, nothing seems to work.

MacPro5,1 (2012), 2x 3.46GHz 6-core Xeons, 32gb RAM, OSX Mavericks 10.9.4. Arduino 1.0.5/Teensyduino 1.19.

Here's the error I get:

Code:
  This report would have more information with
  "Show verbose output during compilation"
  enabled in File > Preferences.
Arduino: 1.0.5 (Mac OS X), Board: "Teensy 3.1"
Binary sketch size: 12,120 bytes (of a 262,144 byte maximum)
Estimated memory use: 3,816 bytes (of a 65,536 byte maximum)
Error starting teensy_gateway
Error starting teensy_gateway
processing.app.SerialException: no connection
	at processing.app.FakeSerial.<init>(SerialMonitor.java:274)
	at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:229)
	at processing.app.Editor.handleSerial(Editor.java:2593)
	at processing.app.Editor$17.actionPerformed(Editor.java:681)
	at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2028)
	at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2351)
	at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
	at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:389)
	at javax.swing.AbstractButton.doClick(AbstractButton.java:337)
	at javax.swing.plaf.basic.BasicMenuItemUI$Actions.actionPerformed(BasicMenuItemUI.java:778)
	at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1645)
	at javax.swing.JComponent.processKeyBinding(JComponent.java:2859)
	at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:670)
	at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
	at javax.swing.JMenuBar.processBindingForKeyStrokeRecursive(JMenuBar.java:678)
	at javax.swing.JMenuBar.processKeyBinding(JMenuBar.java:649)
	at javax.swing.KeyboardManager.fireBinding(KeyboardManager.java:267)
	at javax.swing.KeyboardManager.fireKeyboardAction(KeyboardManager.java:254)
	at javax.swing.JComponent.processKeyBindingsForAllComponents(JComponent.java:2936)
	at javax.swing.JComponent.processKeyBindings(JComponent.java:2928)
	at javax.swing.JComponent.processKeyEvent(JComponent.java:2822)
	at processing.app.syntax.JEditTextArea.processKeyEvent(JEditTextArea.java:1726)
	at java.awt.Component.processEvent(Component.java:6191)
	at java.awt.Container.processEvent(Container.java:2084)
	at java.awt.Component.dispatchEventImpl(Component.java:4776)
	at java.awt.Container.dispatchEventImpl(Container.java:2142)
	at java.awt.Component.dispatchEvent(Component.java:4604)
	at java.awt.KeyboardFocusManager.redispatchEvent(KeyboardFocusManager.java:1856)
	at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(DefaultKeyboardFocusManager.java:722)
	at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(DefaultKeyboardFocusManager.java:1000)
	at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(DefaultKeyboardFocusManager.java:865)
	at java.awt.DefaultKeyboardFocusManager.dispatchEvent(DefaultKeyboardFocusManager.java:686)
	at java.awt.Component.dispatchEventImpl(Component.java:4648)
	at java.awt.Container.dispatchEventImpl(Container.java:2142)
	at java.awt.Window.dispatchEventImpl(Window.java:2492)
	at java.awt.Component.dispatchEvent(Component.java:4604)
	at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:717)
	at java.awt.EventQueue.access$400(EventQueue.java:82)
	at java.awt.EventQueue$2.run(EventQueue.java:676)
	at java.awt.EventQueue$2.run(EventQueue.java:674)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:97)
	at java.awt.EventQueue$3.run(EventQueue.java:690)
	at java.awt.EventQueue$3.run(EventQueue.java:688)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:86)
	at java.awt.EventQueue.dispatchEvent(EventQueue.java:687)
	at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:296)
	at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:211)
	at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:201)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:196)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:188)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)

And here's the extremely simple sketch I'm using:

Code:
void setup(){
   Serial.begin(9600);
}
void loop(){
   delay(2000);
   Serial.println("yes!");
}
 
Welllll... problem sort of jankily solved. If I MANUALLY run the teensy_gateway program from Terminal, I get Serial Monitor access again. So the problem appears to be that my computer doesn't want to automatically load up teensy_gateway directly from Arduino.app. Any ideas as to why that might happen?
 
Status
Not open for further replies.
Back
Top