All of lore.kernel.org
 help / color / mirror / Atom feed
* Strange error with jspy utility
@ 2012-05-18 21:50 Abdul Khan
  2012-05-19  5:15 ` Kurt Van Dijck
  2012-05-19  9:06 ` Strange error with jspy utility Oliver Hartkopp
  0 siblings, 2 replies; 12+ messages in thread
From: Abdul Khan @ 2012-05-18 21:50 UTC (permalink / raw)
  To: linux-can

Hi

I am facing strange error with jspy utility provided with j1939-utils
package. I am using can-j1939-utils, iproute2 and
can-j1939-linux-3.3.0-rc6 provided by Kurt.

#./jspy -P -v

OUTPUT:
===================
 can0:20,0feda - !6 [1] 0a
 can1:20,0feda - !6 [1] 0a
 can0:40,0feda - !6 [1] 0a
 can1:40,0feda - !6 [1] 0a
 can0:40,0feda - !6 [1] 0a
 can1:40,0feda - !6 [1] 0a
===================

I did following steps before running the jsr utility.

#./ip link set can0 type can bitrate 125000 triple-sampling on
#./ip link set can1 type can bitrate 125000 triple-sampling on

#./ip link set can0 j1939 on
#./ip link set can1 j1939 on

#./ip addr add dev can0 j1939 0x20
#./ip addr add dev can1 j1939 0x40

#ifconfig can0 up
#ifconfig can1 up

#./jsr can0:20,feda | ./jsr can1:40,feda

Following configuration, I am using on Linux machine

#./uname -a

OUTPUT:
===================
Linux 3.3.0-rc6 #1 SMP Thu May 17 23:13:08 UTC 2012 i686 unknown
===================

#./lsmod

OUTPUT:
===================
Module                  Size  Used by    Not tainted
can_j1939              32312  0
sja1000_isa             3013  0
sja1000                 5344  1 sja1000_isa
can_dev                 5703  1 sja1000
can_raw                 4939  0
can                    20230  2 can_j1939,can_raw
===================

#./dmesg | grep can

OUTPUT:
===================
[    1.289519] rtc_cmos 00:05: RTC can wake from S4
[    1.455446] md: Scanned 0 and added 0 devices.
[    4.561925] can: controller area network core (rev 20090105 abi 8)
[    4.563889] can: raw protocol (rev 20090105)
[    4.601750] sja1000_isa sja1000_isa.0: can0: bit-timing not yet defined
[    4.606770] sja1000_isa sja1000_isa.1: can1: bit-timing not yet defined
[  598.521246] can: SAE J1939
===================

#./ip addr show

OUTPUT:
===================
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
    inet6 ::1/128 scope host
       valid_lft forever preferred_lft forever
2: eth0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast
state DOWN qlen 1000
    link/ether 00:01:05:0b:58:7e brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.2/24 brd 192.168.1.255 scope global eth0
3: sit0: <NOARP> mtu 1480 qdisc noop state DOWN
    link/sit 0.0.0.0 brd 0.0.0.0
4: can0: <NOARP,ECHO> mtu 16 qdisc noop state DOWN qlen 10
    link/can
    can-j1939 0x20 scope link
5: can1: <NOARP,ECHO> mtu 16 qdisc noop state DOWN qlen 10
    link/can
    can-j1939 0x40 scope link
===================

#./ifconfig

OUTPUT:
===================
can0      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:10 Base address:0x600

can1      Link encap:UNSPEC  HWaddr
00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
          UP RUNNING NOARP  MTU:16  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:10 Base address:0x680
===================


Thanks in advance.
Abdul.

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

end of thread, other threads:[~2012-05-29  7:40 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-05-18 21:50 Strange error with jspy utility Abdul Khan
2012-05-19  5:15 ` Kurt Van Dijck
2012-05-24 19:52   ` Abdul Khan
2012-05-29  7:37   ` Strange error with jspy utility: solved? Kurt Van Dijck
2012-05-19  9:06 ` Strange error with jspy utility Oliver Hartkopp
2012-05-24 20:30   ` Abdul Khan
2012-05-25  2:16     ` Oliver Hartkopp
2012-05-25 22:46       ` Abdul Khan
2012-05-26  6:21         ` Oliver Hartkopp
2012-05-26  6:57           ` Oliver Hartkopp
2012-05-29  7:40             ` Strange error with jspy utility: Bus problems Kurt Van Dijck
2012-05-26 18:29         ` Strange error with jspy utility Kurt Van Dijck

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.