Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

Simple Sensor Interface protocol

From Wikipedia, the free encyclopedia
This articleneeds additional citations forverification. Please helpimprove this article byadding citations to reliable sources. Unsourced material may be challenged and removed.
Find sources: "Simple Sensor Interface protocol" – news ·newspapers ·books ·scholar ·JSTOR
(December 2015) (Learn how and when to remove this message)

TheSimple Sensor Interface (SSI)protocol is a simple communications protocol designed for data transfer between computers or user terminals and smart sensors.[citation needed]

The SSI protocol has been developed jointly byNokia,Vaisala,Suunto, Ionific, Mermit andUniversity of Oulu and released its first version in March 2003. Currently SSI is being developed within the Mimosa Project, part of theEuropean UnionFramework Programmes for Research and Technological Development.

The SSI protocol is used in point-to-point communications overUART and networking nanoIP applications. SSI also provides polling sensors and streaming sensor data. ForRFID sensor tags SSI specifies memory map for sensor data.

The criteria for SSI protocol development are:

  • general purpose
  • simple – minimal overhead
  • small footprint on the server (sensor) side

Sample implementation of the SSI protocol forMSP430microcontrollers will be published asopen source during August 2006 by Nokia.

SSI message structure

[edit]

An SSI message consists of a 2-byte header and ann-byte payload. The header consists of a one byte address (wildcard is '?', 0x3F inASCII) and a one byte message/command type. The different possible values for the message/command type are presented in SSI v1.2 command base.

SSI v1.2 command base

[edit]
Command byteDirectionDescription
Q,q (0x51, 0x71)C->Query
A,a (0x41, 0x61)<-SQuery reply
C,c (0x43, 0x63)C->Discover sensors
N,n (0x4E, 0x6E)<-SDiscovery reply
Z,z (0x5A, 0x7A)C->Reset sensor device
G,g (0x47, 0x67)C->Get configuration data for a sensor.
X,x (0x58, 0x78)<-SConfiguration data response
S,s (0x53, 0x73)C->Set configuration data for a sensor
R,r (0x52, 0x72)C->Request sensor data
V,v (0x56, 0x76)<-SSensor data response
D,d (0x44, 0x64)<-SSensor response with one byte status field
M,m (0x4D, 0x6D)<-SSensor response with many data points
O,o (0x4F, 0x6F)C->Create sensor observer
Y,y (0x59, 0x79)<-SObserver created
K,k (0x4B, 0x6B)<->Delete sensor observer / listener
U,u (0x55, 0x75)<->Observer / listener finished
L,l (0x4C, 0x6C)<-SRequest sensor listener
J,j (0x4A, 0x6A)C->Sensor listener created
E,e (0x45, 0x65)<->Error
F,f (0x46, 0x66)<->Free data for custom purposes

The group of commands:

  • Q – query
  • A – query reply
  • C – sensor discovery
  • N – discovery reply
  • Z – reset
  • G – get sensor configuration
  • S – set sensor configuration

are used to find and configure sensor units utilizing the SSI-protocol.

The group of commands:

  • R – request sensor data
  • V – data response
  • D – data response with status field

are used to read sensor data infrequently.

For data streaming purposes defined commands are:

  • O – create sensor observer
  • Y – observer created
  • K – delete observer
  • U – observer finished
  • L – request sensor listener
  • J – sensor listener created.
  • V – data response
  • M – data response with many data points

Point-to-point SSI

[edit]

Point-to-point messaging with SSI can be done with SSI/UART. An SSI UART message consists of a 3-byte UART header, an SSI message as the payload and an optionalCyclic redundancy checkchecksum. The use of a checksum is defined by the SSI message/command type, with lower case commands indicating the use of CRC. The header consists of a start byte (0xFE), a 2-byte (total) length of the message and a 2-bytebitwiseNegation length to help identify the frame start.

Networking SSI

[edit]

SSI networking in a variable environment is done using nanoIP. In a typical case using SSI, an individual message is not important, and so nanoUDP (simplifiedUDP defined by nanoIP) is used as the message format. If individual messages are important, nanoTCP can be used, as it provides flow control and retransmission at a cost of message size and increase in network traffic.

A nanoUDP message consists of a 5-byte nanoUDP header, ann-byte message payload and an optional 2-byte CRC checksum. The header consists of one protocol byte, a 2-byte message length (total length, including header and CRC), a 1-byte source port and a 1-byte destination port number. The destination port number should be 0x28 for SSI messages.

Version history

[edit]
  • 0.1March 14, 2003
  • 0.2April 29, 2003
  • 0.3May 20, 2003
  • 0.4October 2, 2003
  • 0.5December 5, 2003, not compatible with previous
  • 0.6November 3, 2004
  • 0.7December 22, 2004
  • 0.8January 14, 2005
  • 1.0April 11, 2005
  • 1.1October 27, 2005
  • 1.2May 27, 2006, not compatible with previous

References

[edit]

External links

[edit]
Retrieved from "https://en.wikipedia.org/w/index.php?title=Simple_Sensor_Interface_protocol&oldid=1319898028"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2025 Movatter.jp