VOGONS


First post, by chinna

User metadata
Rank Newbie
Rank
Newbie

Hi All,

As per my requirement i should read data from com1, due to my hardware limitations i had only com3 port free. Application running in dosbox is 3rd party software. Is there any way i can change com3 as com1 in dosbox source.. Thanks in advance.

Chinna.

Reply 1 of 10, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

If I am not mistaken, it would just be a simple matter of using the line "serial1=directserial realport:com3" in your DOSBox.conf. See the recent discussion in Enabling 9 pin RS-232 I/O when using DOSBOX .

Reply 2 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

Dear Jorpho,

I tried as you said, but it didn't worked out. this is because of the problem in application. i am running a application works only on ttyS0(com0) but due to my hardware limitations i had ttyS2(com3) free. so how can i redirect com1 to com3 in dosbox is there any chance for that.

Thanks in advance
Chinna

chinna

Reply 3 of 10, by Jorpho

User metadata
Rank l33t++
Rank
l33t++

What do you mean "it didn't worked out" ? That line is supposed to do exactly what you want: if an application running in DOSBox tries to use COM1, the port that will be used is whatever is designated as COM3 in Windows.

Reply 4 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

Dear Jorpho,

Thank you for your reply. I will check with my hardware as well. I am running dosbox in Linux and com3 is represented as ttyO2. This is what i am doing in conf file "serial1=directserial realport:ttyO2". That is not zero its capital alphabet "O".

chinna

Reply 5 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

Dear Jorpho,

I tested on different port. which is ttyO1(com2),
Following is the line in conf file, "serial2=directserial realport:ttyO1"
This time my application worked fine. i am able to get the data and it worked fine. But when i modified serial2 to serial1 then on same hardware port it is not working. what i mean to say is may be serialport and realport should be same for comport to work properly. As you said i will test it in windows also and let you know with the results.

Thanks in advance,
Chinna.

Reply 6 of 10, by Jorpho

User metadata
Rank l33t++
Rank
l33t++
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?

Reply 7 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

Dear Jorpho,

Thanks for your reply and patience.
I am working on omap3 processor. In that it is about naming convention,
In linux OS its ttyO2 so its the reason i specified about ttyO2. There is nothing difference between two

As i said you earlier due to hardware limitations i cannot use com0 and com1. just for testing i had used com2. but i should make it work on com3.

Thanks,
Chninna.

Reply 8 of 10, by Dominus

User metadata
Rank DOSBox Moderator
Rank
DOSBox Moderator

You still don't understand. When you run the app in Dosbox it doesn't matter what the REAL hardware address is, you just enter the real hardware address on the serial1 or serial2 or serial3 or serial4 define, depending on which serial/com port the app wants to listen to.

Windows 3.1x guide for DOSBox
60 seconds guide to DOSBox
DOSBox SVN snapshot for macOS (10.4-11.x ppc/intel 32/64bit) notarized for gatekeeper

Reply 9 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

I had tried it. i will do it as you said and post the update. Thank you for your reply.

Reply 10 of 10, by chinna

User metadata
Rank Newbie
Rank
Newbie

Thank you all. What you said worked, problem is because of hardware. Now its working fine on com3 "serial1=directserial realport:ttyO2"

Thanks
Chinna