Coding concepts to send a data from cellular module to server using cdma/gsm

Status
Not open for further replies.

Seeli Powlin

Newbie level 6
Joined
May 7, 2014
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
94
Hi, currently i am working on the cdma module.
I am very new to this module.
I need to send a data from cdma module to server using TCP.

For eg:
I have to use the below procedure for that particular command
(I have to Check what software revision is being used:
1. Send command AT+GMR<cr>
2. Wait for response OK
3. Ensure you have a value of “2” in the bold location 18.XX.0XX)

I have stored the AT commands to be used in a pointer. Eg: unsigned char *sftrev_cmd="AT+GMR";
After that i wrote some UART-Write(sftrev_cmd); function to send the command.
Now i have to wait for response ok and then i have to check the value 2 in that location.
Do i need to write the codes for the step 2 and 3 also?


Please help me with some suggestions.
I am very new to this cellular module.


Thank you.
 

Not sure I understand correctly but what you need to do is test the characters received on the serial, if that your problem is simple to solve.
Are you new to programming?What language do you program?
 

Not sure I understand correctly but what you need to do is test the characters received on the serial, if that your problem is simple to solve.
Are you new to programming?What language do you program?

Yea i am new to embedded C.
I am using CCS.
 

Hi,
I have sent a command: AT+GMR<cr>
I am using telit cdma module.
Now i have to wait for the response OK.
Where the response gets stored?
Do u have any idea regarding this?
 

I recommend you first do tests using the communication delays. Once u is successful in doing sending sms using microcontroller, you can program conditions to proceed with the process of sending and receiving.:smile:
 

I recommend you first do tests using the communication delays. Once u is successful in doing sending sms using microcontroller, you can program conditions to proceed with the process of sending and receiving.:smile:

Hi,
Thank you.
The problem is, now i am not having the board to test.
First i have to make functions and then i have to implement those codes wit the board.
 

Exactly, actually do the testing of communication to meet the microcontroller, to know how it works with the codes that u are doing every test u will see how the module responds to each command. So you can see if everything's going well in their development. When you are with the kit in hand again, do the tests and come here to ask or talk about their progress.
I hope I have helped you.;-)
 

Hi,
Thank You for your reply
Actually speaking, its the work i received from my company.
I have to do like this.
I am not familiar in this too.
That's why seeking forum's help
 

Status
Not open for further replies.
Cookies are required to use this site. You must accept them to continue using the site. Learn more…