
|
INFO - FAQ - CC2-Forum - CCPro-Forum |
|
||
|
Thanks Herr H.J. Windt this must be it but unfortunately there is made only a TEXT file without the data Greetings Hans > Hello Hans & Mario, > I don't have this device but i do find it interesting. > I'm not sure but I think you have placed a space behind "at+datastream "<<-- space! > I think this should be "at+datastream"<<-- no space. > Greetings, > H.J. Windt > > > > > Bedankt Mario > > > > Ik heb je voorstel uitgeprobeerd maar het werkt jammer genoeg niet > > I have tried out your proposal but it works unfortunately not > > I have now simplified it > > > > AND > > Now the data is coming direct from the C-control M-Unit 2.0 PIN 52 instead of the IC RS232 > > and that works > > > > Now there is made a TEXT file test A.txt > > > > But unfortunately there is no data written > > > > We are nearly there, wat can be possibly wrong > > > > print "at+create testA.txt" 'Maakt een file testA.txt. > > pause 150 '3 sec. > > > > #start > > Print "at+datastream " ' To Send Data > > PAUSE 150 > > PRINT "DIT IS EEN TEST" > > PRINT "Alles wat hier staat moet zichtbaar zijn" > > PAUSE 25 'pause 0,5 sec > > PRINT "+" 'Stop recording > > PAUSE 25 > > PRINT "+" 'Stop recording > > PAUSE 25 > > PRINT "+" 'Stop recording > > pause 25 > > > > END > > > > > > > > > > > > > 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 |