阅读:4753回复:16
用WINCE上网的问题?高手看看
我想在现有的2440+WINCE42的平台上增加一个GSM模块,通过GPRS上网,然后通过IE来浏览网页,不知道是否可以?另外如何将接受到的数据传递给IE,实现起来是否很复杂,是否工作量很大?希望有这方面经验的大哥指点一下
|
|
沙发#
发布于:2007-04-26 12:40
这个网上有很多实例,主要建立串口拨号连接就行,系统本身就有的,通过at指令配置模块就行了。跟ie没有关系的
|
|
板凳#
发布于:2007-04-26 14:40
可是串口接收的数据怎么传递给IE,让IE显示出来网页呢?楼上的大哥能不能详细说说?
|
|
地板#
发布于:2007-04-28 07:53
WINCE是一个很强大的系统,这些事情不需要都让我们做.
给你的串口驱动程序设置注册表让系统知道有一个MODEM, 系统之后创建一个拨号连接,连上就可以了,GPRS好像拨*99#还什么,记不清了. |
|
|
地下室#
发布于:2007-04-28 10:39
谢谢斑竹大哥,可否举个例子说一下如何设置串口的注册表让系统知道有一个MODEM。
另外是否只要这样设置了,连接成功之后GPRS的数据就可以让IE显示出来了呢? |
|
5楼#
发布于:2007-04-29 20:27
比如下面是PCMCIA MODEM卡的注册表设置.:
[HKEY_LOCAL_MACHINE\Drivers\PCMCIA\Modem\Unimodem] "Tsp"="Unimodem.dll" "DeviceType"=dword:3 DeviceType=3就表示它是一个MODEM. 如果你的设置是BUILTIN的,就写成这样. [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\(the name of your driver)\Unimodem] "Tsp"="Unimodem.dll" "DeviceType"=dword:3 |
|
|
6楼#
发布于:2007-04-29 21:22
谢谢斑竹大哥的指点
|
|
7楼#
发布于:2007-04-30 11:45
再请教斑竹一下,PB4。2提供了拨号程序的样本代码吗?
|
|
8楼#
发布于:2007-05-01 20:53
有,那个程序应该叫rnapp.exe,你找找看.
|
|
|
9楼#
发布于:2007-05-02 04:42
我有这样的想法:
1。modem方式,这个就和pc上实现是一样的。在pc上面搞一遍就知道了。 2。直接操作AT命令。 3。用gsmlib库 ---- 我不知道哪种常用。但我想楼主需要的应该是第一种需求。拨号成功后就有一个新的连接。上层应用IE,应该是不用管链路的。 |
|
10楼#
发布于:2007-05-28 11:43
引用第5楼microsun于2007-04-29 20:27发表的 : 版主大哥,可否详细说说 "DeviceType"各个值,代表的是什么设备 |
|
11楼#
发布于:2007-05-28 17:10
前阵子我已经把GPRS SIM300+S3C2440 WINC5.0上网实现了,确实如前面的人讲的,非常简单,只要做了一个串口驱动,注册表是现成的,而且你有现成的BSP的话,这个也不用你作,你只需要通过控制面板的网络连接里添加一个拨号连接。硬件上确定那个串口连接GPRS模块。新建一个PPP拨号连接,拨号连接里设置一下,选择串口,设定波特率,数据位,停止位,流控制,然后比较重要的安全设置,一定要选上登陆安全:使用扩展验证协议(EAP),然后从下拉列表里选MSV2-Challenge.下一步号码设置,电话号码设一下:*99***1# 针对移动的,联通我不知道。完成,然后双击新建立的拨号连接,点击拨号属性,设置一下,需要修改的是Dialing patterns ,所有的都改成G,(E,e = 国家码,F,f=区号,G,g=号码),设置完成,如果串口驱动没问题,GSM模块没问题和SIM卡开通了GPRS并且是移动的,可以点击连接,就开始拨号了,一切顺利任务栏会有个拨号连接图标。然后启动IE,点击工具栏的选项,点击连接属性页,拨号连接选择刚建立的拨号连接,就可以了,输入网址上网,不过问题是,我也没解决了,打开网页慢,而且打开复杂的网页,IE直接异常退出了,所以我觉得用这个上网实用性太小了,做一些网络应用还差不多,上网浏览不大好。新浪网页就会导致我的IE异常终止。
|
|
12楼#
发布于:2007-05-28 17:18
GPRS 上网拨号连接的注册表:
[HKEY_CURRENT_USER\Comm\RasBook\GPRS CNCT] "Entry"=hex:\ 08,02,00,01,00,00,00,00,56,00,00,00,31,00,30,00,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,2a,00,39,00,39,00,2a,00,2a,00,2a,00,31,00,23,00,\ 00,00,70,19,0f,00,00,00,00,00,8c,82,e8,02,00,00,00,00,00,00,00,00,36,00,00,\ 00,64,84,e8,02,70,00,00,00,9c,f4,02,18,56,00,00,00,00,00,00,00,00,00,00,00,\ 20,38,e8,02,36,00,00,00,50,00,00,00,56,00,00,00,70,00,00,00,00,00,00,00,7d,\ 00,00,00,00,00,00,00,70,10,e8,02,00,00,00,00,00,00,00,00,00,00,00,00,00,00,\ 00,00,70,19,0f,00,7c,00,00,00,8c,68,e8,02,10,1a,0f,00,80,f5,02,18,00,00,00,\ 00,00,00,00,00,88,f3,02,18,3c,fa,02,18,00,00,00,00,ff,ff,00,00,00,00,00,00,\ 66,66,00,00,00,00,00,00,00,00,00,00,01,00,00,00,01,00,00,00,00,4e,ea,01,00,\ 00,00,00,a8,e2,37,08,48,2a,f9,03,b0,e2,37,00,00,01,00,00,cc,60,38,08,01,00,\ 00,00,cc,47,ea,01,70,19,0f,00,54,1d,f9,03,80,f5,02,18,ec,7d,f7,03,44,4b,e8,\ 02,00,00,00,00,58,3d,e8,02,00,00,ff,00,70,00,00,00,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,1c,1a,0f,00,91,00,00,00,01,00,00,00,01,00,00,00,00,00,\ 00,00,00,00,43,00,4f,00,4d,00,31,00,20,00,0a,4e,84,76,20,00,48,00,61,00,79,\ 00,65,00,73,00,20,00,7c,51,b9,5b,03,8c,36,52,e3,89,03,8c,68,56,3a,00,00,00,\ c8,f4,02,18,a8,4f,05,00,40,02,c2,00,64,eb,0b,00,62,d9,4e,8e,01,00,00,00,14,\ a0,10,00,28,a0,10,00,88,f5,02,18,88,f5,02,18,06,00,00,00,00,00,00,00,00,00,\ 00,00,7c,26,05,00,6b,00,00,00,5b,00,00,00,08,01,00,00,78,00,00,00,ec,f9,36,\ 00,14,f5,02,18,dc,4a,05,00,40,02,c2,00,ff,ff,3f,00,44,63,01,00,94,4b,05,00,\ 00,00,00,00,ec,f9,36,00,08,00,00,00,40,02,c2,00,01,00,00,00,40,f5,02,18,e0,\ 8d,04,00,40,02,c2,00,ec,f9,36,00,62,d9,4e,8e,10,01,0f,00,d0,b8,08,00,ec,f9,\ 36,00,08,00,00,00,14,98,04,00,40,02,c2,00,01,00,00,00,44,63,01,00,fc,4d,05,\ 00,bc,62,01,00,00,00,00,00,44,63,01,00,50,94,03,00,00,00,00,00,01,00,00,00,\ 6b,00,00,00,5b,00,00,00,08,01,00,00,00,00,00,00,00,00,00,00,80,5b,01,7c,e0,\ bd,11,00,00,00,00,00,b8,f6,02,18,c4,a2,08,00,e0,f5,02,18,e4,f5,02,18,0c,00,\ 00,00,14,a1,08,00,0c,00,00,00,00,00,00,00,b8,f6,02,18,00,00,00,00,00,00,00,\ 00,84,0e,02,00,e4,f5,02,18,dc,f5,02,18,d0,60,38,08,00,00,00,00,b8,f6,02,18,\ 00,00,00,00,12,ad,d9,af,00,00,00,00,14,a1,08,00,00,00,00,00,80,5b,01,7c,b8,\ f6,02,18,d0,60,38,08,00,00,00,00,00,00,ff,00,0c,00,00,00,80,5b,01,7c,00,00,\ 00,00,e0,57,01,7c,00,00,00,00,b8,f6,02,18,00,00,00,00,e0,57,01,7c,01,00,00,\ 00,48,ca,01,00,0c,00,00,00,e0,57,01,7c,0c,00,00,00,d0,ca,01,00,b8,f6,02,18,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,22,\ 00,00,00,38,fe,00,f0,a4,f6,02,18,ac,95,20,8c,22,00,00,00,00,00,00,00,a0,59,\ 01,7c,a0,59,01,7c,94,c8,ff,ff,01,00,00,00,38,9a,20,8c,00,00,00,00,a0,59,01,\ 7c,a0,59,01,7c,00,00,00,00,a0,59,01,7c,00,00,00,00,1c,6a,20,8c,00,00,00,00,\ 00,00,00,00,10,00,00,00,00,c8,ff,ff,01,00,00,00,24,17,01,00,63,6b,28,57,53,\ 62,00,5f,ef,7a,e3,53,00,00,00,00,50,f8,02,18,04,f7,02,18,00,00,00,00,2c,f8,\ 02,18,00,00,00,00,00,00,00,00,70,10,e8,02,01,00,00,00,00,00,ff,00,00,00,00,\ 00,00,00,00,00,00,00,00,00,00,00,00,00,90,17,0f,00,00,00,00,00,00,00,00,00,\ 00,00,00,00,3e,00,00,00,0b,00,00,00,00,00,00,00,00,00,00,00,00,00,00,00,10,\ 26,e8,02,00,00,00,00,00,00,00,00,00,00,00,18,c4,7f,ee,8f,0f,00,00,00,00,00,\ 00,00,b4,1e,76,8e,c0,63,12,8e,18,c7,78,8e,c4,7f,ee,8f,0f,00,00,00,38,fe,00,\ f0,98,f7,02,18,ac,95,20,8c,0f,00,00,00,00,00,00,00,c4,b3,00,f0,a0,59,01,7c,\ 00,00,00,00,a0,59,01,7c,00,00,00,00,00,00,00,00,08,fb,02,18,f0,69,20,8c,f1,\ ec,ff,ff,00,00,00,00,1a,00,00,00 "DevCfg"=hex:\ 30,00,00,00,78,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 串口驱动的注册表: [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial] "DeviceArrayIndex"=dword:0 "Irq"=dword:1c "MemBase"=dword:50000000 "MemLen"=dword:2C "InterruptBitsShift"=dword:0 ; UART 0 Interrupt Sub Register shift bit. "ISTTimeouts"=dword:200 ; every 512 ticks checking Modem status. "Prefix"="COM" "Dll"="serial_smdk2440.dll" "Order"=dword:0 "Priority"=dword:0 "Port"="COM1:" "DeviceType"=dword:0 "FriendlyName"="Serial Cable on COM1:" "Tsp"="unimodem.dll" "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}" "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_CURRENT_USER\ControlPanel\Dial\Locations] ; Each MultiSz location (value name = PermLocationID" has : ; LocationName, LocalFmt, LdFmt, IntntlFmt, AreaCode, CwCode, CountryCode, & Options "0"=multi_sz: "Work", "G", "G", "G", "571",/*举例杭州*/ " ", "86", "0" |
|
13楼#
发布于:2007-05-29 21:27
引用第10楼wince_lover于2007-05-28 11:43发表的 : DeviceType为0是直连的串口线, 为3是MODEM,别的我记不住了. CE下用MODEM上网,只是慢一点,那是因为CPU太慢了. 其它应该和PC上不会有太大差别. |
|
|
14楼#
发布于:2007-05-30 16:47
用MODEM上网慢,不一定受限于CPU,而是受限于数据传输速率,最高不能超过115200,PC上用MODEM一样。但是实际使用的结果是CE上的IE可能有问题,打开复杂的网页会异常退出。
DeviceType的取值定义在public/common/oak/inc/unimodem.h #define DT_NULL_MODEM 0 #define DT_EXTERNAL_MODEM 1 #define DT_INTERNAL_MODEM 2 #define DT_PCMCIA_MODEM 3 #define DT_PARALLEL_PORT 4 #define DT_PARALLEL_MODEM 5 #define DT_IRCOMM_MODEM 6 #define DT_DYNAMIC_MODEM 7 #define DT_DYNAMIC_PORT 8 实际上你根本不用管这些,缺省就是设成0。能不能做modem不由它决定,而是"Tsp"="unimodem.dll". |
|
15楼#
发布于:2008-06-12 10:23
我现在可以用GPRS上网了,但是现在的问题是,建立新连接的时候只能选择COM1口,COM2、COM3都不能选择,但是COM1现在给GPS用了,请问怎么才能在建立新连接时可以在COM1-COM3中任意选择?COM2和COM3作为通用串口都可以正常工作的。
下面是注册表设置: IF BSP_NOSERIAL ! [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\UART0] "DeviceArrayIndex"=dword:0 "Irq"=dword:03 "IoBase"=dword:50000000 "IoLen"=dword:2C "Prefix"="COM" "Dll"="SER2440.Dll" "Order"=dword:0 "Index"=dword:1 "Priority"=dword:0 "Port"="COM1:" "DeviceType"=dword:0 ;null modem "FriendlyName"="S2440 COM1" ; "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}" "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 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\UART1] "DeviceArrayIndex"=dword:1 "Irq"=dword:09 "IoBase"=dword:50008000 "IoLen"=dword:2C "Prefix"="COM" "Dll"="SER2440.Dll" "Order"=dword:0 "Index"=dword:2 "Priority"=dword:0 "Port"="COM2:" "DeviceType"=dword:0 ;null modem "FriendlyName"="S2440 COM2" ; "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}" "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 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\UART2] "DeviceArrayIndex"=dword:2 "Irq"=dword:0a "IoBase"=dword:50004000 "IoLen"=dword:2C "Prefix"="COM" "Dll"="SER2440.Dll" "Order"=dword:0 "Index"=dword:3 "Priority"=dword:0 "Port"="COM3:" "DeviceType"=dword:0 ;null modem "FriendlyName"="S2440 COM3" ; "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}" "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 [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SER2440\Unimodem] "Tsp"="Unimodem.dll" "DeviceType"=dword:0 "FriendlyName"="SER2440 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 ENDIF BSP_NOSERIAL ! 高手看看有什么问题? |
|
16楼#
发布于:2008-06-18 09:12
[HKEY_LOCAL_MACHINE\Drivers\BuiltIn\SER24402]
"Tsp"="Unimodem.dll" "DeviceArrayIndex"=dword:2 "Irq"=dword:9 "IoBase"=dword:50008000 "IoLen"=dword:2C "Prefix"="COM" "Dll"="SER2440.Dll" "Order"=dword:2 "Priority"=dword:0 "Port"="COM3:" "DeviceType"=dword:2 ; null modem "FriendlyName"="S2440 COM3" "Index"=dword:3 "IClass"="{A32942B7-920C-486b-B0E6-92A702A99B35}" 我的注册表是这样的,可以用COM3链接 IE只能上一些简单的网站,复杂的都会异常退出,估计是IE本身支持的问题,现在的网站内容太多也应用了各种各样的技术 |
|