Send SMS with GSM Modems (D-Link DWM-156)

Hi
I am developing an application for GSM Modems (D-Link DWM-156) in C#.Net using AT commands. I have a problem sending English SMS. I try to send "hello", But I receive
"e2□y" in my phone or ...exept hello!
when I send "h"(one character) ,I receive correctly in my phone. but when 2 or more character for example "hello", ,I don't receive correctly in my phone.
serialPort1.DataBits = 8;
serialPort1.Parity = Parity.None;
serialPort1.StopBits = StopBits.One;
serialPort1.BaudRate = 9600;
serialPort1.PortName = comport;
serialPort1.DtrEnable = true;
serialPort1.RtsEnable = true;
serialPort1.Encoding = Encoding.GetEncoding("iso-8859-1");
serialPort1.Open();
serialPort1.DiscardInBuffer();
serialPort1.DiscardOutBuffer();
serialPort1.Write("AT\n");
serialPort1.Write("AT+CMGF=1\n");
serialPort1.Write("AT+CSCS=\"PCCP437\"\n");
serialPort1.Write("AT+CMGS=\"09390150369\"\n");
serialPort1.Write("hello" + "\x1A")
I  replace \n with \r.but it doesn't do correct too.

This is likely because your C# strings are unicode (wide). Use one-byte strings.
-- pa

Similar Messages

  • How to send sms from gsm modem(AT commands) to j2me application(not inbox)

    hi
    i want to send sms from gsm modem to a j2me application, for this to happen i have to send sms to a specific port in which j2me application is running.when i m trying to send sms from modem it doesnt go to application it goes to inbox.
    is it related to udh settings if yes then how do i set port no in settings?if no what are the other ways.

    Hi Vignesh,
    Might be you can call ActiveX or DLL objects of the software installed for modem from LabVIEW, if it is unblocked.
    Have a  look on the link > http://zone.ni.com/devzone/cda/tut/p/id/2983
    CLA 2014
    CCVID 2014

  • Iphone 5 from SPRINT cannot send SMS with GSM Sim outside US

    Hi admin support Apple
    I have purchased Iphone 5 Sprint U.S..Before Vietnam has conducted open network and is used normally.after Vietnam I put sim Viettel normal user functions (Voice, SMS, 3G, IMessage, FaceTime by Apple ID). But after reset to manufacturer's default is still used.but do not send SMS with GSM in Vietnam
    I tried doing the following steps:
    Reset Content and All Setting.
    using MMS
    Disable IMessage.
    Changing SMSC number
    But there is not.
    Information on a computer that is running:
    Modem: MD656LL
    Serial Number: DNPJG8NUF8GH
    EMEI: 99 000226 455839 4
    MEID: 99000226455839
    Looking forward to the support from Apple
    Thank you!

    Well yes, you probably will have problems with your phone because a 'contract free' phone is NOT the same as a fully unlocked iPhone.
    This is a user forum, so nobody here can really help you.  As Sprint is your carrier in the US, then you need to contact them first.  They are the only ones who can help you.

  • How to send SMS using GSM modem?

    Hi everyone.
    I'm trying to send SMS through GSM Model connected to my PC using java Program.
    I've downloaded the javax.comm jar file.
    But they've specified that there is no such jar file for Windows OS. Also they've told to use the RXTX.org site to get the windows specific jar file.
    But i dont know how to do it.
    Can anyone help me with this issue?
    Thanks in advance..

    Also they've told to use the RXTX.org site to get the windows specific jar file.
    But i dont know how to do it.You don't know how to use the rxtx.org site?
    Is that a networking question? A Java networking question?

  • Send SMS through GSM modem

    Hello,
    We have a requirement of sending SMS after PGI . Could anybody please help me on how to use GSM Modem to send SMS through SAP?

    Hey, I can give you another tip. I am using a very reliable integration program. Its name is Ozeki NG SMS Gateway. I hope they dont cut my tip out, because this software is very useful and stable. You are also able to add this message sending function to different clients for example HP Openview or Sharepoint etc.
    Sorry again, I did not intend to advertise or something like that.
    http://www.sms-integration.com/
    Have a nice day
    Jozef

  • Macbook cannot detect D-Link DWM-156(A7) USB modem after upgrading to OS X Yosemite ver 10.10

    Hi
    My MacBook Pro 13" is unable to detect D-Link DWM-156(A7) USB modem once I open the D-Link Connection Manager app (to connect to the internet) even though the USB is plugged in.
    The MacBook is able to detect the USB at first, but once after I open the D-Link Connection Manger, it can no longer detect the USB Modem and a notification which says "No USB Modem Connected" pops up.
    This problem only surfaced after I upgraded the Macbook to OS X Yosemite ver 10.10. I tried to solve the problem by restarting the Mac but the same problem still arise.
    What do i do?
    Thanks in advance.
    Regards

    I figured it out!
    I had the same problem with the dongle sent to me by Telkom South Africa.
    Mine was D-Link Model: DWM-157. Here's how I fixed it.
    I basically flashed or updated the firmware on the dongle to the latest one I got from the D-Link website.
    1. You need access to a PC (Windows computer).
    2. Go to: http://www.dlink.com/uk/en/support/product/dwm-157-3g-hspa-plus-usb-adapter
    3. Scroll down and download firmware version 4.5.4.7
    4. Once download is complete, move over to your windows PC. Plug in the D-Link USB dongle.
    5. Run the firmware update on the Windows PC while the USB Dongle is plugged, Follow the prompts, it takes a little while, sometimes it seems like it is stuck but be patient. Once its done it will ask you to press any key to continue.
    6. After the install, pull out the dongle and plug it back in, sometimes the device installation prompt will appear. If so, rerun the device installation again. Wait for all the drivers to install. If not open d-link connection manager on your windows PC and test if it is able to make a connection to the internet. If the test was successful go to #7 below.
    7. Go to your Mac. Uninstall the current D-Link connection manager your have.
    8. Plug the USB Dongle back, the installation prompt will pop up again.
    9. Go through the installation steps and a prompt will pop up asking you to restart, restart your machine.
    10. Run D-Link connection manager and you can now get to the connection screen. Wait a while for network to be found.
    11. Click connect.
    12. Come back here and tell us if this worked for you. It certainly worked for me.

  • Send SMS with REST

    Hi,
    After I get some problems to install and configure OCSG, I think I can now start do develop, but I still have a problem: I've never work with REST neither OCSG, so I have no idea how to:
    1 - deploy an application in OCSG
    2 - the sintax to send SMS
    Imagine that my OCSG is running on http://localhost:7003/
    I've found this sample:
    org.csapi.schema.parlayx.sms.send.v2_2.local.SendSms request = new org.csapi.schema.parlayx.sms.send.v2_2.local.SendSms();
    SimpleReference sr = new SimpleReference();
    sr.setEndpoint(new URI("http://localhost:8111/SmsNotificationService/services/SmsNotification?WSDL"));
    sr.setCorrelator("cor188");
    sr.setInterfaceName("InterfaceName");
    ChargingInformation charging = new ChargingInformation();
    charging.setAmount(new BigDecimal("1.1"));
    charging.setCode("qwerty");
    charging.setCurrency("USD");
    charging.setDescription("some charging info");
    sendInf.setCharging(charging);
    URI[] uri = new URI[1];
    uri[0] = new URI("1234");
    request.setAddresses(uri);
    request.setCharging(charging);
    request.setReceiptRequest(sr);
    request.setMessage("we are testing sms!");
    request.setSenderName(“6001”);
    org.csapi.schema.parlayx.sms.send.v2_2.local.SendSmsResponse response =
    smport.sendSms(request);
    String sendresult = response.getResult();
    System.out.println("result: " + sendresult);
    If I want to send an SMS in REST, without charging, how can I do that? Anyone have some examples of how to send SMS with REST through OCSG? Please, I need help, my deadline is so short...
    Tks
    Raquel

    The iPhone remembers information about previous contacts.
    Complelely independently, you have a Contacts app with a contacts list.  It sounds like your contacts list has 3 names on it.  You need to add a few names.

  • Send sms with AT commands

    Hi to all,
    I want to send concatenated sms in pdu mode ....
    I have to use javax.comm and AT commands...
    Using these I have tested the "AT \r\n" command and i get reply as OK
    So i know this is working...now wen i try to send text sms .....
    String line1="AT+CMGF=1\r\n";
        String line2="AT+CMGS=\""+ dest+"\"\r\n";
        String line3=messageString+"\r\n";
        String line4="\u001A";but i dont get any output......

    Hello to all developers
    This is my first post on tyhis forum
    i hope we will ework well together
    my fist question is very simple
    about the generation of serial port events on the serial port, i'd likwe tyo know why, on the source code i can find on internet, the only event that is captured and managerd is always and only the DATA_AVAILABLE event....
    i'm having some torubles with an application that i realised some time ago, a simple SmsSnder which communicates with a modem gsm by AT commands... i'd like to know if it's possible to realise, from the other event, such as for example BI, Break Interrupt, or other, if there's some kind of problem on the serial port...
    In this case, i would be able to launch an AT command to reset and restart the modem....
    Can you help me?
    Very very thanks
    P.S. : PLEASE HELP ME

  • Re: Send SMS with Siemens TC35i

    Can anyone tell me what java api I should use for sending SMS text messages through a siemens tc35i and if there is any good reference websites with sample code.
    Thanks in Advance

    No problem I can explain if you like:
    1) many messages are sent in hurry - somobody dictates you a number and you think what to send - there's simply no time to enter number in address book
    2) in general I don't like to enter ANY numbers on telephone in address book at all, Nokia has terrible PIM and calendar (and two-way PC sync), so I prefer to enter all data directly on PC in Outlook, and later sync it to Nokia (but not vice versa). That's separate issue, but also deserves to be mentioned here.
    3) there are some service messages with my GSM provider, that have to be sent sometimes - to reset daily limits on incoming web-originated SMS, etc. It would be much easier just to "resend" this message.
    4) sometimes my close people whom I ask something by SMS just forget to do what I'm asking, so it's easy just to resend SMS with same content to the same person, just to remind her/him I'm missing reply or action on their side.
    More ideas? Enough for me....

  • Cannot send SMS with iPhone 5

    Hi I have purchased a iPhone 5 from Hong Kong and I am using it in china. All works well except that I cannot send SMS (still can receive them)... I have contacted the apple support but I have no solution till now. I also asked China Unicom for help but they cannot find the problem... More over the activation of message and FaceTime doesn't : I can use iMessage and FaceTime but on settings the activation doesn't work. Did anyone have similar problem and was anyone able to find the good solution ?

    Hello, I also have the same problem. My iPhone 5 is a from Hong Kong too! My iMessage doesn't work as well as FaceTime also. It keeps saying waiting for activation. I use china unicom too, tried contacting them but they couldn't solve the issue. But it many cases when I change my SIM card or insert mine to another phone , it suddenly activates. This is really frustrating because I can't check my credit balance at all or send urgent messages to people.
    Anyone with a good suggestion?

  • Cannot send sms with 4.01

    a new story with my 3gs and iphone 4
    purchased 2 iphone in france unlock them for 69 euro
    it was working perfectly in china with 3gs china unicom and now with the updated version
    i cannot send sms , can receive them and get my mails
    but not more sending
    help / can you seriously do something
    you guys should test your op before sending an update

    Hello, I also have the same problem. My iPhone 5 is a from Hong Kong too! My iMessage doesn't work as well as FaceTime also. It keeps saying waiting for activation. I use china unicom too, tried contacting them but they couldn't solve the issue. But it many cases when I change my SIM card or insert mine to another phone , it suddenly activates. This is really frustrating because I can't check my credit balance at all or send urgent messages to people.
    Anyone with a good suggestion?

  • Send SMS with ElitePad question

    Hi,
    We are running a communication software on the ElitePad, on other tablets we use a USB dongle to send SMS using its COM port.
    The mobile broadband does not show up as a COM port on the elitePad and we can not use it to send SMS, does anyone know of a workaround to expose a COMport?
    Our software uses AT commands to send SMS, it would be impractical for us to rewrite our software at this point. We would also like to avoid using a USB modem connected to the ElitePad.
    Thanks

    Hello RTdev,
    The ElitePad is a Business model.  Your issue would be best answered on the HP Enterprise Business Community Forum
    Good luck!
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Can,t send sms with nokia 3250

    please help.i am failing to send an sms with my nokia 3250.the problem only started recently but i was able to send sms before.if i send an sms it will say resend at maybe 3 to 4 minutes later. when the time comes it will say unable to send message. i installed sms accelerator but nothing changed. i verified the message center number but i still have the problem.pliz help me.

    Hi,
    Check the "Message validity" for the period that you
    have set for resending messages. If it's short, set
    it to "Maximum time". This will enable the Message
    center to keep resending the mesages.
    I hope this will solve the issue.
    Regards.
    Fattan

  • Sending SMS with Simplewire SDK to a specific port, not working

    Hi,
    I guess most ppls are familiar with the simplewire SDK. I tried sending SMS to a port on my number thru the SimpleWire SDK but I guess it is not delivering the the apt port.
    The reason is quite simple:
    I tired sending to the same port on the same phone thru the java wireless API on the same phone and the midlet picked up the SMS.
    Anytime I send thru the Simplewire SDK, it comes to the phone (though my ringtone never rings, which suggest it may not going to the default port), but my midlet never picks.
    I am suspectign the mode of settin the port may be faulty. Here is my settings
    SMS sms = new SMS();
    sms.setDestPort(port);
    // Where port = (short) 16000

    I don�t know but i use the JAVA ME JSR 120
    import javax.microedition.io.*;
    import javax.microedition.lcdui.*;
    import javax.microedition.midlet.*;
    import javax.wireless.messaging.*;
    public class SmsConnecter // implements MessageListener
         String port = "5001";
         public SmsConnecter()
    public boolean sendSMS(byte data[]) {
         try {
              String destAddress = "sms://4681234567:5001";
              MessageConnection smsConnection =
                   (MessageConnection)Connector.open(destAddress);
              //Create binary message
              BinaryMessage binaryMSG = (BinaryMessage)smsConnection.newMessage(
                   MessageConnection.BINARY_MESSAGE);
              //Setting destination add
              binaryMSG.setAddress(destAddress);
              //Add payload data
              binaryMSG.setPayloadData(data);
              //Now send the message
              smsConnection.send(binaryMSG);
              smsConnection.close();
              return true;
         } catch(Exception e) {
              //System.out.println("e="+e);
             return false;   
    }Ad about port...
    Port number Description
    2805 WAP WTA secure connection-less session service
    2923 WAP WTA secure session service
    2948 WAP Push connectionless session service (client side)
    2949 WAP Push secure connectionless session service (client side)
    5502 Service Card reader
    5503 Internet access configuration reader
    5508 Dynamic Menu Control Protocol
    5511 Message Access Protocol
    5512 Simple Email Notification
    9200 WAP connectionless session service
    9201 WAP session service
    9202 WAP secure connectionless session service
    9203 WAP secure session service
    9207 WAP vCal Secure
    49996 SyncML OTA configuration
    49999 WAP OTA configuration
    //Mickenull

  • I cannot send sms using TC65 modem

    I wrote test program to send sms. When program tryig to open conection(MessageConnection), he catches ConnectionNotFoundException (null):
    String url = "sms://+37256844491";
    MessageConnection mc = (MessageConnection)Connector.open(url);
    Does anybody can help me?

    I need to make communication via sms between phone and modem. It is not good if these sms messages will be stored in memory of a mobile phone or modem. For this i need to recieve and transmit these messages using current sms port, then i'll be able to intercept them and they will not be stored in memory of a mobile phone or modem.
    If modem supports this kind of sms sending - via GPRS connection. Why i cannot use wma classes, which give me the opportunity to send sms using their methods? It is something unreal.
    Maybe problem in configuration of GPRS connection. I know that this configuration is made by "AT^SJNET" command. Example: AT^SJNET="gprs","*99***1#","internet","","",30. These settings are used by "(MessageConnection)connector"
    I configured many others settings at the modem using AT commands, which are need to connect to the Internet via GPRS.
    Maybe i don't know some nuances.
    I tried to connect to the Internet via GPRS connection from my PC and i got this connection. I tried to connect using AT commands and i did not get it.
    If i told something wrong, please correct me.
    Edited by: _denisjuk on Nov 17, 2007 4:18 AM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

Maybe you are looking for