
2/11/2020
TS-7100 - Technologic Systems Manuals
https://wiki.embeddedarm.com/w/index.php?title=TS-7100&printable=yes
12/44
"/etc/systemd/network/bridge.network"
[
Match
]
Name
=eth0
[
Network
]
Bridge
=br0
5.2.3 Cellular Data Network
5.2.3.1 NimbeLink Skywire modem
The CN16 XBee Socket is able to support NimbeLink Skywire Embedded modems. Information on setting up and
configuring the power and USB interface for Skywire modules can be found here. Please note that there are various
models of the Skywire modules that all support different interfaces. These include "cdc_ether", "cdc_ncm", USB
serial, and a simple TTL UART. Both the USB ethernet and NCM interfaces present a network device to the
system, while the USB serial and UART interfaces require PPP to manage the connection.
Please see the NimbeLink documentation for the specific module in use for more detailed information on
establishing connection with a cellular network via the modem.
5.3 Debian Application Development
5.3.1 Debian Stretch Cross Compiling
Debian Stretch provides cross compilers from its distribution. An install on a workstation can build for the same
release on other architectures. A Linux desktop or laptop PC, virtual machine, or chroot will need to be used for
this. Debian Stretch for a workstation can be downloaded from here (https://www.debian.org/releases/stretch/) .
From a Debian workstation (not the target), run these commands to set up the cross compiler:
# Run "lsb_release -a" and verify Debian 9.X is returned. These instructions are not
# expected to work on any other version or distribution.
su
root
# Not needed for the immediate apt-get install, but used
# so we can install package:armhf for cross compiling
dpkg
--add-architecture
armhf
apt-get update
apt-get install
curl build-essential crossbuild-essential-armhf
-y
This will install a toolchain that can be used with the prefix "arm-linux-gnueabihf-". The standard GCC tools will
start with that name, eg "arm-linux-gnueabihf-gcc".
The toolchain can now compile a simple hello world application. Create hello-world.c on the Debian workstation:
#include <stdio.h>
int
main
(){
printf
(
"Hello World
\n
"
)
;
}
To compile this: