[Message Prev][Message
Next][Thread Prev][Thread Next][Message
Index][Thread Index]
Re: Analog values and the BSC schema
- Subject: Re: Analog values and the BSC schema
- From: "zocalodiscreto" <estratos@xxxxxxx>
- Date: Thu, 02 Jun 2005 12:42:29 -0000
--- In xAP_developer@xxxxxxx, Kevin Hawkins <lists@u...>=20
wrote:
> zocalodiscreto wrote:
>=20
> >Hello all.
> >
> >I'm developing an Ethernet controller that should be compliant=20
with=20
> >the BSC xAP schema.
> >
> Sounds interesting, what hardware are you using there Daniel ?=20
>=20
> > According with the xAP standard, which is the=20
> >best way of sending analog values?
> >=20=20
> >
> Well if your device is 'simple' then BSC would probably be the=20
> easiest, and most suitable. However if there are more complex=20
features=20
> offered by your device you could create your own schema of=20
course , or both.
>=20
> >I'm thinking in physical values as temperature or humidity and,=20
if I=20
> >consider other applications, I could put the analog value in=20
> >a "text" imput.
> >
> >example from the BSC specification:
> >
> >State=3DON
> >Text=3D23.5=B0
> >
> >Is correct my consideration or there is a better way of sending=20
> >analog values, even using a diferent schema?
> >=20=20
> >
> There is a 'LEVEL' based device type within the BSC schema but it=20
is=20
> best suited for values that go from 0 to some defined maximum=20
value ,=20
> perhaps it would be very suitable for humidity for example which=20
is=20
> 0-100%. . You don't report the value as a % in the message, you=20
report=20
> it as a fraction eg 100/1000 representing 10% and the=20
granularity in=20
> this example is 1000 units ie .1% - a higher resolution device=20
might=20
> be 1000/10000 or something.
>=20
> Temperatures are more awkward as there is often no top 'limit' and=20
also=20
> the value can go negative. Hence usually the use of the 'TEXT'=20
data type=20
> to report these, this also allows the device to be switched=20
between say=20
> =B0C and =B0F nicely . If your device ony reported a fixed range
and=20
didn't=20
> go negative you could again use teh 'level' device. The TOM10=20
xAP=20
> connector I wrote for example reports the 10 temperature sensors=20
using=20
> BSC Text categories.
>=20
> >Thanks in advance,
> >
> >Daniel.
> >
> >=20=20
> >
> Cheers Kevin
Thanks Kevin for your response.
Following your indications I'm going to publish temperatures and=20
other analog values (humidity, voltage, power, etc) within=20
the "TEXT" data. Next to the value, the units will appear.
But, what about the "STATE" data? At the moment STATE will remain
on=20
ON for every analog value although maybe I could use this data in=20
order to declare some kind of alarm.
Regards.
Daniel.
=20
xAP_Development Main Index |
xAP_Development Thread Index |
xAP_Development Home |
Archives Home
|