Seite 1 von 1
sms automation
Verfasst: Mi 19. Sep 2012, 13:46
von rationalboss
Hi,
I have read the FAQ and I learned that it's possible to pass incoming messages to a program. I would like to know if:
1. it's possible to pass unread messages if the phone was not connected when the message was received. it will be read by MPE during sync and will be listed in the UI but will OnIncomingMessage be triggered for messages received while it's not connected to the PC?
2. is it possible to delete a message or messages via command line?
Thanks!
Verfasst: Fr 28. Sep 2012, 00:24
von FJ
1. the eventhandler OnIncomingMessages will trigger only when a message arrives on the phone while it is connected to the phone
2. Theoretically yes, in practise its difficult. You can send throught the commandline all AT-Commands (its the underlying protocol for communication with the phone) so you can also delete messages with this command:
action=directcommand command=AT+CMGD=<id of the message>
The problem: The OnIncomingMessage trigger will not tell you the ID of the message. You can find out the ID by tracking the logfile of MyPhoneExplorer in your script or app, this would be the easiest way to deal with it.
Verfasst: Fr 28. Sep 2012, 10:42
von rationalboss
thanks!
is there a way to read the unread messages when the phone is connected probably something similar to how the message is deleted?
we intend to use it in our office which is open from 8am-5pm. since after office hours, we have to shut down computers, there might be unread messages that will come on 8am the following day.
Verfasst: Fr 28. Sep 2012, 22:33
von FJ
Yes, with tracking the logfile you can be aware of the sms refresh process. The messages are listed like this:
23:32:02.53 [RX]: +CMGL: 247,0,TXT,...
Where 247 would be the ID of the message and 0 says that its an unread message
Verfasst: Di 9. Okt 2012, 15:24
von K750fan
I have a problem with deleting many messages at once (>200). After this happen, I can not do anything about messages before I restart phone/computer.

Verfasst: Mo 22. Okt 2012, 23:57
von FJ
This issue is caused directly from the phone. You should wait some time after you deleted many messages. For 200 messages the phone needs internally much longer to delete them