https://github.com/hallard/teleinfo-test
Programme de test des modules téléinfo
https://github.com/hallard/teleinfo-test
microteleinfo pitinfo teleinfo tic uteleinfo
Last synced: about 1 month ago
JSON representation
Programme de test des modules téléinfo
- Host: GitHub
- URL: https://github.com/hallard/teleinfo-test
- Owner: hallard
- Created: 2020-08-20T12:14:07.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-27T12:33:25.000Z (over 2 years ago)
- Last Synced: 2025-04-18T11:37:21.724Z (about 2 months ago)
- Topics: microteleinfo, pitinfo, teleinfo, tic, uteleinfo
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 3
- Watchers: 4
- Forks: 1
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# teleinfo
Programme de test de la téléinfo pour les modules
- [PITinfo](https://www.tindie.com/products/hallard/pitinfo/)
- [uTeleinfo V2](https://www.tindie.com/products/hallard/micro-teleinfo-v20/)
- [uTeleinfo V3](https://www.tindie.com/products/hallard/micro-teleinfo-v30/)
- Tout autre module compatible serie## Installation
Python est nécessaire ainsi que la librairie Python Serial.
Exemple d'installation sur Raspbery Pi ou Linux
```
sudo apt-get install git-core python-serial
git clone https://github.com/hallard/teleinfo-test
cd teleinfo-test
```Par defaut le programme essaie de trouver le port série correspondant à la téléinfo. Si c'est un module MicroTeleinfo il sera automatiquement detecté avec son numéro de série.
Si le port `/dev/ttyAMA0` existe (Raspberry Pi) il sera aussi automatiquement utilisé.
## Usage
L'option `-s`ou `--standard` est utilisée si votre Linky est en mode Standard (9600 bps) et non historique (1200 bps).
Aide
`./teleinfo.py -h` ou `./teleinfo.py --help`
```
./teleinfo.py -p|--port
./teleinfo.py -s|--standard
./teleinfo.py -l|--list
./teleinfo.py [-h|--help]
```Affichage de la liste des ports séries disponibles
`./teleinfo.py -l` ou `./teleinfo.py --list`
```
/dev/cu.Bluetooth-Incoming-Port: n/a [n/a]
/dev/ttyUSB0: FT230X Basic UART [USB VID:PID=0403:6015 SER=TINFO-1036 LOCATION=1-1.4]
```Lancement du module avec choix manuel du port
`./teleinfo.py -p /dev/ttyUSB0` ou `./teleinfo.py --port /dev/ttyUSB0`
```
Teleinfo : Mode Historique
Port : /dev/ttyUSB0
Vitesse : 1200PTEC HP..
IINST 001 X
IMAX 002 A
PAPP 00180 *
HHPHC A ,
MOTDETAT 000000 B
ADCO 021528603314 :
OPTARIF HC.. <
ISOUSC 15 <
HCHC 000723392
HCHP 001742238 .
PTEC HP..
IINST 001 X
IMAX 002 A
```Lancement du module avec choix automatique du port (ici sur un Pi avec PITinfo)
`./teleinfo.py`
```
Missing serial port argument trying to find Teleinfo
Teleinfo : Mode Historique
Port : /dev/ttyAMA0
Vitesse : 12005
ADCO 021528603314 :
OPTARIF HC.. <
ISOUSC 15 <
HCHC 000723392
HCHP 001742204 '
PTEC HP..
IINST 001 X
IMAX 002 A
PAPP 00180 *
HHPHC A ,
MOTDETAT 000000 B
ADCO 021528603314 :
OPTARIF HC.. <
ISOUSC 15 <
HCHC 000723392
HCHP 001742204 '
PTEC HP..
IINST 001 X
```Lancement du module avec choix automatique du port (ici sur un Mac avec un module MicroTeleinfo)
`./teleinfo.py````
Missing serial port argument trying to find Teleinfo
Teleinfo : Mode Historique
Port : /dev/cu.usbserial-TINFO_1036
Vitesse : 1200MOTDETAT 000000 B
ADCO 021528603314 :
OPTARIF HC.. <
ISOUSC 15 <
HCHC 000723392
HCHP 001742220 %
PTEC HP..
IINST 001 X
IMAX 002 A
PAPP 00190 +
HHPHC A ,
MOTDETAT 000000 B
ADCO 021528603314 :
OPTARIF HC.. <
ISOUSC 15 <
HCHC 000723392
HCHP 001742220 %
PTEC HP..
IINST 001 X
IMAX 002 A
PAPP 00190 +
HHPHC A ,
MOTDETAT 000000 B
```# License
![]()
This work is licensed under a [Creative Commons Attribution-NonCommercial 4.0 International License](http://creativecommons.org/licenses/by-nc/4.0/)
# Misc
See news and other projects on my [blog](https://hallard.me)