Rocksolid Light

News from da outaworlds

mail  files  register  groups  login

Message-ID:  

BOFH excuse #402: Secretary sent chain letter to all 5000 employees.


comp / comp.os.os2.misc / Using the serial ports

SubjectAuthor
* Using the serial portsJohann 'Myrkraverk' Oskarsson
+* Re: Using the serial portsMarcel Mueller
|`* Re: Using the serial portsJohann 'Myrkraverk' Oskarsson
| `* Re: Using the serial portsJohann 'Myrkraverk' Oskarsson
|  `- Re: Using the serial portsMarcel Mueller
`- Re: Using the serial portsSteven Levine

1
Subject: Using the serial ports
From: Johann 'Myrkrav
Newsgroups: comp.os.os2.misc
Organization: Easynews - www.easynews.com
Date: Sun, 18 Oct 2020 00:38 UTC
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!peer02.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx15.am4.POSTED!not-for-mail
Newsgroups: comp.os.os2.misc
X-Mozilla-News-Host: snews://secure.news.easynews.com:563
From: johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson)
Subject: Using the serial ports
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.11.0
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Lines: 19
Message-ID: <c8MiH.179563$B8s1.154104@fx15.am4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Sun, 18 Oct 2020 08:38:25 +0800
X-Received-Bytes: 1389
X-Received-Body-CRC: 296107822
View all headers

Dear c.o.o.m,

I just tried to connect Chessmaster 4000 (running in Win-OS/2) to
another instance over a virtual serial line in VirtualBox, however
it complained it couldn't access the serial port.

How do I make sure the serial driver is loaded, and the com port works
in OS/2 itself?

I am using ArcaOS, as I said in VirtualBox, so I thought this part
would be easy.

I naively tried to fopen( "com1", "r+" ) but this did not work.

What is my next step?

--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk

Subject: Re: Using the serial ports
From: Marcel Mueller
Newsgroups: comp.os.os2.misc
Organization: MB-NET.NET for Open-News-Network e.V.
Date: Sun, 18 Oct 2020 12:43 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.mb-net.net!open-news-network.org!.POSTED.2a02:908:1b16:4740:a00:27ff:fe8d:1f8d!not-for-mail
From: news.5.maazl@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.os.os2.misc
Subject: Re: Using the serial ports
Date: Sun, 18 Oct 2020 14:43:58 +0200
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <rmhdae$fa4$1@gwaiyur.mb-net.net>
References: <c8MiH.179563$B8s1.154104@fx15.am4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 18 Oct 2020 12:43:58 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net; posting-host="2a02:908:1b16:4740:a00:27ff:fe8d:1f8d";
logging-data="15684"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:UMxZQvHeZ+clsCiM6bZswHmAZ78=
Content-Language: en-US
In-Reply-To: <c8MiH.179563$B8s1.154104@fx15.am4>
X-User-ID: U2FsdGVkX18xJxi3MjgqwEAE+pEIgSFQwAFmsb4ie2CYidg4PoeCt60ojhwS+n5M
View all headers

Am 18.10.20 um 02:38 schrieb Johann 'Myrkraverk' Oskarsson:
> I just tried to connect Chessmaster 4000 (running in Win-OS/2) to
> another instance over a virtual serial line in VirtualBox, however
> it complained it couldn't access the serial port.

Vou want to communicate over *virtual* serial ports?

Does the software try to access the UART controller directly? This is
not allowed by default for good reasons. But the virtual DOS driver
supports this feature if you enable it by the setting COM_DIRECT_ACCESS.

> How do I make sure the serial driver is loaded, and the com port works
> in OS/2 itself?

AFAIR
DEVICE=\BOOT\COM.SYS ...
see http://www.edm2.com/index.php/COM.SYS

> I am using ArcaOS, as I said in VirtualBox, so I thought this part
> would be easy.
>
> I naively tried to fopen( "com1", "r+" ) but this did not work.

