FacebookTwitterLinkedinYoutube
1.800.426.8979 |sales@connecttech.com

sales@connecttech.com | 1.800.426.8979  

Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc. Connect Tech Inc.
  • Home
  • Products
    • FORM FACTORS
      • COM Express®
      • NVIDIA® Jetson™ AGX Xavier™
      • NVIDIA® Jetson™ TX2/TX2i/TX1
      • Qseven
      • SMARC
      • VPX
      • Mini PCIe
      • M.2
      • XMC/PMC
      • PC/104
      • PCI Express
      • PCI
    • TECHNOLOGY
      • Computer-on-Module (COM) Carrier Boards
      • Graphics Processing Unit (GPU/GPGPU)
      • 10 GbE & 1 GbE Embedded Ethernet Switches & NICs
      • Rugged Embedded Systems
      • Rugged Tablets
      • GPS/GNSS
      • Multiport Serial (Asynchronous)
      • Multiport Serial (Synchronous)
      • Single Board Computers
      • Power Supplies
    • TECHNOLOGY
      • FPGA
      • Digital I/O
      • Analog I/O (ADC/DAC)
      • Storage Solutions
      • Cellular/Satellite M2M
      • CAN Controllers
      • Wireless Radio Modems
      • Ethernet-to-Serial
      • Development Tools & Adapters
    • Close
  • Services
    • CUSTOM DESIGN
      • Our Custom Design Capabilities
      • Custom Design Process
    • CUSTOMIZE YOUR PRODUCT
      • Custom COM Express
      • Custom NVIDIA® Jetson™ AGX Xavier™
      • Custom NVIDIA® Jetson™ TX2/TX2i/TX1
      • Custom Product
    • ADDITIONAL SERVICES
      • Conformal Coating
      • Flashing As A Service
    • Close
  • Support
    • RESOURCE CENTER
      • NVIDIA® Jetson™ TX2/TX2i/TX1 Solution Support
      • Downloads
      • Drivers
      • Install Guides
      • Troubleshooting
      • Set Up & Configuration
      • General
      • All KDB Entries
    • PRODUCT LIFECYCLE SUPPORT
      • RMA Request
      • Product Registration
      • Warranty Policy
      • Product Change Notifications
      • EOL Notifications
    • Close
  • About
    • COMPANY OVERVIEW
      • About Us
      • Capabilities
      • Management Team
      • Mission Statement
      • Quality Assurance
    • NEWS & EVENTS
      • News
      • Events
    • CAREERS
      • Working at Connect Tech
      • Career Opportunities
    • PARTNERS & RESELLERS
      • Our Partners
      • Jetson Resellers
      • Resellers
    • Close
  • Home
  • All KDB Entries
  • kdb242: Implementing Traceinfo....

kdb242: Implementing Traceinfo.cti to Diagnose CTI Intelligent Serial Adapters

Table of content

  1. Introduction:
  2. Overview
  3. Appending traceinfo.cti to /etc/config/traceinfo
  4. Additional Filtering Options

Title: Implementing Traceinfo.cti to Diagnose CTI Intelligent Serial Adapters
Date: February 3, 1999
KDB: KDB-242
Revision: 0.00
Author: BK
Distribution: External

Introduction:

To assess the performance, and assist in the diagnosis of Connect Tech Inc’s Intelligent serial adapters installed in QNX 4.XX, the file traceinfo.cti is distributed for use by our customers. Traceinfo.cti is a filter which must be used to accurately interpret any trace events that may be recorded in the trace buffer. There are several ways in which this may be accomplished; two popular means are by reading in the trace format information each time traceinfo is run, and by appending traceinfo.cti to the existing traceinfo file in the /etc/config directory.

Overview

Tracelogging info for Dev.nt960

Dev.nt960 and Dev32.nt960 now support the QNX4 tracelogging features. Run time errors are no longer posted to the active console, but are now posted to “tracelogger”.

Simple usage: traceinfo -e /<tracefile directory>/traceinfo.cti

<tracefile directory> = /usr/nt960 or /etc/config

This will print all trace events recorded in Proc’s trace buffer to the standard output.

Detailed usage:

Step 1 – Run tracectrl to choose an appropriate severity level to log.
tracectrl -s3 (suggested).

Step 2 – Run tracelogger to log all trace events to a file.
tracelogger -f /<tracefile directory>/nt960.log &

This will run tracelogger as a background task, and record all trace events to the NT960.log file in /usr/nt960

Step 3 – To view the contents of the NT960.log log file:
traceinfo -e /<tracefile directory>/traceinfo.cti /<tracefile directory>/nt960.log

Note: The traceinfo.cti file can also be appended to the /etc/config/traceinfo file for convenience. Refer to the following section.

The detailed usage will log ALL trace events to the supplied log file name. This infomation can be useful for debugging. Some of the interesting events the Dev.nt960 will report to the tracelogger include: Dev.nt960 Started, ACM Reset, Parity & Framing & Overrun errors, CD ON,
CD OFF (HUP) and Break Detect. See KDB-168, or contact Technical support for additional details.

Note: Depending on the users application the tracelogger might log numerous events, causing the harddisk to thrash. The tracectrl utlity can be used to filter what events are recorded in the tracelogger.

tracectrl -s1 (only log severe problems)

Severity
0: Major fault SIG:SEG:V, should never happen
1: Severe, Port Restored, i960 Restart, other Hardware problems
2: Parity, Framing, Overruns Errors.
3: HUP, Carrier, Nt960 Booting
6: Very commom messages, should never log.
7: Never, Never log.

Appending traceinfo.cti to /etc/config/traceinfo

Traceinfo.cti may be found in the /etc/config directory upon driver installation. This is where QNX 4’s traceinfo file may be found as well. To append the traceinfo.cti file to the /etc/config/traceinfo file, consider the following procedure:

1) Back up the current traceinfo file:

cp traceinfo traceinfo.bak

2) Append traceinfo.cti to the existing traceinfo file:

cat traceinfo traceinfo.cti > traceinfo.tmp

3) Substitute in the new traceinfo file:

cp traceinfo.tmp traceinfo

4) Now traceinfo may be run without specifying the additional trace format information in the traceinfo.cti file:

traceinfo filename | more

Additional Filtering Options

In addition to using traceinfo, here are some other suggestions to consider:

To direct the traceinfo output to a file:

traceinfo filename > newfile

To search the previous results for trace messages from the NT960 only (consider that messages discarded may be just as important as those that are kept!):

grep -e 3de newfile

To save these results to another file:

grep -e 3de newfile > newfile2

Note: At any point, grep or traceinfo may be piped to more ( | more) to display all information.

These files may be sent to support@connecttech.com for analysis

End of KDB-242

Related Resource Center Posts -

  • kdb186: Intellicon-8 DB-25 Pinouts
  • kdb364: Using MIPI CSI-2 cameras on Connect Tech ASG006 (Spacely)
  • kdb041: Serial Ports Hanging During QNX4 Shutdown

Contact Info

42 Arrow Road
Guelph, Ontario
N1K 1S6 Canada

Phone: 1-800-426-8979 (North America Only)
1-519-836-1291

Support: support@connecttech.com
Sales: sales@connecttech.com

Upcoming Events

  1. Embedded World 2019 – Stand 1-430

    February 26 - February 28
  2. GTC 2019 – Booth 1347

    March 18 - March 22

View All Events

Join Our Mailing List

Join our mailing list to be notified of Connect Tech events and product updates.

Follow Us

Follow us on Social Media for industry and Connect Tech news.
Copyright 2018 Connect Tech Inc. | All Rights Reserved | Privacy | Contact
FacebookTwitterLinkedinYoutube
  • Search Knowledgebase