If you like BoxMatrix then please contribute Supportdata, Supportdata2, Firmware and/or Hardware (get in touch).
My metamonk@yahoo.com is not reachable by me since years. Please use hippie2000@webnmail.de instead.

0
U

Property:libserial.so

From BoxMatrix
(Redirected from libserial.so)


BoxMatrix >> Shell-Commands >> libserial.so @ BoxMatrix   -   IRC-Chat   -   Translate: de es fr it nl pl
News Selectors Models Accessories Components Environment Config Commands System Webif Software Develop Lexicon Community Project Media

Startup-Scr Hotplug-Scr BusyBox-Cmds Bash-Cmds AVM-Cmds Chipset-Cmds Linux-Cmds Shared-Libs Kernel-Mods Research

Shared-Library

Goto:   Config  -  Source  -  Dependencies   -   Model-Matrix   -   Symbols   -   SMW-Browser

Details

libserial.so is an aha plugin library for smart electricity metering.

So far it is only present in the FRITZ!Smart Gateway and supports an USB serial cable to the electricity meter.

The "dongle" creates a ttyUSB0 device and looks for example like this:

Please note that none of these cables have been tested with the gatewaay so far!
There's an IPPF-Thread about this topic. Please report your experience (de or en) or get in touch.

Communication is performed optically by an infrared sender diode and an infrared photo transistor in a magnetic casing.
The USB side is connected to an USB-to-UART Serial Converter (CP2102N or FTDI FT232R / FT230X).

This library reads the metering results from ttyUSB0 using SML (Smart Message Language), and provides them to aha.
The statistics acquired are stored in ahastat.cfg.

The counterpart for (LAN / WLAN) Ethernet connected smart electricity meters is libsmldriver.so.

Config

Daily updated index of Configuration files accessed by this library. Last update: 2024-11-14 07:02 GMT.
A - in the Mod column marks manual research, the Firmware then shows where the item occurs, not the Relation.

Relation Typ Object Mod Firmware Info Origin
Config from tffs ahastat.cfg - 5.50 - 8.00 aha electricity metering statistics acquired by libserial.so (XML) AVM
1 config relation for this library

Source

The names of source files compiled into an executable often help to understand function blocks (and show gaps in the docs).
fw 7.57 source files:

$ strings /usr/share/aha/libserial.so | grep -e '\.c$' -e '\.cpp$'

avm_home_serial.c
avm_home_serial_statistics.c
serial_statistics.c  

Dependencies

Daily updated index of all dependencies of this library. Last update: 2024-11-14 07:43 GMT.
A * in the Mod column marks info from Supportdata-Probes, which will always stay incomplete.

Relation Typ Object Mod Firmware Info Origin
Depends on lib libavmcsock.so 1 7.57 - 7.63 Networking, I/O and helper functions AVM
Depends on lib libc.so 1 7.57 - 7.63 Standard C library Linux
2 dependencies for this library

Model-Matrix

Daily updated index of the presence, path and size of this library for each model. Last update: 2024-11-15 05:54 GMT.
Showing all models using this library. Click any column header (click-wait-click) to sort the list by the respective data.
The (main/scrpn/boot/arm/prx/atom/rtl) label in the Model column shows which CPU is meant for Multi-Linux models.
Note that this list is merged from Firmware-Probes of all known AVM firmware for a model, including Recovery.exe and Labor-Files.

Model Firmware Path Size
FRITZ!Smart Gateway 7.57 - 7.63 /usr/share/aha 38.5k - 50.4k, Link
1 model uses this library

Symbols

Daily updated index of all symbols of this library. Last update: 2024-11-14 07:43 GMT.

Firmware Symbol
7.61 - 7.63 aha_serial_save_config
7.61 - 7.63 alloc_function_layer
7.61 - 7.63 avm_home_device_reset_statistic
7.57 - 7.63 avm_home_device_send_statistic
7.57 - 7.63 avm_home_device_serial_exit
7.57 - 7.63 avm_home_device_serial_init
7.57 - 7.63 avm_home_device_serial_poll
7.61 - 7.63 avm_home_serial_create_sml_device
7.61 - 7.63 avm_home_serial_register_sml_device
7.61 - 7.63 avm_home_serial_release_all_sml_device
7.61 - 7.63 avm_home_serial_release_sml_device
7.57 - 7.63 avm_home_stat_add_val
7.61 - 7.63 avm_home_stat_addlayer_last_valid
7.57 - 7.63 avm_home_stat_exit
7.57 - 7.63 avm_home_stat_get_data
7.57 - 7.59 avm_home_stat_get_ebenen
7.61 - 7.63 avm_home_stat_get_last_valid_sample
7.57 - 7.63 avm_home_stat_init
7.57 - 7.63 checkForFlag
7.57 - 7.63 check_crc
7.57 - 7.59 fill_energy_stats
7.61 - 7.63 fill_stat_layer
7.61 - 7.63 fill_stats
7.61 - 7.63 free_function_layer
7.57 - 7.63 get_avm_home_serial_time
7.57 - 7.63 get_avm_home_serial_time_debug
7.61 - 7.63 init_stat_layer
7.57 - 7.63 onTimeout
7.57 - 7.59 print_energy_stats
7.61 - 7.63 print_stats
7.61 - 7.63 reset_stats
7.57 - 7.59 save_config
7.57 - 7.63 serial_handle_com
7.61 - 7.63 serial_load_config
7.61 - 7.63 serial_save_config
7.61 - 7.63 serial_sml_device_poll
7.61 - 7.63 sml_alloc_load_context
7.61 - 7.63 sml_alloc_save_context
7.61 - 7.63 sml_close_save_context
7.61 - 7.63 sml_device_add_function_layer
7.61 - 7.63 sml_device_add_function_stat
7.61 - 7.63 sml_device_alloc
7.61 - 7.63 sml_device_attach_load_save_desc
7.61 - 7.63 sml_device_find_free_id
7.61 - 7.63 sml_device_free
7.61 - 7.63 sml_device_get_by_id
7.61 - 7.63 sml_device_get_layers
7.61 - 7.63 sml_device_load
7.61 - 7.63 sml_device_save
7.61 - 7.63 sml_device_save_flayer
7.61 - 7.63 sml_device_save_slayer
7.61 - 7.63 sml_free_load_context
7.61 - 7.63 sml_free_save_context
7.57 - 7.63 sml_get_current
7.57 - 7.63 sml_get_device_id
7.57 - 7.63 sml_get_effective_power
7.57 - 7.63 sml_get_energy
7.57 - 7.63 sml_get_energy_delivered
7.57 - 7.63 sml_get_manufacturer_id
7.57 - 7.63 sml_get_temperature
7.57 - 7.63 sml_get_voltage
7.57 - 7.63 sml_init
7.61 - 7.63 sml_open_save_context
7.57 - 7.63 sml_set_printf_cb
7.57 - 7.63 statistik_control
7.61 - 7.63 yajl_boolean
7.61 - 7.63 yajl_double
7.61 - 7.63 yajl_end_array
7.61 - 7.63 yajl_end_map
7.61 - 7.63 yajl_integer
7.61 - 7.63 yajl_map_key
7.61 - 7.63 yajl_null
7.61 - 7.63 yajl_number
7.61 - 7.63 yajl_start_array
7.61 - 7.63 yajl_start_map
7.61 - 7.63 yajl_string
7.61 - 7.63 yajl_string_part
77 symbols for this library

SMW-Browser

Information is currently being retrieved from the backend.
 

Synonyms

Showing 1 related property.

l