Dyacon ControlTrac CT650 User manual

** Preliminary **
CT650
ControlTrac Computer
(Linux OS)
57-6075 Rev B

CT650 Manual
This page intentionally left blank.
2 © 2020 Dyacon, Inc

CT650 Manual
Contents
NOTICES........................................................................................................................................................5
© Copyright 2019 Dyacon, Inc..........................................................................................................5
Manufacturer......................................................................................................................................5
Declarations........................................................................................................................................6
Warranty Infor ation.........................................................................................................................6
CT650 INTRODUCTION..............................................................................................................................8
Scope.........................................................................................................................................................8
Technical Support......................................................................................................................................8
Contact Infor ation...........................................................................................................................8
Phone / E ail Support.......................................................................................................................8
PRODUCT OVERVIEW...............................................................................................................................9
Features......................................................................................................................................................9
Electrical Architecture...............................................................................................................................9
Mechanical Architecture.........................................................................................................................10
Connectors...............................................................................................................................................10
External Connectors A (Grey) and B (Black)..................................................................................10
Console Port.....................................................................................................................................11
DEVELOPER INFORMATION.................................................................................................................13
Develop ent Environ ent.....................................................................................................................13
Kernel version..................................................................................................................................13
Develop ent Tools..........................................................................................................................13
Console Port.....................................................................................................................................14
Login Infor ation............................................................................................................................14
File Syste .......................................................................................................................................14
Dual Boot Partitions.........................................................................................................................14
Building fro source........................................................................................................................14
More infor ation.............................................................................................................................15
Updating the OS on the CT650...............................................................................................................16
Digital Outputs........................................................................................................................................17
sysfs option.......................................................................................................................................18
libgpiod option.................................................................................................................................18
Digital Inputs....................................................................................................................................19
sysfs option.......................................................................................................................................19
libgpiod option.................................................................................................................................19
Power-Good Signal.................................................................................................................................20
Serial Ports...............................................................................................................................................20
CAN Bus Port..........................................................................................................................................20
Bring port up....................................................................................................................................20
Testing..............................................................................................................................................20
On DUT............................................................................................................................................20
On Host (unit used as a test fixture).................................................................................................21
Audio.......................................................................................................................................................21
Cell Phone Module..................................................................................................................................21
GPIO Pins used for odule control.................................................................................................21
Powering odule.............................................................................................................................21
Powering odule down....................................................................................................................21
Testing UART connection...............................................................................................................22
© 2020 Dyacon, Inc 3

CT650 Manual
Activating network connection using q icli...................................................................................22
Cell Phone Module Infor ation.......................................................................................................22
Activating network connection using PPP.......................................................................................22
More Cell Phone Module Infor ation.............................................................................................23
GPS..........................................................................................................................................................23
More infor ation.............................................................................................................................23
Application..............................................................................................................................................24
Software Updating...........................................................................................................................24
Si ple application updating.............................................................................................................24
Swupdate updating...........................................................................................................................24
Issues.......................................................................................................................................................24
Revision History......................................................................................................................................25
4 © 2020 Dyacon, Inc

CT650 Manual
Notices
© Copyright 2020 Dyacon, Inc.
All Rights Reser ed
This publication is protected by copyright and all rights are reserved. Any reproduction of this
anual, in part or in full, by any eans, echanical, electronic, or otherwise, is strictly prohibited
without express written per ission fro Dyacon, Inc.
The infor ation in this anual has been carefully checked and is believed to be accurate.
However, Dyacon, Inc. assu es no responsibility for any inaccuracies that ay be contained in
this anual. All infor ation is subject to change.
Trademark Acknowledgments
DYACON is a registered trade ark of Dyacon, Inc.
ControlTrac is a trade ark of Dyacon, Inc.
DYACON, CT650 are trade arks of Dyacon, Inc.
All other trade arks are property of their respective owners.
Manufacturer
Dyacon, Inc.
1770 Research Park Way, Suite 168
North Logan, UT 84341
USA
© 2020 Dyacon, Inc 5

CT650 Manual
Declarations
ControlTracTM CT650 is a low-power electronic industrial device.
RoHS
All electronic and echanical co ponents confor to RoHS, Directive 2002/95/EC.
FCC CFR Part 15
This equip ent co plies with the li its for a Class A digital device, pursuant to part 15 of the
FCC Rules. These li its are designed to provide reasonable protection against har ful
interference in a co ercial installation.
Warranty Information
Limited Hardware Warranty
Dyacon, Inc. warrants that all ControlTrac products and co ponents shall be free fro defects in
aterials and work anship for a period of one (1) year fro the date of ship ent when installed
according to instruction anuals acco panying said hardware and used for the purpose for which
said hardware was designed. In the event a defect in aterials or work anship is discovered and
reported to Dyacon within the warranty period, Dyacon will at its option repair the defect or
replace the defective product. This warranty does not apply where the product has been operated
outside the specifications of the product. Dyacon’s obligation hereunder will be li ited to such
repair or replace ent. Custo ers shall have the responsibility to ship the defective equip ent to
Dyacon at its (custo er’s) expense, with all cost of ship ent prepaid. Dyacon will ship the
repaired or replaced ite at its (Dyacon’s) expense using the preferred ship ent ethod of
Dyacon.
Disclaimer of Warranties
The warranties set forth above are in lieu of all other warranties of Dyacon, whether written, oral,
or i plied. Dyacon akes no warranties regarding its products (hardware or software), including
without li itation warranties as to erchantability, fitness for a particular purpose, any warranty
arising fro course of perfor ance, course of dealing or usage of trade whether any of the
foregoing warranties are either expressed or i plied. Dyacon specifically akes no warranties as
to the suitability of its products for any particular application. Dyacon shall in no event be liable
for perfor ance, or use of any product covered by this agree ent whether such clai is based
upon warranty contract (express or i plied), strict liability, negligence, or otherwise. Any
responsibility and/or liability of Dyacon shall, in connection with a warranted product, be li ited
in axi u a ount to the original purchase price of that product.
Remo al of Serial Number
Re oval of the original serial nu ber label or reprogra ing of the electronic serial nu ber
voids any warranty on the device. Dyacon will not repair or update products if the serial nu ber
label issing or legiti ate ownership cannot be verified. Dyacon ay not return equip ent that
is issing serial nu bers or where legiti ate ownership is in question.
Updates or Modifications
Dyacon shall be under no obligation to update or odify its products except as herein noted to
correct defects or errors. Custo er agrees that all representation and warranties contained herein
6 © 2020 Dyacon, Inc

CT650 Manual
shall be i ediately null and void in the event of incorrect installation, odification, alteration,
or change in or to any product affected by or on behalf of custo er except for a change ade by
Dyacon or other direct supervision thereof.
© 2020 Dyacon, Inc 7

CT650 Manual
CT650 Introduction
Scope
The content of this docu ent is intended for developers, integrators, and installers of CT650.
This docu ent does not include infor ation related to integration into vehicle syste s.
Integrators and installers are responsible for observing proper electrical and electronic standards
and applicable safety easures when connecting CT650 to vehicle syste s.
Technical Support
Contact Information
Dyacon, Inc.
1770 Research Park Way, Suite 168
North Logan, UT 84341
Phone: (435) 753-1002
Internet: www.dyacon.co
Nor al business hours are fro 8:00 a to 5:00 p . (Mountain Ti e Zone, GMT -0700)
Phone / Email Support
If you need technical support via the phone or e ail, please have the following infor ation ready:
Product na e, odel nu ber, and serial nu ber.
Your na e and na e of the purchaser of the equip ent.
Na e of co pany, institution, or agency.
Phone nu ber, e ail address.
Billing and Shipping address.
A clear description of the question or proble .
8 © 2020 Dyacon, Inc

CT650 Manual
Product Overview
Features
CT650 uses an adaptable board configuration that allows the device to be custo ized to eet the
price and feature needs of a wide range of integrators. This anual covers all of the available
hardware options, so e of which ay not be available on custo board options.
Standard Features
Linux operating syste
Console port for develop ent
Digital input (3x)
Digital output (3x)
Ethernet
Can-bus
RS-485
RS-232
Optional Features
Audio in and out
Push-to-talk (Digital output 4) trans itter activation
Uninterruptible power supply
Cell phone
WiFi
GPS
Real-ti e clock with backup battery
Micro SD card holder
Micro USB
Electrical Architecture
CT650 uses a single circuit board for all processor and I/O options. The wireless odule (cell
phone or WiFi) is a plug-in option. This allows for technology upgrades and easy service.
Vehicle power is supplied directly to the ain circuit board.
© 2020 Dyacon, Inc 9

CT650 Manual
Mechanical Architecture
A splash-resistant, co pact enclosure includes rugged ounting features and sealed connectors.
SMA connectors are used for both cell phone and GPS.
Connectors
External Connectors A (Grey) and B (Black)
The external connectors are used for attaching CT650 to external power and signals in a vehicle.
The connectors are auto otive-style, providing sealing and vibration resistance for each wire.
Mating Connector Components
The external connectors are Deutsch DTM series and can be found at https://laddinc.co and
other distributors.
Connector A, Grey: Deutsch DTM06-12SA
Connector B, Black: Deutsch DTM06-12SB
Contacts (receptacles): 1060-20-0122 (Stocked by Dyacon. 22-16 AWG wire)
Alternates: 0462-201-20141, 0462-201-2031, 1062-20-0144, 1062-20-0222
Pin Out
C nnect r:Pin Signal Descripti n
A:1 CAN High
A:2 Ethernet TX-
A:3 Ethernet TX+
A:4 Digital Output 2
A:5 Digital Output 1
A:6 Ground
A:7 Power Input
10 © 2020 Dyacon, Inc
Dig Out 1
7 8 9 10 11 12
6 5 4 3 2 1
Power In
Dig Out 2
Ethernet X+
Ethernet X-
CAN Low
Ground
Dig Input 1
Dig Input 2
Ethernet TX+
Ethernet TX-
CAN High
1 2 3 4 5 6
12 11 10 9 8 7
S-485 B(-)
Ground
S-232 TX
Audio Gnd
Audio Out
S-485 A(+)
Ground
Dig Input 3
S-232 X
Dig Output (PTT)
Audio In
Dig Output 3
A
Grey
B
Black

CT650 Manual
A:8 Digital Output 1
A:9 Digital Output 2
A:10 Ethernet RX+
A:11 Ethernet RX-
A:12 CAN Low
C nnect r:Pin Signal Descripti n
B:1 RS-485 B-
B:2 Digital Output 3
B:3 Ground
B:4 RS-232 TX
B:5 Audio Ground
B:6 Audio Out
B:7 Audio In
B:8 Digital Output 4 (PTT)
B:9 RS-232 RX
B:10 Digital Input 3
B:11 Ground
B:12 RS-485 A+
Console Port
Progra ing and developer interaction with the Linux operating syste is done through the
console port. The console port is located on header by the ain connector.
Pin 1 is indicated by a s all white triangle.
Signals levels are 3.3 volt UART TTL. A signal conver ter is needed in order to connect the
console port to a PC.
Dyacon has used FTDI TTL-232R-3V3 USB to UART converter with a odified connector.
These are available fro electronic co ponent distributors, such as Mouser and Digikey. The
converter is supplied with a six-pin
receptacle. This ust be odified to the
following.
Pin Number Pr cess r Pin
1 TX (Output)
2 RX (Input)
3 GND
Contact Dyacon if you would like us to
supply you with a odified converter.
© 2020 Dyacon, Inc 11

CT650 Manual
Serial Port Settings
The default port settings for the console port are:
Baud rate: 115200
Data Bits: 8
Parity: None
Stop Bits: 1
Flow Control: None
12 © 2020 Dyacon, Inc

CT650 Manual
eveloper Information
De elopment En ironment
Kernel ersion
Linux 4.14.73
U-boot 2018.07
De elopment Tools
The develop ent tools have been build using Ubuntu 18.04.
The develop ent toolchain can be obtained at
https://drive.google.co /open?id=1K9EeAicM1Nnls0qH-MTj ZF0cGxpjkSt
Extract the toolchain to your desired location. After doing so, run the relocate-sdk.sh script to
update the paths to the new location.
The si plest way to use the toolchain is to add the {extraction directory}/bin/ to your PATH
environ ent variable and then to use ar -linux-gcc, ar -linux-ld, etc.
Exa ple:
mkdir ~/CT650-toolchain
tar -xvf CT650-toolchain.tar.xz -C ~/CT650-toolchain/
cd ~/CT650-toolchain
./relocate-sdk.sh
cd ~/testapp/
!
arm-linux-gcc hello.c -o hello
© 2020 Dyacon, Inc 13

CT650 Manual
Console Port
Login Information
User: root
Password: OneRainCt650
File System
The syste contains the following partitions:
cblk0p2 – boot partition A
cblk0p3 – boot partition B
cblk0p5 – key storage – Mounted at /key
cblk0p6 – rootfs partition A – Mounted at /
cblk0p7 – rootfs partition B
cblk0p8 – app partition A – Overlayed at /app, /etc, and /lib in rootfs partition A
cblk0p9 – app partition B – Overlayed at /app, /etc, and /lib in rootfs partition B
cblk0p10 – data – Mounted at /data
When received the syste is configured to use boot partition 1 and rootfs partition 1. Application
executable should be placed in the rootfs partition. Application data should be placed in the data
partition which is ounted at /data.
The syste has dual boot and rootfs partitions to allow the swupdate tool to do a dual i age
update.
Dual Boot Partitions
NOTE: After boot, the boot count variable located at "#$$needs to be cleared by writing
a value of %&'()*+(
,
devmem 0xF804540C 32 0xB0010000
Building from source
Buildroot is used to build the OS and root file syste for the CT650. As the CT650 is sold only to
integrators, the odifications done for the CT650 is not public. Please contact your integrator to
get a copy of the open source files used for your certain version of CT650. If you are an integrator
please contact Dyacon to receive an invitation to the github repo.
To configure Buildroot for the CT650, use the following instructions.
cd ~/
git clone https //github.com/ericrjohn/ct650.git
git clone https //github.com/linux4sam/buildroot-external-
microchip.git
cd buildroot-external-microchip/
14 © 2020 Dyacon, Inc

CT650 Manual
git checkout linux4sam_6.0 -b buildroot-external-microchip-
linux4sam_6.0
cd ../ct650/
git checkout buildroot-at91-linux4sam_6.0
BR2_EXTERNAL=../buildroot-external-microchip/ make
atmel_sama5d27_som1_ct650_defconfig
Build the syste .
make
Configuration changes can be ade using enuconfig.
make menuconfig
So eti es the changes ade will require a cleaning to build properly. If ake fails after a
change, clean and try again. When re oving a package, it is required to do a clean to re ove the
output files fro the root filesyste .
make clean
More information
https://www.at91.co /linux4sa /bin/view/Linux4SAM/
BuildRootBuild#How_to_build_Buildroot_for_AT91
© 2020 Dyacon, Inc 15

CT650 Manual
Updating the OS on the CT650
Obtain the latest i age fro https://drive.google.co /open?id=10i_kAFYX38-
E tCGV219I2o1ajRuZjvq
Update the CT650 using the following process:
1. Download and extract
the latest i age.
2. Connect to the console
port using a ter inal
progra as described in
the Console Port section
of this docu ent.
3. Attach a USB icro
cable to the unit using
the connector on the
back edge of the board.
If your co puter needs
drivers, the drivers are
located in sa -ba_3.2.3\
driver.
4. Re ove the circuit
board asse bly fro the
case.
5. Using tweezers ora
si ilar tools, activate
progra ing ode by
shorting the PROG
resistor pads while
shorting and releasing
the RESET pads.
Ensure that the short is
held on the PROG pins
until ‘Ro BOOT’ is
seen on the ter inal
and booting stops.
16 © 2020 Dyacon, Inc

CT650 Manual
6. Using PowerShell (Shift+Rt Click in directory), run the following co ands.
Run "0 - Load qspi.bat"
Run "1 - Set Boot qspi.bat"
Run "2 - Load emmc.bat"
Boot unit
Format data partition
cd /
mkfs.ext4 /dev/mmcblk0p10
mount data
cd /data
chmod 755 .
Allow the loading to continue until you see:
Press any key to continue . . .
7. Reset or reboot CT650.
8. Depending on the update, the data partition will need to be for atted and the unit rebooted
before it will ount.
mkfs.ext4 /dev/mmcblk0p10
© 2020 Dyacon, Inc 17

CT650 Manual
LED Control
Turn on:
echo 1 > /sys/class/leds/red/brightness
echo 1 > /sys/class/leds/green/brightness
Turn off:
echo 0 > /sys/class/leds/red/brightness
echo 0 > /sys/class/leds/green/brightness
Digital Outputs
Digital outputs are controlled fro the following icroprocessor pins:
Output Number Pr cess r Pin GPIO Number
1 PC18 82
2 PC25 89
3 PC16 80
4 PC11 75
sysfs option
Setup output 1:
echo 82 > /sys/class/gpio/export
echo out > /sys/class/gpio/PC18/direction
Turn on:
echo 1 > /sys/class/gpio/PC18/value
Turn off:
echo 0 > /sys/class/gpio/PC18/value
libgpiod option
,(*-./0,-((.+,(('1
++(
2 '.23&45,/665
67-689:6+6+66'(+
18 © 2020 Dyacon, Inc

CT650 Manual
gpioset gpiochip0 82=0 89=0 80=0 75=0
NOTE: While co and line usage is shown, when executing fro an application libgpiod C API
can be used.
© 2020 Dyacon, Inc 19

CT650 Manual
Digital Inputs
Digital Inputs and their pull resistors are controlled fro the following icroprocessor pins:
Input Number Pr cess r Pin GPIO Number
1 PC12 76
2 PC17 81
3 PC21 85
Input Pull Number Pr cess r Pin GPIO Number Default
1 PC9 73 Pulled High
2 PC13 77 Pulled High
3 PC19 83 Pulled High
sysfs option
Setup input 1:
echo 76 > /sys/class/gpio/export
echo 1 > /sys/class/gpio/PC12/active_low
Read:
cat /sys/class/gpio/PC12/value
Setup input pull 1:
echo 73 > /sys/class/gpio/export
echo out > /sys/class/gpio/PC9/direction
echo 1 > /sys/class/gpio/PC9/active_low
Pull high:
echo 1 > /sys/class/gpio/PC9/value
Pull low:
echo 0 > /sys/class/gpio/PC9/value
libgpiod option
gpioset -l gpiochip0 73=1 77=1 83=1
gpioget -l gpiochip0 76 81 85
20 © 2020 Dyacon, Inc
Table of contents