Serial Write
Libraries:
NVIDIA Jetson and NVIDIA DRIVE /
Communication
Description
Use the Serial Write block to write data to a serial device connected to a NVIDIA® Jetson™ hardware. To open the serial pin map of the NVIDIA Jetson board, click the View pin map button. For more information, see Serial Port Mapping for NVIDIA Jetson Boards.
Examples
Read and Write Data over Serial Port on NVIDIA Jetson Platforms
Use MATLAB® Coder™ Support Package for NVIDIA® Jetson® and NVIDIA DRIVE® to read and write serial data over the UART port on a Jetson board.
Ports
Input
Port_1 — Input port that accepts data
[Nx1] or [1xN] array
The input port through which the block accepts data.
Data Types: single
| double
| int8
| int16
| int32
| uint8
| uint16
| uint32
Parameters
Port — Port at which you connect board to serial device
/dev/ttyTHS1
(default)
The port at which you connect the NVIDIA Jetson board to the serial device.
Baudrate (in bits/s) — Bits per second
9600
(default) | 50
| 75
| 110
| 134
| 150
| 200
| 300
| 600
| 1200
| 1800
| 2400
| 4800
| 19200
| 38400
| 57600
| 115200
| 230400
Select the rate at which the data is read over the serial line. The baud rate is measured as the number of bits read per second.
Parity — Parity added to data to detect error
None
(default) | Even
| Odd
Select the parity you want to add to the transmitted data. A parity bit is used to detect error in the data transmission.
None – This value means that no parity is used for error detection in the data transmission.
Even – The parity bit value is 1 if the number of bits with value 1 is odd. The parity bit value is 0 if the number of bits with value 1 is even.
Odd – The parity bit value is 1 if the number of bits with value 1 is even. The parity bit value is 0 if the number of bits with value 1 is odd.
Stop bits — Bits used to signal stop of data transmission
1 (default) | 2
Select the number of bits used to signal the stop of data transmission.
Version History
Introduced in R2020b
MATLAB Command
You clicked a link that corresponds to this MATLAB command:
Run the command by entering it in the MATLAB Command Window. Web browsers do not support MATLAB commands.
Select a Web Site
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list
How to Get Best Site Performance
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Americas
- América Latina (Español)
- Canada (English)
- United States (English)
Europe
- Belgium (English)
- Denmark (English)
- Deutschland (Deutsch)
- España (Español)
- Finland (English)
- France (Français)
- Ireland (English)
- Italia (Italiano)
- Luxembourg (English)
- Netherlands (English)
- Norway (English)
- Österreich (Deutsch)
- Portugal (English)
- Sweden (English)
- Switzerland
- United Kingdom (English)
Asia Pacific
- Australia (English)
- India (English)
- New Zealand (English)
- 中国
- 日本Japanese (日本語)
- 한국Korean (한국어)