Difference between revisions of "PPC-4310"

From Estone Technology Wiki
Jump to: navigation, search
(Graphics Tests)
(Running Video on PPC-4310)
Line 479: Line 479:
  
 
* To run a video on PPC-4310 have to download a video to a USB device, transfer the video to the PPC-4310 and play the video
 
* To run a video on PPC-4310 have to download a video to a USB device, transfer the video to the PPC-4310 and play the video
 +
  
 
<B>Note:</B> Follow the steps below to play video on PPC-4310
 
<B>Note:</B> Follow the steps below to play video on PPC-4310
  
 
* Assuming you have a video on a USB Flash drive, plug in the USB device to one of the 2 ports in the PPC-4310 I/O
 
* Assuming you have a video on a USB Flash drive, plug in the USB device to one of the 2 ports in the PPC-4310 I/O
 +
 +
[[File:Ppc4310-usb-video-play-1.png]]

Revision as of 01:01, 19 September 2019

About

Overview

The PPC-4310 is an all-in-one industrial POE touch Panel PC with WUXGA 1920 x 1200 touch screen. The system equips with NXP’s i.MX8M Quad Core ARM processor with a guaranteed 10 year lifespan. Edge to edge glass front panel meets IP65 rating. The Gigibit Ethernet PoE (Power over Ethernet) option makes it perfect for industrial control, building automation, HMI, interactive kiosk computer applications and PoE tablet replacement requires long product life cycle.

PPC-4310-2.jpg


