nodo-domotica.nl

Rondzingen events (op I2C)

We zitten zoals bekend in de ontwikkelfase. Van diverse gebruikers heb ik al goede suggesties gekregen. Hier discussiëren we over de functionaliteiten van de nieuwe release.

Rondzingen events (op I2C)

Berichtdoor pepijn » 09 jun 2013, 12:00

Goedendag,

Mij testopstelling met software v3.5:

Unit=1, master, MEGA2560 met EthernetShield, RF RX/TX, RTC
Code: Selecteer alles
!******************************************************************************!
Nodo Domotica controller (c) Copyright 2013 P.K.Tonkes.
Licensed under GNU General Public License.
Nodo Beta V3.4.9 Mega, Product=SWACNC-MEGA-R530, Home=1, ThisUnit=1, ID=xxxxxxxx
Date=09-06-2013 (Sun), Time=12:48 DaylightSaving
NodoIP=192.168.94.155, PortInput=6636
Host=www.nodo-domotica.nl, HostIP=141.138.136.245, PortOutput=80
!******************************************************************************!
ClockSetDate 09-06-2013
ClockSetTime 12:48
RawSignalReceive Off
RawSignalSave Off
UnitSet 1,I2C
UnitSet 2,I2C
ID xxxxxxxx
Debug Off
TimerSet 1,0
TimerSet 2,0
TimerSet 3,0
TimerSet 4,0
TimerSet 5,0
TimerSet 6,0
TimerSet 7,0
TimerSet 8,0
TimerSet 9,0
TimerSet 10,0
TimerSet 11,0
TimerSet 12,0
TimerSet 13,0
TimerSet 14,0
TimerSet 15,0
VariableSet 1,0.00
VariableSet 2,0.00
VariableSet 3,0.00
VariableSet 4,0.00
VariableSet 5,0.00
VariableSet 6,0.00
VariableSet 7,0.00
VariableSet 8,0.00
VariableSet 9,0.00
VariableSet 10,0.00
VariableSet 11,0.00
VariableSet 12,0.00
VariableSet 13,0.00
VariableSet 14,0.00
VariableSet 15,0.00
WaitFreeRF Off
WiredAnalog 1,1021
WiredAnalog 2,1021
WiredAnalog 3,1021
WiredAnalog 4,1021
WiredAnalog 5,1022
WiredAnalog 6,1022
WiredAnalog 7,1022
WiredAnalog 8,1022
WiredOut 1,Off
WiredOut 2,Off
WiredOut 3,Off
WiredOut 4,Off
WiredOut 5,Off
WiredOut 6,Off
WiredOut 7,Off
WiredOut 8,Off
WiredPullup 1,On
WiredPullup 2,On
WiredPullup 3,On
WiredPullup 4,On
WiredPullup 5,On
WiredPullup 6,On
WiredPullup 7,On
WiredPullup 8,On
WiredSmittTrigger 1,10
WiredSmittTrigger 2,10
WiredSmittTrigger 3,10
WiredSmittTrigger 4,10
WiredSmittTrigger 5,10
WiredSmittTrigger 6,10
WiredSmittTrigger 7,10
WiredSmittTrigger 8,10
WiredThreshold 1,512
WiredThreshold 2,512
WiredThreshold 3,512
WiredThreshold 4,512
WiredThreshold 5,512
WiredThreshold 6,512
WiredThreshold 7,512
WiredThreshold 8,512
Temp
ClientIP 0.0.0.0
Lock Off
Log Off
Output IR,Off
Output RF,On
Output HTTP,On
HTTPHost www.nodo-domotica.nl/webapp/nodo.php
NodoIP 192.168.94.155(DHCP)
PortInput 6636
PortOutput 80
AlarmSet 1,Off,00:00,*
AlarmSet 2,Off,00:00,*
AlarmSet 3,Off,00:00,*
AlarmSet 4,Off,00:00,*
AlarmSet 5,Off,00:00,*
AlarmSet 6,Off,00:00,*
AlarmSet 7,Off,00:00,*
AlarmSet 8,Off,00:00,*
ClockDaylight 2,0
WiredIn 1,On
WiredIn 2,On
WiredIn 3,On
WiredIn 4,On
WiredIn 5,On
WiredIn 6,On
WiredIn 7,On
WiredIn 8,On
Build 530
EventlistCount 9,242
HWConfig 54255
FreeMem 3340
!******************************************************************************!


