Author Topic: xon/xoff  (Read 1029 times)

claudio222

  • Newbie
  • *
  • Posts: 10
    • View Profile
xon/xoff
« on: July 25, 2011, 05:06:24 pm »
I use Rad studio XE Pro ,and i need to comunicate with a logic analizer thru rs-232 , the analizer accept simple command to emulate a keyboard and send back an answer,for example i send CR and the analizer send back the hexadecimal sequence:
13 45 4e 54 45 52 0d 0a 2a 11 (xoff,E,N,T,E,R,cr,lf,*,xon).
now , when i try to receive this data from the analizer at the first time i find only the 'E' character in buffer,and at the second time i find in buffer "NTER/n/r*".
I use the method in the example StringReceiverBCB , i allegate a screenshot of the timing of the signal,
probably i mistake something .

claudio222

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: xon/xoff
« Reply #1 on: July 25, 2011, 10:32:14 pm »
I'm sorry I forgot to say that I'm using nrComm Lib 9.20 Pro
best regard

Roman Novgorodov

  • Engineer
  • Administrator
  • Hero Member
  • *****
  • Posts: 994
  • we will win
    • View Profile
    • Forums.nrCommLib.Com
Re: xon/xoff
« Reply #2 on: July 26, 2011, 06:25:11 am »
Hello

Thank you for your information.

Please see sources of Demo from attachment.

We modified DataProc demo for apply your task.

Roman Novgorodov
DeepSoftware LLC
DeepSoftware llc - The professional components for Delphi/CBuilder/.NET. The high quality custom software development.
Forums.nrCommLib.Com - DeepSoftware Tech Support Forum.

claudio222

  • Newbie
  • *
  • Posts: 10
    • View Profile
Re: xon/xoff
« Reply #3 on: July 27, 2011, 11:43:05 am »
Hi,roman , thank you for your reply , i've solved my problem.
My problem was the breakPoint placed in a wrong position and when i was checking a receive buffer the process was premature stopped and i can't see the data.
The problem was I!!
best regard .. claudio