Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - bulek

Pages: 1 2 [3] 4 5 ... 12
31
Developers / Please remove me from adminstrators....
« on: March 27, 2009, 04:13:30 pm »
Hi,

I haven't even started doing anything and I already got flamed by lmce3000 in private message queoted below :
Quote
Dude! what's going on? why did you delete Your comments from my thread?
and I quote " Do you always take credit for someone else's backstabbing or are you just trying to be an asshole?"

Did you write that? or was it dlewis? Shame on you !!!!!

Please remove me from administrators. I certainly don't want to mess with everything bad going through these forums...
I'll try to contribute to threads but not mess with posters. Some time ago I got flamed few times really badly also, but I holded my breath and didn't respond. Maybe some of you should do the same... ;)

In such situation, I think that Adminstrators should stay away of any actions and let the time to show what is right or wrong. Currently the weather on these forums is too hot..

Regards,

Bulek.

32
Users / squeezeslave dies on speech announcements
« on: March 25, 2009, 11:50:14 am »
Hi,

I've started to use speech announcements on squeezeslave and it seems that mono wav files cause crash...

How do you deal with it ?

Thanks in advance,

regards,

Bulek.


Log :
Quote
slimproto_recv cmd=grfe len=1122
slimproto_recv cmd=knob len=20
slimproto_recv cmd=knob len=20
slimproto_recv cmd=knob len=20
*** glibc detected *** /usr/local/bin/squeezeslave: double free or corruption (out): 0x080fd198 ***
======= Backtrace: =========
/lib/tls/i686/cmov/libc.so.6[0xb7d1ed65]
/lib/tls/i686/cmov/libc.so.6(cfree+0x90)[0xb7d22800]
/usr/local/bin/squeezeslave[0x804f60d]
/usr/local/bin/squeezeslave[0x8072654]
/usr/local/bin/squeezeslave[0x8072bd3]
/usr/local/bin/squeezeslave[0x804f3ab]
/usr/local/bin/squeezeslave[0x804ef5b]
/lib/tls/i686/cmov/libpthread.so.0[0xb7e2946b]
/lib/tls/i686/cmov/libc.so.6(clone+0x5e)[0xb7d8873e]
======= Memory map: ========
08048000-080c5000 r-xp 00000000 03:01 37175521   /usr/local/bin/squeezeslave
080c5000-080d4000 rwxp 0007d000 03:01 37175521   /usr/local/bin/squeezeslave
080d4000-08115000 rwxp 080d4000 00:00 0          [heap]
b4d90000-b4d91000 ---p b4d90000 00:00 0
b4d91000-b5591000 rwxp b4d91000 00:00 0
b5591000-b5592000 ---p b5591000 00:00 0
b5592000-b5d92000 rwxp b5592000 00:00 0
b5d92000-b5d93000 ---p b5d92000 00:00 0
b5d93000-b6593000 rwxp b5d93000 00:00 0
b6593000-b6594000 ---p b6593000 00:00 0
b6594000-b6d94000 rwxp b6594000 00:00 0
b6d94000-b6d9d000 r-xp 00000000 03:01 27200500   /lib/tls/i686/cmov/libnss_files-2.6.1.so
b6d9d000-b6d9f000 rwxp 00008000 03:01 27200500   /lib/tls/i686/cmov/libnss_files-2.6.1.so
b6d9f000-b6da7000 r-xp 00000000 03:01 27200512   /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6da7000-b6da9000 rwxp 00007000 03:01 27200512   /lib/tls/i686/cmov/libnss_nis-2.6.1.so
b6da9000-b6dbd000 r-xp 00000000 03:01 27200502   /lib/tls/i686/cmov/libnsl-2.6.1.so
b6dbd000-b6dbf000 rwxp 00013000 03:01 27200502   /lib/tls/i686/cmov/libnsl-2.6.1.so
b6dbf000-b6dc1000 rwxp b6dbf000 00:00 0
b6dc1000-b6dc8000 r-xp 00000000 03:01 27200508   /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b6dc8000-b6dca000 rwxp 00006000 03:01 27200508   /lib/tls/i686/cmov/libnss_compat-2.6.1.so
b6dca000-b74ae000 rwxp b6dca000 00:00 0
b74ae000-b74af000 ---p b74ae000 00:00 0
b74af000-b7cb1000 rwxp b74af000 00:00 0
b7cb1000-b7cb3000 r-xp 00000000 03:01 27200504   /lib/tls/i686/cmov/libdl-2.6.1.so
b7cb3000-b7cb5000 rwxp 00001000 03:01 27200504   /lib/tls/i686/cmov/libdl-2.6.1.so
b7cb5000-b7df9000 r-xp 00000000 03:01 27200506   /lib/tls/i686/cmov/libc-2.6.1.so
b7df9000-b7dfa000 r-xp 00143000 03:01 27200506   /lib/tls/i686/cmov/libc-2.6.1.so
b7dfa000-b7dfc000 rwxp 00144000 03:01 27200506   /lib/tls/i686/cmov/libc-2.6.1.so
b7dfc000-b7dff000 rwxp b7dfc000 00:00 0
b7dff000-b7e22000 r-xp 00000000 03:01 27200510   /lib/tls/i686/cmov/libm-2.6.1.so
b7e22000-b7e24000 rwxp 00023000 03:01 27200510   /lib/tls/i686/cmov/libm-2.6.1.so
b7e24000-b7e38000 r-xp 00000000 03:01 27200494   /lib/tls/i686/cmov/libpthread-2.6.1.so
b7e38000-b7e3a000 rwxp 00013000 03:01 27200494   /lib/tls/i686/cmov/libpthread-2.6.1.so
b7e3a000-b7e3d000 rwxp b7e3a000 00:00 0
b7e3d000-b7e44000 r-xp 00000000 03:01 27200499   /lib/tls/i686/cmov/librt-2.6.1.so
b7e44000-b7e46000 rwxp 00006000 03:01 27200499   /lib/tls/i686/cmov/librt-2.6.1.so
b7e46000-b7f07000 r-xp 00000000 03:01 13144384   /usr/lib/libasound.so.2.0.0
b7f07000-b7f0c000 rwxp 000c0000 03:01 13144384   /usr/lib/libasound.so.2.0.0
b7f15000-b7f1f000 r-xp 00000000 03:01 27197636   /lib/libgcc_s.so.1
b7f1f000-b7f20000 rwxp 0000a000 03:01 27197636   /lib/libgcc_s.so.1
b7f20000-b7f22000 rwxs 00000000 00:0e 15624      /dev/snd/pcmC0D0p
b7f22000-b7f23000 rwxs 81000000 00:0e 15624      /dev/snd/pcmC0D0p
b7f23000-b7f24000 r-xs 80000000 00:0e 15624      /dev/snd/pcmC0D0p
b7f24000-b7f26000 rwxp b7f24000 00:00 0
b7f26000-b7f40000 r-xp 00000000 03:01 27200480   /lib/ld-2.6.1.so
b7f40000-b7f42000 rwxp 00019000 03:01 27200480   /lib/ld-2.6.1.so
bfa80000-bfa95000 rw-p bfa80000 00:00 0          [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0          [vdso]
Aborted (core dumped)

33
Users / GSD device suddenly stopped working - ESS GSD device
« on: March 25, 2009, 11:23:04 am »
Hi,

after some time I've again used my speaker selector as GSD deivce (I wrote GSD code), but it doesn't work anymore.

Even more, sending command to it, crashes GSD device and causes restart of winxp Orbiter (probably some other too).

Cause errors in log are a bit cryptic and unfamiliar to me, I'm kindly asking if someone knows better what those messages mean and where to start fixing things :
DCERouter.log :
Quote
13      03/25/09 12:04:24.265           TCPIP: Accepting incoming connection on socket 80, port 3450, from IP 127.0.0.1. <0xb4439b90>
08      03/25/09 12:04:24.269           Received Message from 0 (unknown / ) to 81 (Zone 1:Bedroom / House Speakers), type 1 id 192 Command:On, retry none, parameters: <0x98dfab90>
08      03/25/09 12:04:24.269             Parameter 97(PK_Pipe):  <0x98dfab90>
08      03/25/09 12:04:24.269             Parameter 98(PK_Device_Pipes):  <0x98dfab90>
13      03/25/09 12:04:24.270           Ready to send message type 1 id 192 to 80 ESS-Speaker Selector RS232 on socket 127(0x79414608) using lock: 0x794146ec <0xb6c3eb90>
13      03/25/09 12:04:24.270           Response 1 to realsendmessage type 1 id 192 socket 153 using lock: 0x794146ec  expected response: 0 <0xb6c3eb90>
13      03/25/09 12:04:24.270           Got response: 1 to message type 1 id 192 to 80 ESS-Speaker Selector RS232 on socket 153 using lock: 0x794146ec <0xb6c3eb90>
13      03/25/09 12:04:24.270           No response expected.  returning <0xb6c3eb90>
3       03/25/09 12:04:25       DCERouter (server)      Device died... count=10/200 dev=DCERouter

GSD device log :
Quote
/var/log/pluto/80_Generic_Serial_Device.log

25-03-2009  11:45:20  (***):SetVolumeInZone: volume: 100 [10] => Zone: 4
25-03-2009  11:45:20  (***):Send_RS232_Command: [0419]
25-03-2009  11:45:20  (***):Initialization of ESS GSD Device finished !!!!
25-03-2009  11:45:20  (***):Response from ESS: [0002]
25-03-2009  11:45:21  (***):Response from ESS: [0020]
25-03-2009  11:45:21  (***):Response from ESS: [0003]
25-03-2009  11:45:21  (***):Response from ESS: [0119]
25-03-2009  11:45:21  (***):Response from ESS: [0219]
25-03-2009  11:45:21  (***):Response from ESS: [0319]
25-03-2009  11:45:21  (***):Response from ESS: [0419]
05   03/25/09 12:04:24.270      GSDMessageTranslator isCmdImplemented = false <0xb6009b90>
05   03/25/09 12:04:24.299      #### Pre-Process Queue = 1 <0xb6009b90>
05   03/25/09 12:04:24.299      _QueueProc Pre - 192 : 0 <0xb780cb90>
05   03/25/09 12:04:24.300      GSD-Sleep Pre 192 : 0 <0xb780cb90>
05   03/25/09 12:04:24.300      Process Queue = 1 <0xb780cb90>
25-03-2009  12:04:24  (***):Got Command with ID: 192 from: 0 to: 81
25-03-2009  12:04:24  (***):SendZoneCommand: Child Zone Zone 1[1]
25-03-2009  12:04:24  (***):Send_RS232_Command: [0101]
05   03/25/09 12:04:24.303      GSD-Sleep Post 192 : 0 <0xb780cb90>
05   03/25/09 12:04:24.303      _QueueProc Post - 192 : 0 <0xb780cb90>
25-03-2009  12:04:24  (***):Response from ESS: [0101]
05   03/25/09 12:04:25.575      Socket::ReceiveData 0x80aa6c0 failed, bytes left 0 start: 109430000 1: 0 1b: 0 2: 0 2b: 0 m_Socket: 8 Command_Impl1 Dev #80 <0xb6009b90>
13   03/25/09 12:04:25.575      Socket::Close() m_Socket 8 <0xb6009b90>
13   03/25/09 12:04:25.575      Socket::Close() m_Socket 8 closesocket: 0 <0xb6009b90>
05   03/25/09 12:04:25.575      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Command_Impl1 Dev #80 <0xb6009b90>
01   03/25/09 12:04:25.575      Receive string failed in HandleRequestSocket 18:ReceiveData failed Command_Impl1 Dev #80 <0xb6009b90>
05   03/25/09 12:04:25.576      Dumping 1 locks <0xb6009b90>
05   03/25/09 12:04:25.576      finished check for exceptions <0xb6009b90>
05   03/25/09 12:04:25.576      OL: (0x80aa80c) (>102) MessageQueue Command_Impl.cpp l:822 time: 1:00:00a (1237979065 s) thread: 3061885840 Rel: Y Got: Y <0xb6009b90>
13   03/25/09 12:04:25.576      Exiting MessageQueueThread_DCECI thread... <0xb680ab90>
25-03-2009  12:04:25  (***):Send_RS232_Command: [0002]
05   03/25/09 12:04:25.624      Trying to send DATA while not connected. <0xb5808b90>
25-03-2009  12:04:25  (***):Send_RS232_Command: [0020]
05   03/25/09 12:04:25.624      Trying to send DATA while not connected. <0xb5808b90>
25-03-2009  12:04:25  (***):Send_RS232_Command: [0003]
05   03/25/09 12:04:25.625      Trying to send DATA while not connected. <0xb5808b90>
25-03-2009  12:04:25  (***):Shutting Down ESS GSD Device finished !!!!
13   03/25/09 12:04:25.625      Exiting BeginHandleRequestThread thread... <0xb6009b90>
13   03/25/09 12:04:25.802      Socket::Close() m_Socket 4 <0xb780d6c0>
13   03/25/09 12:04:25.802      Socket::Close() m_Socket 4 closesocket: 0 <0xb780d6c0>
13   03/25/09 12:04:25.802      Socket::Close() m_Socket 5 <0xb780d6c0>
13   03/25/09 12:04:25.802      Socket::Close() m_Socket 5 closesocket: 0 <0xb780d6c0>
13   03/25/09 12:04:25.805      Socket::~Socket(): deleting socket @0x80ab6d8 Event Dev #80 (socket id in destructor: m_Socket: -1) <0xb780d6c0>
13   03/25/09 12:04:25.805      Socket::~Socket(): deleting socket @0x813b318 Event Dev #80 (socket id in destructor: m_Socket: -1) <0xb780d6c0>
13   03/25/09 12:04:25.805      ~HandleRequestSocket 0x80aa6c0 device: 80 ip: 127.0.0.1 <0xb780d6c0>
13   03/25/09 12:04:25.805      RequestSocket::Disconnect 0x80aa6c0 device: 80 <0xb780d6c0>
13   03/25/09 12:04:25.805      Socket::~Socket(): deleting socket @0x80aa6c0 Command_Impl1 Dev #80 (socket id in destructor: m_Socket: -1) <0xb780d6c0>
Return code: 2
2   03/25/09 12:04:26   80 (spawning-device)   Device requests restart... count=1/50 dev=80
Wed Mar 25 12:04:26 CET 2009 Restart
========== NEW LOG SECTION ==========
1   03/25/09 12:04:34   80 (spawning-device)   Starting... 1
1   03/25/09 12:04:34   80 (spawning-device)   Found /usr/pluto/bin/Generic_Serial_Device
05   03/25/09 12:04:37.288      Creating child 81 <0xb77b56c0>
05   03/25/09 12:04:37.288      Note: Device manager has attached a device of type 1867 that this has no custom event handler for.  It will not fire events. <0xb77b56c0>
05   03/25/09 12:04:37.288      Note: Device manager has attached a device of type 1867 that this has no custom handler for.  This is normal for IR. <0xb77b56c0>
05   03/25/09 12:04:37.288      Creating child 82 <0xb77b56c0>
05   03/25/09 12:04:37.288      Note: Device manager has attached a device of type 1867 that this has no custom event handler for.  It will not fire events. <0xb77b56c0>
05   03/25/09 12:04:37.288      Note: Device manager has attached a device of type 1867 that this has no custom handler for.  This is normal for IR. <0xb77b56c0>
05   03/25/09 12:04:37.288      Creating child 83 <0xb77b56c0>
05   03/25/09 12:04:37.289      Note: Device manager has attached a device of type 1867 that this has no custom event handler for.  It will not fire events. <0xb77b56c0>
05   03/25/09 12:04:37.289      Note: Device manager has attached a device of type 1867 that this has no custom handler for.  This is normal for IR. <0xb77b56c0>
05   03/25/09 12:04:37.289      Creating child 84 <0xb77b56c0>
05   03/25/09 12:04:37.289      Note: Device manager has attached a device of type 1867 that this has no custom event handler for.  It will not fire events. <0xb77b56c0>
05   03/25/09 12:04:37.289      Note: Device manager has attached a device of type 1867 that this has no custom handler for.  This is normal for IR. <0xb77b56c0>
RCODE:
   0:require 'Ruby_Generic_Serial_Device'
   1:class Command < Ruby_Generic_Serial_Device::RubyCommandWrapper
   2:end
   3:class Device_80 < Ruby_Generic_Serial_Device::RubySerialIOWrapper
   4:#### 192 ####################################################################
   5:def cmd_192(pk_pipe, pk_device_pipes, cmd=nil)
   6:@returnParamArray.clear
   7:SendZoneCommand(cmd)
   8:
   9:return @returnParamArray
  10:end
  11:#### 193 ####################################################################
  12:def cmd_193(pk_pipe, cmd=nil)
  13:@returnParamArray.clear
  14:SendZoneCommand(cmd)
  15:
  16:return @returnParamArray
  17:end
  18:#### 313 ####################################################################
  19:def cmd_313(level, cmd=nil)
  20:@returnParamArray.clear
  21:SendZoneCommand(cmd)
  22:
  23:return @returnParamArray
  24:end
  25:#### 350 ####################################################################
  26:def cmd_350(cmd=nil)
  27:@returnParamArray.clear
  28:ReceiveReport()
  29:
  30:
  31:return @returnParamArray
  32:end
  33:#### 355 ####################################################################
  34:def cmd_355(cmd=nil)
  35:@returnParamArray.clear
  36:log("Initializing ESS GSD Device\n")
  37:
  38:sleep 1.0
  39:Send_RS232_Command("0002");  #All Zones OFF
  40:sleep 1.0
  41:Send_RS232_Command("0020");  #All Zones Max Volume
  42:sleep 1.0
  43:Send_RS232_Command("0003");  #All Zones Select A
  44:sleep 1.0
  45:$ZoneVolumes = Hash.new()
  46:$ZoneStatus  = Hash.new()
  47:
  48:SetZones("OFF")
  49:SetZonesInitialVolumes()
  50:
  51:log("Initialization of ESS GSD Device finished !!!!\n")
  52:
  53:
  54:
  55:return @returnParamArray
  56:end
  57:#### 356 ####################################################################
  58:def cmd_356(cmd=nil)
  59:@returnParamArray.clear
  60:Send_RS232_Command("0002");  #All Zones OFF
  61:
  62:Send_RS232_Command("0020");  #All Zones Max Volume
  63:
  64:Send_RS232_Command("0003");  #All Zones Select A
  65:
  66:
  67:log("Shutting Down ESS GSD Device finished !!!!\n")
  68:
  69:return @returnParamArray
  70:end
  71:#### PRIVATE METHODS ####################################################################
  72:###########################################################3 Internal Methods
  73:# To do list :
  74:# - parsing of response from device (needed for advanced use)
  75:#
  76:#
  77:# RS232 protocol, ZN=Zone Number (00 is all, 01-31 separate zones)
  78:# ZN 01 ON
  79:# ZN 02 OFF
  80:# ZN 03 A AMP
  81:# ZN 04 B AMP
  82:# ZN 07 VOLUME UP
  83:# ZN 08 VOLUME DOWN
  84:# ZN 09 SET LEVEL 0
  85:# ZN 10 SET LEVEL 1
  86:# ZN 11 SET LEVEL 2
  87:# ZN 12 SET LEVEL 3
  88:# ZN 13 SET LEVEL 4
  89:# ZN 14 SET LEVEL 5
  90:# ZN 15 SET LEVEL 6
  91:# ZN 16 SET LEVEL 7
  92:# ZN 17 SET LEVEL 8
  93:# ZN 18 SET LEVEL 9
  94:# ZN 19 SET LEVEL 10
  95:# ZN 20 SET LEVEL 11
  96:# ZN 32 ? STATUS
  97:# ZN 33 ? LEVEL
  98:# ZN 34 ? ON/OFF
  99:# ZN 35 ? A/B
 100:#Example responses to queries (todo)
 101:#[0132]{16}
 102:#[0133]{06}
 103:#[0032]{16}
 104:#{16}
 105:#{1B}
 106:#{3B}
 107:#[0034]{10}
 108:#{10}
 109:#{10}
 110:#{10}
 111:#[0035]{00}
 112:#{00}
 113:#{00}
 114:#{20}
 115:
 116:
 117:def log(line)
 118:         $log = File.open("/var/log/pluto/" + device_.devid_.to_s + "_Generic_Serial_Device.log", "a")
 119:#     $log = File.open("/var/log/pluto/ESS.log", "a")
 120:     logTime = Time.now
 121:     timeStr = logTime.strftime("%d-%m-%Y  %H:%M:%S  ")
 122:
 123:     $log.puts timeStr + "(***):" + line.to_s
 124:          $log.close
 125:end    
 126:
 127:def Send_RS232_Command(command)
 128:        log("Send_RS232_Command: [" + command+ "]\n")
 129:   conn_.Send("[" + command+ "]")
 130:end
 131:
 132:
 133:def SendZoneCommand(cmd)
 134:
 135:  log("Got Command with ID: " + cmd.id_.to_s + " from: " + cmd.devidfrom_.to_s + " to: " + cmd.devidto_.to_s + "\n")
 136:  zone = GetZone(cmd.devidto_)
 137:  if( zone >= 0 )
 138:#           zone_desc=device_.childdevices_[cmd.devidto_].devdata_[186]
 139:           zone_desc = sprintf ("Zone %d",zone)
 140:      log("SendZoneCommand: Child Zone " + zone_desc + "[" + zone.to_s + "]\n")
 141:  elsif (cmd.devidto_ == device_.devid_)
 142:      log("SendZoneCommand: All Zones " + zone.to_s + ". Sending command to all zones !!!")
 143:      zone=0
 144:      zone_desc="All Zones"
 145:  else
 146:      log("SendZoneCommand: Invalid zone " + zone.to_s + ". Send commands only to valid devices!!!")
 147:  end
 148:  
 149:  serial_command = ""
 150:  
 151:  case cmd.id_
 152:        when 192 #192 is ON
 153:           serial_command = sprintf("%02d",zone)+sprintf("%02d",1);
 154:           Send_RS232_Command(serial_command);
 155:           temp_cmd = Command.new(cmd.id_, -1001, 1, 2, 48);
 156:           temp_cmd.params_[10] = "1";
 157:           SendCommand(temp_cmd);
 158:           $ZoneStatus[zone.to_s] = "ON";
 159:           if (zone==0)
 160:              SetZones("ON")
 161:           end
 162:        when 193 #193 is OFF
 163:           serial_command = sprintf("%02d",zone)+sprintf("%02d",2);
 164:           Send_RS232_Command(serial_command);
 165:           temp_cmd = Command.new(cmd.id_, -1001, 1, 2, 48);
 166:           temp_cmd.params_[10] = "0";
 167:           SendCommand(temp_cmd);
 168:           $ZoneStatus[zone.to_s] = "OFF";
 169:           if (zone==0)
 170:              SetZones("OFF")
 171:           end
 172:
 173:        when 90 #90 is Volume Down
 174:           serial_command = sprintf("%02d",zone)+sprintf("%02d",8);
 175:           Send_RS232_Command(serial_command);
 176:           $ZoneVolumes[zone.to_s] = $ZoneVolumes[zone.to_s] - 10
 177:           if ($ZoneVolumes[zone.to_s]<0)
 178:              $ZoneVolumes[zone.to_s]=0
 179:      end
 180:           SetDeviceDataInDB( cmd.devidto_, 158, ($ZoneVolumes[zone.to_s]).to_s ) # 158 = DEVICEDATA_Volume_Level_CONST
 181:           temp_cmd = Command.new(cmd.devidto_, -1001, 1, 2, 71);
 182:           temp_cmd.params_[30] = ($ZoneVolumes[zone.to_s]).to_s
 183:           SendCommand(temp_cmd);
 184:      
 185:        when 89 #90 is Volume Up
 186:           serial_command = sprintf("%02d",zone)+sprintf("%02d",7);
 187:           Send_RS232_Command(serial_command);
 188:           $ZoneVolumes[zone.to_s] = $ZoneVolumes[zone.to_s] + 10
 189:           if ($ZoneVolumes[zone.to_s]>=120)
 190:              $ZoneVolumes[zone.to_s]=110
 191:      end
 192:           SetDeviceDataInDB( cmd.devidto_, 158, ($ZoneVolumes[zone.to_s]).to_s ) # 158 = DEVICEDATA_Volume_Level_CONST
 193:           temp_cmd = Command.new(cmd.devidto_, -1001, 1, 2, 71);
 194:           temp_cmd.params_[30] = ($ZoneVolumes[zone.to_s]).to_s
 195:           SendCommand(temp_cmd);
 196:        when 313 #313 is Set Volume with Level as Param #76
 197:      log("313:Set Volume Command: Got Cmd with ID: " + cmd.id_.to_s + " from: " + cmd.devidfrom_.to_s + " to: " + cmd.devidto_.to_s + " | Zone : " + zone.to_s + "\n")
 198:           level=(cmd.params_[76]).to_i
 199:           if level >110
 200:              level=110
 201:         log("313:Set Volume Command: Volume too high - truncated to max level of 110\n")
 202:           elsif level <0
 203:              level=0
 204:         log("313:Set Volume Command: Volume too low - truncated to min level of 0\n")
 205:           end
 206:      level = (level/10.0).round
 207:           serial_command = sprintf("%02d",zone)+sprintf("%02d",level+9);
 208:           Send_RS232_Command(serial_command);
 209:           $ZoneVolumes[zone.to_s] = (cmd.params_[76]).to_i
 210:           SetDeviceDataInDB( cmd.devidto_, 158, ($ZoneVolumes[zone.to_s]).to_s ) # 158 = DEVICEDATA_Volume_Level_CONST
 211:           temp_cmd = Command.new(cmd.devidto_, -1001, 1, 2, 71);
 212:           temp_cmd.params_[30] = ($ZoneVolumes[zone.to_s]).to_s
 213:           SendCommand(temp_cmd);
 214:           if (zone==0)
 215:              SetVolumes($ZoneVolumes[zone.to_s])
 216:           end
 217:
 218:        when 616 #616 is Select A
 219:           serial_command = sprintf("%02d",zone)+sprintf("%02d",3);
 220:           Send_RS232_Command(serial_command);
 221:        when 617 #617 is Select B
 222:           serial_command = sprintf("%02d",zone)+sprintf("%02d",4);
 223:           Send_RS232_Command(serial_command);
 224:        else
 225:           log("Yet not implemented: Handler for command: ID " + cmd.id.to_s)
 226:     end
 227:   
 228:
 229:end
 230:
 231:
 232:def GetZone(deviceDestination)
 233:   if( device_.mapDevice_PortChannel_.has_key?(deviceDestination) and
 234:      device_.mapDevice_PortChannel_[deviceDestination] != nil and
 235:      !device_.mapDevice_PortChannel_[deviceDestination].empty? )
 236:      return device_.mapDevice_PortChannel_[deviceDestination].to_i
 237:   end
 238:   
 239:   return -1
 240:end
 241:
 242:
 243:def ReceiveReport()
 244:   @buff = conn_.RecvDelimited("]", 1000)
 245:   log("Response from ESS: " + @buff + "\n")
 246:#   log("Calling DecodeReceivedInfo: " + @buff + "\n")
 247:#   temp_resp=@buff;
 248:#   DecodeReceivedInfo(temp_resp)
 249:#   log("End of DecodeReceivedInfo: " + temp_resp + "\n")
 250:end
 251:
 252:def SetVolumeInZone(level,zone)
 253:# Sets Normalized Volume Level (0..100) in certain zone
 254:  normlevel = (level.to_i/10.0).round
 255:  log("SetVolumeInZone: volume: " + level.to_s + " ["+ normlevel.to_s + "] => Zone: " + zone + "\n")
 256:
 257:  serial_command = sprintf("%02d",zone)+sprintf("%02d",normlevel+9);
 258:  Send_RS232_Command(serial_command);
 259:#  log("313:Set Volume Command: Got Cmd with ID: " + cmd.id_.to_s + " from: " + cmd.devidfrom_.to_s + " to: " + cmd.devidto_.to_s + " | Zone : " + zone.to_s + "\n")
 260:  $ZoneVolumes[zone.to_s] = level.to_i
 261:
 262:end
 263:
 264:def SetZonesInitialVolumes()
 265:   log("####### Set Initial Volume Levels for zones\n")
 266:   device_.mapDevice_PortChannel_.each do |key, value|
 267:      volume = device_.childdevices_[key].devdata_[208]
 268:      log("Zone " + value.to_s + " => " + volume.to_s + "\n")
 269:      sleep 1.0
 270:      SetVolumeInZone(volume.to_i,value)
 271:        SetDeviceDataInDB( device_.childdevices_[key].devid_, 158, ($ZoneVolumes[value.to_s]).to_s ) # 158 = DEVICEDATA_Volume_Level_CONST
 272:     end
 273:   
 274:end
 275:
 276:
 277:def SetZones(state)
 278:   log("####### Setting all zones to " + state + "\n")
 279:   device_.mapDevice_PortChannel_.each do |key, value|
 280:      $ZoneStatus[value] = state
 281:      log("Zone " + value.to_s + " => " + state + "\n")
 282:    end
 283:end
 284:
 285:def SetVolumes(level_int)
 286:   log("####### Set Volume Levels for all zones\n")
 287:   device_.mapDevice_PortChannel_.each do |key, value|
 288:      log("Zone " + value.to_s + " => " + level_int.to_s + "\n")
 289:      $ZoneVolumes[value.to_s] = level_int
 290:        SetDeviceDataInDB( device_.childdevices_[key].devid_, 158, ($ZoneVolumes[value.to_s]).to_s ) # 158 = DEVICEDATA_Volume_Level_CONST
 291:     end
 292:end
 293:def cmd_ReceiveCommandForChild(cmd)
 294:SendZoneCommand(cmd)
 295:
 296:end
 297:#### 953 ####################################################################
 298:def cmd_953(cmd=nil)
 299:@returnParamArray.clear
 300:SendZoneCommand(cmd)
 301:
 302:return @returnParamArray
 303:end
 304:#### 954 ####################################################################
 305:def cmd_954(cmd=nil)
 306:@returnParamArray.clear
 307:SendZoneCommand(cmd)
 308:
 309:return @returnParamArray
 310:end
 311:#### START SETTERS ####################################################################
 312:def initialize()
 313:super
 314:@returnParamArray=Array.new
 315:end
 316:####  END  SETTERS ####################################################################
 317:end


Thanks in advance,

regards,

Bulek.

34
Developers / Few DCERouter-device socket connections questions
« on: March 20, 2009, 09:59:52 pm »
Hi,

I'd kindly ask if anyone has any more insight into following quoted messages and whether they are harmful and should be debugged what causes them ...

1. Timeout on PING
DCERouter sends PING string and waits for PING_TIMEOUT (that is defined as 5 - what units does this mean) ?

Quote
#define PING_TIMEOUT      5

Also: I see that Dcerouter sends many PINGs in short time intervals - intentional ? Why is one response not enough ? Or is maybe my driver taking too much time ro response...

2. Socket::ReceiveString2 ReceiveData failed

Quote
01   03/20/09 12:41:41.919      Socket::ReceiveData-a 0xa9935038 failed ret 0 <0x6d4edb90>
05   03/20/09 12:41:41.919      Socket::ReceiveString2 ReceiveData failed m_Socket: -1 Incoming_Conn Socket 159 127.0.0.1 dev 501 <0x6d4edb90>
05   03/20/09 12:41:41.919      Router::RemoveAndDeleteSocket 0xa9935038 501 <0x6d4edb90>
05   03/20/09 12:41:41.919      Socket::SendData socket is invalid <0x674e1b90>
05   03/20/09 12:41:41.919      Socket::SendMessage *failed to send* type 9 id 0 from 0 to 501 <0x674e1b90>
05   03/20/09 12:41:41.919      Socket 0xa9935038 failure sending message to device 501 <0x674e1b90>
05   03/20/09 12:41:41.919      Router::RemoveAndDeleteSocket 0xa9935038 501 <0x674e1b90>

What is DCERouter expecting in return.. If I understand right, it can send any data through non-active socket, but maybe it's expecting something in return ?

3. Can false  setting for house mode cause device disconnect ?

Quote
08   03/20/09 12:41:42.762      Received Message from 501 (Cybro-2 / Closet/Storage Space) to 13 (Security Plug-in / Living Room/Family Room), type 1 id 19 Command:Set House Mode, retry none, parameters: <0x6e4efb90>
08   03/20/09 12:41:42.762        Parameter 5(Value To Assign): 0 <0x6e4efb90>
08   03/20/09 12:41:42.762        Parameter 17(PK_Users): 7 <0x6e4efb90>
08   03/20/09 12:41:42.762        Parameter 99(Password): 1234 <0x6e4efb90>
08   03/20/09 12:41:42.762        Parameter 100(PK_DeviceGroup): 0 <0x6e4efb90>
08   03/20/09 12:41:42.762        Parameter 101(Handling Instructions): W <0x6e4efb90>

....

05   03/20/09 12:41:42.775      The target device 701 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 701 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 658 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 536 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 658 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 537 (routed to 501) has not registered. <0xb6becb90>
05   03/20/09 12:41:42.775      The target device 538 (routed to 501) has not registered. <0xb6becb90>
01   03/20/09 12:41:42.777      Attempt to set invalid house mode: 0 <0x870d7b90>
05   03/20/09 12:41:42.779      Removing socket 1701080899, ourstanding refercences: 1380917287 <0x6d4edb90>

I wonder if invalid house mode can cause device disconnection ? Or is last entry cause by any other previous entry (I haven't found anything that could associate with such action) ?


Thanks in advance,

regards,

Bulek.



35
Hi,

I get occasionally these in DCERouter.log. I assume this is empty message, but would like to track from where does it come from ....

Quote
07      03/20/09 19:51:36.661           Received Message from 27 (Bluetooth Dongle / Living Room/Family Room) to -1001 (unknown / ), type 2 id 4 Event:Mobile orbiter detected, retry none, parameters: <0x741c5b90>
07      03/20/09 19:51:36.661             Parameter 5(Mac Address): 00:16:4E:DA:12:03 <0x741c5b90>
07      03/20/09 19:51:36.661             Parameter 6(Signal Strength): 0 <0x741c5b90>
07      03/20/09 19:51:36.661             Parameter 7(ID): Nokia N70 robi <0x741c5b90>
07      03/20/09 19:51:36.983           Event #65 has no handlers <0xae437b90>
07      03/20/09 19:51:36.983           Received Message from 16 (HAL / Living Room/Family Room) to -1001 (unknown / ), type 2 id 65 Event:Device Detected, retry none, parameters: <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 5(Mac Address):  <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 13(Text):  <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 28(IP Address):  <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 49(PK_DeviceTemplate): 0 <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 51(VendorModelID): ffffffff <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 52(PK_CommMethod): 4 <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 53(PK_PnpProtocol): 0 <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 54(PNP Serial Number): /org/freedesktop/Hal/devices/usb_device_a12_1_noserial_if0 <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 55(DeviceData):  <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 56(Category): bluetooth_hci <0xae437b90>
07      03/20/09 19:51:36.983             Parameter 59(Signature): 16,HAL <0xae437b90>
08      03/20/09 19:51:37.919           Received Message from 16 (HAL / Living Room/Family Room) to Main OnScreen Orbiter(20),Cisco 7970 Orbiter(62),Cisco 7970 Orbiter(722),Cisco 7970 Orbiter(761), type 1 id  809 Command:Display Alert, retry none, parameters: <0x965fab90>
08      03/20/09 19:51:37.919             Parameter 9(Text): 492784 Done with new device bluetooth_hci Added: Bluetooth Dongle <0x965fab90>
08      03/20/09 19:51:37.919             Parameter 70(Tokens): pnp_492784 <0x965fab90>
08      03/20/09 19:51:37.919             Parameter 182(Timeout): 2 <0x965fab90>
08      03/20/09 19:51:37.919             Parameter 251(Interruption): 2 <0x965fab90>
01      03/20/09 19:51:38.011           Badly formed message <0x7e9dab90>
01      03/20/09 19:51:38.012           **** dwStart: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_From: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Group_ID_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwID: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPriority: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwMessage_Type: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Category_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Template: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_bIncludeChildren: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eBroadcastLevel: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eRetry: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_bRelativeToSender: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eExpectedResponse: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           Badly formed message <0x7e9dab90>
01      03/20/09 19:51:38.012           **** dwEnd: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_From: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Group_ID_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwID: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPriority: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwMessage_Type: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Category_To: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_dwPK_Device_Template: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_bIncludeChildren: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eBroadcastLevel: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eRetry: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_bRelativeToSender: 0 <0x7e9dab90>
01      03/20/09 19:51:38.012           **** m_eExpectedResponse: 0 <0x7e9dab90>
07      03/20/09 19:51:41.855           Event #25 has no handlers <0x7e9dab90>
01      03/20/09 19:51:41.855           Climate_Plugin: EVENT_Temperature_Changed_CONST ! <0x7e9dab90>
07      03/20/09 19:51:43.171           Event #66 has no handlers <0xae437b90>

Any advice how to track this one ?

Thanks in advance,

regards,

Bulek.

36
Users / More info about cisco7970firmware1,2 FW packages
« on: March 01, 2009, 06:42:47 pm »
Hi,

does anyone know what FWs are in those packages and which one or both are recommended for use ?

Thanks in advance,

regards,

Bulek.


37
Users / Can I change UI2 to non alpha blending via webadmin ?
« on: February 04, 2009, 04:20:52 pm »
Hi,

I'm trying to change UI2 to non alpha blending state via webadmin (I have not keyboard/mouse attached to that MD). I'm trying to do reverse path from  this :
http://wiki.linuxmce.org/index.php/Enabling_UIv2

but I cannot uncheck those "Use alpha blended UI" ticks (they are grayed out and cannot be clicked)...

Is this currently possible to do with 710 ?

Thanks in advance,

regards,

Bulek.


38
Hi,

I have central touchscreen to control my LMCE based home. I'm running UI1, but sometimes I also play some videos on it. On UI1 when you touch anywhere during the media play, you get remote screen.

But Orbiter goes really fast (after few seconds) back to media playing and I would like to extent that time to have more time for instance to rewind or do fast forward to get to certain point.... if I don't do any press in 2-3 seconds it goes back to media playing and this is not convenient for such use..

Is this timeout some setting somewhere or is hardcoded in Orbiter code ?

Thanks in advance,

regards,

Bulek.

39
Hi,

I'm using my LMCE system for quite some time now with various remote Orbiters... And more and more spot something weird in behaviour....

It goes something like this :
- if Orbiter is minimized or put into task bar (I haven't got exact pattern on this)... But after some time when Orbiter comes back to focus, it just sits there being unresponsive (with black screen) or even won't come up if clicked on taskbar. And then I have to select other Orbiter's window and click on apply and the Orbiter is restarted and shows menu...

On N800 if I go into another programs and come back to Orbiter it's unresponsive and OS recognizes it as unresponsive and asks to stop it...

I've searched for some screensaver settings but there aren't any for remote Orbiters (beside setting seconds before screen saver to 0)...

Do you spot the same ? Is this somekind of setting trick ?


Thanks in advance,

regards,

Bulek.



40
Hi,

I've recorded MPEG2 stream from IPTV under mythtv. I've made symlink with show title also to Video library, so I can see it in Video repository.

Now if I play this recording from inside Mythtv, it plays much more smoothly and acceptable. If I play it via LMCE and Xine player I see deinterlacing artifacts and picture is stopping for short moments....

I guess this is the difference in settings. It seems Xine has Deinterlacing Mode setting, but cannot find how to use it ?

Has anyone else spotted this Xine behavour and what are my options to solve it ?

Thanks in advance,

regards,

Bulek.

41
Users / User-Orbiter-Room access setup confusion...
« on: January 10, 2009, 11:40:49 am »
Hi,

I'm trying to setup restriction for certain room, where I would have those scenarios I don't want any user could control.

I'm following instructions on web pages and here http://wiki.linuxmce.org/index.php/Users and spot some confusion...

My procedure:

1. I've added Restricted room to system.

2. I want to restrict access to that room only on "Main Orbiter" in my kitchen.

3. I went into Advanced-Privacy.. - User-Orbiters and only left check for wife and me for "Main Orbiter"

4. I went into Advanced-Privacy.. - User-Rooms and only left check for wife and me for "Restricted" room

Now the problem :
- if I go into Advanced-Privacy.. -Restrict Access and look at Restricted room I see that all other users beside me and wife are granted access

ok, I go back in User-Rooms and check all other users and uncheck only wife and me (quite opposite as instructed on web page) and get back and now wife and me are granted access....


Now I wonder which one is right and which one is wrong?
Also it seems that Restrict Access displays similar info as above two options. Which one is more relevant ?

Has anyone properly implemented access restrictions in LMCE ?

Thanks in advance,

regards,

Bulek.




42
Hi,

I'd like to create speech announcement that would tell me number of opened doors,windows, outside temp when I leave house.

I have all those info in devices states, but now I wonder if I can put them into speech announcement via DCE command that could be used in scenario created over web-admin ?

The idea is to have some data containers in speech text, that will be replaced by actual values.

I guess this is not possible at the moment, but I wonder what would be proper way to implement this? Having some kind of central data storage where one could change/read data is probably the way to go...

Thanks in advance,

regards,

Bulek.

43
Users / How can I catch Device On/Off event on particular device ?
« on: January 10, 2009, 09:02:22 am »
Hi,

I'm trying to setup action when certain device changes, but I have problems. I issue this command :

Quote
08      01/10/09 8:46:30.202            Received Message from 57 (Laptop Robi / Office) to BM_light_office_00(603), type 1 id  192 Command:On, retry none, parameters: <0xb1be2b90>
08      01/10/09 8:46:30.202              Parameter 97(PK_Pipe):  <0xb1be2b90>
08      01/10/09 8:46:30.202              Parameter 98(PK_Device_Pipes):  <0xb1be2b90>

and then proper event that device has changed it's state follows - I have to catch this one :
Quote
07      01/10/09 8:46:30.262            Event #48 has no handlers <0x95bedb90>
07      01/10/09 8:46:30.263            Received Message from 603 (BM_light_office_00 / ) to -1000 (unknown / ), type 2 id 48 Event:Device On/Off, retry none, parameters: <0x95bedb90>
07      01/10/09 8:46:30.263              Parameter 10(On/Off): 1 <0x95bedb90>

But when I go into advanced->events and select On/Off event, I don't get a choice to select proper event first (PK_Event=48), I can select On/Off event parameter, but also see no possibility of setting up device ID that event came from....

Anyone already done this ?

Update: It seems to be working via Wizard-Events Handler, but I wonder why there is nowhere defined (maybe it is hidden) event type of 48 for this event ?

Regards,

Bulek.

44
Hi,

at the start, I was quite happy with Proxy_Orbiter update that corrected Orbiter behavior and made it trully live (with constant periodic refreshments)...

But after some time those refreshments are becoming a problem, cause they take over focus all the time, even when :
- you're trying to dial a number (after 2-3 digits, ORbiter takes focus and further digit presses are ignored)
- you're using other xml services

It seems like you cannot disable such behavour (to say for instance, from now on, I don't want Orbiter to be refreshing) - I guess this is also impossible to do...

For now I reverted back Proxy_Orbiter, will see if this will make my two ciscos more stable...

Any similar experience ?

If I may express a wish, it would be fine if one could select "live" mode on device basis...

regards,

Bulek.
 

45
Users / Update Media Daemon: eats cpu despite being disabled
« on: December 26, 2008, 11:22:28 am »
Hi,

I spot weird behaviour of update media daemon. In web-admin->Files & Media -> Media Files Sync I have unticked media update daemon, but after few rebots I still notice it taking cpu:

Quote
- 10:49:10 up  9:29,  1 user,  load average: 1.55, 2.24, 2.70
Tasks: 252 total,   1 running, 251 sleeping,   0 stopped,   0 zombie
Cpu(s): 14.2%us, 15.6%sy, 16.7%ni, 52.5%id,  0.2%wa,  0.3%hi,  0.5%si,  0.0%st
Mem:   1815860k total,  1765340k used,    50520k free,   343768k buffers
Swap:  1959888k total,    37992k used,  1921896k free,   521008k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4728 root      34  19 78460  29m 6352 S   42  1.7   1:48.56 UpdateMedia
 2507 root      15   0  112m  49m 6208 S   20  2.8 125:02.15 motion
 3043 root      25   0 59496 5656 4004 S   11  0.3  49:56.44 Generic_Serial_
 2800 root      20   0 63000 8356 4052 S   10  0.5  51:58.55 Generic_Serial_
 3464 root      25   0 51236 5420 3876 S    1  0.3   4:33.17 Generic_Serial_
 4559 root      19   0 72772  24m  11m S    0  1.4  21:00.51 Photo_Screen_Sa
 5129 root      15   0 10284 2712 1980 S    0  0.1   1:54.28 smbd

Anyone with more insight ? Is tick on web-admin not working ?

Can Media Update Daemon be run on daily basis (at night) ?

Thanks in advance,

regards,

Bulek.

Merry Christmas and happy New Year for everyone...

Pages: 1 2 [3] 4 5 ... 12