SOLEA products drivers¶
SOLEA support library¶
Modules inside the pycstbox.solea
package provide classes and helpers to handle
communications with supported products, even outside the CSTBox context.
AD12B¶
ModBus version of the Solea AD12B multi-parameters sensor.
This modules provides a sub-class of minimalmodbus.Instrument which is specialized in talking to the AD12B sensor.
- Depends on Jonas Berg’s minimalmodbus Python library :
- https://pypi.python.org/pypi/MinimalModbus/ Version in date of writing: 0.4
-
class
pycstbox.solea.ad12b.
AD12BInstrument
(port, unit_id, u_range, i_range, ti_loops=1)¶ Solea AD12B multi-parameters module Modbus instrument model.
The supported model is the RTU RS485 one, the RS485 bus being connected via a USB.RS485 interface.
Parameters: - port (str) – serial port on which the RS485 interface is connected
- unit_id (int) – the address of the device
- u_range (float) – real values range for voltage
- i_range (float) – real values range for intensity
- ti_loops (int) – number of wiring loops in TI (acts as current amplification factor)
-
class
OutputValues
(U, I, P, W)¶ -
I
¶ Alias for field number 1
-
P
¶ Alias for field number 2
-
U
¶ Alias for field number 0
-
W
¶ Alias for field number 3
-
-
AD12BInstrument.
RawToReal
¶ alias of
Raw_to_real
-
AD12BInstrument.
poll
()¶ Reads the registers holding the polled parameters and returns the values as a named tuple.
-
AD12BInstrument.
reset_energy_counters
()¶ Resets all the energy counters.
AJ12B¶
ModBus version of the Solea AJ12B multi-parameters sensor.
This modules provides a sub-class of minimalmodbus.Instrument which is specialized in talking to the AJ12B sensor.
- Depends on Jonas Berg’s minimalmodbus Python library :
- https://pypi.python.org/pypi/MinimalModbus/ Version in date of writing: 0.4
-
class
pycstbox.solea.aj12b.
AJ12BInstrument
(port, unit_id, u_range, i_range, ti_loops=1)¶ Solea AJ12B multi-parameters module Modbus instrument model.
The supported model is the RTU RS485 one, the RS485 bus being connected via a USB.RS485 interface.
See : http://www.solea.biz/P505-solea-aj12–transducteur-multiparametres–monophase-ac-.html
Parameters: - port (str) – serial port on which the RS485 interface is connected
- unit_id (int) – the address of the device
- u_range (float) – real values range for voltage
- i_range (float) – real values range for intensity
- ti_loops (int) – number of wiring loops in TI (acts as current amplification factor)
-
class
OutputValues
(U, I, P, Q, cos_phi, F, Wa, Wr)¶ Namedtuple modeling values produced by the device.
-
F
¶ Alias for field number 5
-
I
¶ Alias for field number 1
-
P
¶ Alias for field number 2
-
Q
¶ Alias for field number 3
-
U
¶ Alias for field number 0
-
Wa
¶ Alias for field number 6
-
Wr
¶ Alias for field number 7
-
cos_phi
¶ Alias for field number 4
-
-
AJ12BInstrument.
RawToReal
¶ alias of
Raw_to_real
-
AJ12BInstrument.
poll
()¶ Reads the registers holding the polled parameters and returns the values as a named tuple.
-
AJ12BInstrument.
reset_energy_counters
()¶ Resets all the energy counters.
AJ42¶
ModBus version of the Solea AJ42 multi-parameters sensor.
This modules provides a sub-class of minimalmodbus.Instrument which is specialized in talking to the AJ42 sensor.
- Depends on Jonas Berg’s minimalmodbus Python library :
- https://pypi.python.org/pypi/MinimalModbus/ Version in date of writing: 0.4
-
class
pycstbox.solea.aj42.
AJ42BInstrument
(port, unit_id, u_range, i_range, ti_loops=1)¶ Solea AJ42 tri-phases multi-parameters module Modbus instrument model.
The supported model is the RTU RS485 one, the RS485 bus being connected via a USB.RS485 interface.
Constructor
- Parameters:
- port:
- serial port on which the RS485 interface is connected
- unit_id:
- the address of the device
- u_range:
- real values range for voltage
- i_range:
- real values range for intensity
- ti_loops:
- number of wiring loops in TI (acts as current amplification factor)
-
class
OutputValues
(U_a, I_a, U_b, I_b, U_c, I_c, P, Q, cos_phi, F, Wa, Wr)¶ -
F
¶ Alias for field number 9
-
I_a
¶ Alias for field number 1
-
I_b
¶ Alias for field number 3
-
I_c
¶ Alias for field number 5
-
P
¶ Alias for field number 6
-
Q
¶ Alias for field number 7
-
U_a
¶ Alias for field number 0
-
U_b
¶ Alias for field number 2
-
U_c
¶ Alias for field number 4
-
Wa
¶ Alias for field number 10
-
Wr
¶ Alias for field number 11
-
cos_phi
¶ Alias for field number 8
-
-
AJ42BInstrument.
RawToReal
¶ alias of
Raw_to_real
-
AJ42BInstrument.
poll
()¶ Reads the registers holding the polled parameters and returns the values as a named tuple.
-
AJ42BInstrument.
reset_energy_counters
()¶ Resets all the energy counters.
SOLEA products integration¶
This module provides the integration of the products modeled in pycstbox.solea
in the
CSTBox framework architecture.
HAL interface classes for SOLEA supported products.
-
class
pycstbox.hal.drivers.solea.
AD12B
(coord, cfg)¶ HAL device modeling the Solea AD12B module.
DC multi-parameters module.
The extension adds the support of polling requests and CSTBox events publishing on D-Bus.
-
class
pycstbox.hal.drivers.solea.
AJ12B
(coord, cfg)¶ HAL device modeling the Solea AJ12B module.
Single phase AC multi-parameters module.
The extension adds the support of polling requests and CSTBox events publishing on D-Bus.
-
class
pycstbox.hal.drivers.solea.
AJ42B
(coord, cfg)¶ HAL device modeling the Solea AJ42B module.
Three phases AC multi-parameters module.
The extension adds the support of polling requests and CSTBox events publishing on D-Bus.
-
class
pycstbox.hal.drivers.solea.
SCS
(coord, cfg)¶ HAL device modeling the Solea SCS photo-voltaic module.
The extension adds the support of polling requests and CSTBox events publishing on D-Bus.