Gast
#2534032
Hallo, mit den AT-Befehlen im Anhang funktioniert das Versenden einer email von einem Microcontroller (MSP430F249) über ein GSM-GPRS-Modul bereits. Jetzt suche ich noch nach einer Möglichkeit, mit dieser email noch eine dynamisch generierte Datendatei (z.B. anhang.txt) als Anhang zu übermitteln. Hat jemand einen Tipp für entsprechende Befehle ? Danke ! /*#####################################################################* / Hier die AT-Befehle (incl. der Antwort des GSM-GPRS-Modules) zum Versenden einer email; AT-Befehl : AT+CIPMUX=1 AT-RESP (cleaned) : [AT+CIPMUX=1 OK ] AT-Befehl : AT+CIPMUX? AT-RESP (cleaned) : [AT+CIPMUX? +CIPMUX: 1 OK ] AT-Befehl : AT+CGATT? AT-RESP (cleaned) : [AT+CGATT? +CGATT: 1 OK ] AT-Befehl : AT+CSTT="internet.eplus.de","eplus","gprs" AT-RESP (cleaned) : [AT+CSTT="internet.eplus.de","eplus","gprs" OK ] AT-Befehl : AT+CIICR AT-RESP (cleaned) : [AT+CIICR ] AT-Befehl : AT+CIFSR AT-RESP (cleaned) : [AT+CIFSR xxx.xxx.xxx.xxx ] (xxx statt Original-IP-Adresse) AT-Befehl : AT+CIPSTART=0,"TCP","mail.gmx.de",25 AT-RESP (cleaned) : [AT+CIPSTART=0,"TCP","mail.gmx.de",25 OK ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [ 0, CONNECT OK AT+CIPSEND=0 > ] AT-Befehl : EHLO mail.gmx.net AT-RESP (cleaned) : [EHLO mail.gmx.net 0, SEND OK +RECEIVE,0,142: 250-mail.gmx.net GMX Mailservices 250-8BITMIME 250-ENHANCEDSTATUSCODES 2] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : AUTH LOGIN AT-RESP (cleaned) : [AUTH LOGIN 0, SEND OK +RECEIVE,0,18: 334 ????????????? ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : xxxxxxxxxxxx [Benutzername : "???????@gmx.net"] Benutzername Base64-codiert AT-RESP (cleaned) : [xxxxxxxxxxxx 0, SEND OK +RECEIVE,0,18: 334 ????????????? ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : xxxxxxxxxxxx [Passwort, Base64-codiert] AT-RESP (cleaned) : [xxxxxxxxxxxx ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : MAIL From:???????@gmx.net AT-RESP (cleaned) : [MAIL From:???????@gmx.net ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : RCPT To:???????@gmx.net AT-RESP (cleaned) : [RCPT To:???????@gmx.net ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : DATA AT-RESP (cleaned) : [DATA ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : From:???????@gmx.net AT-RESP (cleaned) : [From: ???????@gmx.net ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 ] AT-Befehl : Subject: Email Test AT-RESP (cleaned) : [Subject: Email Test ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl :"\n\r" AT-RESP (cleaned) : [ ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : Testmessage, Hello World. AT-RESP (cleaned) : [Testmessage, Hello World. 0, SEND OK ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : . AT-RESP (cleaned) : [. ] AT-Befehl : AT+CIPSEND=0 AT-RESP (cleaned) : [AT+CIPSEND=0 > ] AT-Befehl : QUIT AT-RESP (cleaned) : [QUIT ] AT-Befehl : AT+CIPCLOSE=0,0 AT-RESP (cleaned) : [AT+CIPCLOSE=0,0 0, CLOSE OK ] AT-Befehl : AT+CIPSHUT AT-RESP (cleaned) : [AT+CIPSHUT SHUT OK ]