shared_serial¶
Contents:
Summary¶
-
shared_serial
¶ Version: 0.2.1
Description: Shared serial port with locking functionality
Maintainers: - Wouter Caarls <w DOT caarls AT tudelft DOT nl>
Licenses: - BSD
Urls: - website<http://ros.org/wiki/shared_serial>
Authors: - Wouter Caarls <w DOT caarls AT tudelft DOT nl>
BuildDepends: BuildtoolDepends: BuildExportDepends: ExecDepends:
Types¶
Message types¶
-
shared_serial/Flush
¶ Field: - socket (uint32) –
- timeout (float32) –
Flush serial port.
Eeither 0 (connectionless) or an unexpired socket identifier from an earlier communication.
# Flush serial port. # Eeither 0 (connectionless) or an unexpired socket identifier # from an earlier communication. uint32 socket # Number of seconds to keep the port locked after this communication. float32 timeout
-
shared_serial/Send
¶ Field: - socket (uint32) –
- data[] (uint8) –
- timeout (float32) –
Send data to serial port.
Eeither 0 (connectionless) or an unexpired socket identifier from an earlier communication.
# Send data to serial port. # Eeither 0 (connectionless) or an unexpired socket identifier # from an earlier communication. uint32 socket # Data to be sent. uint8[] data # Number of seconds to keep the port locked after this communication. float32 timeout
-
shared_serial/Close
¶ Field: - socket (uint32) –
Release serial port lock.
Socket identifier from an earlier communication.
# Release serial port lock. # Socket identifier from an earlier communication. uint32 socket
Service types¶
-
shared_serial/SendTo
¶ Field (Request): - socket (uint32) –
- data[] (uint8) –
- timeout (float32) –
Field (Response): - socket (uint32) –
Send data to serial port.
Either 0 (connectionless) or an unexpired socket identifier from an earlier communication.
# Send data to serial port. # Either 0 (connectionless) or an unexpired socket identifier # from an earlier communication. uint32 socket # Data to be sent. uint8[] data # Number of seconds to keep the port locked after this communication. float32 timeout --- # Socket identifier for further communications. uint32 socket
-
shared_serial/SendRecv
¶ Field (Request): - socket (uint32) –
- send_data[] (uint8) –
- length (uint32) –
- recv_timeout (float32) –
- sock_timeout (float32) –
Field (Response): - socket (uint32) –
- recv_data[] (uint8) –
Send data to serial port and wait for reply.
Either 0 (connectionless) or an unexpired socket identifier from an earlier communication.
# Send data to serial port and wait for reply. # Either 0 (connectionless) or an unexpired socket identifier # from an earlier communication. uint32 socket # Data to send uint8[] send_data # Number of bytes to receive. uint32 length # Number of seconds to wait for data. float32 recv_timeout # Number of seconds to keep the port locked after this communication. float32 sock_timeout --- # Socket identifier for further communications. uint32 socket # Received data. uint8[] recv_data
-
shared_serial/Recv
¶ Field (Request): - socket (uint32) –
- length (uint32) –
- recv_timeout (float32) –
- sock_timeout (float32) –
Field (Response): - socket (uint32) –
- data[] (uint8) –
Receive data from serial port.
Either 0 (connectionless) or an unexpired socket identifier from an earlier communication.
# Receive data from serial port. # Either 0 (connectionless) or an unexpired socket identifier # from an earlier communication. uint32 socket # Number of bytes to receive. uint32 length # Number of seconds to wait for data. float32 recv_timeout # Number of seconds to keep the port locked after this communication. float32 sock_timeout --- # Socket identifier for further communications. uint32 socket # Received data. uint8[] data
-
shared_serial/Connect
¶ Field (Request): - timeout (float32) –
Field (Response): - socket (int32) –
Lock the serial port.
Number of seconds to lock the port.
# Lock the serial port. # Number of seconds to lock the port. float32 timeout --- # Socket identifier for further communications. int32 socket