AGG Software Forums
September 08, 2024, 07:21:02 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
News: Welcome on our forum!
 
   Home   Help Search Login Register  

Pages: [1]
  Print  
Author Topic: Problem using plugin 'Binary protocol simple emulator'  (Read 26028 times)
hodietel
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« on: April 05, 2016, 12:34:04 PM »

Hi,

I want to emulate a measurement instrument connectet to com1:
When I send "ID?<CR><LF>" from a terminal emulation to the instrument, it answers with an ID-string.
I have configured in the plugin: Request: ID?#0D#0A and Answer: SOMETHING#0D#0A and use the monitor in spy modus with the plugin open. I have a german installation, version 4.4.6 build 324.
I had no success so far also using other combinations for request/answer.

Does anybody have any idea?

Regards
Horst
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #1 on: April 05, 2016, 01:58:13 PM »

Hello Horst,

I've tested this plugin with your request and answer, using 2 instances of Advanced Serial Port Monitor and the program works as expected.

If you type this request manually in the terminal program then it will not work, because the plugin has a timeout (about 500 ms) between bytes.


* img1.png (41.46 KB, 1035x786 - viewed 3 times.)
Logged
hodietel
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« Reply #2 on: April 05, 2016, 03:51:30 PM »

Hello,

it looks like as you use 2 port monitors in manual mode with the plugin. I have a program on my pc which I want to test against an emulated instrument on a com port. So I used the spymode. When I look into the source code of the plugin there is the following statement in the function OnDataExchange:

if DataSent or (DataSize<=0)then exit; // for example, if the program works in the spy mode

does that mean, I cannot use the spy modus?
BTW is it possible to get the SDK library (I have Delphi XE)

Horst
Logged
Arthur Grasin
Tech. Support
Administrator
Hero Member
*****

Karma: +0/-0
Posts: 806



View Profile WWW
« Reply #3 on: April 05, 2016, 03:55:44 PM »

In the Spy mode the program cannot sent anything to the port. Therefore, this plugin will not work in the Spy mode.
Logged
hodietel
Newbie
*

Karma: +0/-0
Posts: 3


View Profile
« Reply #4 on: April 05, 2016, 07:30:05 PM »

OK, I got it.
Now I use a free virtual serial port emulator, configured 2 bridged ports, on the one end my program, on tho other end the Advanced Serial Port Monitor with ASCII-Plugin in manual mode.
Works fine. Smiley

Problem solved.

Horst
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by SMF 1.1.21 | SMF © 2015, Simple Machines