CAN buffer

  • Hello everyone.
    Redardinf to CAN buffer, I got following information.
    But i still have some question.

    Quote

    The default size of the event queu is 200. You can adjust this value with registry parameter "EventQueueSize".


    I didn't find a "EventQueueSize" in NetDCU10 registry.
    Where would i find it?


    Quote

    You can get a list of the default settings when you add registry paramter Debug and set it to value 4. After storing registry and reboot you get information on serial debug line.


    Sorry I'm too knowlegeless to understand it.
    Please tell me more detailed steps to do it.

  • Hello,
    The settings for the CAN interface must be made in the following location:


    CAN1:

    Code
    1. [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\CAN1]

    CAN2:

    Code
    1. [HKEY_LOCAL_MACHINE\Drivers\BuiltIn\CAN2]


    Under this key you can add the value DebugLevel and set it to 4 to get a list of the current settings.
    If you want to change the size of the event queue, you must add the registry value EventQueueSize and set it to the needed value.


    Example using ndcucfg:

    Code
    1. reg open \Drivers\BuiltIn\CAN1
    2. reg set value EventQueueSize dword 400
    3. reg save


    After next reboot, size of event queue is 400.


    Regards
    Holger

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.

  • Additional questions.


    1.Tell me maximum EventQueueSize.


    2.From "WINCE-CAN-Interface" documentation (IOCTL_CAN_SET_DEFAULT_FRAME_FORMAT ).


    Quote

    Following values for dwFormat are possible:
    0: 11 bit if CAN 2.0A and 29 bit if CAN 2.0B
    1: always 11 bit
    2: always 29 bit


    If a incoming message is different format from this setting ,
    what's gonna happen?
    Isn't it gonna be acceputed?
    I guess,
    if the setting is " 11bit",
    Message
    11 bit >OK
    29 bit > NG
    if the setting is " 29bit",
    Message
    11 bit >OK
    29 bit > OK
    is that right?


    And, acceptance filter has two types as well,
    Standard
    Extended


    Does it refuse different format messages?


    Thank you.
    Ei.

  • Quote from "tsuji"

    1.Tell me maximum EventQueueSize.


    There is no restriction, only the size of the memory.


    About the frame format:


    There are a few examples about different frame formats and acceptance filters in the WinCE-CAN docu on pages 19 to 29. If this is not sufficient, you can download the full data sheet of the SJA1000 CAN chip used on our boards. This should explain how these special cases are handled.


    Best regards,


    H. Keller

    F&S Elektronik Systeme GmbH
    As this is an international forum, please try to post in English.
    Da dies ein internationales Forum ist, bitten wir darum, Beiträge möglichst in Englisch zu verfassen.