Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HELP] Connectors not working / enabled #1654

Open
go4energy opened this issue Jan 15, 2025 · 1 comment
Open

[HELP] Connectors not working / enabled #1654

go4energy opened this issue Jan 15, 2025 · 1 comment
Assignees

Comments

@go4energy
Copy link

go4energy commented Jan 15, 2025

Describe the issue
Hello, I have issues setting up the Modbus TCP connector in the Gateway.

First there are some general questions, which I could not answer reading the docs.

I setup an TB edge (docker compose), and on the same device the IoT gateway (also docker compose).
The TB server CE is running on another device.
That basically works.

What is the correct way to setup the IoT gateway to connect to the edge? I did not find a way in the Edge UI to add/setup a gateway.
What I did:
I went to the TB cloud demo and exported the dashboard "ThingsBoard IoT Gateways".
I imported this to the TB server CE, and than assigned this Dashboard to the Edge.
At the Edge, using that Dashboard I added an IoT Gateway. I got the docker-compose.yml from there and successfully started it (after some adjustment in the both docker-compose files for Edge and IoT gateway).

Is that the right way to do it?

Gateway shows as "Active" in the Edge Dashbaord, "Enabled Connectors = 0".

image

On the Edge's IoT Gateways Dashboard, I can't setup the connectors. It gives me this error:

Widget wurde aufgrund der folgenden Fehler nicht geladen:
Unable to load module from url: tb-resource;/api/resource/js_module/system/gateway-management-extension.js

I can edit the connectors on the TB server, where I see "Enabled Connectors = 1":

image

Why is it always out of sync?
Should the configuration be automatically be updated on the IoT gateway once I save the config?
Do I need to restart the docker-compose for the IoT gateway?

Also I noticed that I can't add my timeseries from the IoT gateway to a dashboard. That should be ok for now as there is no connector running?

So for now, I don't even know if I ask the correct questions.
Still need some clarification about the whole interaction of server, cloud and IoT gateway.

Thanks for your support!

Connector name (If you need help with some connector/converter):
MODBUS TCP (master)

Versions (please complete the following information):

  • OS: Ubuntu 24.04 for TB Server CE
    DietPi v8.22.3 for TB Edge CE
  • Thingsboard IoT Gateway version e.g. 3.6.3 (running on Edge)
  • Python version[e.g. 3.9]
image
@go4energy
Copy link
Author

Hello,

updating myself: When the IoT Gateway is configured to report directly to the Cloud, than it works.
But my idea was to have it reported to the edge, so that also locally at the production site I can provide user interfaces and logic directly, without having to communicate with the cloud.

In that case, should the complete IoT gateway configuration with the connectors be executed on the Edge?
This brings me back to my error above, where I get the error message when clicking the "connectors" icon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants