![]() |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
My locale is set to UTF-8. It must be associated with the fact that you're sshing in from Windows and that messes up the encoding somehow... And latin-1 is used by Windows often, so that must be it, you're not encoding it properly... |
Re: [Announce] smssend: send sms from the command line (CLI)
I've understood that the problem directly comes from Xterm, I've posted here http://talk.maemo.org/showthread.php...91#post1115291
|
Re: [Announce] smssend: send sms from the command line (CLI)
It doesn't, I've tried from the terminal, from urxvt, and from emacs within a proper UTF-8 locale.
It's a problem with properly trascoding the character set, caused by erroneous programming within the script. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
Uploaded now version 0.1.10, please test it when available in the repository.
With LANG set to "it_IT.UTF8" I'm able to send message like "èòàù€" from the n900 terminal. Btw the -c option isn't working with utf8 text, while the -C option works. I don't really know why (it's just a QtMobility call but conversation doesn't show to compose the message) |
Re: [Announce] smssend: send sms from the command line (CLI)
true: the -c option no longer works (no message composed), but the -C has no more error :-)
|
Re: [Announce] smssend: send sms from the command line (CLI)
really cool! is there any chance that we could have blinking sms in future releases? :rolleyes:
|
Re: [Announce] smssend: send sms from the command line (CLI)
I can send only 70 characters at a time!! any other ppl experience same issue? I am pretty sure I used to send sms that automatically got converted to multiple sms if greater than 160 chars... Please fix this.
FYI - i am currently on 0.1.10 version Thanks. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
It doesn't work for me. Also, in case Saturn missed it, encoding of special characters still doesn't work (at least, for polish special chars). Tried it both with sending SMS to myself, and just using smssend to input message into conversation - all special characters appear as junk.
/Estel // Edit As for long sms'es - while trying to send more than 70 characters, I just get "FAILED" after trying to send SMS, without any additional informations. |
Re: [Announce] smssend: send sms from the command line (CLI)
For me it works with my special french chars now. Note that I always use the -C option...
|
Re: [Announce] smssend: send sms from the command line (CLI)
Strange, because it replaces polish characters with junk no matter of -C or -c option (conversations window that pop-ups also contain text with junked polish characters).
/Estel |
Re: [Announce] smssend: send sms from the command line (CLI)
@Estel: What's your LANG?
Code:
echo $LANG Code:
export LANG="it_IT.UTF8" |
Re: [Announce] smssend: send sms from the command line (CLI)
Thanks, of course it was my noobines, and with LANG set to pl_PL.UTF8, it works correctly.
ho ever, I noticed another strange thing - when I try to send message with special characters using -c, I got loading screen, that closes itself after a while, and nothing else happens. When i use -C, ho ever, I got message sent properly. Furthermore, using message with only one or two special characters, works well with -c! Still, when I try to send message with all (9 only) special characters, it just end as I described it (loading screen, and nothing happens). /Estel // Edit Furthermore, despite -C working properly, even if I manage to make -c working (by using only few special characters), all of them are replaced by "?" symbol in conversations window. |
Re: [Announce] smssend: send sms from the command line (CLI)
Hei hei!
I was looking for an app like smssend for a while, thanks! :) Unfortunately it doesn't exactly do what it's supposed to do. I have a GSM-unit in my car that can switch a relay when it receives a message from a pre-defined mobile-number with specific text. This works very well when I use option "-c" and send the message with conversation, but it doesn't work at all without conversation. Shouldn't the message be the same with and without "-c"? Edit: I tried both as user and root. |
Re: [Announce] smssend: send sms from the command line (CLI)
Thank you for the nice tool it is very useful.
I have a brainchild for another option to point to an ascii or utf8 file with the sms message. I would realy appreciate it if it is possible.:) |
Re: [Announce] smssend: send sms from the command line (CLI)
I think you can just use a command line like
smssend -c -n +37XXXXXXX -m "$(cat file.txt)" |
Re: [Announce] smssend: send sms from the command line (CLI)
Yeah this works but when you have an unicode text with different language characters this will not work.
With an extra option you can process the text different and pass it to conversation that it display properly with 16bit unicode encoding. |
Re: [Announce] smssend: send sms from the command line (CLI)
So I added an option to pass a txt file to the conversation. No problems with character encoding.
Now I can send every character which I can write with ukeyboard through the conversation. So far tested it only with "-c" and "-C". Works only with "-c". service.compose switch itself to UCS2 sms and service.send does it not. Is there a way to set maybe the codec to "ISO-10646-UCS-2" before sending? Here is nearly all what I did. Only added a new param and using it instead "-m". Maybe it is helpful for somebody. Code:
case SmsSender::argFile: |
Re: [Announce] smssend: send sms from the command line (CLI)
Ok I found for me a quick and dirty solution to send an UCS2 sms at a specific time through conversation.
I am using alarmed to trigger smssend with option read sms from file and -c, also added function to call cnee after that and the mouse will automaticly push the send button. In the scratchbox emulator I recorded the mouse movements. cnee is a part of xnee. It is sad that I don't have the knowledge to modify smssend for UCS2 support. I would maybe rewrite the app with pdu mode and not with text mode but since I found a way... |
Re: [Announce] smssend: send sms from the command line (CLI)
1 Attachment(s)
I want to share my smssend binary with file support for the message.
Added option "-x /path/to/smsfile.txt" you can use it instead of "-m". It should work with utf8 characters with or without -c, -C. For utf16 characters only the "-c" option works. I added an option "-a" for use with "-c" and this option look if the screen is locked and will unlock the screen. After that the conversation pops up and cnee will be called to push the send button. I added a mouse movement file "mouse_send.xnl" it should be in "/user/home/MyDocs/" and is useable for landscape mode. For more information about to get and to use cnee look [here]. Attached you will find: smssend-0.1.10mod_armel_binary.tar.gz Including: smssend -- binary smssend-0.1.10mod.patch -- source patch (with my Makefile!!) mouse_send.xnl -- cnee mouse push/release event (landscape) If you wonna try overwrite smssend in /usr/bin |
Re: [Announce] smssend: send sms from the command line (CLI)
Could You upload it to extras-devel, please?
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
By the way my version has a small bug. With -c option it calls everytime cnee. However if you have no mouse movement file or no cnee nothing should happen. I will fix this if I uploading it to extra-devel. |
Re: [Announce] smssend: send sms from the command line (CLI)
This is just what I've been looking for.
Has anyone tried this on the N9? Could it easily be ported? |
Re: [Announce] smssend: send sms from the command line (CLI)
Whenever i try to send message using the option
smssend -c -n +xxyyyyyyyyyy -m "check" i get the following error send arguments to dbus_connection_add_filter() were incorrect, assertion "connection != NULL" failed in file dbus-connection.c line 5257 |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Have you tried after a reboot? It seems this error comes from the eventlogger. This is what the app is doing. First creating an event with the sms and than simply calling qtmobility routine. The eventlogger uses dbus. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Smssend version is 0.1.8 |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
|
Re: [Announce] smssend: send sms from the command line (CLI)
raviepic3, I'm using the version 0.1.10 of smssend and the last community SSU. I don't have any issue with this version, available in the official repositories...
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Can you please post your repository configurations here ? I will configure mine accordingly I also wanted to install "cateroise plus" and one more app forgot its name which acts as a firewall and "call blocker" But when i search for them in my application installer its not available |
Re: [Announce] smssend: send sms from the command line (CLI)
You can see there that the 0.1.10 version is in Extras-devel, like catorise plus and most of the apps you need.
|
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Isn't that risky ? |
Re: [Announce] smssend: send sms from the command line (CLI)
If you are scared, you can install manually your softwares by downloading deb binaries from maemo.org, or you can install them from development repository and then desactivate this repository from your package manager.
If I do have bugs? Yes of course, but not serious (actually), and anyway that's linux! |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
I have N950 on PR1.2 but could not reproduce what is shown here. I could not successful execute at+cmgf=1 neither I could find phone-at command. So smssend for N9 works only with -c and -C option it calls the conversation application with qtmobility. If somebody knows how to get pnatd working or would like to have a copy of my N9 binary reply to this thread please. |
Re: [Announce] smssend: send sms from the command line (CLI)
1 Attachment(s)
So smssend is now running on N9(50). I attach a version without saving to database when not used conversation.
I need to figure out how to save the message. Because it is different compared to maemo. To have the full function (also use without conversation), you need to have interception. How to run: Code:
devel-su |
Re: [Announce] smssend: send sms from the command line (CLI)
FYI, I'm unable to send switch the N950 BB to PDU mode-- most likely because I'm on PR1.3?
Can you post which CMT version you're running? smssend version 0.1.10 for N9(50) copyright(c) 2011 by Paolo Iommarini <sakya_tg@yahoo.it> modified by Halftux Sending SMS: [1/1]. ERR: Failed to send at+cmgf command RM680-21-3_PR_RM680:~# uname -a Linux RM680 2.6.32.54-dfl61-20121301 #1 PREEMPT Mon Apr 2 14:14:32 EEST 2012 armv7l GNU/Linux |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
Quote:
Quote:
I tried the application with PR1.3 + interception and it was working for me. Try to run (maybe /usr/sbin/pnatd can't remember): Code:
devel-su |
Re: [Announce] smssend: send sms from the command line (CLI)
Results in ERROR returns.
I am running in full root with open mode enabled, verified by accli. No big deal, I was specifically looking for PDU mode so I could put my N950 to use, however I can send PDU packets from an iP4, so all is well. |
Re: [Announce] smssend: send sms from the command line (CLI)
Quote:
I try to use smssend on my N9 (PR1.3). Only "-c" with ASCII characters works. Without "-c": "ERR: Failed to send at+cmgf command" (it seems, that something like opensh or interception is needed, but why?) With "-C": "OK: SMS queued to be sent to xxx" but nothing happens With "-c" and "-x file-with-utf8-chars": 8-bit chars interpreted as iso-latin chars. For example "ö" in the file becomes "ö" in the SMS. (locale is set to en_US.UTF-8) Also, with "-c", I still have to press the "send" button. Perhaps this can be avoided by sending an X-Event automatically? TIA for any hints how to get a working smssend with utf-8 characters, Peter |
All times are GMT. The time now is 17:48. |
vBulletin® Version 3.8.8