Click here to Skip to main content
15,914,409 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
:(( HI Everybody,

How can I connect a mobile to my laptop which does not have the serial port ..however, it has lots of USB port.

so that I can read my mobiles SIM and Send SMS messge from Computer.

Any other options to send message from my laptop connected to a GSM mobile ..using C# plz suggest me a good option .. Only using laptop ..

Regards,
Martin
Posted

hello,

you can use bluetooth,this article will help :

http://dickchiang.blogspot.com/2008/09/bluetooth-programming-with-c.html[^]


below the sample snippet used to send a file to bluetooth device (taken from the same article).


string filename = System.IO.Path.GetFileName(openFileDialog1.FileName);
Uri u = new Uri("obex-push://" + devAddr.ToString() + "/" + filename);
ObexWebRequest owr = new ObexWebRequest(u);
owr.ReadFile(openFileDialog1.FileName);
ObexWebResponse response = (ObexWebResponse)owr.GetResponse();
response.Close();



in regard to Usb port u can use this method to get the port number for
further using .

SerialPort.GetPortNames();


Here is a link to the LibUSB code. It's a lib for controlling usb ports.

http://sourceforge.net/apps/trac/libusb-win32/wiki[^]

good luck :)
 
Share this answer
 
v2
Comments
MARTIN ROBERT 20-Jan-11 2:18am    
Is it possible to send SMS thru a Mobile phone connected via bluetooth..? Please any articles .
thanks.
Dev. RoOo7 21-Jan-11 3:16am    
yes u can , follow this link and u will get what u asked about :)
http://www.scampers.org/steve/sms/libraries.htm

and this is a sample

http://www.scampers.org/steve/sms/samples.htm

good luck :)
First mention the Nokia phone model.

Second there wireless options too like Bluetooth.

You need Nokia PC Suite, bluetooth connection in computer or USB to Serial port cable and nokia phone capable of connecting to computer via cable or bluetooth.

For further info see http://www.nokia.co.uk/support/learn-how/connect-phone-and-pc[^]
 
Share this answer
 
Comments
MARTIN ROBERT 20-Jan-11 1:37am    
nokia phone model is - Nokia X3. see I have to develp one windows application to send SMS thru a Mobile phone connected to my Laptop .C# code can only read and detect phones SIM only if the phone is connected to the Serial Port of a system . But in Laptop no serial Port .. any alter native . I dont know anything is there to like adopters to connect phone with serial connector then serial connector to USB(Laptop).Pleas is it possible .. thanks for your reply ..
Wild-Programmer 20-Jan-11 1:42am    
Who says C# can read only serial port? See here to read USB ports http://weblogs.asp.net/israelio/archive/2005/08/15/422637.aspx
MARTIN ROBERT 20-Jan-11 2:18am    
can i read and send SMS using this library .. plz ?
Dev. RoOo7 26-Mar-11 1:38am    
visit this link as i said before .. it will he;p

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900