2g無線模塊ftp相關功能at命令集使用方法通用_第1頁
2g無線模塊ftp相關功能at命令集使用方法通用_第2頁
2g無線模塊ftp相關功能at命令集使用方法通用_第3頁
2g無線模塊ftp相關功能at命令集使用方法通用_第4頁
2g無線模塊ftp相關功能at命令集使用方法通用_第5頁
已閱讀5頁,還剩5頁未讀 繼續免費閱讀

下載本文檔

版權說明:本文檔由用戶提供并上傳,收益歸屬內容提供方,若內容存在侵權,請進行舉報或認領

文檔簡介

1、2G 無線模塊FTP 相關功能 AT用方法命令集使1 / 10版本修改人修改說明V1.0新建手冊FAE整理1.+LSFTPCFG功能:配置主動模式還是動上報信息。模式,配置數據傳輸類型,打開和關閉 FTP的主參數列表說明:mode: 0模式,1主動模式,默認為 0type: 文件傳輸類型,0 Ascii 類型,1 Ebcdic 類型,2 Binary 類型,默認為 0indication: 主動上報開關,1 打開上報,0 關閉上報,默認為 02.+LSFTPOPN功能:和服務器建立 FTP注意:。只能建立一個 FTP. 固定使用 socket 4 和 socket 5FTP是基于 2 個 TC

2、P sockets: socket 4 用于 FTP 的控制。使用數據連接上傳送數據時使用的是非透傳模式。socket 5 用于 FTP 的數據2 / 10dSyntaxResponse/ActionRemarksSet+LSFTPOPN= ,OKOr:+CME ERROR: d execution result (connectionsus) return to the user.Read+LSFTPOPN?+LSFTPOPN: OKReturnsFTP connectionsus:dSyntaxResponse/ActionRemarksSet+LSFTPCFG=,OKOr:+CMEERR

3、OR: Enables/disables FTP unsolicited indication:0 - Indication disabled 1 - Indication enabledWhen indication is enabled, A8500will sendthe user allFTP ds and responses by the followingunsolicitedresponseformat: +LSFTPURC: Read+ LSFTPCFG?+LSFTPCFG:, OKReturns FTP configure informationTest+ LSFTPCFG

4、=?+LSFTPCFG:(0-1),(0-2),(0-1)OKReturnd format.參數列表說明: destination_ip/url: username: 用戶名password:服務器的 IP 地址account: 賬號,可以為空source_control_port:本地控制端口destination_control_port:服務器控制端口source_data_port:本地數據端口使用例子:at+mipcall=1,cmnetOK+MIPCALL: 1sftpopn=4,admin,admin,60021OK3.+LSFTPCWD功能:打開服務器上指定路徑的目錄。命令參數

5、說明:directory_name:目錄名稱,最大長度 255 個字節的字符串使用例子:目錄打開成功SFTPCWD=data+LSFTPCWD: “/data” OK目錄打開失敗SFTPCWD=user3 / 10dSyntaxResponse/ActionRemarksSet+LSFTPCWD=+LSFTPCWD: OKOr: +CME ERROR: parameter consists of the directory name as well as the directory path (optional). Thed executionresult return to the user

6、.Test+LSFTPCWD=?OKReturnsd format.1 - connection sucs0 - connectionfailTest+LSFTPOPN=?OKReturnsdformat.+CME ERROR: 1004.+LSFTPMKF功能:在服務器上創建一個新的目錄文件夾。命令參數說明:directory_name:目錄名稱,最大長度 255 個字節的字符串使用例子:目錄創建成功SFTPMKF=somedirOK目錄創建失敗SFTPMKF=somedir+CME ERROR: 1005.+LSFTPDFD功能:在服務器上刪除一個已存在的目錄文件夾。命令參數說明:dire

7、ctory_name:目錄名稱,最大長度 255 個字節的字符串使用例子:目錄刪除成功SFTPDFD=somedirOK目錄刪除失敗4 / 10dSyntaxResponse/ActionRemarksSet+LSFTPDFD=OKOr: +CME ERROR: parameter consists of the directory name as well as the directory path (optional). Thed execution result return to theuser.Test+LSFTPDFD=?OKReturnsd format.dSyntaxRespo

8、nse/ActionRemarksSet+LSFTPMKF=OKOr:+CMEERROR: parameter consistsofthedirectory name as well as the directory path(optional).The d execution resultreturn to the user.Test+LSFTPMKF=?OKReturnsd format.SFTPDFD=somedir+CME ERROR: 1006.+LSFTPDFL功能:在服務器上刪除一個已存在的文件。命令參數說明:File_name:文件名稱,最大長度 255 個字節的字符串使用例子

9、:AT+LSFTPDFL=somefileOK7.+LSFTPPWD功能:從服務器上獲取當前目錄。使用例子:SFTPPWD+LSFTPPWD: /home/somedir OK8.+LSFTPCLS功能:關閉FTP。5 / 10dSyntaxResponse/ActionRemarksdSyntaxResponse/ActionRemarksExe+LSFTPPWD+LSFTPPWD: OKor+CMEERROR: parameter consists of thedirectory name as well as the directorypath(optional).The d execu

