Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Serial Communication : fBinary
Message
From
10/04/1997 14:03:38
Narendra Lilaramani
Gentech Business Machines Ltd
Ahmedabad, India
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00027564
Message ID:
00027815
Views:
23
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform