Windows Mobile (EVC)开发手记2
2005-05-17 17:19
225 查看
3.关于spdps.exe /create /device (only do this once)
一般来讲,一台手机使用上述命令创造一个证书后,这台手机就与注册的这台电机绑定了,我曾经试过先在台式机上使用上述命令,然后又在我的本本上使用了一次,结果二者都不能运行了,害的我只好将手机恢复到出厂状态。主要原因在于Activesync在第一次与手机相连时就会说明:"with this computer"
[随便写的,可能不对,还需要再验证]
一旦创建一个证书之后,还可以使用这个命令查看选择已经注册的证书:spdps.exe / device
4.写好之后的程序的安装,可以参照这篇文章:
《Windows Mobile-based Smartphone Applications Deployment Demystified》
5.How do i connect smartphone 2003 emulator with PC using active syn
Start the emulator.
Open the SDK command prompt, found under: Start->All Programs->Microsoft Smartphone SDK->Smartphone SDK.
Run emuascfg specifying the /SP flag for the Smartphone emulator. Press Enter, and wait until emuascfg has completed.
Close the command window when it's finished.
Confirm that ActiveSync has Allow Network (Ethernet) and Remote Access Service (RAS) server connection with this desktop computer enabled. Find this under ActiveSync's Connection Settings dialog.
Switch to the emulator.
Open ActiveSync in the emulator.
Choose "Sync".
The emulator will then connect to the desktop via the ethernet.
To disable Ethernet support in the emulator
Shut down the emulator if it is running.
In eMbedded Visual C++, on the Tools menu, click Configure Platform Manager.
In the device list, click Smartphone Emulator, and then click Properties.
Click the Configure button to the right of the Startup Server drop-down list box.
Select the desired networking option.
Click OK to close the Emulation Configuration Settings dialog box.
Click TEST to restart the emulator.
Wait for the Testing Device Connection dialog to show an OK button.
Click OK to close the Testing Device Connection dialog box.
Click OK to close Device Properties dialog box.
Click OK to close the Windows CE Platform Manager Configuration dialog box.
There are three emulator-networking options available: disabled, network address translation, and virtual switched. These are the capabilities of each of the options:
Disabled
The network card is not available to the emulator.
Network Address Translation
Uses the same IP as the host machine.
Only allows commands when started by the emulator.
The emulator sends out requests for information, and it can receive replies to its own requests. However, it cannot receive unsolicited information.
Virtual Switched
Gives the device an IP.
Uses DHCP to get an IP.
The device shows up on the network at the IP.
Is available for incoming and outgoing messages.
[b]Note[/b] This option is available in the eMBedded Visual C 4.0 emulator only. Visual Studio .NET 2003 does not support virtual switched.
一般来讲,一台手机使用上述命令创造一个证书后,这台手机就与注册的这台电机绑定了,我曾经试过先在台式机上使用上述命令,然后又在我的本本上使用了一次,结果二者都不能运行了,害的我只好将手机恢复到出厂状态。主要原因在于Activesync在第一次与手机相连时就会说明:"with this computer"
[随便写的,可能不对,还需要再验证]
一旦创建一个证书之后,还可以使用这个命令查看选择已经注册的证书:spdps.exe / device
4.写好之后的程序的安装,可以参照这篇文章:
《Windows Mobile-based Smartphone Applications Deployment Demystified》
5.How do i connect smartphone 2003 emulator with PC using active syn
Using ActiveSync Over Virtual Switch
Configure the emulator to use Virtual Switch. For more information, see Changing Ethernet Support in the Emulator .Start the emulator.
Open the SDK command prompt, found under: Start->All Programs->Microsoft Smartphone SDK->Smartphone SDK.
Run emuascfg specifying the /SP flag for the Smartphone emulator. Press Enter, and wait until emuascfg has completed.
Close the command window when it's finished.
Confirm that ActiveSync has Allow Network (Ethernet) and Remote Access Service (RAS) server connection with this desktop computer enabled. Find this under ActiveSync's Connection Settings dialog.
Switch to the emulator.
Open ActiveSync in the emulator.
Choose "Sync".
The emulator will then connect to the desktop via the ethernet.
Disabling Ethernet Support in the Emulator
When developing an application that will be deployed on Smartphone devices that might not be configured to form a network, turning off Ethernet support will enable application testing in a disconnected state. Applications that are running in the emulator cannot be debugged when Ethernet support is disabled.To disable Ethernet support in the emulator
Shut down the emulator if it is running.
In eMbedded Visual C++, on the Tools menu, click Configure Platform Manager.
In the device list, click Smartphone Emulator, and then click Properties.
Click the Configure button to the right of the Startup Server drop-down list box.
Select the desired networking option.
Click OK to close the Emulation Configuration Settings dialog box.
Click TEST to restart the emulator.
Wait for the Testing Device Connection dialog to show an OK button.
Click OK to close the Testing Device Connection dialog box.
Click OK to close Device Properties dialog box.
Click OK to close the Windows CE Platform Manager Configuration dialog box.
There are three emulator-networking options available: disabled, network address translation, and virtual switched. These are the capabilities of each of the options:
Disabled
The network card is not available to the emulator.
Network Address Translation
Uses the same IP as the host machine.
Only allows commands when started by the emulator.
The emulator sends out requests for information, and it can receive replies to its own requests. However, it cannot receive unsolicited information.
Virtual Switched
Gives the device an IP.
Uses DHCP to get an IP.
The device shows up on the network at the IP.
Is available for incoming and outgoing messages.
[b]Note[/b] This option is available in the eMBedded Visual C 4.0 emulator only. Visual Studio .NET 2003 does not support virtual switched.
相关文章推荐
- Windows Mobile (EVC)开发手记1
- 流氓日记和Bird MFC/C++问题搜集器开发手记 2005.1.3
- Delphi+ArcEngine开发手记 二
- ROS进阶学习手记 4 -- 使用Eclipse开发ROS
- Windows Mobile 开发系列文章收藏 - 疑难杂症
- Windows Mobile 开发工具和资源
- [开发手记]使用 InstallShield 安装和卸载SQL Server 数据库
- 项目开发环境搭建手记(2.Jdk安装——替代原有的OpenJDK)
- Windows Mobile下的GPS开发
- IOCP(完成端口)开发手记(2)
- vs2008 C# Windows Mobile 智能设备开发 初步1
- 【开发手记一】老生常谈:简简单单配置ZED板开发环境
- [转]解决VS2008 开发Windows Mobile 项目生成速度慢的问题
- IOCP(完成端口)开发手记(4)
- windows mobile开发循序渐进(4)移动应用程序的数据存储之本地数据存储第二篇
- 开发手记(2)
- Windows Mobile 的开发环境搭建入门
- Windows Mobile开发快捷菜单问题
- SenseLock开发手记(一)