Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Serial Communication : fBinary
Message
 
À
10/04/1997 14:03:38
Narendra Lilaramani
Gentech Business Machines Ltd
Ahmedabad, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00027564
Message ID:
00027819
Vues:
29
>>>Hi all
>>> I came across a strange problem. I made a application for
>>>Serial communication with an external device using Foxtools & 16 bit api
>>>calls. In this application, DCB structure has fBinary=0. Now in this application I
>>>give command to read from external device, it works perfectly and picks
>>>up 5K data transmitted from device. When I give this command second time
>>>its behaviour is strange, It picks up whatever is specified in Last
>>>parameter (length) of ReadComm.ie if I say ReadComm(Commid,rStr,30000). It
>>>returns with saying it has read 30000 characters which is not the case.
>>>It runs perfectly for the first time. (ie if I close & reopen the port again
>>>before giving command it works perfectly)
>>>
>>>Now what I found is when I make fBinary=1 in DCB structure. It works
>>>perfectly all the time.
>>>
>>>Can anybody explain this behaviour to me?? Please...
>>>
>>>Thanks in Advance
>>>
>>>Narendra
>>
>>
>>Would be nice if you mentioned what platform & what version of FoxPro you were using. It may help us. Please give some details since Comm stuff is not the easiest thing to work with.
>>
>>Tom
>
>Hi Tom
>
> I am using VFP 3.0 on Pc-486/DX2, Windows 3.1,
> communicating with AT & T EPABX through standard serial port.
> I have noted same behaviour using 16 bit APIs from PowerBuilder.
>
>Narendra

Yes, big difference between 3.1 & 95. Sorry but I never used the FoxTools library for serial ports. I used a 3rd party like SilverFox from Silverware.

Wish I could help more.
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