Main Content

Troubleshoot BeagleBone Black Serial Port

Missing or Garbled Data

When you try to exchange data with the serial device, the data is garbled or missing.

write(serial,[10 12],'uint16')

Creating a connection and writing data to a serial device does not provide any indication of success or failure.

The device is not connected to the BeagleBone® Black serial port. Or, the connection to the serial device is not configured correctly.

To solve this issue, do the following:

  • On the serial device, verify the physical connection between the Rx and Tx pins and their counterparts.

  • Verify the serial port settings that the serial device requires. Clear the object for the current serial connection. Create a new connection that uses the correct serial port settings.

  • Verify the data precision that the serial device requires. Write data using the correct serial port settings.

Note

The hardware enables HDMI (orange) pins by default. MATLAB® Support Package for BeagleBone Black Hardware does not support HDMI. To disable HDMI, see the BeagleBone Black hardware documentation.

Why Can I Not Enable Port 5 ?

Port 5 shares pins with HDMI, which is enabled by default. Use showPins to view the current pin usage. If HDMI is enabled, you cannot enable port 5 using enableSerialPort. For information on how to disable HDMI, see the BeagleBone Black hardware documentation.