LinuxMCE Forums

General => Users => Topic started by: hari on December 19, 2010, 10:17:16 pm

Title: New PLCBUS driver
Post by: hari on December 19, 2010, 10:17:16 pm
Hi Folks,

I did write a new PLCBUS driver. The old one from ddamron was written as a GSD and had some issues. The new one is a multithreaded c++ DCE device. It should be much faster and more reliable. There is also a pnp script to auto-detect the PLCBUS 1141 adapter. The driver is included in the latest 0810 beta2. The wiki instructions are not yet updated.

If you have any wishes for new features or want to provide feedback: feel free to post.

br Hari
Title: Re: New PLCBUS driver
Post by: bongowongo on December 19, 2010, 11:54:09 pm
http://x10-hk.com/store/manual/plcbus/plcbus-1141.pdf

Here is the datasheet of PLCBUS.

I would like to see

-on/off single unit (already implemented)
-Set level (already implemented)
 There also is Dim and Bright, but I do not see need for this
-All units on/off
-All lights on/off
-Status Request
-Report/get signal strength
-Report/get noise level
Also if you flip a lightswitch to on/off , it should report back to the system it is on/off
Title: Re: New PLCBUS driver
Post by: bongowongo on January 03, 2011, 10:19:57 am
tested PnP in a bigger setup. First plugin in core, found a serial to usb device. I ignored it, plugged it in another port and got recognized. Could it be that when you plug it in, it does the buzz directly to recognize the commands for PLCBUS for PnP and the script didn't not run yet?

If you switch off/on a dimmable light switch it takes very long to go from 100 to 0% or vice versa, almost 1 minute more or less.
I would prefer 3 to 5 seconds. Maybe a timing mistake?
It would be nice for a wake up light though :).

When I select on the floorplan 5 lamps, A1, A3, A9, A6 and A7. One of those will not go on or off. It seems at random.
If I select 4 of those, they always go on and off.

The dimmable PLCBUS devices, remember the last dimstate they were in.
e.g. If I dimm the lamp to 50%, turn it off, and turn it on it goes to 50%. The max I can set it then on the floorplan would be 90%, because there is no 100% button. I want to know from you if this is something in the driver, or not. Because I suspect it could be a more general bug in the system. Depending on your reply, I will post a bug in trac.
Title: Re: New PLCBUS driver
Post by: pezho on January 04, 2011, 02:44:40 am
Hi Guys!
I use the PLCBus devices from June 2010 were purchased from Shanghai Super Smart (www.s10.cn)
I have computer interface PLCBUS-T 1141 usb (http://www.plcbus.com.cn/Html/news/1440.html), Transceiver Module PLCBUS-T 4023G (http://www.plcbus.com.cn/Html/news/1462.html) and various lighting modules which I can operate via remote PLC-RF 4073E (http://www.plcbus.com.cn/Html/news/1477.html) and in Win XP, but never in LinuxMCE via Ruby or New Driver.
PLease kindly advise me that how I should setting up plcbus devices in LMCE.
1. I plug computer interface into usb, generic USB to RS232 dongle has been ignored.
2. Creating new interface PLCBUS.
3. Creating new lightings devices.
_______________________________________
With best wishes in NEW YEAR 2011 from Russia!
Title: Re: New PLCBUS driver
Post by: bongowongo on January 04, 2011, 09:31:19 am
Are steps 1,2,3 taken, or you want advice on how to take them?
Title: Re: New PLCBUS driver
Post by: pezho on January 04, 2011, 10:50:44 am
Dear bongowongo,

1-3 is standard steps which I taken, but controling of plcbus in lmce have not working. If you can help me I can give you log's.
Title: Re: New PLCBUS driver
Post by: bongowongo on January 04, 2011, 11:06:41 am
Could you verify that in your /usr/pluto/pnp, there is a script named PLCBus?
if not, you should update your core. Maybe it is better if you drop into IRC and we can troubleshoot there.
Title: Re: New PLCBUS driver
Post by: pezho on January 04, 2011, 11:22:17 am
Dear bongowongo,

I install clean 8.10 and update/upgrade lmce on 01.01.2011, last update today. What is IRC? Is it ICQ? I'm not use it. just skype: vmctech
Title: Re: New PLCBUS driver
Post by: bongowongo on January 04, 2011, 12:07:54 pm
http://www.linuxmce.org/index.php/support
and
http://en.wikipedia.org/wiki/Internet_Relay_Chat
please do some research about IRC yourself, it is not that hard. at #linuxmce we can troubleshoot.
or open a new forum topic with your problems, otherwise we are filling this topic only with your troubleshooting, and that is not the topic of this post.
Title: Re: New PLCBUS driver
Post by: pezho on January 04, 2011, 01:08:10 pm
I run the Konversation and connect to Kubuntu room. I don't understand how to connect to lmce room
Title: Re: New PLCBUS driver
Post by: bongowongo on January 04, 2011, 01:13:58 pm
Could you please make a new forum topic.
I will help you there.
Title: Re: New PLCBUS driver
Post by: pezho on January 04, 2011, 01:22:10 pm
http://forum.linuxmce.org/index.php?topic=11246.0
Title: Re: New PLCBUS driver
Post by: Esperanto on January 29, 2011, 06:16:19 pm
Hari,

Is the 3-phase functional and tested? I saw the checkbox in the admin but can't seem to get it to work.

thx!
Title: Re: New PLCBUS driver
Post by: hari on January 29, 2011, 09:10:54 pm
Hari,

Is the 3-phase functional and tested? I saw the checkbox in the admin but can't seem to get it to work.

thx!
neither functional nor tested.. do you want that feature and volunteer to test it?


br Hari
Title: Re: New PLCBUS driver
Post by: Esperanto on January 30, 2011, 06:08:26 pm
neither functional nor tested.. do you want that feature and volunteer to test it?

thx a lot Hari for implementing it!
Title: Re: New PLCBUS driver
Post by: bongowongo on April 16, 2011, 07:54:05 pm
PnP scripts do not work after plugin, try to do it manually.....errors underneath.

Something not correct in pnp scripts of I want to run the script in /usr/pluto/pnp/

This is in 1004.

it returns e.g.

Code: [Select]
dcerouter_1017724:/usr/pluto/pnp# ./99_PLCBUS_1141.sh
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
It's not a PLCBUS interface
RESP: UNHANDLED
dcerouter_1017724:/usr/pluto/pnp# ./ZWAVE
bash: ./ZWAVE: No such file or directory
dcerouter_1017724:/usr/pluto/pnp# ./ZWave.sh
ERROR 1064 (42000) at line 1: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
It's not a ZWave interface
RESP: UNHANDLED


I d
Title: Re: New PLCBUS driver
Post by: bugui on May 16, 2011, 03:35:15 am
Hi bongowongo,
I have the same problem in 0810.

I have installed one PCLBUS 1141 an a 2268 micromodule, but the module couldn't register to LMCE and it's seams like LMCE can't communicate using USB to the 1141 interface.

Could you help to me troubleshooting this?

Thanks in advance,

Here is the /var/log/pluto/123_PLCBUS.log

========== NEW LOG SECTION ==========
1       05/15/11 22:33:36       123 (spawning-device)   Starting... 1
1       05/15/11 22:33:36       123 (spawning-device)   Found /usr/pluto/bin/PLCBUS
01      05/15/11 22:33:37.007           TranslateSerialUSB pci0000:00/0000:00:02.0+1 result /dev/ttyUSB0 <0xb71ba6c0>
01      05/15/11 22:33:37.007           Open port: /dev/ttyUSB0 <0xb71ba6c0>
01      05/15/11 22:33:37.079           TranslateSerialUSB pci0000:00/0000:00:02.0+1 result /dev/ttyUSB0 <0xb71ba6c0>


Hernan

Title: Re: New PLCBUS driver
Post by: bugui on May 23, 2011, 06:07:31 am
Hi all,
I get it work (I have a problem with my 220v plug that I made, that had invert polarity), but now its fixed, I can control the ligths with this two small issues.
1) some times I loose communication with the PC1141, I don't know why, but allways happens before some MD ask to me for a quick reload router. I must to reload the core in order to get it back as normal.
2) I use UI2 in all my MDs if I press F6 and I change the brightness the lamps makes it crazy and it to plays open and shade againg and again.
I using one 2264E to control some of my lamps and another 2268E to control some ligths that doesn't have dimming capabilities.

Hernan
Title: Re: New PLCBUS driver
Post by: bongowongo on May 23, 2011, 08:34:41 am
How did you get it to work? in 0810 or 1004?
Also, what does your log say?
Title: Re: New PLCBUS driver
Post by: bugui on May 24, 2011, 06:00:50 am
Bongowongo,
I get it work in 0810.
When it hangs I get this on my /var/log/pluto/118_PLCBUS.log

"05      05/23/11 23:14:59.976           Got a reload command from 0  <0xb5fffb90>
05      05/23/11 23:15:00.231           void ClientSocket::Disconnect() on this socket: 0x98ed050 (m_Socket: 7) <0xb71376c0>"

Just that....

Did you know how can I troubleshooting that?? or maybe find into another log the possible cause of this?

Thanks in advance
Hernan

Title: Re: New PLCBUS driver
Post by: hari on May 24, 2011, 08:14:38 am
enable more logging
Title: Re: New PLCBUS driver
Post by: bugui on May 28, 2011, 12:35:19 pm
Hi guys,
Here is a more completed log.

http://pastebin.com.ar/6592

The lamps are not working at the end of this log.

Hernan
Title: Re: New PLCBUS driver
Post by: bongowongo on May 28, 2011, 02:53:58 pm
I see you do A02, maybe you should give it A2 as an address.
Reload router see what happens.
Title: Re: New PLCBUS driver
Post by: bugui on June 01, 2011, 04:26:17 am
Ok bongo, I can do this changes this weekend.
remove 0 from all of my modules:
A01 > A1
A02 > A2
A03 > A3
A04 > A4
A05 > A5
A06 > A6
A07 > A7
A08 > A8
....then reloading DCE and regen all my orbiters?

Thanks
Hernan
Title: Re: New PLCBUS driver
Post by: hari on June 01, 2011, 11:19:14 am
A01 will work, too
Title: Re: New PLCBUS driver
Post by: hari on June 01, 2011, 11:21:16 am
Hi guys,
Here is a more completed log.

http://pastebin.com.ar/6592

The lamps are not working at the end of this log.

Hernan

please try to be a bit more verbose when describing problems. Did they work before? When did they stop? Correlate your problem description with the timestamps from the log.

hari
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 11, 2011, 03:37:50 pm
Hi!

On my old system I had the new PLCBUS driver working perfectly, I don´t remember wich snapshot I installed it from, but everything worked fine.

Now I have a new server that I have installed LMCE 810 on, but PLCBUS doesn´t work. I have tried numerous different snapshots to install from, but my PLCBUS1141 isn´t recognized by the pnp scripts. As I only have a 3G internet connection with a 10GB/month cap, I can´t download the most recent snapshot every now and then to try them out.

However, I discovered one thing. When I make an install from the most recent snapshot I´ve got (from mid june 2011) and take a closer look at the device template for PLCBUS, I see that the field "Vendor model ID" is left blank. Once I discovered that I fired up my old system to look att the working install, and I found that the model ID should be "067b2303".

I put "067b2303" into the model ID on my fresh install and voilá, pnp scripts finds the PLC1141 without problems, and installs the needed software.

But there is still something missing. After the successful install of the PLCBUS device, it sets the "COM port on PC" to "/dev/ttyUSB0". This config gives the following log at startup:

Code: [Select]
/var/log/pluto/39_PLCBUS.log

0 08/11/11 13:04:11 39 (spawning-device) Entering 39
========== NEW LOG SECTION ==========
1 08/11/11 13:04:11 39 (spawning-device) Starting... 1
1 08/11/11 13:04:11 39 (spawning-device) Found /usr/pluto/bin/PLCBUS
01 08/11/11 13:04:11.792 TranslateSerialUSB pci0000:00/0000:00:1d.3+1 result /dev/ttyUSB0 <0xb72646c0>
01 08/11/11 13:04:11.792 Open port: /dev/ttyUSB0 <0xb72646c0>
01 08/11/11 13:04:11.827 TranslateSerialUSB pci0000:00/0000:00:1d.3+1 result /dev/ttyUSB0 <0xb72646c0>
05 08/11/11 13:04:11.836 Creating child 40 <0xb72646c0>
05 08/11/11 13:04:11.836 Note: Device manager has attached a device of type 37 that this has no custom event handler for.  It will not fire events. <0xb72646c0>
05 08/11/11 13:04:11.836 Note: Device manager has attached a device of type 37 that this has no custom handler for.  This is normal for IR. <0xb72646c0>
Return code: 134
3 08/11/11 13:05:10 39 (spawning-device) Device died... count=1/50 dev=39

I remember that when the PLCBUS driver worked fine (my old system is dead, the drive gave up), the setting for "COM port on PC" was left unmodified or in "-Please select-" state. When I change that setting to -Please select- again, the setting is changed back to /dev/ttyUSB0 by itself when I reload the router.

Anyone who have a clue of whats wrong here?
Title: Re: New PLCBUS driver
Post by: hari on August 12, 2011, 07:15:23 pm
please enable debug logs (log level 35) and repaste your log

br Hari
Title: Re: New PLCBUS driver
Post by: bongowongo on August 13, 2011, 06:15:09 pm
I still have problems getting plcbus to work in 1004, but how do I enable the debug logs?
Title: Re: New PLCBUS driver
Post by: posde on August 13, 2011, 09:52:17 pm
bongowongo,

edit /etc/pluto.conf with your favourite editor and add 35 to the log level line.
Title: Re: New PLCBUS driver
Post by: bongowongo on August 14, 2011, 08:14:06 am
http://pastebin.com/2xV03urk

1st I did a reload router.
Then I edited the conf file
Then I reset the device
Now it gets registered correctly
Also after a reload router.

Weird.
Title: Re: New PLCBUS driver
Post by: hari on August 14, 2011, 11:09:15 am
it is a Heisenbug :)
Title: Re: New PLCBUS driver
Post by: bongowongo on August 14, 2011, 12:28:52 pm
ehm, I know the hindenburg.........what is a heisenbug?

Oh yeah forgot I have google and wikipedia
http://en.wikipedia.org/wiki/Unusual_software_bug
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 15, 2011, 01:56:28 am
Okay, here we go. I edited the pluto.conf and rebooted the core. My pluto.conf loglevel line reads:

LogLevels = 1,5,7,8,35

This is what I get when reloading the router.

Code: [Select]
Sun Aug 14 23:19:39 CEST 2011 Restart
========== NEW LOG SECTION ==========
1 08/14/11 23:19:47 39 (spawning-device) Starting... 1
1 08/14/11 23:19:47 39 (spawning-device) Found /usr/pluto/bin/PLCBUS
01 08/14/11 23:19:52.876 TranslateSerialUSB pci0000:00/0000:00:1d.3+1 result /dev/ttyUSB0 <0xb71ea6c0>
01 08/14/11 23:19:52.876 Open port: /dev/ttyUSB0 <0xb71ea6c0>
01 08/14/11 23:19:52.942 TranslateSerialUSB pci0000:00/0000:00:1d.3+1 result /dev/ttyUSB0 <0xb71ea6c0>
05 08/14/11 23:19:52.953 Creating child 40 <0xb71ea6c0>
05 08/14/11 23:19:52.953 Note: Device manager has attached a device of type 37 that this has no custom event handler for.  It will not fire events. <0xb71ea6c0>
05 08/14/11 23:19:52.953 Note: Device manager has attached a device of type 37 that this has no custom handler for.  This is normal for IR. <0xb71ea6c0>
05 08/15/11 1:53:55.041 Got a reload command from 0  <0xb61e7b90>
05 08/15/11 1:53:55.292 void ClientSocket::Disconnect() on this socket: 0x8e8c2b0 (m_Socket: 7) <0xb71ea6c0>
Return code: 2
Title: Re: New PLCBUS driver
Post by: hari on August 15, 2011, 01:31:10 pm
This is what I get when reloading the router.
reloading the router of course makes the PLCBUS device quit..

br Hari
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 15, 2011, 07:03:40 pm
reloading the router of course makes the PLCBUS device quit..

br Hari

Yeah of course, but the spawning sequence looks ok? Maybe I shall try to send commands to the lamp and then paste the log here?!

If a were at home I´d do it right away, but I won´t be at home until tomorrow evening.
Title: Re: New PLCBUS driver
Post by: hari on August 15, 2011, 07:21:55 pm
Yeah of course, but the spawning sequence looks ok? Maybe I shall try to send commands to the lamp and then paste the log here?!

If a were at home I´d do it right away, but I won´t be at home until tomorrow evening.
spawning looks ok. Sending commands would be great. btw, there is a new version available in a bit that also scans for devices on house code A-E. If possible I'd like to see the output of that one. Please not only enable log level 35 but also 40 and 41.

thanks and best regards,
hari
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 15, 2011, 07:38:23 pm
spawning looks ok. Sending commands would be great. btw, there is a new version available in a bit that also scans for devices on house code A-E. If possible I'd like to see the output of that one. Please not only enable log level 35 but also 40 and 41.

thanks and best regards,
hari

Wonderful, is the update&upgrade give me the new version or do I need to do anything else to get it?
Title: Re: New PLCBUS driver
Post by: bongowongo on August 15, 2011, 08:03:06 pm
spawning looks ok. Sending commands would be great. btw, there is a new version available in a bit that also scans for devices on house code A-E. If possible I'd like to see the output of that one. Please not only enable log level 35 but also 40 and 41.

thanks and best regards,
hari

How do you invoke this new feature?
And how do invoke the new feature about "query state", without sending nude pics of my ex-gf?
Title: Re: New PLCBUS driver
Post by: hari on August 15, 2011, 08:04:16 pm
the new package should be on the repo soon, so update and upgrade should be sufficient.

@bongowongo: you never had a girlfriend..

br Hari
Title: Re: New PLCBUS driver
Post by: bongowongo on August 15, 2011, 08:09:51 pm
so you are still demanding the pictures, knowing how hard it is for my to get a gf, make pictures, break up, and send you the pictures.
You are demanding.
Title: Re: New PLCBUS driver
Post by: hari on August 15, 2011, 08:14:27 pm
package is in the repo (thanks possy!!)

br Hari
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 16, 2011, 08:41:09 pm
PLCBUS device just dies when sending a command to it.

I´ll try installing 8.10 from scratch again tonight from snapshot 24279 and lets start from there and lets solve the plcbus problems once for all!
Title: Re: New PLCBUS driver
Post by: bongowongo on August 16, 2011, 08:50:13 pm
Why not try:

LinuxMCE-8.10-24412-i386.iso 
Title: Re: New PLCBUS driver
Post by: Gangsingen on August 16, 2011, 09:35:59 pm
Haven´t enough bandwidth left for this month, I have only 3G with 10GB/month cap. Looked at the snapshots page in wiki yesterday when I were at a hotel with free wifi and downloaded the snapshot that is recommended in the wiki.
Title: Re: New PLCBUS driver
Post by: hari 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/...)
Title: Re: New PLCBUS driver
Post by: Gangsingen 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!
Title: Re: New PLCBUS driver
Post by: bongowongo 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.
Title: Re: New PLCBUS driver
Post by: hari 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
Title: Re: New PLCBUS driver
Post by: Gangsingen 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!!
Title: Re: New PLCBUS driver
Post by: Gangsingen 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.

Title: Re: New PLCBUS driver
Post by: hari 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
Title: Re: New PLCBUS driver
Post by: Gangsingen 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.
Title: Re: New PLCBUS driver
Post by: bongowongo 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.

Title: Re: New PLCBUS driver
Post by: hari 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
Title: Re: New PLCBUS driver
Post by: hari 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
Title: Re: New PLCBUS driver
Post by: RayBe 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
Title: Re: New PLCBUS driver
Post by: posde 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.
Title: Re: New PLCBUS driver
Post by: hari 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..
Title: Re: New PLCBUS driver
Post by: Esperanto 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!
Title: Re: New PLCBUS driver
Post by: hari on October 10, 2011, 04:33:32 pm
nothing was changed in regard to 3phase support
Title: Re: New PLCBUS driver
Post by: max666 on November 11, 2011, 02:44:36 pm
Hello all.
This thread is the most active for PLCBUS and MCE, and I am just in a process of purchasing PLCBUS devices
which I will use in my new house that I am building:
-10x micro modules (2268HE)
-2x dimmable micro modules for CFL/LED (2268HXD)
-3x dual shutter modules (3160MHX2)
-1x usb controller (1141)

And as a novice in PLCBUS i have lots of questions:

Is this all I need - Will I be able to program the modules via usb controller (1141)?

Has anybody been using shutter controllers with MCE? As far as I can see the commands are on/off dim+ dim-

And a PLCBUS harware question - what about dimmable fluorescent light module, it has 0-10V analog output - I am thinking about buying all 3160MHX2 instead of 2268HE if the dimmable balasts are obtainable and working fine (I would then use FLs with ballasts instead of the standard E27 CFLs in the house).

Title: Re: New PLCBUS driver
Post by: hari on November 11, 2011, 06:19:08 pm
Will I be able to program the modules via usb controller (1141)?
yes

Quote
Has anybody been using shutter controllers with MCE? As far as I can see the commands are on/off dim+ dim-
they should work but this is untested

br Hari
Title: Re: New PLCBUS driver
Post by: Gangsingen on November 16, 2011, 10:38:45 am
Hi max666!

I´d suggest you to buy a few PLCBUS modules and the 1141 to begin with and play around with them and to learn how they work before you go ahead and buy all modules you need. Don´t spend hundreds of dollars on something that may end up not working as you expect the to work.

I have now, during several months had LMCE controlling a few lights and I have to say that the system is pretty reliable. In a few weeks I´ll have my house rewired and I´ll install a 3phase coupler and more modules. Hopefully the 3phase stuff works, as nobody (?) has tested it out yet with the new driver.
Title: Re: New PLCBUS driver
Post by: bugui on November 18, 2011, 06:10:38 am
Check if you install the modules with correct polarity (Fase & Neutral) because if they are inverted then it doesn't work.

Bugui
Title: Re: New PLCBUS driver
Post by: hari on November 18, 2011, 11:55:39 am
Check if you install the modules with correct polarity (Fase & Neutral) because if they are inverted then it doesn't work.

Bugui
would you mind to add that information to the PLCBUS page on the Wiki?
Title: Re: New PLCBUS driver
Post by: bugui on November 19, 2011, 07:36:30 am
Yes, I could upload pictures and diagrams also, but I need to finish a proyect now, I will do in a couple of weeks.
Thanks.
Hernan
Title: Re: New PLCBUS driver
Post by: posde on November 19, 2011, 12:48:04 pm
I wonder why people love to receive prompt feedback on their problems, but are unable to spend half an hour (or less) to update a wiki page so other people can help themselves in the future.
Title: Re: New PLCBUS driver
Post by: PKWilson on December 09, 2011, 01:01:26 pm
Just wondering from those running PLCBUS if anyone has tested their "standby" power usage. They say "<1W" on the modules, but I found my in-wall light controllers were drawing 9W each, the 2-light controllers 17W, plug-in power controllers around 20W. I only noticed when I got a power meter and it showed my lighting circuit was using up around 270W with all the lights off.

I liked PLCBUS, but changing to Z-Wave because I'll have saved enough to pay for the Z-Wave in a couple of years.
Title: Re: New PLCBUS driver
Post by: Gangsingen on December 09, 2011, 04:31:38 pm
Just wondering from those running PLCBUS if anyone has tested their "standby" power usage. They say "<1W" on the modules, but I found my in-wall light controllers were drawing 9W each, the 2-light controllers 17W, plug-in power controllers around 20W. I only noticed when I got a power meter and it showed my lighting circuit was using up around 270W with all the lights off.

I liked PLCBUS, but changing to Z-Wave because I'll have saved enough to pay for the Z-Wave in a couple of years.

Very interesting!! How did you measure the power consumption? What kind of "tool" did you use?
Title: Re: New PLCBUS driver
Post by: alx2k on December 11, 2011, 06:11:56 pm
I am having the same powerloss on x10 items comming from x10-hk.com

Now I have some zwave items on its way.

standby power consumption for my lighting devices is +-250watts what is unnacceptable IMO (15 wall plugs).

I use current cost to measure power consumption currentcost.com
Title: Re: New PLCBUS driver
Post by: bongowongo on December 11, 2011, 11:47:25 pm
I am having the same powerloss on x10 items comming from x10-hk.com

Now I have some zwave items on its way.

standby power consumption for my lighting devices is +-250watts what is unnacceptable IMO (15 wall plugs).

I use current cost to measure power consumption currentcost.com

In their documents it says 1w static load
http://www.plcbus.com.cn/Html/news/1434.html
Title: Re: New PLCBUS driver
Post by: PKWilson on December 16, 2011, 05:06:43 am
I discovered the high overall power usage with a CurrentCost meter hooked into the lighting circuit, and then tested the plugin modules with a plugin meter. And then tested a few in-wall modules individually with both the CurrentCost and the plugin meter which both gave the same reading. I then tested a few Z-Wave modules which didn't even register on either power meter.

I was just curious if anyone else had experienced this. I don't think it would just be a bad batch as I purchased them at different times over a 2 year period.

Title: Re: New PLCBUS driver
Post by: Digit on December 22, 2011, 11:55:21 pm
Hi all,

I'm new here and kind of 'invited' to say something about PLCBUS power usage, so here it goes  ;)
I have lots of PLCBUS appliance modules and my measurements show me the following numbers:

No load attached:
An appliance module uses an average of 0.3W while it's OFF.
When you change it to ON, this changes to 1.5W.

Load attached:
OFF stays the same, still 0.3W
ON: a bit harder to measure, but it looks like it's still below 2W.

So in normal operation you could say that a PLCBUS module uses 0.3W extra in OFF and 1.5W extra while ON.
I made a picture of the power monitor to prove this, but I'm not allowed to post links here, sorry about that.
Well, a link can be found in my guestbook at www dot hekkers dot net somewhere....

Hope this answers your questions,
Robert.
Title: Re: New PLCBUS driver
Post by: Jicky on February 10, 2012, 07:18:18 am
The device template doesn´t change, its "only" the orbiter buttons that changes.

Hi Gangsingen,

Do you solve this problem? i faced this issue also.

Regards,
Jicky
Title: Re: New PLCBUS driver
Post by: Gangsingen on February 10, 2012, 03:18:44 pm
Hi Gangsingen,

Do you solve this problem? i faced this issue also.

Regards,
Jicky

Well, yeah....kind of..



This way the scenario buttons "On" and "Off" will work, but in the floorplan the light can be turned off but not on.