Citation de
oasis_ck le 13 avril 2019, 17 h 16 min
OK donc on efface tout et on recommence depuis le début 🙂
Voici la conf actuelle :
config.txt
root@jeedom:~# cat /boot/config.txt
[...]
dtoverlay=pi3-disable-bt
enable_uart=1
cmdline.txt
root@jeedom:~# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=da025a85-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
/dev
root@jeedom:~# ls -l /dev | grep serial
lrwxrwxrwx 1 root root 7 Apr 13 12:35 serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Apr 13 12:35 serial1 -> ttyS0
Test de PiZiGate sur les 2 ports séries
ttyAMA0
-rwxr-xr-x 1 root root 13524 Apr 11 20:31 PiZiGate_test
root@jeedom:~/Test/Bin# ./PiZiGate_test /dev/ttyAMA0
Searching /dev/ttyAMA0...
Port : /dev/ttyAMA0 is already used. Please read output.tmp file to get more informations about process which use /dev/ttyAMA0
root@jeedom:~/Test/Bin# cat output.tmp
agetty 500 root 0u CHR 204,64 0t0 1157 /dev/ttyAMA0
agetty 500 root 1u CHR 204,64 0t0 1157 /dev/ttyAMA0
agetty 500 root 2u CHR 204,64 0t0 1157 /dev/ttyAMA0
ttyS0
root@jeedom:~/Test/Bin# ./PiZiGate_test /dev/ttyS0
Searching /dev/ttyS0...
+ Port : /dev/ttyS0 is not used
Verif GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Config GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Opening : /dev/ttyS0 ...
+ /dev/ttyS0 opened --> OK
- Error from tcgetattr: Input/output error
- Error from write: -1, 5
- No packet received - size sent : -1 - error : 5
Merci pour le suivi
OK donc on efface tout et on recommence depuis le début 🙂
Voici la conf actuelle :
config.txt
root@jeedom:~# cat /boot/config.txt
[...]
dtoverlay=pi3-disable-bt
enable_uart=1
cmdline.txt
root@jeedom:~# cat /boot/cmdline.txt
dwc_otg.lpm_enable=0 console=tty1 root=PARTUUID=da025a85-02 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
/dev
root@jeedom:~# ls -l /dev | grep serial
lrwxrwxrwx 1 root root 7 Apr 13 12:35 serial0 -> ttyAMA0
lrwxrwxrwx 1 root root 5 Apr 13 12:35 serial1 -> ttyS0
Test de PiZiGate sur les 2 ports séries
ttyAMA0
-rwxr-xr-x 1 root root 13524 Apr 11 20:31 PiZiGate_test
root@jeedom:~/Test/Bin# ./PiZiGate_test /dev/ttyAMA0
Searching /dev/ttyAMA0...
Port : /dev/ttyAMA0 is already used. Please read output.tmp file to get more informations about process which use /dev/ttyAMA0
root@jeedom:~/Test/Bin# cat output.tmp
agetty 500 root 0u CHR 204,64 0t0 1157 /dev/ttyAMA0
agetty 500 root 1u CHR 204,64 0t0 1157 /dev/ttyAMA0
agetty 500 root 2u CHR 204,64 0t0 1157 /dev/ttyAMA0
ttyS0
root@jeedom:~/Test/Bin# ./PiZiGate_test /dev/ttyS0
Searching /dev/ttyS0...
+ Port : /dev/ttyS0 is not used
Verif GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Config GPIOs ...
+ GPIO 0 (RESET) --> OK
+ GPIO 2 (FLASH) --> OK
Opening : /dev/ttyS0 ...
+ /dev/ttyS0 opened --> OK
- Error from tcgetattr: Input/output error
- Error from write: -1, 5
- No packet received - size sent : -1 - error : 5
Merci pour le suivi