- #1 521
Bon je vais cloturer içi, fais moi signe quand la VMC est rebranchée ... (route = 2:30 si tout va bien 

pi@raspberrypi ~/raspVMC-master $ ./client1.py
connecting to 127.0.0.1 port 12000
requesting data
Traceback (most recent call last):
File "./client1.py", line 90, in <module>
sample(sock)
File "./client1.py", line 47, in sample
rcvd = VMC(hexframe)
File "/home/pi/raspVMC-master/VMC.py", line 50, in __init__
self.Payload() #extract the payload when checksum OK
File "/home/pi/raspVMC-master/VMC.py", line 119, in Payload
self.payload=binascii.a2b_hex(result.group(3))
AttributeError: 'NoneType' object has no attribute 'group'
pi@raspberrypi ~/raspVMC-master $
08/08/17 17:12:25 : Processing msg from queue ('127.0.0.1', 36557)
08/08/17 17:12:25 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36557)
08/08/17 17:12:25 : Command code: 0b reply is True
08/08/17 17:12:25 : expecting a reply
08/08/17 17:12:25 : Read 41 Bytes from serial port
08/08/17 17:12:25 : received from VMC 07f307f0000b00b8070f
08/08/17 17:12:25 : 8 frames received from VMC only one is expected from theread
08/08/17 17:12:25 : frame received from VMC stored in client queue 07f0000b00b8070f
08/08/17 17:12:25 : sending 07f0000b00b8070f to ('127.0.0.1', 36557)
08/08/17 17:12:25 : closing ('127.0.0.1', 36557) after reading no data

08/08/17 18:16:55 : Processing msg from queue ('127.0.0.1', 36558)
08/08/17 18:16:55 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36558)
08/08/17 18:16:55 : Command code: 0b reply is True
08/08/17 18:16:55 : expecting a reply
08/08/17 18:16:55 : Read 27 Bytes from serial port
08/08/17 18:16:55 : received from VMC 07f300
08/08/17 18:16:55 : No frame detected in 07f300
09/08/17 20:06:43 : Processing msg from queue ('127.0.0.1', 36575)
09/08/17 20:06:43 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36575)
09/08/17 20:06:43 : Command code: 0b reply is True
09/08/17 20:06:43 : expecting a reply
09/08/17 20:06:43 : Read 21 Bytes from serial port
09/08/17 20:06:43 : received from VMC
09/08/17 20:06:43 : No frame detected in
09/08/17 20:06:48 : closing ('127.0.0.1', 36575) after reading no data
09/08/17 20:06:49 : new client connection from ('127.0.0.1', 36576)
09/08/17 20:06:49 : received 07f0000b00b8070f ('127.0.0.1', 36576) from client ('127.0.0.1', 36576) retained is 07f0000b00b8070f
09/08/17 20:06:49 : Pr
09/08/17 20:06:30 : Processing msg from queue ('127.0.0.1', 36574)
09/08/17 20:06:30 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36574)
09/08/17 20:06:30 : Command code: 0b reply is True
09/08/17 20:06:30 : expecting a reply
09/08/17 20:06:30 : Read 57 Bytes from serial port
09/08/17 20:06:30 : received from VMC 1800fffafc0000002000000100800200fe00
09/08/17 20:06:30 : No frame detected in 1800fffafc0000002000000100800200fe00
09/08/17 20:06:40 : closing ('127.0.0.1', 36574) after reading no data
09/08/17 20:06:43 : new client connection from ('127.0.0.1', 36575)
09/08/17 20:06:43 : received 07f0000b00b8070f ('127.0.0.1', 36575) from client ('127.0.0.1', 36575) retained is 07f0000b00b8070f
09/08/17 20:06:43 : Processing msg from queue ('127.0.0.1', 36575)
09/08/17 20:06:43 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36575)
09/08/17 20:06:43 : Command code: 0b reply is True
09/08/17 20:06:43 : expecting a reply
09/08/17 20:06:43 : Read 21 Bytes from serial port
09/08/17 20:06:43 : received from VMC
09/08/17 20:06:43 : No frame detected in
09/08/17 20:06:48 : closing ('127.0.0.1', 36575) after reading no data
09/08/17 20:06:49 : new client connection from ('127.0.0.1', 36576)
09/08/17 20:06:49 : received 07f0000b00b8070f ('127.0.0.1', 36576) from client ('127.0.0.1', 36576) retained is 07f0000b00b8070f
09/08/17 20:06:49 : Pr
09/08/17 20:06:30 : received from VMC 1800fffafc0000002000000100800200fe00
09/08/17 20:06:30 : No frame detected in 1800fffafc0000002000000100800200fe00
pi@raspberrypi ~/raspVMC-master $ ./client1.py
connecting to 127.0.0.1 port 12000
requesting data
10/08/17 15:31:46 : Processing msg from queue ('127.0.0.1', 36587)
10/08/17 15:31:46 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36587)
10/08/17 15:31:46 : Command code: 0b reply is True
10/08/17 15:31:46 : expecting a reply
10/08/17 15:31:46 : Read 27 Bytes from serial port
10/08/17 15:31:46 : received from VMC 07f300
10/08/17 15:31:46 : No frame detected in 07f300
0/08/17 15:33:54 : Processing msg from queue ('127.0.0.1', 36588)
10/08/17 15:33:54 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 36588)
10/08/17 15:33:54 : Command code: 0b reply is True
10/08/17 15:33:54 : expecting a reply
10/08/17 15:33:54 : Read 21 Bytes from serial port
10/08/17 15:33:54 : received from VMC
10/08/17 15:33:54 : No frame detected in
pi@raspberrypi ~/raspVMC-master $ ./client1.py
connecting to 127.0.0.1 port 11000
Traceback (most recent call last):
File "./client1.py", line 72, in <module>
sock.connect(server_address)
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 111] Connection refused
pi@raspberrypi ~/raspVMC-master $