background image

** Preliminary **

CT650

ControlTrac Computer

(Linux OS)

57-6075 Rev B

Summary of Contents for ControlTrac CT650

Page 1: ... Preliminary CT650 ControlTrac Computer Linux OS 57 6075 Rev B ...

Page 2: ...CT650 Manual This page intentionally left blank 2 2020 Dyacon Inc ...

Page 3: ... Environment 13 Kernel version 13 Development Tools 13 Console Port 14 Login Information 14 File System 14 Dual Boot Partitions 14 Building from source 14 More information 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 DU...

Page 4: ...ne Module Information 22 Activating network connection using PPP 22 More Cell Phone Module Information 23 GPS 23 More information 23 Application 24 Software Updating 24 Simple application updating 24 Swupdate updating 24 Issues 24 Revision History 25 4 2020 Dyacon Inc ...

Page 5: ...in this manual has been carefully checked and is believed to be accurate However Dyacon Inc assumes no responsibility for any inaccuracies that may be contained in this manual All information is subject to change Trademark Acknowledgments DYACON is a registered trademark of Dyacon Inc ControlTrac is a trademark of Dyacon Inc DYACON CT650 are trademarks of Dyacon Inc All other trademarks are proper...

Page 6: ...ipment method of Dyacon Disclaimer of Warranties The warranties set forth above are in lieu of all other warranties of Dyacon whether written oral or implied Dyacon makes no warranties regarding its products hardware or software including without limitation warranties as to merchantability fitness for a particular purpose any warranty arising from course of performance course of dealing or usage o...

Page 7: ... null and void in the event of incorrect installation modification alteration or change in or to any product affected by or on behalf of customer except for a change made by Dyacon or other direct supervision thereof 2020 Dyacon Inc 7 ...

Page 8: ...rt Contact Information Dyacon Inc 1770 Research Park Way Suite 168 North Logan UT 84341 Phone 435 753 1002 Email support dyacon com Internet www dyacon com Normal business hours are from 8 00 am to 5 00 pm Mountain Time Zone GMT 0700 Phone Email Support If you need technical support via the phone or email please have the following information ready Product name model number and serial number Your ...

Page 9: ... development 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 transmitter activation Uninterruptible power supply Cell phone WiFi GPS Real time 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 module cell ...

Page 10: ...dinc com 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 Connector Pin Signal Description 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...

Page 11: ...ole port The console port is located on header by the main connector Pin 1 is indicated by a small 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 modified connector These are available from electronic component distributors such as Mouser and Digikey The co...

Page 12: ...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 ...

Page 13: ... toolchain to your desired location After doing so run the relocate sdk sh script to update the paths to the new location The simplest way to use the toolchain is to add the extraction directory bin to your PATH environment variable and then to use arm linux gcc arm linux ld etc Example mkdir CT650 toolchain tar xvf CT650 toolchain tar xz C CT650 toolchain cd CT650 toolchain relocate sdk sh cd tes...

Page 14: ...and rootfs partitions to allow the swupdate tool to do a dual image update Dual Boot Partitions NOTE After boot the boot count variable located at 0xF804540C needs to be cleared by writing a value of 0xB0010000 This can be done in the user s application or from the command line using devmem 0xF804540C 32 0xB0010000 Building from source Buildroot is used to build the OS and root file system for the...

Page 15: ... make Configuration changes can be made using menuconfig make menuconfig Sometimes the changes made will require a cleaning to build properly If make fails after a change clean and try again When removing a package it is required to do a clean to remove the output files from the root filesystem make clean More information https www at91 com linux4sam bin view Linux4SAM BuildRootBuild How_to_build_...

Page 16: ...ort section of this document 3 Attach a USB micro cable to the unit using the connector on the back edge of the board If your computer needs drivers the drivers are located in sam ba_3 2 3 driver 4 Remove the circuit board assembly from the case 5 Using tweezers ora similar tools activate programming mode by shorting the PROG resistor pads while shorting and releasing the RESET pads Ensure that th...

Page 17: ...c 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 formatted and the unit rebooted before it will mount mkfs ext4 dev mmcblk0p10 2020 Dyacon Inc 17 ...

Page 18: ...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 The libgpiod option is the way Linux is moving towards and sysfs is being depreciated More info can be found here https linuxpiter com system attachment...

Page 19: ...CT650 Manual gpioset gpiochip0 82 0 89 0 80 0 75 0 NOTE While command line usage is shown when executing from an application libgpiod C API can be used 2020 Dyacon Inc 19 ...

Page 20: ...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 ...

Page 21: ...4 55 gpioget gpiochip0 53 55 Serial Ports The following serial ports are available on the unit Port Device RS485 Port 1 dev ttyS1 RS485 Port 2 dev ttyS3 RS232 dev ttyS2 Cell UART Port dev ttyS4 CAN Bus Port Bring port up gpioset gpiochip0 122 0 Enable driving the bus This should be automatic in the future ip link set can0 up type can bitrate 1000000 Testing NOTE It is critical to have a terminatio...

Page 22: ...ight find section 3 2 of the following manual might helpful http ww1 microchip com downloads en Appnotes AN_3251 How to Use SAMA5D2 RTC Under Linux 00003251a pdf Wake from the digital inputs is possible If this wake mode is needed contact Dyacon to update the device tree to enable them as wake up sources Cell Phone Module The CT650 supports Telit cellphone modules manufactured by NimbeLink While e...

Page 23: ...lp the module not to become corrupted This can also be done using an AT command to the module gpioset m time s 3 gpiochip0 38 0 40 1 gpioset gpiochip0 40 0 The module can also be shut down by sending the shutdown command at shdn to the module After five to ten seconds the module should be powered down Testing UART connection microcom s 115200 dev ttyS4 at OK returned use ctrl x to exit Activating ...

Page 24: ...ting network connection using PPP Linux pppd can also be used for the network configuration The following is for the NimbeLink NL SW LTE TSVG module Other modules can be supported by changing the script files See the more information section below Create a file located at etc ppp peers vzw TSVG mkdir p etc ppp peers vi etc ppp peers vzw TSVG And place the following in the file dev ttyUSB3 115200 c...

Page 25: ...tion Skywire 4G_LTE_Cat_3 30058_NL SW LTE TSVG_PPP pdf Link to AT Command manual needed GPS Some cell phones contain GPS units This can be enabled from one of the unused serial ports dev ttyS4 dev ttyUSB2 dev ttyUSB3 for the NL SW LTE TSVG More information https nimbelink com Documentation Skywire 4G_LTE_Cat_3 30104_NL SW LTE_GPSAssistedGPSAppnote pdf Application The CT650 is configured to start a...

Page 26: ...pdate is complete it will rename the updateapp tar xz archive to updateapp old tar xz This method requires the application to detect get decrypt if desired check signatures if desired and place the final update file in the update directory The application then exits itself the update happens and the new application starts While it is possible to update the Linux kernel and a replace the complete r...

Page 27: ...CT650 Manual Revision History Rev Description Author Date A Initial Release E Bodrero 14APR2014 B Add Sleep section 2020 Dyacon Inc 27 ...

Reviews: