Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > .NET > Other .NET > General .NET
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
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
Reply With Quote
  #2 (permalink)  
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
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 02:10 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.