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
screenandgtkterm. Oh my... I guess the problem with the AndroidStudio still persists but since it's working with the terminal I guess I should go see if they have an issue tracker somehere. Thanks, if there's a close-reason here for a problem that can no longer be reproduced or a simple typographical error I guess it won't be misplaced here. – ivarni Feb 20 '16 at 13:59lsusb? – cjs Apr 10 '17 at 12:52[14429.560354] usb 1-2.2: ch341-uart converter now attached to ttyUSB0
I don't have any genuine arduino products but I suspect you may have been looking at the wrong device file
– louigi600 Apr 27 '17 at 12:54