|
ericwind
新手上路

积分 4
发帖 1
注册 2010-6-30
状态 离线
|
『楼 主』:
DOS下端口数据截获
使用 LLM 解释/回答一下
最近老板需要我们开发一个DOS操作系统下拦截串并口数据的软件,一点思路都没有,希望大家给点建议如何入手
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.
|
|
2010-10-26 11:39 |
|
|
cnch
中级用户
  
积分 326
发帖 70
注册 2003-1-10
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
老板是考验你的能力吧!拦截串并口数据牵涉到对硬件的了解,请先熟悉一下计算机的硬件,如串并口的地址全世界都是相同的,知道了地址就可以对其进行读写操作。
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.
|
|
2010-11-7 01:04 |
|
|
netwinxp
高级用户
   
积分 741
发帖 366
注册 2007-7-25
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
串口数据口并不是一个可以读回前一个数据的IO口,所以通过在串口外接一个类软件狗的硬件收集数据,然后没数据传送发生的时候再从该硬件回读是一个解决办法的思路。
也可以进入保护模式,把对串口的I/O设置成特权指令(windows对串口IO并不是特权指令)来拦截,但难度太大,远不如前一条方法直观。
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.
|
|
2010-11-26 08:30 |
|
|
then0011
新手上路

积分 5
发帖 9
注册 2008-8-28
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
DOS 那个东西 厉害
老板考验你吧,都不用DOS 用windows 好点
DOS 系统不知道你老板要干什么
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
|
|
2011-1-12 23:57 |
|
|
070
高级用户
    苏醒的沉睡者
积分 659
发帖 217
注册 2003-2-15 来自 福建
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
虽然现在回答这个问题没有什么意义,不过通过Emm386的I/O捕获功能应该可以实现楼主所需要的部分功能,至于拦截数据这个功能能够实现还要再细看文档。
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,手都生了,赶紧回来练练.嘿嘿 |
|
2014-9-15 18:41 |
|