background image

25

 

 
  

CONFIDENTIAL     

                                    

DOC-USR-0049-03 

 

____________________________________________________________________________________

 

Z3 Technology, LLC 

 100 N. 8th St. STE 250 

 Lincoln, NE 68508-1369 USA 

 +1.402.323.0702 

8.0

 

  RUNNING THE DECODER 

The Z3-DM368-RPS also supports decode and display via composite, component, or HDMI.  The steps below 
show how to use the Z3-DM368-RPS to decode a stream generated by another Z3-DM368-RPS.  Another 
example of decode can be found in the next section on reading and writing files. 
 

8.1

 

  Connect the Decoder Board 

(1)

 

Connect the Ethernet to a hub/router connected to the streaming source. 

 

 
 
 
 
 
 
 
 
 
 
 
 
 
 

(2)

 

Connect the Serial and 5V power. 

(3)

 

Connect “Component Out” of the Z3-DM368-RPS to a monitor. 

(4)

 

Connect “A/V Out” of the Z3-DM368-RPS to the L/R audio inputs of the same monitor. 

 

 

8.2

 

  Set up the Decoder Board to Work with the Encoder Board 

(5)

 

 If you are using another Z3-DM368-RPS as the encoding source, you need to make sure that the 

encoding Z3-DM368-RPS and decoding Z3-DM368-RPS have different IP addresses. If you are using 
DHCP, this will automatically be taken care of.  If you are not using DHCP, you should set at least 
one of them to use DHCP to ensure the addresses are different. 

 

 

 

Figure 19  Z3-DM368-RPS Decode Connections 

Component 

Out 

Serial 

5V Power 

Ethernet 

A/V Out 

HDMI Out 

Содержание Z3-DM368-RPS

Страница 1: ...arefully and save the manual for future use This document contains proprietary and confidential information of Z3 Technology LLC Z3 This document may not be used reproduced disclosed or disseminated to anyone without the prior written approval of an authorized representative of Z3 Z3 Technology LLC incorporates HDMI technology The terms of HDMI and HDMI High Definition Multimedia Interface and the...

Страница 2: ...ded Block diagram in Section 1 0 and Section 2 0 Quick Start Guide Modified Section 7 11 added Hardware Warranty in Appendix C formatting KA Note This equipment has been tested and found to comply with the limits for a Class B digital device pursuant to part 15 of the FCC Rules These limits are designed to provide reasonable protection against harmful interference in a residential installation Thi...

Страница 3: ...irectories and Running the Make Script 11 6 0 CODE OVERVIEW 13 7 0 RUNNING THE ENCODER 14 7 1 Set up the HD Source 14 7 2 Connect the Board 14 7 3 Set up the Terminal Window 15 7 4 Power on the Board 16 7 5 Ensure your PC has a Proper IP Address 17 7 6 Run the Web Interface to Configure Encode 17 7 7 Run VLC to View Stream 19 7 8 Streaming RTP 20 7 9 Using DHCP 21 7 10 Dynamically Changing Bit Rat...

Страница 4: ...ain Menu Top Part 17 Figure 9 Example Settings for Running the Encoder 18 Figure 10 VLC Network Screen Setting to Receive Z3 TS Stream 19 Figure 11 Example of Z3 Video Streaming on VLC UDP 19 Figure 12 Example of Z3 Video Streaming on VLC RTP 20 Figure 13 Using DHCP 21 Figure 14 Saving Use DHCP 21 Figure 15 Finding DHCP assigned IP Address in the Serial UI 22 Figure 16 Finding DHCP assigned IP Add...

Страница 5: ...odule has on board high definition analog component output standard definition NTSC PAL composite video input and output as well as stereo audio input and output It also includes a micro SD card socket USB 2 0 Ethernet a real time clock and an IR sensor The Z3 DM368 MOD features a unique edge connector design which supplies all interfaces native to the DM368 to an application board mate including ...

Страница 6: ...unctions not present in the base module The Z3 DM365 APP application board has component in out and A V composite dual analog in out There is also an SD card micro SD card and USB jack Figure 2 on the next page shows the Z3 DM365 APP application board A Linux based SDK additional design services and support are available from Z3 Technology Please contact Z3 at http www Z3technology com or e mail a...

Страница 7: ...___________________________________________________________________ Z3 Technology LLC 100 N 8th St STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 The figure below shows a block diagram of the Z3 DM368 RPS system Figure 3 Z3 DM368 RPS Block Diagram ...

Страница 8: ...t can be configured in the GUI is given in Section 13 0 SUMMARY OF OPTIONS on page 42 2 2 If You Already Have a System from Z3 and Need to Update the Firmware You can update the firmware via the web GUI interface by following the instructions in Section 12 1 Method 1 Updating the Image File on page 34 2 3 If You are Ready to Start Development Details on how to untar and build the code can be found...

Страница 9: ...______________ Z3 Technology LLC 100 N 8th St STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 3 0 INCLUDED PARTS LIST 1 x Z3 DM368 MOD 01 1 Z3 DM365 APP 03 1 x 5V Power Supply 1 x Serial Cable 1 x Gender Changer to connect to serial cable 2 x Video Cables 1 Content SD Card 1 x Z3 368 RPS Documentation ...

Страница 10: ...interface for use with CMOS sensors or other devices o Digital Video output interface for use with LCD or other devices o Composite Video input output o Component Analog Video output o Stereo Audio input three sets of stereo inputs o Stereo Audio output line level plus independent output for headphones o Fast Ethernet I O o Two MMC SD card ports one with support for Memory Stick o Two UARTs for se...

Страница 11: ...g toolchain You can determine whether your OS is 64 bit by using the uname p command A 64 bit OS will return x86_64 while a 32 bit OS will return i386 i586 or i686 For 64 bit Ubuntu you can get the necessary libraries by typing sudo apt get install ia32 libs For 64 bit Fedora you can type sudo yum install glibc i686 5 2 Making the Directories and Running the Make Script The software provided will ...

Страница 12: ...oln NE 68508 1369 USA 1 402 323 0702 The outcome of the build process should be newly created image files in the images directory You can confirm this by doing the following cd images ls alt The result should be something like the following Note that actual filenames dates and times will differ Figure 4 Sample content of Images Directory after Successful Build ...

Страница 13: ...ill see the following top level directories build tools Config files and scripts for building the codebase ezsdk A modified version of the TI EZSDK code factory Factory testing scripts the user can disregard these filesys The base filesystem for release kernels Kernel code for release sysapps Various supporting applications toolchain The ARM toolchain for building the codebase u boot u boot code f...

Страница 14: ... stream 1080p or 1080i video to VLC running on your PC 7 1 Set up the HD Source 1 Select an HD source with component output such as a Blu Ray player Power on the HD Source Connect component to a monitor Set the HD Source to 1080p or 1080i output Select content you would like to stream 7 2 Connect the Board For these steps please refer to Figure 5 2 Connect the supplied 2 5mm serial cable and NULL ...

Страница 15: ... connector unconnected Connect the 2 5mm end to A V In 5 Connect the Ethernet The next step is to set up a terminal to view the activity of the board 7 3 Set up the Terminal Window 6 If you are running from a Windows PC run TeraTerm Select Setup Serial Port and set the following Port The serial port the port is connected to Baud Rate 115200 Data 8 bit Parity None Stop 1 bit Flow Control None 7 If ...

Страница 16: ...d 8 Connect the 5V power supply and turn on the switch If all is configured properly you should see the board booting up within the terminal window After about a minute you will see the RPS Main Menu Note the local IP address and netmask in this example it is 192 168 0 65 and 255 255 0 0 This is the IP address of the board You will need this later to access the web interface Figure 7 Z3 DM368 RPS ...

Страница 17: ...is is the case If necessary use the P and Q options in the RPS menu to modify the address network mask of the board to conform to your network Note that the first two parts being the same are based on a value of netmask of 255 255 0 0 If netmask were 255 255 255 0 for example then the first three parts of the IP address would have to be the same After you are done make note of the address you set ...

Страница 18: ... and Output Format to MPEG 2 TS 12 Change Dest Address to the IP address of your PC in this example 192 168 0 6 Also change Dest Port to 5004 13 Click Start The status should change to Started Figure 9 Example Settings for Running the Encoder 1 Change input to Component 2 Change Video Resolution to Follow Input 3 Change Output Format to MPEG 2 TS 4 Change Dest IP Address to PC IP Address 5 Change ...

Страница 19: ...View Stream 14 Run VLC on your PC version used in testing at Z3 2 1 0 15 Select Media Open Network Stream In the box type udp 192 168 0 6 5004 where 192 168 0 6 is the IP address of your PC and 5004 is the value of Dest Port noted in step 12 16 Press Enter 17 You should now see video streaming to VLC Figure 10 VLC Network Screen Setting to Receive Z3 TS Stream Figure 11 Example of Z3 Video Streami...

Страница 20: ...oftware release from Z3 To stream using RTP do the following steps 18 In the Encoder settings tab click on Stop to stop the current encoding session 19 Change Output Format from MPEG 2 TS to RTP 20 Confirm that Dest Port see Figure 9 is 5004 this will be important for the VLC configuration 21 Click on Start Encoder to start the RTP stream 22 Copy the z3 dm368_5004 sdp file received from Z3 to your...

Страница 21: ...acquire an IP address at boot up To use it complete the following steps 25 Click the Use DHCP check box in the Web GUI Once it is checked you will see that the values of the Local IP address Local Netmask and Default Gateway will gray out 26 Click on Save User Wait for the Saved all to User message to appear Figure 13 Using DHCP 2 Values gray out 1 Check Use DHCP 1 Click Save User 2 Wait for Saved...

Страница 22: ...re are two ways you can find out the IP address assigned by DHCP The first is through the Serial UI by looking at the IP address shown just before the main menu is shown 30 The second method is to use the ZFinder tool To do this run ZFinder from a Windows PC connected to the same network as the Z3 DM368 RPS You should see the Z3 DM368 RPS along with the assigned IP address New IP Address Figure 15...

Страница 23: ... You can go back to Static IP by unchecking Use DHCP and saving that to the user settings 7 10 Dynamically Changing Bit Rate Frame Rate It is possible to change two parameters in the middle of an encoding session 1 Video Bit rate 2 Frame Decimation To change these simply enter the new desired value and then click the Start Encoder button The web page will respond with the following message Status ...

Страница 24: ...ase accordingly To minimize latency this value should be set to the lowest possible value The lowest value Z3 recommends is 150 Figure 18 shows the suggested values for Video Burst Size and B frame Interval for 3 common use cases Video Burst Size Case 1 Highest Quality Highest Latency 2000 Case 2 Good Quality Standard Latency 1000 Case 3 Normal Quality Lowest Latency 150 RTP offers lower latency t...

Страница 25: ...e Ethernet to a hub router connected to the streaming source 2 Connect the Serial and 5V power 3 Connect Component Out of the Z3 DM368 RPS to a monitor 4 Connect A V Out of the Z3 DM368 RPS to the L R audio inputs of the same monitor 8 2 Set up the Decoder Board to Work with the Encoder Board 5 If you are using another Z3 DM368 RPS as the encoding source you need to make sure that the encoding Z3 ...

Страница 26: ...1 402 323 0702 8 3 Configure the Encoder 6 Go to the Encoder Z3 DM368 RPS Change the settings to match those in the figure below Here a multicast address is used You can also stream unicast to the Decoder by specifying the IP address of the decoding Z3 DM368 RPS Using multicast allows you to also open VLC and view the stream from there Figure 20 Encoder Settings for Decoder Example ...

Страница 27: ...r on the Decoder Z3 DM368 RPS 8 Follow steps 6 to 10 in Section 8 0 to bring up the GUI for the Decoder Z3 DM368 RPS 9 You should be at the System Setup Tab From here click on Operating Mode in the lower right corner and change to Decoder 10 Once you do this the menu changes to a Decoder menu Modify the settings to match those shown below Change mode here Figure 21 Changing to Decoder Mode Figure ...

Страница 28: ...der board and click Start Encoder 12 Go to the Decoder board and click Start Decoder 13 After a brief pause you should start seeing audio and video on the monitor 14 Display by HDMI is possible as well To use this connect the HDMI output and specify Component as the output Component causes output to be driven on both Component and HDMI 15 You can also view the content using VLC Open VLC as you did...

Страница 29: ...laying it back and play back the file on a PC Writing to and reading from a file is accessed via the serial interface The details on what steps to take are listed below 1 First make sure the proper encode decode connections are made to the Z3 DM368 RPS as described in Section 7 0 and Section 8 0 2 Boot up the Z3 DM368 RPS connected to the serial interface You should see the serial UI main menu see...

Страница 30: ...f you are encoding D1 make sure composite is connected If you are encoding any other resolution besides D1 make sure component is connected If you get the error CMEM Error getPool Failed to get a pool fitting a size ___ that indicates that the source is coming in at a different resolution from what was specified For example the input source is 1080 but an encoding resolution of 720p is specified I...

Страница 31: ...402 323 0702 10 0 WRITING AND READING JPEG FILES Writing and reading JPEG files is an option in the File Read Write portion of the Z3 DM368 RPS The example applications can be run as follows 1 Bring up the File Read Write menu as described in steps 1 4 of Section 9 0 2 Type 17 and return The sample application will then take 100 JPEG pictures and finish Figure 24 Running JPEG Encode ...

Страница 32: ... STE 250 Lincoln NE 68508 1369 USA 1 402 323 0702 3 To decode the JPEG files type 9 and return The JPEG files are shown in sequence as a slide show You can use the P key to show the previous picture and cause the slide show to run backwards and the N key to show the next picture and cause the slide show to run forward Figure 25 Running JPEG Decode ...

Страница 33: ...odify the options in the GUI to exercise other features These include Encode from Composite to Composite Adjust the Bit rate Adjust the Frame rate Adjust the GOP size Change the Video Profile used You can also store the configuration and store in the default or other files Besides using the web based GUI you can also use the serial menus More detailed system information such as generating debug lo...

Страница 34: ...ING THE CODE YOU BUILT ON THE BOARD There are 2 ways to take the image files you built in Section 3 and run them on the board 1 Updating the image file and 2 Setting up NFS TFTP to link to your development PC 12 1 Method 1 Updating the Image File 1 Run the Web Interface Steps 1 9 in Section 7 0 2 Select UPDATE from the top of the GUI Click here Figure 26 Updating the Device Firmware from the Web I...

Страница 35: ...is important because if there are any timing changes brought about by u boot those will only take effect after a reboot occurs 7 If a MFR version is loaded the MAC address resets to the default value This can cause an issue if the Z3 DM368 RPS is used with another Z3 DM368 RPS that also has reset values if two systems have the same MAC address on the network behavior is unpredictable For this reas...

Страница 36: ...gs to home An example of a tftp file would be service tftp disable no socket_type dgram protocol udp wait yes user nobody server usr sbin in tftpd server_args home c Make a tftpboot directory sudo mkdir tftpboot sudo chmod R 777 tftpboot sudo chown R nobody tftpboot d Start TFTP sudo etc init d xinetd start 2 Enable NFS on the Linux PC The target DM8148 will mount the root file system using NFS Th...

Страница 37: ...ctory name may be different depending on your specific release cd home z3 z3 dm368 ln s z3 dm368 RPS date images images ln s z3 dm368 RPS date filesys filesys f Start the NFS server sudo service nfs kernel server restart 3 Configure u boot on your board to match your system configuration settings a Reboot the board with minicom or TeraTerm setup on your PC see Steps 5 and 6 in Section 7 0 b As soo...

Страница 38: ...he images link you set up in step 2e The value of nfs_root should point to the fs subdirectory within the filesys link you set up in step 2e e Save your changes and then copy this file to your home directory this will make it easy to transfer from minicom later cp u boot_envDM368 txt home z3 Figure 28 Editing u boot_envDM368 txt Modify to match the IP address of your Linux PC Modify to match the n...

Страница 39: ...inal settings h The next step is to read in the u boot environment file you just modified If you are using minicom type ctl A and Z to bring up the Command Summary Then type Y for Paste file i This should bring up the Select file for upload window pointing to your home directory From here use the up and down arrow keys to scroll down and select the u boot_envDM368 txt file you modified and then co...

Страница 40: ...of serverip nfsserver and netmask to make sure it conforms to your network You can use seteny to change anything that needs to be modified m Set boot mode to NFS TFTP DM365 EVM run set nfs DM365 EVM run set tftp 4 Make sure the DM368 is connected to your network 5 From the u boot prompt type boot DM365 EVM boot You should see the Z3 DM368 RPS boot the kernel obtained via TFTP mount a file system u...

Страница 41: ... Commands Besides booting from NAND and TFTP NFS there are other boot configurations that are possible Below are the possible options provided in the Z3 u boot environment set nfs Get root file system from NFS set ram0 Get root file system from NAND set tftp Get kernel from TFTP set nand Get kernel from NAND update kernel Write a new kernel image in NAND from TFTP update ram0 Write a new root file...

Страница 42: ...it Rate 32 64 96 128 192 256 320 384 The bit rate for audio in kbps Video Resolution WQVGA 1080i or follow input The input resolution Note 1 Rate Control CBR VBR Chooses between constant bit rate and variable bit rate Constant bit rate will cause the encoder to drop frames if it detects the bit rate being exceeded Video Bit Rate 100 12000K Default 4000k The video bit rate Video Profile High Main B...

Страница 43: ...MPEG 2 TS RTMP is not supported in this release Dest Address 192 168 x y 192 168 0 6 The IP address that the encoder is streaming to Dest Port 0 9999 8888 The port that the encoder is streaming to TS Bit Rate for MPEG 2 TS 0 16000K 12000K The overall bit rate for the generated transport stream if MPEG 2 TS or MPEG 2 TS over RTP is selected A margin of 30 50 over the video bit rate for high bit rat...

Страница 44: ...eo Codec H 264 The video format being used in the incoming stream Only H 264 is supported in this release Audio Codec AAC PCM None The audio codec being used in the incoming stream Available options depend on what was licensed MVE Flag Yes No Set this flag if the streaming source is a Z3 DM368 based encoder Output Interface Component Composite Selects whether output goes out on component or compos...

Страница 45: ...gn a password to the Z3 DM368 RPS UPDATE Update firmware Local IP Address 192 168 X XX 192 168 0 65 Set the IP address of the Z3 DM368 RPS Local Netmask 255 255 X X 255 255 0 0 Set the netmask of the Z3 DM368 RPS Default Gateway 192 168 X XX 192 168 0 1 Set the gateway for the network the Z3 DM368 RPS is connected to Load Factory Default Settings Button Load settings installed at the factory Load ...

Страница 46: ...359296 bytes read OK Booting kernel from Legacy Image at 80700000 Image Name Linux 2 6 18 14_pro500 davinci_e Image Type ARM Linux Kernel Image uncompressed Data Size 2038680 Bytes 1 9 MB Load Address 80008000 Entry Point 80008000 Verifying Checksum OK Loading Kernel Image OK OK Starting kernel Uncompressing Linux done booting the kernel no vid3 buffer allocated AF Driver initialized sda assuming ...

Страница 47: ... tts 0 r 115200 vt100 Z3 Technology DM36x Linux 2 6 18 http www Z3technology com login 634 root login on tts 0 BusyBox v1 15 0 svn 2014 05 06 21 20 14 CDT built in shell ash Enter help for a list of built in commands Memory CMEM 128M Linux 128M Total 256M Starting web configurator ECC failed 0 ECC corrected 0 Number of bad blocks 0 Number of bbt blocks 0 Block size 131072 page size 2048 OOB size 6...

Страница 48: ...o Channels Stereo 5 Audio Bitrate 128 kbits 6 Video Resolution Follow input 9 Rate Control CBR A Video Bitrate 4000k B Video Profile High C Gop Size 60 Frames D Video Burst Size 300ms E Video Codec H 264 F Frame Decimation None G Video Delay 0 H Audio Delay 0 I Output Interface Ethernet VBR J Output Format RTP K Dest IP Address 192 168 0 6 L Dest Port 5004 M ASI Bitrate 8000k N ASI PCR Interval O ...

Страница 49: ...e overwritten There is no recovery once you hit Write Device 6 When ZWriter is finished eject the SD card from your computer 7 Place the SD card in the socket on the Z3 DM368 RPS 8 Power on the system viewing the terminal output via your PC 9 You should be able to see the system updating the flash 10 Once the update is complete the system will automatically reboot 11 Power off the Z3 DM368 RPS 12 ...

Страница 50: ...8 RPS IP address from the Linux PC Try pinging the Linux PC from the Z3 DM368 RPS Problem Do not see video in VLC UDP Does the IP address set in Dest IP Address equal the IP address of the PC running VLC Does the port number in Dest Port equal the value entered in the URL for VLC Does the video coming out of the source match the resolution in the encoder settings Is the PC fast enough for 1080p de...

Страница 51: ... 2e on page 37 Does the IP address added in etc exports match the IP address set in nfsserver in u boot Does the value of nfs_root in u boot point to z3 dm814x filesys fs Did you start the NFS server If you modified the exports file did you remember to restart the NFS server after that For information regarding your hardware warranty please visit http Z3technology com support hardware warranty Whe...

Отзывы: