Access to network PC (SAMBA)
Network exchange using SMB / SAMBA protocols
One way of accessing from STB to files located on network computers is SMB / CIFS protocol (hereinafter SMB is used). SMB is a standard protocol used by the Microsoft Windows network file system.
Samba is a free implementation of the SMB protocol for UNIX-like and other types of operating systems.
SMB / Samba protocols using makes possible to share files between STB (Linux) and PC (Windows, Linux, etc.). Thus, STB users are enabled to play media files (video, audio, pictures) located on networked computers run OS which supported SMB
protocols.
SMB / Samba is an application layer protocol (in terms of the OSI networking model). For data exchange, it uses the transport protocol TCP / IP.
SMB / Samba protocol uses client-server architecture: the server is a PC that hosts certain network resources (folders) with media files, the client is an STB from which media files are played.
Shared network resources (as shortcuts) are displayed in STB, in the Home media menu, in accordance with standard network LAN architecture of Windows OS: Network / Workgroup / Computer / Folder.
By default, access to computer resources is closed on the computer side. If the STB user wishes to get network access to a certain computer folder, the computer user should open access to the folder using the File Sharing procedure.
There are two accessing modes to network recourses (i.e. specific network folders) that set on the server-side:
- password-protected - to open computer folder from STB, the user is obliged to pass Authorization procedure - i.e. to enter login (computer user name) and password (computer user password);
- without a password - to open a computer folder from STB no password is requested.
Discovering shared network resources on the STB side performs automatically (except when it is prohibited by the computer user or it is impossible due to networking issues). Connection to a network folder is established when the STB user opens this folder. In the case of password-protected access to the folder, the STB users will be asked to specify a login and password.
It is also possible to manually connect STB to a specific network folder (if it was not discovered automatically). For accessing and setting up network resources using SMB / Samba protocol on STB, the Home media menu is used.
Example of how to connect a network folder, located on PC run Windows 10 OS, to STB is described below.
Parameters used in example
Computer (file server):
- Operating system - Windows 10 64-bit;
- Computer name - My_computer;
- Working group - WORKGROUP (default working group name in OS Windows);
- PC IP address - 192.168.1.133.
- Resource for sharing (folder with media files) - Video_E1.
- User name - Usr.
STB (client)
- IP-address of STB - 192.168.1.205
Setting up connection on server
Checking availability of network connection PC - STB
Before setting up the connection, make sure that network connection between PC and STB is accessible - send ICMP Echo Requests (PING) from PC to selected STB.
SMB protocol enabling checkup
- Open Control Panel ⇒ All Control Panel Items ⇒ Programs and Features.
- In the left pane, select Turn Windows features on or off.
- Make sure that Support for SMB 1.0 / CIFS File Sharing Support option is enabled.
Sharing settings for Windows profiles
- Оpen Control Panel ⇒ All Control Panel Items ⇒ Network and Sharing Center
- In the left pane, select Change advanced sharing settings.
- Set sharing settings for three profiles (Private, Guest or Public and All Networks):
Private
Guest or Public
All Networks
Providing access to folder on PC
1. Open access to folder Video_E1: Properties ⇒ Sharing ⇒ Share.
2. In opened window File sharing select and add users to access the folder:
2.1 To provide password-protected access to the folder, select and add required users from a user list (in the example - Usr). In this case, when trying to open the folder from the STB side, the user will be asked to enter the login (PC user name) and password (PC user password) in order to connect the folder.
Take into account! The PC user account must comprise a specific password value (not be empty). In the case of empty user password access, the folder will be impossible!
3. Set permission level (read or read&write) for users and open access by clicking the Share shortcut.
Figures below demonstrate the example how to configure passwordless access (to all network users).
Network folder connection auto setup on STB
- In Embedded portal go to the Main menu ⇒ Home Media ⇒ Network ⇒ WORKGROUP
2. The WORKGROUP folder contains shortcuts of network computers. Click on My_Computer shortcut. This opens a list of shared computer folders.
3. To check out auto-detection of network resources and type of protocol, select folder and use "i" (INFO) button on the Remote Control:
4. Open folder Video_E1. Inside the folder, follow the path to a media file that you want to play. If the folder is shared (on PC) to all users, it opens automatically.
5. If the folder is password-protected or STB can not mount the folder for any reason then the Network connection window opens. For getting access, you must select OK - the Authorization window opens, in which you should enter parameters for accessing the folder: Login and Password.
6. After the list of files opens, run the file you want to play.
Manual connection to network folder
In some cases (when folder auto connection is not performed), user can manually configure access to a network folder:
- In Embedded portal go to Main menu ⇒ Home Media ⇒ Network
- Call Operations window - Menu button on RC.
- Find Tools tab (use left, right buttons) and click Connect NFS/SMB.
- In Connect network folder window, enter the following connection parameters:
- Server Address - IP address of PC (file server) on which required folders are located;
- Server folder - the name of the shared folder on PC;
- Local folder - the name of the folder on STB (usually the same as folder name on server);
- Connection type - SMB protocol;
- Login - the same as the user name of the PC. Login is entered if the folder is password-protected;
- Password - password for accessing the folder. It is entered if the folder is password-protected.
Note. In the case of passwordless access, Login and Password options should be empty!
Disconnecting network folder, changing folder settings on STB
To forced disconnecting certain network folder, use Disconnect NFS/SMB command.
If settings of established connection to certain network folder should be changed (for example, when networking settings were changed on the PC side), use Edit share command for this folder.
Folder mounting
Establishing a connection to a certain network folder (described in Network folder connection setup on STB and Manual connection to network folder) leads to mounting this folder on STB. If a certain folder has been mounted on STB, its shortcut puts on the top level of the Home media menu.
The user can mount a certain folder manually (this leads to its connecting too). For this purpose, command Mount share is used.
To unmount folder on STB (this leads to its disconnecting too), command Unmount share is used.
Problems of accessing network resources
- Follow these steps:
- Ping STB from PC side (make sure that both devices can communicate over the network). If needed, resume networking between STB and computer;
- Make sure that SMB protocol is enabled on server (PC);
- On PC, check Sharing settings for Windows profiles;
- On PC, check access settings to folder;
- If auto connection can not be established, try to set manual connection;
- Reboot STB and PC and try connecting folder again.
2. When you have set passwordless access to the folder (for all users), but you are prompted to authorize when you open the folder:
- On PC, verify that access to All user is opened in the folder File sharing - see PC side settings (sharing folder);
- If access to folder not resumed, restart STB.
5. If, when opening folder on STB, it is requested to perform authorization (enter login, password), but the password value is not set (empty password):
- Set specific password value for PC user;
- If access to folder not resumed, restart STB.
6. If any file does not open:
- check whether the file can be played locally on PC;
- try to play from STB other files from the same PC folder, from other network folders;
- try to play file with a different format (preferably, check file that was previously played on STB, for example, from USB-drive). Perhaps, file with this format is not supported by STB player.