Powerlink serial pinout, linux daemon and web interface

Forum about Visonic products like Powermax Plus and Powermax Pro

Moderators: Rene, Willem4ever

viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

not really a "conflict" but the fact that you went out of memory while installing package
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

It's seems probable.
I do receive my new MR3020 on saturday.
Today I try to use my serial/USB converter (http://cgi.ebay.fr/USB-to-Serial-Adapte ... 415d279d2b) with Powermax remote programmer software and pins like write VIKNET but the software doen't reconise my alarm.
It's seems that I do connect to the dual RS232 pins but I can't found GND pin; I see that but I don't know if it is OK
http://www.domoticaforum.eu/viewtopic.p ... 4&start=15
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

I don't understand but i need some information; you have a powermax+ or a powermax pro ?

why are you commenting about another picture see my picture at the beginning of the topic or attach a picture of your wiring (mail if required) I did put all information including where to get power, GND tx and rx remember that you have to wire tx from alarm to rx from usb ttl
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

did you install the serial driver:

Code: Select all

opkg update
opkg install kmod-usb-serial-pl2303
you also have to edit /etc/pmaxd.conf
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

Today I received my new MR3020 (three days from AMAZ...) that's nice
Well tomorrow I will rebegin to install all the system.
I do install:
1) openwrt for MR 3020
2) lighttpd
3) xpl library
4) xpl examples and utilities (if I want)
5) pmax deamon
6) serial driver

Anything else?
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

libconfig is used, (but you noticed it)

avoid installing pmaxd at first and do some sanity check before:

with the router unplugged from the alarm:
install screen (remove it once finished to avoid taking too much memory)

test your usb TTL serial adapter,

Code: Select all

screen /dev/ttyusbX 9600
then type something on the keyboard: --> nothing display on your screen
then connect RX and TX of your dongle together (not to the alarm) and retype something : --> whatever you type is written on screen


if yes: your serial dongle is working, if not do not try to go further.

Then connect to your alarm, launch screen and try to enroll the pmax (see your pmax doc): you should see some garbage on the screen

if yes remove screen and install the pmax daemon
edit /etc/init.d/pmaxd and remove the two line "testpmaxd" this daemon reboot the router if it see no answer from pmax
kill testpmaxd if required (it wait some minutes after a reboot before trying a reboot)

modify /etc/pmaxd.conf
verify pmaxd is not running


type

Code: Select all

/bin/pmaxd -fvvvvvvvvvv
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

All was OK since to test RS232/serial dongle.
I have only 68Kb free and Screen is 142Kb hight
I am looking for an other solution for testing but I don't find
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

list of my installed package, everything not here can probably be removed,

removed everything xpl based for testing the serial you don't need them

Code: Select all

opkg list-installed


base-files - 107-r31650
base-files-network - 4
busybox - 1.19.4-1
dnsmasq - 2.59-3
dropbear - 2011.54-2
firewall - 2-49
hotplug2 - 1.0-beta-4
iptables - 1.4.10-4
iw - 3.3-1
kmod-ath9k - 3.3.5+2012-04-17-2
kmod-crypto-aes - 3.3.5-1
kmod-crypto-core - 3.3.5-1
kmod-gpio-button-hotplug - 3.3.5-1
kmod-ipt-conntrack - 3.3.5-1
kmod-leds-gpio - 3.3.5-1
kmod-ledtrig-timer - 3.3.5-1
kmod-ledtrig-usbdev - 3.3.5-1
kmod-lib-crc-ccitt - 3.3.5-1
kmod-mac80211 - 3.3.5+2012-04-17-2
kmod-pppoe - 3.3.5-1
kmod-usb-core - 3.3.5-1
kmod-usb-ohci - 3.3.5-1
kmod-usb-serial - 3.3.5-1
kmod-usb-serial-pl2303 - 3.3.5-1
kmod-usb2 - 3.3.5-1
libc - 0.9.33-107
libconfig - 1.4.8-2
libgcc - 4.6-linaro-107
libip4tc - 1.4.10-4
libpcre - 8.11-2
libpthread - 0.9.33-107
libuci - 2012-03-28.1-1
libxpl - 1
lighttpd - 1.4.30-2
lighttpd-mod-cgi - 1.4.30-2
mtd - 17
opkg - 618-2
pmaxd - 1
swconfig - 10
uboot-envtools - 2011.06-4
uci - 2012-03-28.1-1
wpad-mini - 20120428-1
xPLLibexample - 1
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

I compare my list of packages with yours; I have the double.
So I kill / remove a lot of them but my mr3020 doesn't was out of order; I think I delete a file that was useful.
Today I restart just on Tenet (192.168.1.1) and I am coming on the front page of OpenWRT; I was reassured.
Now, can I reinstall original TP Link firmware or reinstall OpenWRT?
Later I will install package by package, comparing with your list.

Thanks for your patience with me
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

probably one of the following :
http://wiki.openwrt.org/doc/howto/generic.failsafe

in your case probably :
rm -r /overlay/*
reboot -f

but check the whole page first

please send me the output of the "df"command
mine is:

Code: Select all

root@OpenWrt:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
rootfs                    1472      1312       160  89% /
/dev/root                 1536      1536         0 100% /rom
tmpfs                    14588        68     14520   0% /tmp
tmpfs                      512         0       512   0% /dev
/dev/mtdblock3            1472      1312       160  89% /overlay
overlayfs:/overlay        1472      1312       160  89% /
root@OpenWrt:~#
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

This is my answer:

root@(none):/# df
Filesystem 1K-blocks Used Available Use% Mounted on
rootfs 1536 1536 0 100% /
/dev/root 1536 1536 0 100% /
tmpfs 14580 16 14564 0% /tmp
tmpfs 512 0 512 0% /dev
root@(none):/#


I am longer from you
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

where did you get the original openwrt image, mine is from
http://wiki.openwrt.org/toh/tp-link/tl-wr703n
find "squashfs-factory.bin" in the page

I think yours is a bit different or I missed something,

you can also send me a screenshot when you connect using ssh, to check your version, I will send you my screenshot once I get back home
belibaste
Starting Member
Starting Member
Posts: 26
Joined: Fri Jun 08, 2012 9:08 pm

Re: Powerlink serial pinout

Post by belibaste »

Mine is this:

openwrt-ar71xx-generic-tl-mr3020-v1-squashfs-factory.bin

the great difference (I haven't /dev/mtdblock3 )comes because I have deleted wrong files

Now I can't connect by ssh because I have deleted files with my password ( see first and last line: "root@(none) )
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

for information when sshing I get :

Code: Select all

BusyBox v1.19.4 (2012-05-08 19:59:09 MST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
 |       |.-----.-----.-----.|  |  |  |.----.|  |_
 |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
 |_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
 -----------------------------------------------------
 ATTITUDE ADJUSTMENT (Bleeding Edge, r31650)
 -----------------------------------------------------
  * 1/4 oz Vodka      Pour all ingredients into mixing
  * 1/4 oz Gin        tin with ice, strain into glass.
  * 1/4 oz Amaretto
  * 1/4 oz Triple sec
  * 1/4 oz Peach schnapps
  * 1/4 oz Sour mix
  * 1 splash Cranberry juice
 -----------------------------------------------------
but I am afraid I can't help you more, try sorting your issues with openwrt first, then retry installing pmaxd
viknet
Member
Member
Posts: 65
Joined: Thu Jan 26, 2012 1:48 am

Re: Powerlink serial pinout

Post by viknet »

by the way try telneting instead of sshing remember that ssh is not enable at first start and until you change your password
Post Reply

Return to “Visonic Alarm systems”