Chaitannya
Chaitannya

Reputation: 11

Not able to read data through serial port

I am trying to read data on a serial port.

My setup

I am using a serial to usb converter. On the BeagleBoard, the serial device is ttyS2. On the laptop, it is ttyUSB0.

I did a simple thing to test the connection, I ran Minicom on both the machines. When I type something on BeagleBoard I receive data on laptop but it doesn't work the opposite way. What can be the reason?

The setting for serial port on both the devices are

Upvotes: 1

Views: 2945

Answers (1)

Andy
Andy

Reputation: 255

Could it be that your file permissions are too restrictive on your laptop? I had a similar problem on ubuntu, and solved it by changing the file permissions. You could test this by doing:

sudo chmod 666 /dev/ttyUSB0

Note, these permissions will be reverted when you reset the connection. For a long tem solution you'll have to add yourself to the dialout group by editing /etc/group.

Upvotes: 2

Related Questions