English 中文(简体)
请求_ 分配序列港口登记册时,区域职能呼吁失败
原标题:request_region function call fails when allocating serial port registers

I m a Professional C programmer. I m 学习装置驱动器,希望书写(和测试)一个简单的序列号港口驱动器,按9600的注册率发送特性。 我开始撰写该守则。

The problem is the function request_region fails (returns NULL) when I try to allocate the serial port registers with address range 03f8-03ff. When I issue the command "cat /proc/ioports" I can see the following line

页: 1

之所以如此,是因为这些港口已经分配给现有的序列司机。

Do I need to unload the already existing serial driver to test my driver? If so, how can I do that?

最佳回答

你们是正确的:已经有一个使用这些港口的油轮司机。 我假设你重新使用英特尔箱,因此,你会再次使用8250名司机。 您可以尝试通过:

modprobe -vr 8250

但是,如果你重新使用由分局提供的弹片,这很可能失败,因为其中多数人都拥有这一模块。 你们可以检查。

grep CONFIG_SERIAL_8250 /boot/config-`uname -r`

页: 1 然后,你们需要汇编一下,8250名司机实际上是一个可装的单元。

问题回答

暂无回答




相关问题
How to "echo off" the serial port in java

I am using java comm library for serial port communication in my application. When I put some data on output stream, after sometime the same command is displayed on input stream of serial port. Do ...

Can someone please explain COMTIMEOUTS for me?

I have an application that has strict timing. Inter-character delay must be no more than is 0.15s The messages themselves are quite small. 10 - 50 chars I don t understand what ...

Unable to open serial port in .NET

I am trying to open COM1, but get a strange error every time I call SerialPort.Open(). The error is: The given port name does not start with COM/com or does not resolve to a valid serial port. ...

Serial programming: measuring time between characters

I am sending/receiving data over a serial line in Linux and I would like to find the delay between characters. Modbus uses a 3.5 character delay to detect message frame boundaries. If there is more ...

send string to serial

Buongiorno, I m trying to send a simple string to a serial port to command an instrument for noise measures. The strings are very easy: "M 1" = instrument on "M 2" = instrument off "M 3" = begin the ...

Java RS232 Comm on Vista-64 bit

We have a Java application which needs to communicate with a peripheral device over Virtual Serial COM port. We use the RS232 Java COMM API (javax.comm.properties, comm.jar, win32com.dll) to achieve ...

热门标签