۲۲-آبان-۱۳۹۶, ۰۱:۴۳:۰۰
با سلام
من می خوام بین ماژول GSM که یک سیم کارت ایرانسل بر روی اون هست و یک سایت دیتا (متن و عدد) ارسال و دریافت کنم . کدهای نوشته شده سایت من بر اساس ASP.NET هست . لطفا راهنمایی کنید .
دستورات AT COMMAND برای ماژول GSM :
من می خوام بین ماژول GSM که یک سیم کارت ایرانسل بر روی اون هست و یک سایت دیتا (متن و عدد) ارسال و دریافت کنم . کدهای نوشته شده سایت من بر اساس ASP.NET هست . لطفا راهنمایی کنید .
دستورات AT COMMAND برای ماژول GSM :
کد:
AT+QIFGCNT=0 // Set the context 0 as FGCNT.
OK
AT+QICSGP=1,“CMNET” //Set APN.
OK
AT+QIMUX=0 // 0 disables the function of MUXIP. 1 enables the function.
OK
AT+QIMODE=0 // Set the session mode as non-transparent.
OK
AT+QIDNSIP=0 // Use IP address to establish TCP/UDP session.
OK
AT+QIREGAPP // Register the TCP/IP stack.
OK
AT+QIACT // Activate FGCNT.
OK
AT+QILOCIP //Get Local IP address.
10.180.217.206
AT+QIOPEN=“TCP”, “124.79.167.121”,7007 // Visit the remote TCP server. And the address of
the remote server is an IP address.
OK
CONNECT OK // CONNECT OK means the module has been successfully
connected to the remote TCP server.
AT+QISEND // Send data to the remote server.
> Welcome to use Quectel module. // ‘>’ from the UART indicates the following input data is
considered as data to be sent. After receiving ‘>’, input data
(‘Welcome to use Quectel module.’).The maximum length of
the data is 1460. The data beyond 1460 will be omitted.
<Ctrl+Z> // After input data, use <Ctrl+Z> to send data. (<Ctrl+Z> is a
combined AT command which uses to submit operation).
SEND OK // SEND OK means the data has been sent.
AT+QISACK // Query the total size of the data sent and acknowledged.
+QISACK: 30, 20, 10 // The total size of the data sent is 30, the total size of the data
acknowledged is 20 and the length of the data unacknowledged
is 10.
OK
Welcome to use Quectel module. // Received data from remote server (124.79.167.121:7007)).
Besides, it is allowed to add some other information at the
beginning of the received data controlled by the commands,
please refer to Section 5.3.
Quectel