GPRS SHIELD V3.0 TEST SERVER

hi

how do I listen incoming tcp data from seeedstudio gprs shield v3.0 with arduino mega2560 ? For example arduino gprs shield’s have GSMClient client = server.available() command but I couldn’t find for seeedstudio gprs shield v3.0.

arduino test server****
void loop() {
GSMClient client = server.available();

if (client) {
if (client.available()) {
Serial.write(client.read());
}
}

}

seeedstudio test server****
void loop() {
???

if (client) {
if (client.available()) {
Serial.write(client.read());
}
}

}

Hello,

Can you please refer the following wiki page which has more resources in it.

Please let us know if this does not help you.

Thanks and Regards

Hello,

Thank you for reply but I didnt help me because all sketch on wiki or other source were focus on client, not a server.

Thanks and Regards

Hello,

There is a server testing example in the following link.The server in this example is mbed.org.For your product change the baudrate as 19200.

Thanks and Regards

Hello,

Thank you for reply but this example is gprs client example.I want to use gprs shield listen mode. For example, you want to send a command string via tcp to gprs shield, gprs shield have to catch it and arduino mega interpret this string.

Thanks and Regards

In my monitor show me “init error”, I’m using a V2.0 Should be work ?

Hi pinkic81,

1.Please check if your baud rate is 19200
2.Have you set the serial port (7,8) select properly in the board.

Thanks and Regards