![]() |
Re: SMS from CLI (Command Line)?
Hi! Tested myself too that Python app and gotta say that I loved it, it worked well! Thank you very much :)
|
Re: SMS from CLI (Command Line)?
Quote:
New message received from +xxxxxxxxxxx Message length 4 Message: ping Sending reply: pong But I don't receive the "pong" message on my other mobile. In the code, I see that you replace the '+' by "00"; adding that to my phone number (above obfuscated with x-es) gives a total number of 13 digits. Is the odd number still a problem? If so, how can I resolve this? |
Re: SMS from CLI (Command Line)?
Quote:
How do you initiate a function in the python file. I.e. I see that the default with sender.py is listen. How do I run the sendmessage with number and text from CLI? |
Re: SMS from CLI (Command Line)?
<hijack>
Quote:
</hijack> |
Re: SMS from CLI (Command Line)?
Quote:
Code:
if __name__ == '__main__':Code:
if __name__ == '__main__':to test it, but nothing gets sent... Where's the problem? |
Re: SMS from CLI (Command Line)?
Quote:
|
Re: SMS from CLI (Command Line)?
A programmer has modified the script for me to accept commandline arguments, to send an SMS, so:
Code:
#!/usr/bin/pythonCode:
Traceback (most recent call last):It seems the problem is with the PDU encoding. Anyone got the above (prior) script to actually send an SMS? Where is the problem? |
Re: SMS from CLI (Command Line)?
It seems the fault is definitely with this PDU encoding process. Isn't there a possibility to forward the text and number to internal Nokia PDU encoding and SMS sending routine, if there is such a thing? I.e. telepathy etc. Have been reading up through telepathy documents, but don't know how to send an SMS through its API.
|
Re: SMS from CLI (Command Line)?
Just thinking - is there any /dev/tty... interface inside OS to communicate with GSM engine using AT commands?
If such port exists, sending SMS should be rather straightforward. |
Re: SMS from CLI (Command Line)?
Of course, you're my man, there's pnatd for communicating with the modem. OK, no to check how to send plain text SMSes via AT commands. Do you know how to do this?
|
| All times are GMT. The time now is 03:31. |
vBulletin® Version 3.8.8