.

Average: 0
Rating Count: 0

Development status: Released, Release: Release_1_1
Information status: Updated
Repository: http://svn.code.sf.net/p/tango-ds/code/DeviceClasses/Communication/SerialDevice
Contact:



Class Description


Device server to communicate with RS232 devices; this eas written at DESY with DESY beamlines in mind, where we quite have have the situation that for testing / evaluation purposes devices are connected directly to a computer, but will lateron be driven via a terminal server.

This server supports both way, you can switch by setting properties.

Families: Communication

Key words:

Platform: Unix Like

Language: Cpp

License: GPL

Contact:

Hardware


Manufacturer: none

Bus: Not Applicable

Class interface


Attributes:

Commands:

Name Description
StateInput: DevVoid
Output: State
Device state
This command gets the device state (stored in its device_state data member) and returns it to the caller.
StatusInput: DevVoid
Output: ConstDevString
Device status
This command gets the device status (stored in its device_status data member) and returns it to the caller.
WriteInput: DevString
Output: DevVoid
Write string given in argin to device
ReadInput: DevVoid
Output: DevString
Read string from device
WriteReadInput: DevString
Output: DevString
Write string to device and return reply
WriteRawInput: DevVarCharArray
data to write
Output: DevVoid
Write data given in argin to device `as is`.
ReadRawInput: DevULong
amount of bytes to read
Output: DevVarCharArray
data read
Read number of bytes given i argin from device.

Pipes:

Properties:

Name Description
HostNameDevString Hostname / IP address of terminal server (if connected via such).
PortNumberDevLong TCP port number on terminal server (if connected via such)
DeviceFileDevString Name of serial device file name (if connected directly), e.g. /dev/ttyS0
BaudRateDevLong baud rate (if connecting directly)
CharSizeDevLong Character size of serial commuication
StopBitsDevLong Stop bits of serial commuication
ParityDevLong Parity of serial commuication 0: off 1: odd 2: even
FlowControlDevLong Flow controll of serial commuication 0: off 1: odd 2: even
TimeOutDevLong Timeout in ms when reading from device
EndOfLineDevLong End of line string in used in communication: 0 = LF 1 = CR 2 = CR/LF
ConnectTypeDevString `net` for tcp/ip connection or `serial` for rs232 connection


Please log in to comment.

23 Jul 2022, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



24 Apr 2021, DS Admin
Updated:
A device class has been added.
You can see previous version here .



24 Apr 2021, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



24 Oct 2020, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



17 Oct 2020, DS Admin
Updated:
The device class has been updated.
You can see previous version here .



10 Oct 2020, DS Admin
Created:
The device class has been added to catalogue.
Added by:dadmin on:10 Oct 2020, 3:24 a.m.