c# - How to detect incoming connections in my modem -


i need detect when connected computer. have incoming connection enabled, , need know when user connected. preferably script in csharp

generally, regardless of language, approach open serial port talk modem. .net, might want refer system.io.ports.serialport. connection parameters (baud rate, data bits, stop bits, parity, flow control) depends on device in question. try 57600 or fastest speed of serial port, 8 databits, 1 stop bit, no parity , hardware flow control; that's what's typically used.

hayes compatible modems spend "ring" notifications (plan text) on serial port when dialling. you'd send "at a" modem anwer call (or modem may configured auto answer). when connection established, "connect xxx" sent modem, xxx connection details. summary of hayes commands, see this wikipedia link. (it describes details such command/data mode you'll need go into, if want program communications on modem connection.)


Comments