Post Go back to editing

adf7242 ping test Q&A

Hi!

I am trying to ping test on raspberry pi 3 b plus,  as detailed here. I am able to configure the linux kernel for adf7242, modify the .dts file appropriately.

  • kernel : 4.19.86-v7+
  • dts : bcm2710-rpi-3-b-plus.dts

Below is connected between raspberry pi and adf7242.

raspberry pi          |        adf7242

bcm10(MOSI)   <--->    PIN2(SDI)

bcm9(MISO)     <--->    PIN3(SDO)

bcm11(SCLK)   <--->    PIN4(SCLK)

bcm8(CE0)       <--->    PIN1(CS)

bcm26              <--->     PIN7(IRQ1)

Below mentioned is the DTS entry.

spidev0: adf7242@0{

       copatible = "adi, adf7242";

       spi-max-frequency = <100000000>;

       reg = <0>;

       interrupt-parent = <&gpio>;

       intterrupts = <26 IRQ_TYPE_LEVEL_HIGH>;

 

       adi,hw-aack-mode-enable;

       adi,auto-csma-ca-mode-enable;

       adi,report-ack-frams-enable;

};

After booting, Kernel message :

adf7242 spi0.0: mac802154 IRQ-167 registered

And lowpan0 is set below:

HW_ADDR="a0:0:0:0:0:0:0:1"

IPV6_ADDR="2001::1/128"

sudo iwpan dev wpan0 set pan_id 0x777

sudo iwpan phy phy0 set channel 0 11

sudo iwpan dev wpan0 set ackreq_default 1

sudo ip link set wpan0 address ${HW_ADDR}

sudo ip link add link wpan0 name lowpan0 type lowpan

sudo ip addr add ${IPV6_ADDR} dev lowpan0

sudo ifconfig wpan0 up

sudo ifconfig lowpan0 up

sudo ip route add 2001::/64 dev lowpan0

After setting, kernel message :

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xf4 (200)

adf7242 spi0.0: adf7242_isr : ERROR IRQ1 = 0x0

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xf4 (200)

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xf4 (200)

adf7242 spi0.0: adf7242_isr : ERROR IRQ1 = 0x0

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xf4 (200)

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xe8 (200)

adf7242 spi0.0: adf7242_wait_status:line 589 timeout status 0xe8 (200)

Last I am try to ping test between raspberry pi and other raspberry pi.

pi@raspberrypi:~/test $ sudo ping6 -I lowpan0 2001::2

PING 2001::2(2001::2) from 2001::1 lowpan0: 56 data bytes

From 2001::1: icmp_seq=1 Destination unreachable: Address unreachable

From 2001::1: icmp_seq=2 Destination unreachable: Address unreachable

From 2001::1: icmp_seq=3 Destination unreachable: Address unreachable

What is problem?

Parents Reply Children
No Data