amescon / raspicomm-module

raspicomm kernel module with tty driver support for rs485 (raspicommrs485.ko)
12 stars 14 forks source link

Cannot use send() instead of write() #1

Open 8 opened 11 years ago

8 commented 11 years ago

Linux docs states that write(fd, buffer, length) is en equivalent to send(fd, buffer, length, 0)

8 commented 11 years ago

I tried to substitute send() instead of write() with the rs232 port (/dev/ttyAMA0) but it didn't work - are you sure it's not only supposed to work with socket file descriptors?