koirnaos
Joined: 23 Dec 2009 Posts: 6
|
TC35i and pic 16f628 |
Posted: Mon Jul 12, 2010 8:14 am |
|
|
Hi, I'm trying to built a program for pic 16f628 in order to communicate with TC35i modem, but I'm having some problems.
1. I don't know how to read parts of incoming messages.
For examble, I used the hyperterminal to learn which at commands I'll have to use in my program.
When I'm sending this command:
AT+CMGL="ALL"
I get:
AT+CMGL="ALL"
+CMGL: 1,"REC READ","+36932216085",,"06/11/11,00:30:29+8"
message1.
+CMGL: 2,"REC READ","+36932216085",,"06/11/11,00:32:20+8"
message2.
OK
- Is there a way to remove date and time from the response?
- How can I read the memory slot number, the mobile number and the message?
I want to read the mobile number in order to know who the sender is and to block other senders. After the message has been read, it will be deleted.
2. Pic 16f628 has to communicate with another device too via rs232.
For that reason in my program I have to use two rs232 ports.
- How do I define this ports and how to distinguish them in the program?
thanks in advance |
|