Serial USB profile RRS feed

  • Question

  • Hi all,

    we are developing a board that connects by USB cable.

    On a Win32 PC host we write an inf file that loads the usbser.sys driver.

    When we connect a WinCE board, a dialog box appears, asking the device name.

    How can we handle it?


    Wednesday, December 14, 2011 11:25 AM

All replies

  • Which is the Windows CE version?

    In Windows Embedded CE 6.0 there's a driver for 'USB serial' devices which you need to include it the Windows CE OS design.

    If you cannot modify the OS but you  have Platform Builder you can build the USBSER.DLL driver, copy onto the Windows CE device and select it when the dialog box appears

    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom Check my blog:
    Wednesday, December 14, 2011 1:41 PM
  • Sorry, yes, it is a WinCE600R3.

    The OS project contains a checked item called 'USB function / USB Function clients/serial'.

    Also the 'Serial Port support' is checked.

    Wednesday, December 14, 2011 2:47 PM
  • The items you mention are for the Windows CE USB *device* controller: are those that, when you connect the Windows CE device to the PC make possible to see the Windows CE device as a USB (serial) device. You need the 'opposite' thing, which is USB serial support for for the Windows CE USB *host* controller which is the above mantioned USBSER.DLL.

    • Open a command prompt in platform builder and run 'sysgen -p common usbser'
    • Check that usbser.dll is in %_FLATRELEASEDIR%
    • Add an entry to your project.bib like 'usbser.dll             $(_FLATRELEASEDIR)\usbser.dll             NK  SHK'
    • Add to your project.reg file the entries in %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\USBSER\usbser.reg
    • Recreate the OS image

    Take in account that that generic USBSER device driver may not be the correct one for the board but since usbser.sys works on the PC it's worth a try.

    As Michel Verhagen says, good luck!


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom Check my blog:
    Wednesday, December 14, 2011 3:06 PM
  • Thanks!

    Then, no way to handle this generation from the platform builder??


    Wednesday, December 14, 2011 3:21 PM
  • There's no catalog item associated to USBSER thus you cannot manage it inside platform builder. once you verify that the driver works as expected you can clone the code and insert it under your BSP tree rather that create a subproject in the OS design according to what makes more sense.

    In both cases you'll need to clone the code using sysgen_capture tool or following some good advice on Bruce Eitman's blog  and Michel Verhagen's one (,

    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom Check my blog:
    Wednesday, December 14, 2011 4:06 PM
  • Wait a minute, as I read this I am not sure that the two of you are talking about the same things. 

    I could be wrong, but my read of SteMMo's original post is that the problem is on the PC side.   That is on the PC, when a Windows CE device is plugged into the USB Host port on the PC, there is a prompt on the PC.

    So, if I am reading it correctly, the problem is not a Windows CE problem at all, but a problem for some unnamed PC OS.   So, this may come down to figuring out how to install drivers on a PC, for that unnamed OS.

    Bruce Eitman (eMVP)
    Senior Engineer
    Bruce.Eitman AT Eurotech DOT com
    My BLOG

    Eurotech Inc.
    Wednesday, December 14, 2011 6:55 PM
  • Depending on what it is that you want to do (see the confusion highlighted by Bruce) you may get something useful out of this blog post:

    That one deals with the MicroFramework but it does explain some things about inf files and signing etc., just in case you need it.

    Good luck,

    Michel Verhagen, eMVP
    Check out my blog:

    Microsoft Embedded Partner
    Consultancy, training and development services.
    Wednesday, December 14, 2011 11:18 PM
  • Hi guys,

    i try to explain the situation.

    Luca had the correct reading.

    I need to understand how to achieve the same behaviour of a host PC when it connects a usb serial device and loads the Win32 serial usb driver, but with WinCE.

    I need that WinCE acts as a host for a secondary board and loads a USB serial driver.

    Following the previous notes by Luca, i added the usbser.dll driver but when i type 'usbser' as device name, the WinCE device reboots :( without any debug message.

    Edit: in the BSP i have not selected any 'Device Drivers / USB Host / USB Host controllers / EHCI|OHCI|UHCI' item.


    • Edited by SteMMo Thursday, December 15, 2011 10:15 AM
    Thursday, December 15, 2011 9:10 AM