3DoT Technical Documentation

Slides:



Advertisements
Similar presentations
Custom Commands: Arxterra Control Panel & Android Application Creating A Custom Command Command Control Panel Interface Implementation Example Tommy Sanchez.
Advertisements

Getting Started: Arxterra Control Panel & Android Applications
Telemetry Modules Quick Start
Lab7: Introduction to Arduino
Arxterra: Understanding the Communication Between Arduino and Phone Connection Type: How Connect Phone To Arduino Communication from Phone to Arduino Communication.
Vex 1.0 © 2005 Carnegie Mellon Robotics Academy Inc. Programming in easyC.
CSULB EE400D TECHNICAL DOCUMENTATION ARDUINO/ARXTERRA PROGRAMMING PART II - TELEMETRY.
Unit 1 Protocols Learning Objectives: Understand the need to detect and correct errors in data transmission.
LSU 06/04/2007BASIC Stamp Editor1 The BASIC Stamp Editor Programming Unit, Lecture 3.
CSULB EE400D TECHNICAL DOCUMENTATION ARDUINO/ARXTERRA PROGRAMMING PART I - COMMANDS.
Lexmark Wireless Printer Adaptor Instructions Step 1. For a Mac, go to network preferences/ select built-in-ethernet and click on TCP/IP tab and annotate.
Available at: – Operate the Tumbler using a Jumper Pin Operate the Tumbler using the jumper pin.
Modems Chapter 17. Basic Knowledge  Modems are little devices to use the telephone to talk to other computers.  Modem is an abbreviation for Modulator/
Bluetooth Controller Setting up the BT controller and Arduino with Processing.
Vex Robotics Programming Sequence. Now that you’ve had some practice downloading and using the included programs, it's time to learn to write some of.
Vex Robotics Programming Options. To start you off and give you a safe "home base" to return to while you explore, a few key programs are already included.
AS Computing Data Transmission and Networks. Transmission error Detecting errors in data transmission is very important for data integrity. There are.
Development of a microprocessor project with LPC2388 development board.
Setting Up Your CPS Receiver and Student Responders.
Programming the Geiger Counter Board 1. Arduino Files Go to and download the latest Arduino.
Error Detection.
10.1 Chapter 10 Error Detection and Correction Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Arxterra Telemetry Code Example is the Temperature Sensor from ATechTop Here is the setup subroutine of the original code from Sparkfun: #define TRUE 1.
This is how you invoke the Microsoft Visual Studio 2010 Software. All Programs >> Microsoft Visual Studio 2010.
Creating and Editing a Web Page
Debugging tools in Flash CIS 126. Debugging Flash provides several tools for testing ActionScript in your SWF files. –The Debugger, lets you find errors.
© N. Ganesan, Ph.D., All rights reserved. Chapter Formatting of Data for Transmission.
Section 4 The Basics of Windows 7. Windows 7 Versions  Home Premium  Professional  Specialized.
Vex Robotics Program Two: Using two motors. Program two: using the motors In the last section, you learned how to turn on one motor. Now, you will take.
Vex Robotics program three: using motors and sensors together.
ERROR DETECTION AND CORRECTION Chapter 8 Data Communications & Networking ERROR DETECTION AND CORRECTION Chapter 8 First Semester 2007/2008.
THE NEW MOBILE WORKSPACE Enable Business Applications on Mobile Devices hopTo Work “I am amazed to see how easily hopTo transforms the user interface of.
Emdeon Office Batch Management Services This document provides detailed information on Batch Import Services and other Batch features.
3DoT Technical Documentation
After Construction Name: Per #:.
Fulton County Public Library
Arxterra: Understanding the Communication Between Arduino and Phone
OMS Administration Marie SHAH 02/12/2016.
Y.-H. Chen International College Ming-Chuan University Fall, 2004
Getting Started: Arxterra Control Panel & Application
Getting started with the Arxterra software and 3DoT Firmware
ILife App.
3DoT Technical Documentation
The first change to your project files that is needed is to change the device to the correct FPGA. This is done by going to the Assignments tab on the.
Downloading Arduino FOR WINDOWS.
Lab 2: Packet Capture & Traffic Analysis with Wireshark
Always Connected introduces Tigo SMART 3.0 This guide is interactive!
HOW WELL DO YOU KNOW THE BASICS OF USING YOUR COMPUTER?
ERROR DETECTION AND CORRECTION
Call to Fix HP Printer Installation Error Code 1603
NForm 2.0 Training.
About AirPrint AirPrint is an Apple technology that helps you create full-quality printed output without the need to download or install drivers.
Lesson Objectives Aims You should know about: 1.3.3:
Business Data Communications
Integrating JavaScript and HTML
Objectives Use Help and Support Copy, move, rename, and delete files
Programming - Buttons Intro to Robotics.
Programming - Buttons Intro to Robotics.
Exercise 3 1. Describe what are the packet, the packet communication, and motivations using the packet in computer communications. 2. (1) An ASCII coded.
Fundamentals of Using Microsoft Windows XP
Error Detection and Correction
Print, Collate, and Staple
Active Tests and Traffic Simulation: Module Objectives
Active Tests and Traffic Simulation: Module Objectives
Error Detection and Correction
Configuring Server to communicate with CET meters (Ethernet)
Arduino Leonardo Setup
Using your mobile as a modem on Window XP
Presentation transcript:

3DoT Technical Documentation Arduino/Arxterra Programming Part II - Telemetry

Telemetry Definitions The latest table of telemetry ID definitions is included in the pinouts_robot.h file. Within the Arduino IDE these telemetry ID definitions may be found under the pinouts_robot.h tab.

Telemetry Encoding byte array formatted into A packet Packet ID 0xCA indicates the start of a telemetry packet Packet Length is the number of bytes following minus the LRC byte. Telemetry ID is an 8-bit code identifying the sensor data contained in the packet. Depending on the sensor, the telemetry ID byte is followed by some number of bytes. Longitudinal Redundancy Check (LRC) is generated over the entire packet.

Telemetry Example Calculating the LRC byte One trick you can use to calculate the LRC byte for a command packet is to send the command with the LRC byte set to zero. Open the arxrobot_firmware tab and scroll to the configuration block. Turn on the debug mode, while turning off both Bluetooth and the watchdog timer.

Telemetry Example Calculating the LRC byte Next, send the command packet with the LRC field set to zero. Example - camera home command  Command Packet ID A5 N = 1 Camera Home = 4 Parity 00 The “Telemetry ID” 0E sent by the commandDecoder() FSM, indicating an error was detected The checksum error 03 is “thrown” from state 3 of the FSM, where the LRC checksum byte is checked. The last data byte contains the LRC byte expected by the command decoder: A0. CoolTerm application

Telemetry Example Calculating the LRC byte Command Packet Example: camera home with correct parity We now know the correct LRC byte to send with this command (0xA0). Assuming you are in debug mode, the arxrobot program responds with telemetry packet data[0] CA = Telemetry Packet ID data[1] 02 = Packet Length N+1 data[2] 0D = Command Echo data[3] 04 = Camera Home data[4] C1 = Packet Checksum CoolTerm application

Telemetry Example Testing Robot Commands Test commands locally before testing remotely removes the potential problems introduced by adding the: Smart device (iPhone or Android) Internet (the cloud) Arxterra control panel layers. To test locally you will need a terminal application program, like CoolTerm

Testing Robot Commands CoolTerm Example A5 05 01 01 80 01 80 A1 MOV forward half speed sendPacket data[0] A5 = Command Packet ID data[1] 05 = Packet Length N w/o parity byte data[2] 01 = Move ID data[3] 01 = Left Motor Forward data[4] 80 = Half Speed (128/255) data[5] 01 = Right Motor Forward data[6] 80 = Half Speed (128/255) data[7] A1 = Longitudinal Redundancy Check (LRC)

Testing Robot Commands CoolTerm Example – Step 1: Upload Arduino Program Plug in your 3DoT board (Arduino , Uno, Leonardo, Mega ADK, …). Set the Board Type and Serial Port. If you are not sure what serial port is used by the 3DoT board Open ”Devices and Printers” window from the Start Menu. Left-click the Arduino icon and Select properties from the pop-up menu. From the properties menu select the Hardware tab and Locate the serial port. Upload the arxrobot_firmware. See Companion PDF document for more help and troubleshooting tips

Testing Robot Commands CoolTerm Example – Step 2: Launch and Configure CoolTerm Launch CoolTerm

Testing Robot Commands CoolTerm Example – Step 3: Save and Connect To save time in the future, save your setting and open the next time you work on your application. Open, the serial port communications between CoolTerm and the Arduino.

Testing Robot Commands CoolTerm Example – Step 4: Send Commands To send a command, open the Send String window from the “Connection” item on the menu bar or press CTRL-T, select Hex, and enter the command string. In the example below, I am sending the move forward at half speed command. See Companion PDF document Appendix A for more Test Cases.

Telemetry Additional Reading Here is the companion document to this presentation. http://web.csulb.edu/~hill/ee400d/Lectures/Technical%20Training/Arduino%20Programming.pdf