Communication protocol

Similar documents
ergo_win premium pro

h/p/cosmos coscom v4

EWBS Receiving Module Communication specifications

Flex Series User Guide

RS 232 PINOUTS. 1. We use RJ12 for all of our RS232 interfaces (Link-2-Modbus & Link-2-PC- Serial/RS232). The diagram below shows our pin out.

X-SEL Serial Communication Protocol Specification (Format B)

16.682: Communication Systems Engineering. Lecture 17. ARQ Protocols

The RS-485 user manual for B800 series communication

TABLE OF CONTENTS 2/10

LZR -U920/U921 Protocol

Control Characters used in DirectNET

NL6000 Wireless Modem NL6000 User Manual Rev 1.1

Lecture 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1

Configuration Manual PULSAR C CCD SCANNER. Table of Contents

Leica LP C (Laser Printer for Cassettes) System Requirement & Specifications

DCN Next Generation Open Interface Release 2.4. en User Manual

marson MT8200S 2D Handheld Scanner User Manual V / 6 / 25 - I -

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

Pololu TReX Jr Firmware Version 1.2: Command Documentation

Description of the DNC interface (reduced ASCII format)

Numbers and Computers. Debdeep Mukhopadhyay Assistant Professor Dept of Computer Sc and Engg IIT Madras

Problem Max. Points Act. Points Grader

Revision 6: Red text Incorporate comments from January 5, 2004 conference call. Minor wording changes.

A GUIDE TO RS-232 COMMUNICATION WITH FX PLCS

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

DCP - Interface. Dynavert L. Technical Description July 2010 (Draft) Dynavert

TOSVERT VF-S15 Series RS485 Communication Function Instruction Manual

DirectNET Host. Communications Programs. In This Chapter...

Quality of Service in the Internet

PTB605. Transmission Protocol. version 13 05/03/2002

Quality of Service in the Internet

Communication. Outline of Communication. Merits

General Remote Interface Description. en General Remote Interface Description

Manual 09/11 MN Z-EN. NZM-XATS-C Automatic Transfer Switch-Controller Modbus Communication Protocol

CMSC 313 Lecture 03 Multiple-byte data big-endian vs little-endian sign extension Multiplication and division Floating point formats Character Codes

PATHFAST. Host Interface Specifications (Based on ASTM Specifications) Final Version (Rev1.0)

1. Implemented CM11 protocol

FD-011WU. 2D Barcode Reader User Guide V1.6CC

Problem 7. Problem 8. Problem 9

c. If the sum contains a zero, the receiver knows there has been an error.

SMI2. RS485 Display. User guide

2.4 Error Detection Bit errors in a frame will occur. How do we detect (and then. (or both) frames contains an error. This is inefficient (and not

Ultrabeam RCU-06 USB port description

S-Series Sensor ASCII Protocol v8.1.0

Planar Simplicity Series

Application Note #2437

VIGOR PROGRAMMABLE LOGICAL CONTROLLERS VIGOR ELECTRIC CORP.

User s Manual. Xi3000 Scanner. Table of Contents

Chapter 10 Error Detection and Correction. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

2D BARCODE SCANNER CA-SC-20200B

User Module. Modbus TCP2RTU. Application note

Mitsubishi FX3 Driver Configuration Manual

Chapter 3 Review Questions

EE 109 Unit 3. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

Embedded Modbus TCP Module GS11-MT. User Manual REV 1.1. SST Automation.

C1098 JPEG Module User Manual

CPE 548 Exam #1 (50 pts) February 17, 2016

MK D Imager Barcode Scanner Configuration Guide

BARCODE SCANNER. Configuration Guide - 1 -

Motors Automation Energy Transmission & Distribution Coatings. Software WSCAN. User's Manual

Managing Caching Performance and Differentiated Services

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Leaky Bucket Algorithm

CSE 123: Computer Networks

Unit 3. Analog vs. Digital. Analog vs. Digital ANALOG VS. DIGITAL. Binary Representation

Data Communication Networks Final

User Manual Software for DSL Digital Speed Switch

Acquirer JCB EMV Test Card Set

EE 109 Unit 2. Binary Representation Systems

Chapter 10 Error Detection and Correction 10.1

INF Data Communication Data Link Layer

isma-b-mg-ip User Manual Global Control 5 Sp. z o.o. Poland, Warsaw

JetWeb JX6-INT1 Function Description

The MMDVM Specification ( )

MOVIDRIVE Drive Inverters

a) Adding the two bytes gives Taking the one s complement gives

Xi2000-BT Series Configuration Guide

KB232. PS/2 Keyboard RS-232 Adapter Part # SA0008 (Version 3.0) Copyright 2003 L3 Systems, Inc. Redmond

Xanura Isolated RS232 interface module CTX15 MBO BA. OEM module for serial communication with Xanura

COMP asynchronous buses April 5, 2016

TS Open Day Data Center Fibre Channel over IP

The Transport Layer Reliability

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 02, FALL 2012

Using of HMI panel MT6071iE with SMSD, BLSD and BMSD controllers

Optidrive Applications Support Library

3. Data Link Layer 3-2

EE 109 Unit 2. Analog vs. Digital. Analog vs. Digital. Binary Representation Systems ANALOG VS. DIGITAL

PROBLEMSAND EXERCISES

The Transport Layer: TCP & Reliable Data Transfer

Application Note BDLxxxx RS232 SERIAL INTERFACE COMMUNICATION PROTOCOL (SICP V1.82)

Preview Test: HW3. Test Information Description Due:Nov. 3

Universal Asynchronous Receiver Transmitter Communication

Two approaches to Flow Control. Cranking up to speed. Sliding windows in action

Network Models. Presentation by Dr.S.Radha HOD / ECE SSN College of Engineering

Communication Networks

Telematics. 5rd Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

RS232 User Guide. Planar Simplicity Series 4K Displays SL4364K SL5564K SL6564K SL7564K SL8664K. Simplicity Series 4K Displays User Guide A

UNIT-II 1. Discuss the issues in the data link layer. Answer:

BIS M x-ST4 EtherNet/IP

Modbus Remote Communication Protocol for REM 54_. Technical Description

Chapter 2 Number System

Transcription:

Communication protocol for the devices of the premium and medical series Version: 1.0 SP-KOMM-PM1_en.doc issued by daum electronic gmbh

Table of contents 0 Introduction...3 0.1 Purpose of this document...3 0.2 Concepts and abbreviations...3 0.3 Structure of the document...3 1 Introduction / General Part...4 1.1 Structure of a data packet:...4 1.2 Description of the communication...4 2 The functions in details...7 2.1 List of functions...7 2.1.1 Querying the protocol version...7 2.1.2 Querying the dashboard software version...7 2.1.3 Querying the device type...7 2.1.4 Safety mode...7 2.1.5 Actual training time...7 2.1.6 Validity of heart rate data...7 2.1.7 Query heart rate...7 2.1.8 Simulating key press...8 2.1.9 Query error...8 2.1.10 Query speed status...8 2.1.11 Query speed...8 2.1.12 Set speed...8 2.1.13 Query emergency STOP...8 2.1.14 Query top speed...8 2.1.15 Acceleration / deceleration...9 2.1.16 Acceleration / deceleration...9 2.1.17 Query distance...9 2.1.18 Inclination possibility...9 2.1.19 Actual inclination...9 2.1.20 CosRec - Emulation...10 2.1.21 Training data complete...10 2.1.22 Inclination setting possibility...10 2.1.23 Load control...10 2.1.24 Query actual rotational speed...10 2.1.25 Set rotational speed...11 2.1.26 Set load (watt)...11 2.1.27 Determine (detect) active device limits...11 2.1.28 (Reserved)...11 2.1.29 Query / set actual gear...11 2.1.30 Query / set actual bike type...11 Version: 1.0 2

0 Introduction 0.1 Purpose of this document The communication protocol is used to control daum electronic devices of the premium and medical series using a USB-serial adapter or using a TCP/IP network. 0.2 Concepts and abbreviations This chapter describes the most important concepts and abbreviations as they are used in this document. Abbreviations SOH ETB Description Start of Header Terminating character GS Separator, ASCII 0x1d, see 1.1. AF AW BF bike lyps run Query Answer command Devices of the ergo_bike type Devices of the ergo_lyps type Devices of the ergo_run type 0.3 Structure of the document Chapter 1 contains a general description of the communication protocol. Chapter 2 describes the functions. Version: 1.0 3

1 Introduction / General Part Only ASCII characters are transmitted. Recommended send/receive buffer size: minimum 256 Bytes. RS232 interface parameters: 9600 Bps, 8N1 Protocol version: 2.01. daum device software version 1.316 or higher required. 1.1 Structure of a data packet: SOH Header Data unit checksum ETB 1 2 3 4 5 n n+1 n+2 n+3 0x01 s1 z1 z2 Data (checksum) 0x17 The Start of Header SOH contains the ASCII character 0x01. The header consists of the combination of a letter s1 and two digits (numeric characters) z1 and z2, e.g. P01. The data unit consists of one or many numerical values or character strings. Numerical values are separated by white spaces, character strings are separated by the separator character GS ASCII (0x1d). The description of the individual functions contains an exact description of the respective data unit structure. The checksum is obtained by getting the sum of the header and data unit modulo 100. The ETB contains the ASCII character 0x17. 1.2 Description of the communication A client-server relationship is established between the PC and the daum electronic-ergometers. The ergometer processes the queries and commands send to it by the PC. We differentiate between queries, commands and answers in the communication protocol. Queries (AF) have no data field; they are used to query data from the ergometer. Commands (BF) have a data field which is processed by the device. Answers (AW) are returned from the device to answer a query or a command. The device always returns an answer with an identical header. If the data delivered by a command are successfully processed, this same data is then returned in the answer. The data field of the answer will differ from that of the command when the data are not successfully processed or when the transmitted value cannot be set, in that last case the closest possible value is set. query Fig 1: Communication in the case of a query answer Version: 1.0 4

Fig 2: communication of a command command Answer Each data packet is acknowledged with an (0x06 ASCII) character or a NAK (0x15 ASCII) character if the checksum is incorrect. A NAK character prompts (triggers) the repetition of the rejected data packet. Unrecognised characters are processed as NAKs. Fig 3: transmission error Faulty packet data NAK Repetition of the data packet Version: 1.0 5

In the case of an incorrect end character the receiver rejects the data packet after a reception time out of 10s. The sender in that case does not receive any or NAK and repeats sending the data packet after a send time out of 11s. After five unsuccessful attempts the sender gives up. Fig 4: error with an ETB character. Faulty packet data (Reception timeout, received characters rejected) Expiry of the sender timeout. Repeating the data packet, max. 5 tries. Version: 1.0 6

2 The functions in details 2.1 List of functions The format of the data field is similar to that of the sprintf function of the C programming language. The commands are valid for the device software version 1.316 and up, if not stated otherwise. 2.1.1 Querying the protocol version Header Type For device type Data field Returns V00 AF,AW bike, lyps, run %3u 201, means version 2.01 2.1.2 Querying the dashboard software version V70 AF,AW bike, lyps, run %s e.g. Version 1.380 2.1.3 Querying the device type Y00 AF,AW bike, lyps, run %1u 0 = run 2 = bike 7 = lyps 2.1.4 Safety mode F00 AF,BF,AW bike, lyps, run %u 0 = safety mode OFF 1-250 communication timeout for safety mode (=STOP) in one tenth of a second (0.1s - 25s) 2.1.5 Actual training time T00 T10 AF,AW bike, lyps, run %02u:%02u:%02u hours:minutes:seconds 2.1.6 Validity of heart rate data P00 AF,AW bike, lyps, run %1u 0 = no 1 = yes 2.1.7 Query heart rate P01 AF,AW bike, lyps, run %u heart rate in beats per minute Version: 1.0 7

2.1.8 Simulating key press U10 AF,BF,AW bike, lyps, run %c%c First character: key to activate + = faster - = slower U = up D = down E = Start / Enter F = emergency STOP S = Stop Second character: P = pressed R = released 2.1.9 Query error Z00 AF,AW bike, lyps, run %u 0 (no error) 2.1.10 Query speed status S00 AF,AW run %1u 0 = Stop 1 = Start 2 = Pause 2.1.11 Query speed S01 AF,AW run %4.2f speed in m/s 2.1.12 Set speed S02 AF,BF,AW run %4.2f speed in m/s 2.1.13 Query emergency STOP S03 AF,AW run %1u 0 = normal operation 1 = emergency STOP active 2.1.14 Query top speed S04 AF,AW run %4.2f highest allowable speed in m/s Version: 1.0 8

2.1.15 Acceleration / deceleration A00 AF,BF,AW run %1u 0 = none 1 = 131s 2 = 66s 3 = 33s 4 = 16s 5 = 8s 6 = 5s 7 = 3s The time value set corresponds to the duration it takes to change the speed from standstill to maximum speed or inversely. The value used here applies after the next speed setting with the S02 command. 2.1.16 Acceleration / deceleration A01 AF,BF,AW run %u 0-65535 The value set is added to the actual internal speed value, or subtracted from it, every 10 milliseconds. The internal maximal value for the speed is 65535. This command must be send after a new S02 speed command if the standard acceleration value A00 should not apply. This command is to be used with caution because extreme acceleration values can be very dangerous. 2.1.17 Query distance D00 AF,AW bike, lyps, run %6u distance in m 2.1.18 Inclination possibility E00 AF,AW run %6u 0 = no inclination system 1 = inclination system exists 2.1.19 Actual inclination E01 AF,AW run %3.1f height / length * 100% Version: 1.0 9

2.1.20 CosRec - Emulation Header Type for device type X00 AF,AW bike, lyps, run Data field %4.2fGS %3.1fGS <SPACE> (32bit-Systeme) Returns time in s heart rate in s -1 speed in m/s inclination in % distance in m labelling for a new time interval: <SPACE> 2.1.21 Training data complete X70 AF,AW bike, lyps, run %4.2fGS %3.1fGS %4.1fGS %4.1fGS %4.1fGS %4.1fGS %cgs Available starting from version 1.380 %cgs %c time in s heart rate in 1/min speed in km/h inclination in % distance in m rotational speed in 1/min power in Watt physical energy dissipated in kj realistic energy dissipated in kj torque in Nm gear + 1 (1 = gear shift OFF, 2 29 = gear 1 28 selected) 0 = device OFF, 1= device ON rotational speed status + 1 status 0 = rotational speed ok 1 = rotational speed too low to achieve the required load in watt 2 = rotational speed too high to achieve the required load in watt 2.1.22 Inclination setting possibility I00 AF,AW run %1u 0 = no setting possibility 1 = setting is possible 2.1.23 Load control S20 AF,BF,AW bike, lyps %1u 0 = OFF 1 = ON 2.1.24 Query actual rotational speed S21 AF,AW bike, lyps %4.1f rotational speed in 1/min Version: 1.0 10

2.1.25 Set rotational speed S22 AF,BF,AW bike, lyps %4.1f rotational speed in 1/min 2.1.26 Set load (watt) S23 AF,BF,AW bike, lyps %5.2f load in watt 2.1.27 Determine (detect) active device limits L70 AF,BF,AW bike, lyps, run %cgs %5.2fGS %5.2fGS %5.2f Available with daum premium software starting from version 1.380 2.1.28 (Reserved) M70 AF,BF,AW bike, lyps, run Available with daum premium software starting from version 2.000 limit type: L = heart rate limit, S = speed limit, W = watt limit, E = inclination limit, A = acceleration limit minimal value maximal value default value 2.1.29 Query / set actual gear M71 AF,BF,AW bike, lyps %u actual gear Available with daum premium software starting from version 2.000 2.1.30 Query / set actual bike type M72 AF,BF,AW bike %u bike type: 0 = All-round 1 = racing bike 2 = Mountain bike Available with daum premium software starting from version 2.000 Version: 1.0 11