Deepu1994
Newbie level 3
- Joined
- Aug 17, 2012
- Messages
- 4
- Helped
- 0
- Reputation
- 0
- Reaction score
- 0
- Trophy points
- 1,281
- Location
- India(TamilNadu)
- Activity points
- 1,317
Hi Bro's nd Sis's >>>
Im a newbiee>>>>
Sorry to post this topic.. but none of the threads meet my requirements and solved my problems:?:
Here is my problem>>>
I have an local gsm sim 300 module with max 232 ic and serial port and some kind of lan port ......
i found rx1 and tx1 (but dont know exactly the use of it) and used as the rx and tx for my microcontroller board when i execute a test program that to print all the thing that my gsm wants to say like +SIND: 1 ,....blah... blah,.....
but my serial monitor says something of some un understandable characters such as "dþdþ&þdÿdÿdþ<ñääääääääääääpþääääääääpþ<ñÿ"
Here r my photos View attachment New Bitmap Image (2).bmp and my code is
....Pls help me to get the correct ascii values pls...pls... thanks for those kindhearted replies in advance:-?:razz::shock::shock::shock::shock:
Im a newbiee>>>>
Sorry to post this topic.. but none of the threads meet my requirements and solved my problems:?:
Here is my problem>>>
I have an local gsm sim 300 module with max 232 ic and serial port and some kind of lan port ......
i found rx1 and tx1 (but dont know exactly the use of it) and used as the rx and tx for my microcontroller board when i execute a test program that to print all the thing that my gsm wants to say like +SIND: 1 ,....blah... blah,.....
but my serial monitor says something of some un understandable characters such as "dþdþ&þdÿdÿdþ<ñääääääääääääpþääääääääpþ<ñÿ"
Here r my photos View attachment New Bitmap Image (2).bmp and my code is
Code:
#include <SoftwareSerial.h> //Include the NewSoftSerial library to send serial commands to the cellular module.
#include <string.h> //Used for string manipulations
char incoming_char=0; //Will hold the incoming character from the Serial Port.
SoftwareSerial cell(2,3); //Create a 'fake' serial port. Pin 2 is the Rx pin, pin 3 is the Tx pin.
void setup()
{
//Initialize serial ports for communication.
Serial.begin(9600);
cell.begin(9600);
Serial.println("Starting SM5100B Communication...");
}
void loop()
{
//If a character comes in from the cellular module...
if(cell.available()>0)
{
incoming_char=cell.read(); //Get the character from the cellular serial port.
Serial.print(incoming_char); //Print the incoming character to the terminal.
}
//If a character is coming from the terminal to the Arduino...
if(Serial.available()>0)
{
incoming_char=Serial.read(); //Get the character coming from the terminal
cell.print(incoming_char); //Send the character to the cellular module.
}
}
Last edited: