Sending SMS
-
Sending SMS using .NET[^] I used this code to send SMS by an application. it's need to pass com port as a parameter. But my PC doesn't have com ports. it only have USB ports only. So how do i find the com port which attached my phone. (Here i use a mobile phone instead of a GSM Modem)
-
Sending SMS using .NET[^] I used this code to send SMS by an application. it's need to pass com port as a parameter. But my PC doesn't have com ports. it only have USB ports only. So how do i find the com port which attached my phone. (Here i use a mobile phone instead of a GSM Modem)
One can buy USB-to-serial convertors e.g. here[^]. They tend to add a serial port to your system, hardly distinguishable from motherboard ports (very fast toggling of the control lines may be a problem, but they are fine for normal use). They normally come with their own driver. Sometimes, the driver allows you to assign a static name to the new port, it may not even have to start with "COM". So you could have your app connect through such fixed name; or, what most programs do, have a ComboBox show all available ports (as obtained from SerialPort.GetPortNames[^]) :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
One can buy USB-to-serial convertors e.g. here[^]. They tend to add a serial port to your system, hardly distinguishable from motherboard ports (very fast toggling of the control lines may be a problem, but they are fine for normal use). They normally come with their own driver. Sometimes, the driver allows you to assign a static name to the new port, it may not even have to start with "COM". So you could have your app connect through such fixed name; or, what most programs do, have a ComboBox show all available ports (as obtained from SerialPort.GetPortNames[^]) :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
I tried that SerialPort.GetPortNames function. It shows COM1 only. So if I connect my phone to a USB port can I use the port as COM1?
Plug it in and TRY IT. Chances are, you cannot use your cell phone as a modem without installing some software on the PC to enable it and that's IF you phone even comes with the software to enable it. Check with the cell phone vendor to find out.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
I tried that SerialPort.GetPortNames function. It shows COM1 only. So if I connect my phone to a USB port can I use the port as COM1?
You could use Device Manager (one of the options when right clicking My Computer), locate COM1, and try and decide whether it is hooked up to your phone. Note: some PCs have a built-in modem which is implemented as a serial port, so your COM1 might be that too. You'll have to look around and experiment, there isn't a fixed way to identify ports unfortunately. :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
-
One can buy USB-to-serial convertors e.g. here[^]. They tend to add a serial port to your system, hardly distinguishable from motherboard ports (very fast toggling of the control lines may be a problem, but they are fine for normal use). They normally come with their own driver. Sometimes, the driver allows you to assign a static name to the new port, it may not even have to start with "COM". So you could have your app connect through such fixed name; or, what most programs do, have a ComboBox show all available ports (as obtained from SerialPort.GetPortNames[^]) :)
Luc Pattyn [My Articles] Nil Volentibus Arduum
SYSTEM/Hardware/USB -HUD devices reveals the identity. Use this ID to communicate via USB. Interesting Velleman project K8055_VB communicates with an experimenting board, has VB source. Uses C-DLL, however which does not reveal code. VB-source to locate, open-close, read write USB devices in VB is out there too. :cool: