################# SETUP ###################### 1. ./setup 2. ./getVersion ip_address_of_Pi_target_device 3. make 4. ./deploy ip_address_of_Pi_target_device ################# TUNE TOOL ###################### Use SSH in order to use the applications: ssh pi@ip_address_of_Pi_target_device The default passowrd is: raspberry The status messages have the following meaning: status 0x1f --- The demodulator status bits. 0x1f means all bits set, everything ok. signal [0x0000...0xffff] --- Signal Strength. Values above 0x8000 should be ok. snr [0x0000...0xffff] --- Signal/Noise Ratio. Values above 0x8000 are ok. ber [0...0xffffffff] --- Bit Error Rate. The less the better. unc [0...0xffffffff] --- Number of Uncorrectable Blocks. Small numbers are Preferable. If everything is alright and all frontend circuits are working stable (are locked) you should see a FE_HAS_LOCK in the rightmost line. ################ Example usage ###################### ON THE PI Device $ cd /home/pi/Desktop/sonyEw100/tuneTool $ ./tune -c channels.conf -r 'BTV' [keep it running in one console] The output of the program should look like this: using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' reading channels from file 'channels.conf' Version: 5.11 FE_CAN { DVB-T + DVB-T2 } tuning to 626000000 Hz video pid 0x13f8, audio pid 0x13f9 status 00 | signal 9eb7 | snr 07dc | ber 00000000 | unc 76f434f8 | status 1f | signal 9f24 | snr 7a65 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9e4a | snr 7a33 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9d02 | snr 77dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9d02 | snr 7980 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9d70 | snr 7972 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9e4a | snr 7d07 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9f24 | snr 74f2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9ddd | snr 78a6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9d02 | snr 791d | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9ddd | snr 6fe3 | ber 00000000 | unc 00000000 | FE_HAS_LOCK status 1f | signal 9c95 | snr 79b2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK 2. In another terminal window start the ./test_pes tool which takes the output of an audio/video encoder(MPEG2) stream. The content of the outfile is in PES(Packetized Elementary Stream) packets. *Notice that the audio pid must match the one of our channel. It is also displayed on line 19. $ cd /home/pi/Desktop/sonyEw100/pesTool $ ./test_pes 0x13f9 audioPes test_pes: using '/dev/dvb/adapter0/demux0' PID 0x13f9 output to 'audioPes' got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes got 4096 bytes Press Ctrl+C to stop and record the file. 3. Alternatively dump the MPEG transport stream to a file using another terminal window $ cat /dev/dvb/adapter0/dvr0 > /tmp/recording.ts