SMS and GPRS app
| Mon, 2005-05-23 01:22 | |
|
hi all,
I'm currently having trouble with an app I'm making. Basically, the app connects via GPRS to a server. Then it waits and listens to incoming SMS. When an SMS comes in, it reads the data and sends it over to the server via the GPRS connection. Then the server replies via GPRS a set DND(Do Not Disturb) message and the app reads that message and sends out an SMS message with the data from the server. Currently, I have the GRPS socket engine done and the smshandler engine done. I can actually send a GRPS data to server, read the reply, and send an SMS message out just fine. But the moment I plug in the reading of SMS part, the app crashes or the SMS server session dies or something. I'm not that experienced with Symbian yet so I'm not sure if there is a issue with reading SMS messages and doing other stuff at the same time. Btw, the GRPS sending and recieving works even when the GPRS dies for a while when SMS goes out so its not an Active Object problem I think. There. My problem comes from reading the message. I tried to actually read a message and send the data over GRPS, the SMS server goes down. I try to read the SMS message and send an SMS message out, the app crashes. But when I try doing anything else without the reading of SMS part... it works just fine! Im really stumped. Didster? help please? hehehe. Thanx anyone who can give any help at all. TJ |
|






Forum posts: 205
class A - devices can connect to GSM and GPRS service simultaneously.
class B - device can connect to GSM or GPRS service but its using only one at a time.
class C - devices can connect either to GSM or GPRS service. You need to switch manually between services.
Today most devices got class B modules. So when you send SMS or make call, GPRS service is suspended and viceversa.
Hope it will help you.
Best regards,
Michal Laskowski
Forum posts: 24
Thanx for the reply.
I'm using the B type device. It's a nokia 6600 and most nokia phones operate that way.
Actually, I already have a working app somewhat. But the problem is that when I try to listen and read an incoming SMS and try to send the data from that over to GPRS, my SMSHandler engine dies. It gets a general error. Also, I am currently having problems with respect to receiving and sending an SMS message out because whenever I receive an SMS message and try to create a SMS message to send out, the app gets a KERN-EXEC 3 panic. The app crashes but it was able to create a message in the outbox whose status is "Waiting" which means that it hasn't been sent. I really can't figure out what causes the panic. I'm getting really frustrated. Please anyone with any ideas, please help.
Forum posts: 165