Has anyone had this trouble: ttySAC1: No such file or directory this is what i get when i try to execute the program to open the serial port and write data to it and read from it.I have verified the permissions and they are okay.any help would be appreciated waiting in anticipation stuck
serial port SAC1
has anyone tried the fd_serial = open(SERIALPORT, O_RDWR | O_NOCTTY | O_NONBLOCK); system call to open /dev/ttySAC1 ?? when i do so it says ttySAC1 : No such file or directory? how do i write/read the serial port then?
hey guys can anyone atleast tell me if this serial port open function works well with them?would be very greatful
Stuck I am also trying to get time to tinker on this. When I ran the code from http://www.friendlyarm.net/forum/topic/658, I get a seg fault. compiles fine. Hopefully Friday or Sunday....
If youre using udev then you are able to add a rule for that port (in the /lib/udev/rules.d/50-udev-default.rules). For example: # Serial port devices KERNEL=="s3c2410_serial[0-9]*", NAME="ttySAC%n" Then udev will add this device under /dev automatically after you have reloaded its configuration.
tell me if i'm wrong..i can compile the code both using arm-linux-gcc and gcc for x86.no probs.i'm trying to execute the code on my host ie x86.i've changed the serial port to open to ttyS0 .i can see a node in /dev called ttyS0. But when i execute the code it says "ttyS0 : No such file or directory"!! what may be the cause?? anybody successful running this code? int main() { int fd; struct termios options; int n; char buff[255]; /* Open Port */ fd = open("/dev/ttyS0", O_RDWR | O_NOCTTY | O_NDELAY);//This gives error?? if(fd == -1) { printf("ERROR Open Serial Port!"); } }
The dreaded ftp binary problem killed me. Figured that out at 11:30 last night. Stuck I will try your code tonight.
Check this thread too. In linux. I hacked up this code last night and got the output line "YOUR COMMAND STRING HERE" on /dev/ttySAC1. http://friendlyarm.net/forum/topic/658
i tried being both but in vain.I'm trying to execute the code on my host ie x86 with ubuntu 9.04.i change the path to "/dev/ttyUSB0" as i have a PL2303 serial converter.I compile the above code fine.my main concern is why on executing the code(on my host) i find the error /dev/ttyUSB0 :No such file or directory, when i can see it in /dev. i can use my PL2303 converter with the mini2440 .i even tried doing chmod 777 /dev/ttyUSB0 also chmod 777 /dev/ttyS0 (thinking if it opens with the code) Even executed the code being su. guys do we need to like create nodes or somethingg before executing the code?I tried the code on mini2440 with path "/dev/ttySAC1" and get the same error!! help?
well my name is kevin i was stuck in sumthing so "stuck" now m out so changed..btw thankx a lot for your help!
i have troubles to recieve info in my mini, using the comtest example, but i can send info using my mini to my dektop machine, help!!
the mistake its that the code has sac0 you have to change it to sac1 and it will work well (of course you have to put a cross cable to see it work) i hope this can be useful