• 10 dec 2017: forum version update. In case of issues use this topic.
  • 30 nov 2017: pilight moved servers. In case of issues use this topic.
Hello There, Guest! Login Register


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
pilight Nano USB interface
#21
Just as i though, the error tells us that it can't reach openweathermap at that moment.
 
Reply
#22
Hey curlymo,

I didn't tested your Nano sulotion yet, because my configuration (temp/light sesenor and Somfy Telis "hack") didn't word on my Nano (Clone). I had to switch to an Uno. Du you have planned to increase the suppot for the Arduino family?
 
Reply
#23
Should probably already work, although you need to flash it manually.
 
Reply
#24
(03-14-2015, 02:53 PM)curlymo Wrote: Just as i though, the error tells us that it can't reach openweathermap at that moment.

I removed openweathermap from the previous config:
no http(s) error in pilight.log, but also no webgui!
 
Reply
#25
Ok, let's not discuss the windows build here. I believe i already create a topic for that elsewhere.
 
Reply
#26
I get the idea that my problem may be related to running OpenSUSE. Just did some other tests, pilight-raw is working to get the data. But as I see now, pilight-daemon running with pilight-receive doesn't show anything. And as expected, neither does the switch in the interface. I put in some printf statements, but seems taht the receive and send functions for the 433nano are called.
 
Reply
#27
Does the log show anything?
 
Reply
#28
Nope nothing special.
 
Reply
#29
And running pilight in nodaemon mode (-D)?
 
Reply
#30
No difference. However, I get this:

Code:
# ./pilight-daemon -D --threadprofiler
[Mar 15 16:32:11:658242] pilight-daemon: INFO: version 6.0, commit d8f1f7f
[Mar 15 16:32:11:764894] pilight-daemon: ERROR: ----- Thread Profiling -----
[Mar 15 16:32:11:767800] pilight-daemon: ERROR: - thread lirc: 0.000000%
[Mar 15 16:32:11:768171] pilight-daemon: ERROR: - thread socket: 0.000000%
[Mar 15 16:32:11:768467] pilight-daemon: ERROR: - thread ssdp: 0.000000%
[Mar 15 16:32:11:768663] pilight-daemon: ERROR: - thread sender: 0.000000%
[Mar 15 16:32:11:768804] pilight-daemon: ERROR: - thread broadcaster: 0.000000%
[Mar 15 16:32:11:769010] pilight-daemon: ERROR: - thread 433nano: 0.000000%
[Mar 15 16:32:11:769147] pilight-daemon: ERROR: - thread receive parser: 0.000000%
[Mar 15 16:32:11:769336] pilight-daemon: ERROR: - thread events client: 0.000000%
[Mar 15 16:32:11:769481] pilight-daemon: ERROR: - thread events loop: 0.000000%
433MHz Init-- STACKTRACE (10 FRAMES) --
__restore_rt                   ip = 0x7f157d4f89f0, sp = 0x7fffc88ea440
pthread_getcpuclockid          ip = 0x7f157d4f64e0, sp = 0x7fffc88ea8f8
getThreadCPUUsage              ip = 0x7f157dc297bf, sp = 0x7fffc88ea900
threads_cpu_usage              ip = 0x7f157dc31851, sp = 0x7fffc88ea930
433MHz Receivingpilight_stats                  ip =   0x40ac60, sp = 0x7fffc88ea960
main                           ip =   0x40b197, sp = 0x7fffc88ea9d0
__libc_start_main              ip = 0x7f157cafbbe5, sp = 0x7fffc88eaa00
_start                         ip =   0x404039, sp = 0x7fffc88eaac0
                               ip =      (nil), sp = 0x7fffc88eaac8
segmentation fault

It does not crash without the --threadprofiler. Will now run it with GDB.

Not sure if this should be working and is the real problem. But anyways:
Code:
(gdb) run -D --threadprofiler
The program being debugged has been started already.
Start it from the beginning? (y or n) y
Starting program: /home/gerwin/Temp/pilight/pilight-daemon -D --threadprofiler
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib64/libthread_db.so.1".
[Mar 15 16:37:14:964654] pilight-daemon: INFO: version 6.0, commit d8f1f7f
[New Thread 0x7ffff679e700 (LWP 21193)]
[New Thread 0x7ffff5f9d700 (LWP 21194)]
[New Thread 0x7ffff579c700 (LWP 21195)]
[New Thread 0x7ffff4f9b700 (LWP 21196)]
[New Thread 0x7fffe7fff700 (LWP 21197)]
[New Thread 0x7fffe77fe700 (LWP 21198)]
[New Thread 0x7fffe6ffd700 (LWP 21199)]
[ Mar 15 16:37:15:85425] pilight-daemon: ERROR: ----- Thread Profiling -----
[ Mar 15 16:37:15:85503] pilight-daemon: ERROR: - thread lirc: 0.000000%
[ Mar 15 16:37:15:85542] pilight-daemon: ERROR: - thread socket: 0.000000%
[ Mar 15 16:37:15:85563] pilight-daemon: ERROR: - thread ssdp: 0.000000%
[ Mar 15 16:37:15:85583] pilight-daemon: ERROR: - thread sender: 0.000000%
[ Mar 15 16:37:15:85600] pilight-daemon: ERROR: - thread broadcaster: 0.000000%

Program received signal SIGSEGV, Segmentation fault.
pthread_getcpuclockid (threadid=0, clockid=0x7fffffffe11c) at ../nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c:35
35        if (INVALID_TD_P (pd))
(gdb) backtrace
#0  pthread_getcpuclockid (threadid=0, clockid=0x7fffffffe11c) at ../nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c:35
#1  0x00007ffff7afe7bf in getThreadCPUUsage () from /usr/local/lib/libpilight.so
#2  0x00007ffff7b06851 in threads_cpu_usage () from /usr/local/lib/libpilight.so
#3  0x000000000040ac60 in pilight_stats ()
#4  0x000000000040b197 in main ()

(gdb) frame 0
#0  pthread_getcpuclockid (threadid=0, clockid=0x7fffffffe11c) at ../nptl/sysdeps/unix/sysv/linux/pthread_getcpuclockid.c:35
35        if (INVALID_TD_P (pd))
 
Reply
  


Possibly Related Threads...
Thread Author Replies Views Last Post
  problems compiling pilight on Odroid C2 WitchDoctor 101 8,184 03-14-2019, 09:01 PM
Last Post: curlymo
  pilight 8 what chages for custom protocols? polo 11 2,579 02-15-2019, 06:22 PM
Last Post: polo
  pilight-debug shows nothing minhdomanh 3 450 10-18-2018, 07:01 AM
Last Post: felfert
  pilight-send and pilight-daemon DieterK 0 499 06-20-2018, 12:44 AM
Last Post: DieterK
  Lights not switched on or off by rules in pilight 8.1.0 rorie 22 2,191 06-12-2018, 03:56 PM
Last Post: curlymo
  check API in pilight 8 stratege-0815 4 1,241 02-11-2018, 09:34 AM
Last Post: stratege-0815
  pilight-receive terminates zackdvd 8 1,462 12-30-2017, 09:07 PM
Last Post: curlymo
  pilight 8.0 / wiringx wupperpi 2 1,707 12-18-2017, 03:25 PM
Last Post: wupperpi
  pilight on RPi with latest Arch stopped working Ypsilon 12 4,467 12-17-2017, 12:43 PM
Last Post: tinusv
  pilight -> Home Assistant crash jmvermeulen 6 1,314 12-11-2017, 09:39 PM
Last Post: curlymo

Forum Jump:


Browsing: 1 Guest(s)