Connexion
Accueil
→
WinDev Mobile 17
→
reading serial port in buffer/string
reading serial port in buffer/string
Débuté par Anuj, 26 oct. 2010 11:58 - Aucune réponse
Connectez-vous…
Anuj
#1
Posté le 26 octobre 2010 - 11:58
hello all,
I m trying to send some commands [sWrite(6, Charact(cmd[index]))]to a device on COM6.
here "cmd" is an array of hex data.
I am reading back the response from device (sRead(6,sInEntryQueue(6))).
The problem is, I am not able to read data after a 0x00 data byte in response stream.
eg: if my response is "0xFE 0X56 0X78 0X64 0X34 0X00 0X04 0x00 0x00 0X08 0X99"
my read buffer shows first 5 bytes only and no data after that. this happens all the time. suppose if the 0x00 byte is the first data then my read buffer shows no data at all. do not know where i m gonig wrong.
if needed i can post the chunk of code as well.
thanks!
Anuj
0
0
→ Revenir à WinDev Mobile 17
PC SOFT
PC SOFT
Commander
Téléchargements
LST
Recrutement
Forum
Accueil
A propos
Flux RSS
Charte des forums
Donnez votre avis
Contact
Adresses
Facebook
Twitter
Youtube
Support & Assistance
Aide en ligne
Foire aux questions
Formations
Support Technique
PC SOFT : Fournisseur Officiel de la Préparation Olympique
Site réalisé avec
WEBDEV 18
et
HyperFileSQL
Copyright ©2009-2013 PC SOFT. Tous droits réservés.
Fermer cette fenêtre
WinDev 18
WebDev 17
WinDev Mobile 17
WinDev (précédentes versions)
Annuler
Aperçu de votre message
Ajouter une image
Importer une image depuis une URL
Envoyer une image depuis un fichier de votre disque
Déposez ici un fichier ou cliquez sur "Parcourir..."
ou
Annuler
0%
WLangage
SQL
XML, HTML