Description

Package moServices (mos) is designed to add additional services and fix some bugs in the standard player firmware Asus O! Play R1 and Asus O! Play Air (R3). No changes or additions firmware is not required.

Kernel mos is a set of scripts written in Bash (shell), allowing the player to install specially designed modules that contain a given functional (if interested, how it works - see section below "For moved).

Web interface of the package allows you to conveniently manage installed modules: start, stop, prohibit, permit. Also allows you to navigate the Web interface module (if exists), edit the configuration files of modules, as well as view information about the system and reboot the player.
Web interface is available at: http://<player_address> or at http://<player_address>/cgi-bin/services.cgi

Modules can be divided into three groups: services, resource editor of player and patches.

Services

vsFTPd

Service access to the player via FTP. What is the easiest (in terms of resources) and fast, was delivered to the player first and, in general, it is sufficient to access the file share player.
There are two possible inputs:
ftp://<player_address> - anonymous login. Accessible directory /tmp/usbmounts which are mounted externally attached drives (USB drive, too). Available operations read, write, delete files, create, delete directories. 

ftp://root@<player_address> - administrative "root" entry. Home directory /(root). Subject to all transactions.

I draw your attention to the following fact: in the standard firmware root directory and descendants are protected from recording. You can only read. Open to the recording directory /tmp or /usr/local/etc (first mounted on to a ramfs and is lost when power is turned off. When you turn it copied the contents of /tmp_original; the second - the mounted part of the flash memory player with a free place and the possibility of change that in fact, helped to create this package)

Samba

And one more service to access the file share player. It is written by enthusiasts for Linux analog Microsoft Network, with all its consequences: cumbersome (in terms of resources and communication protocol) and because of this slowness and bugs. But since most users is Windows, this service was in demand because of its integration into the environment Microsoft Network.
The configuration file is supplied in the package is already configured and requires no changes. The only thing that can change - this is a working group (well, not all the same WORKGROUP) well and the network name of the player. This is done by standard methods kernel package: a Web interface to select Configurations - Samba, edit the file suggested and click "Save." If the service was launched, it will automatically restart.

In mos of the first version module SAMBA exists, but in latest firmwares (since R1_127 (R3_115)), in which there is the service, but for some strange reason does not run when you start the player, the package had to include another module embSAMBA, which it runs correctly. Naturally, this module will not work on earlier firmware.

MediaTomb


A powerful tool for working with media resources. Allows you to distribute to customers UPnP media content - video and music files, streaming, etc. It contains a built-in file manager, editor-in media base, has a convenient Web interface. More on http://mediatomb.cc/

Transmission


Service downloads and file sharing protocol torrent. This is the most sane and stable torrent client for our platform. It has a convenient Web interface, also made him a very good Remote GUI
Just a few comments on his work:




When adding a torrent creates an empty file size you want, at this point to the player has no access, since the establishment of access appears.


When you work with NTFS partitions when downloading files larger than 4 GB have been cases of damage to these files. It is expressed as follows: after shutting down and start pumping it through a period of time the client starts downloading, and almost immediately began to hash torrent was up to some value and could not move on, though, responded to commands, and worked fine with other torrents. It was found: a multi-threaded write to NTFS in the kernel player realized the error, as I have written repeatedly. "Thank you" says the author NTFS, holding the protocols and Realtek who chooses to use this system.
The solution for the moment only similar rtorrent: use for download EXT3 partition and move the completed download to NTFS.
In the client config this problem is solved as follows:

"download-dir": "\/tmp\/hdd\/volumes\/HDD1",
"incomplete-dir": "\/tmp\/hdd\/volumes\/HDD2\/Incomplete",
"incomplete-dir-enabled": true,


* In our case, the path may be different!
It must be remembered that the operation of the transfer is sufficiently long and resource intensive. While it can be observed strongly inhibits the player interface and the denial of network services. Nevertheless, the client remains operational. So - would recommend to use for downloading and storing EXT3 partition without transfer.


Login and password to entry to web-interface:

login: torrent
passwd: 1234

UDPxy

UDP-to-HTTP Proxy. Designed to transform the udp-multicast IPTV traffic to tcp-multicast (specifically http) traffic. This is useful for comfortable viewing of IPTV over WiFi, NAT, on the PDA, home players and gaming consoles.
Here is an example of using binder UDPxy and MediaTomb to view the multicast broadcast:


qqq999:
1. Set the firmware R1_1.28 or above
2. http://farvoice.net78.net - set moServices
3. go through the web-face http://192.168.1.2 (or your IP-address of the player)
4. Set MediaTomb and UDP-to-HTTP Proxy v1.0b16
5. Navigation - MediaTomb access

For example, a provider of IP TV broadcasting in the format udp: / / @ 233.3.2.1:5000

Add to MediaTomb this link:

External Link (URL)
Title: 1 channel
URL: http://127.0.0.1:8080/udp/233.3.2.1:5000
Protocol: http-get
Class: object.item.videoItem
Description: 1 channel
Mimetype: video / x-msvideo

6. Go into a menu, the player with remote Movies - Folder - UPnP - MediaTomb Server
and select the desired channel, which has just added
(If you will go without a sound - stop and play)


Mounts

Module to mount custom parts, including the network sharing.

Examples of mounting:

Network Service NFS:
Mount point /tmp/ramfs/volumes/mypublic
The device (address) 192.168.20.1:/public
File system nfs
Options nolock

Network Service SAMBA (Windows running on this protocol):

Mount point /tmp/ramfs/volumes/mywork
The device (address) //192.168.20.1/Work
File system Cifs
Options: username = guest, iocharset = utf8

SpinDown


Parking hard drives. Works in conjunction with patchedRootApp.

Resources editors

Starting with firmware R1_121 (R3_109) in our player is Online resources: radio, television, weather, Picassa, Flickr, and in the latest firmware added another Stocks and RSS-news. The following modules are included in the mos, avoid tedious instead of clicking the remote control when editing lists.

TVStationList (tvs)


You can edit the list of Favorite Internet TV. Due to the fact that since the firmware R1_127 (R3_115) changed the algorithm to work with this list, the package also present editor for firmware R1_124 (R3_112) oldTVStationList (otvs)

RxStationList (orxs)

You can edit the list of Favorite Internet radio stations. No change shifted from the previous version (and, accordingly, the previous firmware). Edits are only two fields: Name (station name) and Url (Link station). Left blank appeared in version R1_127 (R3_115) field BitRate, Codec, Genre, Region, Stream and Website. If these fields are important to you - use the built-in player editor or use Internet radio manager.
The plans also editor of the RSS-news, but until recently it was not clear what will change in the official firmware, and so work on this module were stopped.

Patches


PatchedRootApp

In our player we have bad feature - incorrect work when you turn off / on with the remote. At the time of being killed off all the services, but when you turn just restarted DvdPlayer, while newly copied directory tmp. I had to connect to the package module Patched RootApp, which allows you to run scripts when events suspend and wakeup, which is in suspend properly shutting down services, and when wakeup their runs.

RemoteControl

I took the modules on this section of patches for the reason that other manufacturers players, this functionality is, but we have not. Actually, this is a simple Web control panel, which works on all browsers supporting Java. Pictured under the screen iPod Touch.

Since the revision 0.4 of the module is integrated anti-sleep. Background to this is:

Viper_Rus: Any new firmware 1.28 (1.16). If you pull out and insert the power cord and not to touch anything, go to sleep after 5 minutes. It helps as I just put Power Saving 120. Then there is at least 2:00, but then he falls asleep and not only in the main menu. If, after loading even click to scroll the menu up or down (in a circle) then after that do not fall asleep. Or maybe you can like a thread through your remote control to create a small module that gives some thread command after loading the player?

FarVoice:
Make it simple: put Remote Control, and then file rcS are adding the last line:
echo-n "XXX">>/tmp/ ir
This we have sent DvdPlayer command three times to scroll down the menu. Anyway looks aesthetically

Viper_Rus:
In short, the result.
simply adding echo "XXX">>/tmp/ir fix it. After reboot (pulling power) is not sleep (visually not even move the menu, because there is no pause) When the off button (sleep) and turn it on again, just not hunging (but it's strange, I can not understand why, because in theory program is completely restarted)

FarVoice:
... that after WakeUp not sleep - is understandable: you just pressed the button on the remote - so was the activity of the user. Because when you switch to network our apparatus enabled by default, and if No activity 5 minutes it shuts down. Cherish nature, your mother ....
Inserting a row with Home to the module RemoteControl


Swap on drive

To somehow compensate for the lack of memory in our player, made a module, the connector section to an external device that is formatted as a Linux Swap your system swap. At startup scans sections connected devices (disks, flash drives), and if there is a section labeled as Linux Swap - connected to the swap system. At stop - off. Warning: Do not pull drives from the swap at work! This is 90% of cases lead to device hang! First off (you can control, if installed PatchedRootApp) and then remove. 

At attached drive make place somewhere 512 Mb and creates a Linux Swap. I was doing these operations under the Windows of Acronis Disk Director, but this is someone she likes. 

To see the current size of the Swap go to the web interface to link information and there in the section "cat /proc/meminfo" look at the size of SWAP. If more than 32 K, then your swap connected. Well, you can give the command in telnet free and there see the size of the swap

RDate

The synchronization module date and time. Before the firmware R1_128 (R3_116) player does not know how to do it. In the latest firmware it does it, but when and how? ... This module makes every startup package, but you can re-sync by going to edit the TimeZone and clicking "Save."

Now some of the most TimeZone:

a small faq, taken from the forum Iconbit
For not very advanced users of linux like me: so for Irkutsk - IRK-8IRC, M3.5.0, M10.5.0 / 8
Accordingly, we can guess as to other cities. Who is interested in details:
MSK-3MSD, where:
MSK - the first name of time-zone (any three characters);
-3-Shift hours to the west on Greenwich (negative numbers
denote the zone GMT x, positive GMT-x);
MSD - the second name of time-zone. If it coincides with the first, then transfer to
summer / winter time there will not be, if not identical in at least one
symbol, the translation will be.
As I understand it at the end of a line after the / should be the same squiggle showing
deviation from Greenwich, as well as after - or. I have everything worked as it should.
list of time-zones from chobo

Asia/Almaty ___ ALMT-6
Asia/Anadyr ___ ANAT-12ANAST,M3.5.0,M10.5.0/3
Asia/Ashgabat ___ TMT-5
Asia/Baku ___ AZT-4AZST,M3.5.0/4,M10.5.0/5
Asia/Bishkek ___ KGT-6
Asia/Dushanbe ___ TJT-5
Asia/Irkutsk ___ IRKT-8IRKST,M3.5.0,M10.5.0/3
Asia/Kamchatka ___ PETT-12PETST,M3.5.0,M10.5.0/3
Asia/Krasnoyarsk ___ KRAT-7KRAST,M3.5.0,M10.5.0/3
Asia/Magadan ___ MAGT-11MAGST,M3.5.0,M10.5.0/3
Asia/Novosibirsk ___ NOVT-6NOVST,M3.5.0,M10.5.0/3
Asia/Omsk ___ OMST-6OMSST,M3.5.0,M10.5.0/3
Asia/Sakhalin ___ SAKT-10SAKST,M3.5.0,M10.5.0/3
Asia/Samarkand ___ UZT-5
Asia/Tashkent ___ UZT-5
Asia/Tbilisi ___ GET-4
Asia/Tel_Aviv ___ IDDT
Asia/Ulan_Bator ___ ULAT-8
Asia/Vladivostok ___ VLAT-10VLAST,M3.5.0,M10.5.0/3
Asia/Yakutsk ___ YAKT-9YAKST,M3.5.0,M10.5.0/3
Asia/Yekaterinburg ___ YEKT-5YEKST,M3.5.0,M10.5.0/3
Asia/Yerevan ___ AMT-4AMST,M3.5.0,M10.5.0/3
Europe/Berlin ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Bratislava ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Bucharest ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Budapest ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Helsinki ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Istanbul ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Kaliningrad ___ EET-2EEST,M3.5.0,M10.5.0/3
Europe/Kiev ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/London ___ GMT0BST,M3.5.0/1,M10.5.0
Europe/Luxembourg ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Madrid ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Minsk ___ EET-2EEST,M3.5.0,M10.5.0/3
Europe/Moscow ___ MSK-3MSD,M3.5.0,M10.5.0/3
Europe/Prague ___ CET-1CEST,M3.5.0,M10.5.0/3
Europe/Riga ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Samara ___ SAMT-4SAMST,M3.5.0,M10.5.0/3
Europe/St.Petersburg ___ MST-3MDT,M3.5.0/2,M10.5.0/3
Europe/Tallinn ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Vilnius ___ EET-2EEST,M3.5.0/3,M10.5.0/4
Europe/Volgograd ___ VOLT-3VOLST,M3.5.0,M10.5.0/3
Europe/Warsaw ___ CET-1CEST,M3.5.0,M10.5.0/3

For advanced users


How it looks inside:
Package is in the directory / usr / local / etc / mos
The main script is called services, it handles scripts, lying in a directory of scripts.
Exec: start, stop, enable, disable

When installing in rcS prescribed single line:

/usr/local/etc/mos/services start

Each module has a separate folder. The module meets the script from the scripts with a name that matches the name of the folder module. Possible keys to run the script:
start, stop, enable, disable, status
Also required for each module is a file control, lying in the folder module. Its contents:

Required fields:

 Rev = 0.3  Revision number
  Name = vsFTPd FTP daemon v 2.2.2  Full name of the module

Fields tabs "Navigation" web interface package:
  Menu = Explore FTP  The text of the menu bar
 Web = ftp://root@%addr%/tmp/usbmounts  Link to the resource. % Addr% is replaced by the current IP address of the player

Fields tab "Resources" web interface package:
 Content = TVStation list  The text of the menu bar
 Config = /usr/local/etc/mos/otvs/TVStation  Path to the configuration file
  on_edit = get  (Optional) The key for the script module, which is executed before the editing.
Fields tab "Configuration" web interface package:

  Edit = vsFTPd   The text of the menu bar
 Config = /usr/local/etc/mos/vsftpd/vsftpd.conf   Path to the configuration file
 on_edit = get   (Optional) The key for the script module, which is executed before the editing.

Other fields:
 Remove = no  Prevent remove, disable module and display it in the list of services. It is for the core

Additional software

Asus O!Play moServices Manager



Description

This manager is designed to install, configure, remove media player software for ASUS O! Play HDP R1/R3 (player) on the basis of package "moServices" from the distinguished Farvoice. This manager is the same as features of the web interface "moServices", but does not require the initial setup files to the player, the knowledge of the console and linux.

Setup

When you first start the program asks you to enter the initial parameters of the program:

- IP address of the player;

- URL of the repository (an Internet address where the package moServices is stored);

- Specify whether to automatically connect to your player when you start to read the list of installed modules;

- Specify whether you want to show a terminal window to monitor the process.

- Specify the language of the program.
- Specify whether you want to use the editor TV stations TVstation list.

Run

Make sure that the player is on,the correct IP address is entered, on the PC allowed the program moServices manager access to ports 23 and 8643. Then just click the Read from the player. The program automatically updates the list of available programs in the repository and view a list of currently installed programs on your player.

Work

At start program checks for the presence of a package is installed in the player. If the package is not installed, the manager will ask for permission to install. When first installed, the default will be installed modules: core, RootAPP, vsftpd. After installing the player will restart.

All operations are performed checking or unchecking checkmarks in front of each module in the appropriate column.
Example: want to install transmission 2.04. Check opposite transmission 2.04. Then when you click Apply, installing the selected module will started.

If the module is set, uncheck Install and click Apply, then the module will be removed.
This applies to the Allow column, running, Update (available only if there are updated). When setting the number and location of checkboxes uncritically. After installing, removing modules player will restart.
If the module contains configuration files, you can edit them by clicking the appropriate checkbox.
After editing need to click Save.

Using the editor to mount additional partitions (module mounts).

When you click on the checkbox in the column opposite the editing module mounts to run an ordinary editor, described above, as your own. It must specify:
mountpoint - a name that appears in the player menu (the folder - a storage device). Before the partition name must be /tmp/ramfs/volumes/;
device (address) - the network path to the resources of another device;
Type of file system - specify type of file system to connect to resources other device;
Options - depending on the type of connection may need to specify additional options.

After introducing the above mentioned parameters must click to add:

Delete the selected mount point, you can click to remove
Quit without saving - press exit.
Save Changes press button save:
Using the editor TVstation list.

This editor allows you to add, delete, reorder, edit the list of TV stations from the module TVstation list.
The editor runs only if the in settings the program Use editor for TVstation list is checked.
To edit press the checkbox in the column opposite the editing module TVstation list.

Adding TV stations.

To do this, click the Add button:
and edit the station name and a link to stream. Editing by double-clicking on the selected field.

Editing TV stations.
Select the desired TV station and edit the item as described above.

Deleting TV stations.
Select the desired TV station, and click Remove.

Save changes.
To save the TV station, the player must click the Save button:
Misc.
The editor provides the ability to switch to edit mode using an ordinary editor configuration files. To switch to normal editing need to press the switch to the editor.

Removing

To remove a package, press the Delete button package. The program will remove the package from the player and reboot the player.

Backup

To back up configuration files and configuration of modules need to click Create.


To restore the settings and configuration of modules need to click Restore. If recovering module is not installed, the program this module automatically installs.

Asus O!Play Internet Radio Manager


Description

 This manager is designed to work with favorite radio stations (Favorites) of player ASUS O! Play HDP R1/R3.

Performs the following functions:

- Read / write list of stations with the player (now no FTP);

- Support of all the files list of radio stations;

- Support for UTF8. The names of the stations can be written in Cyrillic;

- Listen to the station selected once the program (check at work);

- Sorting stations;

- Backup and recovery stations;

- Multilingual interface support.

Setup

To run this application must specify the IP address of the player. On the PC should be open ports 23 and 8644.

Work

First run. The program displays a message on the need to specify the IP address and choose a language.

After setting, can be reading stations from the player by clicking Load from the player. On next run, program settings are read from the configuration file. If the player has only 2 stations list file: IRxStationFavorite, IRxStationUrl, the program will automatically supplement the list of 6 other files (with default data). After manipulation of the stations to add / delete / sort / change - the stations can be saved to the player by clicking the Save to player button on the player. You can also create a backup stations. You need to read the list with your player and click Save to file. Specify the file name and path. After that the program will archive (format ZIP) on disk. To restore from a backup station to press the Restore from file button from the file and select the backup file name. After this optional edit the list of stations, and send it to the player (Save on your player). Also there is an experimental feature listen to radio. If the selected station to double click or click Play - begin playing a radio station. Warning Some types of radio stations are not supported for playback (especially libraries bass.dll). Example: mms://,http://cluster.quantumart.ru/broadcast/default.aspx?media=hitfm.

Comments