Pages: [1]   Go Down
Author Topic: arduino due serial is not working  (Read 1278 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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:
void setup() {
  Serial.begin(9600);
  Serial.println("Hello world \n");
  delay(1000);
  Serial.println("Hello world \n");
}

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

Offline Offline
Full Member
***
Karma: 9
Posts: 109
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
God Member
*****
Karma: 32
Posts: 507
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

"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.
« Last Edit: February 25, 2013, 07:06:46 am by stimmer » Logged


Offline Offline
Newbie
*
Karma: 0
Posts: 6
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Offline Offline
Full Member
***
Karma: 9
Posts: 109
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

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))
Logged

Pages: [1]   Go Up
Jump to: