sms automation

For user who dont speak german please use this part of my forum
rationalboss
Beiträge: 6
Registriert: Mi 22. Feb 2012, 16:55

sms automation

Beitrag 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!
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag 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.
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
rationalboss
Beiträge: 6
Registriert: Mi 22. Feb 2012, 16:55

Beitrag 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.
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag 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
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
K750fan
Beiträge: 38
Registriert: Mo 22. Mär 2010, 19:37

Beitrag 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.

Bild
FJ
Site Admin
Beiträge: 32106
Registriert: Mi 15. Feb 2006, 01:16
Wohnort: Tirol
Kontaktdaten:

Beitrag 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
Ich bitte um Verständnis daß ich aufgrund des hohen Aufkommens im Forum und meines zeitlichen Rahmens nichtmehr jeden Thread im Forum persönlich lesen bzw. beantworten kann.

Bitte benutzt auch die Forum-Suche bzw. die FAQ
Antworten