SM5100 Sms time

Ora che lo shield di Arduino SM5100 ha iniziato a muovere i primi passi, è ora di iniziare qualche interazione. Mandare un sms ad esempio.

Now that the shield for Arduino SM5100 began to take its first steps, it is time to initiate some interaction. Send a text message for example.

Load the Cellular Shield passthrough (file attached at the bottom) and verify that everything is ok. Do the upload. Open a terminal program and send some empty AT command. If it replies "OK" we are riding. Now we need to understand if the card has locked the cell phone of their cable company. Disconnect external power and thus re-attach, this should cause a reset of the modem.

The first thing il'll write will probably be SIND 0, followed by a lot of "stuff" separated by zeros. If so, stop here. SIND 0 means that it is not detecting the SIM card, so it's pointless to continue ... insert the SIM, reset by removing power, or check the connections. Try it with the SIM off and see the answer.

Caricate il Cellular Shield Passthrough (allegato in fondo alla pagina) e verificate che sia tutto ok facendo l'upload. Aprite un programma di terminal e mandate qualche comando vuoto AT . Se risponde OK siamo a cavallo. Ora bisogna capire se la scheda cellulare ha agganciato la cella del proprio provider telefonico. Staccate dunque l'alimentazione esterna e riattaccatela, questo dovrebbe causare un reset del modem.

La prima cosa che scriverà sarà probabilmente SIND 0, seguito da un SIND con tante "robe" intervallate da zeri. Se è così, non serve andare oltre. SIND 0 significa che non stà rilevando la SIM inserita, quindi è inutile proseguire... inserite la SIM, resettate togliendo l'alimentazione, o controllate le connessioni. Fate una prova con la SIM disinserita e osservate la risposta.

NOTA 1: Disattivate il blocco PIN della scheda, altrimenti dove gestire l'inseirmento coi comandi AT. Per disattivarlo, la via più facile è servirsi di un telefono cellulare.

 NOTA 2: la mia SIM H3G che funziona senza problemi nel mio Iphone, NON viene rilevata dallo Shield, o meglio, produce una sequenza che inizia con SIND 1, SIND (""...."), SIND 0, di fatto quindi è come se non ci fosse. Ho provato ad utilizzare SIM TIM e VODAFONE 128K e con queste nessun problema. Prima di dare la colpa all'antenna o altre cose, se potete, verificate con SIM diverse di ottenere il risultato:

+SIND: 1

+SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1

NOTE 1: Turn off your card PIN, where otherwise manage inseirmento with AT commands. To disable it, the easiest way is to use a cell phone.

 NOTE 2: My H3G SIM that works without problems on my Iphone is not detected by Shield, or rather, produces a sequence that begins with a SIND, SIND SIND (""...."), 0, then in fact It is as if it were not. I tried using TIM and Vodafone SIM 128K and with these no problem. Before you blame the antenna or other things, if you can, check with different SIM to obtain the result:

+SIND: 1

+SIND: 10,"SM",1,"FD",1,"LD",1,"MC",1,"RC",1,"ME",1

NOTA 3: prima o poi arriverete ad ottenere SIND 1. Ora c'è una cosa ulteriore da controllare, il segnale dell'antenna. Verificate con il comando AT+CSQ che dia un risposta tipo:

+CSQ: 11,99

Se la risposta fosse un valore di 0,99 potrebbero esserci problemi di antenna. Attenzione però, finchè non avrete una SIM funzionante, il valore di CSQ sarà basso anche con l'antenna collegata.

NOTE 3: sooner or later you will come to get SIND 1. Now there's one more thing to check, the antenna signal. Check with the command AT + CSQ giving a standard reply:

+ CSQ: 11,99

If the answer is a value of 0.99 could be a problem with an antenna. Beware though, until you have a working SIM, the value of CSQ will be low even with the antenna connected.

At this point, I hope you managed to get the infamous SIND 4.

If you're tired all the time to restart the modem by unplugging the power, thecommand to do a reset is:

AT + CFUN = 1,1

To send a text message to say the number: 333454545

The Cellular Shield changed the passthrough to include this sequence ofcommands:

cell.println("AT+CMGF=1");

delay(1500);

cell.println("AT+CMGS=\"333454545\"");

delay(1500); 

cell.println("Hello world");

delay(500);

cell.println(26,BYTE);

delay(2000);

(full at commands in the file attached)

A questo punto spero che siate riusciti ad ottenere il famigerato SIND 4.

Se siete stufi di riavviare in continuazione il modem staccando la corrente, il comando per fare un reset è:

AT+CFUN=1,1

Per inviare un sms poniamo al numero: 333454545

modificate il il Cellular Shield Passthrough in modo che includa questa sequenza di comandi:

cell.println("AT+CMGF=1");

delay(1500);

cell.println("AT+CMGS=\"333454545\"");

delay(1500);

cell.println("Hello world");

delay(500);

cell.println(26,BYTE);

delay(2000);

(full at commands in the file attached)