Sending command to a mobile phone blugged into a pc to send an sms

hi.
i am new to this field, but i heard of "at command" that are helpful to control the mobile phone from a pc. And Java supports this...
this is the case:
1- a mobile with a valid sim card is connected via USB with the pc.
2- an application is running at the pc (java application)
on this application we need to add a module/class that sends command "at command" to our connected mobie with 2 parameters:
1- the phone number
2- the message
MyClass.sendViaMobile("+962795940824", "we want to inform you that u got the help :-)");what i need is how to start this, what do i need to know,and what api's i need to use
regards,
bilal
Message was edited by:
bilal_RD

hi mlk
i found the rxtx api, but i got now a question,
how to connect to a usb port?
it seems that it is easy to deal with com port or serial port, but until this moment usb didnt work,
in my case, the mobile is connected via usb port.
this a code that uses the RXTX API, whaere do i need to modify to connect using usb?
*note, the following code is written by someone else, it works via com port...
//     SendMessage.java - Sample application.
//          This application shows you the basic procedure needed for sending
//          an SMS message from your GSM device.
//     Include the necessary package.;c:\classpath\smslib.jar;c:\classpath\comm.jar
package examples;
import org.smslib.*;
class SendMessage
     public static void main(String[] args)
          // Define the CService object. The parameters show the Comm Port used, the Baudrate,
          // the Manufacturer and Model strings. Manufacturer and Model strings define which of
          // the available AT Handlers will be used.
          CService srv = new CService("COM1", 19200, "Nokia", "6630");
          System.out.println();
          System.out.println("SendMessage(): Send a message.");
          System.out.println("  Using " + srv._name + " " + srv._version);
          System.out.println();
          try
               // If the GSM device is PIN protected, enter the PIN here.
               // PIN information will be used only when the GSM device reports that it needs
               // a PIN in order to continue.
               srv.setSimPin("0000");
               // Normally, you would want to set the SMSC number to blank. GSM devices
               // get the SMSC number information from their SIM card.
               srv.setSmscNumber("");
               // OK, let connect and see what happens... Exceptions may be thrown here!
               srv.connect();
               // Lets get info about the GSM device...
               System.out.println("Mobile Device Information: ");
               System.out.println("     Manufacturer  : " + srv.getDeviceInfo().getManufacturer());
               System.out.println("     Model         : " + srv.getDeviceInfo().getModel());
               System.out.println("     Serial No     : " + srv.getDeviceInfo().getSerialNo());
               System.out.println("     IMSI          : " + srv.getDeviceInfo().getImsi());
               System.out.println("     S/W Version   : " + srv.getDeviceInfo().getSwVersion());
               System.out.println("     Battery Level : " + srv.getDeviceInfo().getBatteryLevel() + "%");
               System.out.println("     Signal Level  : " + srv.getDeviceInfo().getSignalLevel() + "%");
               // Lets create a message for dispatch.
               // A message needs the recipient's number and the text. Recipient's number should always
               // be defined in international format.
               IOutgoingMessage msg = new COutgoingMessage("+5550000", "Message from SMSLib for Java.");
               // Set the message encoding.
               // We can use 7bit, 8bit and Unicode. 7bit should be enough for most cases. Unicode
               // is necessary for Far-East countries.
               msg.setMessageEncoding(IMessage.MESSAGE_ENCODING_7BIT);
               // Do we require a Delivery Status Report?
               msg.setStatusReport(true);
               // We can also define the validity period.
               // Validity period is always defined in hours.
               // The following statement sets the validity period to 8 hours.
               msg.setValidityPeriod(8);
               // Do we require a flash SMS? A flash SMS appears immediately on recipient's phone.
               // Sometimes its called a forced SMS. Its kind of rude, so be careful!
               // Keep in mind that flash messages are not supported by all handsets.
               // msg.setFlashSms(true);
               // Some special applications are "listening" for messages on specific ports.
               // The following statements set the Source and Destination port.
               // They should always be used in pairs!!!
               // Source and Destination ports are defined as 16bit ints in the message
               // header.
                msg.setSourcePort(10000);
                msg.setDestinationPort(50000);
               // Ok, finished with the message parameters, now send it!
               // If we have many messages to send, we could also construct a LinkedList with
               // many COutgoingMessage objects and pass it to srv.sendMessage().
               srv.sendMessage(msg);
               // Disconnect - Don't forget to disconnect!
               srv.disconnect();
          catch (Exception e)
               e.printStackTrace();
          System.exit(0);
}

Similar Messages

  • I have an Ipad2 and my daughter has Iphone 4s and I would like to have all SMS and IMessages duplicated on the IPAD2 I was told I could do this by typing in the mobile phone number into the IPAD2 some where in the settings.

    I have an Ipad2 and my daughter has Iphone 4s and I would like to have all SMS and IMessages duplicated on the IPAD2 I was told I could do this by typing in the mobile phone number into the IPAD2 some where in the settings.

    Using FaceTime http://support.apple.com/kb/ht4319
    Troubleshooting FaceTime http://support.apple.com/kb/TS3367
    The Complete Guide to FaceTime + iMessage: Setup, Use, and Troubleshooting
    http://tinyurl.com/a7odey8
    Troubleshooting FaceTime and iMessage activation
    http://support.apple.com/kb/TS4268
    iOS: FaceTime is 'Unable to verify email because it is in use'
    http://support.apple.com/kb/TS3510
    Using FaceTime and iMessage behind a firewall
    http://support.apple.com/kb/HT4245
    iOS: About Messages
    http://support.apple.com/kb/HT3529
    Set up iMessage
    http://www.apple.com/ca/ios/messages/
    iOS 6 and OS X Mountain Lion: Link your phone number and Apple ID for use with FaceTime and iMessage
    http://support.apple.com/kb/HT5538
    How to Set Up & Use iMessage on iPhone, iPad, & iPod touch with iOS
    http://osxdaily.com/2011/10/18/set-up-imessage-on-iphone-ipad-ipod-touch-with-io s-5/
    Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    Troubleshooting iMessage Issues: Some Useful Tips You Should Try
    http://www.igeeksblog.com/troubleshooting-imessage-issues/
    Setting Up Multiple iOS Devices for iMessage and Facetime
    http://macmost.com/setting-up-multiple-ios-devices-for-messages-and-facetime.htm l
    FaceTime and iMessage not accepting Apple ID password
    http://www.ilounge.com/index.php/articles/comments/facetime-and-imessage-not-acc epting-apple-id-password/
    Unable to use FaceTime and iMessage with my apple ID
    https://discussions.apple.com/thread/4649373?tstart=90
    FaceTime, Game Center, Messages: Troubleshooting sign in issues
    http://support.apple.com/kb/TS3970
    How to Block Someone on FaceTime
    http://www.ehow.com/how_10033185_block-someone-facetime.html
    My Facetime Doesn't Ring
    https://discussions.apple.com/message/19087457
    To send messages to non-Apple devices, check out the TextFree app https://itunes.apple.com/us/app/text-free-textfree-sms-real/id399355755?mt=8
    How to Send SMS from iPad
    http://www.iskysoft.com/apple-ipad/send-sms-from-ipad.html
    You can check the status of the FaceTime/iMessage servers at this link.
    http://www.apple.com/support/systemstatus/
     Cheers, Tom

  • How do you add a mobile phone number into iMessages in settings

    How do you enter a mobile phone number into IMessage in Settings on an Ipad?

    Take a look at this.
    iOS and OS X: Link your phone number and Apple ID for use

  • Send a message to mobile phones

    Please help me how to write a program that can really send a message from a computer to a mobile phone (not a mobile simulator). If possible, please show me the mechanism of the system or where resources are.

    For that you'd have to know how to program. Programmers are skilled people, while you obiviously are not.

  • Send report result to mobile phone

    Hi,
    Is it possible to send report result information to a mobile phone via SMS/text?
    Thanks,
    Milind

    For a complete mobile BW scenario check these docs
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d354ab90-0201-0010-5484-8fd287c30066
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/27ed0b95-0501-0010-63bb-dde7b5040910
    hope  it helps
    Andreas

  • Send e-mail from mobile phone

    Hello all!!
    Please, could you tell me if i can send a e-mail message from mobile phone, using JavaME.
    Could I use Java Mail API on my mobile phone?
    Does Java ME support Java Mail API or what can I do to use it?
    If its impossible, how can I send a e-mail message from mob?
    Thanks for reply...

    JavaMail requires TCP and an email server.
    And it requires memory for the class files.
    So whether you can use it on your phone depends on both of the above.

  • Sending e-mails from mobile phone

    I received a Samsung Ace Mobile for Christmas.  My e-mail account was set up by my daughter and I am able to receive and view e-mails.  However, can't send messages.  They sit in outbox.  HELP  before I have a nervous breakdown!

    These are the settings to use, depending on whether you use IMAP (recommended), or POP3.
    Mobile phone settings -
    POP3
    Incoming server    mail.btinternet.com
    Port    995
    Security Type    SSL
    Outgoing SMTP server    mail.btinternet.com
    Security type    SSL
    Port    465
    IMAP recommended
    Incoming IMAP server    mail.btinternet.com
    Security type    SSL
    Port    993
    Outgoing SMTP server    mail.btinternet.com
    Security type    SSL
    Port    465
    There are some useful help pages here, for BT Broadband customers only, on my personal website.
    BT Broadband customers - help with broadband, WiFi, networking, e-mail and phones.

  • Sending Commands to Comp from Phone through Mail Problem

    okay so I want to be able to send commands to my computer from my phone. the best way I found to do this is via mail. so I would say send a email saying "weather Madison Wi" then it would recieve the email and send me the result. Problem is when i run the code it only pauses itunes then does nothing else. idk why. heres my code any help would be appreciated:
    on performmailaction(info)
    -- see if iTunes is playing
    set itunes_playing to false
    tell application "System Events"
    if (get name of every process) does not contain "iTunes" then
    set itunes_playing to false
    else
    tell application "iTunes"
    if player state is playing then set itunes_playing to true
    end tell
    end if
    end tell
    -- pause iTunes if needed
    if itunes_playing is true then tell application "iTunes" to pause
    tell application "Mail"
    set the_messages to |SelectedMessages| of info
    repeat with a_message in the_messages
    set the_sender to extract name from sender of a_message
    set the_subject to extract name from subject of a_message
    set the_content to extract name from content of a_message
    if (junk mail status of a_message) is not true then
    say "Mail from " & the_sender
    if the_sender is "My Name here" then
    if the_content contains "weather" then
    get the second word of the_content
    set s to the result
    get the third word of the_content
    set c to the result
    set temp to get_temp(s, c)
    set theNewMessage to make new outgoing message with properties {subject:"Weather", content:"Current temp is : " & temp & " in " & c & "," & s, visible:true}
    tell theNewMessage
    make new to recipient at end of to recipients with properties {address:"my sms number"}
    send
    end tell
    end if
    else
    set theNewMessage to make new outgoing message with properties {subject:"New Mail", content:"New Mail From: " & the_sender, visible:true}
    tell theNewMessage
    make new to recipient at end of to recipients with properties {address:"[email protected]"}
    send
    end tell
    end if
    end if
    end repeat
    end tell
    -- resume iTunes if it was playing before
    if itunes_playing is true then tell application "iTunes" to play
    end performmailaction
    on get_temp(stat, cit)
    tell application "Safari"
    activate
    set state to stat
    set town to cit
    set URL of document 1 to "http://www.findlocalweather.com/forecast/" & state & "/" & town & ".html"
    set page to text of document 1 as string
    set pos to offset of "Temp:   " in page
    set final_pos to the offset of "°F" in page
    set pos to pos + 8
    set temp to characters pos thru (final_pos - 1) of page as string
    quit
    return temp
    end tell
    end get_temp

    I'm not sure why you think you need to pause iTunes as part of the script, but I'll leave that for now.
    The problem may be that Mail.app cannot send a new message while it's processing a rule via AppleScript. There are numerous discussions about this, both here and elsewhere, so it may well be that there's nothing wrong with your script, it's just how it is. Take a look at this thread for some suggestions.

  • Send vcf files to mobile phone over bluetooth using Automator?

    I've gotten the whole phonebook (187 entries) off a Nokia 6600 and I need to put it into my new Samsung D600. Only the thing won't accept a multi-card cfs file. It only imports the first contact, ignores the rest.
    Now I've exported each of the 187 contacts as a separate cfs file on my Macintosh HD, and I am looking for a way to select all of them and choose Send via Bluetooth..., then select the Samsung D600 and do the job.
    Or do I have to do that with each one of them independently, throught the Send File command up on the Bluetooth menulet? It's tedious. But I opened Automator and didn't see any commands related to Bluetooth.
    Many thanks, as always.

    To the best of my knowledge (and I've done a fair bit of searching...) Samsungs don't live too happily next to Apples. Apparently their implementation of SyncML isn't compatible with the current versions of iSync, iCal, AddressBook and what-have-you. Hence the need to dismantle a perfectly backed up phonebook from a Nokia 6600 into hundreds of individual vcf files and then throw them one by one the Samsung's way. Pity it needs to confirm each and every transfer individually before it proceeds to the next.
    Still, I suppose it's better and faster than typing everything back in.
    I would, however, like to have an Automator action do all that for me. Anyone else?

  • How do I send photo to a mobile phone

    for adobe premiere 10 share    how do I send a photo to someones phone

    barb07
    I offer the following for you and SG to consider:
    Assuming that you do not have Photoshop Elements 10, just Premiere Elements 10 on Windows (presumed 7 or 8 64 bit).
    Where is this photo coming from? A photo that you have imported into Premiere Elements 10 workspace or still (freeze frame) from something you have on the Timeline?
    Either way, if it is generated or imported into Premiere Elements 10, it should be imported into its Elements Organizer automatically also. So, saying...
    Click on the Organizer tab at the top of the Premiere Elements 10 workspace to open the Elements Organizer. If you have not already, set up your email account. To do that, Edit Menu/Sharing and set the EMail Client. It can be Adobe Email Services or Windows Live Mail (possibly other). I have Windows Live Mail and that works for me so that I do that have to go through getting a verification code for the Adobe Email Services choice. Once done, close out of there.
    Next in the Elements Organizer, go to the Share header and select Photo Mail and follow the instructions. At the end of email creation, you should see the email Send Button that will send the photo mail via the Windows Live Mail choice if that was your selection..
    If you have any problems with the Send Button of the email, post with detail. There is a frequently overlooked detail for first use that involves maximizing a file in the Taskbar.
    Please let us know if any of that worked for you. Photoshop Elements should not be a requirement for this. The standalone Premiere Elements 10 and its Elements Organizer should do the task. We can talk about other variations on this if interested.
    Thanks.
    ATR

  • Cannot send a file to mobile phone ????

    I have connected to my phone and browse the device.
    I can get the the files from my phone but cannot send any file to it
    What is the problems???? How can i fix it?
    My phone is W350i
    My mac is 10.4.11
    Thanks you
    Message was edited by: SM0715

    Hi,
    I am sorry to tell you that there is no such functionality. But of course, you could send URLs to the document locations via smartSync.
    Cheers, Stefan

  • Can't receive calls or send calls on i4s updated phone, can't receive calls or send calls on i4s updated phone

    I can send and receive text messages.  I cannot send or receive phone calls on my iphone 4S.  

        Hi rasta_love, I am sorry to hear your having issues with your Droid X not being able to make calls and send text messages. I like to help fix these issues. Did you install any resent device updates on your Droid X? If not, I suggest installing the updates via this link http://tinyurl.com/9lyahgr. If you have installed the device updates, then give a soft reset a try via this link to http://tinyurl.com/9df5cpm. Afterwards, test your device to see if you can make calls and send text messages. Post back the results. If you still have these issues, we can look into some additional options to resolve the issue and/or a valued community member could suggest some options.
    Thanks,
    EdW_VZW
    Follow us on Twitter @VZWSupport

  • Survey through mobile phone

    Hi,
    I want to create a survey through mobile phones..Basically would like to create an application sort , which will send a survey form via sms and also record the response via a sms in a particular server. I have very little experience in java and J2me..and hence it would be great if someone can guide me..as to how I can go about doing this.....
    My requirement would be broadcast the survey form to the mobiles ...
    Basically what would be my basic requirements for this and how can I go about developing the application and also what would be the required harware??
    Looking foward to some help ...
    Thanks,
    Hitesh

    There are two approaches for this
    1. Connect your mobile phone to the server using the wired interface and use the hyperterminal utility to send SMS commands to the mobile
    phone
    2.use an SMS gateway to send your text messages . google it (sms gateway services) and you will be suprised by the number that turn up.
    Cheers

  • New iMac and Bluetooth connection to mobile phone

    Hi,
    I have a brand new iMac 21.5", 3.33 GHz here and I use a Motorola KRZR K1 mobile phone and the emitSMS widget, to send SMS messages.
    But this widget can't detect the Bluetooth connection to the mobile phone.
    I delete the bluetooth preferences, but this does't help.
    On my MacBook with MacOS X 10.6.2 is no problem.
    Anybody an idea, what's the problem?

    Hi again,
    Can it be, that's a problem with the last Airport Client Update?
    On my MacBook is this update not installed and there is no problem.

  • Basic mobile phone features missing

    I miss on my iPhone the following basic features you find almost on many other mobile phones from other manufacturers:
    - ability to send/receive complete contact list or members of my contact list to other phones via SMS or Bluetooth
    - ability to send/receive calendar appointments via Bluetooth or SMS
    - Bluetooth file transfer
    - video recording
    - send notes via SMS or Bluetooth
    - real Bluetooth support when it comes to the communication with an advanced car kit (transfer of the agenda, antenna and battery indicator, permanent contact with the car kit)
    - add new ringtones (not only via iTunes)
    - create ringtones from own music (and not only from the one purchased via iTunes)
    Will we ever see such features on the iPhone? If yes, when?

    I'm pretty sure there's a workaround that allows you to make ringtones from any audio file, (of the right length and format), it's not that longwinded either. Involves using garageband.
    There is also an app that'll do it for you.
    If I remember what it is I'll post back.
    It's [Fission|http://www.rogueamoeba.com/fission>
    Message was edited by: gumsie

Maybe you are looking for

  • Information design tool issues

    Hello All, I have several questions related to IDT... 1. IDT is now showing business layer and data foundation layer in 2 different tabs. 2. I am unable to view associated tables and values. 3. how can i get the defalut view of my IDT universe where

  • Thumbnails in Elements 6 Look Slightly Fuzzy

    I use Elements 6 and have noticed my Organizer thumbnails look slightly fuzzy when veiwed as a thumbnail and even when I double click on a thumbnail it still looks slightly fuzzy or not very sharp in Organizer. When I view my thumbnails in "Windows P

  • Which version should I buy

    I am very new to Photoshop and image editing. I want to edit photos for diy wall art such as adding borders, distressing, etc. Can someone direct me as to which version I should purchase? Thank you in advance!

  • SMS_SITE_VSS_WRITER issue

    Hello Everyone. Last month I had to restore the my Primary standalone SCCM server on a new VM as part of a datacenter migration. I've used the same FQDN and it went quite easy. Configuration: SCCM 2012 R2 CU3 running on Windows 2008 R2 and SQL Server

  • IDoc Acknowledgement with Receiver Party -- Logical System?

    Hello, we have the following scenario: IDoc --> PI --> AS2 (Party/Business Component). Acknowledgements should be sent back to the IDoc sender. However there is the usual error that the sender party cannot be converted to an ALE logical system. I kno