Notices


Reply
Thread Tools
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#131
I'll add an argument to pass the pin to the program.
Or maybe as you say it's stored somewhere (I'm not sure that this information is easily available, it shouldn't...)
 
Posts: 11 | Thanked: 9 times | Joined on Jul 2010
#132
I think it must be available in d-bus stuff somewhere but haven't managed to get it yet..
 
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#133
I finally got around to trying your SMS sender, sakya. From the small amount of testing I've done so far it seems good, but both of the >160 character tests I've tried so far (without the compose dialog) have failed. In both cases I got this output (same number of dots each time too):

Code:
WARNING: SMS exceding 160 characters
         Splitted in 2 parts
Sendind SMS:
[1/2]....
ERR: Failed to send text message
[2/2].....OK
My friend's phone gets the second half of the message fine, the first half has not arrived.

The content of the text, if it matters, was this:
Code:
1......... 2......... 3......... 4......... 5......... 6......... 7......... 8......... 9......... 10........ 11........ 12........ 13........ 14........ 15........ 16........ 17........ let's see if this all gets through
I've got some suggestions for other improvements but we'll get to those soon.
 
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#134
Not sure if it's a clue, but I looked at the events database and in the remote_uid column for both of the failed >160-char texts contains
Code:
+447
rather than the full number they were sent to (which did start +447 -- not sure where the 0011 character came from).
 
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#135
@tremby: thanks for the feedback.
Can you please try to send the message adding this argument?
Code:
-l logfile.txt
It should log the strings sent/received from pnatd.

Last edited by sakya; 2011-04-05 at 16:51.
 
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#136
Hope the following helps:

Code:
$ smssend -l smslog -n $(num Pat) -m "1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10....... 11....... 12....... 13....... 14.......   this was the half and here is second half. let me know if you got the first half"

[snip]
WARNING: SMS exceding 160 characters
         Splitted in 2 parts
Sendind SMS:
[1/2]....
ERR: Failed to send text message
[2/2].....OK

$ cat smslog
AT
AT+CMGF=1
OK
AT+CSMP=17,167,0,0
OK
AT+CMGS="+447xxxxxxxxx"
> 1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10....... 11....... 12....... 13....... 14.......   this was the half 1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10AT..... 11....... 12....... 13....... 14.......   this was the half AT
AT+CMGF=1
OK
AT+CSMP=17,167,0,0
OK
AT+CMGS="+447xxxxxxxxx"
> and here is second half. let me know if you got the first halfand here is second half. let me know if you got the first half
+CMGS: 203

OK
 

The Following User Says Thank You to tremby For This Useful Post:
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#137
Fixed, updated to version 0.1.8.
Many thanks for your help.
 

The Following User Says Thank You to sakya For This Useful Post:
Posts: 1,320 | Thanked: 915 times | Joined on Feb 2010
#138
Hi

Could somebody help me make a desktop shortcut that sends this through x-term?

Code:
sudo smssend -n 150 -m "Ba"
Just need the desktop shortcut to open x-term, enter the command and then close x-term when done. Could anybody help me with this?

The reason I want this is because my service provider T-Mobile UK only allows me to check my balance using this method. I have to send a text to that number and they reply with my balance. A desktop shortcut that sends the text for me would save me ALOT of time.

Thanks in advance

EDIT: Figured it out myself Thanks for the awesome smssend app though
__________________
Well Nokia do at least know how to build a decent phone, just apparently don't know how to support it..

N900 Died Replaced with N8, Requested E7, "Accidentally Broke E7", Now rolling with an N9 and im loving it!


My Contributions

N900 Conversations Wiki Page

Last edited by godofwar424; 2011-04-06 at 09:50.
 

The Following User Says Thank You to godofwar424 For This Useful Post:
Posts: 53 | Thanked: 20 times | Joined on Jan 2010
#139
Originally Posted by sakya View Post
Fixed, updated to version 0.1.8.
Many thanks for your help.
This time:

Code:
$ smssend -l smslog -n $(num Pat) -m "1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10....... 11....... 12....... 13....... 14... this was the first half and here is second half. let me know if you got the first half"
The output of that showed two "OK"s.

Here is the log:

Code:
AT
AT+CMGF=1
OK
AT+CSMP=17,167,0,0
OK
AT+CMGS="+447xxxxxxxxx"
> 1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10....... 11....... 12....... 13....... 14... this was the first half 1........ 2........ 3........ 4........ 5........ 6........ 7........ 8........ 9........ 10....... 11....... 12....... 13....... 14... this was the first half 
+CMGS: 219

OK
AT
AT+CMGF=1
OK
AT+CSMP=17,167,0,0
OK
AT+CMGS="+447xxxxxxxxx"
> and here is second half. let me know if you got the first halfand here is second half. let me know if you got the first half
+CMGS: 220

OK
He received all the text but with the halves as separate messages, not a single joined message. Is that a known problem? Any plan to implement proper concatenated SMS?

Also, I then note that in the conversations app the message appears as sent to "(null)" and I can't open its conversation window. I looked in the database and I see that everything looks normal except the remote_uid column, which is, in this case (censored):

Code:
447xxxxxxxxx' AND local_uid = 'ring/tel/ring';
Any idea why that's happening?
 

The Following User Says Thank You to tremby For This Useful Post:
sakya's Avatar
Posts: 533 | Thanked: 1,341 times | Joined on Dec 2010 @ Italy
#140
Originally Posted by tremby View Post
He received all the text but with the halves as separate messages, not a single joined message. Is that a known problem? Any plan to implement proper concatenated SMS?
Yes it is a known problem (I never read about joined sms, but I thought something should be done to join them on the receiver mobile).
I'll read some docs to see if it is feasible.

Also, I then note that in the conversations app the message appears as sent to "(null)" and I can't open its conversation window. I looked in the database and I see that everything looks normal except the remote_uid column, which is, in this case (censored):
It happened to me also a couple of times, I'll check if something is wrong.
If you update that record with the correct number all should be fine.

Many thanks again for the feedback.
 

The Following User Says Thank You to sakya For This Useful Post:
Reply


 
Forum Jump


All times are GMT. The time now is 18:38.