Communication Protocol; Frames And Settings; Connection Through Uart (Rs422); Connection Through Usb - Teledyne CP Series User Manual

Table of Contents

Advertisement

User Manual
CP Series
Version 3.1 – June 2020

9. COMMUNICATION PROTOCOL

9.1
F
RAMES AND SETTINGS
This chapter describes the communication protocol between the PowerBox and external world (typically a
PC).
Two types of connections are available: UART (RS422) or USB.
Important: the last 3 bytes of each message (sent or received) are :
1. A comma
2. A checksum: sum of all bytes before the checksum
3. A '\r' (0x0D) termination character
9.2
C
ONNECTION THROUGH
duplex
bitrate
data bits
parity
stop bits
flow control
9.3
C
ONNECTION THROUGH
HID protocol is used. Data from host to PowerBox is sent through IN endpoint. Data from PowerBox to host
is sent through control endpoint. Messages are encapsulated into 64 bytes buffers (0 padded).
Descriptors are as follow:
Device Descriptor POWERBOX
Offset
UART (RS422)
full
115200
8
none
1
none
USB
Field
0
bLength
1
bDescriptorType
2
bcdUSB
4
bDeviceClass
5
bDeviceSubClass
6
bDeviceProtocol
7
bMaxPacketSize0
8
idVendor
10
idProduct
12
bcdDevice
14
iManufacturer
15
iProduct
Size
Value
Description
1
12h
1
01h
Device
2
0200h
USB Spec 2.0
Class info in Ifc
1
00h
Descriptors
1
00h
1
00h
1
40h
64 bytes
2
0403h
2
7440h
2
0100h
1.00
1
01h
"ICM"
1
02h
"POWERBOX"
62

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents