Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using MSCOMM with USB to serial device
Message
De
28/05/2008 19:54:06
 
 
À
28/05/2008 15:48:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01320080
Message ID:
01320130
Vues:
29
Some usb devices have their own drivers and create a virtual serial port which can easily be written to and read from using mscomm (there are many examples here on the UT). Also, bluetooth USB devices do this. What virtual serial port does your device create? It must be a serial port for the MSCOMM control to read the data coming in the port. Once you determine that, look at the many messages regarding using the MSCOMM control here and in downloads.

Try this and see if you capture anything as a test:

Re: Mscomm control Thread #1178407 Message #1178608


>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.
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform