Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using bytes, Hexa and serial port from VFP
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Using bytes, Hexa and serial port from VFP
Miscellaneous
Thread ID:
00954721
Message ID:
00954721
Views:
48
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
Next
Reply
Map
View

Click here to load this message in the networking platform