2013年10月25日 星期五

WinCE增加x86 COM Port

增加並修改registry設定。

EX:
增加第四個COM port,
  1. 於"[BSP name].bat"增加"set BSP_SERIAL4=1"。
  2. 於"platform.reg"增加,
    IF BSP_SERIAL4
    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial4]
    "SysIntr"=dword:1B ; 同BIOS interrupt加0x10,為16位元
    "IoBase"=dword:02E8 ; 同BIOS
    "IoLen"=dword:8
    "DeviceArrayIndex"=dword:3
    "Prefix"="COM"
    "Dll"="Com16550.Dll"
    "Order"=dword:0

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\Serial4\Unimodem]
    "Tsp"="Unimodem.dll"
    "DeviceType"=dword:0
    "FriendlyName"=LOC_FRIENDLYNAME_SERIAL4
    "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_SERIAL4

在Blog加入Facebook Link

可以參考
Facebook開發人員網站
Facebook Social Plugins

2013年10月18日 星期五

WinCE修改IE Default Code Page

更改 IE default codepage, 從 English 轉成 Chinese.

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\International]
"Default_CodePage"=hex:b6,03,00,00
"AcceptLanguage"="zh-tw,zh-cn;q=0.7"

WinCE修改File System Code Page

使用下列registry設定,
[HKEY_LOCAL_MACHINE\System\StorageManager\FATFS]
"CodePage" = dword:419

Locale IDs可參考微軟網站.
http://msdn.microsoft.com/en-us/goglobal/bb964664.aspx

WinCE使用Hive-based Registry

  1. 增加 hive-based registry component
  2. 設定hive-based registry
    [HKEY_LOCAL_MACHINE\init\BootVars]
    "SYSTEMHIVE"="Registry\\system.hv" ; hive-based 檔案名稱
    "PROFILEDIR"="Registry" ; hive-based 檔案目錄
    "Start DevMgr"=dword:1
Example :
Implement hive-based registry with Hard Disk on NS platform.

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\init\BootVars]
"SYSTEMHIVE"="Documents and Settings\\system.hv"
"PROFILEDIR"="Documents and Settings"
"Start DevMgr"=dword:1
; END HIVE BOOT SECTION

; HIVE BOOT SECTION
[HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\HDProfile]
"MountFlags"=dword:2

[$(PCI_BUS_ROOT)\Template\GeodeIDE]
"Flags"=dword:1000 ; Set the bit to load during the first boot phase

[$(PCI_BUS_ROOT)\Template\GeodeIDE\Device0]
"Flags"=dword:1000

[LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template\GeodeIDE\Device0]
"Prefix"="DSK"
"Dll"="atapi.dll"
"Settings"=dword:A ; Setting A to disable DMA
"DeviceId"=dword:0
"Ioctl"=dword:4
"IClass"=multi_sz:"{A4E7EDDA-E575-4252-9D6B-4195D48BB865}"
; END HIVE BOOT SECTION

WinCE6.0 SQL Server Compact 3.5 Usage


  1. 增加下列檔案至 bib file
    Modules
    sqlceme35.dll $(_FLATRELEASEDIR)\sqlceme35.dll NK
    sqlceca35.dll $(_FLATRELEASEDIR)\sqlceca35.dll NK
    sqlcecompact35.dll $(_FLATRELEASEDIR)\sqlcecompact35.dll NK
    sqlceer35EN.dll $(_FLATRELEASEDIR)\sqlceer35EN.dll NK
    sqlceoledb35.dll $(_FLATRELEASEDIR)\sqlceoledb35.dll NK
    sqlceqp35.dll $(_FLATRELEASEDIR)\sqlceqp35.dll NK
    sqlcese35.dll $(_FLATRELEASEDIR)\sqlcese35.dll NK
  2. 在postlink.bat file增加下列指令
    echo copying sqlceme35.dll
    copy "C:\Program Files\Microsoft SQL Server Compact Edition\v3.5\Devices\wce500\armv4i\sqlceme35.dll"
  3. Rebuild the Windows Embedded CE 6.0 OS image

WinCE4.2 Add ADOCE


To use the ADOCE control, you need the following software:
  1. Microsoft Windows CE Services version 2.1 or later。
  2. Microsoft Windows NT Workstation version 4.0 or Windows 95 or 98 Microsoft Windows CE Platform SDK for the device you are using。
  3. Microsoft Visual Basic Professional Edition version 6.0, development system or Microsoft Visual Basic Enterprise Edition version 6.0。
  4. Microsoft Windows CE Toolkit for Visual Basic version 6.0。
The ADOCE control is included in the Windows CE Toolkit for Visual Basic.
Please refer http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnce30/html/adoce30.asp
Add SQL Server CE 2.0 component。