Difference between revisions of "M-Bus Wärmezähler"
Jump to navigation
Jump to search
(→Links) |
|||
Line 6: | Line 6: | ||
* https://www.ebay.de/itm/313884760667 | * https://www.ebay.de/itm/313884760667 | ||
== Software == | == Software == | ||
+ | === libmbus === | ||
* http://www.rscada.se/libmbus/ | * http://www.rscada.se/libmbus/ | ||
+ | ==== install script for ubuntu ==== | ||
+ | e.g. copy to /usr/local/src/libmbus and run | ||
+ | <source lang='bash'> | ||
+ | #!/bin/bash | ||
+ | # WF 2022-10-13 | ||
+ | |||
+ | # libmbus install | ||
+ | |||
+ | # | ||
+ | # install general libraries | ||
+ | apt install libglib2.0-dev autoconf autotools-dev automake | ||
+ | |||
+ | # now install libmbus | ||
+ | # see http://www.rscada.se/libmbus/ | ||
+ | version=0.7.0-1 | ||
+ | platform=amd64 | ||
+ | baseurl=http://www.rscada.se/public-dist | ||
+ | for part in "1" "-dev" | ||
+ | do | ||
+ | deb=libmbus${part}_${version}_${platform}.deb | ||
+ | if [ ! -f $deb ] | ||
+ | then | ||
+ | echo "downloading $deb" | ||
+ | wget $baseurl/$deb | ||
+ | else | ||
+ | echo "$deb already downloaded" | ||
+ | fi | ||
+ | sudo dpkg -i $deb | ||
+ | done | ||
+ | </source> | ||
= Hichi = | = Hichi = |
Revision as of 07:55, 13 October 2022
Links
- https://m-bus.com/
- https://www.modbusdriver.com/modpoll.html
- https://piers.rocks/2020/04/11/mbus-primary-and-secondary-addresses.html
- https://www.mikrocontroller.net/topic/438972
- https://www.ebay.de/itm/313884760667
Software
libmbus
install script for ubuntu
e.g. copy to /usr/local/src/libmbus and run
#!/bin/bash
# WF 2022-10-13
# libmbus install
#
# install general libraries
apt install libglib2.0-dev autoconf autotools-dev automake
# now install libmbus
# see http://www.rscada.se/libmbus/
version=0.7.0-1
platform=amd64
baseurl=http://www.rscada.se/public-dist
for part in "1" "-dev"
do
deb=libmbus${part}_${version}_${platform}.deb
if [ ! -f $deb ]
then
echo "downloading $deb"
wget $baseurl/$deb
else
echo "$deb already downloaded"
fi
sudo dpkg -i $deb
done
Hichi
lsusb
Bus 001 Device 006: ID 10c4:ea60 Silicon Labs CP210x UART Bridge
/usr/bin/udevadm info --query=all --name=/dev/ttyUSB0
P: /devices/pci0000:00/0000:00:15.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0
N: ttyUSB0
L: 0
S: serial/by-path/pci-0000:00:15.0-usb-0:2:1.0-port0
S: serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0026-if00-port0
E: DEVPATH=/devices/pci0000:00/0000:00:15.0/usb1/1-2/1-2:1.0/ttyUSB0/tty/ttyUSB0
E: DEVNAME=/dev/ttyUSB0
E: MAJOR=188
E: MINOR=0
E: SUBSYSTEM=tty
E: USEC_INITIALIZED=9041897
E: ID_BUS=usb
E: ID_VENDOR_ID=10c4
E: ID_MODEL_ID=ea60
E: ID_PCI_CLASS_FROM_DATABASE=Serial bus controller
E: ID_PCI_SUBCLASS_FROM_DATABASE=USB controller
E: ID_PCI_INTERFACE_FROM_DATABASE=XHCI
E: ID_VENDOR_FROM_DATABASE=Silicon Labs
E: ID_MODEL_FROM_DATABASE=CP210x UART Bridge
E: ID_VENDOR=Silicon_Labs
E: ID_VENDOR_ENC=Silicon\x20Labs
E: ID_MODEL=CP2102_USB_to_UART_Bridge_Controller
E: ID_MODEL_ENC=CP2102\x20USB\x20to\x20UART\x20Bridge\x20Controller
E: ID_REVISION=0100
E: ID_SERIAL=Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0026
E: ID_SERIAL_SHORT=0026
E: ID_TYPE=generic
E: ID_USB_INTERFACES=:ff0000:
E: ID_USB_INTERFACE_NUM=00
E: ID_USB_DRIVER=cp210x
E: ID_PATH=pci-0000:00:15.0-usb-0:2:1.0
E: ID_PATH_TAG=pci-0000_00_15_0-usb-0_2_1_0
E: ID_MM_CANDIDATE=1
E: DEVLINKS=/dev/serial/by-path/pci-0000:00:15.0-usb-0:2:1.0-port0 /dev/serial/by-id/usb-Silicon_Labs_CP2102_USB_to_UART_Bridge_Controller_0026-if00-port0
E: TAGS=:systemd:
E: CURRENT_TAGS=:systemd:
set baud rate
stty -F /dev/ttyUSB0 2400
Video
CF Utramaxx-mk
Standard Werkseinstellung: Primäradresse: 0 Sekundäradresse: Zählernummer Baudrate: 2400 Baud
https://www.itron.com/de/solutions/product-catalog/cf-ultramaxx-mk