-
Notifications
You must be signed in to change notification settings - Fork 1
Teltonika TRB143 setup
Mikael Håkansson edited this page Mar 29, 2024
·
8 revisions
- Plug in the TRB143 to your laptop
- Open a browser and navigate to 192.168.2.1
- Log into the portal using credentials specified on the back of the gateway
- Navigate to
System
=>Access Cotrol
- Check Enable SSH access, Remote SSH access and Enable CLI
- Hit Save & apply
- Navigate to
Network
=>WAN
- Select Advanced from the top menu
- Type "wan" in INTERFACE NAME and hit ADD
Enable: On Protocol: DHCP
Use default gateway: On
Interface: br-lan
- Navigate to
Network
=>DNS
- Set DNS forwardings to 8.8.8.8
- Navigate to
Services
=>M-Mbus
- Enable M-Bus settings
- Navigate to
System
=>Packet Manager
- Add (+) Python3
- Install Python from the web ui
- Update opkg
opkg update
- Install opkg packages:
opkg install python3-pip
opkg install python3-gobject
opkg install python3-psutil
opkg install bash
opkg install python3-ubus
- Install pip packages:
pip install asyncio
pip install signalrcore
pip install packaging
pip install azure-iot-device
pip install microservicebus-py
- Create a new file called
/etc/init.d/microservicebus-py
and paste the content below
#!/bin/sh /etc/rc.common
START=10
STOP=15
start() {
echo starting microbervicebus-py
HOME=/storage/ \
microservicebus-py
}
stop() {
echo stopping microservicebus-py
kill -9 $(ps | grep microservicebus-py | awk '{ print $1 }')
}
- Create a symlink using the following command:
ln -s /etc/init.d/microservicebus-py /etc/rc.d/S99microservicebus-py
chmod +x /etc/rc.d/S99microservicebus-py
- Reboot
You can view the log using command:
tail /tmp/log/microservicebus-py.log -n 100 -f
Use the Teltonika MBus Reader to read off any of the connected meters.
The Teltonika Firmware Handler can be triggered using the UpdateFirmware API. The service will download, verify and install the latest update