chinna wrote:This time my application worked fine. i am able to get the data and it worked fine.
So what is the problem, exactly?
what i mean to say is may be serialport and realport should be same for comport to work properly.
I am not sure you understand. The line that starts with "serial1" defines the properties of what an application running in DOSBox will use as COM1. Similarly, the line that starts with "serial2" defines the properties of what an application running in DOSBox will use as COM2, and so on. If the application you are running in DOSBox uses COM1, then the only line you need to worry about is the one that starts with "serial1". If your application was working fine with "serial2", then that suggests it doesn't need to use COM1 after all.
Also, why are you writing about ttyO2 now when you were writing about ttyS2 before?