background image

Crosslink TG 

Product revision: 2.1

Getting started guide 

2019-10-31

 
 

www.crosscontrol.com 

3

 

1.

 

Login 

The CrossLink TG can be accessed from the serial port or Ethernet. The easiest way is to connect 
the device to a router and it will be automatically assigned an IP address. The unit runs a SSH 
server so anyone can connect to it using the correct username and password. 

By default the root (super user) account is disabled for SSH login for security reasons, but a 
standard user account can be used: 

Username: ccs 

Password: default 

This normal user account does not have super user privileges, but by typing “su” and typing the 
root password, user is switched to root. The default root password is 

root 

ccs@arm:~$ su 

For a development machine, it might be necessary to allow root login via SSH for remote 
debugging and accessing hardware on the device during development. This can be done from a 
root login shell, and editing the file 

/etc/ssh/sshd_config

.  

In the “Authentication” section, enable root login as below. 

# Authentication: 

PermitRootLogin yes 

Do not connect a device directly to the Internet without changing default passwords and with root 
login enabled via SSH. When connecting via a GPRS modem it can be vulnerable and several 
security steps needs to be taken. 

 

2.

 

Development using LinX Software Suite DevEnv 4 

 

CrossControl provides a virtual machine for easier development with the CrossLink TG. The virtual 
machine, a Linux distribution, is configured for easy cross compilation and deployment. It comes 
pre-configured with development tools and the required software. 

 

2.1.

 

Qt 

The LinX-base package contains Qt runtime libraries. Qt is an open-source cross platform C++ 
library with many modules that can speed up development. Support for database handling, network 
communication, serial communication, CAN bus, GPS positioning, Bluetooth and much more. 

 

In the LinX software Suite, CrossControl provides Qt builds for all Linux based computers that can 
be built and deployed from the virtual machine. 

 

Summary of Contents for CrossLink TG

Page 1: ...Product revision 2 2019 10 23 Getting started guide Crosslink TG www crosscontrol com...

Page 2: ...remote device IP address 9 2 4 Scanning for a Device 10 3 Create and Deploy a Console Application 11 4 Auto starting an application during boot 14 5 Security 14 5 1 Using the uncomplicated firewall 1...

Page 3: ...n shell and editing the file etc ssh sshd_config In the Authentication section enable root login as below Authentication PermitRootLogin yes Do not connect a device directly to the Internet without ch...

Page 4: ...osslink tg sdk_1 0 0 1_all deb Reading database 141169 files and directories currently installed Preparing to unpack crosslink tg sdk_1 0 0 1_all deb Setting up crosslink tg sdk 1 0 0 1 ccs LinX VM Th...

Page 5: ...com 5 A typical Hello World application written in Qt for CrossLink TG The Qt Creator must be configured with the newly installed Qt libraries in order to be able to use it correctly Step 1 Open Tools...

Page 6: ...Crosslink TG and compiler path to opt TG gcc linaro 5 3 2016 02 x86_64_arm linux gnueabihf bin arm linux gnueabihf gcc Press Apply and then repeat for C compiler Add GCC C Set name GCC Crosslink TG a...

Page 7: ...2 Set the debugger Switch to the debugger tab and select the debugger opt TG gcc linaro 5 3 2016 02 x86_64_arm linux gnueabihf bin arm linux gnueabihf gdb Step 3 Configure Qt Switch to the Qt Version...

Page 8: ...t revision 2 1 Getting started guide 2019 10 31 www crosscontrol com 8 Step 4 Create the complete Kit Switch to the Kits tab and press Add button to create the build kit for Crosslink TG It should be...

Page 9: ...started guide 2019 10 31 www crosscontrol com 9 Press Ok and the setup is complete 2 3 Set remote device IP address To deploy and test an application on the CrossLink TG some settings need to be set i...

Page 10: ...vice The Crosslink TG will broadcast its IP address It can be read from the virtual machine with the application opt bin snb_reader The virtual machine may need to use a bridged adapter instead of the...

Page 11: ...ol com 11 3 Create and Deploy a Console Application To create a hello world application from Qt Creator it must be a console application since there is no graphical interface available for the Crossli...

Page 12: ...Crosslink TG Product revision 2 1 Getting started guide 2019 10 31 www crosscontrol com 12 Press Choose Press Next and select the qmake build system Then select the newly created Crosslink TG Kit...

Page 13: ...rosscontrol com 13 Press Next Select the option to enable version control if needed and then Finish Create a C Hello world application and press the green Run button to deploy it to the Crosslink TG I...

Page 14: ...target Service ExecStart opt bin myApplication Install multi user target corresponds to run level 3 WantedBy multi user target You must also create as root user a file named myapplication service in f...

Page 15: ...to the device will be disabled when the firewall is enabled To allow SSH login ufw allow ssh This enables ssh traffic on port 22 It is also possible to specify port number but ufw uses many common ke...

Reviews: