04/01/17 21:06:27 : new client connection from ('127.0.0.1', 44319)
04/01/17 21:06:27 : received 07f0000b00b8070f ('127.0.0.1', 44319) from client ('127.0.0.1', 44319) retained is 07f0000b00b8070f
04/01/17 21:06:28 : Processing msg from queue ('127.0.0.1', 44319)
04/01/17 21:06:28 : Sending frame 07f0000b00b8070f to VMC from Client ('127.0.0.1', 44319)
04/01/17 21:06:28 : Command code: 0b reply is True
04/01/17 21:06:28 : expecting a reply
04/01/17 21:06:28 : received from VMC 300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a4e6967687441657261206c6f67696e3a20526173706269616e20474e552f4c696e75782037204e696768744165726120747479414d41300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a4e6967687441657261206c6f67696e3a20526173706269616e20474e552f4c696e75782037204e696768744165726120747479414d41300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a
04/01/17 21:06:28 : No frame detected in 300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a4e6967687441657261206c6f67696e3a20526173706269616e20474e552f4c696e75782037204e696768744165726120747479414d41300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a4e6967687441657261206c6f67696e3a20526173706269616e20474e552f4c696e75782037204e696768744165726120747479414d41300a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a0a
04/01/17 21:06:38 : closing ('127.0.0.1', 44319) after reading no data
Non rien.D'après ce que je vois beaucoup de line feed (0a), as tu enlevé la console du GPIO ?
En convertissant les code ascii que tu reçoit
4e6967687441657261206c6f67696e3a20526173706269616e 20474e552f4c696e75782037204e6967687441657261207474 79414d41
rjcab;1186271 a dit:Bonjour jcoenen,
Merci pour ta réactivité.
Si je comprends bien voici ce que je dois faire:
- enlever console=serial0,115200
- faire un reboot
- Lancer un des clients client1.py client2.py client3.py (après avoir lancer le serveur)
rjcab;1186271 a dit:mais une fois que j'ai lancé le client que faire pour voir si cela fonctionne ?
Que c'est bien la console qui est configurée sur le port série du Pi.rjcab;1186271 a dit:Que faut il en déduire ?
Merci
root@NightAera:~# tail /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=ttyAMA0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline rootwait
root@NightAera:~# cd raspVMC-master/
root@NightAera:~/raspVMC-master# ./server.py &
[1] 2556
root@NightAera:~/raspVMC-master# ./client1.py
connecting to 127.0.0.1 port 11000
requesting data
root@NightAera:~/raspVMC-master# ./client1.py
connecting to 127.0.0.1 port 11000
requesting data
Traceback (most recent call last):
File "./server.py", line 418, in <module>
next_msg = response(Sport)
File "./server.py", line 76, in response
bread = Sport.read(256);
File "/usr/lib/python2.7/dist-packages/serial/serialposix.py", line 456, in read
raise SerialException('device reports readiness to read but returned no data (device disconnected?)')
serial.serialutil.SerialException: device reports readiness to read but returned no data (device disconnected?)
Traceback (most recent call last):
File "./client1.py", line 90, in <module>
sample(sock)
File "./client1.py", line 31, in sample
sock.sendall(frame.FullFrame())
File "/usr/lib/python2.7/socket.py", line 224, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 32] Broken pipe
[1]+ Exit 1 ./server.py
root@NightAera:~/raspVMC-master# vi VMC.ini
[VMC]
device = /dev/ttyAMA0
[server]
bind =
port = 11000
[control]
port = 11002
[client]
server = 127.0.0.1
[socat]
pty = /tmp/ttyVMC
[debug]
log = /var/log/VMClog.log
level = 8
root@NightAera:~# ls -l /dev/ttyAMA0
crw-rw---- 1 root tty 204, 64 Jan 5 21:24 /dev/ttyAMA0
root@NightAera:~/raspVMC-master# ps -ef | grep tty
root 2380 1 0 21:08 tty1 00:00:00 /sbin/getty --noclear 38400 tty1
root 2381 1 0 21:08 tty2 00:00:00 /sbin/getty 38400 tty2
root 2383 1 0 21:08 tty3 00:00:00 /sbin/getty 38400 tty3
root 2384 1 0 21:08 tty4 00:00:00 /sbin/getty 38400 tty4
root 2385 1 0 21:08 tty5 00:00:00 /sbin/getty 38400 tty5
root 2386 1 0 21:08 tty6 00:00:00 /sbin/getty 38400 tty6
root 2387 1 0 21:08 ttyAMA0 00:00:00 /sbin/getty -L ttyAMA0 115200 vt100
root 2605 2537 0 21:08 pts/0 00:00:00 grep tty
root@NightAera:~/raspVMC-master#
rjcab;1186750 a dit:Hello,
Résultat de la commande :
SpigoloN;1187452 a dit:Bonjour et bonne Année.
Avec le froid revient mon questionnement sans réponse de l'hiver dernier.
Comment marche cette batterie anti gel ?
Bizarrerie 1: Tneuf augmente, Textrait aussi mais rien sur Soufflée.
=> dans ce cas on voit bien le mode impulsion. Quelques minutes de chauffage puis un stop plus long.
Bizarrerie 2: Tneuf bien supérieur à Text, Tsoufflée élevé aussi
=> ok oui mais l'indicateur anti gel reste à 0 et la VMC semble se contrefoutre que la Text soit remonté et qu'il fasse par exemple 3°C dehors.
=> cette bizarrerie semble survenir quand je suis en mode absence.
Merci
root@NightAera:/sbin# sysctl stop getty@ttyAMA0.service
sysctl: cannot stat /proc/sys/stop: No such file or directory
sysctl: cannot stat /proc/sys/getty@ttyAMA0/service: No such file or directory
root@NightAera:/sbin# sysctl stop getty
sysctl: cannot stat /proc/sys/stop: No such file or directory
sysctl: cannot stat /proc/sys/getty: No such file or directory
root@NightAera:/sbin# kill getty
-bash: kill: getty: arguments must be process or job IDs
root@NightAera:/sbin# ps
PID TTY TIME CMD
2523 pts/0 00:00:01 bash
12874 pts/0 00:00:00 ps
root@NightAera:/sbin# sysctl stop getty@ttyAMA0.service
sysctl: cannot stat /proc/sys/stop: No such file or directory
sysctl: cannot stat /proc/sys/getty@ttyAMA0/service: No such file or directory
root@NightAera:/sbin# cd /
root@NightAera:/# find -name *AMA0*
./dev/ttyAMA0
./sys/devices/platform/soc/3f201000.uart/tty/ttyAMA0
./sys/class/tty/ttyAMA0
root@NightAera:/# lsb_release -a
No LSB modules are available.
Distributor ID: Debian
Description: Debian GNU/Linux 7.9 (wheezy)
Release: 7.9
Codename: wheezy
root@NightAera:/#