cdm答复如下:
You have to give devn-fd more options. You will have to give it a MAC address (AFAIK) and you will also want to use the hdlc option.
其中hdlc选项我不知到该如何设置.
事实上hdlc指的是什么, 我都不知道. 是否是指High-Level Data Link Control 高级数据链路层控制协议? 可它该怎么设置呢?
我在命令里为两台计算机的串口指定了不同mac, 仍然不行, 还是只能看到本地的主机.
xtang什么时候来呀?
哪位大侠能仗义出手, 救苦救难?!
QNX的Utilities Reference中devn-fd.so的文档很明白地指出:
For example, you could use devn-fd.so to connect tw machines with a null-modem RS-232 serial cable. By using file-descriptor I/O to the serial devices, devn-fd.so would implicitly use a serial driver and set up a logical network link.
我的理解是, 我为devn-fd指定了ser1之后, devn-fd就自动为我设置了逻辑网络连接.
但我查遍了连机文档、网上的QNX知识库和新闻组都没有查到任何"HOW TO"!
难道qnet via serial这么诱人的功能就没什么人用!?
或者是实在太简单, 而我太笨, 有什么关键地方没理解?
苦恼!
First of all, you need to do a “use /lib/dll/devn-fd.so” to see if there is an option called “ahdlc”, if there is none, you are using an too old version, you will have to try the “use ip” part below.
[For Use Devn-fd.so]
First make sure the 2 serial set to proper paramters (baud rate, follow control), make sure you can “qtalk” each other through the serial link.
You need to start the devn-fd.so with “fd”, “mac”, and “ahdlc” options