Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using bytes, Hexa and serial port from VFP
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00954721
Message ID:
00954738
Vues:
15
>Hi!
>
>I need to communicate via RS-232 serial port with a medical device (COM1,9600,8,N,1)
>I'm using MSComm ActiveX.
>The scarce and raw documentation says: 0x51 single byte send to start communication and 0x55 as acknowledgment, i.e.
>
>How can I do this ?
>It is the MSComm the best method to communicate with a serial device ? Do you know alternative uses ?
>
>I need information to how can I operate a serial device using Hexa information and reading data stream in 16 bit word (I need to read the nibbles, low and high).
>Can I do this with VFP ? Do I need use other tool as C or C++ ?
>
>Links, articles, info, downloads, all will be welcomed.
>
>p.s. I'm using TRANSFORM(nValue,"@ 0") and TRANSFORM(0x51) and I couldn't have connected with the serial device successfully.
>It is seen that the information that I have sent from VFP the serial device does not understand.
>
>Thanks in advance

Simply try to send the device 0x51. VFP will properly send the value to it. (BTW 81 = 0x51 and 85 = 0x55). That might work.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform