Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using MSCOMM with USB to serial device
Message
From
28/05/2008 15:48:18
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Using MSCOMM with USB to serial device
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01320080
Message ID:
01320080
Views:
85
I am writing an application to read data from a GPS logging device using the MSCOMM control. All communication will be initiated by the FoxPro applicaiton which will send a command string then receive and parse data sent from the device.

Everything works fine if I type the commands in the command window, but if I transfer the same series of commands to a prg, I cannot capture the input. I stepped through the code and can see the input property flash then it is cleared before the next line of code.

I also tried using the MSCOMM ActiveX control (with RThreshold set to 1), but the OnComm event does not fire.

Is there anything I can do to capture data sent from the device?

Thanks in advance for any advice.
Next
Reply
Map
View

Click here to load this message in the networking platform