|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
at commands in c++
Hi.
I'm new in c++ and I want you to help me. I need a simple program what sends one at command to gsm modem. I don't know how to open and use com port and that's the biggest problem. I'll be grateful if you send me this code. DARO admin@statsms.net |
|
#2
|
||||
|
||||
|
Re: at commands in c++
First of all this is a forum related to the FIRST robotics competition, not programming in general.
I don't know exactly the answer to your question, but to use the COM port in Windows, I think that you output to an imaginary file called "COM1" or "COMx" (x=port number) and read inputs from that file. FILE *read=fopen("COM1","rb"); // Read from COM1 FILE *write=fopen("COM1","wb"); // Write to COM1 This gives you only raw access to the serial/com port (so you can do basic reads and writes to some devices plugged in). If you want to do advanced stuff like use your modem to connect to numbers or something, then I have no idea how to use it. You would probably have to use a library to use your modem. Maybe microsoft has some functions to access it. I would just search on google; I'm sure somebody has this. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Can anyone create new commands? | Jakenan | Programming | 5 | 22-01-2005 21:38 |
| Multiple command_lists | Jon236 | Programming | 8 | 20-01-2005 17:55 |
| return line commands in PHP | robot180 | Website Design/Showcase | 8 | 20-01-2005 14:59 |
| Autonomous Commands Promised in Kickoff | schenkin | Programming | 11 | 16-01-2005 08:58 |
| Voice Activated commands | Amber H. | Technical Discussion | 40 | 03-11-2002 12:40 |