Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1076319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T21:23:51+00:00 2026-05-16T21:23:51+00:00

I have a USB Modem connected to my PC with a SIM card inserted.

  • 0

I have a USB Modem connected to my PC with a SIM card inserted. I want to write a C# application to send SMS through the modem can any one help me with this???
another question..I have heard about serial port communication…Is there some thing called as USB port communication???

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T21:23:52+00:00Added an answer on May 16, 2026 at 9:23 pm

    So at first, there exists nothing like a USB port communication. But all those usb modems implement a virtual serial connection.

    You can make a connection through this virtual serial port to your modem and use it as you like. To find out the used serial port you can take a look into the device manager after you connected the modem or you can just call System.IO.Ports.SerialPort.GetPortNames() to find out the available ports. Perfect would be a ComboBox that would be filled up, so the user can choose the port, cause it will differ which com port a usb device gets from pc to pc.

    To communicate with the port you can take a look into the SerialPort class. But what you have to send to enter the pin code and to send (or receive) an SMS completely depends on the command of your modem. So for these commands you should take a look into the handbook of your modem. Normally you’ll find a list of all possible AT-commands and their parameters.

    And this brings us back to the start where you first have to check if you have selected the right COM port and if it is correct configured. To find this out you just have to send the command AT\r\n and your answer should be OK\r\n (don’t forget to add the Environment.NewLine or "\r\n" to your entered command!). For these just take a look into the Read() and Write() functions of the class.

    Maybe for a first test of your modem configuration and the AT commands you should use a Terminal program like HyperTerminal. With this you can configure and open a connection to a serial port, enter your commands manually and see directly the answer from the other side. If you got this to work it should quite easy to create a small application that performs the commands automatically and shows the answer in a more readable way.

    Update

    Cause you just said it is a Huwai modem i just found this documentation. Here they mentioned an existing software to send and receive an SMS. If you just have such an existing application, no documentation about the AT-command and you’d like to write your own application. You should install the Free Serial Port Monitor and sniff into the communcation between the modem and the application. So it should be quite easy to find out the needed commands if you don’t get any documentation for it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.