News:

Rule #1 - Be Patient - Rule #2 - Don't ask when, if you don't contribute - Rule #3 - You have coding skills - LinuxMCE's small brother is available: http://www.agocontrol.com

Main Menu

New PLCBUS driver

Started by hari, December 19, 2010, 10:17:16 PM

Previous topic - Next topic

bongowongo

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.

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

bugui

#16
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


bugui

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

bongowongo

How did you get it to work? in 0810 or 1004?
Also, what does your log say?

bugui

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


hari

rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

bugui

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

bongowongo

I see you do A02, maybe you should give it A2 as an address.
Reload router see what happens.

bugui

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

hari

rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

hari

Quote from: 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

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
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

Gangsingen

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:

/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?

hari

please enable debug logs (log level 35) and repaste your log

br Hari
rock your home - [url="http://www.agocontrol.com"]http://www.agocontrol.com[/url] home automation

bongowongo

I still have problems getting plcbus to work in 1004, but how do I enable the debug logs?

Marie.O

bongowongo,

edit /etc/pluto.conf with your favourite editor and add 35 to the log level line.
If I helped you, feel free to buy me a coffee: [url="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES"]https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=2VKASZLTJH7ES[/url]