[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 488: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/bbcode.php on line 112: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4762: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4764: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4765: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4766: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3897)
Toon onderwerp - Userplugin • nodo-domotica.nl

nodo-domotica.nl

Userplugin

Hier alles over de Software in de Nodo

Userplugin

Berichtdoor mvdbro » 04 sep 2012, 08:19

Mijn userplugin is inmiddels niet alleen inzetbaar voor weerstations, dus leek het me beter om een aparte thread te maken. Maakt het weer iets overzichtelijker en anders moet ik meerdere threads voortdurend bijwerken.

Ik heb de handleiding aangepast. Er werd verwezen naar de Nodo Mini, maar bij recente testen bleek dat dit niet gaat werken. Ik heb de vermelding van de Mini dus ook uit de handleiding gehaald. Voorlopig zie ik weinig mogelijkheden om de Mini te supporten:

- De huidige Mini heeft onvoldoende vrij flashgeheugen voor deze userplugin.
- Bij de Mini is de RAWsignal buffer teruggebracht naar 160 pulsen, waardoor veel sensoren niet meer worden ontvangen.
- Ik heb de laatste maanden redelijk veel tijd gestoken in de 121 (classic) versie en die code ken ik veel beter (om er b.v. zaken uit te halen om coderuimte te winnen) Ik gebruik de custom 121 op alle Nodo Slaves in huis en ze zijn voldoende compatible met de Mega/Webapp.
- Mijn pogingen om de R422 versie te 'strippen' leiden tot instabiele situaties



release notes:
V0.5.0
======
Eerste versie met 3 pulstellers voor de 1.2.1 custom versie
Eerste support voor RFID voor de 1.2.1 custom versie

V0.5.1
======
Bug, rfidloop functie was niet conditioneel op RFID define
RFID herkent nu maximaal 10 tags en de TAG ID's worden opgeslagen in EEProm geheugen
Er gaat een userevent naar de Mega/Webapp bij een geldige tag.

V0.5.2
======
userplugin 255 commando geeft via Serial weer welke UserPlugin en 121 Custom functies mee zijn gecompileerd.

v0.5.3
=====
Op enkele plekken stond #ifdef NODO_MEGA, moest zijn #if NODO_MEGA

Downloads:
[EDIT: downloads verwijderd, zijn niet meer up-to-date]
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Userplugin

Berichtdoor IntenSiVuS » 04 sep 2012, 09:41

Martinus,

Ik zal vanavond deze nieuwe versie in de nodo zetten. Ik heb momenteel de 4.1 versie erin zitten en ik merk dat, zodra ik verbind via telnet met de Nodo, dat deze stopt met het verzenden van de HTTP berichten naar de webapp. Hij lijkt dit dan naar de telnet sessie/host van deze telnet sessie te willen doen. Pas na een reboot werkt het weer goed.

Verder heb ik als test wat aan de code toegevoegd om de BMP085 sensor uit te lezen (welke Remco aan mijn nodo heeft gemonteerd) en naar de webapp te sturen. De sensor heeft een temp en een Luchtdruk waarde beschikbaar. De temp krijg ik in de webapp, de luchtdruk ook, maar foutief. De reden hiervoor is denk ik dat de waarde te groot is.De sensor geeft het aantal pascal terug. in mijn geval een waarde als 102254. Dit past alleen in een long en ik vermoed dat dit te groot is om over te sturen als waarde naar de webapp Deze ontvangen nu een negatieve waarde ala -84,5. Weet jij of hier een oplossing voor is/ of ik een oplossing over het hoofd zie?

Thnx trouwens, voor wederom een mooie update/aanvulling :)

Grtz

Robin
IntenSiVuS
 
Berichten: 4
Geregistreerd: 07 aug 2012, 19:01

Re: Userplugin

Berichtdoor rhannink » 04 sep 2012, 09:50

Arduino Mega - NES
Nodo small SWACNC-SMALL-R596 mini met meterkast sensor
Nodo Mega - zelfbouw Nodo shield met RFid lezer - SWACNC-MEGA-R596
Nodo mini - met slimme meter plug-in
2xVentus W044 temp/hum sensor
rhannink
 
Berichten: 81
Geregistreerd: 23 apr 2012, 06:29

Re: Userplugin

Berichtdoor mvdbro » 04 sep 2012, 13:25

@intesivus:
Voor verzenden moet je zorgen dat de waarde niet groter is dan 10.000.
1 = 0.01 in de webapp.
10.000 = 100.0 in de webapp.
Als je door 1000 deelt, heb je denk ik de waarde in 'kilopascal'

@rhannink,
Net nog even getest, bij mij compileert de code zonder foutmeldingen
(Arduino 0022, compile voor Nodo Duemilanova, Nodo Arduino 1.6 bordje)
Heb je de gehele set uit de zipfile gebruikt? (Nodo_Due_121_C1_with_userplugin_V0.5.3.zip)
Heb je aanpassingen gemaakt in de #defines?
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Userplugin

Berichtdoor mvdbro » 04 sep 2012, 16:23

mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Userplugin

Berichtdoor rhannink » 05 sep 2012, 08:09

Arduino Mega - NES
Nodo small SWACNC-SMALL-R596 mini met meterkast sensor
Nodo Mega - zelfbouw Nodo shield met RFid lezer - SWACNC-MEGA-R596
Nodo mini - met slimme meter plug-in
2xVentus W044 temp/hum sensor
rhannink
 
Berichten: 81
Geregistreerd: 23 apr 2012, 06:29

Re: Userplugin

Berichtdoor rhannink » 05 sep 2012, 10:33

Arduino Mega - NES
Nodo small SWACNC-SMALL-R596 mini met meterkast sensor
Nodo Mega - zelfbouw Nodo shield met RFid lezer - SWACNC-MEGA-R596
Nodo mini - met slimme meter plug-in
2xVentus W044 temp/hum sensor
rhannink
 
Berichten: 81
Geregistreerd: 23 apr 2012, 06:29

Re: Userplugin

Berichtdoor mvdbro » 05 sep 2012, 13:48

Dat is vreemd. Het zou volgens mij zelfs moeten werken als je alle defines uitzet (dan kan je nog steeds verzenden, maar niet ontvangen). Ik heb het bij mij ook nog even getest:

Op een Nodo Arduino 1.6 met custom 1.2.1, unit 7:
senduserevent 20,2
geeft als output:
Direction=Output, Source=RF, Unit=7, Event=(UserEvent 20,2)
Direction=Output, Source=IR, Unit=7, Event=(UserEvent 20,2)

In de webapp komt dan voorbij:
7 UserEvent 20,2 2012-09-05 14:40:35

Ik ontvang van deze Nodo ook de events van de Oregon sensor in de webapp:
7 Variable 13,21.6 2012-09-05 14:42:35
(temperatuur nu dus 21.6 graden)

Output van commando userplugin 255:
Custom:KK,RF,AN,
UP:OG2,


Deze heeft dus Kaku, RF ontvangst, Analyzerawsignal en OregonV2 support.

De Mega versie kan gewoon standaard zijn, want de userevent is gewoon een standaard functie van de Nodo en de interne eventcode is bij beide versies gelijk.
Werkt het wel als je de standaard 1.2.1 in de Nodo Small zet?
Wat gebeurt er als je de volgende commando's geeft:"
sendanalog 1,1
sendvar 1,1

(Ik weet niet zeker of de hardware van de Small gelijk is aan de Nodo Arduino, maar dat lijkt me toch wel het geval)
mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Re: Userplugin Sensor id

Berichtdoor domogijs » 07 sep 2012, 13:59

Allereerst dank aan mvdbro!

Lukt mij niet de sensor id te achterhalen van mijn thn132n

Ik heb draaien: Nodo_Mega_R422_with_UserPlugin_V0.5.3

Als ik de thn132n aanzet krijg ik geen sensor is te zien in telnet. Wel ontvang ik de signalen via de mega:

Input=RF, Event=0x6183033
Output=HTTP(141.138.136.245), Event=0x6183033


Ik heb al andere kanalen op de thn132n en reset geprobeerd.

Iemand een idee wat ik fout doe?

Groet Gijs
domogijs
 
Berichten: 134
Geregistreerd: 04 sep 2011, 20:45

Re: Userplugin Sensor id

Berichtdoor mvdbro » 07 sep 2012, 15:26

mvdbro
 
Berichten: 1092
Geregistreerd: 21 okt 2011, 12:06

Volgende

Keer terug naar Nodo Software

Wie is er online?

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

cron