configure HSA-500 for VOD

HSA-500-L2 comes with dual 4G/LTE support, so that we can use 4G bonding as backhaul for Internet access and provide dual-band Wi-Fi access to users for general Internet browsing. At the same time, the locally stored contents (via USB drive) can deliver on-demand video/music to users via web browser, so that user can enjoy entertainment at lightning speed without consuming mobile bandwidth. This is particularly useful for providing multimedia entertainment in moving vehicle such as buses or trains.

In order to store video or music contents on USB and stream off from HSA (via USB drive), we need to develop html codes to include the necessary contents, similar to any video web sites. In this case, HSA acts as a web server to host the contents (via USB drive) for users to browse via any standard web browser. See a live demo here.

This doc assumes the video web contents are already created. We just need to copy the contents to any supported USB drive, attach it to HSA USB port, and configure HSA with 4G/LTE bonding and portal URL rewrite to allow user to access the contents. (see below attached HSA config example).

1. Choose a supported USB drive

Most of the standard USB drives are supported. SanDisk drives are recommended (try not to use latest new models).

But you need to double check if your chosen USB drive is supported first. Just console to HSA, under enable mode, type "show logging system filter kernel", then attach your USB drive to the HSA USB port. You should see similar message like below (you must see sda: sda1)

mbox# show logging system filter kernel

[info] showing live system logs. use CTL+C to stop

[ 3444.907422] usb 1-1: new high-speed USB device number 2 using xhci-hcd

Mon May 28 10:24:43 2018 kern.info kernel: [ 3444.907422] usb 1-1: new high-speed USB device number 2 using xhci-hcd

[ 3445.055028] usb-storage 1-1:1.0: USB Mass Storage device detected

[ 3445.061617] scsi0 : usb-storage 1-1:1.0

Mon May 28 10:24:43 2018 kern.info kernel: [ 3445.055028] usb-storage 1-1:1.0: USB Mass Storage device detected

Mon May 28 10:24:43 2018 kern.info kernel: [ 3445.061617] scsi0 : usb-storage 1-1:1.0

[ 3446.069216] scsi 0:0:0:0: Direct-Access SanDisk Cruzer Edge 1.26 PQ: 0 ANSI: 5

Mon May 28 10:24:44 2018 kern.notice kernel: [ 3446.069216] s 3446.082599] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)

0:0:0:0: Direct-Access SanDisk Cruzer Edge 1.26 PQ: 0[ 3446.091947] sd 0:0:0:0: [sda] Write Protect is off

Mon May 28 10:24:44 2018 kern.notice kernel: [ 3446.08[ 3446.101740] sd 0:0:0:0: [sda] Write cache: disabled, read cache: enabled, doesn't support DPO or FUA

2599] sd 0:0:0:0: [sda] 7821312 512-byte logical blocks: (4.00 GB/3.72 GiB)

Mon May 28 10:24:44 2018 kern.notice kernel: [ 3446.091947] sd 0:0:0:0: [sda] Write Protect is off

Mon May 28 10:24:44 2018 kern.debug kernel: [ 3446.100466] sd 0:0:0:0: [sda] Mo[ 3446.132438] sda: sda1

de Sense: 43 00 00 00

Mon May 28 10:24:44 2018 kern.notice kernel: [ 3446.101740] sd 0:0:0:0: [sda] Write cache: disabled, read[ 3446.146570] sd 0:0:0:0: [sda] Attached SCSI removable disk

cache: enabled, doesn't support DPO or FUA

Mon May 28 10:24:44 2018 kern.info kernel: [ 3446.132438] sda: sda1

Mon May 28 10:24:44 2018 kern.notice kernel: [ 3446.146570] sd 0:0:0:0: [sda] Attached SCSI removable disk

If you don't see messages showing USB drive is mounted to as sda, it means your USB drive is not supported. Please try with a different brand/model.

2. Upload video contents to USB drive

You can develop video contents using your preferred html editor and copy the contents to supported USB drive. Please make sure your video contents follow below folder structure (/web/omg/). HSA web server by default uses /web/omg/ as root web directory. A sample video html codes are attached below. (unzip it to root of USB drive).

/web/omg/index.html

Please attach USB drive before boot up HSA, or a reboot is required after you attach a new drive.

3. Download sample HSA config and VOD contents to test

You can download sample HSA config (to restore to your HSA) and VOD contents (to upload to USB drive /web/omg/ folder).