Go Down

Topic: Arduino 1.0.1 on Macbook Pro 10.6.8 '/dev/tty.Bluetooth-Modem' already in use (Read 4440 times) previous topic - next topic

vixmedia

Please help.

I was running the latest version of Arduino about a week ago. Now it won't run.

I am using a Duemilanove board and I have tried using the cu option with the same results.

Already Tried ---

Rebooted -- started Arduino -- same error
Checked Java Extensions -- none
Looked at Activity monitor and shut down a couple of utilities
Looked for mac software updates -- none available through regular update

It was working . . .
Any suggestions?

'/dev/tty.Bluetooth-Modem' already in use


processing.app.SerialException: Serial port '/dev/tty.Bluetooth-Modem' already in use. Try quiting any programs that may be using it.
   at processing.app.Serial.<init>(Serial.java:171)
   at processing.app.Serial.<init>(Serial.java:92)
   at processing.app.SerialMonitor.openSerialPort(SerialMonitor.java:207)
   at processing.app.Editor.handleSerial(Editor.java:2447)
   at processing.app.Editor$17.actionPerformed(Editor.java:665)
   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 com.apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:95)
   at java.awt.MenuItem.processActionEvent(MenuItem.java:627)
   at java.awt.MenuItem.processEvent(MenuItem.java:586)
   at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:337)
   at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:325)
   at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:687)
   at java.awt.EventQueue.access$000(EventQueue.java:85)
   at java.awt.EventQueue$1.run(EventQueue.java:643)
   at java.awt.EventQueue$1.run(EventQueue.java:641)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:98)
   at java.awt.EventQueue$2.run(EventQueue.java:657)
   at java.awt.EventQueue$2.run(EventQueue.java:655)
   at java.security.AccessController.doPrivileged(Native Method)
   at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
   at java.awt.EventQueue.dispatchEvent(EventQueue.java:654)
   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)

Nick Gammon

Find the board device (/dev/tty.Bluetooth-Modem doesn't sound right to me) and then do lsof on it in a console window, eg.

Code: [Select]
$ lsof /dev/tty.usbmodemfa1421

COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
JavaAppli 9137 nick   47u   CHR 18,102     0t13 2981 /dev/tty.usbmodemfa1421

Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

vixmedia

Hello Nick,

I am not sure what you mean -- I have attached some screen shots.

The choice in the Arduino program and the error message both use the same terminology /dev/tty.Bluetooth-Modem

I do not know how to find any other name.

Thank you for any further information.

Regards,

Victoria






Nick Gammon

Those serial ports are exactly what I see with no Arduino plugged in. So it hasn't recognized it.
Please post technical questions on the forum, not by personal message. Thanks!

More info:
http://www.gammon.com.au/electronics

vixmedia

Hello Nick,

What does this mean?

I plugged the USB cable into the Arduino and the light came on.

However, I get the same error message if I have the Arduino plugged in or not.

Is there anything else I can try?

Thanks,

Victoria


mellis

The problem seems to be that the computer isn't seeing the Arduino board at all.

Maybe try a different USB cable?  Or if you've been going through a USB hub, trying plugging the board directly to the computer.

The Clever Monkey


Hello Nick,

What does this mean?

I plugged the USB cable into the Arduino and the light came on.

However, I get the same error message if I have the Arduino plugged in or not.

Is there anything else I can try?


I think you need to re-install the FTDI drivers for Mac. USB will happily power up a device and enumerate it, but it cannot be treated as a serial port until the drivers are installed.

Also, try a different USB cable.
I yield() for co-routines.

vixmedia

I think I might have solved the problem, but I will see if it continues to work.

I decided since that port was busy, I would create another serial port.

The apple help for this was good. http://docs.info.apple.com/article.html?path=Mac/10.6/en/5181.html

I created a new modem serial port '/dev/tty/Serial Port' and went back into the Arduino program.

I looked for the new serial port -- then I noticed that additional serial ports were now on the menu with numbers after them as you had talked about.

I tried that serial port and it worked.

Now I do not have the board hooked up, but opening the Arduino program, the port with the numbers following has disappeared . . . but the new port is there.

Stay tuned, when I get back from work I will be hooking it all up and trying again.

However, I did get it to work last night using this method.

I don't know why . . .

The USB cable works fine and the board responded perfectly -- the problem is in the Mac seeing the serial ports.

Thanks for your input and ideas.

Victoria

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy