[RELEASE] smsr - Open-Source Command-Line SMS

Discussion in 'iOS Jailbreak & Cydia' started by Cyanidepoison, Jan 15, 2009.

  1. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
  2. gollyzila

    gollyzila New Member

    Joined:
    Jan 1, 2008
    Messages:
    413
    Likes Received:
    1
    Device:
    iPod touch
    May i ask why not use the stock SMS application?
  3. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    Unless there are magical command-line arguments I don't know about, you can't use it to send an SMS over SSH if your iPhone isn't close to you, but your computer is.

    This can also be scripted to send out a batch of messages to a large number of people.

    If you have your iPhone in front of you, it makes sense to use the regular SMS program.
  4. Louren

    Louren New Member

    Joined:
    Mar 30, 2009
    Messages:
    1
    Likes Received:
    0
    Hi,

    Thanks for your command-line program.
    I have one question about it, because it sends really really slow..
    It says 'Message sent', but takes at least 30 minutes to deliver the message. When I send a message using bitesms/normalsms it gets delivered in about 5 seconds..

    Can you tell me how to solve this?
    Thanks!
  5. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    I've never had that problem before.

    It takes the same amount of time for me to use my program as it does to use the MobileSMS program. Are you on a 2G iPhone or a 3G iPhone?
  6. zalzice

    zalzice New Member

    Joined:
    May 14, 2009
    Messages:
    1
    Likes Received:
    0
    Hi,
    I have the same problem, but for me it doesnt send.
    I have 2G.
    Version: 2.1(5F136)
    Firmware: 04.05.04_G.

    Great job by the way! And your link to your app is broken:/
    Thanks

    Please Register or Log in to view images

    )
    ------------------double post merged------------------
    I just "reinstalled" my iphone 2g.
    Now its running 2.2.1
    Version: 2.2.1 (5H11)
    Firmware: 04.05.04_G
    Model: MA712LL

    But it still doesnt work :/ So i guess this program only works v1.X?
  7. Cyanidepoison

    Cyanidepoison Active Member

    Joined:
    Jan 18, 2008
    Messages:
    1,076
    Likes Received:
    2
    I wrote this a long time ago, but it was for 2.x.

    I can't really say I have the time or interest to support it though... The code is there, and you can go into the Developer's section and look in the tutorials. I have a better version posted there.
  8. arunarora

    arunarora New Member

    Joined:
    Jun 1, 2009
    Messages:
    7
    Likes Received:
    0
    Hi,
    I am facing problems in opening /dev/tty.debug in my iPhone Ver 2.2.1.
    open("/dev/tty.debug", O_RDWR | 0x20000 | O_NOCTTY);
    returns -1.

    What could be the problem. I tried this while using debugger and the by simply running from phone as well without debugger. In both cases opening failed.

    Any help..

    Thanks a lot.
    ------------------double post merged------------------
    I just checked the errno status string and it says "PERMISSION DENIED". How to fix it. Any ideas..??
  9. arunarora

    arunarora New Member

    Joined:
    Jun 1, 2009
    Messages:
    7
    Likes Received:
    0
    Hi,
    Please help me out with this. I am compiling smsr code and running into iphone but the application gets killed when I run it on iphone.

    The already compiled application that is included in the download runs fine on the iphone (although sms sending in not working), but the application runs fine.

    But, when I compile the smsr code and run the newly compiled application I get a "Killed".

    So heres the setup.
    I am doing this on MAC itself for iPhoneOS 2.2.1. I run the following commands to compile the application:

    1) /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-gcc -c smsr.c -isystem /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include/gcc/darwin/4.0 -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include -I/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/include/gcc/darwin/4.0

    2) /Developer/Platforms/iPhoneOS.platform/Developer/usr/bin/arm-apple-darwin9-ld -o smsr smsr.o -L/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS2.2.1.sdk/usr/lib -lcrt1.o -lc


    I think I am doing something wrong while compiling the code, but not able to figure out the mistake.

    Thanks a lot.

    PS: The paths included in the commands above are correct.
  10. Ezekeel

    Ezekeel New Member

    Joined:
    Mar 15, 2009
    Messages:
    771
    Likes Received:
    0
    Device:
    iPhone 3GS (Black)
    Did you sign it with ldid?

    Furthermore, I guess the line

    Code:
    write(fd,argv[2],strlen(argv[1]));
    should be

    Code:
    write(fd,argv[2],strlen(argv[[B]2[/B]]));

Share This Page