wavecom modem stk every function work perfectly for first time, not others time. using AT command & C#





.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ height:90px;width:728px;box-sizing:border-box;
}







2















AT+STGR=3,19000
>
OK
+STIN: 99


I am working with wavecom modem,that is working fine for every option at first time. but after first time it always return +STIN 99. That means session time out. I can not understand where is the wrong. modem or serialport connection. I used port.BaudRate = 115200.I am using C# and AT commands.Please help me. Thanks.










share|improve this question























  • Is your code sending a return at the end of the command?

    – jdweng
    Nov 26 '18 at 14:27











  • +STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

    – Md.Rohol Amin
    Nov 26 '18 at 14:29













  • You need to add a 'n' at end of each command you send or use WriteLine().

    – jdweng
    Nov 26 '18 at 14:34











  • – jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

    – Md.Rohol Amin
    Nov 26 '18 at 16:09













  • Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

    – jdweng
    Nov 26 '18 at 17:31


















2















AT+STGR=3,19000
>
OK
+STIN: 99


I am working with wavecom modem,that is working fine for every option at first time. but after first time it always return +STIN 99. That means session time out. I can not understand where is the wrong. modem or serialport connection. I used port.BaudRate = 115200.I am using C# and AT commands.Please help me. Thanks.










share|improve this question























  • Is your code sending a return at the end of the command?

    – jdweng
    Nov 26 '18 at 14:27











  • +STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

    – Md.Rohol Amin
    Nov 26 '18 at 14:29













  • You need to add a 'n' at end of each command you send or use WriteLine().

    – jdweng
    Nov 26 '18 at 14:34











  • – jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

    – Md.Rohol Amin
    Nov 26 '18 at 16:09













  • Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

    – jdweng
    Nov 26 '18 at 17:31














2












2








2








AT+STGR=3,19000
>
OK
+STIN: 99


I am working with wavecom modem,that is working fine for every option at first time. but after first time it always return +STIN 99. That means session time out. I can not understand where is the wrong. modem or serialport connection. I used port.BaudRate = 115200.I am using C# and AT commands.Please help me. Thanks.










share|improve this question














AT+STGR=3,19000
>
OK
+STIN: 99


I am working with wavecom modem,that is working fine for every option at first time. but after first time it always return +STIN 99. That means session time out. I can not understand where is the wrong. modem or serialport connection. I used port.BaudRate = 115200.I am using C# and AT commands.Please help me. Thanks.







c# modem






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 26 '18 at 13:33









Md.Rohol AminMd.Rohol Amin

112




112













  • Is your code sending a return at the end of the command?

    – jdweng
    Nov 26 '18 at 14:27











  • +STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

    – Md.Rohol Amin
    Nov 26 '18 at 14:29













  • You need to add a 'n' at end of each command you send or use WriteLine().

    – jdweng
    Nov 26 '18 at 14:34











  • – jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

    – Md.Rohol Amin
    Nov 26 '18 at 16:09













  • Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

    – jdweng
    Nov 26 '18 at 17:31



















  • Is your code sending a return at the end of the command?

    – jdweng
    Nov 26 '18 at 14:27











  • +STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

    – Md.Rohol Amin
    Nov 26 '18 at 14:29













  • You need to add a 'n' at end of each command you send or use WriteLine().

    – jdweng
    Nov 26 '18 at 14:34











  • – jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

    – Md.Rohol Amin
    Nov 26 '18 at 16:09













  • Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

    – jdweng
    Nov 26 '18 at 17:31

















Is your code sending a return at the end of the command?

– jdweng
Nov 26 '18 at 14:27





Is your code sending a return at the end of the command?

– jdweng
Nov 26 '18 at 14:27













+STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

– Md.Rohol Amin
Nov 26 '18 at 14:29







+STIN: 9 +STGI: "sending SMS" OK +STIN: 99 it is return for first time. that is i want. but others time return only +STIN 99 . thanks for your response.

– Md.Rohol Amin
Nov 26 '18 at 14:29















You need to add a 'n' at end of each command you send or use WriteLine().

– jdweng
Nov 26 '18 at 14:34





You need to add a 'n' at end of each command you send or use WriteLine().

– jdweng
Nov 26 '18 at 14:34













– jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

– Md.Rohol Amin
Nov 26 '18 at 16:09







– jdweng, I am using port.WriteLine();. But I don't understand why its work at first time and not others time. If any problem is occurred then why not first time. has any thing on serial port.

– Md.Rohol Amin
Nov 26 '18 at 16:09















Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

– jdweng
Nov 26 '18 at 17:31





Make sure the serial port settings have handshaking turned off (both software and hardware), 8 bit, and No Parity. Writeline sends both 0x0D (return) and 0x0A (linefeed). The linefeed is ignored that is why you display is showing the OK on a separate line. Do you know why the 2nd command is missing "AT"? You need AT if the if you are putting commands on Separate Lines. You can only leave the AT out if the commands are on the same line (no return).

– jdweng
Nov 26 '18 at 17:31












0






active

oldest

votes












Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53482256%2fwavecom-modem-stk-every-function-work-perfectly-for-first-time-not-others-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53482256%2fwavecom-modem-stk-every-function-work-perfectly-for-first-time-not-others-time%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

To store a contact into the json file from server.js file using a class in NodeJS

Redirect URL with Chrome Remote Debugging Android Devices

Dieringhausen