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]gateway should mix devices and connections 1toM and Mto1 #1460

Closed
Jonnik84 opened this issue Jul 13, 2024 · 3 comments
Closed

[HELP]gateway should mix devices and connections 1toM and Mto1 #1460

Jonnik84 opened this issue Jul 13, 2024 · 3 comments
Assignees
Labels
can be closed If bug fixed or feature is implemented help wanted

Comments

@Jonnik84
Copy link

Jonnik84 commented Jul 13, 2024

Hi.
I’m attaching a small diagram to help to understand my question.

gateway.pdf

In my opinion, Gateway is a device that should transform data from one system to another system and that’s why there should be no direct connection between connectors and cloud devices.

For example, I have one modbus IO module, to which I connect several temperature sensors. For now there is no problem to create several modbus slaves in one connector each for different device in the cloud, aimed to get different registers from this IOModule. Gateway UI dashboard, I will see those devices and their connector will be the same for all of them.
image

but there is a problem when I have several IO modules, that I need to maintain into one cloud device
in this case, system doesn’t work. device cannot be displayed correctly ( it collects data to one device from different connectors.) UI doesn’t simply have such functionality. It’s possible now to display only one connector for device….

For me, it’s mission critical for Gateway to have such ability.

@imbeacon
Copy link
Member

Hi @Jonnik84,

At the moment, the gateway cannot act like this, but you can use rule chains to guide the telemetry for one device to another or to the both of them.

@Jonnik84
Copy link
Author

@imbeacon thanks for suggestion
But I don't get. please explain. :)))

So I need to create several cloud devices for each connector and send telemetry between them with rule chains??

@imbeacon
Copy link
Member

Particularly you are right.
When data arrives to ThingsBoard, you have a post telemetry message in rule chains, with originator - device, configured in the connector configuration.
I have created just an example rule chain, you can play with it to understand on how to duplicate message to another device, new device will be created automatically in this rule chain. It is just an example, but not a solution for yout case, please adjust it for your needs.
test_message_splitting.json

Example on how to connect it in root rule chain is the following, don’t forget to check is device name in metadata (yellow switch in right side on screenshot) is equal to “base” device.

Screenshot 2024-07-30 at 10 29 57

@imbeacon imbeacon added the can be closed If bug fixed or feature is implemented label Jul 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
can be closed If bug fixed or feature is implemented help wanted
Projects
None yet
Development

No branches or pull requests

3 participants