Your SlideShare is downloading. ×
Network and Connectivity
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Network and Connectivity

667

Published on

0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total Views
667
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
4
Comments
0
Likes
0
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Microsoft provides you with a unified and consistent development platform , so that the device hardware is abstracted away, and you can concentrate on creating compelling applications that will run on all Windows Mobile-based devices. Above the device hardware and drivers, the Windows Mobile platform, based on Windows CE as the core OS, provides a familiar user experience and applications , such as Windows Media player, Pocket Outlook and Pocket Internet Explorer. The platform is exposed to you through rich API support allowing you flexibility and control, for a variety of scenarios. <Describe some APIs such as Connection Manager, Config Manager, GAPI, etc.) There are different approaches and tools for developing and running your applications: Native – for client-side, low-level applications, use Embedded VC++ 3 or 4 Managed (.NET CF) – for most client-side, managed code applications, use Visual Studio .NET Mobile Web (ASP .NET Mobile Controls)– for server-side applications, use Visual Studio .NET
  • The Developer Resource Kit contains tools, SDKs and white papers to get started developing for devices up to and including Second Edition today The Technical support team are at the booth and are there to try to answer your technical questions If you haven’t already, go to the booth to register for our free Windows Mobile Solution Partner Program - we are offering free t-shirts and a chance to win a device If you already have an application or are planning to build one soon, join the Mobile2Market application contest – we’re giving out 4 $25,000 prizes and retail distribution for winning apps Insert only sessions that follow yours and are pertinent to the information you have presented or you think will be interesting. You can insert none, one or more than one
  • Transcript

    • 1.  
    • 2. Network and Connectivity for Windows Mobile Devices Paul Yao The Paul Yao Company -> Microsoft Mobile DevCon Booth #744 <- http://www.paulyao.com
    • 3. Windows Mobile Development Platform : Today Drivers Embedded VC++ Visual Studio .NET Display USB or Serial Processor Memory GSM/GPRS CDMA/1xRTT Device Hardware WiFi Bluetooth Radio Windows Mobile CE DB ActiveSync Pocket Outlook Pocket Internet Explorer Windows Media Player Windows CE Software Platform (APIs) Home Screen User Interface/Shell HTML Control GAPI Remote API Configuration Bluetooth Security Connection Manager TAPI SMS MAPI POOM ActiveSync Multimedia Communication Device Management Presentation ADO CE XML CE DB OLE DB Data Access Native Win32 MFC ATL Managed .NET Compact Framework Server side ASP .NET Mobile Controls Native Win32 MFC ATL Managed .NET Compact Framework Server side ASP .NET Mobile Controls
    • 4. Agenda
      • Part 1: Overview
      • Part 2: Connectivity Scenarios
      • Part 3: Connection Manager
      • Download the slides for this session at: http://www.paulyao.com/MSMDC_CLI363.ppt
    • 5. Part 1: Overview
      • The Connectivity Wheel
      • Network Categories
      • Networking & Connectivity APIs
    • 6. The Connectivity Wheel Circuit Switched Data (e.g. GSM, CDMA) Packet Data (e.g. GPRS, 1xRTT) SMS 802.11 Desktop Pass-Through Bluetooth TCP/IP WAP Cable Replacement
    • 7. Network Categories
      • Personal Area Network (PAN)
        • Wired – USB, serial
        • Wireless – Bluetooth, Infrared
      • Local Area Network (LAN)
        • Wired – Ethernet (TCP/IP), Token-ring
        • Wireless – 802.11b “WiFi”, 802.11a
      • Wide Area Network (WAN)
        • Wired – Plain Old Telephone System (POTS), The Internet
        • Wireless – Mobile phone networks (GSM/GPRS/CDMA)
    • 8. Networking APIs (1/8) Windows Sockets 2.2
      • TCP/IP connections
      • No asynchronous support (Windows message-based support)
      • IrDA connections
      • Bluetooth connections
      • Differences from previous versions
        • Multiple transport protocols
          • TCP/IPv4
          • TCP/IPv6
        • Multicast support
        • Overlapped I/O with scatter/gather
        • Secure socket
    • 9. Networking APIs (2/8) Network Support
      • Windows Internet (WinInet) Services
        • HTTP clients
        • FTP clients
        • No Gopher protocol support
        • Autodial
        • Passport
      • Connection Manager
        • Container for network connection and configuration information
        • Supports connection policy
    • 10. Networking APIs (3/8) ActiveSync Service Providers
      • Synchronization of device data with desktop
      • Examples:
        • Desktop Outlook with Pocket Outlook
        • Desktop database with device database
      • Elements
        • COM-based DLL on desktop
        • COM-based DLL on device
        • Enabled with registry settings
    • 11. Networking APIs (4/8) Remote API (RAPI)
      • Available when device is connected via ActiveSync
      • Access to device data
        • File system
        • Registry
        • CE property databases
      • Load & run device-side exucutables:
        • CeCreateProcess – run program (.exe) file
        • CeRapiInvoke – load library (.dll) on device
    • 12. Networking APIs (5/8) Web services
      • Formerly known as “XML Web services”
      • Client/Server Mechanism
        • Remote Procedure Call (RPC)
        • SOAP-compliant XML
        • Sent via HTTP/SMTP ports
      • Device Side
        • .NET Compact Framework supports Web service clients
      • Server Side
        • ASP.NET supports Web service servers
    • 13. Networking APIs (6/8) Mobile Phone
      • Assisted Telephony
      • Phone API
      • Telephony API (TAPI)
      • Extended TAPI
      • Wireless Application Protocol (WAP)
      • Short Message Service (SMS)
      • Subscriber Identity Module (SIM) Manager
    • 14. Networking APIs (7/8) User Interface Support
      • NETUI – dialog box library
        • GetIPAddress
        • ConnectionDialog
        • DisconnectDialog
        • GetUsernamePassword
      • Connection Setting Applet…
        • CreateProcess(L”remnet.exe”, …)
      • Summon ActiveSync:
        • CreateProcess(L”repllog.exe /remote”, …)
    • 15. Networking APIs (8/8) Miscellaneous
      • Data Security
        • Cryptography API
        • Digital Certificates (X.509)
        • Secure Socket Layer (SSL 2.0 and 3.0)
        • Private Communications Technology (PCT) Protocol 1.0
      • Dial-Up Networking
        • A.k.a. “Remote Access Service” (RAS)
        • Call ISP over modem
        • Establish PPP / SLIP connections
        • Use Connection Manager instead
    • 16. Part 2: Connectivity Scenarios
      • Personal Area Network
      • Local Area Network
      • Wide Area Network
    • 17. Personal Area Network ActiveSync Connectivity
      • PAN / Direct connection
        • USB, serial
        • Infrared, Bluetooth
      • Passthrough
        • Network connection to device in cradle
        • Supports HTTP, HTTPS, IMAP, FTP, and POP3
        • Does not support UDP, ICMP, or PPTP
        • Reference – article by Andreas Sjöström:
          • http://www.microsoft.com/mobile/developer/technicalarticles/passthrough.asp
      • Use ActiveSync 3.7 for Windows Mobile devices
    • 18. Personal Area Network Developer Support
      • ActiveSync supports
        • Download / deployment
        • Debugging
        • *Tip* Developers can speed up download & debugging with an ActiveSync network connection
      • Emulator
        • Support ActiveSync
        • Requires network virtual switch
        • Refer to eVC++ 4.0 documentation
    • 19. Local Area Network ActiveSync
      • First: establish partnership via direct connection
      • Can synchronize over any LAN
        • Wireless: WiFi (802.11b), 802.11a
        • Wired: Ethernet, Token-ring
      • Exchange Server ActiveSync to server
      • *Tip* Developers can speed up download & debugging with an ActiveSync network connection (did I already say that?!?)
    • 20. Local Area Network ”My Work Network”
      • Can connect via modem
      • Virtual Private Network
        • Need host name –or- IP address
        • VPN Types:
          • IPSec/L2TP – need certificate –or- pre-shared key
          • PPTP – need user name/password
      • Can have proxy settings
        • HTTP
        • WAP
        • Secure WAP
    • 21. Local Area Network What is it good for?
      • Access to any IP-enabled network service or server
      • Fun with HTML
        • Browse WWW, local web servers
      • Fun with XML
        • Web service client
        • Web service server
      • Fun with TLAs (three-letter acronyms…)
        • FTP, SSL, VPN, PPTP
        • Network PPP
      • Network redirector - SMB protocol
        • File Servers
        • Print Servers
    • 22. Local Area Network Connect Visual Studio .NET
      • Use ActiveSync
        • Establish partnership via USB/serial
        • Download & Run
        • Starts device-side conmanclient.exe
      • Configure TCP/IP Transport
        • Tools->Options…
        • [Device Tools] [Devices] “Pocket PC Device”,
        • Click [Configure…]
      • Options:
        • Auto IP address
        • Static IP address
      Set static address on device IP address from ActiveSync
    • 23. Local Area Network Download/Debug – eVC++ (no DHCP)
      • Establish partnership via USB/serial
      • Static IP address on desktop
      • Static IP Address on smart device
        • Set WINS address to desktop IP address
        • Start->Settings-> [Connections] [Network] [Adapters] <Select Adapter> [Name Servers]
    • 24. Local Area Network Download/Debug – eVC++ (w/ DHCP)
      • Desktop-Side
        • Enable network connections
        • Connect via USB/serial
      • Device-Side
        • Enable network connections in ActiveSync
        • Enable DHCP for network adapter
        • Attach network adapter
        • Might need to reset device
      • Connect to Network
        • Wired
        • Wireless
    • 25. Public Network Support
      • Connect via:
        • Dial-in modem
        • Internet PPTP connection
      • ActiveSync WAN Connection
        • VPN / PPTP connection to desktop
        • Exchange Server ActiveSync to server
      • Networks
        • Internet – WWW, http, https:
        • WAP – wsp://, wsps:
        • GSM / GPRS / CDMA
    • 26. Public Mobile Phone Network WAP Protocol
      • Wireless Datagram Protocol (WDP)
      • SMS or UDP Transports
      • Application Wake up (PPC2003 only)
      • WDP Phase 1 support
        • datagrams may originate from the internet
    • 27. Public Mobile Phone Network Short Message Service (SMS)
      • Used for short messages
        • Length is air link dependent
        • Capable of message concatenation
      • APIs
        • #include <sms.h>
        • SmsOpen(…);
        • SmsSendMessage(…);
        • SmsClose(…);
    • 28. Part 3: Connection Manager
      • Overview
      • Network Model
      • Configuration
      • Configuration Service Providers (CSPs)
      • API Support
    • 29. Connection Manager Overview
      • Umbrella for Network Address Resolution
        • Voice
        • Data – Internet, WAP, etc.
      • Configuration Service Providers (CSP)
        • Manage service-specific, low-level settings
        • GPRS settings, Data networks, URL mapping
        • Connections for: PPP, Proxies, VPN, WiFi
      • Decide optimal route for connections
        • Based on ‘cost’ criteria provided by CSPs
        • Can manage multi-hop connections
    • 30. Connection Manager Network Model The Internet My Corporate Network WAP Network VPN Proxy WAP Gateway Cingular ISP Earthlink ISP MS Redmond RAS MS Paris RAS Yahoo.com msw mail.earthlink.net red-msg-06 wap.ananova.com
    • 31. Connection Manager Configuration (1/2)
      • Who can configure
        • End user
        • Corporate IT Dept
        • Mobile phone service provider
      • Default Networks
        • The Internet
        • Work
        • The WAP Network
        • Secure WAP Network
      • Pocket PC Adds
        • My Work Network
        • My ISP
    • 32. Connection Manager Configuration (2/2)
      • Burn into device ROM
      • Send in CAB provisioning format (.cpf) file
      • Install in cradle using rapiconfig.exe
        • C> rapiconfig mydoc.xml
      • Send using Wireless Application Protocol (WAP)
        • Push Message
        • Over-the-air (OTA) protocol
      • Provisioning XML File
      • <wap-provisioningdoc>
      • <characteristic type=&quot;CM_Networks&quot;>
      • <characteristic type=&quot;The Internet&quot;>
      • <parm name=&quot;DestId&quot; value=&quot;{436EF144-B4FB-4863-A041-8F905A62C572}&quot;/>
      • </characteristic>
      • </characteristic>
      • </wap-provisioningdoc>
    • 33. Connection Manager Configuration Service Providers (CSP) Connection Manager Engine Voice RAS Proxy PPTP GPRS etc Planner Configuration Manager Connection Manager UI XML Provisioning Document URL Mapper Application CSPs
    • 34. Connection Manager API Support (1/2)
      • ConnMgrMapURL()
        • Fetch preferred network for a given URL
        • Allows applications to query for network policy
      • Default mapping:
        • *:.* - The Internet
        • *: - Private network (intranet)
        • wsp: - WAP network
        • wsps: - Secure WAP network
    • 35. Connection Manager API Support (1/2)
      • ConnMgrEstablishConnection()
        • Creates asynchronous request for connection
      • ConnMgrConnectionStatus()
        • Query connection status
      • ConnMgrEstablishConnectionSync()
        • Creates synchronous request for connection
      • ConnMgrReleaseConnection()
        • Disconnect when finished using network
    • 36. After This Session…
      • Visit the Windows Mobile booth to:
        • Get the Windows Mobile Developer Resource Kit and start supporting landscape and high DPI
        • Talk to the Technical Support team
        • Join the Windows Mobile Solutions Partner Program
        • Enter the Microsoft Mobile2Market Application Contest
      • Fill in your evaluation form sponsored by AT&T Wireless
        • 1 MPX200 given away per session. See www.mscorpevents.com/mdc
    • 37. Your Questions…
    • 38. Thank You! Download the slides for this session at: http://www.paulyao.com/MSMDC_CLI363.ppt
    • 39. © 2004 Microsoft Corporation. All rights reserved. MICROSOFT CONFIDENTIAL. INTERNAL USE ONLY.

    ×