919 B
919 B
UART Example Hardware Requirements
Required Hardware
- Physical UART device (e.g., USB-to-UART converter)
- Device must be accessible at /dev/ttyUSB0
Setup
- Connect UART device to USB port
- Verify device is recognized:
ls -l /dev/ttyUSB0
- Ensure user has proper permissions:
sudo usermod -a -G dialout $USER
Testing Without Hardware
The UART examples cannot be tested without physical hardware. For development and testing purposes:
- Use the standard TLS examples (client-tls/server-tls) instead
- Use TCP examples (client-tcp/server-tcp) for basic communication testing
- Use memory-based examples (memory-tls) for protocol testing
Error Messages
Common error: "Error opening /dev/ttyUSB0: Error 2 (No such file or directory)"
- Indicates missing UART hardware
- Expected in virtual/CI environments
- Not a code issue, requires physical hardware