From 839c41ca408bd90207bfbf17a3712578ebd6f56b Mon Sep 17 00:00:00 2001 From: Tero K Date: Sun, 21 Dec 2014 02:15:19 +0200 Subject: 1) protocol image added 2) added clearer names for SM subpacket types --- doc/SMV2Protocol.svg | 643 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 643 insertions(+) create mode 100644 doc/SMV2Protocol.svg (limited to 'doc') diff --git a/doc/SMV2Protocol.svg b/doc/SMV2Protocol.svg new file mode 100644 index 0000000..8be482b --- /dev/null +++ b/doc/SMV2Protocol.svg @@ -0,0 +1,643 @@ + + + + + + + + + + + + image/svg+xml + + + + + + + + + + + + Subpacket 1 + 1 bytePackettype + 0 or 1 bytesNumber of payloadbytes unlessfixed lenght defined by packet type + 1 byteTarget deviceaddress 1-255 or 0 if broadcast to all devices + 0-120 bytesPayload datamade ofsubpackets + 2 byteCRC checksum + + + 2 bitssubpackettype andlenght + 6, 14, 22 or 30 bitsValue data(write / read valueof parameter) + Subpacket N + + + 2 bitssubpackettype andlenght + 6, 14, 22 or 30 bitsValue data(write / read valueof parameter) + . . . + + + SimpleMotion V2 outbound or inbound packet + + 3 - 125 bytes total + + Packet typesOutbound (host to devices):- execute payload subpackets instantly- place payload subpackets in buffer executed by timed fashion- get device clock value (used to sync buffered execution)Inbound (device to host)- Return data packets (one type for each outbound type), these contain payload data (read values) or clock value + + Subpacket typesOutbound- set parameter address where next values are written to, 2 bytes long- write parameter value, 3 or 4 bytes longInbound- SM bus status value, 1 byte long- read parameter value, 2, 3 or 4 bytes longEach outbound subpacket will give one inbound subpacket in return when devicesends the response to a SM packet. Content of inbound subpackets are defined bywritable parameters SMP_RETURN_PARAM_ADDR and SMP_RETURN_PARAM_LEN. + SimpleMotion V2 Protocol + + -- cgit v1.2.3