Martin, Pavel, thank you for your support.
Seems, all running fine and as usual, the error was just between chair and keyboard
Summary:
I use usb dongle
- stop pm2 service
- running device with sudo (missing before): "sudo bcg --device /dev/ttyUSB3 --debug
Response without sudo:
bcg --device /dev/ttyUSB3 --debug
2018-01-14 22:48:17,092 INFO: Start
2018-01-14 22:48:17,092 INFO: Serial port: /dev/ttyUSB3
2018-01-14 22:48:17,092 INFO: MQTT broker host: localhost, port: 1883, use tls: False
2018-01-14 22:48:17,097 INFO: Connected to MQTT broker with code 0
2018-01-14 22:48:17,097 DEBUG: subscribe gateway/all/info/get
2018-01-14 22:48:17,097 DEBUG: subscribe gateway/ping
Response with sudo:
sudo bcg --device /dev/ttyUSB3 --debug
[sudo] heslo pre používateľa peter:
2018-01-14 23:12:36,241 INFO: Start
2018-01-14 23:12:36,241 INFO: Serial port: /dev/ttyUSB3
2018-01-14 23:12:36,241 INFO: MQTT broker host: localhost, port: 1883, use tls: False
2018-01-14 23:12:36,246 INFO: Connected to MQTT broker with code 0
2018-01-14 23:12:36,247 DEBUG: subscribe gateway/all/info/get
2018-01-14 23:12:36,247 DEBUG: subscribe gateway/ping
2018-01-14 23:12:36,253 INFO: Opened serial port: /dev/ttyUSB3
2018-01-14 23:12:36,253 DEBUG: Exclusive lock on file descriptor: 6
2018-01-14 23:12:36,254 DEBUG: write b’["/info/get", null]\n’
2018-01-14 23:12:36,277 DEBUG: read b’["/info", {“id”: “836d1983660f”, “firmware”: “bcf-gateway-usb-dongle”, “version”: “v1.7.4”}]\n’
2018-01-14 23:12:36,277 DEBUG: subscribe gateway/usb-dongle/+/+
2018-01-14 23:12:36,277 DEBUG: node_rename 836d1983660f to usb-dongle
2018-01-14 23:12:36,278 DEBUG: write b’["$eeprom/alias/add", {“name”: “usb-dongle”, “id”: “836d1983660f”}]\n’
2018-01-14 23:12:36,278 DEBUG: write b’["$eeprom/alias/list", 0]\n’
2018-01-14 23:12:36,548 DEBUG: read b’["$eeprom/alias/add/ok", “836d1983660f”]\n’
My config file should be than set correctly (/etc/bigclown/bc-gateway.yml):
device: /dev/ttyUSB3
mqtt:
host: localhost
port: 1883
rename:
836d1983660f: usb-dongle
I was able to pair with Wireless CO2 Monitor without any other issue and currently getting responses to node-RED…
Once again, thank you!
Peter