i have a nslu2 (unslung) with eibd running on usb connection to EIB. By starting linknx i get a "Segmentation fault". What can i do to find the reason of the error? I used the packages from the linknx-download-zone for the nslu2.
The second problem: eibd only works with the usb connection and doesn't work with the internal uart. I am sure, that's a problem with my hardware from the internal 3,3V uart to the rs232 eibmax from dehof (http://www.dehof.de/eib). The eibmax works fine on my pc. The 3,3V uart from the nslu2 is connected to an rs232-ttl-converter (http://www.tigal.com/product.asp?pid=1245). This converter is connected cross-over with 3 lines (ground, transmit to read and read to transmit). But it doesn't work.
Thanx
Horst
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I had the same problem...
I solved it by NOT using any adapter...
I took a Merten Bus-coupler 690299 an connected it over resistors to my WRT54G.
The loaded application is "Schnittstelle 7101/1"
Ich took 2 Resistors 45,3 kOhm to set the adaptor to PEI-10
and one resistor 1 kOhm between Tx (BCU) und Rx (WRT) to protect the 3,3V-Input against the 5V-Output of the BCU.
ThaT's all, but it's up to your risk
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
For the first problem, you can use the strace command to dump all the system calls before the crash.
( perhaps you need to install it : ipkg install strace )
Then start:
strace linknx <your linknx parameters>
Thank you very much for the new linknx0.0.1.26. Now linknx seems to work fine.
Now i tried to run knxweb06. But there is always a parse error. I think the reason on the error is a missing package to the apache web server. I have installed the packages "apache" and "php-apache". Apache itself works (ip:8000). But the example-php-script doesn't work. It is the same demo-php-scipt i use on my pc-server to check the connection to eib and linknx. On my nslu2 it shows the php-source-code itself. So i think, that php doesn't work. Is there any other package i have to install?
Here are my installed packages:
apache - 2.2.11-1 - The most popular web server on the internet
apr - 1.3.3-1 - Apache Portable Runtime library
apr-util - 1.3.4-2 - Apache Portable Runtime utilities library
bash - 3.2.33-1 - A bourne style shell
bzip2 - 1.0.5-1 - Very high-quality data compression program
coreutils - 6.12-2 - Bunch of heavyweight *nix core utilities
cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
e2fslibs - 1.41.4-1 - Ext2 Filesystem Libraries
e2fsprogs - 1.41.4-1 - Ext2 Filesystem Utilities
eibd - 0.0.3-4 - The eibd daemon is a central component of the BCU SDK. It provides an interface to the EIB/KNX bus.
expat - 2.0.1-1 - XML Parser library
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
ipkg - 0.99.163-r6 - Itsy Package Manager
kernel - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-2.4.22-xfs - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-image-2.4.22-xfs - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-module-netconsole - 2.4.22.l2.3r63-r21 - netconsole kernel module; kernel network console implementation
kernel-module-pl2303 - 2.4.22.l2.3r63-r21 - pl2303 kernel module; Prolific PL2303 USB to serial adaptor driver
kernel-module-usbserial - 2.4.22.l2.3r63-r21 - usbserial kernel module; USB Serial Driver core
libc6-unslung - 2.2.5-r13 - GNU C Library
libcurl - 7.19.2-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libesmtp - 1.0.4-2 - libESMTP is a library to manage posting electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA).
libgcc - 3.4.4-r7 - The GNU cc and gcc C compilers.
libipkg - 0.99.163-r6 - Itsy Package Manager Library
libstdc++ - 5.0.7-6 - Standard C++ library, needed for dynamically linked C++ programs
libxml2 - 2.7.3-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
libxslt - 1.1.24-1 - An XML Stylesheet processor based on libxml2
linknx - 0.0.1.26-2 - KNX home automation platform
nslu2-linksys-libs - 2.3r63-r3 - Linksys NSLU2 Stock Firmware Libraries.
ntpclient - 2007_365-1 - Using RFC1305 (NTP), retrieves a remote date and time
openldap-libs - 2.3.43-1 - Open Lightweight Directory Access Protocol
openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
pcre - 7.8-1 - Perl-compatible regular expression library
php - 5.2.9-3 - The php scripting language
php-apache - 5.2.9-1 - The php scripting language, built as an apache module
pthsem - 2.0.7-1 - user mode multi threading library with semaphores
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
setserial - 2.17-1 - configuration utility for serial ports
slingbox - 1.3.1-r2 - SlingBox is a minimal version of BusyBox with just enough functionality to enable ipkg to run on an Unslung NSLU2 device.
strace - 4.5.16-1 - Traces all system calls a program makes.
unslung-rootfs - 2.3r63-r22 - Version 2.3r63-r22 of package unslung-rootfs
update-modules - 1.0-r6 - Script to manage module configuration files
update-rc.d - 0.7-r1 - Manage symlinks in /etc/rcN.d
zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system.
Regards,
Horst
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I would say that the problem is probably in the apache configuration. I'm not an apache expert, apache/php is usually working out of the box with most distributions, and on embedded devices I only used lighttpd.
On my synology DS-107, where apache works also out-of-the-box, I found the following php-related lines in apache config file:
AddType application/x-httpd-php .php
LoadModule php5_module /lib/libphp5.so
I don't know if it can help...
Regards,
Jean-François
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
hi,
i have a nslu2 (unslung) with eibd running on usb connection to EIB. By starting linknx i get a "Segmentation fault". What can i do to find the reason of the error? I used the packages from the linknx-download-zone for the nslu2.
The second problem: eibd only works with the usb connection and doesn't work with the internal uart. I am sure, that's a problem with my hardware from the internal 3,3V uart to the rs232 eibmax from dehof (http://www.dehof.de/eib). The eibmax works fine on my pc. The 3,3V uart from the nslu2 is connected to an rs232-ttl-converter (http://www.tigal.com/product.asp?pid=1245). This converter is connected cross-over with 3 lines (ground, transmit to read and read to transmit). But it doesn't work.
Thanx
Horst
I had the same problem...
I solved it by NOT using any adapter...
I took a Merten Bus-coupler 690299 an connected it over resistors to my WRT54G.
The loaded application is "Schnittstelle 7101/1"
Ich took 2 Resistors 45,3 kOhm to set the adaptor to PEI-10
and one resistor 1 kOhm between Tx (BCU) und Rx (WRT) to protect the 3,3V-Input against the 5V-Output of the BCU.
ThaT's all, but it's up to your risk
Hi,
For the first problem, you can use the strace command to dump all the system calls before the crash.
( perhaps you need to install it : ipkg install strace )
Then start:
strace linknx <your linknx parameters>
For the second problem, I have no idea. I use the optocoupler circuit described here:
http://ouaye.net/linknx/bcu-interface/bcu-uart-interface.png
but as Epix said, 2 resistors will do the job.
Regards,
Jean-François
I'm using unslung 6.8 on NSLU2 and had the same "segmentation fault" problem. Also using USB adapter.
Solved it installing linknx-0.0.1.25-nosmtp-optware-FSG3 package. Now, email funtion is disabled.
It seems a libesmtp problem, not sure.
Thanx Horst
Hi Jean-François,
here are the last lines of the strace linknx ...
mprotect(0x4009c000, 53248, PROT_READ|PROT_EXEC) = 0
mprotect(0x4005c000, 225280, PROT_READ|PROT_WRITE) = 0
mprotect(0x4005c000, 225280, PROT_READ|PROT_EXEC) = 0
mprotect(0x4001d000, 61440, PROT_READ|PROT_WRITE) = 0
mprotect(0x4001d000, 61440, PROT_READ|PROT_EXEC) = 0
getrlimit(RLIMIT_STACK, {rlim_cur=8192*1024, rlim_max=RLIM_INFINITY}) = 0
setrlimit(RLIMIT_STACK, {rlim_cur=2044*1024, rlim_max=RLIM_INFINITY}) = 0
getpid() = 594
uname({sys="Linux", node="NSLU2-1", ...}) = 0
rt_sigaction(SIGRTMIN, {0x40219b94, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGRT_1, {0x40219c58, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigaction(SIGRT_2, {0x40219dcc, [], 0x4000000 /* SA_??? */}, NULL, 8) = 0
rt_sigprocmask(SIG_BLOCK, [RTMIN], NULL, 8) = 0
_sysctl({{CTL_KERN, KERN_VERSION}, 2, 0xbffffac4, 31, (nil), 0}) = 0
brk(0) = 0xfca54
brk(0xfca84) = 0xfca84
brk(0xfd000) = 0xfd000
rt_sigaction(SIGPIPE, {SIG_IGN}, {SIG_DFL}, 8) = 0
pipe([3, 4]) = 0
fcntl64(3, F_GETFL) = 0 (flags O_RDONLY)
fcntl64(3, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
fcntl64(4, F_GETFL) = 0x1 (flags O_WRONLY)
fcntl64(4, F_SETFL, O_WRONLY|O_NONBLOCK) = 0
gettimeofday({1234622659, 436498}, NULL) = 0
brk(0x10e000) = 0x10e000
gettimeofday({1234622659, 439965}, NULL) = 0
rt_sigprocmask(SIG_BLOCK, [USR1], [RTMIN], 8) = 0
rt_sigaction(SIGUSR1, {0x4021a608, [], SA_STACK}, {SIG_DFL}, 8) = 0
sigaltstack({ss_sp=0xfcda0, ss_flags=0, ss_size=65536}, {ss_sp=0, ss_flags=SS_DISABLE, ss_size=0}) = 0
getpid() = 594
kill(594, SIGUSR1) = 0
rt_sigsuspend(~[USR1] <unfinished ...>
--- SIGUSR1 (User defined signal 1) @ 0 (0) ---
<... rt_sigsuspend resumed> ) = 10
--- SIGSEGV (Segmentation fault) @ 0 (0) ---
+++ killed by SIGSEGV +++
Regards,
Horst
Thank you very much for the new linknx0.0.1.26. Now linknx seems to work fine.
Now i tried to run knxweb06. But there is always a parse error. I think the reason on the error is a missing package to the apache web server. I have installed the packages "apache" and "php-apache". Apache itself works (ip:8000). But the example-php-script doesn't work. It is the same demo-php-scipt i use on my pc-server to check the connection to eib and linknx. On my nslu2 it shows the php-source-code itself. So i think, that php doesn't work. Is there any other package i have to install?
Here are my installed packages:
apache - 2.2.11-1 - The most popular web server on the internet
apr - 1.3.3-1 - Apache Portable Runtime library
apr-util - 1.3.4-2 - Apache Portable Runtime utilities library
bash - 3.2.33-1 - A bourne style shell
bzip2 - 1.0.5-1 - Very high-quality data compression program
coreutils - 6.12-2 - Bunch of heavyweight *nix core utilities
cyrus-sasl-libs - 2.1.22-2 - Provides client or server side authentication (see RFC 2222).
e2fslibs - 1.41.4-1 - Ext2 Filesystem Libraries
e2fsprogs - 1.41.4-1 - Ext2 Filesystem Utilities
eibd - 0.0.3-4 - The eibd daemon is a central component of the BCU SDK. It provides an interface to the EIB/KNX bus.
expat - 2.0.1-1 - XML Parser library
gdbm - 1.8.3-2 - GNU dbm is a set of database routines that use extensible hashing. It works similar to the standard UNIX dbm routines.
ipkg - 0.99.163-r6 - Itsy Package Manager
kernel - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-2.4.22-xfs - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-image-2.4.22-xfs - 2.4.22.l2.3r63-r21 - Vendor-compatible Linux kernel for the Linksys NSLU2 device
kernel-module-netconsole - 2.4.22.l2.3r63-r21 - netconsole kernel module; kernel network console implementation
kernel-module-pl2303 - 2.4.22.l2.3r63-r21 - pl2303 kernel module; Prolific PL2303 USB to serial adaptor driver
kernel-module-usbserial - 2.4.22.l2.3r63-r21 - usbserial kernel module; USB Serial Driver core
libc6-unslung - 2.2.5-r13 - GNU C Library
libcurl - 7.19.2-1 - Curl is a command line tool for transferring files with URL syntax, supporting FTP, FTPS, HTTP, HTTPS, GOPHER, TELNET, DICT, FI
libdb - 4.2.52-3 - Berkeley DB Libraries
libesmtp - 1.0.4-2 - libESMTP is a library to manage posting electronic mail using SMTP to a preconfigured Mail Transport Agent (MTA).
libgcc - 3.4.4-r7 - The GNU cc and gcc C compilers.
libipkg - 0.99.163-r6 - Itsy Package Manager Library
libstdc++ - 5.0.7-6 - Standard C++ library, needed for dynamically linked C++ programs
libxml2 - 2.7.3-1 - Libxml2 is the XML C parser and toolkit developed for the Gnome project.
libxslt - 1.1.24-1 - An XML Stylesheet processor based on libxml2
linknx - 0.0.1.26-2 - KNX home automation platform
nslu2-linksys-libs - 2.3r63-r3 - Linksys NSLU2 Stock Firmware Libraries.
ntpclient - 2007_365-1 - Using RFC1305 (NTP), retrieves a remote date and time
openldap-libs - 2.3.43-1 - Open Lightweight Directory Access Protocol
openssl - 0.9.7m-5 - Openssl provides the ssl implementation in libraries libcrypto and libssl, and is needed by many other applications and librari
pcre - 7.8-1 - Perl-compatible regular expression library
php - 5.2.9-3 - The php scripting language
php-apache - 5.2.9-1 - The php scripting language, built as an apache module
pthsem - 2.0.7-1 - user mode multi threading library with semaphores
readline - 5.2-2 - The GNU Readline library provides a set of functions for use by applications that allow users to edit command lines as they are
setserial - 2.17-1 - configuration utility for serial ports
slingbox - 1.3.1-r2 - SlingBox is a minimal version of BusyBox with just enough functionality to enable ipkg to run on an Unslung NSLU2 device.
strace - 4.5.16-1 - Traces all system calls a program makes.
unslung-rootfs - 2.3r63-r22 - Version 2.3r63-r22 of package unslung-rootfs
update-modules - 1.0-r6 - Script to manage module configuration files
update-rc.d - 0.7-r1 - Manage symlinks in /etc/rcN.d
zlib - 1.2.3-3 - zlib is a library implementing the 'deflate' compression system.
Regards,
Horst
Hi,
I would say that the problem is probably in the apache configuration. I'm not an apache expert, apache/php is usually working out of the box with most distributions, and on embedded devices I only used lighttpd.
On my synology DS-107, where apache works also out-of-the-box, I found the following php-related lines in apache config file:
AddType application/x-httpd-php .php
LoadModule php5_module /lib/libphp5.so
I don't know if it can help...
Regards,
Jean-François