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 Windt H.J. - 17.11.2005 23:55)
 Als Antwort auf Re: CF card van Avisaro von Hans - 17.11.2005 23:05
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
> > > 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 - 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)