Connexion
Accueil
→
WinDev Mobile 17
→
Charact() while serial read
Charact() while serial read
Débuté par Anuj, 26 oct. 2010 15:30 - 1 réponse
Connectez-vous…
Anuj
#1
Posté le 26 octobre 2010 - 15:30
I am not able to receive the 0x00 on serial port.
if i send a stream of data eg: 0xab 0xcd 0xdf 0xcb 0x00 0x56 0x87 etc..
this data stream i need to send in hex i.e. using a charact(data) function.
in a loopback mode (shorting Tx and Rx physically) i am not able to receive the data after byte 0x00.
if i m not including data 0x00 then i m able to receive the full data stream.
In help section of Charact(), use of charact() for some values is said to be avoided. what are the other ways to receive a character equivalent of these values?
please suggest some solutions.
thanks
Anuj
0
0
Hubert
#2
Membre enregistré
8 messages
Posté le 19 novembre 2010 - 20:30
Hi,
Info
(
Length
(
"A"
+
Charact
(
0
)
+
"B"
)
,
"A"
+
Charact
(
0
)
+
"B"
)
this code will show 3 and A, so Charact(0) will build a 0x00 String, but info() will not show Text after a 0x00. So your problem is not charact(), but the sender or the receiver part.
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 17
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