All of lore.kernel.org
 help / color / mirror / Atom feed
From: Wolfgang Grandegger <wg@domain.hid>
To: Breno <breno@domain.hid>
Cc: socketcan@domain.hid, xenomai-help <xenomai@xenomai.org>
Subject: Re: [Xenomai-help] [Socketcan-users] RT - Socketcan
Date: Tue, 20 May 2008 11:06:54 +0200	[thread overview]
Message-ID: <483294AE.6050208@domain.hid> (raw)
In-Reply-To: <48328F76.4090603@domain.hid>

Hi Breno,

first I moved this thread to the Xenomai-Help ML, because it's off-topic
on the Socket-CAN ML. Only questions related to the Socket-CAN API or
Linux Socket-CAN implementation should be send there.

Wolfgang Grandegger wrote:
> Breno wrote:
>> Wolfgang Grandegger wrote:
> [...deletions...]
> 
>>>>>> Wolfgang, that's seems to work perfectly. I got another simple(very
>>>>>> simple) question. Follow the commands:
>>>>>> *
>>>>>> sh-3.00# ./rtcanrecv rtcan1 &
>>>>>>
>>>>>> *[1] 950
>>>>>> *sh-3.00# ./rtcanrecv rtcan1 &*
>>>>>> *sh-3.00# ./rtcansend rtcan0 -i123 A B C D E F G H*
>>>>>>
>>>>>> #0: (2) <0x07b> [8] 00 00 00 00 00 00 00
>>>>>>
>>>>>> So, I received correctly the ID message the length but the data is 00.
>>>>>> Is there any configuration missing?
>>>>>>     
>>>>>>         
>>>>> You have to specify the message bytes correctly.
>>>>>
>>>>> ./rtcansend rtcan0 -i0x123 0xA 0xB 0xC 0xD 0xE 0xF
>>>>>
>>>>> should work better.
>>>>>
>>>>> Wolfgang.
>>>>>   
>>>>>       
>>>> Wolfgang, that's weird! I did your suggestion and I got:
>>>>
>>>> *sh-3.00# ./rtcansend rtcan0 -i0x123 0xA 0xB 0xC 0xD 0xE 0xF*
>>>> #0: (2) <0x123> [6] 00 00 00 0d 0e 0f
>>>>
>>>> It seems losing some packages, isn't it?
>>>>     
>>> Wired, could you try:
>>>
>>> ./rtcansend -v -i0x123 rtcan0 0xA 0xB 0xC 0xD 0xE 0xF
>>> ./rtcansend -v -i0x123 rtcan0 1 2 3 4 5 6 7 8
>>>
>>> Wolfgang.
>>>
>>>   
>> Hi Wolfgang, I got the messages below with verbose enable as you 
>> suggested me.*
>>
>> sh-3.00# ./rtcansend rtcan0 -v -i0x123 0xA 0xB 0xC 0xD 0xE 0xF 0xG*
>> interface rtcan0
>> s=1, ifr_name=rtcan0
>> <0x123> [7] 0a 0b 0c 0d 0e 0f 00
>> Cleaning up...
>> #1: (2) <0x123> [7] 00 00 00 0d 0e 0f 00
>> *sh-3.00# ./rtcansend rtcan0 -v -i0x123 0xA 0xB 0xC 0xD 0xE 0xF 0xG*
>> interface rtcan0
>> s=1, ifr_name=rtcan0
>> <0x123> [7] 0a 0b 0c 0d 0e 0f 00
>> Cleaning up...
>> #2: (2) <0x123> [7] 00 00 00 0d 0e 0f 00
> 
> The last "00" is OK because 0xG is not a valid hexadecimal number...
> 
>> *sh-3.00# ./rtcansend rtcan0 -v -i0x123 1 2 3 4 5 6 7 8            *
>> interface rtcan0
>> s=1, ifr_name=rtcan0
>> <0x123> [8] 01 02 03 04 05 06 07 08
>> Cleaning up...
>> #4: (2) <0x123> [8] 00 00 00 04 05 06 07 08
>>
>> When you say wired, means I think that it could be a connection problem?
> 
> ... but the first 3 are wired and I'm really puzzled why that happens. I
> have to try myself. I do not believe that it's a connection problem. Do
> you have a CAN Bus analyzer?

How have you built rtcansend and rtcanrecv? Please use the binaries made
and installed by "make install".

Wolfgang.



       reply	other threads:[~2008-05-20  9:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <60078.189.4.74.190.1209348044.squirrel@domain.hid>
     [not found] ` <481580F2.9090707@domain.hid>
     [not found]   ` <4815BFDA.1040904@domain.hid>
     [not found]     ` <4815C3A5.1020606@domain.hid>
     [not found]       ` <4815C937.6000700@domain.hid>
     [not found]         ` <4815D4B1.8040207@domain.hid>
     [not found]           ` <481682B8.4050104@domain.hid>
     [not found]             ` <4816BF96.6010400@domain.hid>
     [not found]               ` <57472.150.162.12.153.1209499591.squirrel@domain.hid>
     [not found]                 ` <48180F67.4080809@domain.hid>
     [not found]                   ` <482B8494.7050009@domain.hid>
     [not found]                     ` <482BD2D4.5070408@domain.hid>
     [not found]                       ` <482C922E.1080002@domain.hid>
     [not found]                         ` <482C9719.1080803@domain.hid>
     [not found]                           ` <482CA5B9.3030203@domain.hid>
     [not found]                             ` <482CA862.9070105@domain.hid>
     [not found]                               ` <482D988A.8040503@domain.hid>
     [not found]                                 ` <48328F76.4090603@domain.hid>
2008-05-20  9:06                                   ` Wolfgang Grandegger [this message]
     [not found]                                   ` <4833A8F5.5070109@domain.hid>
     [not found]                                     ` <4834344E.4090706@domain.hid>
     [not found]                                       ` <48344261.2060102@domain.hid>
     [not found]                                         ` <4834501C.30709@domain.hid>
     [not found]                                           ` <48345105.1060008@domain.hid>
     [not found]                                             ` <48353FC2.3060708@domain.hid>
     [not found]                                               ` <49280.189.58.74.62.1211542371.squirrel@domain.hid>
2008-05-23 11:51                                                 ` [Xenomai-help] [Socketcan-users] RT - Socketcan Wolfgang Grandegger
2008-05-23 13:06                                                   ` Wolfgang Grandegger
     [not found]                                                     ` <48371813.6050007@domain.hid>
2008-05-23 19:52                                                       ` Wolfgang Grandegger
     [not found]                                                         ` <48372EFE.1070503@domain.hid>
2008-05-24  7:12                                                           ` Wolfgang Grandegger
     [not found]                                                             ` <483EC852.3080504@domain.hid>
2008-05-29 15:26                                                               ` Wolfgang Grandegger

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=483294AE.6050208@domain.hid \
    --to=wg@domain.hid \
    --cc=breno@domain.hid \
    --cc=socketcan@domain.hid \
    --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.