- #901
hip hip hip !!!!
SpigoloN;1064439 a dit:Hourra!!! Plus qu'à trouver le temps de comprendre le soft et de jouer avec, mais c'est vraiment un soulagement car je faisais du sur place depuis un bout de temps.
listhor;1065155 a dit:That's how my unit's connection board looks alike:
![]()
So, I have connected raspi through RJ45 to (through HAT converter - ttyAMA0) Ext.conn. socket and CCEase is connected to USB-RS232 converter - ttyUSB0. Ground is shared between CCEase and USB converter . CCEase RX is connected to TX of USB converter an CCEase TX to RX of USB converter.
What am I doing wrong, maybe I should have used RS232 port, visible on the drawing??
listhor;1065136 a dit:And one more thing, for the last 2 weeks I was almost completely offline and now I've noticed that somebody wants to ask me for something...? About dashboard or Yahoo weather panel? Is it still valid question?
# Create a TCP/IP socket
# get server information from configuration
try:
config.get('ConfoSense','port')
CCPort = int(string.replace(config.get('ConfoSense','port'),'"',''))
except:
CCPort = 10001
try:
config.get('control','port')
CTRLPORT = int(string.replace(config.get('Control','port'),'"',''))
except:
CTRLPORT = 10002
[VMC]
device = /dev/ttyAMA0
[ConfoSense]
tty = /dev/ttyUSB0
port = 10001
[control]
port = 10002
[server]
bind = ""
port = 10003
[client]
server = "127.0.0.1"
[socat]
pty = /tmp/ttyVMC
[debug]
log = /var/log/VMClog.log
level = 8
listhor;1065489 a dit:You are great!
I had have already everything (json* and VMC*) copied in /var/www/html and cgi were they should be so, I've been missing only to run command: sudo a2enmod cgi and it works! BTW, what does Rndmnt/neuf mean?
19/12/15 15:32:12 : expecting a reply
19/12/15 15:32:12 : received from VMC 07f307f0000e0400000000bf070f
19/12/15 15:32:12 : 12 frames received from VMC only one is expected from theread
19/12/15 15:32:12 : frame received from VMC stored in client queue 07f0000e0400000000bf070f
19/12/15 15:32:12 : sending 07f0000e0400000000bf070f to ('127.0.0.1', 43134)
19/12/15 15:32:12 : closing ('127.0.0.1', 43134) after reading no data
19/12/15 15:32:18 : new client connection from ('127.0.0.1', 43137)
19/12/15 15:32:18 : received 07f0000b00b8070f ('127.0.0.1', 43137) from client ('127.0.0.1', 43137) retained is 07f0000b00b8070f
19/12/15 15:32:18 : Processing msg from queue ('127.0.0.1', 43137)
19/12/15 15:32:18 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 43137)
19/12/15 15:32:18 : Command code: 0b reply is True
CCEase is back alive and I can use it to control VMC.20/12/15 08:55:45 : expecting a reply
20/12/15 08:55:46 : received from VMC 07f307f0000c062323061a065a85070f
20/12/15 08:55:46 : 14 frames received from VMC only one is expected from theread
20/12/15 08:55:46 : frame received from VMC stored in client queue 07f0000c062323061a065a85070f
20/12/15 08:55:46 : sending 07f0000c062323061a065a85070f to ('127.0.0.1', 47779)
20/12/15 09:00:33 : New connection for CCEASE/COMFOSENSE from ('172.16.0.15', 39193)
20/12/15 09:00:33 : ConfoSense Request for 07f000370700000000000002ed070f from ('172.16.0.15', 39193)
20/12/15 09:00:33 : Processing msg from queue ('172.16.0.15', 39193)
20/12/15 09:00:33 : Sending frame 07f000370700000000000002ed070f to VMC from Client ('172.16.0.15', 39193)
20/12/15 09:00:33 : Command code: 37 reply is True
20/12/15 09:00:33 : expecting a reply
20/12/15 09:00:34 : received from VMC 07f307f0003c0a8210864f4f06000000e08f070f
20/12/15 09:00:34 : 18 frames received from VMC only one is expected from theread
20/12/15 09:00:34 : frame received from VMC stored in client queue 07f0003c0a8210864f4f06000000e08f070f
20/12/15 09:00:34 : sending 07f0003c0a8210864f4f06000000e08f070f to ('172.16.0.15', 39193)
20/12/15 09:00:34 : ConfoSense Request for 07f000370700000000000003ee070f from ('172.16.0.15', 39193)
20/12/15 09:00:34 : Processing msg from queue ('172.16.0.15', 39193)
20/12/15 09:00:34 : Sending frame 07f000370700000000000003ee070f to VMC from Client ('172.16.0.15', 39193)
20/12/15 09:00:34 : Command code: 37 reply is True
20/12/15 09:00:34 : expecting a reply
20/12/15 09:00:34 : received from VMC 07f307f0003c0a8210864f4f06000000e08f070f
20/12/15 09:00:34 : 18 frames received from VMC only one is expected from theread
20/12/15 09:00:34 : frame received from VMC stored in client queue 07f0003c0a8210864f4f06000000e08f070f
20/12/15 09:00:34 : sending 07f0003c0a8210864f4f06000000e08f070f to ('172.16.0.15', 39193)
20/12/15 09:00:34 : ConfoSense Request for 07f000370700000000000002ed070f from ('172.16.0.15', 39193)
20/12/15 09:00:34 : Processing msg from queue ('172.16.0.15', 39193)
20/12/15 09:00:34 : Sending frame 07f000370700000000000002ed070f to VMC from Client ('172.16.0.15', 39193)
20/12/15 09:00:34 : Command code: 37 reply is True
In this case, Fhem works but is less reliable - gets timeouts.2015.12.20 09:00:48 3: VMC: timeout waiting for reply expecting 000c Request was 07f0000b00b8070f
2015.12.20 09:01:32 3: VMC: Timeout2 in ReadAnswer for Stufe
2015.12.20 09:01:32 3: VMC: timeout waiting for reply Request was 07f0009901034a070f
2015.12.20 09:02:54 3: VMC: Timeout2 in ReadAnswer for Stufe
2015.12.20 09:02:54 3: VMC: timeout waiting for reply Request was 07f00099010249070f
expecting a reply
20/12/15 09:46:14 : received from VMC 07f307f0003c0a8210ef663f5b000000e054070f
20/12/15 09:46:14 : 18 frames received from VMC only one is expected from theread
20/12/15 09:46:14 : frame received from VMC stored in client queue 07f0003c0a8210ef663f5b000000e054070f
20/12/15 09:46:14 : sending 07f0003c0a8210ef663f5b000000e054070f to ('127.0.0.1', 37105)
20/12/15 09:46:14 : ConfoSense Request for 07f000370700000000000003ee070f from ('127.0.0.1', 37105)
20/12/15 09:46:14 : Processing msg from queue ('127.0.0.1', 37105)
20/12/15 09:46:14 : Sending frame 07f000370700000000000003ee070f to VMC from Client ('127.0.0.1', 37105)
20/12/15 09:46:14 : Command code: 37 reply is True
20/12/15 09:46:14 : expecting a reply
20/12/15 09:46:15 : received from VMC 07f307f0003c0a8210ef663f5b000000e054070f
20/12/15 09:46:16 : 18 frames received from VMC only one is expected from theread
20/12/15 09:46:16 : frame received from VMC stored in client queue 07f0003c0a8210ef663f5b000000e054070f
20/12/15 09:46:16 : sending 07f0003c0a8210ef663f5b000000e054070f to ('127.0.0.1', 37105)
20/12/15 09:46:16 : ConfoSense Request for 07f0003300e0070f from ('127.0.0.1', 37105)
20/12/15 09:46:16 : Processing msg from queue ('127.0.0.1', 37105)
20/12/15 09:46:16 : Sending frame 07f0003300e0070f to VMC from Client ('127.0.0.1', 37105)
20/12/15 09:46:16 : Command code: 33 reply is True