Page 1 of 1

Way to know when CF card is full?

Posted: Thu 2. Mar 2017, 16:52
by ManuD
Hello,

I'm using a PCAN Router Pro as a CAN datalogger, with 1GB CF cards.
I wonder if there is a way get information that CF card is full when recording messages (Function blocks, event,...).
My idea would be to send a specific message from PCAN router when it detects CF card full.

Thanks by advance,

regards,

Emmanuel

Re: Way to know when CF card is full?

Posted: Thu 2. Mar 2017, 17:23
by ManuD
One important detail : i'm using PPCAN editor to configure the PCAN Router pro.

Re: Way to know when CF card is full?

Posted: Fri 3. Mar 2017, 10:52
by S.Schott
Hi there.

There is an internal variable
F0h (SpecialIn) -> Trace File Msg Free
which counts down to 0.

You may send this 32bit counter over CAN, or
internally compare it with 0 and trigger an info message,
whatever.

Re: Way to know when CF card is full?

Posted: Fri 3. Mar 2017, 11:28
by ManuD
Hi,

Thank you, that's exactly what I was looking for !

By the way, is there some document explaining these kind of special functions, regarding the PCAN router Pro configuration? I didn't found anything about it on the PEAK website or on the Product DVD...

thanks.

Re: Way to know when CF card is full?

Posted: Mon 6. Mar 2017, 14:22
by S.Schott
Well,

it's not mentioned in the foreground of our documentation. that's true.

You may find it in the manual p.56, chpt. "Resources".
DVD -> "\Pdf\English\PCAN-Router-Pro_UserMan_eng.pdf"

Also there's a configuration example "FullTest" making use of it,
see the *.ppproj and the *.sym file for this.
DVD -> "\Tools\PCAN-Router Pro\Configurations\FullTest\*.*"

Re: Way to know when CF card is full?

Posted: Mon 6. Mar 2017, 17:28
by ManuD
Thanks for response.

I managed to create a configuration sending on CAN the remaining free messages in the CF.

But there something new that I don't understand :

- I'm using a CF card with 8Mo trace.btr file
- At start of recording messages, I can read 390600 free messages
- When CF card seems to be full (free messages = 0, and CF card led stops flashing), I stop Pcan router, then take back the trace file from CF.
- After having converted it in .trc with PCAN converter, the file size is only 1.9Mo, and the total number of recorded messages is only 28000 (I expected to have 390600 !)

Note that I created a configuration especially for recording some filtered messages, and filtered messages are not always recorded (kind of time filter : recording every seconds or every 5 seconds)

Would this configuration explain that I can't reach the max theorical messages number in my CF card?

Thanks

Re: Way to know when CF card is full?

Posted: Tue 7. Mar 2017, 10:45
by S.Schott
Hi.

When the 8MB file says it will record 390600 messages,
then it will not stop before !

Filtering will prevent messages from being logged,
so they won't take space.

Regarding the PEAK-Converter:
Have you chosen "Select ALL sessions" and "Targeted Version" = 1.3 ?

Maybe send me your config and trace.btr (zipped!) by email.
s.schott---peak-system.com

Re: Way to know when CF card is full?

Posted: Thu 28. May 2020, 15:21
by Krishna.skt
[ Hi there,
I am also trying to do the same Thing as you discussed here. Since i am new with this Software i don't exactly get what you mean by the last line of your message. It would be great help for me if you can provide some pictures from Editor what you exactly mean.]

Hi there.

There is an internal variable
F0h (SpecialIn) -> Trace File Msg Free
which counts down to 0.

You may send this 32bit counter over CAN, or
internally compare it with 0 and trigger an info message,
whatever.
[/quote]

Re: Way to know when CF card is full?

Posted: Thu 28. May 2020, 15:45
by M.Heidemann
Hello,

Can you please send us an email to support[at]peak-system.com?

Please explain what exactly you want to do to us in the email.
Do you want to send the counter over CAN, make a comparison to 0 or trigger a message?
Please also include some information about your hardware as well, which device you are currently using, etc.

Best Regards

Marvin