hi all, i am using sbc6300x from embest, with linux 2.6-24, the kit has one com port for debug and 3 com ports for serial connection as ttyS1,ttyS2 and ttyS3.
i can use ttyS3 for connecting to pc via Rs232 but unable to use other ports.
any idea is appreciated for solving this problem. thnks
--------------------------------------- Posted through
formatting link
Didn't find your answer? Ask the community — no account required.
D
Don Y
Have you contacted the vendor? Seems like they would have the answer ready for you!
C
cassiope
By all means talk to the vendor first.
There may be some conflict with a shared interrupt, or the order of initialization. Have you tried initializing only ttyS2, for example, when you try using that port?
-f
D
Don Y
Are you sure there are even real /dev entries for each of those devices? Are there getty's running on them? Do you have the right ioctl's in place? etc.
(i.e., there's way too much information missing, here, to comment -- unless you happen to have the same device in front of you and have been through similar experiences. The vendor is your support group. Use him/it. If he can't answer your questions, then find another product and another vendor!!)
A
askaliaar
com
and
thanks all, i have talked to the vendor about the subject, they sayed that have tested the kits. anyway i checked and saw that ttyS1 and ttyS3 can be used together.
so i used ttyS3 as Rs232 connection with pc and ttyS1 for connecting with another device that is working well. i used ONE signal handler for both tty as below:
The man pages for sigaction says that with above opening of ports, i must get the device file descriptor when signal occures and i can get it as info->sa_fd in signal handler then with inspect of it, i can know which of ttys has sent the data. but always the above field is filled with zero. thanks & best regards
--------------------------------------- Posted through
formatting link
N
Nobody
IIRC, you have to use fcntl(fd, F_SETSIG, ...) in order for si_fd to be filled in.
A
askaliaar
it
with
Dear, hi, i used fnctl(fd_s1, F_SETSIG, getpid()) in place of fcntl(fd_s2, F_SETOWN, getpid()). but i were not able to get file descriptor of signal sender.
best regards.
--------------------------------------- Posted through
formatting link
Join the Discussion
Have something to add? Share your thoughts — no account required.
Didn't find your answer?
Ask the community — no account required
Report Content
You are reporting this content to the moderators. They will look at it
ASAP.