Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Sending SMS

Sending SMS

Scheduled Pinned Locked Moved Visual Basic
csharpcomquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    Pasan148
    wrote on last edited by
    #1

    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)

    L 1 Reply Last reply
    0
    • P Pasan148

      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)

      L Offline
      L Offline
      Luc Pattyn
      wrote on last edited by
      #2

      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

      P Q 2 Replies Last reply
      0
      • L Luc Pattyn

        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

        P Offline
        P Offline
        Pasan148
        wrote on last edited by
        #3

        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?

        D L 2 Replies Last reply
        0
        • P Pasan148

          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?

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          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

          1 Reply Last reply
          0
          • P Pasan148

            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?

            L Offline
            L Offline
            Luc Pattyn
            wrote on last edited by
            #5

            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

            1 Reply Last reply
            0
            • L Luc Pattyn

              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

              Q Offline
              Q Offline
              Quiettao0o0o
              wrote on last edited by
              #6

              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:

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups