STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

TVMosaic live and recorded TV products for Desktop/NAS/Raspbery Pi
theovh7
Posts: 12
Joined: Mon May 28, 2018 8:51 pm

STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by theovh7 » Wed Jun 06, 2018 11:37 pm

TUTORIAL OSCAM & TVMOSAIC
PART1:OSCAM
1. You need a Smargo Smartcard reader or something similar for this to work. Install the Oscam Package from DSM Package Center.
2. If it’s not available then you need to add a link to the package source. Settings>Package Sources>Add
3. Name can be anything. For location enter this: http://synology.nimloth.pl and press OK
4. Do a new search in Package Center. It should find Oscam.
5. Install the Oscam package. (One tip concerning updates: don’t update to every new package. Not necessary. Unless you like clicking the update button every one or two weeks.)
6. Start the package and open the website. Mine is here http://192.xxx.xxx.xxx:9000
7. Now we have to configure OSCAM. I’m no expert on this so I followed some steps from here: https://eye-vision.homeip.net/plex-en-h ... smartcard/ Sorry it’s in dutch.
8. In oscam go to Files>oscam.conf. And copy this configuration. Save this config.:

Code: Select all

#
# main configuration
#
 
[global]
nice          = 1
WaitForCards  = 1
 
# logging
 
logfile       = /var/packages/oscam/target/var/log/oscam.log
usrfile       = /var/packages/oscam/target/var/log/oscamuser.log
cwlogdir      = /var/packages/oscam/target/var/log/cw
 
# monitor
 
[monitor]
port          = 988
aulow         = 120
monlevel      = 1
 
# web interface
 
[webif]
httpport      = 9000
httpuser      = 
httppwd       = 
httpallowed   = 0.0.0.0-255.255.255.255
 
# anti-cascading
 
[anticasc]
enabled       = 0
numusers      = 1
sampletime    = 2
samples       = 5
penalty       = 1
aclogfile     = /var/packages/oscam/target/var/log/aclog.log
denysamples   = 9
 
# protocols
 
[newcamd]
key           = 11223344556677889900AABBCCDD
port          = 9001@0604:PROVIDERID   
9. Next go to Files>oscam.user. And copy this configuration. Save this config.:

Code: Select all

[account]
user                        	= user1
pwd                         	= user1
caid				= 0604
au                           	= tvprovidername
group                      	= 1
ident            		= 0604:PROVIDERID
10. For every tuner you have to add a new user. I have a HDHomeRun so there are 4 users here. Add a user like this:

Code: Select all

[account]
user                         	= user2
pwd				= user2
caid				= 0604
au                          	= tvprovidername
group                      	= 1
ident                      	= 0604:PROVIDERID
11. Next go to Files>oscam.server. And copy this configuration. Save this config.:

Code: Select all

[reader]
label       = tvprovidername
description = tvprovidername smartcard
protocol    = smargo
detect      = CD
device      = /dev/ttyUSB0
group       = 1
emmcache    = 1,3,2
rsakey      = 3C8633AAC0D367533DEC7BB2EEEDEB8CA3ADA52E58B99BB34672783277A1DAAC3B6106AD0909774E031B2A6E30195B437683AD0FC599B87D08CEA47BE1B6C76A
boxkey      = 1122334455667788
caid        = 0604
mhz         = 600
cardmhz     = 600
auprov      = tvprovidername
12. Restart Oscam from Package center. Open Oscam and check the log. In the files mentioned above change the text PROVIDERID. Look for this line:

Code: Select all

entitlements for provider: 1, id: 06BB2E
13. the id part with 6 letters/numbers is what you need. It’s personal so don’t use this one. Again be consistent and use same id in all 3 files. Don’t forget to save.
14. TVProvidername can be anything but be consistent and use the same name in all three files.
15. Restart Oscam. If your smartcardreader is plugged in you should see a CARDOK on the right side of the homepage of oscam (status tab). On to the next part.

PART2: DVBJCAM
1. Install tvmosaic package on your synology
2. Download and install a desktop version of tvmosaic. In my case I downloaded the macOS version. We need this application for configuration later.
3. The TV mosaic package will install in a new folder called TVMosaic. Open this folder and go to devices folder. In this folder you see your device/tunername. Open the folder.
4. Download DVBJCAM.zip from here (direct link). Or read the wiki first.
5. Unzip dvbjcam.zip and look for the right synology folder. syno_processortype. In my case syno_armadaxp.
6. Make a new folder inside the tuner name folder called plugins.
7. Copy the 3 files (libdvbjcam.conf, libdvbjcam.readers & libdvbjcam.so) to the plugins folder we created earlier.
8. Open libdvbjcam.conf in a text editor and copy this:

Code: Select all

//Remark, remove // to activate line, 0 = off, 1 = on
console = off
log = off
logfile = /volume1/TVMosaic/temp/log_tuner1.txt
displaypmt = off
displaycat = off
softcsa = off
9. Make sure the path to the log file is correct. If you want to you change log=off to log = on to check if there are any errors. Don’t forget to change back later on because this is requires some extra CPU power that is not necessary.
10. Now open libdvbjcam.readers in a text editor. Copy this text on the first line (before everything else that’s already there.

Code: Select all

[reader]
label      = newcamd
protocol   = newcamd
key        = 11223344556677889900AABBCCDD
device     = 192.xxx.xxx.xxx, 9001
user       = user1
password   = user1
blockemm-g = 1
audisabled = 1
enable     = 1
11. The key and device part are important here. Key should be the same as in oscam.conf. device is the IP address of your oscam webservice (Same as your Synology DSM address.) Port number should correspond with port number in oscam.conf. After editing don’t forget to save both files.
12. If you have multiple tuners you need to copy the plugins folder to every tuner folder. repeat step 8 and change logfile path. Every tuner gets its own number.: logfile = /volume1/TVMosaic/temp/log_tuner2.txt …etc
13. If you have multiple tuners you also need to change libdvbjcam.readers for every tuner. It should read like this. Notice only user and password are different. They correspond with oscam.user password and username. save this file.

Code: Select all

[reader]
label      = newcamd
protocol   = newcamd
key        = 11223344556677889900AABBCCDD
device     = 192.xxx.xxx.xxx, 9001
user       = user2
password   = user2
blockemm-g = 1
audisabled = 1
enable     = 1
14. And were done….Now start the installation/configuration for TVMOSAIC with the desktop client as usual.

Let me know if anything is unclear or if you have any questions. Maybe I can help.

larry
Posts: 6
Joined: Fri Apr 13, 2018 2:44 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by larry » Wed Jun 13, 2018 4:59 pm

Hello, thx for the tutorial.
I want use DVBJcam with my Synology. I want use DVBJcam 0.08 , Synology DS 218+ with DSM 6.1xxx, TV Mosaic newest version.
my problem: DVBJcam dont start and crashed at start. It dont make any log file where i can look for the problem.

Code: Select all

[I] check_dvbjapi_plugin: /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins/libdvbjcam.so
[I] Found valid dvbjapi plugin directory /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins
[I] dvbjapi_plugin_manager::init. Plugin dir /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins
[I] check_dvbjapi_plugin: /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins/libdvbjcam.so
[I] dvbjapi_plugin::init. Plugin /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins/libdvbjcam.so
[E] dvbjapi_plugin::init. Load returned error 1 in plugin /volume1/TVMosaic/devices/PCTV_461____14926871155970998751/Plugins/libdvbjcam.so
[E] dvbjapi_plugin_manager::init. Error loading plugin libdvbjcam.so
 [I] tvs_plugin_collection::init. Initialized 1 plugins
Have you any idea?

theovh7
Posts: 12
Joined: Mon May 28, 2018 8:51 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by theovh7 » Thu Jun 14, 2018 9:06 am

Hi Larry. Did you take the right files for DVBJcam? Your Synology has a Intel Celeron J3355 CPU. That would be the syno_x86_64 folder from the zipfile. Did you edit these files with the right device ip??

Code: Select all

device     = 192.xxx.xxx.xxx, 9001

larry
Posts: 6
Joined: Fri Apr 13, 2018 2:44 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by larry » Thu Jun 14, 2018 1:29 pm

Hi theovh7, now its runnig. I using CCcam, but i think i have an failure at my readers file. I copied yours and now its works.
Yeahhh :)

theovh7
Posts: 12
Joined: Mon May 28, 2018 8:51 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by theovh7 » Fri Jun 15, 2018 7:39 am

NIce! Do you have the right protocol in your libdvbjcam.readers file? Down below (in that file) there's an example for cccam. The important part is:

Code: Select all

protocol = cccam

larry
Posts: 6
Joined: Fri Apr 13, 2018 2:44 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by larry » Sat Jun 16, 2018 11:26 am

Hey it works with CCcam, my conf for other people:

Code: Select all

[reader]
label      = CCcam
protocol   = cccam
device     = Dynds.org, 9001
user       = user
password   = password
blockemm-g = 1
audisabled = 1
enable     = 1

HomeNorway
Posts: 6
Joined: Tue Jul 31, 2018 8:02 am

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by HomeNorway » Tue Jul 31, 2018 8:20 am

Hi.

I have tried to follow the steps in my Synology DS214.
But I get to a stop i step 12 where I need to find the PROVIDERID.
When I look in the log file I see this (have in mind I disabeled and enbeled to cardreader in the bottom og the log file):

Code: Select all

main) System name    = Linux
(main) Host name      = XXXXXXX
(main) Release        = XXXXXXX
(main) Version        = XXXXXXX
(main) Machine        = armv7l
(main) creating pidfile /volume1/@appstore/oscam/var/run/oscam.pid with pid 6542
>> OSCam <<  cardserver log switched, version 1.20_svn, build r11429 (arm-unknown-linux-gnueabi-ssl-libusb-pcsc)
(config) userdb reloaded: 4 accounts loaded, 0 expired, 0 disabled
(main) signal handling initialized
(net) monitor: initialized (fd=6, port=988)
(net) newcamd: initialized (fd=7, port=9001)
(net) -> CAID: 0604 PROVID: 1F1F1F
(reader) tvprovidername [smargo] creating thread for device /dev/ttyUSB0
(main) waiting for local card init
(webif) webif: decompressed 177696 bytes back into 438032 bytes
(webif) HTTP Server running. ip=:: port=9000
(reader) tvprovidername [smargo] Buffers readed  0 bytes total time_us 85292
(reader) tvprovidername [smargo] Reader initialized (device=/dev/ttyUSB0, detect=cd, mhz= AUTO, cardmhz=600)
		(main) init for all local cards done
(emmcache) loaded 0 emmcache records from /volume1/@appstore/oscam/var/log/oscam.emmcache in 0 ms
(emmcache) loaded 0 emmstat records from /volume1/@appstore/oscam/var/log/oscam.emmstat in 0 ms
(anticasc) anti cascading disabled
	(reader) tvprovidername [smargo] Restarting reader
(reader) tvprovidername [smargo] creating thread for device /dev/ttyUSB0
(reader) tvprovidername [smargo] Buffers readed  0 bytes total time_us 81654
(reader) tvprovidername [smargo] Reader initialized (device=/dev/ttyUSB0, detect=cd, mhz= AUTO, cardmhz=600)
But no ID like in step 12/13

Code: Select all

entitlements for provider: 1, id: 06BB2E
In the status screen I also have "Readers 1/1 (0 of 1 CARDOK)", so for me it seems like OScam can acceess or find my card reader.

Can you see what I done wrong?

theovh7
Posts: 12
Joined: Mon May 28, 2018 8:51 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by theovh7 » Fri Aug 03, 2018 9:36 am

Hello HomeNorway. In your message I can see two PROVIDERID's. In the log file I see this:

Code: Select all

(net) -> CAID: 0604 PROVID: 1F1F1F
And below that (in a separate code block) you have another one:

Code: Select all

entitlements for provider: 1, id: 06BB2E
Maybe you have them mixed up somehow. I would go with the last one (06BB2E). Check you configuration and make sure only this id is used not the other one. Let me know if this doesn't work for you.

HomeNorway
Posts: 6
Joined: Tue Jul 31, 2018 8:02 am

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by HomeNorway » Fri Aug 03, 2018 11:11 am

Hi Theovh7
Maybe I'm blind, but I can't find it in the log file.

Code: Select all

entitlements for provider: 1, id: 06BB2E
But anyway I have changed the provider id in oscam.conf and oscam.user.

After a restart of Oscam and TVMosair I still can't see any tv channels.
But the log file from OScam shows some more now.

Code: Select all

(main) System name    = Linux
(main) Host name      = XXXXXXX
(main) Release        = XXXXXXX
(main) Version        = XXXXXXX
(main) Machine        = armv7l
(main) creating pidfile /volume1/@appstore/oscam/var/run/oscam.pid with pid 2559
(config) userdb reloaded: 4 accounts loaded, 0 expired, 0 disabled
(main) signal handling initialized
(net) monitor: initialized (fd=6, port=988)
(net) newcamd: initialized (fd=7, port=9001)
(net) -> CAID: 0604 PROVID: 06BB2E
(net) cccam: initialized (fd=8, port=9002)
(reader) tvprovidername [smargo] creating thread for device /dev/ttyUSB1
(main) waiting for local card init
(webif) webif: decompressed 177696 bytes back into 438032 bytes
(webif) HTTP Server running. ip=:: port=9000
(reader) tvprovidername [smargo] Buffers readed  0 bytes total time_us 85253
(reader) tvprovidername [smargo] Reader initialized (device=/dev/ttyUSB1, detect=cd, mhz= AUTO, cardmhz=600)
(reader) tvprovidername [smargo] card detected
(reader) tvprovidername [smargo] ATR: 3B 24 00 30 42 30 30
(reader) tvprovidername [smargo] MTV UNLIMITED recognized
(reader) tvprovidername [smargo] type: Conax, caid: 0B00, serial: 2155466995, hex serial: 8079d0f3, card: v64
(reader) tvprovidername [smargo] Providers: 1
(reader) tvprovidername [smargo] Provider: 1  Provider-Id: 000000
(reader) tvprovidername [smargo] Provider: 1  SharedAddress: 00403CE8
(reader) tvprovidername [smargo] found card system conax
(reader) tvprovidername [conax] THIS WAS A SUCCESSFUL START ATTEMPT No  1 out of max alloted of 1
>> OSCam <<  cardserver log switched, version 1.20_svn, build r11429 (arm-unknown-linux-gnueabi-ssl-libusb-pcsc)
(reader) tvprovidername [conax] Package: 1, id: 6010, classes: 01000008, date: 2016/03/01 - 2016/03/31, name: Packages 1
(reader) tvprovidername [conax] Package: 2, id: 6010, classes: 01000008, date: 2016/02/01 - 2016/02/29, name: Packages 1
(reader) tvprovidername [conax] Package: 3, id: 6020, classes: 01000002, date: 2018/07/01 - 2018/07/31, name: Packages 2
(reader) tvprovidername [conax] Package: 4, id: 6020, classes: 01000002, date: 2018/06/01 - 2018/06/30, name: Packages 2
(reader) tvprovidername [conax] Package: 5, id: 6030, classes: 01200106, date: 2016/01/16 - 2016/02/03, name: 6030
(reader) tvprovidername [conax] Package: 6, id: 6030, classes: 01200106, date: 1990/01/01 - 1990/01/01, name: 6030
(reader) tvprovidername [conax] Package: 7, id: 6040, classes: 01FB1CF7, date: 2016/01/16 - 2016/02/03, name: 6040
(reader) tvprovidername [conax] Package: 8, id: 6040, classes: 01FB1CF7, date: 1990/01/01 - 1990/01/01, name: 6040
(reader) tvprovidername [conax] Package: 9, id: 6050, classes: 010081E2, date: 2016/01/16 - 2016/02/03, name: 6050
(reader) tvprovidername [conax] Package: 10, id: 6050, classes: 010081E2, date: 1990/01/01 - 1990/01/01, name: 6050
(reader) tvprovidername [conax] Package: 11, id: 6060, classes: 01A1F0FF, date: 2016/01/16 - 2016/02/03, name: 6060
(reader) tvprovidername [conax] Package: 12, id: 6060, classes: 01A1F0FF, date: 1990/01/01 - 1990/01/01, name: 6060
(reader) tvprovidername [conax] Package: 13, id: 6070, classes: 01000084, date: 2018/07/01 - 2018/07/31, name: Services X
(reader) tvprovidername [conax] Package: 14, id: 6070, classes: 01000084, date: 2018/06/01 - 2018/06/30, name: Services X
(reader) tvprovidername [conax] Package: 15, id: 6080, classes: 01080000, date: 2016/01/16 - 2016/02/03, name: 6080
(reader) tvprovidername [conax] Package: 16, id: 6080, classes: 01080000, date: 1990/01/01 - 1990/01/01, name: 6080
(reader) tvprovidername [conax] Package: 17, id: 6100, classes: 01000829, date: 2018/07/01 - 2018/07/31, name: Services 2
(reader) tvprovidername [conax] Package: 18, id: 6100, classes: 01000829, date: 2018/06/01 - 2018/06/30, name: Services 2
(reader) tvprovidername [conax] Package: 19, id: 6120, classes: 01100010, date: 2018/07/01 - 2018/07/31, name: Services 4
(reader) tvprovidername [conax] Package: 20, id: 6120, classes: 01100010, date: 2018/06/01 - 2018/06/30, name: Services 4
(reader) tvprovidername [conax] Package: 21, id: 6140, classes: 01000C00, date: 2018/07/01 - 2018/07/31, name: Services 6
(reader) tvprovidername [conax] Package: 22, id: 6140, classes: 01000C00, date: 2018/06/01 - 2018/06/30, name: Services 6
(reader) tvprovidername [conax] Package: 23, id: 6090, classes: 01000000, date: 2016/10/01 - 2016/10/31, name: Services 1
(reader) tvprovidername [conax] Package: 24, id: 6090, classes: 01000000, date: 2016/09/01 - 2016/09/30, name: Services 1
(reader) tvprovidername [conax] Package: 25, id: 6110, classes: 01460000, date: 2018/07/01 - 2018/07/31, name: Services 3
(reader) tvprovidername [conax] Package: 26, id: 6110, classes: 01460000, date: 2018/06/01 - 2018/06/30, name: Services 3
(reader) tvprovidername [conax] Package: 27, id: 8010, classes: 01000800, date: 2016/08/01 - 2016/08/31, name: Services 7
(reader) tvprovidername [conax] Package: 28, id: 8010, classes: 01000800, date: 2016/07/01 - 2016/07/31, name: Services 7
(reader) tvprovidername [conax] Package: 29, id: 8011, classes: 01800100, date: 2018/07/01 - 2018/07/31, name: Services 8
(reader) tvprovidername [conax] Package: 30, id: 8011, classes: 01800100, date: 2018/06/01 - 2018/06/30, name: Services 8
(reader) tvprovidername [conax] ready for requests
(main) init for all local cards done
(emmcache) loaded 0 emmcache records from /volume1/@appstore/oscam/var/log/oscam.emmcache in 0 ms
(emmcache) loaded 0 emmstat records from /volume1/@appstore/oscam/var/log/oscam.emmstat in 0 ms
(anticasc) anti cascading disabled
My oscam.conf looks like this:

