Beta V0_6b1

9 years 10 months ago - 9 years 10 months ago #72 by EasyIoT
Beta V0_6b1 was created by EasyIoT
Beta release V0_6b1 is available for download:

iot-playground.com/swdownload/beta/easyiot_v0_6b01.rar

new ESP8266 EasyIoT lib
iot-playground.com/swdownload/beta/Esp8266EasyIoT_v2.rar

New features:
-SMS gateway - you can control sensors and read values from your sensors with SMS

-custom units for properties (no mor problems with °C and °F)

Automation (see explanation below):
-read property
ModuleParameter p = ModuleHelper.GetProperty(Domains.ESP8266, "N3S0", "Sensor.Humidity");
  
  if (p!= null)
    Console.WriteLine(p.Value);
-write property
ModuleHelper.SetProperty(Domains.ESP8266, "N3S0", "Sensor.Humidity", "3323");
-process driver commands
set digital value
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N1S3", "ControlOn", "");
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N1S3", "ControlOff", "");
-set analog value
DriverHelper.ProcessCommad(Domains.MYSENSORS, "N1S3", "ControlLevel", "123.1");

-send event
EventHelper.SetEvent(Domains.ESP8266, "N3S0", "Sensor.Humidity");
-receive event
EventHelper.ModuleChangedHandler((o, m, p) =>
    {
    	Console.WriteLine(m.Address + " in program id "+ Program.ProgramId.ToString()+ " property "+ p.Property + " value " + p.Value);

        return true;
    });

New MySensor driver data types:
-S_BARO and V_PRESSURE, V_FORECAST (pressure example)
-S_DIMMER and V_DIMMER (dimmer example)
-implemented internal message I_TIME - returns UTC server time

New ESP8266 driver:
-added analog sensors (you need new Android library, to work)
-added I_TIME
The topic has been locked.
9 years 10 months ago #76 by lewys.martin
Replied by lewys.martin on topic Beta V0_6b1
When I try to upgrade, keeping config folder and sqlite database, I can no longer communicate with ESP nodes D:
The topic has been locked.
9 years 10 months ago #78 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

lewys.martin wrote: When I try to upgrade, keeping config folder and sqlite database, I can no longer communicate with ESP nodes D:


use new ESP8266 EasyIoT library

iot-playground.com/swdownload/beta/Esp8266EasyIoT_v2.rar
The topic has been locked.
9 years 10 months ago #80 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1
Just installed, no configuration modifications :
onfig   Driver  MySensors       /Api/EasyIoT/Config/Driver/MySensors/GetDebugMode//?_=1421165824189
2015-01-13T17:18:03.1489680+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=0,t=17,pt=0,l=3:1.4
2015-01-13T17:18:03.1846540+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=6,pt=1,l=1:0
2015-01-13T17:18:08.5476620+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=0,t=17,pt=0,l=3:1.4
2015-01-13T17:18:08.5646290+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=6,pt=1,l=1:0
2015-01-13T17:18:10.5590640+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=11,pt=0,l=31:Door and Temp and Hum Int��
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_array_to_lparray (object) <0xffffffff>
  at (wrapper managed-to-native) MySensorsDriver.RF24_wrap.RF24_read (intptr,byte[],byte) <0xffffffff>
  at MySensorsDriver.RF24.read (byte[],byte) <0x00027>
  at MySensorsDriver.MySensors.process () <0x0049f>
  at MySensorsDriver.MySensors.workerThread () <0x00067>
  at System.Threading.Thread.StartInternal () <0x00097>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb4b45430 (LWP 2307)]
[New Thread 0xb4c56430 (LWP 2306)]
[New Thread 0xb5067430 (LWP 2305)]
[New Thread 0xb4d56430 (LWP 2293)]
[New Thread 0xb4e56430 (LWP 2292)]
[New Thread 0xb4f56430 (LWP 2291)]
[New Thread 0xb5167430 (LWP 2289)]
[New Thread 0xb5187430 (LWP 2288)]
[New Thread 0xb51f0430 (LWP 2287)]
[New Thread 0xb5210430 (LWP 2286)]
[New Thread 0xb5332430 (LWP 2285)]
[New Thread 0xb5b7b430 (LWP 2284)]
0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  Id   Target Id         Frame
  13   Thread 0xb5b7b430 (LWP 2284) "mono" 0xb6edb700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  12   Thread 0xb5332430 (LWP 2285) "mono" 0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  11   Thread 0xb5210430 (LWP 2286) "mono" 0xb6e42094 in epoll_wait () from /lib/arm-linux-gnueabihf/libc.so.6
  10   Thread 0xb51f0430 (LWP 2287) "mono" 0xb6edb954 in sem_timedwait () from /lib/arm-linux-gnueabihf/libpthread.so.0
  9    Thread 0xb5187430 (LWP 2288) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  8    Thread 0xb5167430 (LWP 2289) "mono" 0xb6ed9494 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  7    Thread 0xb4f56430 (LWP 2291) "mono" 0xb6edca80 in accept () from /lib/arm-linux-gnueabihf/libpthread.so.0
  6    Thread 0xb4e56430 (LWP 2292) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  5    Thread 0xb4d56430 (LWP 2293) "mono" 0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  4    Thread 0xb5067430 (LWP 2305) "mono" 0xb6edda3c in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0
  3    Thread 0xb4c56430 (LWP 2306) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  2    Thread 0xb4b45430 (LWP 2307) "mono" 0xb6edb954 in sem_timedwait () from /lib/arm-linux-gnueabihf/libpthread.so.0
* 1    Thread 0xb6fad000 (LWP 2283) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0

Thread 13 (Thread 0xb5b7b430 (LWP 2284)):
#0  0xb6edb700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1  0x001fff10 in mono_sem_wait (sem=0x2f523c, alertable=1) at mono-semaphore.c:119
#2  0x0017db28 in finalizer_thread (unused=<optimized out>) at gc.c:1073
#3  0x001625b4 in start_wrapper_internal (data=0x15098a0) at threads.c:643
#4  start_wrapper (data=0x15098a0) at threads.c:688
#5  0x001f5c30 in thread_start_routine (args=0x14c46b8) at wthreads.c:294
#6  0x00204268 in inner_start_thread (arg=0x14c46ac) at mono-threads-posix.c:49
#7  0xb6ed4bfc in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#8  0xb6e41968 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#9  0xb6e41968 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 12 (Thread 0xb5332430 (LWP 2285)):
#0  0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1  0x001df938 in _wapi_handle_timedwait_signal_handle (handle=0x400, timeout=0xb5331638, alertable=1, poll=<optimized out>) at handles.c:1586
#2  0x001f33a4 in WaitForMultipleObjectsEx (numobjects=3040024132, handles=0x2, waitall=3076096, timeout=3040024240, alertable=1) at wait.c:670
#3  0x001602e4 in mono_wait_uninterrupted (thread=0xb5bf4170, multiple=-1237235656, numhandles=2, handles=0xb53316b0, waitall=0, ms=1000, alertable=1) at threads.c:1453
#4  0x00161fa8 in ves_icall_System_Threading_WaitHandle_WaitAny_internal (mono_handles=0xb6414868, ms=1000, exitContext=<optimized out>) at threads.c:1551
#5  0xb53388b4 in ?? ()
Cannot access memory at address 0xfa

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

On raspberry pi B+

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
9 years 10 months ago #81 by EasyIoT
Replied by EasyIoT on topic Beta V0_6b1

PupazzoGnappo wrote: Just installed, no configuration modifications :

onfig   Driver  MySensors       /Api/EasyIoT/Config/Driver/MySensors/GetDebugMode//?_=1421165824189
2015-01-13T17:18:03.1489680+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=0,t=17,pt=0,l=3:1.4
2015-01-13T17:18:03.1846540+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=6,pt=1,l=1:0
2015-01-13T17:18:08.5476620+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=0,t=17,pt=0,l=3:1.4
2015-01-13T17:18:08.5646290+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=6,pt=1,l=1:0
2015-01-13T17:18:10.5590640+01:00       DEBUG   MySensors                      Read: 7-7-0 s=255,c=3,t=11,pt=0,l=31:Door and Temp and Hum Int��
Stacktrace:

  at <unknown> <0xffffffff>
  at (wrapper managed-to-native) object.__icall_wrapper_mono_array_to_lparray (object) <0xffffffff>
  at (wrapper managed-to-native) MySensorsDriver.RF24_wrap.RF24_read (intptr,byte[],byte) <0xffffffff>
  at MySensorsDriver.RF24.read (byte[],byte) <0x00027>
  at MySensorsDriver.MySensors.process () <0x0049f>
  at MySensorsDriver.MySensors.workerThread () <0x00067>
  at System.Threading.Thread.StartInternal () <0x00097>
  at (wrapper runtime-invoke) object.runtime_invoke_void__this__ (object,intptr,intptr,intptr) <0xffffffff>

Native stacktrace:


Debug info from gdb:

[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb4b45430 (LWP 2307)]
[New Thread 0xb4c56430 (LWP 2306)]
[New Thread 0xb5067430 (LWP 2305)]
[New Thread 0xb4d56430 (LWP 2293)]
[New Thread 0xb4e56430 (LWP 2292)]
[New Thread 0xb4f56430 (LWP 2291)]
[New Thread 0xb5167430 (LWP 2289)]
[New Thread 0xb5187430 (LWP 2288)]
[New Thread 0xb51f0430 (LWP 2287)]
[New Thread 0xb5210430 (LWP 2286)]
[New Thread 0xb5332430 (LWP 2285)]
[New Thread 0xb5b7b430 (LWP 2284)]
0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  Id   Target Id         Frame
  13   Thread 0xb5b7b430 (LWP 2284) "mono" 0xb6edb700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  12   Thread 0xb5332430 (LWP 2285) "mono" 0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  11   Thread 0xb5210430 (LWP 2286) "mono" 0xb6e42094 in epoll_wait () from /lib/arm-linux-gnueabihf/libc.so.6
  10   Thread 0xb51f0430 (LWP 2287) "mono" 0xb6edb954 in sem_timedwait () from /lib/arm-linux-gnueabihf/libpthread.so.0
  9    Thread 0xb5187430 (LWP 2288) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  8    Thread 0xb5167430 (LWP 2289) "mono" 0xb6ed9494 in pthread_cond_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  7    Thread 0xb4f56430 (LWP 2291) "mono" 0xb6edca80 in accept () from /lib/arm-linux-gnueabihf/libpthread.so.0
  6    Thread 0xb4e56430 (LWP 2292) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  5    Thread 0xb4d56430 (LWP 2293) "mono" 0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
  4    Thread 0xb5067430 (LWP 2305) "mono" 0xb6edda3c in waitpid () from /lib/arm-linux-gnueabihf/libpthread.so.0
  3    Thread 0xb4c56430 (LWP 2306) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0
  2    Thread 0xb4b45430 (LWP 2307) "mono" 0xb6edb954 in sem_timedwait () from /lib/arm-linux-gnueabihf/libpthread.so.0
* 1    Thread 0xb6fad000 (LWP 2283) "mono" 0xb6edd250 in nanosleep () from /lib/arm-linux-gnueabihf/libpthread.so.0

Thread 13 (Thread 0xb5b7b430 (LWP 2284)):
#0  0xb6edb700 in sem_wait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1  0x001fff10 in mono_sem_wait (sem=0x2f523c, alertable=1) at mono-semaphore.c:119
#2  0x0017db28 in finalizer_thread (unused=<optimized out>) at gc.c:1073
#3  0x001625b4 in start_wrapper_internal (data=0x15098a0) at threads.c:643
#4  start_wrapper (data=0x15098a0) at threads.c:688
#5  0x001f5c30 in thread_start_routine (args=0x14c46b8) at wthreads.c:294
#6  0x00204268 in inner_start_thread (arg=0x14c46ac) at mono-threads-posix.c:49
#7  0xb6ed4bfc in start_thread () from /lib/arm-linux-gnueabihf/libpthread.so.0
#8  0xb6e41968 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
#9  0xb6e41968 in ?? () from /lib/arm-linux-gnueabihf/libc.so.6
Backtrace stopped: previous frame identical to this frame (corrupt stack?)

Thread 12 (Thread 0xb5332430 (LWP 2285)):
#0  0xb6ed9848 in pthread_cond_timedwait@@GLIBC_2.4 () from /lib/arm-linux-gnueabihf/libpthread.so.0
#1  0x001df938 in _wapi_handle_timedwait_signal_handle (handle=0x400, timeout=0xb5331638, alertable=1, poll=<optimized out>) at handles.c:1586
#2  0x001f33a4 in WaitForMultipleObjectsEx (numobjects=3040024132, handles=0x2, waitall=3076096, timeout=3040024240, alertable=1) at wait.c:670
#3  0x001602e4 in mono_wait_uninterrupted (thread=0xb5bf4170, multiple=-1237235656, numhandles=2, handles=0xb53316b0, waitall=0, ms=1000, alertable=1) at threads.c:1453
#4  0x00161fa8 in ves_icall_System_Threading_WaitHandle_WaitAny_internal (mono_handles=0xb6414868, ms=1000, exitContext=<optimized out>) at threads.c:1551
#5  0xb53388b4 in ?? ()
Cannot access memory at address 0xfa

=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.
=================================================================

On raspberry pi B+


Did you restart Raspberry Pi? Sometimes NRF2lL01 lib doesn't close properly and you have problems at next run. Solution is to restart Raspberry Pi.
The topic has been locked.
9 years 10 months ago #82 by PupazzoGnappo
Replied by PupazzoGnappo on topic Beta V0_6b1
No way.
Tried to reboot, shutdown and boot, unplug, format sd card and the burn the image again.
Nothing to do. When adding a node( MySensor), it crashes

Contact me at : This email address is being protected from spambots. You need JavaScript enabled to view it.
Plain is smart. Smart is plain
The topic has been locked.
Time to create page: 0.263 seconds

Forum latest

  • No posts to display.