
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Hello, I don't have experience with the CF-Module, but I'm interested for it. The first command after the power-on or restart has a delay of 3 seconds. While this time the CF-Module "learns" how the commands will be closed (with CR,LF or just LF). The command "print" sends automatically CR,LF. There is another error in your program. The stop-sequence after writing data will also close the file. Before writing next data you have to open it. After creating the file (and waiting for 3 seconds) you should close it with "at+close". At the beginning of the loop you should open the file for write with "at+append test.txt". So the program should work. I made the changes in your program. Greetings Mario > Hallo > > Is there someone who has experience with the CF memory card of Avisaro? > I only want to write data, but I cant get it done > It looked so simple, but what is going wrong? > > Hier het test progr. > > define test word[1] > > Year=05:Month=11:Day=12:HOUR=7:Minute=0:Second=0 'woensdag, 12.00.00 > hour=11:minute=20:second=00 > pause 2 > print "at+create test.txt" 'Maakt een file test.txt. > pause 150 ' Waiting 3 sec. for "learning" > print "at+close" ' close file > > > > #start > print "at+append test.txt" ' open file for write and appending data > Print "at+datastream " ' To Send Data > pause 50 > test=test+2 > print day/10; > print day mod 10; > print"-"; > print Month/10; > print month mod 10; > print"-20"; > print Year/10; > print Year mod 10, > > print hour/10; > print hour mod 10; > print":"; > print minute/10; > print minute mod 10; > print ":"; > print second/10; > print second mod 10, > > print test > pause 50 > print "+" 'Stop recording 3x > pause 50 > print "+" 'Stop recording > pause 50 > print "+" 'Stop recording > pause 50 > > pause 500 '10sec. > > goto Start > > > |
| Antwort schreiben |