10、tion result return tothe user.Test+LSFTPPWD=?OKReturnd formatdSyntaxResponse/ActionRemarksSet+LSFTPDFL=OKor +CME ERROR: parameter consists of the file name as well as the file path (optional).Thed executionresult return to the user.Test+LSFTPDFL=?OKReturnd format使用例子AT+LSFTPCLSOK9.+LSFTPBKS功能:從服務上某個

11、路徑轉移到上一級路徑。使用例子:SFTPPWD+LSFTPPWD: / OKSFTPCWD=ABC+LSFTPCWD: /ABC OKAT+LSFTPBKS+LSFTPBKS: / OK10.+LSFTPSIZ功能:在服務器上獲取某個文件大小命令參數說明:file_name :文件名,最大 255 個字節result: 文件大小,使用例子:字節AT+LSFTPSIZ=6 / 10dSyntaxResponse/ActionRemarksSet+LSFTPSIZ=+LSFTPSIZ: OKor+CMEERROR: parameters consists of the file name as w

12、ell as the file path (optional). Thed executionresult return to the user.Test+LSFTPSIZ=?OKReturnd formatdSyntaxResponse/ActionRemarksExe+LSFTPBKS+LSFTPBKS: OKor+CMEERROR: Thed execution result return to the userTest+LSFTPBKS=?OKReturnd formatExe+LSFTPCLSOKOr:+CMEERROR: d execution result return to t

13、he userTest+LSFTPCLS=?OKReturnd format+LSFTPSIZ: 100OK11.+LSFTPLSF功能:在服務器上的某個路徑下列出所有文件命令參數說明:file/directory name:路徑名,最大 255 個字節data_length:當前接收到數據的個數data:當前接收到的數據,由于顯示使用非透傳模式,所以它的實際字節數是 data_length 的2 倍。如果數據較多,會分多次上報。不輸入參數就是默認當前路徑名。使用例子:SFTPLIST=+LSFTPDATA:57,2D72772D722D2D722D2DA616E2030332031353A3

14、03920656E2E7478740D0A OK2020202020333020412.+LSFTPUPL功能:向服務器上傳文件命令參數說明:file_name:上傳文件名,最大 255 個字節 file_length:本次上傳數據長度,最大1024個字節。 EOF:1 表示本次上傳數據是文件的最后一段內容,0使用例子表示文件沒上傳完,后續還要上傳上傳文件的時候,模塊采用非透傳模式,回顯輸入內容,實際輸入長度為 file_length 的 2 倍,7 / 10dSyntaxResponse/ActionRemarksSet+LSFTPUPL=, ,dtrl+Z OKorERROR: param

15、eter consists of the file name as well as the file path (optional). Thedexecution result return to the user.Test+LSFTPUPL=?OKReturnd formatdSyntaxResponse/ActionRemarksSet+LSFTPLSF=+LSFTPDATA:, OKor+CMEERROR:Parameterconsistsofthe file/directory name as well as the file/directory path (optional). Th

16、e d execution result returnto the user as an unsolicited response:+LSFTPDATA:,Test+LSFTPLSF=?OKReturnd format輸入完成后需要在最后輸入 Ctrl+Z(0 x1A)才能把數據真正發送出去。當本次發送為文件末尾的時候需要把 EOF 設為 1,上傳結束。發送最大數據包長度在 1024 個字節,當返回 OK 后,可以繼續發送 AT 命令。當模塊定時 10 秒內串口沒有輸入數據,會自動退出上傳模式,可以繼續發送 AT 命令。SFTPUPL=,3,1313233Ctrl+Z OK13.+LSFTPD

17、NL功能:從服務器上一個文件命令參數說明:file_name:文件名,最大 255 個字節data_length:當前接收到數據的個數data:當前接收到的數據,由于顯示使用非透傳模式,所以它的實際字節數是 data_length 的2 倍。offset:起始位置的偏移量read_len:用戶當前需要的長度注意:如果文件較大,會分多次上報使用例子:上網絡以后 AT+MIPCALL=1 OK+MIPCALL: 1AT+LSFTPOPN=4,admin,admin,60021 OK/直接整個文件 abc.txtSFTPDNL=abc.txt+LSFTPDATA: 10, OK30/從服務器上文件的

18、第 5 個字節偏移位置開始(起始位置從 0 開始數),直到文件結束8 / 10dSyntaxResponse/ActionRemarksSet+LSFTPDNL=,read_len+LSFTPDATA:, OKor+CMEERROR: Parameterconsistsofthe file/directory name as well as the file/directory path (optional). The d execution result returnto the user as an unsolicitedresponse:+LSFTPDATA:,Test+LSFTPDNL=?OKReturnd formatSFTPDNL=abc.txt,5+LSFTPDATA: 5, 3637383930 OK/從服務器上文件的第 5 個字節偏移位置開始SFTPDNL=abc.txt,5,3+LSFTPDATA

溫馨提示

  • 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
  • 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯系上傳者。文件的所有權益歸上傳用戶所有。
  • 3. 本站RAR壓縮包中若帶圖紙,網頁內容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
  • 4. 未經權益所有人同意不得將文件中的內容挪作商業或盈利用途。
  • 5. 人人文庫網僅提供信息存儲空間,僅對用戶上傳內容的表現方式做保護處理,對用戶上傳分享的文檔內容本身不做任何修改或編輯,并不能對任何下載內容負責。
  • 6. 下載文件中如有侵權或不適當內容,請與我們聯系,我們立即糾正。
  • 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。

評論

0/150

提交評論