Debugging serial connection

still not starting due to too many communication errors

50 06/24/13 19:38:41.202 luup_log:11: POWERMAX: loading library L_Powermax… <0x2ba6b680>
50 06/24/13 19:38:41.331 luup_log:11: POWERMAX: library L_Powermax loaded LEAK this:479232 start:479232 to 0xcf4000 <0x2ba6b680>
50 06/24/13 19:38:41.332 luup_log:11: POWERMAX: Not starting due to too many communcation errors. <0x2ba6b680>
01 06/24/13 19:38:41.333 e[31;1mLuaInterface::CallFunction_Startup-2 device 11 function startup failed (null) with return falsee[0m <0x2ba6b680>
06 06/24/13 19:38:41.333 Device_Variable::m_szValue_set device: 11 service: urn:micasaverde-com:serviceId:HaDevice1 variable: e[35;1mCommFailuree[0m was: 1 now: 1 #hooks: 0 upnp: 0 v:0xb58fb8/NONE duplicate:1 <0x2ba6b680>
01 06/24/13 19:38:41.334 e[31;1mLuImplementation::StartLua running startup code for 11 I_Powermax.xml failede[0m <0x2ba6b680>

Puzzling ???.. Do you have the logs from the moment you connected the new cable?

Clear both variables (‘CommExceptions’ and ‘CommLastException’)

just tried it and it filled everything in… see if it sticks

Looks like that did it! Thank you again for your help and patience.

It automatically created the zones that I didn’t have setup.

@nlrb thank you, thank you again

Glad to see it is working and everything behaves as expected! You had me worried…

Hi,
I cannot get the plug-in to work with my Vera Lite and PowerMax+, I get “Not starting due to too many communcation errors.
I’ve cleared both variables (‘CommExceptions’ and ‘CommLastException’), but no go.

I’m using these adapters:
http://www.moxa.com/product/200802011023020685.htm
http://www.deltaco.se/support/infose/UC-232C9.pdf

How do I troubleshoot this?

Any help appreciated.

[ol][li]Check that the pinout of the RJ45 → DB9 is as described in this topic.[/li]
[li]Check that connection works with the PC programming software[/li]
[li]Check that the USB to serial converter shows up in Vera (Apps → Develop Apps → Serial Port configuration)[/li][/ol]

[font=verdana][size=11px]nlb,[/size][/font]
[font=verdana][size=11px]This is what I found out.[/size][/font]
[font=verdana][size=11px]I have also removed the cable from the usb port and uninstalled the plug-in.[/size][/font]
[font=verdana][size=11px]The connecting the cable to usb and installed the plug-in.[/size][/font]

[font=verdana][size=11px]“1. Check that the pinout of the RJ45 → DB9 is as described in this topic.
[/size][/font]
[size=8pt][font=verdana]->According the datasheet at the Moxa url in my previous post:[/font][/size][size=8pt]1 DCD
2 TxD
3 RxD
4 DSR
5 GND
6 DTR
7 CTS
8 RTS[/size]

[size=8pt]“2. Check that connection works with the PC programming software”[/size]
[size=8pt]-> I do not know how to do this…[/size]

[size=8pt]“3.Check that the USB to serial converter shows up in Vera…”[/size]
[size=8pt]-> Yes, as below:[/size]
[size=8pt]Name=ftdi_sio[/size]
[size=8pt]Path=/dev/ttyUSB0[/size]
[size=8pt]Device number=usb-rt3883-ohci-1[/size]
[size=8pt]IP address=empty[/size]
[size=8pt]Port=3481[/size]
[size=8pt]Baud=9600[/size]
[size=8pt]Parity=none[/size]
[size=8pt]Data bits=8[/size]
[size=8pt]Stop bits=1[/size]
[size=8pt]Used by device=Powermax Alarm Panel[/size]

[size=8pt]The Powermax Alarm Panel shows “Mode unknown”.[/size]
[size=8pt]After a while I get “Lua Startup Failure”. And after reload I get “Not starting due to too many communcation errors.”[/size]

[size=8pt]I will see if I can find a Cisco cable like this, [url=http://www.ebay.com/itm/New-Cisco-Router-Switch-Console-Cable-DB9-to-RJ45-72-3383-01-/161286560720]http://www.ebay.com/itm/New-Cisco-Router-Switch-Console-Cable-DB9-to-RJ45-72-3383-01-/161286560720[/url][/size]

If the pinout numbers are the numbers of the RJ45 connector, then it explains why it doesn’t work. See this topic how the pinout should be.

For the programmer software, e.g. have a look at the following FAQ: How do I access the Visonic Remote Programming Software?

I got it to work, by replacing the Moxa cable with the Cisco cable :slight_smile:

http://www.aliexpress.com/item/Wholesales-Free-Shipping-1-8M-RJ45-to-RS232-RS-232-DB9-9-pin-Converter-Cable/477294254.html

Thanks!