From: Wolfgang Grandegger <wg@grandegger.com>
To: "Daniel M. Drucker, Ph.D." <dmd@interactive-motion.com>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai] patch to src/utils/can/rtcansend.c to support data from a file
Date: Mon, 22 Apr 2013 10:29:23 +0200 [thread overview]
Message-ID: <5174F4E3.8030603@grandegger.com> (raw)
In-Reply-To: <CAD1Etoi3iFSyWA_z4ex9T9=mbtHQyCkd0zR4Yq3Lf6e1NCu+0g@mail.gmail.com>
On 04/19/2013 10:09 PM, Daniel M. Drucker, Ph.D. wrote:
>>> do you guys think that it's interesting that rtcansendmulti supports
>>> same syntax than rtcanrecv output?
>>> To do for instance:
>>> rtcanrecv | rtcansendmulti -
>>
>> Good idea. Sounds useful.
>
> I'm not sure how I'd reconcile that idea with:
>
>> I would prefer removing -i, -r, -e, etc. and add it as data:
>> s 0x601 0x40 0x41 0x60 0x00 (standard frame)
>> e 0x12345678 0x40 0x41 (extended frame)
>> sr 0x601 (standard rtr frame)
>> er 0x3456778 (extended rtr frame)
>
> I liked the format I came up with because it explicitly does NOT
> define any new syntax and does not require any kind of parsing beyond
> what rtcansend is already doing with getopt.
This method is not transparent/straight-forward, I feel. You mix various
things making the code more complex than necessary.
> Is there a good reason to define a new syntax? Using the syntax that
I still prefer a simple ascii base syntax describing the complete message.
> is the output of rtcanrecv would mean we couldn't have things like
> per-message delays.
You want to change the delay between messages as well? Anyway, the
output of rtcanrecv is probably to awkward to convert.
Wolfgang.
> Daniel
>
>
next prev parent reply other threads:[~2013-04-22 8:29 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-28 22:00 [Xenomai] patch to src/utils/can/rtcansend.c to support data from a file Daniel M. Drucker, Ph.D.
2013-04-15 7:09 ` Wolfgang Grandegger
2013-04-17 3:04 ` Matthew Fornero
2013-04-17 3:06 ` Matthew Fornero
2013-04-17 5:30 ` Gilles Chanteperdrix
2013-04-17 13:04 ` Matthew Fornero
2013-04-17 13:07 ` Daniel M. Drucker, Ph.D.
2013-04-18 7:19 ` Wolfgang Grandegger
2013-04-18 7:27 ` Wolfgang Grandegger
2013-04-18 21:49 ` Daniel M. Drucker, Ph.D.
2013-04-19 8:55 ` Wolfgang Grandegger
2013-04-19 13:58 ` Carles Lopez
2013-04-19 20:01 ` Wolfgang Grandegger
2013-04-19 20:09 ` Daniel M. Drucker, Ph.D.
2013-04-22 8:29 ` Wolfgang Grandegger [this message]
2013-04-22 13:40 ` Daniel M. Drucker, Ph.D.
2013-04-18 15:08 ` Daniel M. Drucker, Ph.D.
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5174F4E3.8030603@grandegger.com \
--to=wg@grandegger.com \
--cc=dmd@interactive-motion.com \
--cc=xenomai@xenomai.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.