Helo,
i have one serial device which consists of 30 com ports. after installing driver of this device,it will detects 30 com ports like /dev/ttys0,/dev/ttys1 ....../dev/ttys30.
now 30 com ports are connected with telephny model(each modem has com port).
now i want to establish commnucation b/w them.
like data may come on any serial port. after extracting the data packet, server send data to the corresponding com port.
now if can i use socket on serial communication. if it is possible then how to use socket on serialm ports and how to make design for handling 30 com ports simultaneously
Regards,
Amit
-
this sounds very familiar, search this site for almost exactly the same problem.
-
don't use sockets, use serial device file descriptors.