Unable to receive response from SIM900

I am trying to communicate to SIM900 with PIC18F2520. I am able to send AT commands using UART but I also want to receive its response like OK or ERROR.

Following is the code for RX interrupt

#pragma code rx_interrupt = 0x8 void rx_int(void) {   _asm goto rx_handler _endasm } #pragma code #pragma interrupt rx_handler void rx_handler(void) {   while (!DataRdyUSART());   //if data is ready to receive   for(k=0;k<=20;k++)   {      Rx[k] = getcUSART();    //read a byte from UART    }   UARTSend("We have read everything");   //I have a put a breakpoint here   if(strstr(Rx,"OK") != NULL)   {     UARTSend("OK received"\n);   }     PIR1bits.RCIF = 0;   //Clear the interrupt flag   } 

Above is the code I am using for receiving data from SIM900. In the debug mode, I send UARTSend("AT\r");. I have a put a breakpoint at UARTSend("We have read everything");. At this line, I check for the Rx buffer in variable but it doesnt have OK instead it has few random chars while on the terminal I am getting proper response.

Unable to receive response from SIM900

So how to read response from SIM900. The approach I am using it correct or not.Please help.


Category: pic Time: 2016-07-30 Views: 0
Tags: pic sim900

Related post

  • Unable to receive emails from Ubuntu postfix mail server 2012-08-29

    I am unable to receive emails on an Ubuntu 11.04 server running postfix with the Plesk control panel. I can't see the mails even on webmail. I am able to send emails and am not getting any error messages on the email client when I try to receive. Her

  • How to Handle JsonSyntaxException when Receiving Response from GAE 2016-01-28

    I am trying to replicate the Google App Engine Servlets module here using Retrofit instead of AsyncTask. I find it odd, but apparently Retrofit 2.0 does not support connections to Google App Engine, as stated here in the issues of the GitHub reposito

  • Unable to receive data from /dev/ttyACM0 device 2013-06-29

    Using USB based CAN device connected on AR9350 mips processor based Atheros reference board with linux kernel Which is coming up as /dev/ttyACM0 device. In which Able to transmit data from application to the H/W device, but not able to rec

  • unable to receive email from postfix/ISPconfig with Microcrap Outlook 2007 2014-10-09

    I've loaded ubuntu 7.10 server and ISPconfig following the howto at http://www.howtoforge.com/perfect_server_ubuntu7.10 primarily to play around with it and to self educate. Everything seemed to be working fine. I can use squirrelmail to send email o

  • Unable to receive emails from rediffmail? 2016-01-07

    All I have Exim server setup on a dedicated server. All service is working well but I can't receive mails from Rediffmail to my domain. Please reply with the positive answer !! Thanks

  • httpurlconnection not receiving response from server 2016-01-27

    In my project I am using HttpURLConnection for post data. The data is posted successfully, but I'm not receiving server response. Here is my code: try { // httpurlconnection post data PrintWriter out = new PrintWriter(conn.getOutputStream()); out.pri

  • Postfix - Unable to receive emails from certain domains 2011-02-10

    Got a Postfix-Dovecot-Saslauthd setup on Ubuntu 10.04. Problem is there's (at least) one domain that it refuses to accept emails from. I've been getting emails fine from lots of different domains except one. It's really weird, but could some config f

  • My server doesn't receive responses from pings 2012-02-13

    if I SSH into my server, and I try to ping another server, I never see the responses. This seems to happen only on urls. I've been able to ping a couple ip addresses. I first noticed this problem when my PHP cURL requests were failing; I was seeing t

  • postfix unable to receive email from external domains 2013-04-21

    I followed this howto by falko - http://www.howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-12.04-lts It is almost entirely working. I can send/receive email locally and can send to external networks, but I

  • Bad Encoding when receiving response from HttpClient in UWP 2016-01-27

    I am making uwp(Universal Windows Platform) application and want to deserialize this xml: http://radioa24.info/ramowka.php to object, but I got instead for scpecial characters as ł, ó some strange letters and special ones like: \n and \r: "Ä-"=&

  • Bind apparently receives responses from queries but then does nothing with them 2011-03-02

    Basically, I'm attempting to set up a DNS server that points to two other internal DNS servers. Internal DNS servers: // My box: .. name is kerrigan.zipp I've got bind configured and clients can hit internal addre

  • Exchange 2013 unable to receive mail from internet and internally after installing Hyper-V on Windows Server 2012 2015-03-31

    After checking on https://testconnectivity.microsoft.com/ i am getting the error The server returned status code 451 - Error in processing. The server response was: 4.7.0 Temporary server error. Please try again later. PRX2 and I've tested everything

  • How can I Change Button settext when I receive response from reciever method? 2016-02-06

    I have an application for sms auto read. For that I created Broadcast reciever class public class IncomingSms extends BroadcastReceiver { @Override public void onReceive(Context context, Intent intent) { Global mApplication = ((Global)context.getAppl

  • Google apps : Unable to receive emails after changing hosting from godaddy to phpfog 2011-12-14

    I have configured my email in google apps and it was working fine till I changed my hosting from Godaddy to phpfog. I have created a new wordpress site there and added an 'A' record for my root domain to the ip addresses specified by phpfog. Now I am

  • Not receiving responses sent from a different subnet when my machine is on DHCP 2012-12-17

    I am building a utility to communicate with some hardware that comes with a default IP address of and subnet mask The hardware replies to UDP messages on the same IP and port they originated from (not the port received on). I

  • unable to receive responce of query inserted by the form data in Phonegap 2016-02-11

    I have tried to replicate one of the programmers code in Phonegap. aim of this project is to send form data to mysql database which is in remote. I have succeeded to post form data to mysql server, but unable to receive response of query upon sucess

  • Error Code: 503 Unable to receive emails 2011-09-02

    I am running an emailing system using which I am able to send email. Of course my emails are directly moving to user's spam bin. Strange that I am unable to receive emails from any other domains. I tool SMTP test and found the below error. 503 This m

  • Spamsnake - Unable to received mail - Able to send mail 2012-12-29

    Good morning, Please help!!! I tried to setup a spamsnake to filter all incoming mails before relaying to our Exchange server which are located behind a firewall. The Spamsnake is located in a DMZ subnet and my Exchange is located in other subnet. Ho

  • Receive signal from transmitter with PIC 2013-02-11

    I have been trying to build a simple wireless setup using the parts enumerated in this post, except I am using a 16f88 pic. Like the poster in the forum I am able to send things from the PIC to the arduino, but unfortunately like the poster I am unab

iOS development

Android development

Python development

JAVA development

Development language

PHP development

Ruby development


Front-end development


development tools

Open Platform

Javascript development

.NET development

cloud computing


Copyright (C) avrocks.com, All Rights Reserved.

processed in 1.223 (s). 13 q(s)