Výpis bcg v debug režimu nevím jak udělat.
Zde je popis:
Nedaří se rozchodit komunikaci mezi “USB Dongle”
Win8 (64)
- USB Dongle je v počítači
- spustím hřiště BigClown:
- C:\Users\Milan>pm2 list
[PM2] Spawning PM2 daemon with pm2_home=C:\Users\Milan.pm2
[PM2] PM2 Successfully daemonized
Use pm2 show <id|name>
to get more details about an app
- C:\Users\Milan>bcf devices
COM1
COM3
-Restartuji Mosquitto a Node-RED:
- C:\Users\Milan>pm2 resurrect
[PM2] Resurrecting
[PM2] Restoring processes located in C:\Users\Milan.pm2\dump.pm2
[PM2] Process C:\Program Files (x86)\BigClown
Playground\mosquitto\mosquitto.exe
restored
[PM2] Process C:\Program Files (x86)\nodejs\node.exe restored
[PM2] Process C:\Program Files
(x86)\Python36-32\lib\site-packages\bcg\gateway.p
y restored
[PM2] Process C:\Program Files
(x86)\Python36-32\lib\site-packages\bcg\gateway.p
y restored
Use pm2 show <id|name>
to get more details about an app
- Spustím bránu napozadí:
- C:\Users\Milan>pm2 start -f “%BigClownGateway%” --name bcg -
[PM2] Starting C:\Program Files (x86)\Python36-32\lib\site-p
py in fork_mode (1 instance)
[PM2] Done.
Use pm2 show <id|name>
to get more details about an app
- Uložím:
- C:\Users\Milan>pm2 save
[PM2] Saving current process list…
[PM2] Successfully saved in C:\Users\Milan.pm2\dump.pm2
-Spustím http: // localhost: 1880 /
Node-Red se spustí OK
Jelikož není tutoriál na Termostat LCD tak pokračuji podle tutoriálu
"Bezdrátový klimatizační systém"
-Sestavím termostat
-importuji na kartu Flow1 v NodeRED =
[{“id”:“2fc604fc.3b6abc”,“type”:“inject”,“z”:“dfc861b.b2a02a”,“name”:“List
all
gateways”,“topic”:“gateway/all/info/get”,“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:560,“y”:460,“wires”:[[“a2c10833.24d5d8”]]},{“id”:“1e4502b8.2f63fd”,“type”:“inject”,“z”:“dfc861b.b2a02a”,“name”:“Start
node
pairing”,“topic”:“gateway/usb-dongle/pairing-mode/start”,“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:570,“y”:580,“wires”:[[“795ff5a7.8e266c”]]},{“id”:“3d844ce2.932864”,“type”:“inject”,“z”:“dfc861b.b2a02a”,“name”:“Stop
node
pairing”,“topic”:“gateway/usb-dongle/pairing-mode/stop”,“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:560,“y”:640,“wires”:[[“5967c452.c838bc”]]},{“id”:“f202b253.2705b”,“type”:“inject”,“z”:“dfc861b.b2a02a”,“name”:“List
paired
nodes”,“topic”:“gateway/usb-dongle/nodes/get”,“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:560,“y”:520,“wires”:[[“f0aca138.0b2c3”]]},{“id”:“349f02fd.890f6e”,“type”:“inject”,“z”:“dfc861b.b2a02a”,“name”:“Unpair
all
nodes”,“topic”:“gateway/usb-dongle/nodes/purge”,“payload”:"",“payloadType”:“str”,“repeat”:"",“crontab”:"",“once”:false,“x”:560,“y”:700,“wires”:[[“2f1c5bb6.53d6f4”]]},{“id”:“cf61d75d.4ad8f8”,“type”:“mqtt
in”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"#",“qos”:“2”,“broker”:“67b8de4a.029d3”,“x”:530,“y”:400,“wires”:[[“a5cb0658.f5d658”]]},{“id”:“a5cb0658.f5d658”,“type”:“debug”,“z”:“dfc861b.b2a02a”,“name”:"",“active”:true,“console”:“false”,“complete”:“false”,“x”:790,“y”:400,“wires”:[]},{“id”:“a2c10833.24d5d8”,“type”:“mqtt
out”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"",“qos”:"",“retain”:"",“broker”:“717f7c18.ba0a24”,“x”:770,“y”:460,“wires”:[]},{“id”:“f0aca138.0b2c3”,“type”:“mqtt
out”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"",“qos”:"",“retain”:"",“broker”:“717f7c18.ba0a24”,“x”:770,“y”:520,“wires”:[]},{“id”:“795ff5a7.8e266c”,“type”:“mqtt
out”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"",“qos”:"",“retain”:"",“broker”:“717f7c18.ba0a24”,“x”:770,“y”:580,“wires”:[]},{“id”:“5967c452.c838bc”,“type”:“mqtt
out”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"",“qos”:"",“retain”:"",“broker”:“717f7c18.ba0a24”,“x”:770,“y”:640,“wires”:[]},{“id”:“2f1c5bb6.53d6f4”,“type”:“mqtt
out”,“z”:“dfc861b.b2a02a”,“name”:"",“topic”:"",“qos”:"",“retain”:"",“broker”:“717f7c18.ba0a24”,“x”:770,“y”:700,“wires”:[]},{“id”:“67b8de4a.029d3”,“type”:“mqtt-broker”,“z”:"",“broker”:“localhost”,“port”:“1883”,“clientid”:"",“usetls”:false,“compatmode”:true,“keepalive”:“60”,“cleansession”:true,“willTopic”:"",“willQos”:“0”,“willPayload”:"",“birthTopic”:"",“birthQos”:“0”,“birthPayload”:""},{“id”:“717f7c18.ba0a24”,“type”:“mqtt-broker”,“z”:"",“broker”:“localhost”,“port”:“1883”,“clientid”:"",“usetls”:false,“compatmode”:true,“keepalive”:“60”,“cleansession”:true,“willTopic”:"",“willQos”:“0”,“willPayload”:"",“birthTopic”:"",“birthQos”:“0”,“birthPayload”:""}]
- Vložím baterky do termostatu
termostat LCD ukazuje teplotu a dá se tlačítkem snižovat nebo zvyšovat
teplota OK.
Node-RED je OK podle obrázků tutoriálu
-Kliknu na tlačítko Seznam všech bran
30. 1. 2018 10:52:12node: 9222d788.0294e8
gateway/all/info/get : msg.payload : string[0]
""
!!! NEOBJEVÍ se žádná zpráva
Pokračuji podle Tutoriálu
- Vyndám baterky z termostatu
- Kliknu na tlačítko Spárování uzlů Start .
30. 1. 2018 10:58:45node: 9222d788.0294e8
gateway/usb-dongle/pairing-mode/start : msg.payload : string[0]
""
!!! NEOBJEVÍ se žádná zpráva
_ Vložím baterie svítí 2s červená led
- Kliknu na tlačítko párování uzlů Stop .
30. 1. 2018 11:02:14node: 9222d788.0294e8
gateway/usb-dongle/pairing-mode/stop : msg.payload : string[0]
""
!!! NEOBJEVÍ se žádná zpráva
Pokud měním teplotu na termostatu nebo ho zahřeju, žádné zprávy na
Node-Red nepřijdou.
Předem děkuji za radu