Aspire :: Bundles :: Velleman DVM 1200 Producer



This section describes the bundle for USB Multimeter Velleman DVM 1200 sensor

1 Context

The USB Multimeter Velleman DVM 1200 is a USB-to-serial multimeter. It can measure current (AC/DC), voltage (AC/DC), frequency, resistance, temperature, capacitance … The DVM1200 costs approx. 60 euros VAT.

The DVM1200MultimeterProducer bundle registers one Producer service producing Measurement, Double or String objects (unit is V, TBD). This producer can be used for Green Computing managers such as the VOVOJavaEE.

2 Dependencies

This bundle requires :

  • OSGi R4 Compendium, available from OBR in Felix Shell
  • RXTX, available from Aspire SVN Repository/bundles/common/rxtx

3 Build

3.1 Sources

4 Installation

You must install previously the driver for the (optical) Serial-to-USB adapter (Sunplus SPCP 825).

5 Test

You can test with the RXTX command available from Aspire SVN Repository/bundles/common/rxtx.cmd

-> rxtx list
Stable Library
=========================================
Native lib Version = RXTX-2.1-7
Java lib Version   = RXTX-2.1-7
…
-> rxtx  iowrapper org.ow2.aspirerfid.vellemandvm1200.wrapper.DVM1200MultimeterWrapper
-> rxtx open COM15 2400 None None 8 1 None

rxtx (226 bytes received): 0.22 A (error=+/-0.0) AC rxtx (14 bytes received): 0.221 A (error=+/-0.0) AC rxtx (14 bytes received): 0.221 A (error=+/-0.0) AC rxtx (14 bytes received): 0.22 A (error=+/-0.0) AC rxtx (14 bytes received): 0.219 A (error=+/-0.0) AC rxtx (14 bytes received): 0.219 A (error=+/-0.0) AC … rxtx close

6 Configuration

In src/main/resources/IPOJO-INF/metadata.xml
  • portName

7 Data

The producer produces org.osgi.util.measurement.Measurement with the following units Unit.K, Unit.V, Unit.A, Unit.F, Unit.Hz, Unit.Ohm, Unit.Unity

8 Troubleshooting

Sometime, the OSGi platform must be shutdown when the bundle is updated.

9 Links

10 Gallery

dvm1200.jpg