Unit-2, slave, kale MEGA2560
Code: Selecteer alles
!******************************************************************************!
Nodo Domotica controller (c) Copyright 2013 P.K.Tonkes.
Licensed under GNU General Public License.
Nodo Beta V3.4.9 Mega, Product=SWACNC-MEGA-R530, Home=1, ThisUnit=2
Date=09-06-2013 (Sun), Time=12:45 DaylightSaving
!******************************************************************************!
ClockSetDate 09-06-2013
ClockSetTime 12:45
RawSignalReceive On
RawSignalSave Off
UnitSet 1,I2C
UnitSet 2,System
ID
Debug Off
TimerSet 1,0
TimerSet 2,0
TimerSet 3,0
TimerSet 4,0
TimerSet 5,0
TimerSet 6,0
TimerSet 7,0
TimerSet 8,0
TimerSet 9,0
TimerSet 10,0
TimerSet 11,0
TimerSet 12,0
TimerSet 13,0
TimerSet 14,0
TimerSet 15,0
VariableSet 1,0.00
VariableSet 2,0.00
VariableSet 3,0.00
VariableSet 4,0.00
VariableSet 5,0.00
VariableSet 6,0.00
VariableSet 7,0.00
VariableSet 8,0.00
VariableSet 9,0.00
VariableSet 10,0.00
VariableSet 11,0.00
VariableSet 12,0.00
VariableSet 13,0.00
VariableSet 14,0.00
VariableSet 15,0.00
WaitFreeRF Off
WiredAnalog 1,1021
WiredAnalog 2,1021
WiredAnalog 3,1022
WiredAnalog 4,1022
WiredAnalog 5,1022
WiredAnalog 6,1022
WiredAnalog 7,1022
WiredAnalog 8,1022
WiredOut 1,Off
WiredOut 2,Off
WiredOut 3,Off
WiredOut 4,Off
WiredOut 5,Off
WiredOut 6,Off
WiredOut 7,Off
WiredOut 8,Off
WiredPullup 1,On
WiredPullup 2,On
WiredPullup 3,On
WiredPullup 4,On
WiredPullup 5,On
WiredPullup 6,On
WiredPullup 7,On
WiredPullup 8,On
WiredSmittTrigger 1,10
WiredSmittTrigger 2,10
WiredSmittTrigger 3,10
WiredSmittTrigger 4,10
WiredSmittTrigger 5,10
WiredSmittTrigger 6,10
WiredSmittTrigger 7,10
WiredSmittTrigger 8,10
WiredThreshold 1,512
WiredThreshold 2,512
WiredThreshold 3,512
WiredThreshold 4,512
WiredThreshold 5,512
WiredThreshold 6,512
WiredThreshold 7,512
WiredThreshold 8,512
Temp
ClientIP 0.0.0.0
Lock Off
Log Off
Output IR,Off
Output RF,Off
Output HTTP,Off
HTTPHost
NodoIP 0.0.0.0(DHCP)
PortInput 6636
PortOutput 80
AlarmSet 1,Off,00:00,*
AlarmSet 2,Off,00:00,*
AlarmSet 3,Off,00:00,*
AlarmSet 4,Off,00:00,*
AlarmSet 5,Off,00:00,*
AlarmSet 6,Off,00:00,*
AlarmSet 7,Off,00:00,*
AlarmSet 8,Off,00:00,*
ClockDaylight 2,0
WiredIn 1,On
WiredIn 2,On
WiredIn 3,On
WiredIn 4,On
WiredIn 5,On
WiredIn 6,On
WiredIn 7,On
WiredIn 8,On
Build 530
EventlistCount 2,249
HWConfig 4911
FreeMem 3340
!******************************************************************************!


Beide zijn alleen via I2C aan elkaar verbonden met de volgende EventLists:

EventList Unit=1
Code: Selecteer alles
!******************************************************************************!
1: WildCard RF,All,1; SendEvent HTTP
2: WildCard IR,All,1; SendEvent HTTP
3: WildCard Variables,All,1; SendEvent HTTP
4: WildCard Wired,All,1; SendEvent HTTP
5: WildCard All,UserEvent,1; SendEvent HTTP
6: UserEvent 6,1; SendNewKAKU 22,On
7: UserEvent 6,2; SendNewKAKU 22,Off
!******************************************************************************!


EventList Unit=2
Code: Selecteer alles
!******************************************************************************!
1: WiredIn 1,Off; SendUserEvent 6,1
2: WiredIn 1,On; SendUserEvent 6,2
!******************************************************************************!


Als ik nu WiredIn 1 op Unit=2 bedien gebeurt er eindeloos het volgende:

Op Unit=1
Code: Selecteer alles
Input=I2C; Unit=2; Event=UserEvent 6,1
Input=EventList(1.6); Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=2; Event=UserEvent 6,2
Input=EventList(1.7); Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=RF; Unit=0; Event=SendNewKAKU 22,On
Output=HTTP(141.138.136.245); Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On


Op Unit=2
Code: Selecteer alles
Input=Wired; Unit=2; Event=WiredIn 1,Off
Input=EventList(1.1); Unit=2; Event=SendUserEvent 6,1
Output=I2C; Unit=0; Event=UserEvent 6,1
Input=Wired; Unit=2; Event=WiredIn 1,On
Input=EventList(1.2); Unit=2; Event=SendUserEvent 6,2
Output=I2C; Unit=0; Event=UserEvent 6,2
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,On
Output=I2C; Unit=0; Event=SendNewKAKU 22,On


Dit lijkt op rondzingen. Heeft iemand een idee ?

Alvast bedankt.

pepijn
pepijn
 
Berichten: 56
Geregistreerd: 10 okt 2012, 19:25
Woonplaats: Zaanstad

Re: Rondzingen events (op I2C)

Berichtdoor Markie » 09 jun 2013, 16:36

built 3.5 moet je niet gebruiken er zit een bug in staat ook op dit forum vermeld

Mark
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo Ethernetshield
Software Nodo Mega SWACNC-MEGA-R739
4 x Slave Small SWACNC-SMALL-R739
Lichtslave,Weerstationslave,Meterkastslave,ketelslave.
Gebruikers-avatar
Markie
 
Berichten: 419
Geregistreerd: 11 jan 2012, 11:41

Re: Rondzingen events (op I2C)

Berichtdoor pepijn » 10 jun 2013, 08:55

Bedankt voor je reactie. Had al zoiets gelezen over v3.5 op het forum.

Maar ik ben nu voor de zekerheid terug op v3.4.9 build 528 en het probleem is exact hetzelfde. Heb het zelfs nog simpeler gemaakt:

Unit=1 heeft een lege eventlist.
Unit=2 heeft een lege eventlist.

Als ik nu op unit=1 serieel bijv. "SendNewKAKU 22,Off" intyp gaan de events meteen rondzingen.

Unit=1
Code: Selecteer alles
Input=Serial; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
>Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=RF; Unit=0; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off


Unit=2
Code: Selecteer alles
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off
Input=I2C; Unit=1; Event=SendNewKAKU 22,Off
Output=I2C; Unit=0; Event=SendNewKAKU 22,Off


Logisch is dat Unit=2 een event (Input=I2C; Unit=1; Event=SendNewKAKU 22,Off) ontvangt vanaf Unit=1 (Output=I2C; Unit=0; Event=SendNewKAKU 22,Off) en Unit=2 deze vervolgens weer uitzend naar Unit=0 (Output=I2C; Unit=0; Event=SendNewKAKU 22,Off).
Gekke vind ik nu alleen dat Unit=1 zegt dat deze afkomstig is vanaf Unit=1 (Input=I2C; Unit=1; Event=SendNewKAKU 22,Off) ???

Groet Pepijn
pepijn
 
Berichten: 56
Geregistreerd: 10 okt 2012, 19:25
Woonplaats: Zaanstad

Re: Rondzingen events (op I2C)

Berichtdoor Markie » 10 jun 2013, 19:11

is de zelfde bug
wat helpt is newkaku niet mee compileren op de slaves.


Mark
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo Ethernetshield
Software Nodo Mega SWACNC-MEGA-R739
4 x Slave Small SWACNC-SMALL-R739
Lichtslave,Weerstationslave,Meterkastslave,ketelslave.
Gebruikers-avatar
Markie
 
Berichten: 419
Geregistreerd: 11 jan 2012, 11:41

Re: Rondzingen events (op I2C)

Berichtdoor pepijn » 10 jun 2013, 20:21

Markie schreef:is de zelfde bug

Mark


Zal ik hier officieel melding van maken ?

Pepijn
pepijn
 
Berichten: 56
Geregistreerd: 10 okt 2012, 19:25
Woonplaats: Zaanstad

Re: Rondzingen events (op I2C)

Berichtdoor Markie » 10 jun 2013, 21:43

is allemaal al gedaan er wordt al hard aan gewerkt om dit aan te pakken

Mark
Arduino Ethernet W5100-netwerk shield
Arduino Mega 2560 ATmega2560-16AU
Nodo Ethernetshield
Software Nodo Mega SWACNC-MEGA-R739
4 x Slave Small SWACNC-SMALL-R739
Lichtslave,Weerstationslave,Meterkastslave,ketelslave.
Gebruikers-avatar
Markie
 
Berichten: 419
Geregistreerd: 11 jan 2012, 11:41


Keer terug naar De nieuwe release

Wie is er online?

Gebruikers in dit forum: Geen geregistreerde gebruikers. en 2 gasten

cron