The code above worked only when i write +++ and it answers OK.
But when I use other AT commands like ATID or ATDB it doesnt answer anything. You can see my code below to see what I have done.
Sending AT Commands Code
import processing.serial.*;
Serial myPort; // The serial portvoid setup() {
println(Serial.list());
myPort = new Serial(this, Serial.list()[0], 9600);
myPort.write("+++");
delay(1000);}
void draw() {
while (myPort.available() > 0){
int inByte = myPort.read();
println(inByte);
myPort.write("ATID");
delay(1000);
}
}
Receiver Code
while(Serial.available() > 0)
{
char inChar = Serial.read();
Serial.write(inChar);
}