All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] CAN question
@ 2007-02-27 16:48 roland Tollenaar
  2007-02-27 17:41 ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: roland Tollenaar @ 2007-02-27 16:48 UTC (permalink / raw)
  To: xenomai

Hi,

In choosing listen_only or Loop_back. What am I actually selecting?
The documentation only tells me that the parameter sets loop_back or
listen_only mode. Not what the difference is between those modes.
Again one of those general network programming features I presume.

When working with the virtual device. Does it matter which mode is chosen?

Regards,

Roland


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-27 16:48 [Xenomai-help] CAN question roland Tollenaar
@ 2007-02-27 17:41 ` Jan Kiszka
  2007-02-27 22:34   ` roland Tollenaar
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2007-02-27 17:41 UTC (permalink / raw)
  To: roland Tollenaar; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 969 bytes --]

roland Tollenaar wrote:
> Hi,
> 
> In choosing listen_only or Loop_back. What am I actually selecting?
> The documentation only tells me that the parameter sets loop_back or
> listen_only mode. Not what the difference is between those modes.
> Again one of those general network programming features I presume.

Both modes affect the controller directly if it supports it. Listen-only
means that this CAN node will not acknowledge incoming frames even if
they are correct, it will just sit there and sniff passively.

Loopback means that the hardware emulates a fully working bus (i.e.
correctly terminated) with only one node that simply receives what it sends.

[Granted, documentation might be improvable here for CAN beginners.
Still, you need basic some CAN understanding to deal with real-life
issues anyway.]

> 
> When working with the virtual device. Does it matter which mode is chosen?

Nope, none of them is emulated so far.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-27 17:41 ` Jan Kiszka
@ 2007-02-27 22:34   ` roland Tollenaar
  2007-02-28  7:55     ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: roland Tollenaar @ 2007-02-27 22:34 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

Hi .

It sounds like I will be setting to listen_only in most practical
cases with a fully operational bus connected. Correct?

Thanks.

Roland



On 2/27/07, Jan Kiszka <jan.kiszka@domain.hid> wrote:
> roland Tollenaar wrote:
> > Hi,
> >
> > In choosing listen_only or Loop_back. What am I actually selecting?
> > The documentation only tells me that the parameter sets loop_back or
> > listen_only mode. Not what the difference is between those modes.
> > Again one of those general network programming features I presume.
>
> Both modes affect the controller directly if it supports it. Listen-only
> means that this CAN node will not acknowledge incoming frames even if
> they are correct, it will just sit there and sniff passively.
>
> Loopback means that the hardware emulates a fully working bus (i.e.
> correctly terminated) with only one node that simply receives what it sends.
>
> [Granted, documentation might be improvable here for CAN beginners.
> Still, you need basic some CAN understanding to deal with real-life
> issues anyway.]
>
> >
> > When working with the virtual device. Does it matter which mode is chosen?
>
> Nope, none of them is emulated so far.
>
> Jan
>
>
>


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-27 22:34   ` roland Tollenaar
@ 2007-02-28  7:55     ` Jan Kiszka
  2007-02-28 13:12       ` Roland Tollenaar
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2007-02-28  7:55 UTC (permalink / raw)
  To: roland Tollenaar; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 255 bytes --]

roland Tollenaar wrote:
> Hi .
> 
> It sounds like I will be setting to listen_only in most practical
> cases with a fully operational bus connected. Correct?

Err? What are practical cases for you?

Both modes are _debugging_ features.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-28  7:55     ` Jan Kiszka
@ 2007-02-28 13:12       ` Roland Tollenaar
  2007-02-28 13:25         ` Jan Kiszka
  0 siblings, 1 reply; 7+ messages in thread
From: Roland Tollenaar @ 2007-02-28 13:12 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

Hi Jan,

 >
 > Err? What are practical cases for you?
 >
 > Both modes are _debugging_ features.

Huh? There only seem to be two flavours. Listen_only or loopback. Are 
you saying that for normal operation it does not matter at all what the 
setting is? I.e. don't even have to bother setting the parameter?

Regards,

Roland.



Jan Kiszka wrote:
> roland Tollenaar wrote:
>> Hi .
>>
>> It sounds like I will be setting to listen_only in most practical
>> cases with a fully operational bus connected. Correct?
> 
> Err? What are practical cases for you?
> 
> Both modes are _debugging_ features.
> 
> Jan
> 


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-28 13:12       ` Roland Tollenaar
@ 2007-02-28 13:25         ` Jan Kiszka
  2007-02-28 13:48           ` Wolfgang Grandegger
  0 siblings, 1 reply; 7+ messages in thread
From: Jan Kiszka @ 2007-02-28 13:25 UTC (permalink / raw)
  To: rolandtollenaar; +Cc: xenomai

[-- Attachment #1: Type: text/plain, Size: 673 bytes --]

Roland Tollenaar wrote:
> Hi Jan,
> 
>>
>> Err? What are practical cases for you?
>>
>> Both modes are _debugging_ features.
> 
> Huh? There only seem to be two flavours. Listen_only or loopback. Are
> you saying that for normal operation it does not matter at all what the
> setting is? I.e. don't even have to bother setting the parameter?
> 

Check the documentation of SIOCSCANCTRLMODE. It should clearly state
that those are modes can be activated additionally and independently.
Also check what happens in the existing rtcanconfig code, it underlines
this.

If you find an even better way to express this in the doc: patches are
welcome.

Jan


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 250 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: [Xenomai-help] CAN question
  2007-02-28 13:25         ` Jan Kiszka
@ 2007-02-28 13:48           ` Wolfgang Grandegger
  0 siblings, 0 replies; 7+ messages in thread
From: Wolfgang Grandegger @ 2007-02-28 13:48 UTC (permalink / raw)
  To: Jan Kiszka; +Cc: xenomai

Jan Kiszka wrote:
> Roland Tollenaar wrote:
>> Hi Jan,
>>
>>> Err? What are practical cases for you?
>>>
>>> Both modes are _debugging_ features.
>> Huh? There only seem to be two flavours. Listen_only or loopback. Are
>> you saying that for normal operation it does not matter at all what the
>> setting is? I.e. don't even have to bother setting the parameter?
>>
> 
> Check the documentation of SIOCSCANCTRLMODE. It should clearly state
> that those are modes can be activated additionally and independently.
> Also check what happens in the existing rtcanconfig code, it underlines
> this.
> 
> If you find an even better way to express this in the doc: patches are
> welcome.

I'm going to update the doc as follows:

/*!
  * @anchor CAN_CTRLMODE @name CAN controller modes
  * Special CAN controllers modes, which can be or'ed together.
  *
  * @note These modes are hardware-dependent. Please consult the hardware
  * manual of the CAN controller for more detailed information.
  *
  * @{ */

/*! Listen-Only mode
  *
  *  In this mode the CAN controller would give no acknowledge to the
  *  CAN-bus, even if a message is received successfully and messages
  * would not be transmitted. This mode might be useful for
  * bus-monitoring, hot-plugging or throughput analysis. */
#define CAN_CTRLMODE_LISTENONLY 0x1

/*! Loopback mode
  *
  * In this mode the CAN controller does an internal loop-back, a message
  * is transmitted and simultaneously received. That mode can be used for
  * self test operation. */
#define CAN_CTRLMODE_LOOPBACK   0x2

Hope it's clearer now. For the moment, just don't care about special 
features.

Wolfgang.



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-02-28 13:48 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-02-27 16:48 [Xenomai-help] CAN question roland Tollenaar
2007-02-27 17:41 ` Jan Kiszka
2007-02-27 22:34   ` roland Tollenaar
2007-02-28  7:55     ` Jan Kiszka
2007-02-28 13:12       ` Roland Tollenaar
2007-02-28 13:25         ` Jan Kiszka
2007-02-28 13:48           ` Wolfgang Grandegger

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.