Remote COM Port - printing messages
|
Back to Old Forum Mainpage
chronodekar, 26.2.2008, 11:45, 202.88.253.34
printing messages
The way I use this program is to have it running on my machine and then from some other machine, use Putty to connect to the serial port using telnet. (or from Linux, some other telnet program)
Jan, I'm guessing that your program takes in the input/output from the serial port and directs it to the telnet interface. Why not try a 'printf' (if your programming in C) with a message like, "You are connected to the serial port" or "Another user is accessing the serial port, please wait for your turn" as soon as the user connects? You could make that the first statement the user sees once they login. AFTER that, redirect the serial data.
What do you say? I think that should do it.
Jan, 26.2.2008, 13:31
Re: printing messages
The problem is that the user's machine may use one from wide range of applications or it may use one from wide range of operating systems! There is no guaranteed way how to display a message on remote user's PC. It's a similar task as to display some message on any PC or terminal connected to the internet from your machine. Without cooperation of the user's application it's not possible to do it. The problem may be solved in some special cases but not generally. Most of applications should return a message like "Could not connect - no response" and this may mean for you "Another user is accessing the remote device, please try again later".
chronodekar, 27.2.2008, 04:04
Re: Re: printing messages
I think you mis-understand me. I did not mean to have a pop-up window or something like that.(In that case, you are right, customized solutions will be difficult)
But doesn't the serial port read data in ASCII format? So why not a message in the users terminal?
Jan, 27.2.2008, 09:13
Re: Re: Re: printing messages
Yes! Sorry, now I understand. This is really possible (must be optional). Is it ok a message like "...try again later"? Should appear after <Enter> or after any key pressed? I'll try to implement it.
Back to Old Forum Mainpage