OS X 10.10 Driver/Port Issues

Ringo setup, hardware, basic programming. User to user support.
darrshar
Posts: 5
Joined: Fri Sep 18, 2015 2:28 am

OS X 10.10 Driver/Port Issues

Postby darrshar » Fri Sep 18, 2015 2:36 am

After uninstalling the Apple drivers, and installing the FTDI 2.3 drivers, Arduino 1.6.5 only shows /dev/cu.usbserial port.
Arduino 1.0.5 shows/dev/tty.usb.serial, but I have to repeatedly upload the sketch because I get a port already in use error. Eventually, after about four attempts at uploading, it works.

Though the documentation says that a newer version of Arduino is necessary, the 1.0.5 seems to work. I've uploaded the Pre-Loaded Behaviors and everything works fine.

Any insight into this would be appreciated.

Kevin
Posts: 180
Joined: Tue Jul 28, 2015 12:56 am

Re: OS X 10.10 Driver/Port Issues

Postby Kevin » Fri Sep 25, 2015 9:07 pm

darrshar,

Thanks for the feedback. That's kind of strange that the two versions show different names for the port. I don't much understand how things work at the driver level here.

One thing I do notice when working myself is Arduino often throws the "Serial port already in use" error. I get this occasionally in the following situations:

1) If I had the serial monitor window open. This seems to cause problems if I had the serial monitor open on one sketch, then tried to upload a sketch from a different Arduino IDE window. Almost like it trips over the serial monitor.

2) If I try to upload to Ringo that isn't turned on, or I forgot to plug it in.

The way I've cleared this error is to unplug and re-plug the USB to the programming adapter. I think this makes the computer see that the port went away and cancels all instances of it.

Please try this and see what happens: Only open one of the two versions of Arduino. Plug in the programmer, then make sure everything is connected and turned on and try to load it. Do you still get this error on the first load attempt? Do you always need to re-attempt it exactly 4 times?

Thanks,
-Kevin

jedward
Posts: 15
Joined: Sat Oct 17, 2015 9:57 pm

Re: OS X 10.10 Driver/Port Issues

Postby jedward » Sat Oct 17, 2015 11:05 pm

I am running Mac OSX 10.10.4 and just got my Ringo yesterday. I was perplexed at first:

•I downloaded and installed the FTDIUSBSerialDriver v2_3 [not the D2XX driver, I still don't know what it does and was definiely not willing to do the Terminal modifications unless and until I understood 'why?']

•I downloaded and opened the Arduino/IDE app, selected Fio as my board and when I looked at my port info, it showed "/dev/cu.usbserial-########" not "/dev/tty.usb.serial" as PlumGeek's manual described.

After my uncertainty/frustration subsided, I tried plugging and unplugging the programming board; the IDE app registered the board [with the non-conforming name] when plugged in and did not show it when unplugged. Proceeding, I found I could seemingly compile and upload sketches notwithstanding the non-conforming name, so I am acting like I'm good to go there.

Just thought I'd share if someone else finds the same port name anomaly.

darrshar
Posts: 5
Joined: Fri Sep 18, 2015 2:28 am

Re: OS X 10.10 Driver/Port Issues

Postby darrshar » Sun Oct 18, 2015 6:42 am

Thanks for the advice, Kevin. I tried what you suggested.

With Arduino 1.6.5, the IDE never shows the USB port.
With Arduino 1.0.5, it shows the port but doesn't upload on the first try - with 'port already in use' and 'programmer not responding' errors. Eventually it uploads. I haven't counted the number of repeated attempts necessary to upload, but it's not exactly four, usually more. Or I unplug it and plug it back in and then repeatedly try.

I want to upload the newer Pre-Loaded Behaviors (Rev05) onto the Ringos for my students, but the size is too big for 1.0.5. I can only do it with my Linux pc and 1.6.5.

I'm a teacher at a school where staff and students all use Macs, so I would like to resolve this issue. When we work with Arduinos (not clones) in other projects, we have no issues with ports.

Thanks again for your reply.

jedward
Posts: 15
Joined: Sat Oct 17, 2015 9:57 pm

Re: OS X 10.10 Driver/Port Issues

Postby jedward » Sun Oct 18, 2015 11:33 pm

darrshar
What OS and hardware are you trying to use?
I have things running OK on 10.10.4 on a MacBook mid 2010 with Core2 Duo hardware.

After uninstalling the Apple code did you install both the FTDIUSBSerial driver AND the FTDI D2XX driver? If you did not install the latter, you may lack the necessary functionality after removing the Apple code.

You could try reinstalling the Apple code and running just the FTDIUSBSerial driver. That is what is working for me with 10.10.4. I can run the IDE 1.65 just fine, and as you implied it will handle the entire PreLoaded Behavior sketch.

J

darrshar
Posts: 5
Joined: Fri Sep 18, 2015 2:28 am

Re: OS X 10.10 Driver/Port Issues

Postby darrshar » Mon Oct 19, 2015 7:27 am

Thanks for the advice, jedward.

I had both drivers installed but without success with Arduino 1.6.5.
I tried uninstalling the D2XX and reinstalling the Apple driver along with the FTDIUSBserial driver, like you use, and only 1.0.5 registers the port. Arduino 1.6.5 only shows the port as 'cu' without 'tty'.

I have 10.10.4 on a mid-2012 MacBook Pro with Intel Core i5 processor.

jedward
Posts: 15
Joined: Sat Oct 17, 2015 9:57 pm

Re: OS X 10.10 Driver/Port Issues

Postby jedward » Mon Oct 19, 2015 4:28 pm

Your statement that

"only 1.0.5 registers the port. Arduino 1.6.5 only shows the port as 'cu' without 'tty'."

suggests to me that you may be functionally fine. I can compile and upload any code I write to Ringo when my IDE 1.6.5 whows my port information as:

"/dev/cu.usbserial-########" not "/dev/tty.usb.serial" as in PlumGeek's manual.

Have you tried actually uploading the Preloaded sketch under 1.6.5?

darrshar
Posts: 5
Joined: Fri Sep 18, 2015 2:28 am

Re: OS X 10.10 Driver/Port Issues

Postby darrshar » Tue Oct 20, 2015 3:02 am

j,

Yes, I've tried using the 'cu' port to upload from 1.6.5, but it either hangs and doesn't finish the upload or I get error messages.
It seems to me that my problem lies in the Arduino 1.6.5, since 1.0.5 works.


These are the two different error messages from the IDE:

Code: Select all

avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino 1.6.5.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/********/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-DA01H8E1
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
avrdude: ser_open(): can't open device "/dev/cu.usbserial-DA01H8E1": Resource busy
ioctl("TIOCMGET"): Inappropriate ioctl for device

avrdude done.  Thank you.

Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.



Code: Select all

avrdude: Version 6.0.1, compiled on Apr 14 2015 at 16:30:25
         Copyright (c) 2000-2005 Brian Dean, http://www.bdmicro.com/
         Copyright (c) 2007-2009 Joerg Wunsch

         System wide configuration file is "/Applications/Arduino 1.6.5.app/Contents/Java/hardware/tools/avr/etc/avrdude.conf"
         User configuration file is "/Users/********/.avrduderc"
         User configuration file does not exist or is not a regular file, skipping

         Using Port                    : /dev/cu.usbserial-DA01H8E1
         Using Programmer              : arduino
         Overriding Baud Rate          : 57600
         AVR Part                      : ATmega328P
         Chip Erase delay              : 9000 us
         PAGEL                         : PD7
         BS2                           : PC2
         RESET disposition             : dedicated
         RETRY pulse                   : SCK
         serial program mode           : yes
         parallel program mode         : yes
         Timeout                       : 200
         StabDelay                     : 100
         CmdexeDelay                   : 25
         SyncLoops                     : 32
         ByteDelay                     : 0
         PollIndex                     : 3
         PollValue                     : 0x53
         Memory Detail                 :

                                  Block Poll               Page                       Polled
           Memory Type Mode Delay Size  Indx Paged  Size   Size #Pages MinW  MaxW   ReadBack
           ----------- ---- ----- ----- ---- ------ ------ ---- ------ ----- ----- ---------
           eeprom        65    20     4    0 no       1024    4      0  3600  3600 0xff 0xff
           flash         65     6   128    0 yes     32768  128    256  4500  4500 0xff 0xff
           lfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           hfuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           efuse          0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           lock           0     0     0    0 no          1    0      0  4500  4500 0x00 0x00
           calibration    0     0     0    0 no          1    0      0     0     0 0x00 0x00
           signature      0     0     0    0 no          3    0      0     0     0 0x00 0x00

         Programmer Type : Arduino
         Description     : Arduino
         Hardware Version: 3
         Firmware Version: 4.4
         Vtarget         : 0.3 V
         Varef           : 0.3 V
         Oscillator      : 28.800 kHz
         SCK period      : 3.3 us

avrdude: AVR device initialized and ready to accept instructions

Reading | ################################################## | 100% 0.01s

avrdude: Device signature = 0x1e950f
avrdude: reading input file "/var/folders/jw/ntm11w3s2sqf6nwfg1p4k19r0000gp/T/build9188055235982946792.tmp/Ringo_PreLoaded_Behaviors_Rev05_01.cpp.hex"
avrdude: writing flash (30256 bytes):

Writing | ###avrdude: stk500_recv(): programmer is not responding
Problem uploading to board.  See http://www.arduino.cc/en/Guide/Troubleshooting#upload for suggestions.
Last edited by darrshar on Sat Oct 24, 2015 3:02 am, edited 1 time in total.

jedward
Posts: 15
Joined: Sat Oct 17, 2015 9:57 pm

Re: OS X 10.10 Driver/Port Issues

Postby jedward » Wed Oct 21, 2015 1:45 pm

d
Wow. I confess I don't begin to understand what those error messages mean.
Sorry I can't help u.
J

Kevin
Posts: 180
Joined: Tue Jul 28, 2015 12:56 am

Re: OS X 10.10 Driver/Port Issues

Postby Kevin » Thu Oct 22, 2015 5:07 pm

darrshar,

So if I understand correctly, version 1.0.5 compiles and loads correctly? But 1.6.5 has the problems you listed?

Of that data output, I see a couple items. Everything else looks as I'd expect.

Code: Select all

avrdude: ser_open(): can't open device "/dev/cu.usbserial-DA01H8E1": Resource busy


This still sounds like some kind of driver conflict. It sees that a port is available, but something else appears to already be trying to use it.

Code: Select all

Writing | ###avrdude: stk500_recv(): programmer is not responding


This could be anything but basically says it can't talk to the robot. Check the power is on, etc.

Let me ask you this.....

1) Have you ever been able to upload anything to the robot? If so that proves all the hardware chain is good.

2) When you do attempt to upload, look at the red lights in the center of the programmer. Normally if the robot is turned off or there's something wrong w/ the programming cable, you'll see one of the lights blink 3 times, then nothing, then the "programmer not responding" note pops up. Are you getting any blinks at all, or does it just go right to the fail message?

-Kevin


Who is online

Users browsing this forum: No registered users and 1 guest