# -*- coding:utf-8 -*- import os, sys, time from ssat_sdk.device_manage.tg39_manager import * ''' ATV播放器,汇总各种设备进行ATV信号输出 ''' class ATVPlayer(): def __init__(self): self.tg39Mgr = TG39Manager() def setCTYandCHN(self, countryID, channelID): """ RFCHA-arg1 For arg1, input the country name ID to set (as a decimal number). RFCHB-arg2 For arg2, input the channel ID to set (as a decimal number). countryID channelID 1 JAPAN 1 to 62 2 USA 2 to 83 3 EU 1 to 69 4 CHINA 1 to 68 5 UK 21 to 69 6 R 1 to 69 7 FRANCE 1 to 69 8 AUSTRALIA 1 to 69 9 JAPAN-C 1 to 63 10 USA-C 2 to 150 11 EU-C 2 to 56 12 CHINA-C 1 to 51 13 ITY 1 to 69 14 IRE 1 to 69 """ self.tg39Mgr.setCTYandCHN(countryID, channelID) ''' freq: float, value:MHz color_system:string,value:("NTSC-STD","NTSC-50","NTSC-443","PAL-STD","PAL-60","PAL-M","PAL-N","SECAM") tv_system:string,value:(MN,BG,DK,I,L,L') level:float, value:(29.0 to 109.0) (dBu V/75欧) ''' def setChannel(self, freq, color_system, tv_system, level): self.tg39Mgr.setChannel(freq, color_system, tv_system, level) ''' command:string, value:RS-232C command param:no type, value:Content ''' def setTG39CMD(self, command, param): self.tg39Mgr.setTG39CMD(command, param) def sendCmd(self, cmdLine): self.tg39Mgr.sendCmd(cmdLine)