Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Q: Serial Port Blues
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00002273
Message ID:
00002394
Vues:
29
>>>>Marc
>
>
>>You keep telling me 'initialize a seial port' but
>>you never mention what type of initialization!
>>Initializing can be one of many things (ie:
>>resetting UART, OPening/closing port, etc).
>>
>>Oh well, good luck!
>>
>>Tom
>
>Tom,
>
>I guess there is a good reason for that: I do not
>know what you are talking about. In BASIC I used
>to Open the com port and there is a code for
>initilising which worked.

Marc

Obviously you are not experienced at low level serial port handling <s>. This is good! It gets real deep real fast. When dealing direct with serial ports you must initialize buffers, set UART parameters at the biary level, etc. This is what I was getting at, wether you were dealing at a high or low level with the hardware. Obviously your at the higher level. Still do not know why fopen()/fclose() will not work for you. If you close the port & then reopen it Fox 'should' reinitialize the port for you.

Oh well, if it ain't broke, don't fix it. =;+)

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform