Support Vu+ Zero.
authorhschang <chang@dev3>
Mon, 17 Nov 2014 07:08:55 +0000 (16:08 +0900)
committerhschang <chang@dev3>
Tue, 18 Nov 2014 04:23:31 +0000 (13:23 +0900)
lib/python/Plugins/Extensions/DLNAServer/dlnaserver
lib/python/Plugins/Extensions/HbbTV/bookmark.py
lib/python/Plugins/SystemPlugins/3GModemManager/3gcommand
lib/python/Plugins/SystemPlugins/FirmwareUpgrade/plugin.py
lib/python/Plugins/SystemPlugins/HDMICEC/components/HdmiCec.py
lib/python/Plugins/SystemPlugins/Videomode/VideoHardware.py

index 05a13a0..4fad9ab 100755 (executable)
Binary files a/lib/python/Plugins/Extensions/DLNAServer/dlnaserver and b/lib/python/Plugins/Extensions/DLNAServer/dlnaserver differ
index 5048564..df96763 100644 (file)
@@ -124,7 +124,7 @@ class BookmarkManager(SimpleConfigParser):
                        f = file('/proc/stb/info/vumodel')
                        model = f.read().strip()
                        f.close()
                        f = file('/proc/stb/info/vumodel')
                        model = f.read().strip()
                        f.close()
-                       manualmode = (model == "solo2" or model == "duo2" or model == "solose")
+                       manualmode = (model == "solo2" or model == "duo2" or model == "solose" or model == "zero")
 
                        os.system('echo "[__SYS__]" > %s'%(_dbFileName))
                        os.system('echo "category_current_idx = 1" >> %s'%(_dbFileName))
 
                        os.system('echo "[__SYS__]" > %s'%(_dbFileName))
                        os.system('echo "category_current_idx = 1" >> %s'%(_dbFileName))
index 88d58d3..ae61799 100755 (executable)
Binary files a/lib/python/Plugins/SystemPlugins/3GModemManager/3gcommand and b/lib/python/Plugins/SystemPlugins/3GModemManager/3gcommand differ
index 0eb1d35..21c4661 100644 (file)
@@ -71,6 +71,15 @@ if os.path.exists("/proc/stb/info/vumodel"):
                         "fpga" : ["http://archive.vuplus.com/download/fpga", "fpga.files", "/dev/fpga_dp;/dev/misc/dp;"]
                        ,"fp"   : ["http://archive.vuplus.com/download/fp", "fp.files", "/dev/bcm_mu;"]
                        }
                         "fpga" : ["http://archive.vuplus.com/download/fpga", "fpga.files", "/dev/fpga_dp;/dev/misc/dp;"]
                        ,"fp"   : ["http://archive.vuplus.com/download/fp", "fp.files", "/dev/bcm_mu;"]
                        }
+       elif info == "zero":
+               fwlist= [
+                        ("fpga", _("FPGA"))
+                       ,("fp", _("Front Processor"))
+                       ]
+               fwdata= { 
+                        "fpga" : ["http://archive.vuplus.com/download/fpga", "fpga.files", "/dev/fpga_dp;/dev/misc/dp;"]
+                       ,"fp"   : ["http://archive.vuplus.com/download/fp", "fp.files", "/dev/bcm_mu;"]
+                       }
 
 import os, fcntl, thread
 STATUS_READY           = 0
 
 import os, fcntl, thread
 STATUS_READY           = 0
index 149b973..bd93f4d 100755 (executable)
@@ -86,6 +86,7 @@ class HdmiCec:
                        "solo2": "VU+ Solo2",
                        "duo2": "VU+ Duo2",
                        "solose": "VU+ SoloSE",
                        "solo2": "VU+ Solo2",
                        "duo2": "VU+ Duo2",
                        "solose": "VU+ SoloSE",
+                       "zero": "VU+ Zero",
                }
                if fileExists("/proc/stb/info/vumodel"):
                        vumodel = open("/proc/stb/info/vumodel")
                }
                if fileExists("/proc/stb/info/vumodel"):
                        vumodel = open("/proc/stb/info/vumodel")
index 0120f40..346c3b8 100644 (file)
@@ -56,10 +56,10 @@ class VideoHardware:
        }
 
        widescreen_modes = set(["720p", "1080i", "1080p"])
        }
 
        widescreen_modes = set(["720p", "1080i", "1080p"])
-       hdmi_hw_types = set(["dm500", "dm800se", "dm7020hd", "bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose"])
-       hdmi_pc_hw_types = set(["dm500", "dm800se", "dm7020hd", "bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose"])
-       noscart_hw_types = set()
-       noypbpr_hw_types = set(["solose"])
+       hdmi_hw_types = set(["dm500", "dm800se", "dm7020hd", "bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose", "zero"])
+       hdmi_pc_hw_types = set(["dm500", "dm800se", "dm7020hd", "bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose", "zero"])
+       noscart_hw_types = set(["zero"])
+       noypbpr_hw_types = set(["solose", "zero"])
 
        def getDeviceName(self):
                device_name = "unknown"
 
        def getDeviceName(self):
                device_name = "unknown"
@@ -74,7 +74,7 @@ class VideoHardware:
                return device_name
 
        def isVumodel(self, hw_type):
                return device_name
 
        def isVumodel(self, hw_type):
-               return hw_type in set(["bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose"])
+               return hw_type in set(["bm750", "solo", "uno", "ultimo", "solo2", "duo2", "solose", "zero"])
 
        # re-define AVSwitch.getOutputAspect
        def getOutputAspect(self):
 
        # re-define AVSwitch.getOutputAspect
        def getOutputAspect(self):