Go to Post However I did tell my wife I wanted to lose 20lbs of ugly fat quickly. She told me to cut off my head. Go figure. - Ed Coleman [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 03-03-2005, 05:13
daroch daroch is offline
Registered User
no team
 
Join Date: Mar 2005
Location: poland
Posts: 1
daroch is an unknown quantity at this point
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   Spotlight this post!  
Unread 04-03-2005, 01:01
ace123's Avatar
ace123 ace123 is offline
Registered User
AKA: Patrick Horn
FRC #0008 (Paly Robotics - http://robotics.paly.net/)
Team Role: Programmer
 
Join Date: Feb 2005
Rookie Year: 2004
Location: Palo Alto, CA
Posts: 50
ace123 has a spectacular aura aboutace123 has a spectacular aura about
Send a message via AIM to ace123
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.
__________________
-Patrick Horn, Paly Robotics

Check out the space simulator called Vega Strike, modelled after the space simulator games Elite and Wing Commander. It's Open Source too!
If you have ever played Wing Commander, or especially Privateer, and had a feeling of nostalga derived from the you will enjoy these two Vega Strike mods: Privateer Gemini Gold and Privateer Remake!
I'm working on adding multiplayer support this year...
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 00:17.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi