From 6ebf8ef5169254cda70f41b4cfb841b19bb0b889 Mon Sep 17 00:00:00 2001 From: TudbuT Date: Wed, 4 Oct 2023 21:12:24 +0200 Subject: [PATCH] move modem command lists to modemfiles/ --- modemfiles/SIM7XXX_conn.txt | 3 +++ modemfiles/SIM7XXX_init.txt | 27 +++++++++++++++++++ .../SIM800_conn.txt | 1 + modem-init.txt => modemfiles/SIM800_init.txt | 15 +---------- 4 files changed, 32 insertions(+), 14 deletions(-) create mode 100644 modemfiles/SIM7XXX_conn.txt create mode 100644 modemfiles/SIM7XXX_init.txt rename modem-connect.txt => modemfiles/SIM800_conn.txt (73%) rename modem-init.txt => modemfiles/SIM800_init.txt (89%) diff --git a/modemfiles/SIM7XXX_conn.txt b/modemfiles/SIM7XXX_conn.txt new file mode 100644 index 0000000..4a8e162 --- /dev/null +++ b/modemfiles/SIM7XXX_conn.txt @@ -0,0 +1,3 @@ +AT +AT+IPADDR +AT+CIPOPEN=0,"TCP","$IP",$PORT diff --git a/modemfiles/SIM7XXX_init.txt b/modemfiles/SIM7XXX_init.txt new file mode 100644 index 0000000..b45b809 --- /dev/null +++ b/modemfiles/SIM7XXX_init.txt @@ -0,0 +1,27 @@ + +AT + + + + + + + + + + + + + + + + + +AT + +AT+CIPMODE=1 +AT+CGDCONT=1,IP,"internet.telekom" +AT+NETOPEN + +AT+IPADDR +AT+CIPOPEN=0,"TCP","$IP",$PORT diff --git a/modem-connect.txt b/modemfiles/SIM800_conn.txt similarity index 73% rename from modem-connect.txt rename to modemfiles/SIM800_conn.txt index 94e7182..b546734 100644 --- a/modem-connect.txt +++ b/modemfiles/SIM800_conn.txt @@ -1,3 +1,4 @@ AT AT+CIFSR +AT+CIPCLOSE=0 AT+CIPSTART=TCP,"$IP",$PORT \ No newline at end of file diff --git a/modem-init.txt b/modemfiles/SIM800_init.txt similarity index 89% rename from modem-init.txt rename to modemfiles/SIM800_init.txt index 703d505..75271a0 100644 --- a/modem-init.txt +++ b/modemfiles/SIM800_init.txt @@ -2,20 +2,6 @@ AT - - - - - - - - - - - - - - AT+CFUN? AT+CPIN? AT+CIPMODE=1 @@ -25,4 +11,5 @@ AT+CIICR AT+CIFSR +AT+CIPCLOSE=0 AT+CIPSTART=TCP,"$IP",$PORT \ No newline at end of file