sabato 22 settembre 2007

Termometro via rs232


ho un carissimo amico che in un momento di lucida follia ha deciso di aprire un ristorante

tra le varie cose che un ristoratore deve fare per poi poter fare il suo mestiere di mettere la gente a tavola c'è il noiosissimo e ripetitivo controllo della temperatura dei frigoriferi

poteva il mio carissimo amico esimersi dal farmi parctecipe della sua triste sorte?

mi sono guardato in giro per cercare di fare una cosa banale banale, un serverino che raccogliesse le temperature: sareste allibiti, certi prezzi!

poi ,quasi prossimo a gettare la spugna , mi sono imbattuto in questi siti:
la brutta, brutta cosa di internet è che quello che trovi a buon prezzo dopo aver sudato su google mezza giornata costa meno della spedizione!

visto che c'è una sede a Madrid ci potrei fare un salto con una lowfares airline

ER-SOFT S.A.
Avenida de la Constitución, 4
28230 LAS ROZAS (Madrid)
Spain

Tel: +34 916 408 408
Fax: +34 916 408 409
Website: www.er-soft.com
E-mail: ronn at er-soft dot com
Contact person: Ronn Andreasen

oppure direttamente a casa loro

Papouch s.r.o.
Strasnicka 3164/1a
102 00 PRAGUE 10
Czech Republic

ICQ: 433640762
Tel: +420 602 379 954
Fax: +420 267 314 269
Website: www.papouch.com
E-mail: info at papouch dot com
Contact person: Pavel Fürbach, Roman Kloucek

pensando di usare il termometro via seriale lontano dal server (a portata di ethernet) ecco 2 opzioni:
  • usare un bel tibbo ds202 per soli 134eu (con socket) piu 15eu per sonda-rs232
  • usare un prodotto Papouch TME (sonda-ethernet) per 108eu (con protocollo http get per esempio)

(dal manuale tme_en-1.pdf di Papouch)
Inserting the temperature value into a website using a script
The temperature value from the TME can be inserted into a website using a scripting language
(such as PHP or ASP), which processes the value from the thermometer as an HTTP parameter
of the GET request. The thermometer periodically calls the script on an Internet (or intranet)
server with the actually measured temperature value in the GET parameter. On the server, this
value can be stored as a variable and further processed – for example, stored in a log,
displayed on the website, etc.
The TME settings contain the script path and the script calling period. If a measurement error
occurs (the temperature value cannot be read from the temperature sensor on the cable), the
TME will stop calling the temperature-processing script. The temperature will be sent again
when it is successfully measured.
If the GUID parameter is filled-in in the thermometer setting, this ID is sent to the HTTP server
as a further parameter.
Path to the script – Setting using a configuration program
The path can be defined in several formats

(Example: temperature of 25,6°C)
http://192.168.1.254/scr/temperature.php?temp=25,6

Nessun commento: