Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ping6 is failing when testing with cc2538dk #13997

@gustavosinbandera1

Description

@gustavosinbandera1

Description

I Cannot get reply from ping6 command.
Building application "gnrc_networking" for "cc2538dk" with MCU "cc2538".

Steps to reproduce the issue

  • cd RIOT/examples/gnrc_networking
  • make
  • make emulate

The emulation is from renode and I have deployed three nodes with the next configuration.

machine.resc

mach create $name
using sysbus
machine LoadPlatformDescription @platforms/cpus/cc2538.repl

connector Connect sysbus.radio wireless

machine PyDevFromFile @scripts/pydev/rolling-bit.py 0x400D2004 0x4 True "sysctrl"

# get an id value starting with 1
$id = `next_value 1`

macro reset
"""
    # set node address based on the $id variable. 0x00 0x12 0x4B is TI OUI
    sysbus WriteByte 0x00280028 $id
    sysbus WriteByte 0x0028002C 0x00
    sysbus WriteByte 0x00280030 0xAB
    sysbus WriteByte 0x00280034 0x89
    sysbus WriteByte 0x00280038 0x00
    sysbus WriteByte 0x0028003C 0x4B
    sysbus WriteByte 0x00280040 0x12
    sysbus WriteByte 0x00280044 0x00
    sysbus LoadBinary @http://antmicro.com/projects/renode/cc2538_rom_dump.bin-s_524288-0c196cdc21b5397f82e0ff42b206d1cc4b6d7522 0x0
    sysbus LoadELF $image_file
    cpu VectorTableOffset 0x200000
"""

runMacro $reset

board.resc

path add $CWD
emulation CreateWirelessMedium "wireless"

# The radio is using a range-based medium (with the `Range` set to `11`)
# If not set, the default SimpleMediumFunction will be used (where range is not relevant)
wireless SetRangeWirelessFunction 100

######################### Machine A - begin #########################
$name="Node-A"
i $ORIGIN/machine.resc
wireless SetPosition radio 0 0 0
showAnalyzer sysbus.uart0
mach clear
start
########################## Machine A - end ##########################

######################### Machine B - begin #########################
$name="Node-B"
i $ORIGIN/machine.resc
wireless SetPosition radio 70 70 0
showAnalyzer sysbus.uart0
mach clear
start
########################## Machine B - end ##########################

######################### Machine C - begin #########################
$name="Node-C"
i $ORIGIN/machine.resc
wireless SetPosition radio 170 70 0
showAnalyzer sysbus.uart0
mach clear
start
########################## Machine C - end ##########################

Behavior

When simulation start , three nodes with analyzer are available, the IP for each machine are:
fe80::200:1:0:0
fe80::200:2:0:0
fe80::200:3:0:0

Actual results

when ping6 is carry out over any node , the output is the following:

 ping6 fe80::200:3:0:0
12 bytes from fe80::200:3:0:0%7: icmp_seq=0 ttl=64 rssi=94 dBm time=0.000 ms

And the shell is blocked
image
image

Versions

RIOT
commit 0e972f6 (HEAD -> 2020_02_04-cc13xx-driver)

I would like to know if there are any way to measure network performance, I am working on AODV routing protocol and really could be awesome to have any way to get statistics from network performance

Metadata

Metadata

Labels

Area: driversArea: Device driversArea: networkArea: NetworkingPlatform: ARMPlatform: This PR/issue effects ARM-based platformsType: bugThe issue reports a bug / The PR fixes a bug (including spelling errors)

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions