Closed smit-github closed 3 years ago
Hi @smit-github ,
Please try to use the version from master branch. This os known issue and it is already resolved in master branch.
which version it has ?
It is version 2.5.2, so ro install it, you should run the following commands sudo pip3 uninstall thingsboard-gateway
And
pip3 uninstall thingsboard-gateway
It will remove the old version from your system and then open repository folder and run
sudo python3 setup.py install
On Thu, Nov 5, 2020, 11:45 AM smit-github notifications@github.com wrote:
which version it has ?
— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/thingsboard/thingsboard-gateway/issues/428#issuecomment-722265174, or unsubscribe https://github.com/notifications/unsubscribe-auth/ALTFSXZR4I46N4EQILZSEULSOJX3HANCNFSM4TLD3NIQ .
I have done the above steps now i didn't able to find the how to configure using config file with above installation using source option as you above mentioned! as modbus error solved by installing as per your method but got below error
2020-11-05 18:23:49' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:50' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:52' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:53' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:54' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:56' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:57' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:58' - DEBUG - tb_client - 125 - connecting to ThingsBoard'
''2020-11-05 18:23:59' - DEBUG - tb_client - 83 - TB client <paho.mqtt.client.Client object at 0x75b11290> connected to ThingsBoard'
''2020-11-05 18:23:59' - ERROR - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised'
''2020-11-05 18:23:59' - DEBUG - tb_device_mqtt - 125 - Disconnected client: <paho.mqtt.client.Client object at 0x75b11290>, user data: None, result code: 5
`
How did you run the gateway - as a daemon or by command from the "installation from sources" guide?
by command that is given in installation from sources as suggested in "installation from sources"
Ok, in this case the gateway takes configuration from config folder in thingsboard_gateway folder in cloned repository folder.
I have done the above steps now i didn't able to find the how to configure using config file with above installation using source option as you above mentioned! as modbus error solved by installing as per your method but got below error
2020-11-05 18:23:49' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:50' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:52' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:53' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:54' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:56' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:57' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:58' - DEBUG - tb_client - 125 - connecting to ThingsBoard' ''2020-11-05 18:23:59' - DEBUG - tb_client - 83 - TB client <paho.mqtt.client.Client object at 0x75b11290> connected to ThingsBoard' ''2020-11-05 18:23:59' - ERROR - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised' ''2020-11-05 18:23:59' - DEBUG - tb_device_mqtt - 125 - Disconnected client: <paho.mqtt.client.Client object at 0x75b11290>, user data: None, result code: 5
`
what about the errors above mentioned i have got that configuration files and changes the token of as per thingsboard but now it is giving above errors
thingsboard-gateway not able to conneted to the thingsboard with this gateway version otherwise it is up and running with standard linux installation method
""2020-11-06 16:47:25" - ERROR - [tb_device_mqtt.py] - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised"
""2020-11-06 16:47:36" - ERROR - [tb_device_mqtt.py] - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised"
""2020-11-06 16:47:47" - ERROR - [tb_device_mqtt.py] - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised"
""2020-11-06 16:47:57" - ERROR - [tb_device_mqtt.py] - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised"
""2020-11-06 16:48:08" - ERROR - [tb_device_mqtt.py] - tb_device_mqtt - 148 - connection FAIL with error 5 not authorised"
Please HELP
Any update?
Hi @smit-github ,
Modbus connector was fixed in the master branch, please try the version from it and if the issue appears again - create the new issue.
Describe the issue Create description about your issue, and your actions to solve it. I have installed the thingsboard IoT gateway in rPi3 ,I am trying to connect the modbus slave using modbus connector of the IoT gateway thingsboard. and got below error i have attached usb to uart in rPi3 .
Configuration (Attach your configuration file) Notate: Remove Access token from file if you wanna attach tb_gateway.yaml { "server": { "name": "Modbus Default Server", "type": "serial", "method": "rtu", "port": "/dev/ttyUSB0", "baudrate": 19200, "timeout": 35, "devices": [ { "unitId": 1, "deviceName": "Temp Sensor", "attributesPollPeriod": 5000, "timeseriesPollPeriod": 5000, "sendDataOnlyOnChange": true, "attributes": [ { "byteOrder": "BIG", "tag": "test", "type": "long", "functionCode": 4, "registerCount": 1, "address": 4 } ] } ] } }
Connector name (If you need help with some connector/converter): [e.g. MQTT Connector] Modbus Serial Connector
Error traceback (If it was raised):
Versions (please complete the following information):