{"id":143836,"date":"2020-05-22T08:33:51","date_gmt":"2020-05-22T15:33:51","guid":{"rendered":"https:\/\/m2msupport.net\/m2msupport\/?page_id=143836"},"modified":"2020-05-22T08:35:13","modified_gmt":"2020-05-22T15:35:13","slug":"atcfsren-rename-a-file-in-simcom-modules","status":"publish","type":"page","link":"https:\/\/m2msupport.net\/m2msupport\/atcfsren-rename-a-file-in-simcom-modules\/","title":{"rendered":"AT+CFSREN -Rename a file in Simcom modules"},"content":{"rendered":"\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/m2msupport.net\/m2msupport\/wp-content\/uploads\/2020\/05\/at_cfsren.png\" alt=\"\" class=\"wp-image-32155\"\/><\/figure>\n\n\n<p>Try the below script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a>\n<\/p>\n<pre style=\"color: blue; background-color: white; border: 1px solid black;\">\/\/Script: at+cfsren - Rename a file\n\/\/The AT commands in this script are applicable for Simcom modules only\n\/\/Check SIMCOM Module AT Command documentaiton\n\n\/\/Get the support for the commands\nAT+CFSREN=?\n\n\/\/Wait\nWAIT=1\n\n\/\/Allocate the data buffer\nAT+CFSINIT\n\n\/\/Write to a file\nAT+CFSWFILE=0,\"myfile.txt\",0,12,10000\n\n\/\/Write data for the FILE, length should match file size parameter above\nmy file data\n\n\/\/Wait\nWAIT=2\n\n\/\/Rename the file\nAT+CFSREN=0,\"myfile.txt\",\"newname.txt\"\n\n\/\/Wait\nWAIT=2\n\n\/\/Get the size of the renamed file\nAT+CFSGFIS=0,\"newname.txt\"\n\n\n\n<\/pre>\n<p>Output of the above script in the <a href=\"https:\/\/m2msupport.net\/m2msupport\/download-at-command-tester-for-simcom-modules\/\">AT Command Tester tool<\/a><\/p>\n<pre style=\"color: blue; background-color: #ffffcc; border: 1px solid black;\">AT+CFSREN=?\n\n+CFSREN: (0-3),50,50\n\nOK\nAT+CFSINIT\n\nOK\nAT+CFSWFILE=0,\"myfile.txt\",0,12,10000\n\nDOWNLOAD\n\nOK\nAT+CFSREN=0,\"myfile.txt\",\"newname.txt\"\n\nOK\nAT+CFSGFIS=0,\"newname.txt\"\n\n+CFSGFIS: 12\n\nOK\n\n\n\n\n\n<\/pre>\n<div class=\"video-responsive\"><iframe loading=\"lazy\" id=\"youTubePlayer\" src=\"https:\/\/www.youtube.com\/embed\/tNTcQjufTXY\" width=\"750\" height=\"421\" frameborder=\"0\" allowfullscreen=\"allowfullscreen\"><\/iframe><\/div>","protected":false},"excerpt":{"rendered":"<p>Try the below script in the AT Command Tester tool \/\/Script: at+cfsren &#8211; Rename a file \/\/The AT commands in this script are applicable for Simcom modules only \/\/Check SIMCOM Module AT Command documentaiton \/\/Get the support for the commands &hellip; <a href=\"https:\/\/m2msupport.net\/m2msupport\/atcfsren-rename-a-file-in-simcom-modules\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"atcommands.php","meta":{"footnotes":""},"class_list":["post-143836","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143836","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/comments?post=143836"}],"version-history":[{"count":2,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143836\/revisions"}],"predecessor-version":[{"id":143839,"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/pages\/143836\/revisions\/143839"}],"wp:attachment":[{"href":"https:\/\/m2msupport.net\/m2msupport\/wp-json\/wp\/v2\/media?parent=143836"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}