Author Topic: New PLCBUS driver  (Read 48389 times)

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #45 on: August 17, 2011, 01:47:03 pm »
it would be good to see how it dies.. anything in the logs? Does it dump core? (/usr/pluto/coredumps/...)
rock your home - http://www.agocontrol.com home automation

Gangsingen

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: New PLCBUS driver
« Reply #46 on: August 17, 2011, 11:01:17 pm »
Sorry Hari, can't help you with the logs.

Now LMCE is installed from scratch. Took a look at the PLCBUS device template, and the Vendor model ID is blank. Is this as it should be? Haven´t plugged in the 1141 yet!

bongowongo

  • wants to work for LinuxMCE
  • **
  • Posts: 826
    • View Profile
Re: New PLCBUS driver
« Reply #47 on: August 18, 2011, 12:01:05 am »
Ehm, I do not know what you are doing, but there shouldnt be any device as a child in your core.
 
it is plug and play, when you plug it in, everything would go automaticly.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #48 on: August 18, 2011, 12:25:17 am »
Sorry Hari, can't help you with the logs.

Now LMCE is installed from scratch. Took a look at the PLCBUS device template, and the Vendor model ID is blank. Is this as it should be? Haven´t plugged in the 1141 yet!
yes, that should be blank. It shows up with the usb id of the prolific rs232/usb bridge. So we don't use that for device detection. We've a serial detection script that should find the device. But there have been issues with serial plug and play recently. So you might need to manually create the device and select the proper com port.

br Hari
rock your home - http://www.agocontrol.com home automation

Gangsingen

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: New PLCBUS driver
« Reply #49 on: August 18, 2011, 06:53:00 am »
Ehm, I do not know what you are doing, but there shouldnt be any device as a child in your core.
 
it is plug and play, when you plug it in, everything would go automaticly.

I havent the child device yet, just checked the device template to check it´s ok before I try to plug the 1141 in.

yes, that should be blank. It shows up with the usb id of the prolific rs232/usb bridge. So we don't use that for device detection. We've a serial detection script that should find the device. But there have been issues with serial plug and play recently. So you might need to manually create the device and select the proper com port.

br Hari

Perfect, then ´ll go ahead an plug the 1141 in, lets see what happens. Thanks for your patience Hari!

*UPDATE*

Pnp scripts find the 1141, and downloads the required software and the 1141 buzz a few times. Everything seems to be ok, will add one lamp and continue testing after work tonight! YEAH!!
« Last Edit: August 18, 2011, 07:06:12 am by Gangsingen »

Gangsingen

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: New PLCBUS driver
« Reply #50 on: August 18, 2011, 09:57:35 pm »
Okey, the PLCBUS saga continues.

I have now started experimenting with my WORKING lmce install.   :)

PLCBUS1141 works perfectly, but I discovered one funny bug. Here is what I found, testing a non-dimmable plug-in module (PLCBUS-2027U).

When I add a non-dimmable lamp (device template 37) in web admin and set the channel number, the lamp will work perfectly (after reloading router of course) UNTIL I choose a Floorplan object type for the lamp. As soon as I set the lamp to any of the floorplan objects, the lamp turns into a dimmable lamp. That results in a lamp that I only can turn off, but not on.


hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #51 on: August 18, 2011, 10:21:04 pm »
you did state "the lamp turns into a dimmable lamp"

So do you mean that the device template of the child changes or are you referring to the buttons on the orbiter?

br Hari
rock your home - http://www.agocontrol.com home automation

Gangsingen

  • Veteran
  • ***
  • Posts: 54
    • View Profile
Re: New PLCBUS driver
« Reply #52 on: August 18, 2011, 11:11:47 pm »
you did state "the lamp turns into a dimmable lamp"

So do you mean that the device template of the child changes or are you referring to the buttons on the orbiter?

br Hari

The device template doesn´t change, its "only" the orbiter buttons that changes.

bongowongo

  • wants to work for LinuxMCE
  • **
  • Posts: 826
    • View Profile
Re: New PLCBUS driver
« Reply #53 on: August 19, 2011, 11:37:55 am »
I can also report another bug.

If you dim a lamp to e.g. 50%
and press it off, it turns off.
press on, it will be 50%
That is a feature not a bug.

But you cannot get it back to 100% because in orbiter the highest you can get is 90%
so on is on with last state
there should also be an on with 100% or a 100% button.


hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #54 on: August 19, 2011, 12:45:24 pm »
The device template doesn´t change, its "only" the orbiter buttons that changes.
weird..

that one is related to Orbiter and not PLCBUS itself.. we should nag Tschak..

br Hari
rock your home - http://www.agocontrol.com home automation

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #55 on: August 19, 2011, 12:46:15 pm »
I can also report another bug.

If you dim a lamp to e.g. 50%
and press it off, it turns off.
press on, it will be 50%
That is a feature not a bug.

But you cannot get it back to 100% because in orbiter the highest you can get is 90%
so on is on with last state
there should also be an on with 100% or a 100% button.
this one also relates to Orbiter and not to PLCBUS.

br Hari
rock your home - http://www.agocontrol.com home automation

RayBe

  • Guru
  • ****
  • Posts: 315
    • View Profile
Re: New PLCBUS driver
« Reply #56 on: August 19, 2011, 01:38:01 pm »
Does this apply to al light-controlling systems?
Is there a way to get the lamps to go 100%?

br,
Raymond
When you were born, you were crying and everybody else was laughing.
Live your life so when you die, you are laughing and everybody else is crying.

Marie.O

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 3675
  • Wastes Life On LinuxMCE Since 2007
    • View Profile
    • My Home
Re: New PLCBUS driver
« Reply #57 on: August 19, 2011, 06:07:29 pm »
Yes, there should be a way to get the lamp up to 100% again, using the media remote in the room with the lights. iirc, the up arrow makes any lights in the room brighter.

hari

  • Administrator
  • LinuxMCE God
  • *****
  • Posts: 2428
    • View Profile
    • ago control
Re: New PLCBUS driver
« Reply #58 on: August 19, 2011, 08:16:48 pm »
you can also use the set level command with 100% in a scenario or use the web admin..
rock your home - http://www.agocontrol.com home automation

Esperanto

  • Guru
  • ****
  • Posts: 281
    • View Profile
Re: New PLCBUS driver
« Reply #59 on: October 09, 2011, 10:17:52 pm »
Hi!

I wondered if the 3phase in PLCBUS is still suppose to work. I saw in the thread that plcbus was pnp now so I added some childs (using 1004) to the device but had no success this far (probably something wrong on my side but I thought I'd better verify it). I set the log level  and got the following (I hear the 'noice' on all the devices when I press a button so something is happening on the powerline).

Code: [Select]
========== NEW LOG SECTION ==========                                                                                                                                                  
1       10/09/11 21:16:32       47 (spawning-device)    Starting... 1                                                                                                                  
1       10/09/11 21:16:32       47 (spawning-device)    Found /usr/pluto/bin/PLCBUS                                                                                                    
01      10/09/11 21:16:32.776           3phase enabled <0xb724b6d0>
01      10/09/11 21:16:32.952           TranslateSerialUSB pci0000:00/0000:00:04.0+2 result /dev/ttyUSB0 <0xb724b6d0>
01      10/09/11 21:16:32.952           Open port: /dev/ttyUSB0 <0xb724b6d0>
01      10/09/11 21:16:33.057           TranslateSerialUSB pci0000:00/0000:00:04.0+2 result /dev/ttyUSB0 <0xb724b6d0>
35      10/09/11 21:16:33.081           Adding get all ID command to queue... <0xb724b6d0>
35      10/09/11 21:16:33.081           Adding get all ID command to queue... <0xb724b6d0>
35      10/09/11 21:16:33.081           Adding get all ID command to queue... <0xb724b6d0>
35      10/09/11 21:16:33.081           Adding get all ID command to queue... <0xb724b6d0>
35      10/09/11 21:16:33.081           Adding get all ID command to queue... <0xb724b6d0>
05      10/09/11 21:16:33.084           Creating child 69 <0xb724b6d0>
05      10/09/11 21:16:33.084           Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
05      10/09/11 21:16:33.085           Creating child 71 <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
05      10/09/11 21:16:33.085           Creating child 72 <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
05      10/09/11 21:16:33.085           Creating child 73 <0xb724b6d0>
05      10/09/11 21:16:33.085           Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.086           Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
05      10/09/11 21:16:33.086           Creating child 74 <0xb724b6d0>
05      10/09/11 21:16:33.086           Note: Device manager has attached a device of type 38 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.086           Note: Device manager has attached a device of type 38 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
05      10/09/11 21:16:33.086           Creating child 75 <0xb724b6d0>
05      10/09/11 21:16:33.086           Note: Device manager has attached a device of type 37 that this has no custom event handler for.  It will not fire events. <0xb724b6d0>
05      10/09/11 21:16:33.086           Note: Device manager has attached a device of type 37 that this has no custom handler for.  This is normal for IR. <0xb724b6d0>
35      10/09/11 21:16:33.581           Send Queue Size: 5 <0xb724ab70>
40      10/09/11 21:16:33.581           Sending job 0x9204840 - 0x2 0x5 0x0 0x0 0x1c 0x0 0x0 0x3 (########) <0xb724ab70>
41      10/09/11 21:16:34.084           0x2 0x6 0x0 0x0 0x1c 0x0 0x0 0x1c 0x3 (#########) <0xb724ab70>
35      10/09/11 21:16:34.084           frame seen on bus <0xb724ab70>
41      10/09/11 21:16:34.244           0x2 0x6 0x0 0x0 0x1c 0x0 0x0 0x40 0x3 (#######@#) <0xb724ab70>
01      10/09/11 21:16:34.244           Received ID feedback signal for home A, removing command (sendcount: 1) <0xb724ab70>
35      10/09/11 21:16:34.244           Send Queue Size: 4 <0xb724ab70>
40      10/09/11 21:16:34.244           Sending job 0x9204c68 - 0x2 0x5 0x0 0x10 0x1c 0x0 0x0 0x3 (########) <0xb724ab70>
41      10/09/11 21:16:34.743           0x2 0x6 0x0 0x10 0x1c 0x0 0x0 0x1c 0x3 (#########) <0xb724ab70>
35      10/09/11 21:16:34.743           frame seen on bus <0xb724ab70>
41      10/09/11 21:16:34.903           0x2 0x6 0x0 0x10 0x1c 0x0 0x0 0x40 0x3 (#######@#) <0xb724ab70>
01      10/09/11 21:16:34.904           Received ID feedback signal for home B, removing command (sendcount: 1) <0xb724ab70>
35      10/09/11 21:16:34.904           Send Queue Size: 3 <0xb724ab70>
40      10/09/11 21:16:34.904           Sending job 0x9205090 - 0x2 0x5 0x0 0x20 0x1c 0x0 0x0 0x3 (### ####) <0xb724ab70>
41      10/09/11 21:16:35.403           0x2 0x6 0x0 0x20 0x1c 0x0 0x0 0x1c 0x3 (### #####) <0xb724ab70>
35      10/09/11 21:16:35.404           frame seen on bus <0xb724ab70>
41      10/09/11 21:16:35.564           0x2 0x6 0x0 0x20 0x1c 0x0 0x0 0x40 0x3 (### ###@#) <0xb724ab70>
01      10/09/11 21:16:35.564           Received ID feedback signal for home C, removing command (sendcount: 1) <0xb724ab70>
35      10/09/11 21:16:35.564           Send Queue Size: 2 <0xb724ab70>
40      10/09/11 21:16:35.564           Sending job 0x92054b8 - 0x2 0x5 0x0 0x30 0x1c 0x0 0x0 0x3 (###0####) <0xb724ab70>
41      10/09/11 21:16:36.063           0x2 0x6 0x0 0x30 0x1c 0x0 0x0 0x1c 0x3 (###0#####) <0xb724ab70>
35      10/09/11 21:16:36.063           frame seen on bus <0xb724ab70>
41      10/09/11 21:16:36.225           0x2 0x6 0x0 0x30 0x1c 0x0 0x0 0x40 0x3 (###0###@#) <0xb724ab70>
01      10/09/11 21:16:36.225           Received ID feedback signal for home D, removing command (sendcount: 1) <0xb724ab70>
35      10/09/11 21:16:36.225           Send Queue Size: 1 <0xb724ab70>
40      10/09/11 21:16:36.225           Sending job 0x92058e0 - 0x2 0x5 0x0 0x40 0x1c 0x0 0x0 0x3 (###@####) <0xb724ab70>
41      10/09/11 21:16:36.723           0x2 0x6 0x0 0x40 0x1c 0x0 0x0 0x1c 0x3 (###@#####) <0xb724ab70>
35      10/09/11 21:16:36.723           frame seen on bus <0xb724ab70>
41      10/09/11 21:16:36.884           0x2 0x6 0x0 0x40 0x1c 0x0 0x0 0x40 0x3 (###@###@#) <0xb724ab70>
01      10/09/11 21:16:36.884           Received ID feedback signal for home E, removing command (sendcount: 1) <0xb724ab70>


35      10/09/11 21:18:44.556           COMMAND_Generic_On_CONST received for child H8 <0xb5e48b70>
35      10/09/11 21:18:44.556           Adding command to queue... <0xb5e48b70>
35      10/09/11 21:18:45.019           Send Queue Size: 1 <0xb724ab70>
40      10/09/11 21:18:45.019           Sending job 0x9207038 - 0x2 0x5 0x0 0x77 0x62 0x0 0x0 0x3 (###wb###) <0xb724ab70>
41      10/09/11 21:18:45.528           0x2 0x6 0x0 0x77 0x62 0x64 0x0 0x1c 0x3 (###wbd###) <0xb724ab70>
35      10/09/11 21:18:45.528           frame seen on bus <0xb724ab70>
35      10/09/11 21:18:46.028           Send Queue Size: 1 <0xb724ab70>
40      10/09/11 21:18:46.028           Sending job 0x9207038 - 0x2 0x5 0x0 0x77 0x62 0x0 0x0 0x3 (###wb###) <0xb724ab70>
41      10/09/11 21:18:46.528           0x2 0x6 0x0 0x77 0x62 0x64 0x0 0x1c 0x3 (###wbd###) <0xb724ab70>
35      10/09/11 21:18:46.528           frame seen on bus <0xb724ab70>
35      10/09/11 21:18:47.029           Send Queue Size: 1 <0xb724ab70>
40      10/09/11 21:18:47.029           Sending job 0x9207038 - 0x2 0x5 0x0 0x77 0x62 0x0 0x0 0x3 (###wb###) <0xb724ab70>
41      10/09/11 21:18:47.531           0x2 0x6 0x0 0x77 0x62 0x64 0x0 0x1c 0x3 (###wbd###) <0xb724ab70>
35      10/09/11 21:18:47.531           frame seen on bus <0xb724ab70>
35      10/09/11 21:18:48.031           Send Queue Size: 1 <0xb724ab70>
40      10/09/11 21:18:48.032           Sending job 0x9207038 - 0x2 0x5 0x0 0x77 0x62 0x0 0x0 0x3 (###wb###) <0xb724ab70>
01      10/09/11 21:18:48.032           Sendcount exceeded, this was the last sent attempt, removing job... <0xb724ab70>
41      10/09/11 21:18:48.532           0x2 0x6 0x0 0x77 0x62 0x64 0x0 0x1c 0x3 (###wbd###) <0xb724ab70>
35      10/09/11 21:18:48.532           frame seen on bus <0xb724ab70>

Thx!