This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

SIM900A and M95 GPRS Modem interfacing with TM4C1294 launchpad

Other Parts Discussed in Thread: ENERGIA, MAX232

Respected Sir/Mam,

                                      I want to interface SIM900A/M95 with TM4C1294 launchpad for remote monitoring using Energia IDE. plz help me.

thanx

Vaibhav Singh Gaharwar

  • Hello Vaibhav,

    That is great that you want to interface SIM900A with TM4C1294 using Energia. So shouldn't it be a question for Energia if the library is available in Energia Library.

    Regards
    Amit
  • thanx for your kind reply sir...
    i am not too familiar with Energia... can you help me regarding this?. i know UART is used for this but how to start?. How can i identified pin for UART and how to send AT commands?

    Thanx

    Vaibhav Singh Gaharwar
  • Hello Vaibhav,

    If you are not familiar with Energia then why use it?

    I would suggest getting familiar with the TM4C1294 LaunchPad UART by using the UART examples in TivaWare and understanding how to send/receive UART message with a PC. Then use the base to interface to the SIM900A.

    Regards
    Amit
  • Respected Sir,
    I think Energia is more simple then TivaWare. Sir I said i am not too familiar (It means i know very basic things of Energia ). If you share UART examples Video/pdf etc then it will be helpful to me.

    thanx

    Vaibhav Singh Gaharwar
  • Hello Vaibhav,

    I will suggest Arduino site for reference code, that can be used on top of serial for Energia. Suggested Reading.

    http://www.cooking-hacks.com/documentation/tutorials/arduino-gprs-gsm-quadband-sim900

    Regards
    Amit
  • Respected Sir,
    how can i interface M95 GPRS modem with TM4C1294XL. i want to use serial comm. for interfacing. Will MAX232 is used between M95 and TM4C1294XL?? how can i connect them for proper communication?
  • If the signal levels are compatible, there is no need for MAX232 or other level shifters. As to how you can connect them - respecting the detail level you've established in your posts - just plug connector wires (or solder) from the M95 pins to the TM4C1294XL pins, configure the TM4C UART module properly and fire away some commands! There, done.
  • thanx for reply Veikko Sir,

    here i am sending my Energia code plz tell me why i am not able to make perfect communication.

    void setup() {
    // initialize both serial ports:
    Serial.begin(9600);
    Serial7.begin(9600);
    }

    void loop() {

    Serial.println("Responce of AT");
    Serial7.println("AT");
    delay(1000);
    Serial.println(Serial7.read());


    Serial.println("Responce of AT+IPR=9600");
    Serial7.println("AT+IPR=9600");
    delay(1000);
    Serial.write(Serial.println(Serial7.read()));



    Serial.println("Responce of ATV0");
    Serial7.println("ATV0");
    delay(1000);
    Serial.write(Serial.println(Serial7.read()));
    }


    i am also attaching my serial window response for troubleshooting

    Responce of AT
    -1
    Responce of AT+IPR=9600
    -1
    Responce of ATV0
    -1
    Responce of AT
    -1
    Responce of AT+IPR=9600
    -1
    Responce of ATV0
    -1
    Responce of AT
    -1
    Responce of AT+IPR=9600
    -1
    Responce of ATV0
    -1
    Responce of AT
    -1
  • Dear Vaibhav,

    I'll be blunt. I would need to be a psychic to debug your problem with the amount of information you have provided. Psychic skills are unfortunately above my paygrade.

    Your problem very probably isn't (at this point, anyway) in code - it is very likely to be something more profound. You need to establish a good understanding of how the communication is supposed to work (without involving any physical components! just get the idea clear in your head) - and once you have that, then start testing the functionalities of the required components (be it a physical component or a software component) one by one, establishing a "trust" in each one before you try to connect them together. What you seem to have now is a hairball of vagueness (yes, I just made that up) that's not doing what you so much want it to.

    In other words, I strongly suggest going through some beginner tutorials around the subject - perhaps even attending a beginner embedded systems course. Targeting for perfect anything right from the start is not the way to go.

  • thanx for your reply sir,
    if i have such type of options and time(beginner tutorials,beginner embedded systems course etc.) then why i come here??? few months ago i successfully interface SIM900A with Arduino for SMS task but this launchpad and M95 GPRS modem cant be interfaced by me and i dont know why this happen?? anyway i will try to establish a good understanding of how the communication is supposed to work.
  • OK, so you run out of time and expect us here to do your work for you, for free. No thanks.
  • if u can solve my problem(100%) then please tell me your charge and how can i pay. if my pocket allow me then i will pay sir.
  • This forum is not for paid requests / job brokering as far as I understand. Besides, you missed my point. Your request was pretty much "I have these two devices that I want to interface, please give me a ready-made solution to achieve that". IMO that falls way outside the scope of this forum - at least personally I don't want such content here. Not that I have any say over the issue.

    Now, if for example you would've been able to test the communication from the TM4C UART to a PC serial port, and from a PC serial port to your modem, and then realized that you need to configure the TM4C UART somewhat differently than the Energia library does and asked for details how to do that, then I think it would've been very much appropriate on this forum.

    Since your original post you've added detail such as having successfully done it with an Arduino - but still a LOT of necessary detail is missing. And in an ideal case, all of it should be there in the very first message.
  • which type of detail is missing??
  • thanx for your advice!!! i am very disappointed with your reply, perhaps i am in wrong place for my technical questions. i think everybody who use this forum ask technical questions only (including me) there is no space for other non tech things..anyway thanx for your support and "ADVICE"