caramoan tour package

caramoan tour package

Author Topic: Arduino and GSM Module SIM900D serial communication  (Read 813 times)

Offline gumimo

  • CR2032 Battery
  • **
  • Posts: 35
  • Pogi/Ganda Points: 0
Arduino and GSM Module SIM900D serial communication
« on: December 19, 2011, 01:41:11 PM »
 ??? pa help naman po yung codes ng Arduino para ma read ang messages na nasa GSM module. Gusto po namin i monitor yung mga narereceive na characters via the serial monitor of Arduino software. any solutions or suggestions po please. kelangan po namin mapagana 2 before the year ends. salamat po admins  :-*

Philippine Electronics Forum

Arduino and GSM Module SIM900D serial communication
« on: December 19, 2011, 01:41:11 PM »

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4162
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: Arduino and GSM Module SIM900D serial communication
« Reply #1 on: December 19, 2011, 02:01:43 PM »
ano alam nyo sa arduino? Blinking LED? Reading UART(serial) using hyperterminal?

sa sim900? have you read the manual? do you understand AT Commands?
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Philippine Electronics Forum

Re: Arduino and GSM Module SIM900D serial communication
« Reply #1 on: December 19, 2011, 02:01:43 PM »

Offline gumimo

  • CR2032 Battery
  • **
  • Posts: 35
  • Pogi/Ganda Points: 0
Re: Arduino and GSM Module SIM900D serial communication
« Reply #2 on: December 19, 2011, 02:17:38 PM »
di rin po ako makapagtest sa hyperterminal kasi windows7 gamit ko. kelangan lang po i place ang codes na to sa arduino:

AT+CMGL="ALL"
AT+CMGR=1

tapos gusto ko pong basahin ung messages sa serial monitor. ganito po ba?

#include <SoftwareSerial.h>

int rxPin = 0;
int txPin = 1;

// set up a new serial port
SoftwareSerial serial=SoftwareSerial(rxPin,txPin);

void setup()  {
  pinMode(rxPin, INPUT);
  pinMode(txPin, OUTPUT);

  // set the data rate for the SoftwareSerial port
  serial.begin(19200);

  // Set SMS to text mode. Note it is critical
  // to use \r\n to end each line
  // The delays are also critical, without them,
  // you may lose some of the
  // characters of your message

  serial.print("AT\r\n");
  delay(10000);
  serial.print("AT+CMGF=1\r\n");
  delay(10000);
  serial.print("AT+CMGR=1");
  delay(10000);

  // End the SMS with a control-z
  serial.print(0x1A,BYTE);
 
  char val = serial.read(); // get characters
  serial.println(val); //display characters
 
}

void loop() {
}


Philippine Electronics Forum

Re: Arduino and GSM Module SIM900D serial communication
« Reply #2 on: December 19, 2011, 02:17:38 PM »

Offline RagnaroksSun

  • Size C Battery
  • *****
  • Posts: 186
  • Pogi/Ganda Points: 4
Re: Arduino and GSM Module SIM900D serial communication
« Reply #3 on: December 28, 2011, 10:22:20 AM »
nasubukan mo na po ba tong code mo sir?

Philippine Electronics Forum

Re: Arduino and GSM Module SIM900D serial communication
« Reply #3 on: December 28, 2011, 10:22:20 AM »

Offline dummy_c

  • Diesel Generator
  • *
  • Posts: 1588
  • Pogi/Ganda Points: 162
  • Gender: Male
  • If I die 2nyt, 8's bcoz maimai is not at my side!
Re: Arduino and GSM Module SIM900D serial communication
« Reply #4 on: December 28, 2011, 11:11:27 AM »
di rin po ako makapagtest sa hyperterminal kasi windows7 gamit ko.

Pwedi mo magamit ang hyperterminal using windows 7. Copy mo lang yung "hypertrm.dll" at "hypertrm.exe" galing sa PC with XP OS at ilagay mo sa isang folder. Of course meron dn mga 3rd party serial terminal like yung ka master gigz ba yun sa phil robotics.
The world's technology is always changing, no doubt about it, and I hope it’s a while yet before it impacts my ability to tinker.

Philippine Electronics Forum

Re: Arduino and GSM Module SIM900D serial communication
« Reply #4 on: December 28, 2011, 11:11:27 AM »

Offline RagnaroksSun

  • Size C Battery
  • *****
  • Posts: 186
  • Pogi/Ganda Points: 4
Re: Arduino and GSM Module SIM900D serial communication
« Reply #5 on: January 04, 2012, 11:30:58 PM »
sinubukan ko code mo sir, hindi nia nababsa ung message instead na pri2nt lang sa serial monitor ung:

AT+CMGF=1
at
AT+CMGR=1

Offline RagnaroksSun

  • Size C Battery
  • *****
  • Posts: 186
  • Pogi/Ganda Points: 4
Re: Arduino and GSM Module SIM900D serial communication
« Reply #6 on: January 06, 2012, 01:41:40 PM »
sir glut! pde pong magpatulong?? dian po sa posted codes above.. anu po sa tingn nio ang mali? cnubukan ko po kasi xa pero un ang nalabas.. help naman po...

Offline glutnix_neo

  • Technical People
  • Nuclear Reactor
  • *****
  • Posts: 4162
  • Pogi/Ganda Points: 166
  • Gender: Female
  • A journey to a thousand lines begins w/ LED Blink
    • Underground Workbench
Re: Arduino and GSM Module SIM900D serial communication
« Reply #7 on: January 06, 2012, 05:55:25 PM »
arduino basics....

http://arduino.cc/en/Reference/Setup
void setup()
{
  /* Will Run Once */
  /* used for initialization */
}

http://arduino.cc/en/Reference/Loop
void loop()
{
  /* continuously run the loop */
}

http://arduino.cc/en/Serial/Read
Serial.read() // returns the the first byte of incoming serial
If we hear,we forget;if we see, we remember;if we do,we understand.
Let's support the use of free and open source softwares...
http://UndergroundWorkbench.wordpress.com

Philippine Electronics Forum

Re: Arduino and GSM Module SIM900D serial communication
« Reply #7 on: January 06, 2012, 05:55:25 PM »

 

Privacy Policy

Contact Us: elabph@yahoo.com