- Have you configured a virtual COM port in VBOX?
- Is the COM.SYS driver loaded. Try /V to get meaningful boot messages.
- Is the VCOM.SYS driver loaded (for DOS emulation)?
- Check for direct hardware access (see above).

Marcel

Subject: Re: Using the serial ports
From: Johann 'Myrkrav
Newsgroups: comp.os.os2.misc
Organization: Easynews - www.easynews.com
Date: Mon, 19 Oct 2020 07:26 UTC
References: 1 2
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!peer01.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx47.ams4.POSTED!not-for-mail
Subject: Re: Using the serial ports
Newsgroups: comp.os.os2.misc
References: <c8MiH.179563$B8s1.154104@fx15.am4>
<rmhdae$fa4$1@gwaiyur.mb-net.net>
From: johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <rmhdae$fa4$1@gwaiyur.mb-net.net>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 7bit
Lines: 44
Message-ID: <1dbjH.399713$mP7.43895@fx47.ams4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Mon, 19 Oct 2020 15:26:47 +0800
X-Received-Bytes: 2523
X-Received-Body-CRC: 1726785385
View all headers

On 18/10/2020 8:43 pm, Marcel Mueller wrote:
> Am 18.10.20 um 02:38 schrieb Johann 'Myrkraverk' Oskarsson:
>> I just tried to connect Chessmaster 4000 (running in Win-OS/2) to
>> another instance over a virtual serial line in VirtualBox, however
>> it complained it couldn't access the serial port.
>
> Vou want to communicate over *virtual* serial ports?
Yes, I configured the two virtual machines to connect through a named
pipe on the host system.
> Does the software try to access the UART controller directly? This is
> not allowed by default for good reasons. But the virtual DOS driver
> supports this feature if you enable it by the setting COM_DIRECT_ACCESS.
>
>> How do I make sure the serial driver is loaded, and the com port works
>> in OS/2 itself?
>
> AFAIR
> DEVICE=\BOOT\COM.SYS ...
> see http://www.edm2.com/index.php/COM.SYS
Reading now.
>> I am using ArcaOS, as I said in VirtualBox, so I thought this part
>> would be easy.
>>
>> I naively tried to fopen( "com1", "r+" ) but this did not work.
>
> - Have you configured a virtual COM port in VBOX?
Yes, see above.

> - Is the COM.SYS driver loaded. Try /V to get meaningful boot messages.
Afaict, no; a quick grep -i com \config.sys yielded nothing promising;
I'm reading the edm/2 page now.

> - Is the VCOM.SYS driver loaded (for DOS emulation)?
Also negative.

> - Check for direct hardware access (see above).
>
>
> Marcel
Thank you, I'll see if I can load the driver successfully.

--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk

Subject: Re: Using the serial ports
From: Johann 'Myrkrav
Newsgroups: comp.os.os2.misc
Organization: Easynews - www.easynews.com
Date: Mon, 19 Oct 2020 11:11 UTC
References: 1 2 3
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!peer03.ams4!peer.am4.highwinds-media.com!news.highwinds-media.com!fx21.am4.POSTED!not-for-mail
Subject: Re: Using the serial ports
Newsgroups: comp.os.os2.misc
References: <c8MiH.179563$B8s1.154104@fx15.am4>
<rmhdae$fa4$1@gwaiyur.mb-net.net> <1dbjH.399713$mP7.43895@fx47.ams4>
From: johann@myrkraverk.invalid (Johann 'Myrkraverk' Oskarsson)
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101
Thunderbird/68.12.1
MIME-Version: 1.0
In-Reply-To: <1dbjH.399713$mP7.43895@fx47.ams4>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-GB
Content-Transfer-Encoding: 8bit
Lines: 57
Message-ID: <0wejH.90363$KL2.36978@fx21.am4>
X-Complaints-To: abuse@easynews.com
Organization: Easynews - www.easynews.com
X-Complaints-Info: Please be sure to forward a copy of ALL headers otherwise we will be unable to process your complaint properly.
Date: Mon, 19 Oct 2020 19:11:54 +0800
X-Received-Bytes: 3288
X-Received-Body-CRC: 2323252192
View all headers

