README 3.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. ################# SETUP ######################
  2. 1. ./setup
  3. 2. ./getVersion ip_address_of_Pi_target_device
  4. 3. make
  5. 4. ./deploy ip_address_of_Pi_target_device
  6. ################# TUNE TOOL ######################
  7. Use SSH in order to use the applications:
  8. ssh pi@ip_address_of_Pi_target_device
  9. The default passowrd is:
  10. raspberry
  11. The status messages have the following meaning:
  12. status 0x1f --- The demodulator status bits.
  13. 0x1f means all bits set, everything ok.
  14. signal [0x0000...0xffff] --- Signal Strength. Values above 0x8000 should be ok.
  15. snr [0x0000...0xffff] --- Signal/Noise Ratio. Values above 0x8000 are ok.
  16. ber [0...0xffffffff] --- Bit Error Rate. The less the better.
  17. unc [0...0xffffffff] --- Number of Uncorrectable Blocks.
  18. Small numbers are Preferable.
  19. If everything is alright and all frontend circuits are working stable
  20. (are locked) you should see a FE_HAS_LOCK in the rightmost line.
  21. ################ Example usage ######################
  22. ON THE PI Device
  23. $ cd /home/pi/Desktop/sonyEw100/tuneTool
  24. $ ./tune -c channels.conf -r 'BTV'
  25. [keep it running in one console]
  26. The output of the program should look like this:
  27. using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'
  28. reading channels from file 'channels.conf'
  29. Version: 5.11 FE_CAN { DVB-T + DVB-T2 }
  30. tuning to 626000000 Hz
  31. video pid 0x13f8, audio pid 0x13f9
  32. status 00 | signal 9eb7 | snr 07dc | ber 00000000 | unc 76f434f8 |
  33. status 1f | signal 9f24 | snr 7a65 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  34. status 1f | signal 9e4a | snr 7a33 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  35. status 1f | signal 9d02 | snr 77dc | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  36. status 1f | signal 9d02 | snr 7980 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  37. status 1f | signal 9d70 | snr 7972 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  38. status 1f | signal 9e4a | snr 7d07 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  39. status 1f | signal 9f24 | snr 74f2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  40. status 1f | signal 9ddd | snr 78a6 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  41. status 1f | signal 9d02 | snr 791d | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  42. status 1f | signal 9ddd | snr 6fe3 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  43. status 1f | signal 9c95 | snr 79b2 | ber 00000000 | unc 00000000 | FE_HAS_LOCK
  44. 2. In another terminal window start the ./test_pes tool which
  45. takes the output of an audio/video encoder(MPEG2) stream. The content
  46. of the outfile is in PES(Packetized Elementary Stream) packets.
  47. *Notice that the audio pid must match the one of our channel.
  48. It is also displayed on line 19.
  49. $ cd /home/pi/Desktop/sonyEw100/pesTool
  50. $ ./test_pes 0x13f9 audioPes
  51. test_pes: using '/dev/dvb/adapter0/demux0'
  52. PID 0x13f9
  53. output to 'audioPes'
  54. got 4096 bytes
  55. got 4096 bytes
  56. got 4096 bytes
  57. got 4096 bytes
  58. got 4096 bytes
  59. got 4096 bytes
  60. got 4096 bytes
  61. got 4096 bytes
  62. got 4096 bytes
  63. got 4096 bytes
  64. got 4096 bytes
  65. got 4096 bytes
  66. got 4096 bytes
  67. got 4096 bytes
  68. got 4096 bytes
  69. got 4096 bytes
  70. got 4096 bytes
  71. got 4096 bytes
  72. got 4096 bytes
  73. got 4096 bytes
  74. Press Ctrl+C to stop and record the file.
  75. 3. Alternatively dump the MPEG transport stream to a file using another terminal window
  76. $ cat /dev/dvb/adapter0/dvr0 > /tmp/recording.ts