SD Card SIMCOM

From ElectroDragon Wiki
  • Select the TF card directory as the current directory:
AT+FSCD=D:				//choose sd card directory
+FSCD: D:/
OK
AT+FSLS					//check sub directory
+FSLS: SUBDIRECTORIES: 
overlays
MyDir
System Volume Information
...
...
OK
  • Create a folder and file contents on the TF card Use the statement to set the MyDir folder in the root directory and create a t1.txt file in the folder, and write the content at the same time test content
AT+CFTRANRX="D:/MyDir/t1.txt",12				// file name
>test content								// content
OK
  • Open SD card file
AT+CFTRANTX="D:/MyDir/t1.txt"
+CFTRANTX: DATA,012
test content
+CFTRANTX: 0
OK