On 19/10/2020 3:26 pm, Johann 'Myrkraverk' Oskarsson wrote:
> On 18/10/2020 8:43 pm, Marcel Mueller wrote:
> > Am 18.10.20 um 02:38 schrieb Johann 'Myrkraverk' Oskarsson:
> >> I just tried to connect Chessmaster 4000 (running in Win-OS/2) to
> >> another instance over a virtual serial line in VirtualBox, however
> >> it complained it couldn't access the serial port.
> >
> > Vou want to communicate over *virtual* serial ports?
> Yes, I configured the two virtual machines to connect through a named
> pipe on the host system.
> > Does the software try to access the UART controller directly? This is
> > not allowed by default for good reasons. But the virtual DOS driver
> > supports this feature if you enable it by the setting COM_DIRECT_ACCESS.
> >
> >> How do I make sure the serial driver is loaded, and the com port works
> >> in OS/2 itself?
> >
> > AFAIR
> >    DEVICE=\BOOT\COM.SYS ...
> > see http://www.edm2.com/index.php/COM.SYS
> Reading now.
> >> I am using ArcaOS, as I said in VirtualBox, so I thought this part
> >> would be easy.
> >>
> >> I naively tried to fopen( "com1", "r+" ) but this did not work.
> >
> > - Have you configured a virtual COM port in VBOX?
> Yes, see above.
>
> > - Is the COM.SYS driver loaded. Try /V to get meaningful boot messages.
> Afaict, no; a quick grep -i com \config.sys yielded nothing promising;
> I'm reading the edm/2 page now.
>
> > - Is the VCOM.SYS driver loaded (for DOS emulation)?
> Also negative.
>
> > - Check for direct hardware access (see above).
> >
> >
> > Marcel
> Thank you, I'll see if I can load the driver successfully.
>

I loaded the pscom.sys drivers, for SMB support, though I think in VBox
I don't need it. By fopen( "com1", "r+" )ing on both ends, I have
verified I'm able to send text from one machine to the other, but it
takes quite a few send tries for a single receieve, so I believe there's
more to serial programming than I was aware of.

I've also loaded vcom.sys on both ends, but it does not seem the
Chessmasters are able to talk successfully to each other, and that
can be a bug in Chessmater, Win-os/2, and/or vcom.sys because the
windows session seems to freeze completely.

--
Johann | email: invalid -> com | www.myrkraverk.com/blog/
I'm not from the Internet, I just work there. | twitter: @myrkraverk

Subject: Re: Using the serial ports
From: Marcel Mueller
Newsgroups: comp.os.os2.misc
Organization: MB-NET.NET for Open-News-Network e.V.
Date: Mon, 19 Oct 2020 17:18 UTC
References: 1 2 3 4
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.mb-net.net!open-news-network.org!.POSTED.2a02:908:1b16:4740:a00:27ff:fe8d:1f8d!not-for-mail
From: news.5.maazl@spamgourmet.org (Marcel Mueller)
Newsgroups: comp.os.os2.misc
Subject: Re: Using the serial ports
Date: Mon, 19 Oct 2020 19:18:20 +0200
Organization: MB-NET.NET for Open-News-Network e.V.
Message-ID: <rmkhou$j8v$1@gwaiyur.mb-net.net>
References: <c8MiH.179563$B8s1.154104@fx15.am4>
<rmhdae$fa4$1@gwaiyur.mb-net.net> <1dbjH.399713$mP7.43895@fx47.ams4>
<0wejH.90363$KL2.36978@fx21.am4>
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Mon, 19 Oct 2020 17:18:22 -0000 (UTC)
Injection-Info: gwaiyur.mb-net.net; posting-host="2a02:908:1b16:4740:a00:27ff:fe8d:1f8d";
logging-data="19743"; mail-complaints-to="abuse@open-news-network.org"
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101
Thunderbird/68.10.0
Cancel-Lock: sha1:uvYXoLWMQugJ7alO/EPjfJXnjhc=
Content-Language: en-US
X-User-ID: U2FsdGVkX19+CQqRCiUyjYb65fCl4j8c31RDD/Qx37Z4fXcFTcNhbjRAmf9rIjZj
In-Reply-To: <0wejH.90363$KL2.36978@fx21.am4>
View all headers

