LinuxMCE Forums
June 19, 2013, 06:32:16 pm GMT-1 *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
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
 
   Home   Help Search Chat Login Register  
Pages: 1 [2] 3 4 ... 6
  Print  
Author Topic: New PLCBUS driver  (Read 10471 times)
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #15 on: April 16, 2011, 06: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:
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
Logged
bugui
Veteran
***
Posts: 67


View Profile
« Reply #16 on: May 16, 2011, 02: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

« Last Edit: May 16, 2011, 02:37:40 am by bugui » Logged
bugui
Veteran
***
Posts: 67


View Profile
« Reply #17 on: May 23, 2011, 05: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
Logged
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #18 on: May 23, 2011, 07:34:41 am »

How did you get it to work? in 0810 or 1004?
Also, what does your log say?
Logged
bugui
Veteran
***
Posts: 67


View Profile
« Reply #19 on: May 24, 2011, 05: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

Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #20 on: May 24, 2011, 07:14:38 am »

enable more logging
Logged

rock your home - http://www.agocontrol.com home automation
bugui
Veteran
***
Posts: 67


View Profile
« Reply #21 on: May 28, 2011, 11:35:19 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
Logged
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #22 on: May 28, 2011, 01:53:58 pm »

I see you do A02, maybe you should give it A2 as an address.
Reload router see what happens.
Logged
bugui
Veteran
***
Posts: 67


View Profile
« Reply #23 on: June 01, 2011, 03: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
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #24 on: June 01, 2011, 10:19:14 am »

A01 will work, too
Logged

rock your home - http://www.agocontrol.com home automation
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #25 on: June 01, 2011, 10: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
Logged

rock your home - http://www.agocontrol.com home automation
Gangsingen
Veteran
***
Posts: 53


View Profile
« Reply #26 on: August 11, 2011, 02: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:
/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?
Logged
hari
Administrator
LinuxMCE God
*****
Posts: 2414



View Profile WWW
« Reply #27 on: August 12, 2011, 06:15:23 pm »

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

br Hari
Logged

rock your home - http://www.agocontrol.com home automation
bongowongo
wants to work for LinuxMCE
**
Posts: 826



View Profile
« Reply #28 on: August 13, 2011, 05:15:09 pm »

I still have problems getting plcbus to work in 1004, but how do I enable the debug logs?
Logged
posde
Administrator
LinuxMCE God
*****
Posts: 2637


Wastes Life On LinuxMCE Since 2007


View Profile WWW
« Reply #29 on: August 13, 2011, 08:52:17 pm »

bongowongo,

edit /etc/pluto.conf with your favourite editor and add 35 to the log level line.
Logged

Pages: 1 [2] 3 4 ... 6
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!