Wrox Programmer Forums
Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
| Search | Today's Posts | Mark Forums Read
General .NET For general discussion of MICROSOFT .NET topics that don't fall within any of the other .NET forum subcategories or .NET language forums.  If your question is specific to a language (C# or Visual Basic) or type of application (Windows Forms or ASP.Net) try an applicable forum category. ** PLEASE BE SPECIFIC WITH YOUR QUESTION ** When posting here, provide details regarding the Microsoft .NET language you are using and/or what type of application (Windows/Web Forms, etc) you are working in, if applicable to the question. This will help others answer the question without having to ask.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the General .NET section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 28th, 2014, 12:46 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default How to get the port of the connected smartphone.

I want to send SMS message from my PC to the connected smartphone. I know how to do this using GMS commands. I have created code in C#. The basic problem is that I can not figure out which port the phone is connected to. I have connected the phone with its data cable. In addition, I have installed its driver as well as the software provided by the company and the software successfully connects to it. But for my specific purpose I just have to know the communications port it is connected to so that I continue testing my code. I am using Windows XP. I don't find anything from control panel which would tell the required piece of information. Please help!

baburman
__________________
BaburMan
 
Old October 31st, 2014, 07:49 AM
Authorized User
Points: 382, Level: 6
Points: 382, Level: 6 Points: 382, Level: 6 Points: 382, Level: 6
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: May 2004
Location: Rawalpindi, -, Pakistan.
Posts: 73
Thanks: 0
Thanked 1 Time in 1 Post
Default

When i connect my phone to the PC the properties window of "USB Composite Device" under Universal Serial Bus Controllers under Device Manager shows the Location as "Location 0". I don't know how to use this location in my code. My code is working fine with the old-fashioned phone (samsung sgh-e250) and when i connect it displays the communications port (like COM3, COM4 etc.) which is then passed as a parameter to my function. I am using SerialPort class of System.IO.Ports namespace. I guess i have to use some other class to access USB port address. Please help.
__________________
BaburMan




Similar Threads
Thread Thread Starter Forum Replies Last Post
smartphone watch dineshkhanal7 .NET Web Services 1 February 6th, 2013 07:08 AM
extending visual studio smartphone sdk anshuman_atri Forum and Wrox.com Feedback 0 October 6th, 2006 12:40 AM
Sending emails from smartphone application. unprsandeep C# 0 March 24th, 2005 02:01 PM
How to access DB for Smartphone? ducldth General .NET 0 December 31st, 2004 06:09 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.