Am 19.10.20 um 13:11 schrieb Johann 'Myrkraverk' Oskarsson:
> I loaded the pscom.sys drivers, for SMB support,

SMB-Support?
OS/2 can share COM ports over SMB out of the box using the IBM Peer
Requester.

> though I think in VBox
> I don't need it.  By fopen( "com1", "r+" )ing on both ends, I have
> verified I'm able to send text from one machine to the other, but it
> takes quite a few send tries for a single receieve, so I believe there's
> more to serial programming than I was aware of.
>
> I've also loaded vcom.sys on both ends, but it does not seem the
> Chessmasters are able to talk successfully to each other, and that
> can be a bug in Chessmater, Win-os/2, and/or vcom.sys because the
> windows session seems to freeze completely.

This might be related to your remote COM ports over SMB. VCOM.SYS can
only grant access to /physical/ UART controllers. Basically it acquires
the port from OS/2 in exclusive mode and instead of using it access to
the I/O ports are enabled in the DOS VDM.
Shared COM ports cannot be accessed via direct port I/O.

But emulated COM ports from VBox can be accessed by port I/O.

Marcel

Subject: Re: Using the serial ports
From: Steven Levine
Newsgroups: comp.os.os2.misc
Date: Mon, 19 Oct 2020 20:06 UTC
References: 1
Path: eternal-september.org!news.eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.uzoreto.com!tr3.eu1.usenetexpress.com!feeder.usenetexpress.com!tr1.iad1.usenetexpress.com!border1.nntp.dca1.giganews.com!nntp.giganews.com!buffer1.nntp.dca1.giganews.com!nntp.earthlink.com!news.earthlink.com.POSTED!not-for-mail
NNTP-Posting-Date: Mon, 19 Oct 2020 15:06:53 -0500
From: steve53@nomail.earthlink.net (Steven Levine)
Reply-To: steve53@earthlink.net
Message-ID: <11p86vVJT4Oe-pn2-hSSoDdlsU6bq@slamain>
Newsgroups: comp.os.os2.misc
Subject: Re: Using the serial ports
References: <c8MiH.179563$B8s1.154104@fx15.am4>
User-Agent: ProNews/2 V1.62.cp136-shl
MIME-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit
Date: Mon, 19 Oct 2020 15:06:53 -0500
Lines: 21
X-Usenet-Provider: http://www.giganews.com
NNTP-Posting-Host: 108.193.254.88
X-Trace: sv3-JmySvdeyuSa7/vkLZQvA6fxuU0k0Da62/tLBmmwX62K7sz1DXVeCADHMyDHAqfh5axZyLnHmMiQulTX!5689BA+2zqJfALyw1ncM/zJfRh0RidYR/ZiKTJr5xYIkcwT1VF8fkk4Roaudb/f47W3Y5j8bb/G3!rXyLdijhKxZ0+G45qO4/pg==
X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers
X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly
X-Postfilter: 1.3.40
X-Original-Bytes: 1809
View all headers

On Sun, 18 Oct 2020 00:38:25 UTC, Johann 'Myrkraverk' Oskarsson
<johann@myrkraverk.invalid> wrote:

HI Johann,

> I naively tried to fopen( "com1", "r+" ) but this did not work.

I recommend you test your serial connection with a terminal program
like ZOC or HyperAccess.

fopen is not a good test for a number of reasons. One is that it is
doing buffered IO, but is not what you want for serial data, which is
typically character oriented and may not be line oriented.

Steven

--
---------------------------------------------------------------------
Steven Levine <steve53@earthlink.bogus.net>
DIY/ArcaOS/Warp etc. www.scoug.com www.arcanoae.com www.warpcave.com
---------------------------------------------------------------------

1

rocksolid light 0.9.8
clearnet tor