GRUPOS DE DISCUSSÃO PROFISSIONAL
WINDEV
,
WEBDEV
e
WINDEV Mobile
Inicio
|
Mensagens recentes
|
Conecte-se...
|
Disconnect
|
Português
Inicio
→
WINDEV Mobile 2024
→
Charact() while serial read
Charact() while serial read
Iniciado por Anuj, out., 26 2010 3:30 PM - 1 resposta
Conecte-se…
Anuj
#1
Publicado em outubro, 26 2010 - 3:30 PM
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
Denunciar
0
0
Hubert
#2
Membro registado
8 mensagems
Publicado em novembro, 19 2010 - 7:30 PM
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.
Denunciar
0
0
→ Voltar para WINDEV Mobile 2024
WINDEV 2024
WEBDEV 2024
WINDEV Mobile 2024
WINDEV (versões anteriores)
Français
English
Español
Portuguesa
Fermer cette fenêtre
Tipo de Pesquisa
Apenas tópicos
Todas as mensagens
Período de pesquisa
Qualquer momento
Última hora
Últimas 24 horas
Semana passada
Mês passado
Ano passado
Cancelar
Pré-visualização da sua mensagem
Adicionar imagem
Importar uma imagem de uma URL
Enviar uma imagem a partir do seu disco
Deixe um ficheiro ou clique em "Procurar ..."
ou
Cancelar
0%
WLanguage
SQL
XML, HTML
JAVA, Javascript
Texto