Monday, April 29, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 2844  / 2 Years ago, tue, september 13, 2022, 7:45:25

I´m trying to read and record data from two USBs that are connected to separate Arduinos and they are collecting different measurements.



I´m having difficulties even reading from a single serial stream in Ubuntu



I have Ubuntu installed via Oracle VM Virtualbox. I used to use Cygwin and would simply navigate to the folder I wanted to store my txt file and write:



tee </dev/ttyS1 test.txt


to monitor and record the data stream.



If I write the same command in a random folder in Ubuntu, I get Permission Denied, even if I add sudo in front.



How can I monitor and record a single serial stream.
How can I monitor and record multiple serial streams?


More From » usb

 Answers
3

Check that you have the correct name for your serial USB



With the device unplugged enter



ls -la /dev/tty*


Now plug in the device and enter



ls -la /dev/tty*


There should be another device appear. If it does then that's the new device



you may see something like



crw-rw----    root dialout  166,  0 Sept 19 12:30 ttyACM0


If you do the device is recognised. Note in the example above its called ttyACM0 yours may be different.



Note the group in this case dialout If your not a member of this group add your self



sudo useradd dialout $USER


You should now be able to use the serial port using the name you found above which in my case was ttyACM0


[#29386] Wednesday, September 14, 2022, 2 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ncharm

Total Points: 255
Total Questions: 105
Total Answers: 118

Location: Virgin Islands (U.S.)
Member since Sat, May 6, 2023
1 Year ago
ncharm questions
;