Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
2,101 Views

GSM Shield with AT Commands

Hello,

I have a Galileo Gen2 and I just want to connect to internet, to read the content of a page.

I have not found library since GSM.h is not compatible.

I think I could do it with AT Commands.

Someone could help me?

Thank you very much!!!

12 Replies
Highlighted
Employee
4 Views

Re: GSM Shield with AT Commands

Hello ricovi,

In http://www.malinov.com/Home/sergey-s-blog/intelgalileo-addingwifi Intel Galileo Meets Wireless - Malinov Family Web Presence you will find a guide to connect your Galileo to the internet using a PCI-E card.

What exactly do you mean by "...I just want to connect to internet, to read the content of a page"?

You can get the html file of a website with the wget command, I mean I typed :wget www.google.com" in my Galileo and it downloaded a file called index.html and if I read this file I can see all the html code of Google's main website.

Also, what GSM shield are you trying to use, this will help us find more useful information that might help you.

Peter.

Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

Hello Peter,

Thank you very much for your answer!

I mean I only want to read html code. (Sorry for my English)

I am using Arduino GSM SHIELD 2.

Do you have Galileo Gen2?

Thank you for your time, you are very kind.

Ricardo.

0 Kudos
Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

By the way, I use a Movistar Card SIM to connect to Internet.

0 Kudos
Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

I send photo.

Also I have done the following:

Shorts pin 0 to 2 and 1 to 3, to work properly with Galileo.

Am I right?

0 Kudos
Highlighted
Employee
4 Views

Re: GSM Shield with AT Commands

Are you connected to the Internet?

If so, as I said before, you can get the html code of of a web page with the wget command. Is this not working for you? Which website are you trying to get?

Peter.

0 Kudos
Highlighted
Employee
4 Views

Re: GSM Shield with AT Commands

Hi ricovi

Have you been able to read the content of a page? What was the outcome of trying with "wget" has Peter suggested?

Regards;

CMata

Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

Hello, I can't connect to the internet. I don't know how to use the AT Command to connect to the internet.

I have used maaany ways, but I not connect.

This is one way and not working :

void ShowSerialData()

{

while (Serial1.available() != 0)

Serial.write(Serial1.read());

}

void GPRS()

{

Serial1.println("AT+CPIN?");

delay(1000);

ShowSerialData();

Serial1.println("AT+CGREG?");

delay(1000);

ShowSerialData();

Serial1.println("AT+COPS?");

delay(1000);

ShowSerialData();

// Is SIM ready to use?

// Is device registered?

// Does SIM info match network?

Serial.println("Check signal quality");

Serial1.println("AT+CSQ");

// Check signal quality

delay(1000);

ShowSerialData();

Serial1.println("AT+cgatt=1");

delay(1000);

ShowSerialData();

// GPRS attach

// define a PDP context with IP connection, ID is 1

Serial1.println("AT+CGDCONT=1,\"IP\",\"sm2ms.movilforum.es\"");

delay(1000);

ShowSerialData();

// list PDP contexts that are defined

Serial1.println("at+cgdcont?");

delay(3000);

ShowSerialData();

// setup the session using the appropriate PDP context

Serial1.println("AT+CGACT=1,1");

delay(1000);

ShowSerialData();

Serial1.println("AT+CIPSTART=\"TCP\",\"dev.teubi.co\",80"); //

delay(5000);

ShowSerialData();

// deactivate the PDP context

Serial1.println("AT+CGACT=0,1");

delay(1000);

ShowSerialData();

// detach from GPRS newtork

Serial1.println("AT+CGATT=0");

delay(1000);

ShowSerialData();

}

0 Kudos
Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

This is the result:

AT+CPIN?

+CPIN: READY

OK

AT+CGREG?

+CGREG: 0,0

OK

AT+COPS?

+COPS: 0,0,"Movistar"

OK

Check signal quality

AT+CSQ

+CSQ: 31,0

OK

AT+cgatt=1

OK

at+cgdcont?

+CGDCONT: 1,"IP","sm2ms.movilforum.es","",0,0

+CGDCONT: 2,"IP","","",0,0

+CGDCONT: 3,"IP","","",0,0

OK

AT+CGACT=1,1

OK

AT+CIPSTART="TCP","dev.teubi.co",80

+CME ERROR: 100

AT+CGACT=0,1

NO CARRIER

AT+CGATT=0

OK

0 Kudos
Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

Hello CMata,

I have failed, I think the command "wget" can't be used with the AT commands. Is not it?

Thank you very much, for your answers!! (CMata and Peter)

Regards, Ricardo.

0 Kudos
Highlighted
Employee
4 Views

Re: GSM Shield with AT Commands

I was confused with what you wanted to do before. So your issue is that you are trying to connect to the internet using the GSM shield, right? I thought that you were able to access the internet but were having issues downloading the html files.

It would be very helpful to know the model number of your shield since it is not really clear on the photo. Check on http://www.intel.com/support/motherboards/desktop/sb/CS-035257.htm Shield Testing Report for Intel® Galileo Board and Intel® Edison Board if your shield is compatible with Galileo/Edison. If it is, you'll probably find a working sketch on that document.

Peter.

0 Kudos
Highlighted
New Contributor I
4 Views

Re: GSM Shield with AT Commands

Hello,

Yes! that is my issue.

My shield is GSM Shield 2.

I have copied the sketch of document in my IDE, and not working.

0 Kudos
Highlighted
Employee
4 Views

Re: GSM Shield with AT Commands

I checked on the http://www.intel.com/support/motherboards/desktop/sb/CS-035257.htm Shield Testing Report for Intel® Galileo Board and Intel® Edison Board and the GSM Shield 2 is not included on it. Nevertheless GSM Shield 1 is, you can find it on section 12 of the http://www.intel.com/support/motherboards/desktop/sb/CS-035257.htm Shield Testing Report for Intel® Galileo Board and Intel® Edison Board according to it, the GSM sketches included in the Arduino GSM library work on an Arduino but they rely on software serial. Galileo doesn't support software serial so they won't work. They created a working sketch for this shield. But again this is for the GSM Shield 1. Unfortunately I don't have access to a GSM Shield 2 but I compiled the sketch and the IDE didn't throw any error at me. So, why don't you try it? Maybe it works for your shield.

Peter.

0 Kudos