Panasonic AE3000

From LinuxMCE
Revision as of 00:05, 16 December 2010 by Johanr (Talk | contribs)

Jump to: navigation, search
Version Status Date Updated Updated By
710 Unknown N/A N/A
810 Unknown N/A N/A
1004 Unknown N/A N/A
1204 Unknown N/A N/A
1404 Unknown N/A N/A
Usage Information

--Johanr 23:47, 15 December 2010 (CET) The Panasonic AE 3000 can be controlled by rs-232. I am working on a template(whenever there is time left) and here is what I have put into it this far. Currently the receiving of feedback from the projector is not working and also the init process is abit dodgy. I have therefore not uploaded the template yet. Please feel free to come with suggestions regarding the ruby since this is the first one for me. Below is the print of the output from the log

0:require 'Ruby_Generic_Serial_Device'
  1:class Command < Ruby_Generic_Serial_Device::RubyCommandWrapper
  2:end
  3:class Device_72 < Ruby_Generic_Serial_Device::RubySerialIOWrapper
  4:#### 192 ####################################################################
  5:def cmd_192(pk_pipe, pk_device_pipes, cmd=nil)
  6:@returnParamArray.clear
  7:conn_.Send("\x02PON\x03")
  8:
  9:return @returnParamArray
 10:end
 11:#### 193 ####################################################################
 12:def cmd_193(pk_pipe, cmd=nil)
 13:@returnParamArray.clear
 14:conn_.Send("\x02POF\x03")
 15:
 16:return @returnParamArray
 17:end
 18:#### 350 ####################################################################
 19:def cmd_350(cmd=nil)
 20:@returnParamArray.clear
 21:buff = 
 22:     loop do
 23:       buff=conn_.Recv(30,200)
 24:       if buff.empty?
 25:         print "Nothing Received\n"
 26:         break
 27:         end
 28:
 29:            if buff.include?("OK")
 30:              print "command received\n"
 31:            elsif buff.include?("ER401")
 32:              print "command ERROR\n"
 33:            end
 34:end
 35:return @returnParamArray
 36:end
 37:#### 355 ####################################################################
 38:def cmd_355(cmd=nil)
 39:@returnParamArray.clear
 40:#31-Nov-10 14:13 init  Panasonic AE3000
 41:initok=false
 42:
 43: for iRetry in 0...4
 44:   print "Initializing unit\n"
 45:   conn_.Send("\x02QPW\x03\r")
 46:   buf = conn_.Recv(100, 500)
 47:   if ( !buf.nil? && !buf.index("001").nil? )
 48:        print "Initialized ok\n"
 49:           initok=true
 50:           break
 51:   else
 52:           print "Didn't respond to command\n"
 53:   end
 54:end
 55:
 56:#if initok==false
 57:#  DisableDevice( device_.devid_, false )
 58:#  print "panaOK.\n"
 59:#  return
 60:#end
 61:return @returnParamArray
 62:end
 63:#### 361 ####################################################################
 64:def cmd_361(cmd=nil)
 65:@returnParamArray.clear
 66:conn_.Send("\x02IIS:HD1\x03")
 67:
 68:return @returnParamArray
 69:end
 70:#### 862 ####################################################################
 71:def cmd_862(cmd=nil)
 72:@returnParamArray.clear
 73:conn_.Send("\x02VPM:CN3\x03")
 74:
 75:return @returnParamArray
 76:end
 77:#### 866 ####################################################################
 78:def cmd_866(cmd=nil)
 79:@returnParamArray.clear
 80:conn_.Send("\x02VPM:DYN\x03")
 81:
 82:return @returnParamArray
 83:end
 84:#### 969 ####################################################################
 85:def cmd_969(cmd=nil)
 86:@returnParamArray.clear
 87:conn_.Send("\x02VPM:NOR\x03")
 88:
 89:return @returnParamArray
 90:end
 91:#### START SETTERS ####################################################################
 92:def initialize()
 93:super
 94:@returnParamArray=Array.new
 95:end
 96:####  END  SETTERS ####################################################################
 97:end