MIPI

This document provides detailed instructions on the Quectel-Pi-H1 single-board computer's MIPI-DSI display interface identification, display connection methods, system configuration, and troubleshooting solutions, using the Waveshare 8-inch DSI interface ISP capacitive touchscreen as an example.

MIPI Display Connection

Follow the diagram below for connection:
Note: This screen has 4 power supply interfaces, choose any one. In this example, power is supplied at position "1".

  1. Type-C interface.
  2. I2C communication and power supply interface.
  3. 5V input/output interface.
  4. I2C communication and power supply interface. Align the screw holes with the Quectel-Pi-H1 single-board computer and tighten to ensure the pogo pin connects firmly with the 40PIN connector.
Image 1

Waveshare 8-inch MIPI Display Back

Image 3

QuecPi with Connected MIPI Display

After connecting the MIPI display and powering on, start the display service, select default user: pi, password: quecpi, and the MIPI screen will display the Gnome desktop.
Display effect as shown below:

Image 3

Screen Display Effect

Function Usage

Adjusting Screen Brightness and Volume

Note: After connecting the MIPI display, the resolution is not adjustable and is configured by developers, thus cannot be changed.

After connecting the MIPI display and powering on, enter the Gnome desktop, click the battery icon in the upper right corner, and slide the volume bar and brightness bar to adjust the volume and brightness.

The following is the operation diagram for adjusting screen brightness and volume:

Image 3

Brightness and Volume Adjustment Operation

Touch Function Usage

After connecting the MIPI display and powering on, you can use the touch function directly.

Video Playback Function Usage

Visual Interface Video Playback: Open the Gnome desktop, find the video file in the Gnome desktop's File Manager, and click the video file to play it.
Note: Double-click the frame to play the video in fullscreen.

Image 1

Desktop Operation Steps

Image 3

Video Playback Display Effect

VLC Command Line Video Playback: When playing via command line, follow these steps to enter the corresponding commands.

export LIBGL_ALWAYS_SOFTWARE=1 #Modify this window's environment variable to switch to CPU rendering when playing video
VLC test.mp4                   #Play video

The following is the video playback effect diagram:

Image 3

Video Playback Display Effect

GST Command Line Video Playback Function: When playing via command line, you need to enter the following corresponding command.

gst-launch-1.0 filesrc location=/home/pi/test.mp4 ! qtdemux ! h264parse ! avdec_h264 ! autovideosink    ## The parameter after "location" should be modified according to the actual video file path

Command parameter description:

  • gst-launch-1.0: This is GStreamer's command-line tool for building and running a GStreamer pipeline.
  • filesrc location=/home/pi/test.mp4: Uses the filesrc element to read video files from the specified path /home/pi/test.mp4.
  • ! qtdemux: Through the ! symbol, connects the output of the previous element to the input of the next element. qtdemux is responsible for demultiplexing the MP4 container format, separating the audio and video streams within it.
  • ! h264parse: Parses the separated H.264 video stream, reorganizing it into a format suitable for decoder processing.
  • ! avdec_h264: Uses the software decoder avdec_h264 to decode the H.264 video stream. This is a GStreamer plugin element based on FFmpeg.
  • ! autovideosink: Automatically selects an appropriate video output component to display video content. Depending on the system environment, it will choose the most suitable sink, such as waylandsink under Wayland environment or ximagesink under X11.

The following is the video playback effect diagram:

Image 3

Video Playback Display Effect

Audio Playback Function Usage

Visual Interface Audio Playback: Open the Gnome desktop, find the audio file in the Gnome desktop's File Manager, and click the audio file to play it.
Note: To play audio, connect speakers to the SG565D single-board computer.

Image 1

Desktop Operation Steps

Image 3

Audio Playback Display Effect

VLC Command Line Audio Playback Function: When playing via command line, follow these steps to enter the corresponding commands.

export LIBGL_ALWAYS_SOFTWARE=1 #Modify this window's environment variable to switch to CPU rendering when playing audio
VLC 1.mp3                      #Play audio

The following is the audio playback effect diagram:

Image 3

Audio Playback Display Effect

GST Command Line Audio Playback Function: When playing via command line, you need to follow the steps below to enter the corresponding commands.
Note: After entering the corresponding command, the audio playback progress will be displayed in the terminal.

