Alors ce serait plutôt +41 76xxxxxx (076, 079... sont des préfixes pour les téléphones portables en Suisse)
hé oui, pour ca que j'ai bien mis "pour le france ca donnerait ceci" (avec une belle faute en prime
j'aimais bien le fendant et j'aime bien le chocolat, mais je connais pas l'indicatif de la suisse XD 8)
JF aux aguets comme dab
Bon ben chais plus quoi faire. J'ai fait un petit fichier séparé et voci mon réaultat final
#include <SoftwareSerial.h>
SoftwareSerial cell(2,3);
void setup(){
Serial.begin(9600);
cell.begin(9600);
//Let's get started!
Serial.println("Starting SM5100B Communication...");
delay(3000);
}
void loop(){
//Send SMS
const char* message ="Alarm";
const char* numero ="+41761112233";
//cell.print("AT+SBAND=4");
cell.println("ATZ");
cell.println("AT+CMGF=1"); // set SMS mode to text
cell.print("AT+CSCA=+41765980000");
cell.print("AT+CMGS="); // now send message...
cell.print("\"");
cell.print(numero);
cell.print("\"");
cell.print("\r");
delay(500); // give the module some thinking time
cell.print(message); // our message to send
//cell.write("0x1A");
cell.println("0x1A"); // ASCII equivalent of Ctrl-Z 0x1A,10
//delay(15000); // the SMS module needs time to return to OK status
Serial.print("SMS Sent");
delay(15000);
}
Chais pas il doir manquer un truc, un chioua.
Peut etre c'est mon harware qui embete
//cell.print("AT+SBAND=4");
cell.println("ATZ");
delay(1000);
cell.println("AT+CMGF=1"); // set SMS mode to text
delay(1000);
cell.print("AT+CMGS="); //Start accepting the text for the message
cell.print(34,BYTE);
cell.print(numero); //Start accepting the text for the message
cell.println(34,BYTE);
delay(1000);
cell.print(34,BYTE);
cell.print(message); //The text for the message
cell.print(34,BYTE);
delay(1000);
cell.print(26,BYTE); //Equivalent to sending Ctrl+Z
Ha, mais qu'entend tu par type de carte?
C'est une carte SIM, prepay.
N'es-ce pas la réponse que tu attends.
Je vais copier ton code, mais je crois que
TerminalBpp c'est quand même vachement plus pratique que HyperTerminal
Surtout la dernière version qui vient de sortir qui intègre maintenant un proxy telnet <-> serial