Created by the Community for the Community BizTalk 2009 Webcast Series.

24
Created by the Community for the Community BizTalk 2009 Webcast Series LIGHT AND EASY

Transcript of Created by the Community for the Community BizTalk 2009 Webcast Series.

Page 1: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk 2009 Webcast Series

LIGHT AND EASY

Page 2: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Implementing BizTalk RFID Mobile Solutions

Mick BadranMVP – Microsoft Virtual TS + Super dad!Breeze – http://breeze.net

BizTalk Light and Easy Webcast Series

Page 3: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Session Agenda

BizTalk RFID Mobile Architecture

RFID Mobile Prerequisites

Getting Started with BizTalk RFID Mobile

Major Components and Code Snippets (Demo)

Summary

Page 4: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile Architecture

Page 5: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile Architecture

Page 6: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile ArchitectureBizTalk RFID Mobile applications:

Are a standard Windows Mobile Application typically built out of VS.NET2005/2008+ (x86/x64). RFID Mobile extensions are .NETCF assemblies.Same RFID classes exist in RFID Mobile as in RFID Server (cut-down though)*Difference* - no ‘RFID Processes’ exist in RFID Mobile. Your application is the ‘Process space’Can run in Standalone Mode – no need for Server connectivity. E.g. building maintenance inventory tracking.Can forward events back to RFID Server through a durable store/forward technique.Can read Tags in Sync/Async mode (Provider dependant)RFID Mobile can use Storage Cards for Database locations.

Page 7: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile Architecture…

BizTalk RFID Mobile Framework:Installed onto the Device (approx 2MB) under \Program Files\BizTalkRfidMobileAllows for Provider/Device Metadata Management through a Configuration DB (SqlCe)Logging.Main functional areas:

RFID Mobile Management – Stop/Start Providers/DevicesCustom Provider creationSync/Async Tag Commands – gettags()…Tag Data Translation(TDT) – EPC standards based library allowing for manipulation of TagIDs and their data.Local Event Storage or Store/Forward back to RFID Server.

Page 8: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile Architecture…

If you are building your own Mobile Provider:

BizTalk RFID Mobile comes with its own Mobile Provider Certification Tool (PCT)Installs onto the Windows Mobile Device and executed from there.PCT runs a set of comprehensive tests on your custom Provider. E.g Property/Metadata management, Tag Reads, No Tag Reads, Exception handling etc.Produces a report which can be analyzed.Great troubleshooting tool enabling more robust Provider Development.

Page 9: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID Mobile Prerequisites

Page 10: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID PrerequistesO/S - Windows CE 5.0+

.NETCF 2.0+ (on ‘most’ newer devices tends to be in firmware)

SqlCe 3.5 sp1 for Event Storage. SqlCe has 3 main components:

SqlCe Runtime – requiredSqlCe Developer lib – Query Analyzer & Detailed Error MessagesSqlCe Replication lib – SqlCe Merge Replication

http://www.microsoft.com/sqlserver/2008/en/us/compact.aspx

Page 11: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

BizTalk RFID PrerequistesRFID Mobile .NETCF Framework – approx 2MB

Destkop Install – BizTalk RFID Mobile Installation extracts out the required files to be deployed down to the device. No ‘desktop/server’ applications installed...\BizTalk RFID Mobile\x86 (or x64)\Setup.exe

After ‘Desktop Install’ RFID Mobile Files can be found here:C:\Program Files\Microsoft BizTalk RFID\SDK\

Mobile\v1.1

..\Bin – assemblies to reference in VS.NET

..\Bin\WCE500 – mobile runtime, runtime with extra pieces e.g. sample tag read application, custom Provider...\Documentation – Handy

Page 12: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Getting Started with BizTalk RFID Mobile

Page 13: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Getting Started Steps1. Create a SmartDevice Windows Application

Project in Visual Studio.NET2. Reference the BizTalk RFID Mobile dlls from:

C:\Program Files\Microsoft BizTalk RFID\SDK\Mobile\v1.1\bin

3. Reference the appropriate Mobile Provider dlls4. Build Out your application5. Attach (& cradle) your Physical Windows Mobile

Device – if you’re using one.6. Deploy your compiled application to either the

Windows Mobile Emulator or Physical Device7. Test/Debug as appropriate.

Page 14: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code Snippets Time…

Page 15: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components

1. ProviderManagerProxy2. DeviceConnection3. Tag Data Translation (TDT)

Library4. NotificationStorage5. RfidServerConnector

Page 16: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code1. ProviderManagerProxy – used to

Stop/Start/Register/Unregister Providers + Discover Devices.

Page 17: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code -II1. DeviceConnection – used to the ‘Device’ to

Set/Get Properties; Read/Write Tags

Page 18: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code -III1. Tag Data Translation (TDT) – library used for

easy manipulation of Tags and their data. E.g. look a the ‘Sgtin96Encoding’ section

Page 19: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code -IV1. NotificationStorage – used for storing Tag Reads

locally. Will automatically create the SqlCe DB + Schema if needed.Can be used with existing Application DBs too.

Page 20: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Major Components and Code -V1. RfidServerConnector – Store/Forward used for

sending Tag Reads back to the RFID Server. Uses a local DB if the device is not connected and will automatically send Tags when connected.

Page 21: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

SummaryBizTalk RFID Mobile allows for greater flexibility within systems, while reducing infrastructure setup costs.Can build RFID capabilities into an existing application.Easy transition for existing .NET Developers.Tag Events can still be processed centrallyMonitoring and Management of Mobile Devices is done centrally through System Center.

Page 22: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

Building your first RFID Mobile Application

DEMO…

Page 23: Created by the Community for the Community BizTalk 2009 Webcast Series.

Created by the Communityfor the Community

SummaryBizTalk RFID Mobile is exposed as .NETCF assemblies.Mobile DSPI Provider Model structure.Easy skill up for .NET Developer.Apps can be standalone.Apps can be tightly integrated with BizTalk RFID Server.Easily integrate into *your* applications.

Page 24: Created by the Community for the Community BizTalk 2009 Webcast Series.

© 2008 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries.

The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after

the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

BizTalk Light and Easy Webcast Series

Created by the Community for the CommunityMeet the team….