Re: [Arduino] CLI serial monitor
Hello Janne, CRC, great, thanks for explanations. A big thank you to both of you. have a nice day. Olivier. On Wed, 4 Apr 2018 10:39:30 +0200 Janne Johanssonwrote: > 2018-04-04 4:58 GMT+02:00 Olivier Burelli : > > > Hello, > > > > i am playing with ARDUINO UNO on my 6.2 stable laptop. > > I am trying to read the serial monitor message from the board. > > > > from dmesg: > > (...) > > umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino > > SrlArduino Uno" rev 1.10/0.01 addr 3 > > umodem0: data interface 1, has no CM over data, has break > > umodem0: status change notification available > > ucom0 at umodem0 > > --> which device is corresponding ? > > > > > > > ucom0 from dmesg means it is /dev/cuaU0 (and /dev/ttyU0), ucom1 -> > cuaU1 and so on. > Then use "cu" or something if you want to interact with it manually. > "cu -s 9600 -l /dev/cuaU0" for 9k6 connections. (though 115200 is > probably nicer, > otherwise the Serial.print()s will spend too much time talking slow > to the computer > which also can handle lots faster speeds. >
Re: [Arduino] CLI serial monitor
2018-04-04 4:58 GMT+02:00 Olivier Burelli: > Hello, > > i am playing with ARDUINO UNO on my 6.2 stable laptop. > I am trying to read the serial monitor message from the board. > > from dmesg: > (...) > umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino SrlArduino > Uno" rev 1.10/0.01 addr 3 > umodem0: data interface 1, has no CM over data, has break > umodem0: status change notification available > ucom0 at umodem0 > --> which device is corresponding ? > > > ucom0 from dmesg means it is /dev/cuaU0 (and /dev/ttyU0), ucom1 -> cuaU1 and so on. Then use "cu" or something if you want to interact with it manually. "cu -s 9600 -l /dev/cuaU0" for 9k6 connections. (though 115200 is probably nicer, otherwise the Serial.print()s will spend too much time talking slow to the computer which also can handle lots faster speeds. -- May the most significant bit of your life be positive.
Re: [Arduino] CLI serial monitor
Hi, this works for me doas cu -s 9600 -l /dev/cuaU0 or simply doas cu -l /dev/cuaU0 To more info, man cu Olivier Burelliwrote: >Hello, > >i am playing with ARDUINO UNO on my 6.2 stable laptop. > >I am trying to read the serial monitor message from the board. > >from dmesg: >(...) >umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino >SrlArduino Uno" rev 1.10/0.01 addr 3 umodem0: data interface 1, has no >CM over data, has break umodem0: status change notification available >ucom0 at umodem0 > >should i use cat /dev/DEVICE >> file.txt ? >or >(stty raw; cat > /home/me/received.txt) < /dev/device ? > >--> which device is corresponding ? > >does the information: "data interface 1, has no CM over data, has >break" means that OpenBSD can not receive data from the board ? > >For example, i would like to catcg the strinf from the code below: >(...) >void setup(void) { >Serial.begin(9600); >// send the value of a string to the serial port (USB) >Serial.print("Hello world"); >return; >} >(...) > >Thanks in advance. > >O. > -- http://www.pucpcaldas.br/uploads/8010/assinatura/ass_20anos.png;> Cludio Correa | Professor mailto:cor...@pucpcaldas.br;>cor...@pucpcaldas.br | (35) 3729-9276 Cincia da Computao - Prdio 1 Av. Padre Francis Cletus Cox, 1661 Aviso: Esta mensagem é destinada exclusivamente à(s) pessoa(s) a quem é dirigida e pode conter informação sigilosa e legalmente protegida. Caso não seja o destinatário, favor notificar o remetente. Ficam proibidas a utilização, divulgação, cópia e distribuição da mesma.
Re: [Arduino] CLI serial monitor
On Wed, Apr 04, 2018 at 02:58:20AM +, Olivier Burelli wrote: > should i use cat /dev/DEVICE >> file.txt ? Considering the sketch you posted, you should have no problem using cu(1), which is in base: # cu -9600 -l/dev/cuaU0 To quit, type '~.' (tilde + dot). For more info about other escape signals and what else is possible, please refer to the manual page: $ man cu Cheers, -- db
[Arduino] CLI serial monitor
Hello, i am playing with ARDUINO UNO on my 6.2 stable laptop. I am trying to read the serial monitor message from the board. from dmesg: (...) umodem0 at uhub3 port 1 configuration 1 interface 0 "Arduino SrlArduino Uno" rev 1.10/0.01 addr 3 umodem0: data interface 1, has no CM over data, has break umodem0: status change notification available ucom0 at umodem0 should i use cat /dev/DEVICE >> file.txt ? or (stty raw; cat > /home/me/received.txt) < /dev/device ? --> which device is corresponding ? does the information: "data interface 1, has no CM over data, has break" means that OpenBSD can not receive data from the board ? For example, i would like to catcg the strinf from the code below: (...) void setup(void) { Serial.begin(9600); // send the value of a string to the serial port (USB) Serial.print("Hello world"); return; } (...) Thanks in advance. O.