Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSCOMM input is different from Hyperterminal
Message
De
21/10/2008 17:34:19
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01356127
Message ID:
01356165
Vues:
21
>>I am connected to a machine through serial COM1 and the Input property of the MSCOMM control receives the following in the ONCOMM event:
>>
>>0,204.9
>>1,197.
>>
>>My code is:
>>IF THIS.CommEvent = 2
>> IF THIS.InBufferCount>0
>> lcString = THIS.Input
>> ...
>>
>>With hyperterminal, using the same port settings, I get the correct data, which is:
>>
>>0,204.9
>> 1,197.9
>> 2,193.4
>> 3,190.1
>> 4,187.5
>> 5,185.3
>> 6,183.5
>> 7,182.0
>> 8,180.7
>> 9,179.5
>> 10,178.4
>> 11
>>,177.5
>> 12,176.7
>> 13,175.9
>> 14,175.2
>> 15,174.5
>> 16,173.9
>>
>>TIA for any suggestions.
>>Mario
>
>
>Are the settings of the COM port equal in Hyperterminal and MSCOMM?
>Speed
>Parity
>Even or Odd bites.
>etc.

Hmm. If they were different wouldn't one of them result in garbage?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform