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 disconnect and connect every some msec #1286

Closed
Tasosgi opened this issue Jan 28, 2024 · 8 comments
Closed

[HELP] Gateway disconnect and connect every some msec #1286

Tasosgi opened this issue Jan 28, 2024 · 8 comments
Assignees

Comments

@Tasosgi
Copy link

Tasosgi commented Jan 28, 2024

I can send telemetry data to platform but the gateway disconnect and connect every some msec. It seems that it tries to subscribe to attributes without success.

gateway

modbus_serial.txt
tb_gateway.json.txt

Copy link

Hi @Tasosgi.
Thank you for your interest in ThingsBoard IoT Gateway.
Your issue was registered, please wait for response from engineer.

IOTGW-80

@imbeacon
Copy link
Member

Hi @Tasosgi,

Usually disconnect with this reason code appears if you have already connected gateway with the same credentials, could you try to generate a new accessToken and use it?

@Tasosgi
Copy link
Author

Tasosgi commented Jan 29, 2024

Hello, yes I have seen that in other cases. But in that case there isn't another gateway or device online. Anyway I will check it today.

Another strange think I see in this version is that if I don't put the "type": "serial" before "master" my configuration file don't works and the gateway use the default one. According to the examples it must be under "slaves". I have attach my configuration files

@imbeacon
Copy link
Member

Ok, another option is rate limits, could you check your notifications on the platform - don't you have a message like "Rate limits exceeded?

@Tasosgi
Copy link
Author

Tasosgi commented Jan 29, 2024

No message like this. This platform hasn't big load. There was a traffic yesterday when I tested the gateway but I think because the repeatedly connect - disconnect procedure.

API usage

@imbeacon
Copy link
Member

@Tasosgi I mean notification (bell icon in the top panel), there is rate limits per device on ThingsBoard level. And if you restart the gateway 3 or 4 times per minute - it may be triggered.

@devaskim
Copy link
Contributor

devaskim commented Feb 6, 2024

I faced with this problem after enabling remoteConfiguration option #1254

@Tasosgi
Copy link
Author

Tasosgi commented Feb 6, 2024

Thanks to the help of @imbeacon I found the problem. I had gave the same name to the gateway, when I created it in the platform, and the slave, in the modbus configuration file

@Tasosgi Tasosgi closed this as completed Feb 6, 2024
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

4 participants