FORUMS PROFESSIONNELS
WINDEV
,
WEBDEV
et
WINDEV Mobile
Accueil
|
Messages récents
|
Connexion
|
Déconnexion
|
Français
Accueil
→
WINDEV Mobile 2024
→
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
Signaler
0
0
→ Revenir à WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (précédentes versions)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Type de recherche
Uniquement les sujets
Tous les messages
Période de recherche
Date indifférente
Moins d'une heure
Moins de 24 heures
Moins d'une semaine
Moins d'un mois
Moins d'un an
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
JAVA, Javascript
Texte