I have been trying and trying to figure out how to delete a file from a Telit GE865Quad that doesn’t end in py or pyo. I have a file that ends with "text.txt" and when I use AT#DSCRIPT ="text.txt" I am getting "+CME ERROR: memory failure".
Any ideas?
That should work, please report firmware version (AT+CGMR). Maybe the memory is corrupted in some way (is this a file that be left open at a shutdown, reset or such)? Do a fresh firmware upload, then try with a txt file upload with WSCRIPT and delete it.
Thanks for the response.
I checked the firmware and it is 10.00.002. I see the most recent is 10.00.004. I downloaded Xfp 2.0.13, and it will get to the "Programming…" state. It doesn’t complete that state, but instead ends with the following "Error: FlashSendStream – Error rx (0x000001EE – 0x000101ED), Code: 114 (code:-9)"
Since updating the firmware didn’t work, I tried to overwrite the file using AT#WSCRIPT="text.txt",18,0. That is the filename of the existing file and the size. I then sent it a couple words to fill the 18 bytes. The new text.txt was readable using AT#RSCRIPT (the previous one was not). I did AT#DSCRIPT="text.txt" and it returned OK, but AT#LSCRIPT still shows "text.txt", 18. Subsequent attempts to run AT#DSCRIPT="text.txt" return the same error, "+CME ERROR: memory failure".
I tried the same and all went smooth, uploading and deleting 18 bytes txt file.
Try to solve firmware uploading, download the files again from Download Zone, try even with the old 10.00.002, to have at least a fresh module. Is it a real serial port or USB to RS232 adapter?
I tried it on another module I have and it went fine. Guess there is something wrong with the dev board. Thanks for the help.
How can i find the existance of a file in Easyscript.
Actually i am trying to open a file named data.txt.
Some cases if the file doesn’t available in the NVM of GL865QUAD, I like to create a new file with default values.
Can you help me out to solve this issue?
Thank you
You can do it with AT#LSCRIPT or
try:open('filename'):
# do somethingexceptIOError:# create and fill file
f = open(‘data.txt’,’w’) # open data.txt file for writing (if exists will be overwritten)
f.write(‘string’ + ‘rn’) # ‘rn’ termination is to ensure that every string will be at separate row
We use cookies to enhance your browsing experience and help us improve our websites. To improve our website, we carefully select third parties that use cookies to allow us to serve specific content and achieve the purposes set out in our cookie policy. For more information on how to make adjustments through your browser to the cookies being used on your device, please click Find Out More link. By closing this banner or continuing to browse our website, you agree to our use of such cookies. FIND OUT MORE
I have been trying and trying to figure out how to delete a file from a Telit GE865Quad that doesn’t end in py or pyo. I have a file that ends with "text.txt" and when I use AT#DSCRIPT ="text.txt" I am getting "+CME ERROR: memory failure".
Any ideas?
That should work, please report firmware version (AT+CGMR). Maybe the memory is corrupted in some way (is this a file that be left open at a shutdown, reset or such)? Do a fresh firmware upload, then try with a txt file upload with WSCRIPT and delete it.
Thanks for the response.
I checked the firmware and it is 10.00.002. I see the most recent is 10.00.004. I downloaded Xfp 2.0.13, and it will get to the "Programming…" state. It doesn’t complete that state, but instead ends with the following "Error: FlashSendStream – Error rx (0x000001EE – 0x000101ED), Code: 114 (code:-9)"
Since updating the firmware didn’t work, I tried to overwrite the file using AT#WSCRIPT="text.txt",18,0. That is the filename of the existing file and the size. I then sent it a couple words to fill the 18 bytes. The new text.txt was readable using AT#RSCRIPT (the previous one was not). I did AT#DSCRIPT="text.txt" and it returned OK, but AT#LSCRIPT still shows "text.txt", 18. Subsequent attempts to run AT#DSCRIPT="text.txt" return the same error, "+CME ERROR: memory failure".
I tried the same and all went smooth, uploading and deleting 18 bytes txt file.
Try to solve firmware uploading, download the files again from Download Zone, try even with the old 10.00.002, to have at least a fresh module. Is it a real serial port or USB to RS232 adapter?
I tried it on another module I have and it went fine. Guess there is something wrong with the dev board. Thanks for the help.
How can i find the existance of a file in Easyscript.
Actually i am trying to open a file named data.txt.
Some cases if the file doesn’t available in the NVM of GL865QUAD, I like to create a new file with default values.
Can you help me out to solve this issue?
Thank you
You can do it with AT#LSCRIPT or
f = open(‘data.txt’,’w’) # open data.txt file for writing (if exists will be overwritten)
f.write(‘string’ + ‘rn’) # ‘rn’ termination is to ensure that every string will be at separate row
…
f.close()
flashflush()