gst-launch-1.0 uridecodebin uri=file:///home/pi/test.mp3 ! audioconvert ! audioresample ! autoaudiosink ## The parameter after "location" should be modified according to the actual video file path

Command parameter description:

  • gst-launch-1.0: This is GStreamer's command-line tool for building and running a GStreamer pipeline.
  • uridecodebin uri=file:///home/pi/test.mp3: Uses the uridecodebin element to read and automatically decode audio files from the specified URI path file:///home/pi/test.mp3. This is an advanced element that can automatically detect media types and select appropriate demuxers and decoders.
  • ! audioconvert: Through the ! symbol, connects the output of the previous element to the input of the next element. audioconvert is used to convert audio formats, ensuring audio format compatibility between consecutive elements.
  • ! audioresample: Resamples the audio, adjusting the audio sample rate to match the requirements of subsequent elements.
  • ! autoaudiosink: Automatically selects an appropriate audio output component to play audio content. Depending on the system environment, it will choose the most suitable audio output device, such as ALSA, PulseAudio, or other available audio backends.

The following is the audio playback effect diagram:

Image 3

Audio Playback Display Effect

Advanced Function

Dual Display Connection Method

Dual display function allows simultaneous display on both MIPI and HDMI screens on the single-board computer.
Note: For dual display functionality, connect using the MIPI screen method and a HDMI screen connected via DP port adapter.
Follow the diagram below for connection:

Dual Display Configuration Instructions

After connecting the hardware, the system will automatically detect both display devices. By default:
The MIPI screen serves as the primary display showing the complete desktop environment, while the HDMI screen serves as an extended display for extended viewing.
Users can switch dual display modes through the following methods:

  1. Open SettingsDisplays option.
  2. In the display settings, you can see identifiers for both screens.

The identification effect of the two screens is shown in the figure below:


3. Select the desired display mode:

  • Extended Display: Two screens show different content and can be operated independently.
  • Mirrored Display: Both screens show the same content.

Dual Display Considerations

  1. When using dual display, it is recommended to use a power adapter with better performance.
  2. When the two screens have different resolutions, display effects may vary.
  3. Some applications may need window positions readjusted to adapt to the dual-screen environment.

Application Scenarios

  • Media Entertainment Terminal: Using the Quectel-Pi-H1 single-board computer as a media entertainment terminal, it can play movies and videos, music, view pictures, etc.
  • Industrial Data Visualization Platform: Using the Quectel-Pi-H1 single-board computer as an industrial data visualization platform, it can display industrial data, monitor equipment operation status, and perform data processing, etc.
  • Smart Interactive Terminal: Using the Quectel-Pi-H1 single-board computer as a smart interactive terminal, it can be used for various human-computer interaction applications.

Troubleshooting

How to View System Logs

To view system logs, you need to connect the serial cable to a computer and use a serial tool to view the logs.

Black Screen Issue

After properly connecting the device, if the display shows a black screen after powering on, it may be due to the following situations:

  1. Power connection issue
    Check if the display's power supply interface is properly connected, confirm that at least one of the 4 power supply interfaces is correctly connected, ensure the power screws are tightened, and the pogo pins make good contact with the 40PIN.
  2. Connection line issue
    Check if the MIPI cable is properly inserted and securely connected, confirm the cable direction is correct to avoid reverse insertion, check if the connector has physical damage.
  3. System startup issue
    Confirm the system has started normally and loaded the display service, check if the login credentials are correct (default user: pi, password: quecpi), view system logs to confirm the display driver is loaded properly.

Screen Distortion Issue

After properly connecting the device, if the display shows screen distortion after powering on, it may be due to the following situations:

  1. Signal interference
    Check if the MIPI cable is too long or of poor quality, confirm there are no strong electromagnetic interference sources around the cable, try replacing with a high-quality MIPI cable.
  2. Hardware compatibility issue
    Confirm the display model used is fully compatible with Quectel-Pi-H1, check if the display firmware version is the latest version.

Touch Function Abnormality

Touch function abnormality may be due to the following situations:

  1. Driver issue
    Confirm the system has loaded the touchscreen driver correctly, check if I2C communication is established properly.
  2. Calibration issue
    If the touch position is inaccurate, you may need to recalibrate the touchscreen through the touchscreen calibration tool in system settings.