wince6.0 RIL 打开串口失败
请教各位:
我在wince6.0下面 在打开com口的时候(CreateFile())提示失败.我用的是ENFORA的例子.在BIB和REG文件里面都已经添加了模拟器对应文件下面的一些命令.但是在烧完OS后正常加载RIL的过程中,从TRACE信息显示如下:
RILDrv : E : CComHandle::OpenDownstreamPort : Couldn't open downstream port
RILDrv : E : RIL_Init : RIL failed to initialize
因为我使用的是ENFORA,在RILMDD部分的Comhandle中查找的是注册表的ComPort和ComPortNotifications两个.我查看IMGENFORA的时候发现只有ComPort 而且对应的分别如下:
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\RIL]
"Dll"="rilgsm.dll"
;DEVFLAGS_LOADLIBRARY 0x00000002 // Use LoadLibrary instead of LoadDriver
"Flags"=dword:2
"Index"=dword:1
"Order"=dword:3
"Prefix"="RIL"
"ComPort"="COM7:"
"RebootOKEvName"="Mux0710_RebootOK" ; name of the event used to signal reboot OK
"RebootKOEvName"="Mux0710_RebootKO" ; name of the event used to signal reboot failure
和
; COM1 for underlying GSM 07.10
[HKEY_LOCAL_MACHINE\Software\Microsoft\GSM07_10]
"ComPort"="COM1:"
"BaudRate"=dword:1C200 ; 115200
"FrameOption"=dword:1 ; Advanced
而ComPortNotifications 根本在IMGENFORA里面没有,如果找不到ComHandle会默认拿Com2来CreateFile。
我现在是拿target的串口来作为连接modem的口。
请问各位我到底需要怎么样来调整我的Com口。使得数据可以正确的传输。谢谢!