Title: Roy Law
1(No Transcript)
2Antares Migration
Roy Law Principal Engineer Software Tools
Intermec Technologies Corporation
3Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
4Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
5- Antares Disappearing
- Multiple Options for Moving Applications
- ReWrite in C/C
- ReWrite as Thin Client-WEB or TE
- ReWrite in Java
- 3rd Party Code Generators
- ReWrite in .NET Best Choice
- Rebuild to Psuedo Character Based Application in
CE - Fastest Choice
- Limited Device Choices
- Build and Go for Antares
- Also Helpful in Converting Janus 6400 Apps
6Devices Supported
- CK30 CK31 CV60-CE
- Additional Devices in the Future
7Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
8Tools
- EVC 4 SP 2-4 (SP 4 preferred)
- Platform SDK-
- iCE-Premium
- CV60
- CE PSK Libraries Include Files
- www.Intermec.Com/IDL
9Conversion Steps
- Create Empty Windows Application Project
- If any Antares Specific ifdefs turn them on
- Add Old Antares Source Files
- Build Debug
- Remember to Rebuild any Private Libraries
10Demo
Demo
11Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
12Application Characteristics
- True Windows CE Application
- Not Emulator or Interpreter
- Built on CE and Intermec SDK
- Supports Full Power Management Features
- Communication Security etc. Applies
13Some Antares Functions Not Supported
- Double Byte
- Viewporting
- Some Standard Functions
- Int86x
- FP_OFF, FP_SEG
- Assembly Language Functions
- Antares Version of BSD
- Use Winsocks
- Do support im_get_IP_addr
14Porting Issues
- IMT24LIB.H
- May Be Required In All Files
- Different Than Old Version
- IM_STDIO.H
- EVC has Stricter Parser
- char sOutexample
- im_cputs((IM_UCHAR )sOut,0)
- Reader Command Limits
- Libraries
- Many New Ones Added
- Hidden in IMT24LIB.H
15Hidden Option Control
- Registry HKLM/Software/Intermec/PSK/
- Networking
- Ping-Detect Unreachable Host
- Various Retry and Timeout Settings
- Drive Letter Mapping
- Ctmp.txt Vs \CK_FFS\PSK_Drive_C\tmp.txt
- Renaming Automatic all File Functions
- Either Convention Allowed
- Scanner Selection
- default
16Network Characteristics
- Antares Functions Reached Deep Into Stack
- CE/Sockets Limit Control
- Reachable Host Option
- Network Adapter Not-ready
- Network Event Logging is Available for Diagnostics
17Reachable Host Option
- Configurable
- Registry
- im_set_network_options
- Turned Off by Default
- Pings Before Each Transmission to Verify
Connection - Lets im_transmit_buffer Return Failure Status if
Out of Range etc. - Not Foolproof
18NETWORK ADAPTER NOT-READY.
- Configurable
- Registry
- im_set_network_adapter_options
- Turned Off by Default
- CK30/CK31 Only
- Reaches into Radio Driver
- Detects Out-of-range Condition
- Detects Adapter-not-ready Condition
- Insures Connected and Authenticated
- If Enabled Im_transmit_buffer Returns
IM_NET_NOT_READY if Radio Not Connected to AP
19Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
20Configuration-PSK Specific
- Intermec Settings Supports
- Host IP Port
- Protocol
- TCP/IP
- UDP
- Serial Port Parameters
- Antares-
- Immediate Effect
- Applied to Entire Device
- CE (Intermec Computers)
- Read on Application Startup or First Use
- Only Effects Application
21Reader Command Support
- Scanner
- Antares Decodes
- Network
- Port 6000
- Includes TFTP transfers
- Serial Port
- When PSK Application Running
- When Port Opened
- Includes Serial File Transfer Support
22Agenda
- Introduction
- Application Conversion
- Converted App Characteristics
- Antares Environment Support
- Using CE Features
23Antares .VS. CE Devices
Antares CK 3x
Single Application Multi-Applications
Last App Runs on Boot Use Startup Folder
Limited File Space Large File Space
Flat File System Hierarchical DB Support
Single Network Connection Multiple Sockets Hosts
Reader Commands for Configuration Control Some Reader Commands SmartSystems
App Owns Assets Shared Assets-Serial Port, Scanner, Etc.
24CE Functions That Can be Used
- Any CE Functionality Except
- Windows/Display Functions/Classes
- Keyboard/Windows Messaging
- Available
- Registry
- Threads
- Networking/Winsocks
- Lists
- Events
- Etc.
25Considerations With Using CE Functions
- Unicode-Wide Char Vs Multibyte
- PSK Uses Multibyte/ASCII/ (1 Byte per Character)
- Many CE functions use Wide (2 Byte per Character)
- MBSTWCS(), WCSTMBS(), etc. to Convert
- Asset Sharing
- Serial Port im_close_com
- Scanner
- Common Code Base
- ifdef UNDER_CE
- // do CE functions
- else
- // do Antares Functions
- endif
26Considerations With Using CE Functions-cont
- Synchronization Between Thread and Antares
Program - IM_USER_DEFINED_SELECT
- Check for Data Available on Pending Reads
- im_receive_input(IM_KEYBOARD_SELECT
IM_USER_DEFINED_SELECT, - IM_INFINITE_TIMEOUT,
source, input) - if (source IM_USER_DEFINED_SELECT)
- //handle getting input or action from user
created CE thread - myFunctionGetData( data)
- im_reset_user_event()
- SetEvent(hMutex)
-
-
- Set the Flag in Your Thread When the Data is
Available - im_set_user_event()
- WaitForSingleObject ( hMutex, INFINITE )
27Summary
- Intermec Computers Support Antares Migration
- Tools Provided for Easy Application Migration
- Full Feature Paths Available but Require More
Investment