China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-31 20:45
中国DOS联盟论坛 » DOS开发编程 & 发展交流 (开发室) » Interception of port data under DOS View 2,700 Replies 4
Original Poster Posted 2010-10-26 11:39 ·  中国 北京 中国电信北京研究院
新手上路
Credits 4
Posts 1
Joined 2010-06-30 16:34
16-year member
UID 169725
Gender Male
Status Offline
Recently, the boss needs us to develop a software to intercept serial and parallel port data under the DOS operating system. I have no ideas at all. I hope everyone can give some suggestions on how to start.
Floor 2 Posted 2010-11-07 01:04 ·  中国 上海 电信
中级用户
★★
Credits 326
Posts 70
Joined 2003-01-10 00:00
23-year member
UID 718
Gender Male
Status Offline
The boss is testing your ability, right! Intercepting serial and parallel port data involves understanding hardware. First, familiarize yourself with computer hardware. For example, the addresses of serial and parallel ports are the same all over the world. Once you know the address, you can perform read and write operations on it.
Floor 3 Posted 2010-11-26 08:30 ·  中国 福建 厦门 电信
高级用户
★★★
Credits 741
Posts 366
Joined 2007-07-25 19:11
19-year member
UID 94024
Gender Male
Status Offline
The serial data port is not an IO port that can read the previous data. So, a solution idea is to externally connect a hardware similar to a watchdog on the serial port to collect data, and then read back from this hardware when there is no data transmission.
It is also possible to enter protected mode and set the IO of the serial port as a privileged instruction (the IO of the serial port in Windows is not a privileged instruction) to intercept, but it is too difficult and far less intuitive than the previous method.
Floor 4 Posted 2011-01-12 23:57 ·  中国 广东 深圳 电信
新手上路
Credits 5
Posts 9
Joined 2008-08-28 10:30
17-year member
UID 124367
Gender Male
Status Offline
DOS that thing is powerful

The boss is testing you, not using DOS but using Windows is better

Don't know what the boss wants to do with the DOS system
Floor 5 Posted 2014-09-15 18:41 ·  中国 福建 福州 联通
高级用户
★★
苏醒的沉睡者
Credits 659
Posts 217
Joined 2003-02-15 00:00
23-year member
UID 930
Gender Male
From 福建
Status Offline
Although it doesn't make much sense to answer this question now, the part of the function the original poster needs can probably be achieved through the I/O capture function of Emm386. As for whether the function of intercepting data can be achieved, I need to look at the documentation in detail.
好久没碰Dos,手都生了,赶紧回来练练.嘿嘿
Forum Jump: