11

I'm using the Arduino Starter Kit so I have a Uno R3 and going through the examples I'm trying to read temperature data from my controller in Arduino Studio.

In essence my problem can be reduced down to

void setup() {
    Serial.begin(9600);
}

void loop() { Serial.print("stuff"); }

Which I'd expect to keep printing "stuff" on the serial monitor.

(In practice I'm running this exact code but all the temperature-reading going on feels irrelevant to my problem, I'm simply mentioning it because I can observe that mye LEDs light up when the temperature rises so I know the code is uploaded and running on the Duo).

I'm not seeing any errors in the studio console, and if I connect using gtkterm or screen I can see data being sent so the problem seems to be isolated to the AndroidStudio serial monitor itself.

I'm running Ubuntu 14.04 and I've connected via USB on /dev/ttyACM3.

I tried running

stty -F /dev/ttyACM3 cs8 9600 ignbrk -brkint -icrnl -imaxbel -opost -onlcr -isig -icanon -iexten -echo -echoe -echok -echoctl -echoke noflsh -ixon -crtscts

as suggested here and I also tried with baud 115200, taking care to also change the value in my setup function.

I also ran

chmod a+rw /dev/ttyACM3

But I'm still not seeing any errors or output. How do I proceed to debug this issue?

Running ls -l /dev/ttyACM* gives

crw-rw---- 1 root dialout 166, 0 feb. 20 14:22 /dev/ttyACM0

crw-rw---- 1 root dialout 166, 1 feb. 20 14:22 /dev/ttyACM1

crw-rw---- 1 root dialout 166, 2 feb. 20 14:22 /dev/ttyACM2

crw-rw-rw- 1 root dialout 166, 3 feb. 20 14:30 /dev/ttyACM3

ivarni
  • 211
  • 1
  • 6

1 Answers1

0

By default, on a linux system without specific udev binding rules to rename the device into something non standard, the FTDI driver should map the usb to serial port on /dev/ttyUSB* and not to /dev/ttbACM*. I suspect that you were just looking in the wrong place. I think it defaults to /dev/ttyUSB* for any usb to serial dongle:

usb-serial.c:   usb_serial_tty_driver->name = "ttyUSB";
louigi600
  • 131
  • 4