Go Down

Topic: arduino due serial is not working (Read 1 time) previous topic - next topic

leew

hello all,

i habe a problem with the serial port on my arduino due board.
i can upload sketches and they are working. i have tested the "blink" examples.

so the connection seems to be ok.

but if i try to read something from the standard serial port, it does not work.
i tryed the simple sketch attached.

i am using  the native usb port. arduino 1.5.2. on mac osx 10.6.8

i have tested the sketch with the serial monitor.

could it be the usb cable ? so that only one direction is working.

my arduino uno ist working perfectly on my machine ...

all the best,
lee


Code: [Select]
void setup() {
  Serial.begin(9600);
  Serial.println("Hello world \n");
  delay(1000);
  Serial.println("Hello world \n");
}

void loop() {
  Serial.println("loop");
}

PeterVH

It was reported that this does only work since mac os lion.
See here: http://arduino.cc/forum/index.php/topic,137032.msg1031089.html#msg1031089

Previous versions of mac os lack support needed for composite devices (the native port exposes a  composite device: serial + hid). If you only need a serial port you might create and upload a sketch that is a serial port only. I had that running on the leonardo. It probably can be made working on the due too. See here: http://arduino.cc/forum/index.php/topic,137032.msg1033088.html#msg1033088

leew

hello PeterVH,

thanks for your reply. but it seems, that it is not a os problem.
i tryed to get a serial connection on mac osx 10.8.2, arduino 1.5.2.
with the same result.

i can upload a sketch successfully, but i can not get a serial connection with the the "serial monitor" app (or other applications, which can send/receive serial data)

perhaps it has something to do with the fact, that it is a "TAIJIUINO Due Pro" board.

i will also try a new usb cable ...

perhats someone has an other hint ;-)

all the best,
lee

stimmer

#3
Feb 25, 2013, 12:54 pm Last Edit: Feb 25, 2013, 01:06 pm by stimmer Reason: 1
"Serial" is for the programming port, for the native port use "SerialUSB"

For the TAIJIUINO it looks like "Serial" is the 6-pin connector and "SerialUSB" is the USB connector.

leew

hello stimmer,

thank you very much for looking into this !
SerialUSB is working on mac osx 10.8.2 with arduino 1.5.2 now :-)

but i did not get it working on my main machine, which is on osx 10.6.8 ...

perhaps it is time to update ;-)
funny that a serial port connection is forcing me to update.

all the best,
lee

PeterVH

It is not the serial port that would force the upgrade, it is the composite device.

Downloading a "serial port only" sketch, will work for mac 10.6.8 too.
I just tried the approach I posted before, and can confirm it works on the Due.
(tested on linux, due native port enumerates as serial port only and ASCIITable sample works (when using SerialUSB instead of Serial, I missed that on your first post))

Go Up