TX_ON led stays on

Hi all,

I’m developing an application on the mangOH red WP7702 (using the NB-IoT network of Vodafone in the Netherlands) where once every two minutes a message is sent. Everything works correct, but sometimes the TX_ON led stays on for minutes (consuming a lot of power) and sometimes it flashes shortly. Is there any way to monitor the LTE data connection? it almost seems some process is sending additional data over the LTE connection. A tool like tcpdump would be great, but is not installed on my mangOH red. I tried cm data watch, but the only output is:

Dl LTE FDD | Ul LTE FDD

Some help would be appreciated!

Best regards,
Frans.

Hi Frans,
I have successfully compiled tcpdump for WP7702 from sourcecodes myself using this configuration.

sudo apt-get install bison flex
export TOOLCHAIN_DIR=$(findtoolchain wp77xx)
export CC=$TOOLCHAIN_DIR/arm-poky-linux-gnueabi-gcc
cd tcpdump-4.7.3
./configure --host=arm-poky-linux --target=arm-poky-linux --with-pcap=linux
make
scp tcpdump root@192.168.2.2:

From the mangOH red:
./tcpdump -n -i rmnet_data0
works.

Hi mrjoso,

Thanks for your reply! I will try to do this myself tomorrow and see if I can see what is going on!

Best regards, Frans.

Hi mrjoso,

I was unable to compile tcpdump. I first tried to compile libpcap, but something is going wrong trying to cross-compile. The log is shown below. Probably i’m missing something obvious, but I have little cross-compile experience. Could you help me with this?

Best regards,
Frans.

configure:2429: checking build system type
configure:2443: result: x86_64-pc-linux-gnu
configure:2463: checking host system type
configure:2476: result: arm-poky-linux-gnu
configure:2496: checking target system type
configure:2509: result: arm-poky-linux-gnu
configure:2621: checking for arm-poky-linux-gcc
configure:2648: result: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
configure:2917: checking for C compiler version
configure:2926: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc --version >&5
arm-poky-linux-gnueabi-gcc (GCC) 6.2.0
Copyright © 2016 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2937: ? = 0 configure:2926: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -v >&5 Using built-in specs. COLLECT_GCC=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc COLLECT_LTO_WRAPPER=/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/lto-wrapper Target: arm-poky-linux-gnueabi Configured with: ../../../../../../work-shared/gcc-6.2.0-r0/gcc-6.2.0/configure --build=x86_64-linux --host=x86_64-pokysdk-linux --target=arm-poky-linux-gnueabi --prefix=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr --exec_prefix=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr --bindir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --sbindir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi --libexecdir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi --datadir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/share --sysconfdir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/etc --sharedstatedir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/com --localstatedir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/var --libdir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/lib/arm-poky-linux-gnueabi --includedir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/include --oldincludedir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/include --infodir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/share/info --mandir=/opt/swi/SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/share/man --disable-silent-rules --disable-dependency-tracking --with-libtool-sysroot=/work/build_src/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-gnu-ld --enable-shared --enable-languages=c,c++ --enable-threads=posix --enable-multilib --enable-c99 --enable-long-long --enable-symvers=gnu --enable-libstdcxx-pch --program-prefix=arm-poky-linux-gnueabi- --without-local-prefix --enable-lto --enable-libssp --enable-libitm --disable-bootstrap --disable-libmudflap --with-system-zlib --with-linker-hash-style=gnu --enable-linker-build-id --with-ppl=no --with-cloog=no --enable-checking=release --enable-cheaders=c_global --without-isl --with-gxx-include-dir=/not/exist/usr/include/c++/6.2.0 --with-build-time-tools=/work/build_src/tmp/sysroots/x86_64-linux/usr/arm-poky-linux-gnueabi/bin --with-sysroot=/not/exist --with-build-sysroot=/work/build_src/tmp/sysroots/swi-mdm9x28-wp --without-long-double-128 --enable-poison-system-directories --with-mpfr=/work/build_src/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --with-mpc=/work/build_src/tmp/sysroots/x86_64-nativesdk-pokysdk-linux --disable-static --enable-nls --enable-initfini-array --with-arch=armv7-a Thread model: posix gcc version 6.2.0 (GCC) configure:2937: ? = 0
configure:2926: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -V >&5
arm-poky-linux-gnueabi-gcc: error: unrecognized command line option ‘-V’
arm-poky-linux-gnueabi-gcc: fatal error: no input files
compilation terminated.
configure:2937: ? = 1 configure:2926: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc -qversion >&5 arm-poky-linux-gnueabi-gcc: error: unrecognized command line option '-qversion'; did you mean '--version'? arm-poky-linux-gnueabi-gcc: fatal error: no input files compilation terminated. configure:2937: ? = 1
configure:2957: checking whether the C compiler works
configure:2979: /opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc conftest.c >&5
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find crt1.o: No such file or directory
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find crti.o: No such file or directory
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find crtbegin.o: No such file or directory
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find -lgcc
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find -lgcc_s
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find -lc
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find -lgcc
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find -lgcc_s
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find crtend.o: No such file or directory
/opt/swi/y22-ext-SWI9X06Y_02.18.05.00/sysroots/x86_64-pokysdk-linux/usr/libexec/arm-poky-linux-gnueabi/gcc/arm-poky-linux-gnueabi/6.2.0/real-ld: cannot find crtn.o: No such file or directory
collect2: error: ld returned 1 exit status
configure:2983: $? = 1
configure:3021: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME “pcap”
| #define PACKAGE_TARNAME “pcap”
| #define PACKAGE_VERSION “1.9.0-PRE-GIT”
| #define PACKAGE_STRING “pcap 1.9.0-PRE-GIT”
| #define PACKAGE_BUGREPORT “”
| #define PACKAGE_URL “”
| /
end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3026: error: in /home/franskanters/tcp-dump/libpcap-1.9.0': configure:3028: error: C compiler cannot create executables Seeconfig.log’ for more details

----------------

Cache variables.

----------------

ac_cv_build=x86_64-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_YACC_set=
ac_cv_env_YACC_value=
ac_cv_env_YFLAGS_set=
ac_cv_env_YFLAGS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=arm-poky-linux
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=arm-poky-linux
ac_cv_host=arm-poky-linux-gnu
ac_cv_prog_CC=/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc
ac_cv_target=arm-poky-linux-gnu

-----------------

Output variables.

-----------------

ADDLARCHIVEOBJS=’’
ADDLOBJS=’’
AR=’’
BT_MONITOR_SRC=’’
BT_SRC=’’
BUILD_RPCAPD=’’
CC=’/opt/swi/y22-ext-wp77xx/sysroots/x86_64-pokysdk-linux/usr/bin/arm-poky-linux-gnueabi/arm-poky-linux-gnueabi-gcc’
CFLAGS=’’
CPP=’’
CPPFLAGS=’’
DBUS_SRC=’’
DEFS=’’
DEPENDENCY_CFLAG=’’
DYEXT=’’
ECHO_C=’’
ECHO_N=’-n’
ECHO_T=’’
EGREP=’’
EXEEXT=’’
EXTRA_NETWORK_LIBS=’’
GREP=’’
INSTALL_DATA=’’
INSTALL_PROGRAM=’’
INSTALL_RPCAPD=’’
INSTALL_SCRIPT=’’
LDFLAGS=’’
LEX=’’
LEXLIB=’’
LEX_OUTPUT_ROOT=’’
LIBOBJS=’’
LIBS=’’
LN_S=’’
LTLIBOBJS=’’
MAN_ADMIN_COMMANDS=’’
MAN_FILE_FORMATS=’’
MAN_MISC_INFO=’’
MKDEP=’’
NETFILTER_SRC=’’
NETMAP_SRC=’’
OBJEXT=’’
PACKAGE_BUGREPORT=’’
PACKAGE_NAME=‘pcap’
PACKAGE_STRING=‘pcap 1.9.0-PRE-GIT’
PACKAGE_TARNAME=‘pcap’
PACKAGE_URL=’’
PACKAGE_VERSION=‘1.9.0-PRE-GIT’
PATH_SEPARATOR=’:’
PCAP_SUPPORT_BT=’’
PCAP_SUPPORT_DBUS=’’
PCAP_SUPPORT_NETFILTER=’’
PCAP_SUPPORT_NETMAP=’’
PCAP_SUPPORT_PACKET_RING=’’
PCAP_SUPPORT_RDMASNIFF=’’
PCAP_SUPPORT_USB=’’
PKGCONFIG=’’
PTHREAD_LIBS=’’
RANLIB=’’
RDMA_SRC=’’
RPCAPD_LIBS=’’
SHELL=’/bin/bash’
SHLICC2=’’
SSRC=’’
USB_SRC=’’
VALGRINDTEST_SRC=’’
V_CCOPT=’’
V_DEFS=’’
V_FINDALLDEVS=’’
V_INCLS=’’
V_LEX=’’
V_PCAP=’’
V_RPATH_OPT=’’
V_SHLIB_CCOPT=’’
V_SHLIB_CMD=’’
V_SHLIB_OPT=’’
V_SONAME_OPT=’’
V_YACC=’’
YACC=’’
YFLAGS=’’
ac_ct_CC=’’
bindir=’{exec_prefix}/bin' build='x86_64-pc-linux-gnu' build_alias='' build_cpu='x86_64' build_os='linux-gnu' build_vendor='pc' datadir='{datarootdir}’
datarootdir=’{prefix}/share' docdir='{datarootdir}/doc/{PACKAGE_TARNAME}' dvidir='{docdir}’
exec_prefix=‘NONE’
host=‘arm-poky-linux-gnu’
host_alias=‘arm-poky-linux’
host_cpu=‘arm’
host_os=‘linux-gnu’
host_vendor=‘poky’
htmldir=’{docdir}' includedir='{prefix}/include’
infodir=’{datarootdir}/info' libdir='{exec_prefix}/lib’
libexecdir=’{exec_prefix}/libexec' localedir='{datarootdir}/locale’
localstatedir=’{prefix}/var' mandir='{datarootdir}/man’
oldincludedir=’/usr/include’
pdfdir=’{docdir}' prefix='NONE' program_transform_name='s,x,x,' psdir='{docdir}’
sbindir=’{exec_prefix}/sbin' sharedstatedir='{prefix}/com’
sysconfdir=’${prefix}/etc’
target=‘arm-poky-linux-gnu’
target_alias=‘arm-poky-linux’
target_cpu=‘arm’
target_os=‘linux-gnu’
target_vendor=‘poky’

-----------

confdefs.h.

-----------

/* confdefs.h */
#define PACKAGE_NAME “pcap”
#define PACKAGE_TARNAME “pcap”
#define PACKAGE_VERSION “1.9.0-PRE-GIT”
#define PACKAGE_STRING “pcap 1.9.0-PRE-GIT”
#define PACKAGE_BUGREPORT “”
#define PACKAGE_URL “”

configure: exit 77