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 / Status of previously contributed templates via sqlcvs
« on: June 23, 2009, 10:58:26 am »
Hi,

Hi,

I have contributed and created few templates for LinuxMCE (Marantz SR5600 Receiver, Cybrotech Home Automation system, ESS speaker selector, many changes to generic automation devices, etc....). There was a call to all developers to enter those changes via sqlcvs into 7.10... I took time and did commits for each template and they were registered and put into queue...I checked them on 8th January, 2009 and they were Mantis #4287 to Mantis #4292...

Now I've setup test system in my house with latest 810 alpha and I miss those contributions... I remember that smeone said, that those contributions are not lost and there is maybe some chance that they will be processed and entered into 8.10. Are there any updates on that ?

If not, then I'll probably have to do it again from scratch (for the fourth time :-), but that's a long story from Pluto's times...), but I wonder if everything is fixed now regarding sqlcvs contributions and those templates can be entered in reasonable time in main database to be used also on other systems ? I've found brief description - is this the right one ?
http://forum.linuxmce.org/index.php?topic=8325.0

I'd also like to brainstorm few changes that are probably required for some more generic devices that are only partly usable (there are questions like  weather is better to have few, more generic devices (lights,temperature,bright sensors, thermostats) or have separate templates for any brand (zwave thermostat, Cybrotech light, etc...). Should I split those questions and brainstorms into separate threads ?

If I remember right my proposals for changes in Climate plugin are already in, and JonDecker also already prepared lighting plugin so it's possible to display dimming state on floorplan, right?

Thanks in advance for your opinions,

regards,

Bulek.

32
Users / Cannot install Orbiter on N800 Chinook
« on: May 07, 2009, 04:51:51 pm »
Hi,

have problems installing n800 Orbiter for Chinook from http://diapub.com/~michael/.

First problem appeared on adding repositories :
 I corrected them manually from "repostory" to "repository"

Now it seems fine, but another error still appears :
"Unable to download lmce-orbiter_installer. Application package not found"....

Can anyone please advice, what is wrong ?

Thanks in advance,

regards,

Bulek.

33
Hi,

I know Media Plugin can figure out what is the target if you issue Shuffle command from Orbiter. But how can you trigger shuffle of actively playing playlist from outside other sources than Orbiters (for instance from Scenarios or Events handler).

How can I distinguish between more media players to shuffle only particular one ?

Thanks in advance,

regards,

bulek.

34
Users / Core vs Hybrid in practice ?
« on: April 17, 2009, 12:19:37 pm »
Hi,

I'm installing LMCE Core/Hybrid into a cabinet and I won't use it as hybrid (no graphic output). I remember reading about that it's absolutely better to install hybrid cause of easier configuration, but I'm curious what is the best way to do this :
- install Core  or
- install Hybrid and later try to start without X  or
- install Hybrid and forget about X that is running .

Any related expreience would help me a lot ...

Thanks in advance,


regards,

Bulek.

35
Hi,

in our home we have central touchscreen located in kitchen and we control eveything through UI1.

But since a lot of usefull family stuff is also present on Web, I would like to enhance touchscreen experience when web browsing under on-screen Orbiter.

Are there any alternative browsers, Firefox add-ons, special web-page changing sites or tools for better touchscreen experience (I remember similar featurs on mobile browsers) or anything similar for doing convenient web browsing with touchscreen ?

Thanks in advance,

regards,

Bulek.



in

36
Hi,

I'm using my Home automation driver that I wrote my self. It's an external application that connects to DCERouter over two sockets.

To increase stability of the app, I implemented PING-PONG queries to check whether device is still registered with DCERouter (cause for some odd reasons DCERouter disconnects occasionally  - details in another thread in this forum), but sometimes I also spot that DCERouter upon registration responds with scrambled characters - I suspect that it responds with "binary" DCE messages and not text as I want to register.... I've followed closely docs on Wiki, but it seems that something is still missing - or am I the only one using text DCE connection ?

Anyone with similar experience ?

Anyone using text DCE interface ? Is it stable ?

Thanks in advance,

regards,

Bulek.

37
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.

38
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)

39
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.

40
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.



41
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.

42
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.


43
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.


44
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.

45
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.



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