[RESOLU]Serial port 05

Vous débutez et vous avez besoin d'aide ? N'hésitez pas à poser vos questions
doudouvs
Messages : 244
Inscription : jeu. 07/mars/2013 19:02
Localisation : France Alsace / Espagne Girona

[RESOLU]Serial port 05

Message par doudouvs »

Bonjour,

Quand j'écrit 05 avec WriteSerialPortString ou WriteSerialPortData sur un serial

avec un socat du port pour voir

Code : Tout sélectionner

> 2020/01/02 11:15:08.868203  length=1 from=0 to=0
 35                                               5
Alors qu'il je voudrais avoir

Code : Tout sélectionner

> 2020/01/02 11:23:22.153553  length=1 from=0 to=0
 05                                               .
--


je comprend vraiment pas comment faire, si vous pouvez m'éclairé
Dernière modification par doudouvs le jeu. 02/janv./2020 11:49, modifié 1 fois.
GCC 7.4.0 / PureBasic 5.71 / Ubuntu 18.04.3 LTS
doudouvs
Messages : 244
Inscription : jeu. 07/mars/2013 19:02
Localisation : France Alsace / Espagne Girona

Re: Serial port 05

Message par doudouvs »

Bon après 2 jours de recherche je me décide de faire un Post et 5 minutes après je trouve la réponse Grrrrrrrrrrr j'aurai du Poster plus tôt

Code : Tout sélectionner

 
MyByte.a = $05
WriteSerialPortData(MyPort, @MyByte, 1)
GCC 7.4.0 / PureBasic 5.71 / Ubuntu 18.04.3 LTS
Répondre