Giter Site home page Giter Site logo

Comments (6)

imbeacon avatar imbeacon commented on June 3, 2024

Hi @KarimSayedAmir,

Thank you for your interest in ThingsBoard IoT gateway.
Please try to make a backup of your configuration, remove the old gateway and install a version 3.4.3.1 it contains minor fixes for logging system and may help with this issue. Let us know about results.

from thingsboard-gateway.

KarimSayedAmir avatar KarimSayedAmir commented on June 3, 2024

Hi @imbeacon,

thanks a lot for the quick reply. I will check this today and give you feedback.
Have a nice day.

from thingsboard-gateway.

KarimSayedAmir avatar KarimSayedAmir commented on June 3, 2024

Hi @imbeacon,

actually I am getting this now:
owipex_adm@owipex:/boot/firmware$ systemctl status thingsboard-gateway
● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-11-27 21:54:54 CET; 2min 1s ago
Main PID: 1764 (python3)
Tasks: 29 (limit: 4416)
Memory: 43.5M
CPU: 45.666s
CGroup: /system.slice/thingsboard-gateway.service
└─1764 /usr/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"

Nov 27 21:55:34 owipex python3[1764]: File "/usr/lib/python3/dist-packages/serial/serialposix.py", line 575, in read
Nov 27 21:55:34 owipex python3[1764]: buf = os.read(self.fd, size - len(read))
Nov 27 21:55:34 owipex python3[1764]: TypeError: 'NoneType' object cannot be interpreted as an integer
Nov 27 21:55:34 owipex python3[1764]: 21:55:34 DEBUG modbus_connector:323 Device connector type: serial
Nov 27 21:55:34 owipex python3[1764]: 21:55:34 DEBUG modbus_connector:419 Modbus trying connect to Modbus Temperature Sensor
Nov 27 21:56:39 owipex python3[1764]: 21:56:39 INFO modbus_connector:312 RS485_serial has been stopped.
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:536 With result Modbus Error: [Input/Output] Modbus Error: [Invalid Message] No response received, expected at least 4 bytes (0 received)
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:359 Checking timeseries for device Modbus Temperature Sensor
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 DEBUG modbus_connector:360 Device response:
Nov 27 21:56:44 owipex python3[1764]: 21:56:44 ERROR modbus_connector:340 Socket is closed
owipex_adm@owipex:/boot/firmware$

1.)Can this be connected to the Ubuntu 22.04 right management?

2.)Strange thing is that if I am using my own Modbus Lib, i can read the sensor easily.

Have great evening
BR
Sayed

from thingsboard-gateway.

KarimSayedAmir avatar KarimSayedAmir commented on June 3, 2024

Hi could solve the first issue:

The installation was done over the deb package.
I created the missing folder:
sudo mkdir -p /var/lib/thingsboard_gateway/logs`

Then i had to add permissions:

sudo chown -R thingsboard_gateway:thingsboard_gateway /var/lib/thingsboard_gateway/logs sudo chmod -R 755 /var/lib/thingsboard_gateway/logs

Now the log looks like this: owipex_adm@owipex:/boot/firmware$ systemctl status thingsboard-gateway
● thingsboard-gateway.service - ThingsBoard Gateway
Loaded: loaded (/etc/systemd/system/thingsboard-gateway.service; enabled; vendor preset: enabled)
Active: active (running) since Mon 2023-11-27 22:16:29 CET; 4min 37s ago
Main PID: 1906 (python3)
Tasks: 17 (limit: 4416)
Memory: 42.8M
CPU: 57.537s
CGroup: /system.slice/thingsboard-gateway.service
└─1906 /usr/bin/python3 -c "from thingsboard_gateway.tb_gateway import daemon; daemon()"

Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_general_configuration_update - 327 - --- Checking other configuration >
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_general_configuration_update - 330 - --- Saving new general configurat>
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |ERROR| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_connector_configuration_update - 519 - 'bool' object is not subscript>
Nov 27 22:16:35 owipex python3[1906]: Traceback (most recent call last):
Nov 27 22:16:35 owipex python3[1906]: File "/usr/lib/python3/dist-packages/thingsboard_gateway/tb_utility/tb_gateway_remote_configurator.py", line 449, in _handle_connector_configuration_update
Nov 27 22:16:35 owipex python3[1906]: config_file_name = config['configuration']
Nov 27 22:16:35 owipex python3[1906]: TypeError: 'bool' object is not subscriptable
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [modbus_connector.py] - modbus_connector - close - 312 - RS485_serial has been stopped.
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_grpc_configuration_update - 380 - Processed GRPC configuration update >
Nov 27 22:16:35 owipex python3[1906]: 2023-11-27 22:16:35 - |INFO| - [tb_gateway_remote_configurator.py] - tb_gateway_remote_configurator - _handle_storage_configuration_update - 355 - Processed storage configuration u>

But the sensor is still not reading.
BR
Sayed

from thingsboard-gateway.

KarimSayedAmir avatar KarimSayedAmir commented on June 3, 2024

Issue is now solved.
Thanks a lot.

from thingsboard-gateway.

Tasosgi avatar Tasosgi commented on June 3, 2024

How? I have similar problem

from thingsboard-gateway.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.