WINCE基于MC8630的3G模块的控制和加载

 

********************************LoongEmbedded********************************

作者:LoongEmbedded(kandi)

时间:2011.01.14

类别:WINCE驱动开发

********************************LoongEmbedded********************************

系统:WINCE5.0+s3c2440

 

1.       MC8630的电路设计部分

 

图1

2.       MC8630的一些重要的控制引脚描述

ON/OFF

开关机引脚,这个引脚是用来控制MC8630模块的开和关的,MC8630的datasheet相关描述如下:

 

图2

/PON_RESET

模块复位引脚,用于复位MC8630模块,MC8630的datasheet相关描述如下:

 

图3

3.       WINCE下面的控制代码

我是用CMC驱动来管理3G,GPS和蓝牙模块的,其中国CMC驱动的初始化函数CMC_Init来调用MC8630_PowerOn函数来对MC8630模块供电,这个函数内容如下:

 

图4

 

 

4.       WINCE下面的注册表信息

Platform.bib中的内容

UsbcdcDriver.DLL                       $(_FLATRELEASEDIR)\UsbcdcDriver.DLL                            NK    SH 

 

Platform.reg中的内容:

[HKEY_LOCAL_MACHINE\ExtModems\3GModem]

"Port"="COM8:"

"DeviceType"=dword:00000001

"FriendlyName"="3G Wireless Modem"

"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

 

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\CDC\CDC_Class]

"Prefix"="CDC"

"Dll"="UsbCdcDriver.dll"

 

[HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\CDC\Instance]

"Dll"="UsbCdcDriver.dll"

 

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\Default\Default]

"Dll"="UsbCdcDriver.dll"

 

;modem

[HKEY_LOCAL_MACHINE\Drivers\CDC\ClientDrivers\Serial\0]

"RxBufferSize"=dword:00040000

"Prefix"="COM"

"Index"=dword:00000008

;"DeviceArrayIndex"=dword:00000001

"DeviceArrayIndex"=dword:00000000

"Tsp"="Unimodem.dll"

"DeviceType"=dword:00000000

"PowerReportFlags"=dword:00000000

"IClass"=hex(7):7b,43,43,35,31,39,35,41,43,2d,42,41,34,39,2d,34,38,61,30,2d,\

  42,45,31,37,2d,44,46,36,44,31,42,30,31,37,33,44,44,7d,3d,25,62,00,7b,41,33,32,\

  39,34,32,42,37,2d,39,32,30,43,2d,34,38,36,62,2d,42,30,45,36,2d,39,32,41,37,30,\

  32,41,39,39,42,33,35,7d,00,00

"Dll"="UsbCdcDriver.dll"

 

;AT

[HKEY_LOCAL_MACHINE\Drivers\CDC\ClientDrivers\Serial\1]

"Prefix"="COM"

"RxBufferSize"=dword:00040000

"Index"=dword:00000003

"DeviceArrayIndex"=dword:00000001

"DeviceType"=dword:00000000

"PowerReportFlags"=dword:00000000

"IClass"=hex(7):7b,43,43,35,31,39,35,41,43,2d,42,41,34,39,2d,34,38,61,30,2d,\

  42,45,31,37,2d,44,46,36,44,31,42,30,31,37,33,44,44,7d,3d,25,62,00,7b,41,33,32,\

  39,34,32,42,37,2d,39,32,30,43,2d,34,38,36,62,2d,42,30,45,36,2d,39,32,41,37,30,\

  32,41,39,39,42,33,35,7d,00,00

"Dll"="UsbCdcDriver.dll"

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\7111\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7111_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7111_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\4817\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\4817_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\4817_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\6610\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6610_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6610_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1478\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1478_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1478_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\8222\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\8222_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\8222_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\7326\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7326_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7326_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1276\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1276_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1276_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\6839\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6839_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6839_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\6645\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6645_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6645_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\6797\Default\Default\CDC_Class]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6797_0_0\0]

"Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\6797_0_0\1]

"Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\1669\Default\Default\CDC_Class]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1669_0_0\0]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\1669_0_0\1]

         "Dll"="UsbCdcDriver.dll"

 

 

        

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\5611\Default\Default\CDC_Class]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\5611_0_0\0]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\5611_0_0\1]

         "Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\7099\Default\Default\CDC_Class]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7099_0_0\0]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7099_0_0\1]

         "Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\54052\Default\Default\CDC_Class]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\54052_0_0\0]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\54052_0_0\1]

         "Dll"="UsbCdcDriver.dll"

 

 

 

[HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\7433\Default\Default\CDC_Class]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7433_0_0\0]

         "Dll"="UsbCdcDriver.dll"

[HKEY_LOCAL_MACHINE\Drivers\CDC\LoadClients\7433_0_0\1]

         "Dll"="UsbCdcDriver.dll"

 

[HKEY_CURRENT_USER\Comm\RasBook\EVDO]

"DevCfg"=hex:\

      30,00,00,00,05,00,00,00,00,01,00,00,00,c2,01,00,00,00,08,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00

"Entry"=hex:\

      08,02,40,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,\

      00,00,00,00,00,00,00,00,00,23,00,37,00,37,00,37,00,00,00,00,00,00,00,84,f2,\

      1b,d3,84,a3,88,c0,10,f9,1b,d3,00,00,00,00,fa,11,05,00,02,01,00,00,00,00,00,\

      00,02,01,00,00,00,00,25,00,80,31,70,82,80,31,70,82,fa,11,05,00,ac,ef,1b,d3,\

      14,08,24,80,58,f9,1b,d3,00,ff,1b,d3,08,83,00,82,00,ff,1b,d3,a8,42,24,80,00,\

      00,00,00,c8,b4,88,83,98,f2,1b,d3,cc,00,00,00,1a,45,08,a0,fd,00,00,00,00,00,\

      00,00,1f,f8,00,00,00,00,00,00,00,00,20,00,0e,00,00,00,ff,ff,00,00,a0,18,b2,\

      d2,fd,fd,fd,fd,15,00,00,00,10,00,00,00,00,00,00,00,00,00,00,00,e0,01,00,00,\

      ff,ff,00,00,c8,ff,ff,ff,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,cc,ff,07,00,0f,00,00,00,00,00,00,00,00,00,00,00,b4,f2,1b,d3,00,00,\

      00,00,fd,00,00,00,00,00,00,00,c4,33,1f,c0,c8,ff,ff,ff,00,04,00,00,00,03,08,\

      00,00,ff,07,00,01,ff,07,00,00,00,00,00,ff,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,01,00,00,00,6d,00,6f,00,64,\

      00,65,00,6d,00,00,00,80,79,02,70,00,00,00,00,50,f1,1b,d3,20,50,0b,d3,04,00,\

      00,00,04,00,33,00,47,00,20,00,57,00,69,00,72,00,65,00,6c,00,65,00,73,00,73,\

      00,20,00,4d,00,6f,00,64,00,65,00,6d,00,00,00,1b,d3,20,50,0b,d3,20,50,0b,d3,\

      00,00,04,d0,00,00,0b,d3,3f,50,00,00,3c,fe,03,c0,20,50,0b,d3,80,79,02,70,04,\

      00,00,00,7c,31,1c,c0,02,01,00,00,ec,4a,1e,c0,8c,1a,04,c0,78,00,00,00,24,24,\

      04,d0,00,00,00,00,e0,23,04,d0,8c,f6,03,c0,08,00,00,00,24,24,04,d0,ff,ff,ff,\

      ff,e0,23,04,d0,00,00,00,00,08,00,00,00,24,24,04,d0,78,00,00,00,ac,09,04,c0,\

      78,00,00,00,08,00,00,00,00,00,00,00,34,c1,11,c0,98,f1,1b,d3,00,00,00,00,88,\

      c5,11,c0,03,00,00,00,80,1f,05,00,f0,f1,1b,d3,30,1c,04,c0,18,0f,13,d0,00,0f,\

      13,d0,03,00,00,00,f0,31,0f,c0,01,00,00,80,78,f3,1b,d3,88,c5,11,c0,60,f2,1b,\

      d3,01,00,00,80,00,00,00,00,04,68,0f,c0,78,f3,1b,d3,01,00,00,80,02,00,40,00,\

      03,f7,00,00,00,00,00,00,f0,08,c8,83,00,00,11,c0,01,00,00,80,37,00,00,00,36,\

      00,00,00,38,00,00,00,00,00,00,00,1c,c3,06,c0,00,00,00,00,f0,08,c8,83,9c,f6,\

      c5,83,cc,08,c8,83,01,00,00,00,01,00,00,00,f0,08,c8,83,9c,f6,c5,83,cc,08,c8,\

      83,3c,6c,26,80,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,c4,08,c8,83,\

      57,00,00,00,08,83,00,82,01,00,00,00,00,d0,00,00,00,00,5d,d2,00,00,00,00,c4,\

      08,c8,83,e4,e7,25,80,00,00,5d,d2,00,d0,00,00,01,00,00,00,00,00,5d,d2,00,d0,\

      00,00,00,00,00,00,fc,f2,1b,d3,00,f0,df,83,00,00,00,00,04,a7,00,82,e0,f2,1b,\

      d3,13,00,00,00,2c,8a,23,80,00,00,00,00,00,00,00,00,0b,00,00,00,38,3b,0f,c0,\

      dc,1f,1a,c0,bc,f2,1b,d3,00,00,00,00,a8,f2,1b,d3,88,c5,11,c0,a4,1c,3e,c0,00,\

      00,00,00,7c,f2,1b,d3,00,72,23,80,02,00,40,00,01,00,00,00,00,f0,df,83,50,f3,\

      1b,d3,cc,f3,1b,d3,01,00,00,00,50,f3,1b,d3,00,00,00,00,f1,ac,ff,ff,04,a7,00,\

      82,e4,f2,1b,d3,b8,f2,1b,d3,78,3d,25,80,cc,f3,1b,d3,6c,f3,1b,d3,06,00,00,00,\

      55,04,04,00,00,00,00,00,01,00,00,00,50,f3,1b,d3,00,00,00,00,84,82,02,c0,cc,\

      f3,1b,d3,00,00,00,00,cc,f3,1b,d3,48,f3,1b,d3,f0,f2,1b,d3,cc,f3,1b,d3,00,00,\

      00,00,cc,f3,1b,d3,04,3f,25,80,08,83,00,82,00,d0,00,00,60,df,28,d0,4c,b4,10,\

      c0,00,00,00,00,60,df,28,d0,88,bc,11,c0,00,0f,13,d0,00,0f,13,d0,e0,23,04,d0,\

      24,24,04,d0,1f,0f,00,00,3c,fe,03,c0,c8,b4,88,83,00,00,00,00,c8,b4,88,83,00,\

      00,00,00,cc,f3,1b,d3,9c,f4,04,00,00,00,00,00,48,f3,1b,d3,18,41,25,80,40,bd,\

      26,d3,00,00,00,00,40,10,00,00,0f,00,00,00,40,0f,05,d0,06,00,00,00,55,04,04,\

      00,00,00,00,00,cc,f3,1b,d3,00,00,00,00,0a,00,00,00,90,0d,00,00,00,00,00,00,\

      ac,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\

      00,00,00,00,00,00,00,00,00,00,00

 

posted @ 2011-01-14 21:58  LoongEmbedded  阅读(888)  评论(0编辑  收藏  举报