Sethuraman R | 11 Jul 2012 18:08
Picon

New Modem Creation

Hi All,

I'm using windows default driver Usbser.sys for my Embedded device to connect it with my PC. I need to create a LAN connection between my PC and my Embedded device. I used Ras dial to achieve this. But the problem here is before making the dial-up connection I need to create a Modem.

I follow the below steps to create a Modem.

Control Panel -> Phone and Modem options -> Navigate To Modem Menu -> Click Add button -> Select “Don’t detect my modem;I will select it from a list” -> Select “Communications cable between two computers” and click Next button -> Selected my COM port in which device is connected -> Finish.

And below is my SetupApi.log when installing the new modem:

[2012/07/11 21:07:12 4324.27 Driver Install]
#-198 Command line processed: "C:\WINDOWS\system32\rundll32.exe" C:\WINDOWS\system32\shell32.dll,Control_RunDLL "C:\WINDOWS\system32\telephon.cpl",Phone and Modem Options
#I060 Set selected driver.
[2012/07/11 21:07:12 4324.28]
#-198 Command line processed: "C:\WINDOWS\system32\rundll32.exe" C:\WINDOWS\system32\shell32.dll,Control_RunDLL "C:\WINDOWS\system32\telephon.cpl",Phone and Modem Options
#-166 Device install function: DIF_INSTALLDEVICE.
#I123 Doing full install of "ROOT\MODEM\0009".
#-011 Installing section [M2700] from "c:\windows\inf\mdmhayes.inf".
#I121 Device install of "ROOT\MODEM\0009" finished successfully.


How to achieve this part ( creating New Modem ) Programatically?  Is there any Windows APIs available or is there a way to do this with writing some inf files? Please Suggest me to proceed.

Thanks..

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Libusb-win32-devel mailing list
Libusb-win32-devel <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
Xiaofan Chen | 12 Jul 2012 15:13
Picon

Re: New Modem Creation

On Thu, Jul 12, 2012 at 12:08 AM, Sethuraman R <sethuuraman <at> gmail.com> wrote:
> Hi All,
>
> I'm using windows default driver Usbser.sys for my Embedded device to
> connect it with my PC. I need to create a LAN connection between my PC and
> my Embedded device. I used Ras dial to achieve this. But the problem here is
> before making the dial-up connection I need to create a Modem.
>
> I follow the below steps to create a Modem.
>
> Control Panel -> Phone and Modem options -> Navigate To Modem Menu -> Click
> Add button -> Select “Don’t detect my modem;I will select it from a list” ->
> Select “Communications cable between two computers” and click Next button ->
> Selected my COM port in which device is connected -> Finish.
>
> And below is my SetupApi.log when installing the new modem:
>
> [2012/07/11 21:07:12 4324.27 Driver Install]
> #-198 Command line processed: "C:\WINDOWS\system32\rundll32.exe"
> C:\WINDOWS\system32\shell32.dll,Control_RunDLL
> "C:\WINDOWS\system32\telephon.cpl",Phone and Modem Options
> #I060 Set selected driver.
> [2012/07/11 21:07:12 4324.28]
> #-198 Command line processed: "C:\WINDOWS\system32\rundll32.exe"
> C:\WINDOWS\system32\shell32.dll,Control_RunDLL
> "C:\WINDOWS\system32\telephon.cpl",Phone and Modem Options
> #-166 Device install function: DIF_INSTALLDEVICE.
> #I123 Doing full install of "ROOT\MODEM\0009".
> #-011 Installing section [M2700] from "c:\windows\inf\mdmhayes.inf".
> #I121 Device install of "ROOT\MODEM\0009" finished successfully.
>
> How to achieve this part ( creating New Modem ) Programatically?  Is there
> any Windows APIs available or is there a way to do this with writing some
> inf files? Please Suggest me to proceed.

I think you have asked in the OSR list. Sorry but I think this has nothing
to do with libusb-win32 and I am not so sure if the users here can give
any better answer than the driver experts in OSR.

Reference:
http://www.osronline.com/showthread.cfm?link=228448
http://social.msdn.microsoft.com/Forums/en-US/wdk/thread/34372200-6057-4f8d-8c3c-22b583d925b5

I can only guess that nobody understand your problem there.
Probably you want to explain what you want to do in
more detail.

To me the solution is to forget about usbser.sys and use
USB RNDIS to set up the connection.
http://msdn.microsoft.com/en-us/library/windows/hardware/gg463298.aspx

Or maybe some CDC-Ethernet based USB class. But if you
need Windows XP support, then USB RNDIS may be the
way to go.
http://en.wikipedia.org/wiki/USB_communications_device_class

--

-- 
Xiaofan

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

Gmane