How to measure DL/UL throughput with Thingy:91 ( no debbuger )

I would like to measure some basic parameters using Thingy:91.  Modem shell (MoSh) provides all the necessary tools. However, I was not able to build an image with iperf ( egion `FLASH' overflowed by 868 bytes) . Do I understand correctly that there is no other way to create such image when developing using USB flash ?

BR

Parents Reply Children
  • Hi ,

    I've modified prj.conf

    CONFIG_MOSH_IPERF3=y
    CONFIG_MOSH_SOCK=n
    CONFIG_MOSH_PING=n
    CONFIG_MOSH_CURL=n
    CONFIG_MOSH_LINK=y
    CONFIG_MOSH_SMS=n
    CONFIG_MOSH_GNSS=n
    CONFIG_MOSH_LOCATION=n

    and build failed with error

    region `FLASH' overflowed by 868 bytes

  • Any special reason to disable them?

    Without modification, it will not cause the overflow. 

    -Amanda H.

  • I intended to create a smaller image. Looks like I still have to learn a lot. I've prepared a clean build with following configuration

    CONFIG_MOSH_IPERF3=y
    CONFIG_MOSH_SOCK=y
    CONFIG_MOSH_PING=y
    CONFIG_MOSH_CURL=n
    CONFIG_MOSH_LINK=y
    CONFIG_MOSH_SMS=y
    CONFIG_MOSH_GNSS=n
    CONFIG_MOSH_LOCATION=n

    however iperf command is not visible

    Available commands:
      at                 :Execute an AT command.
      clear              :Clear screen.
      cloud_rest         :Send nRF Cloud command over REST
      date               :Date commands
      flash              :Flash shell commands
      heap               :Print heap usage statistics.
      help               :Prints the help message.
      history            :Command history.
      i2c                :I2C commands
      kernel             :Kernel commands
      link               :Commands for LTE link controlling and status information.
      log                :Commands for controlling logger
      nrf_clock_control  :Clock control commands
      ping               :For ping usage, just type "ping"
      print              :Commands for shell output formatting.
      regulator          :Regulator playground
      resize             :Console gets terminal screen size or assumes default in
                          case the readout fails. It must be executed after each
                          terminal width change to ensure correct text display.
      retval             :Print return value of most recent command
      shell              :Useful, not Unix-like shell commands.
      sleep              :Sleep for n seconds.
      startup_cmd        :Command to store MoSH commands to be run sequentially
                          after a bootup.
      uart               :Commands for disabling UARTs for power measurement.

  • finch said:
    I intended to create a smaller image.

    You could try to build with overlay-non-offloading.conf. 

    -Amanda H.

  • I did clean build

    overlay-non-offloading.conf

    CONFIG_MOSH_NRF91_NON_OFFLOADING_DEV=y

    CONFIG_MOSH_PPP=n
    CONFIG_MOSH_IPERF3=y
    CONFIG_MOSH_WORKER_THREADS=n
    CONFIG_MOSH_SOCK=n
    CONFIG_MOSH_PING=y
    CONFIG_MOSH_CURL=n
    CONFIG_MOSH_LINK=y
    CONFIG_MOSH_GNSS=n
    CONFIG_MOSH_SMS=n
    CONFIG_MOSH_LOCATION=n
    CONFIG_MOSH_REST=n
    CONFIG_MOSH_CLOUD_REST=n
    CONFIG_MOSH_AT_CMD_MODE=n
    CONFIG_MOSH_STARTUP_CMDS=n
    CONFIG_MOSH_FOTA=n

    Error :

    FAILED: zephyr/zephyr_pre0.elf zephyr/zephyr_pre0.map
    cmd.exe /C "cd . && C:\ncs\toolchains\c57af46cb7\opt\zephyr-sdk\arm-zephyr-eabi\bin\arm-zephyr-eabi-gcc.exe  -gdwarf-4 @CMakeFiles\zephyr_pre0.rsp -o zephyr\zephyr_pre0.elf  && cmd.exe /C "cd /D C:\ncs\v2.5.0\nrf\samples\cellular\modem_shell\build_1\zephyr && C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.exe -E true""
    c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: zephyr\zephyr_pre0.elf section `rodata' will not fit in region `FLASH'
    c:/ncs/toolchains/c57af46cb7/opt/zephyr-sdk/arm-zephyr-eabi/bin/../lib/gcc/arm-zephyr-eabi/12.2.0/../../../../arm-zephyr-eabi/bin/ld.bfd.exe: region `FLASH' overflowed by 15092 bytes
    collect2.exe: error: ld returned 1 exit status
    ninja: build stopped: subcommand failed.
    FATAL ERROR: command exited with status 1: 'C:\ncs\toolchains\c57af46cb7\opt\bin\cmake.EXE' --build 'c:\ncs\v2.5.0\nrf\samples\cellular\modem_shell\build_1'

Related