xuejd780126
驱动牛犊
驱动牛犊
  • 注册日期2006-10-25
  • 最后登录2010-06-04
  • 粉丝0
  • 关注0
  • 积分253分
  • 威望46点
  • 贡献值0点
  • 好评度25点
  • 原创分0分
  • 专家分0分
阅读:1164回复:0

wince下如何添加串口2?

楼主#
更多 发布于:2007-04-08 16:49
PB4.2中,我把Serial->Com16550、Com16550 (Second Instance)、Com16550 (Third Instance)全部添加进去

有人说要改注册表,我看了一下,注册表中的相关项如下:

;=============== UART0 (physical COM1 connector P1) (Serial) ===============
IF BSP_NOSERIAL !
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SER2410]
   "DeviceArrayIndex"=dword:0
   "Irq"=dword:03
   "IoBase"=dword:50000000
   "IoLen"=dword:2C
   "Prefix"="COM"
   "Dll"="SER2410.Dll"
   "Order"=dword:0
   "Priority"=dword:0
   "Port"="COM1:"
   "DeviceType"=dword:0
   "FriendlyName"="Serial Cable on COM1:"
   "Tsp"="Unimodem.dll"
   "DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00
ENDIF BSP_NOSERIAL !

[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SER2410\Unimodem]
   "Tsp"="Unimodem.dll"
   "DeviceType"=dword:0
   "FriendlyName"="SER2410 UNIMODEM"
   "DevConfig"=hex: 10,00, 00,00, 05,00,00,00, 10,01,00,00, 00,4B,00,00, 00,00, 08, 00, 00, 00,00,00,00

; S2410 IrDA(UART2)
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\IRDA2410]
    "DeviceArrayIndex"=dword:1
    "Irq"=dword:09
    "IoBase"=dword:50008000
    "IoLen"=dword:2C
    "Prefix"="COM3"
    "Dll"="IRDA2410.Dll"
    "Order"=dword:0
    "Priority"=dword:0
    "Port"="COM3:"
    "DeviceType"=dword:0  ; IRDA modem, 0 -> null modem
    "FriendlyName"="S2410 IRDA2410"
    "Index"=dword:2
    "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}"

===============知道要加COM2,具体怎么改呢?

再就是写程序,谁能给个程序框架?

我将把整个调试过程中遇到的问题和最终的答案都写在这个帖子里,还望知道的多多帮助!
游客

返回顶部