none
How To Add Wifi Driver to Wince Image RRS feed

  • Question

  •  i am new to Compact 7

    i try to develop Windows Network Projector Device using Wince

    I Developed it using x86 Generic CEPC BSP now Problem is that i have Ambicom Wireless USB Dongle which Compatible with 

    WinCE 5/6/7 even i have driver for same in CAbinet format as well as .reg , .dll

    i want to add this dll file in my Existing BSP

    Can anybody guide me step step by how to do that??

    i have only Binary File

    which i found From website

    RT2870.dll

    and

    WLxN-USB_Colibri_CE5.reg

    Content

    REGEDIT4

    [HKEY_LOCAL_MACHINE\Comm\RT2870]
    "DisplayName"="RT2870 b/g/n Wireless LAN Driver"
    "Group"="NDIS"
    "ImagePath"="RT2870.dll"

    [HKEY_LOCAL_MACHINE\Drivers\USB\LoadClients\5263_12400\0_0_0\255_255_255\RT2870]
    "Dll"="RT2870.dll"

    [HKEY_LOCAL_MACHINE\Drivers\USB\ClientDrivers\RT2870]
    "Dll"="RT2870.dll"

    [HKEY_LOCAL_MACHINE\Comm\RT28701\Parms]
    "BusNumber"=dword:00000000
    "BusType"=dword:00000000
    "OpMode"=dword:00000000
    "WirelessMode"=dword:00000005
    "Channel"=dword:00000001
    "CountryRegion"=dword:00000005
    "CountryRegionABand"=dword:00000007
    "RtsThresh"=dword:00000000
    "FragThresh"=dword:00000000
    "Encryption"=dword:00000000
    "AuthenType"=dword:00000000
    "AutoReconnect"=dword:00000001
    "NetworkType"=dword:00000001
    "SSID"="RT2870AP"
    "BACapability"=dword:006b54a4
    "TransmitSetting"=dword:00000000
    "ProviderName"="Ralink Technology, Inc."
    "VendorDesc"="RT2870 802.11 b/g/n Wireless Card."
    "WEPKeyUse"=dword:00000001
    "WEPKey1"=""
    "WEPKey2"=""
    "WEPKey3"=""
    "WEPKey4"=""

    [HKEY_LOCAL_MACHINE\Comm\RT28701\Parms\TcpIp]
    "EnableDHCP"=dword:00000001

    [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\PCI\Template\EHCI]
    "IntThreshCtrl"=dword:00000001


    Kalpesh Patel If you find these posts answered your question or issue, please click on "Mark as answer". If a post contained helpfull information, please be click on the "Vote as helpful" button


    Thursday, March 20, 2014 3:58 AM

All replies

  • Include .reg in platform.reg

    Copy .dll files to <TARGETPLATROOT>/FILES 

    Add these entries in platform.bib file.

    For more details on .reg and .bib files, see these links:

    http://blogs.msdn.com/b/mikehall/archive/2005/03/23/401348.aspx

    http://geekswithblogs.net/BruceEitman/archive/2008/06/17/platform-builder-using-bib-files-to-add-files-to-a.aspx


    Keshava G N Member - Technical (Software), iWave Systems, Bangalore <http://iwavesystems.com> mailto: keshavagn AT iwavesystems DOT com



    • Edited by Keshava GN Thursday, March 20, 2014 5:21 AM
    Thursday, March 20, 2014 5:20 AM
  • Hello Kaplesh

    As, you said that you want to add Wifi driver in your existing BSP. If you want to add the Wifi code in your BSP and generate the corresponding .dll that will run on corresponding arch, then do one thing. create one folder under BSP>Drivers 

    right click on drivers and go to Add-> New Sources Subproject->WCE Dynamic Link Library->Simple Dll subproject->Next and Finish

    It will create a sub directory, there you can copy the corresponding code what you have right now with you.

    Under .def file, Export all the functions that you are using in the driver(means in .cpp file)

    eg. you can use the link for reference --- This one is for creating new driver, but you can use the same for existing driver

    http://geekswithblogs.net/BruceEitman/archive/2008/06/09/windows-ce-a-stream-interface-shell.aspx

    Thursday, March 20, 2014 6:42 AM
  • I think he don't have Source code. He have only binaries (i.e.: DLLs)


    Keshava G N Member - Technical (Software), iWave Systems, Bangalore <http://iwavesystems.com> mailto: keshavagn AT iwavesystems DOT com

    Thursday, March 20, 2014 6:52 AM
  • two things need to clear now:-

    1) He has code or binaries

    2) if binaries then for which machine and need to use for which machine(arch.)

    Thursday, March 20, 2014 6:56 AM
  • i dont know

    how to write in Plateform.bib


    Kalpesh Patel If you find these posts answered your question or issue, please click on "Mark as answer". If a post contained helpfull information, please be click on the "Vote as helpful" button

    Thursday, March 20, 2014 7:48 AM
  • http://geekswithblogs.net/BruceEitman/archive/2008/06/17/platform-builder-using-bib-files-to-add-files-to-a.aspx link clearly shows how to edit platform.bib file for adding a dll into your BSP...

    Example:

    MODULES

    MyDriver.dll      $(_FLATRELEASEDIR)\MyDriver.dll  NK SHK


    Keshava G N Member - Technical (Software), iWave Systems, Bangalore <http://iwavesystems.com> mailto: keshavagn AT iwavesystems DOT com


    Thursday, March 20, 2014 7:54 AM
  • i try but it throw error

    file not found


    Kalpesh Patel If you find these posts answered your question or issue, please click on "Mark as answer". If a post contained helpfull information, please be click on the "Vote as helpful" button

    Thursday, March 20, 2014 8:37 AM
  • 1. Copy the DLL (ie: MyDriver.dll) to FILES folder.

    2. Add platform.reg entries

    3. Add platform.bib entries.

    ie:

    MyDriver.dll      $(_FLATRELEASEDIR)\MyDriver.dll  NK SHK


    Keshava G N Member - Technical (Software), iWave Systems, Bangalore <http://iwavesystems.com> mailto: keshavagn AT iwavesystems DOT com



    • Edited by Keshava GN Thursday, March 20, 2014 8:55 AM
    Thursday, March 20, 2014 8:48 AM
  • Which build method are you using. If you are using Release build then copy the .dll file in Release folder other wise copy it to the folder that you are using to build......
    Thursday, March 20, 2014 8:53 AM
  • Keshav thank for Giving Great Support

    but Still Error occurs during Compilation

    is there any method that we can mount nk.bin & insert dll file to in ???


    Kalpesh Patel If you find these posts answered your question or issue, please click on "Mark as answer". If a post contained helpfull information, please be click on the "Vote as helpful" button

    Thursday, March 20, 2014 8:59 AM
  • Kaplesh, if you wont reply our queries, what we are asking how could we know that what problem are you facing and which method are you using...
    Thursday, March 20, 2014 9:02 AM
  • Please do the following change and try:

    1. Copy MyDriver.dll to FILES folder.

    2. Instead of MODULE , put the platform.bib entry under FILES

    FILES

    MyDriver.dll      $(_FLATRELEASEDIR)\MyDriver.dll  NK SHK


    Keshava G N Member - Technical (Software), iWave Systems, Bangalore <http://iwavesystems.com> mailto: keshavagn AT iwavesystems DOT com

    • Proposed as answer by Keshava GN Wednesday, March 26, 2014 1:34 PM
    Thursday, March 20, 2014 9:04 AM