Code: Select all

# oscam.conf generated automatically by Streamboard OSCAM 1.20_svn SVN r11429
# Read more: http://www.streamboard.tv/svn/oscam/trunk/Distribution/doc/txt/oscam.conf.txt

[global]
logfile                       = /var/packages/oscam/target/var/log/oscam.log
nice                          = 1
usrfile                       = /var/packages/oscam/target/var/log/oscamuser.log
cwlogdir                      = /var/packages/oscam/target/var/log/cw

[cache]

[newcamd]
port                          = 9001@0604:06BB2E
key                           = 11223344556677889900AABBCCDD

[cccam]
port                          = 9002
nodeid                        = CC24B37A109B14FC
version                       = 2.0.11

[monitor]
port                          = 988
aulow                         = 120
monlevel                      = 1

[webif]
httpport                      = 9000
httpallowed                   = 0.0.0.0-255.255.255.255
aulow                         = 120
My oscam.user:

Code: Select all

[account]
user                        	= user1
pwd                         	= user1
caid				= 0604
au                           	= tvprovidername
group                      	= 1
ident            		= 0604:06BB2E
[account]
user                         	= user2
pwd				= user2
caid				= 0604
au                          	= tvprovidername
group                      	= 1
ident                      	= 0604:06BB2E
[account]
user                         	= user3
pwd				= user3
caid				= 0604
au                          	= tvprovidername
group                      	= 1
ident                      	= 0604:06BB2E
[account]
user                         	= user4
pwd				= user4
caid				= 0604
au                          	= tvprovidername
group                      	= 1
ident                      	= 0604:06BB2E
My oscam.server:

Code: Select all

# oscam.server generated automatically by Streamboard OSCAM 1.20-unstable_svn SVN r11279
# Read more: http://www.streamboard.tv/svn/oscam/trunk/Distribution/doc/txt/oscam.server.txt

[reader]
label                         = tvprovidername
description                   = tvprovidername smartcard
protocol                      = smargo
device                        = /dev/ttyUSB1
caid                          = 0604
boxkey                        = 1122334455667788
rsakey                        = 3C8633AAC0D367533DEC7BB2EEEDEB8CA3ADA52E58B99BB34672783277A1DAAC3B6106AD0909774E031B2A6E30195B437683AD0FC599B87D08CEA47BE1B6C76A
detect                        = cd
mhz                           = 600
cardmhz                       = 600
group                         = 1
emmcache                      = 1,3,2,0

theovh7
Posts: 12
Joined: Mon May 28, 2018 8:51 pm

Re: STEP BY STEP TUTORIAL OSCAM, DVBJCAM & TVMOSAIC

Post by theovh7 » Sat Aug 04, 2018 6:00 pm

Remove the cccam part in you oscam.conf. It's probably conflicting with newcamd.
These lines should be removed:

Code: Select all

[cccam]
port                          = 9002
nodeid                        = CC24B37A109B14FC
version                       = 2.0.11

Post Reply