none
USB GSM Connection Issue RRS feed

  • Question

  • Hi All,

    I am trying to use serial class over USB that is SYSGEN_USBFN_SERIAL to get detected my GSM modem.

    I have enabled the following catalog items,

    1. SYSGEN_USBFN_SERIAL

    2.BSP_USB_HSOTG_HOST

    My registry entry is as follows,

    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
      "DefaultClientDriver"=- ; erase previous default
    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers]
      "DefaultClientDriver"="Serial_Class"

    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\Serial_Class]
       "Dll"="serialusbfn.dll"
       "DeviceName"="USBFNS1:"
       "Prefix"="COM"
       "DeviceArrayIndex"=dword:0
       "RxBufferSize"=dword:4000
       "IClass"="{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}"
    ; idVendor must be changed. 045E belongs to Microsoft and is only to be used for
    ; prototype devices in your labs. Visit http://www.usb.org to obtain a vendor id.
         "idVendor"=dword:12D1 ------->GSM modem VID
       "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
        "idProduct"=dword:1506 ------->GSM modem PID
       "Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
    ;    "Product"="USB GSM Modem"
       "bcdDevice"=dword:0
       "Tsp"="Unimodem.dll"
       "DeviceType"=dword:0
        "FriendlyName"="USB Cable Connection"
       
    [HKEY_LOCAL_MACHINE\Drivers\USB\FunctionDrivers\USBSER_Class]
       "Dll"="serialusbfn.dll"
       "DeviceName"="USBFNS2:"
       "Prefix"="COM"
       "DeviceArrayIndex"=dword:1
       "RxBufferSize"=dword:4000
       "IClass"=multi_sz:"{CC5195AC-BA49-48a0-BE17-DF6D1B0173DD}","{C375C787-B721-4b8e-B67F-A112D5C0A404}"
    ; idVendor must be changed. 045E belongs to Microsoft and is only to be used for
    ; prototype devices in your labs. Visit http://www.usb.org to obtain a vendor id.
         "idVendor"=dword:12D1 ------->GSM modem VID
       "Manufacturer"="Generic Manufacturer (PROTOTYPE--Remember to change idVendor)"
        "idProduct"=dword:1506 ------->GSM modem PID
       "Product"="Generic Serial (PROTOTYPE--Remember to change idVendor)"
       "bcdDevice"=dword:90
       "Tsp"="Unimodem.dll"
       "DeviceType"=dword:0

    My problem is if I will connect USM GSM modem to host(PC) and run RegEdit application,the modem is creating virtual com ports in the following path,

    HKLM\HARDWARE\DEVICEMAP\SERIALCOMM.

    To test in my board I have copied RegEdit application to board and run it when the GSM modem is connected.

    But I am not able to see any virtual com ports in the following path,

    HKLM\HARDWARE\DEVICEMAP

    I am using imx51 processor with WinCE6.0 os.

    Please let me know why I am not able to see the virtual com port in the board.

    Thanks in advance for the help

    With Thanks

    nadini

    Thursday, February 7, 2013 6:56 AM

All replies

  • I suppose that the GSM modem is an USB *device* and Windows CE is the USB *host*: you have included the function USB serial driver which is used to show up the Windows CE machine as an USB serial device to another equipment which is an USN host.

    You need to include the USB serial client driver which is in %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\USBSER


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Thursday, February 7, 2013 11:47 AM
  • Hello Luca Sir,

    Thanks for the reply.

    I have added SYSGEN_USBFN_SERIAL which is placed in,

    %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\Serial.

    Is USBSER different from above mentioned Serial( SYSGEN_USBFN_SERIAL)?

    If for the above question the answer is yes,How I can add USBSER to my BSP??

    With Thanks

    nadini

    Friday, February 8, 2013 6:35 AM
  • SYSGEN_USBFN_SERIAL, as I said, is the function USB serial driver which is used to show up the Windows CE machine as an USB serial device to another equipment which is an USB host. If you carefully look at the 'path for SYSGEN_USBFN_SERIAL' you will see that it is $(_WINCEROOT)\public\COMMON\oak\drivers\**UsbFn**\class\Serial while I wrote %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\USBSER.

    In order to include USBSER driver you need to set SYSGEN_USB_SER: notice that there is no corresponding catalog item, you need to set SYSGEN_USB_SER 'manually' for example from the Project -> <Your OS design> Properties->Configuration Properties->Environment menu.


    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Friday, February 8, 2013 7:58 AM
  • USBFN - USB Funtional driver. this is for your USB client port driver. I mean your wince device will act as a serial (Used for Activesync), mass storage, RNDIS , all the 3 using composite client or any custom USB functional driver when this is connect to any  Host ( Simply when you connect to PC). the driver you have posted in USBFN folder as shown below

    \WINCE600\PUBLIC\COMMON\OAK\DRIVERS\USBFN\CLASS\SERIAL. For this you have to add SYSGEN_USBFN_SERIAL.

    But for your case, you have connected your USB Modem (it is client device) to your device Host port. you need USB serial client driver and not USBFN serial client driver.

    As Luca suggested, you have to use

    %_WINCEROOT%\PUBLIC\COMMON\OAK\DRIVERS\USB\CLASS\USBSER

    To added this driver, you have to set SYSGEN_USB_SER=1

    Again what is your HOST controller type? is it OHCI or EHCI or UHCI?

    There should be a controller driver in your BSP that should link with the corresponding driver in MDD.


    Vinoth.R

    www.e-consystems.com

    http://vinoth-vinothblog.blogspot.com

    Friday, February 8, 2013 8:06 AM
  • oh i am bit late. Luca already replied it

    Vinoth.R

    www.e-consystems.com

    http://vinoth-vinothblog.blogspot.com

    Friday, February 8, 2013 8:10 AM
  • Hi Luca/Vinoth Sir,

    Thanks for the reply.

    I will check with it.

    With Thanks

    nadini

    Friday, February 8, 2013 12:44 PM
  • Two answers are better than none!

    Luca Calligaris lucaDOTcalligarisATeurotechDOTcom www.eurotech.com Check my blog: http://lcalligaris.wordpress.com

    Friday, February 8, 2013 3:21 PM