9/12/2008 7:38 AM | |
Posts: 2930 Rating:
|
Hi, post your program because other wise nobody will be able to find the location. Regards Helmut |
9/12/2008 9:53 AM | |
Joined: 3/21/2006 Last visit: 7/26/2024 Posts: 10228 Rating:
|
Hi Helmut_13 is right. With project, you will receive exactly what must to do, or maybe project with fixed call number. In the other case try try logic in this FAQ regards |
9/12/2008 1:29 PM | |
Posts: 147 Rating:
|
Hi Plenc You should take a look at Micro Automation Set 5. It uses TC35, but I think the AT commands are the same, and there is a library that you can use, with very elegant code, and there is a forum dedicated to it. http://support.automation.siemens.com/WW/view/en/21063345 As far as I can tell, you are doing something like this in your code: [code] // SMS send takes place in two phases // phase 1 XMT "AT+CMGS=123456789$R", 0 // send SMS to 123456789 // maybe some check for correct modem response ">" here // phase 2 XMT "HALLO", 0 // actual message XMT 16#1A, 0 // end-of-message character // maybe some other check for successful transmission [/code] Instead, you can play with strings. Assume that: you are transmiting VB0 (so you want to create your string in VB0) your phone number resides in VB500 By using SCPY, SCAT, you create the string to send, so you have something like this: [code] // phase 1 SCPY "AT+CMGS=", VB0 // this is the AT command SCAT VB500, VB0 // followed by the number SCAT "$R", VB0 // followed by the Carriage Return character XMT VB0, 0 // send the command to the modem [/code] Accordingly, you can reconfigure the actual text message that you will sent, and then appending the CTRL-Z character at the end. Regards Aristotelis |
Last edited by: Aristotelis at: 9/12/2008 1:41 PM |
|
Follow us on