Giter Club home page Giter Club logo

Comments (2)

stulluk avatar stulluk commented on July 17, 2024 1

Mr Lelegard,

Thank you so much for your kindness and quick response.

Before contacting Dektec, here is what I did tonight (If it helps to someone else):

stulluk ~ $  sudo apt install linux-image-6.2.0-
linux-image-6.2.0-1003-nvidia      linux-image-6.2.0-1008-aws         linux-image-6.2.0-1009-lowlatency  linux-image-6.2.0-1011-azure-fde   linux-image-6.2.0-1012-lowlatency  linux-image-6.2.0-32-generic
linux-image-6.2.0-1005-aws         linux-image-6.2.0-1008-azure       linux-image-6.2.0-1009-nvidia      linux-image-6.2.0-1011-gcp         linux-image-6.2.0-1013-gcp         linux-image-6.2.0-33-generic
linux-image-6.2.0-1005-azure       linux-image-6.2.0-1008-azure-fde   linux-image-6.2.0-1010-aws         linux-image-6.2.0-1011-lowlatency  linux-image-6.2.0-1013-lowlatency  
linux-image-6.2.0-1006-aws         linux-image-6.2.0-1008-lowlatency  linux-image-6.2.0-1010-gcp         linux-image-6.2.0-1012-aws         linux-image-6.2.0-1014-gcp         
linux-image-6.2.0-1006-azure       linux-image-6.2.0-1009-aws         linux-image-6.2.0-1010-nvidia      linux-image-6.2.0-1012-azure       linux-image-6.2.0-25-generic       
linux-image-6.2.0-1007-aws         linux-image-6.2.0-1009-azure-fde   linux-image-6.2.0-1011-aws         linux-image-6.2.0-1012-azure-fde   linux-image-6.2.0-26-generic       
linux-image-6.2.0-1007-azure       linux-image-6.2.0-1009-gcp         linux-image-6.2.0-1011-azure       linux-image-6.2.0-1012-gcp         linux-image-6.2.0-31-generic       
stulluk ~ $  sudo apt install linux-image-6.2.0-33-generic linux-headers-6.2.0-33-generic linux-modules-6.2.0-33-generic linux-modules-extra-6.2.0-33-generic 
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  linux-hwe-6.2-headers-6.2.0-33
Suggested packages:
  fdutils linux-doc | linux-hwe-6.2-source-6.2.0 linux-hwe-6.2-tools
The following NEW packages will be installed:
  linux-headers-6.2.0-33-generic linux-hwe-6.2-headers-6.2.0-33 linux-image-6.2.0-33-generic linux-modules-6.2.0-33-generic linux-modules-extra-6.2.0-33-generic
0 upgraded, 5 newly installed, 0 to remove and 7 not upgraded.
Need to get 129 MB of archives.
After this operation, 698 MB of additional disk space will be used.
Do you want to continue? [Y/n] 
Get:1 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-hwe-6.2-headers-6.2.0-33 all 6.2.0-33.33~22.04.1 [13,0 MB]
Get:2 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-headers-6.2.0-33-generic amd64 6.2.0-33.33~22.04.1 [3.382 kB]
Get:3 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-6.2.0-33-generic amd64 6.2.0-33.33~22.04.1 [25,6 MB]
Get:4 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-image-6.2.0-33-generic amd64 6.2.0-33.33~22.04.1 [13,6 MB]
Get:5 http://archive.ubuntu.com/ubuntu jammy-updates/main amd64 linux-modules-extra-6.2.0-33-generic amd64 6.2.0-33.33~22.04.1 [73,6 MB]                                                                          
Fetched 129 MB in 13s (10,2 MB/s)                                                                                                                                                                                 
Selecting previously unselected package linux-hwe-6.2-headers-6.2.0-33.
(Reading database ... 269365 files and directories currently installed.)
Preparing to unpack .../linux-hwe-6.2-headers-6.2.0-33_6.2.0-33.33~22.04.1_all.deb ...
Unpacking linux-hwe-6.2-headers-6.2.0-33 (6.2.0-33.33~22.04.1) ...
Selecting previously unselected package linux-headers-6.2.0-33-generic.
Preparing to unpack .../linux-headers-6.2.0-33-generic_6.2.0-33.33~22.04.1_amd64.deb ...
Unpacking linux-headers-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Selecting previously unselected package linux-modules-6.2.0-33-generic.
Preparing to unpack .../linux-modules-6.2.0-33-generic_6.2.0-33.33~22.04.1_amd64.deb ...
Unpacking linux-modules-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Selecting previously unselected package linux-image-6.2.0-33-generic.
Preparing to unpack .../linux-image-6.2.0-33-generic_6.2.0-33.33~22.04.1_amd64.deb ...
Unpacking linux-image-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Selecting previously unselected package linux-modules-extra-6.2.0-33-generic.
Preparing to unpack .../linux-modules-extra-6.2.0-33-generic_6.2.0-33.33~22.04.1_amd64.deb ...
Unpacking linux-modules-extra-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Setting up linux-hwe-6.2-headers-6.2.0-33 (6.2.0-33.33~22.04.1) ...
Setting up linux-modules-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Setting up linux-headers-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
/etc/kernel/header_postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.2.0-33-generic

Kernel preparation unnecessary for this kernel. Skipping...

Building module:
cleaning build area...
'make' KERNELDIR=/lib/modules/6.2.0-33-generic/build..............................................
Signing module:
 - /var/lib/dkms/dektec/2023.08.0/6.2.0-33-generic/x86_64/module/Dtu.ko
 - /var/lib/dkms/dektec/2023.08.0/6.2.0-33-generic/x86_64/module/DtPcieNw.ko
 - /var/lib/dkms/dektec/2023.08.0/6.2.0-33-generic/x86_64/module/DtaNw.ko
 - /var/lib/dkms/dektec/2023.08.0/6.2.0-33-generic/x86_64/module/Dta.ko
 - /var/lib/dkms/dektec/2023.08.0/6.2.0-33-generic/x86_64/module/DtPcie.ko
Secure Boot not enabled on this system.
cleaning build area...

Dta.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-33-generic/updates/dkms/

DtaNw.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-33-generic/updates/dkms/

Dtu.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-33-generic/updates/dkms/

DtPcie.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-33-generic/updates/dkms/

DtPcieNw.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/6.2.0-33-generic/updates/dkms/

depmod...
   ...done.
Setting up linux-image-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
I: /boot/vmlinuz.old is now a symlink to vmlinuz-6.2.14-060214-generic
I: /boot/initrd.img.old is now a symlink to initrd.img-6.2.14-060214-generic
I: /boot/vmlinuz is now a symlink to vmlinuz-6.2.0-33-generic
I: /boot/initrd.img is now a symlink to initrd.img-6.2.0-33-generic
Setting up linux-modules-extra-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
Processing triggers for linux-image-6.2.0-33-generic (6.2.0-33.33~22.04.1) ...
/etc/kernel/postinst.d/dkms:
 * dkms: running auto installation service for kernel 6.2.0-33-generic
   ...done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.2.0-33-generic
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub'
Sourcing file `/etc/default/grub.d/init-select.cfg'
Generating grub configuration file ...
Found linux image: /boot/vmlinuz-6.2.14-060214-generic
Found initrd image: /boot/initrd.img-6.2.14-060214-generic
Found linux image: /boot/vmlinuz-6.2.0-33-generic
Found initrd image: /boot/initrd.img-6.2.0-33-generic
Found linux image: /boot/vmlinuz-5.19.0-50-generic
Found initrd image: /boot/initrd.img-5.19.0-50-generic
Memtest86+ needs a 16-bit boot, that is not available on EFI, exiting
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings ...
done
stulluk ~ $  uname -a
Linux u22 5.19.0-50-generic #50-Ubuntu SMP PREEMPT_DYNAMIC Mon Jul 10 18:24:29 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
stulluk ~ $  sudo reboot

.... After a reboot ...

stulluk /lib/modules/6.2.0-33-generic $  sudo modprobe Dtu 
stulluk /lib/modules/6.2.0-33-generic $  lsmod | grep -i Dtu
Dtu                  8830976  0
stulluk /lib/modules/6.2.0-33-generic $ dmesg -w
...
[  129.932455] Dtu: The Dtu driver V4.15.4.92 has loaded successfully.
[  129.932482] usbcore: registered new interface driver Dtu
[  150.964009] usb 1-2: new high-speed USB device number 5 using xhci_hcd
[  151.200372] usb 1-2: New USB device found, idVendor=1297, idProduct=030f, bcdDevice= 1.00
[  151.200378] usb 1-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[  151.200381] usb 1-2: Product: WestBridge 
[  151.200384] usb 1-2: Manufacturer: Cypress
[  151.200385] usb 1-2: SerialNumber: 0000000004BE
[  153.165406] usb 1-2: USB disconnect, device number 5
[  153.452810] usb 2-2: new SuperSpeed USB device number 2 using xhci_hcd
[  153.474660] usb 2-2: LPM exit latency is zeroed, disabling LPM.
[  153.477161] usb 2-2: New USB device found, idVendor=1297, idProduct=030f, bcdDevice= 0.00
[  153.477164] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=0
[  153.477165] usb 2-2: Product: DTU-315
[  153.477166] usb 2-2: Manufacturer: DekTec
[ 2384.540584] usb 3-1: reset high-speed USB device number 2 using xhci_hcd
...
stulluk ~ $  tsdektec -a -d
tsdektec: Debug: debug level set to 1
tsdektec: Debug: ====> tsdektec -a -d

DTAPI: 5.51.8.212, Dtu: 4.15.4.92

* Device 0: DTU-315 (Universal modulator)
  Physical ports: 1
  Channels: input: 0, output: 1
  Output 0: DTU-315 port 1, Modulator (L-band 950-2150MHz, VHF-band 47-470MHz,
      UHF-band 400-862MHz, Uni-directional output, MPEG-2 transport stream,
      Modulator output, High-quality modulation, Low-power mode, ATSC 8-VSB
      modulation, DVB-S modulation, DVB-S2 modulation, DVB-T modulation, QAM-A
      modulation, QAM-B modulation, QAM-C modulation, DVB-T2 single PLP
      modulation, Adjustable output level, Continuous wave, DVB carrier ID, Mute
      RF output signal, Adjustable roll-off factor, DVB-S2 16-APSK/32-APSK,
      Internal RF clock reference, Internal TS rate clock reference)
  Subsystem id: 0x0000 (DTU-315)
  Subsystem vendor id: 0x0000
  Device id: 0x030F
  Vendor id: 0x1297
  Serial number: 00000000XXXXXX
  Firmware version: 1 (0x00000001)
  Firmware variant: 0 (0x00000000)
  USB address: 0
  Customer id: XXXXXX
  Engineering change level: Rev 4
  Manufacture id: 03
  Production date: 2023.06
  Part number: DTU-315
  Serial number: XXXXX

stulluk ~ $ 

stulluk ~ $  tsp -I file --infinite input.ts -O dektec --modulation DVB-S2-QPSK --satellite-frequency 966000000 --lnb 9750,10600,11700 --convolutional-rate 3/4 --symbol-rate 27500000
* Error: file: cannot detect TS file format
stulluk ~ $  tsp -I file input.ts -O dektec --modulation DVB-S2-QPSK --satellite-frequency 966000000 --lnb 9750,10600,11700 --convolutional-rate 3/4 --symbol-rate 27500000
* Error: file: cannot detect TS file format
stulluk ~ $  file input.ts 
input.ts: data
stulluk ~ $  tsresync input.ts | tsanalyze 

===============================================================================
|  TRANSPORT STREAM ANALYSIS REPORT                                           |
|=============================================================================|
|  Transport Stream Id: ...... 16521 (0x4089)  |  Services: .............. 8  |
|  Bytes: ........................... 592,012  |  PID's: Total: ......... 33  |
|  TS packets: ........................ 3,149  |         Clear: ......... 33  |
|     With invalid sync: .................. 0  |         Scrambled: ...... 0  |
|     With transport error: ............... 0  |         With PCR's: ..... 7  |
|     Suspect and ignored: ................ 0  |         Unreferenced: .. 18  |
|-----------------------------------------------------------------------------|
|  Transport stream bitrate, based on ....... 188 bytes/pkt    204 bytes/pkt  |
|  User-specified: ................................... None             None  |
|  Estimated based on PCR's: ............... 40,214,649 b/s   43,637,172 b/s  |
|  Selected reference bitrate: ............. 40,214,649 b/s   43,637,172 b/s  |
|-----------------------------------------------------------------------------|
|  Broadcast time: ..................................... 0 sec (0 min 0 sec)  |
|-----------------------------------------------------------------------------|
|  Srv Id  Service Name                              Access          Bitrate  |
|  0x4440  (unknown) .................................... C       12,771 b/s  |
|  0x4484  (unknown) .................................... C       12,771 b/s  |
|  0x44C9  (unknown) .................................... C    6,615,176 b/s  |
|  0x4500  (unknown) .................................... C       12,771 b/s  |
|  0x4540  (unknown) .................................... C       12,771 b/s  |
|  0x4680  (unknown) .................................... C       51,082 b/s  |
............

... Then I decided to fix the stream ( which was perfectly playable with StreamXpress :( ) .....

stulluk ~ $  tsresync -c input.ts -o new_input.ts 
stulluk ~ $  ls -lah new_input.ts input.ts 
-rw-rw-r-- 1 stulluk stulluk 1,5G Eki  4 01:06 input.ts
-rw-rw-r-- 1 stulluk stulluk 1,5G Eki  4 01:41 new_input.ts

..... And finally, I have been able to play my fancy TS file with DTU-315 , and scan for channels on my STB, and watch TV...

stulluk ~ $  tsp --verbose -I file --infinite new_input.ts -O dektec --modulation DVB-S2-QPSK --satellite-frequency 11750000000 --lnb 9750,10600,11700 --convolutional-rate 3/4 --symbol-rate 27500000
* file: initial input bitrate is 40,214,653 b/s
* dektec: using Dektec device 0, output channel 0 (DTU-315 port 1)
* dektec: setting output TS bitrate to 40,905,509 b/s
* dektec: setting output carrier frequency to 1,150,000,000 Hz
* dektec: output fifo size: 16,777,216 bytes, max: 16,777,216 bytes, typical: 16,777,216 bytes
* dektec: initial output bitrate: 40,905,509 b/s
* dektec: Will preload FIFO before starting transmission. Preload FIFO size: 13,421,696 bytes.
* dektec: DTU-315 output FIFO load is 13,421,696 bytes, starting transmission
...

... WORKED perfectly....

So the original issue seems to be resolved, thank you so much, and I will close it.

For other readers, my personal lessons learned:

  1. Don't trust your kernel, try with other kernels ( Looking at you my ex company )

  2. RTFM (https://tsduck.io/download/docs/tsduck.pdf )

  3. tsresync stops at first sync failure, thats why we need "-c / --continue" . Check filesizes after fixing sync.

  4. Notice the satellite-frequency is in Hz , but Symbol Rate is in symbols/second. This was quite confusing unless you RTFM.

  5. When selecting the modulation frequency, it is quite different than what you see in Streamxpress. In the StreamXpress, modulation frequency is selected as 966000 , which corresponds to intermediate frequency ( 9750 + 966 = 10716 Mhz ) , but in TSP, you can directly write 11750 Mhz because you can define LNB as well. It seems to calculate corresponding IF automatically .

  6. TODOs: try all DVB-S/T/C modulation options , try RF Level adjustments, check if there is a progressbar in tsp, recompile tsduck from scratch to get rid of this libsrt issue.

  7. Finally, I should write a blog post named "How to use DTU-315 with TSduck for dummies like me",
    Thank you again,
    Best.

from dektec-dkms.

lelegard avatar lelegard commented on July 17, 2024

Hi,

There is no need to rebuild the deb package. If you are not familiar with dkms, the purpose of such a package is to install the source code of the driver somewhere in the system, only once. This source code is automatically recompiled each time the kernel is upgraded. And of course compiled the first time during installation of the package. From your logs, we can see that the driver was correctly recompiled. Then, it failed to load.

Without such a dkms package, you are obliged to manually recompile the driver from the Dektec-provided LinuxSDK.

The deb package in this project is just repackaging of the Dektec source code and build procedure into the dkms infrastructure.

Here, you build the Dektec driver and it fails to load. This is a problem to be addressed by Dektec. Since you purchased a DTU-315, you are a Dektec customer and may ask for support.

from dektec-dkms.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.