Key Features:

  • NXP i.MX8M application processor with long life cycle support
  • IEEE 802.3af PoE Gigabit Ethernet port, second PCIe GbE option
  • On-board WiFi/BT, RS-232/485 and GPIO ports
  • 10.1” IPS LCD panel with projected capacitive touch screen
  • Smart codec with dual-core DSP for digital MICs and voice control
  • Camera, digital MICs and light sensor options
  • Support Android 8.1, 9.0, Yocto Embedded Linux, Ubuntu

  • PPC-4310-dimensions.jpg

    Specifications

    Processor: NXP i.MX 8MQuad, 4x ARM Cortex-A53 @ 1.5GHz
    Platform: ARM Cortex-A53
    System Memory: Onboard LPDDR4, up to 4GB
    Ethernet: 1 x 10/100/1000 Mbps GbE with POE option, second PCIe GbE (via optional add-on card)
    Wireless: 1x WiFi/Bluetooth USB module, 802.11 b/g/n + Bluetooth v4.0
    Storage: Onboard iNAND flash (8GB default), 1x micro SD slot, 265K EEPROM with write protect control
    Cooling: Fanless
    Display Interface: LVDS
    I/O Ports: 1 x RS-232/RS-485 and 2 x GPIO via terminal block
    1 x RS-232, GPIOs,SPI, 8ch DMIC, I2C via internal header
    2 x USB 2.0 Type A
    2 x USB 2.0 pin header
    1x USB Type C 3.0 OTG
    Speaker: Optional 1 x mono Class D speaker, up 2W(4Ω) or stereo line-out
    Watchdog Timer: Built-in
    RTC: Supports RTC backup battery
    Input Voltage: 5V DC or POE, 9V – 36V DC (via optional module)
    Display Type: 10.1” TFT active matrix LED backlight
    Display Resolution: 1920 x 1080
    Luminance: 400 cd/m2
    Contrast Ratio: 1300
    Viewing Angle: 85 (Left), 85 (Right), 85 (Top), 85 (Bottom)
    Backlight Lifetime: 25,000 Hr (Typical)
    Touch Type: Projected capacitive touch screen
    Touch Controller: I2C
    Enclosure Material: Aluminum + Steel
    Enclosure Color: Black, White front panel option
    Mounting: Panel mount or 75 x 75mm VESA mount
    Operating Temperature: 0 ~ 60°C (32 ~ 140°F)
    Storage Temperature: -40 ~ 85° C (-40 ~ 185° F)
    Operating Humidity: 10 ~ 95% @ 40°C (Non-Condensing)
    Protection: Front panel IP65 compliant, 3mm Tempered Glass
    Dimensions: 256 x 173 x 39.5 mm (10.7” x 6.81” x 1.56”)
    OS Support: Android 8.1, 9.0, Yocto Embedded Linux 4.x kernel, Ubuntu

    Datasheet

    Technical Specification Manual

    DDR-Tool

    Download DDR-Tool manual below

    Build Yocto(Linux) Image From Source

    Requirements

    CPU - 2 Core Processor
    RAM - 2GB Minumum
    Disk Space - 30GB Minimum
    Operating System - Ubuntu 16.04 LTS


    Setup Yocto Environment

    Note: Follow instructions below to setup host machine for image creation from source code

    1. Setup 4.14.98 Yocto Build Environment
    2. Build and Install 4.14.98 SDK


    Compile 4.14.98 Yocto Image from Source

    • Choose an image below you wish to compile from minimal to xwayland

    Note: Before compiling any of these images make sure you have successfully followed the Setup Yocto Build Environment and Build and Install SDK guides above this section. If not, please make sure you complete them before going into this section.


    Image Without Graphical User Interface


    Graphical User Interface Image


    Alexa-AVS Graphical User Interface Image

    Android 8 Image Build from Source

    Micro SD Image


    PPC-4310 Android 8 MFG Image

    Note: Download the image below and follow the steps in Section 7: PPC-4310 MFG Image to install pre-compiled Android 8 image

    Install MFG Image

    Note: You will need MFG image, host system, and PPC-4310 for this quick guide on how to install the 4.14.98 Yocto image to PPC-4310

    1. Download MFG image from link above
    2. Extract the MFG image on your host system (Windows 7, 8, 10)
    3. Connect the PPC-4310 to host system(Windows) system via USB Type-C
    Ppc-4310-usbc-to-host.png


    4. Open up the PPC-4310 backpanel by removing the 8 screws as shown in the image below.
    Ppc-4310-backpanel-screw-remove.png


    5. Once you have opened up the panel you will see a dip switch with 4 switches.

    • Turn all the switches to <off> position 1(Off) 2(Off) 3(Off) 4(Off).

    Mfg-dip-switch-emb-2238.png


    6. Connect power to the PPC-4310 panel through POE(Power On Ethernet) or 5V 2.5mm Power adapter based on your PPC-4310 model
    Ppc-4310-power.png


    7. Open the extracted emb-2238-mfg.zip >> emb-2238-mfg >> mfgtools
    Mfg-main-emb2238.pnd.png


    8. Double-click on the emb-2238 VBScript file to open the MfgTool_MultiPanel window to install full image
    Note: Double-click emb-2238-kernel VBScript to install only the kernel
    Emb-2238-mfg-open.png


    9. Press Open when prompted by the Security Warning window to open the MfgTool_MultiPanel
    Mfg-start-emb2238.png


    10. Make sure the PPC-4310 is connected from the USB Type-C to the host machine (Windows) & press Start on the MfgTool_MultiPanel to start the image flash process
    Mfg-start-emb2238.png


    11. Wait for the image flash process to finish. When the image is done flashing you can press Stop button to stop mfgtool, then press Exit to exit the mfgtool.
    Mfgtool-4.png


    12. Switch the dip switches on the system to boot from eMMC
    1(off) 2(off) 3(on) 4(off)


    13. Close the PPC-4310 backpanel and fasten the 8 screws.


    14. Power the system by PoE(Power on Ethernet) or 5V Power adapter


    System Should boot to flashed yocto linux image through eMMC

    Qt Creator

    Note: The guide below will allow you to install, configure, and test Qt Creator with your PPC-4310


    Testing

    Network

    Ethernet Connection:

    • Plug the RJ-45 ethernet cable to the PPC-4310 ethernet port, the unit will retrieve an IP address from the DHCP server.


    Note: In case of IP address retrieval failure follow the commands below

    # ifconfig eth0 up
    # udhcpc
    


    Check IP Address:

    # ifconfig
    

    EMB-2238-ifconfig.jpg


    Check Internet Connection:

    # ping 192.168.1.126 (Ping a host in the same network)
    # ping www.estonetech.com (Internet connection is successful if no loss of received packets)
    

    EMB-2238-ping.jpg


    Wi-Fi Testing

    Enabling the Wi-Fi Interface:

    # ifconfig wlan0 up
    

    EMB-2238-wlan0-up.jpg


    Scan for Wi-Fi hotspots:

    # iwlist wlan0 scan
    

    EMB-2238-wifi-scan.jpg

    • This will scan for any available networks available for connection


    • Modify the Wi-Fi wpa_supplicant.conf file according to the available network you want to connect to
    # cd /etc/
    # nano wpa_supplicant.conf
    


    • Input SSID(ssid="your SSID") and Password(psk="your_PASSWORD") from your specified router you want to connect to in the specified slots (/etc/wpa_supplicant.conf)

    ctrl_interface=/var/run/wpa_supplicant
    ctrl_interface_group=0
    update_config=1
    
    network={
     ssid="your_SSID"
     scan_ssid=1
     key_mgmt=WPA-PSK
     pairwise=TKIP CCMP
     group=CCMP TKIP WEP104 WEP40
     psk="your_PASSWORD"
    }
    

    EMB-2238-wpa supplicant.jpg


    • Acquire the Dynamic IP Address from the router's DHCP server
    # wpa_supplicant -Dwext -iwlan0 -c ./wpa_supplicant.conf -B
    # udhcpc -i wlan0
    

    EMB-2238-udhcpc-iwlan0.jpg


    • Check Wi-Fi Connection:
    # ifconfig -a
    # ping 8.8.8.8 (Google DNS Service)
    or
    # ping www.google.com
    


    Bluetooth

    • To enable and connect the bluetooth we will use the bluetooth command line:

    Turn on bluetooth:
    # bluetoothctl

    EMB-2238-bluetoothctl.jpg


    # power on

    EMB-2238-bluetoothctl-poweron.jpg


    Setup Pairing Agent:
    # agent on

    EMB-2238-bluetoothctl-agenton.jpg


    # default-agent

    EMB-2238-bluetoothctl-defaultagent.jpg


    Make PPC-4310 Discoverable:
    # discoverable on

    • The terminal will display Discoverable: yes and PPC-4310 will be discoverable to other devices
    • From your mobile device bluetooth search you will be able to see PPC-4310 as (imx8mqevk), select and wait for pairing passkey confirmation


    Passkey Confirmation:

    • Finish pairing the PPC-4310(imx8mqevk) and the bluetooth device you want to connect to


    # [agent] Confirm Passkey 706010 (yes/no): yes

    EMB-2238-bluetoothctl-passkey-confirmation.jpg


    • Authorize A2DP service (first 32 bits: 0000110d)

    # Authorize service 0000111e-0000-1000-8000-00805f9b34fb (yes/no): yes


    Note: You may be prompted to authorize different services depending on your device. Answer Yes or No depending on the service you wish to activate.


    Trusted Device:

    • Trust device connected to automatically accept connections from your bluetooth device to PPC-4310 next time when pairing.

    # trust XX:XX:XX:XX:XX:XX <--(bluetooth device MAC Address)


    • Exit from bluetoothctl command line interface

    # exit

    USB

    • When a USB device is connected to the PPC-4310 it will automatically be detected by the panel. If you have a terminal open when you connect a USB device, the terminal will output a message like the example shown in the picture below.

    Example
    EMB-2238-usb.jpg


    USB Access

    • To access the USB you first need to mount the USB to specific directory of your choice

    # mkdir /mnt/usb

    # mount /dev/sd<x>1 /mnt/usb


    Access USB Directory

    • Once the USB device is mounted on the directory you are now able to access the contents

    # ls /mnt/usb/

    EMB-2238-usb-contents.jpg


    Umounting USB Device

    • To safely umount and ejecting the USB device, you will need to first use umount command to unmount USB from PPC-4310

    # umount /dev/sd<x>1


    • Once unmounted, you can safely eject the USB from the PPC-4310

    # eject /dev/sd<x>


    • Note: Use this method to safely mount and unmount USB devices connected to the PPC-4310

    Graphics Tests

    • Follow steps below to test the graphics demos on the system below

    # cd /opt/viv_samples/vdk/

    # ./tutorial3_es20

    • Note: You can choose different graphics demo once in </opt/viv_samples/vdk/> directory
      [tutorial1, tutorial1_es20, tutorial2, tutorial2_es20, tutorial3, tutorial4, tutorial4_es20, tutorial5, tutorial5_es20, tutorial6, tutorial6_es20, tutorial7, tutorial7_es20]

    Weston-graphics-test1.png


    3D Demo Test

    • Follow steps below to test GLES3 3D object rendering demo

    # cd /opt/imx-gpu-sdk/GLES3/

    # ./Bloom/Bloom_Wayland

    Note: Other 3D rendering demos can be found in the directory: </opt/imx-gpu-sdk/GLES3>

    Weston-3d-demo-test2.png


    Running Video on PPC-4310

    • To run a video on PPC-4310 have to download a video to a USB device, transfer the video to the PPC-4310 and play the video


    Note: Follow the steps below to play video on PPC-4310

    • Assuming you have a video on a USB Flash drive, plug in the USB device to one of the 2 ports in the PPC-4310 I/O

    Ppc4310-usb-video-play-1.png