When it's time to close this thread, will there be an signal? Or is this it?1) Does the microcontroller connect to your PC?
--- 1) No. ...
3) Does it connect by USB?
--- 3) Yes. ...
Oh so sry i don't understand your question.
This micro-controller is connected to the PC, for programming only, through the USB port. The OP has a wireless modem connected to a serial port on the PC to enable wireless communication with the micro-controller. Is this correct?
This program you are writing is for your micro-controller. Is this correct?
Jim
Yes yes you are right.
WOW 1001 VIEWS BUT I HAVE NOT GOTTEN THE ANSWER. Pls help, i really need a urgent help.
The answer to what question?
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
I am very new to this c programming. I would need c programming codes to send AT commands using MSP430-eZRF2500.
MSP430 is the mirco controller im using to send sms. I need to send SMS from Computer to Handphone using iTegno GPRS Modem and AT commands. I have tried AT commands in hypertereminal and its works. Now i am not sure how to transfer the AT commands to C Language. Pls help. Thanks
I thought you said that you were writing a program for your micro-controller. So now what is this talk about Hyperterminal? Hyperterminal is a Windows program. So are you working on the program that will run on your Windows PC or on your micro-controller? You keep giving conflicting answers.
If you are working on the program that will run on the PC you can start by reading this Windows Serial Ports. This will explain how to setup and use serial ports in Windows.
If you are working on the program that will run on your micro-controller then I suggest you start at the Manufacturer's web site. The Texas Instruments web site has many links on how to setup, program and use their micro-controller. Here is one such link: Wireless Sensor Monitoring.
I doubt that anyone here will "give you the codes". We are here to assist you in solving the problem but it is up to you to write the actual program and ask coherent questions. This project will probably have two separate programs that you must write. One that will run on the micro-controller and one that will run on your Windows PC.
To get reasonable answers you must provide reasonable questions. If you don't know what you are trying to accomplish how should we?
Jim
There aren't "C programming codes to send AT commands". There are functions you can call to communicate with [whatever you want to communicate with]. The fact that what you are trying to communicate are AT commands is irrelevant to actually getting the job done. You need to specify who is doing the communicating and with what. You've got a modem that understands AT commands; great. What is it plugged into? If it's plugged into the PC, then you need to write a program for the PC that talks to the port. If it's plugged in somehow to your uC, then you need to use the tools that came with that. But none of us can actually see your hardware, so it's up to you to actually check.
I HAVE CAME OUT THE CODE THAT MSP430 INTERFACE PC TO SEND SMS FROM PC TO HANDPHONE USING GPRS MODEM. BUT I AM HAVEING ERRORS. I AM USING IAR EMBEDDED WORKBENCH. PLS HELP ME ON SOLVING MY ERRORS. THANKS
THE ERRORS ARE:Code:void serial_send() { ////Sets the properties of serial port object serialport.PortName = COM1.SelectedItem.ToString(); serialport.BaudRate = 115200; serialport.Parity = Parity.None; serialport.DataBits = 8; serialport.StopBits = StopBits.One; serialport.Handshake = Handshake.RequestToSend; serialport.DtrEnable = true; serialport.RtsEnable = true; //Open the port to send sms serialport.Open(); serialport.WriteLine("AT+CMGF=1" + Environment.NewLine); serialport.WriteLine("AT+CSCA=\"" + txtServiceNo.Text + ",145\"" + Environment.NewLine); //Sets destination number serialport.WriteLine("AT+CMGS=\"" + sms.DestinationNo + "\"" + Environment.NewLine); //Specifies message and sends Ctrl+z serialport.WriteLine(sms.Message + (char)26); //Displays buffer containing output messages System.Threading.Thread.Sleep(1500); }
Error[Pe020]: identifier "serialport" is undefined
Error[Pe020]: identifier "Parity" is undefined
Error[Pe020]: identifier "StopBits" is undefined
Error[Pe020]: identifier "Handshake" is undefined
Error[Pe020]: identifier "true" is undefined
Error[Pe020]: identifier "Environment" is undefined
Error[Pe020]: identifier "txtServiceNo" is undefined
Error[Pe020]: identifier "sms" is undefined
Error[Pe020]: identifier "System" is undefined
* how to define the following errors?
That's not called "CAME OUT THE CODE".
That's called cheating by plagiarising random code from the internet.
Why are u so bad on me? Pls don hurt others feelings.Pls type Politely. If you can help than help, if you don't wish to help pls don't type this kind of comments. I hope u understand. Pls atleast phrase it the way people will not be hurt by your words.
If you don't want to be called a cheater, don't be a cheater.
Did you write the code, or did you copy it from somewhere?