Das Open-Control-Projekt - Die Alternative zur C-Control-I


Das Forum zur C-Control-1
Welche C-Control-Varianten existieren?
Übersicht - Suchen - Neueste 50 Beiträge - Neuer Beitrag - Login - Registrieren
INFO - FAQ - CC2-Forum - CCPro-Forum 

 Re: CF card van Avisaro Kategorie: Programmierung Basic (von Naturbanause - 16.11.2005 17:37)
 Als Antwort auf CF card van Avisaro von Hans - 16.11.2005 12:17
Naturbanause nutzt:  CC1-M-Unit V1.1
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
> 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

Bisherige Antworten:

Re: CF card van Avisaro (von Hans - 17.11.2005 23:05)
    Re: CF card van Avisaro (von Naturbanause - 18.11.2005 14:01)
        Re: CF card van Avisaro (von Hans - 18.11.2005 19:53)
            Re: CF card van Avisaro (von Naturbanause - 18.11.2005 23:30)
                Re: CF card van Avisaro (von Hans - 19.11.2005 21:41)
    Re: CF card van Avisaro (von Windt H.J. - 17.11.2005 23:55)
        Re: CF card van Avisaro (von Hans - 18.11.2005 19:45)
            Re: CF card van Avisaro (von Windt H.J. - 20.11.2005 15:55)
                Re: CF card van Avisaro (von TomTom - 20.11.2005 16:58)
                    Re: CF card van Avisaro (von Windt H.J. - 20.11.2005 17:14)
                       Re: CF card van Avisaro (von Hans - 20.11.2005 20:16)
                          Re: CF card van Avisaro (von TomTom - 20.11.2005 21:21)
                             Re: CF card van Avisaro (von Hans - 21.11.2005 23:07)
                                Re: CF card van Avisaro (von Windt H.J. - 22.11.2005 1:53)
                                   Re: CF card van Avisaro (von Hans - 22.11.2005 21:44)
                                     Re: CF card van Avisaro (von Hans - 27.11.2005 14:05)
                                       Re: CF card van Avisaro (von Windt H.J. - 27.11.2005 16:05)
                                         Re: CF card van Avisaro (von Hans - 27.11.2005 19:00)
                                           Re: CF card van Avisaro (von Windt H.J. - 30.11.2005 15:32)
                                             Re: CF card van Avisaro (von Windt H.J. - 30.11.2005 21:58)
                                               Re: CF card van Avisaro (von Hans - 30.11.2005 22:35)
                Re: CF card van Avisaro (von Hans - 20.11.2005 16:15)
                    Re: CF card van Avisaro (von Windt H.J. - 20.11.2005 16:48)