abalazs
Posts: 2
Joined: Sat Oct 31, 2009 4:20 am

vport OnDataFromPort strange trigger

Sat Oct 31, 2009 4:27 am

Hi There,
I just purchased serial tools and have a question about a strange behavior.

A third party tool I have been using talks to physical serial ports, in binary. When I connect this to a virtual port I created in serialtools, connection is fine (connected), but OnDataFromPort does not trigger.

However, if I just connect to the virtual port with a standard (I use SerialPort control in vb.net) FIRST and just close it, (keeping the vport alive) then the third party reconnects and all of a sudden can talk to the vport and the OnDataFromPort now fires up fine.

Any idea why I have to sort of 'initialize' the vport with an other port first?

Thank you
Attila

User avatar
johan
GpsGate
Posts: 14323
Joined: Wed Aug 04, 2004 10:40 pm
Location: Sweden
Contact: Website

RE: vport OnDataFromPort strange trigger

Sat Oct 31, 2009 1:54 pm

Are you sure the third party tools ready sends any data to the port?

Try Hyperterminal for example.

Regards,
Johan

Franson Support

abalazs
Posts: 2
Joined: Sat Oct 31, 2009 4:20 am

RE: vport OnDataFromPort strange trigger

Sun Nov 01, 2009 7:42 pm

Hi Johan,
Yes it looks like the 3rd party tool is ready to send data. A compatator's virtual port picks it up fine. The main strange behavior is that connecting a SerialPort first to serialtools vport somehow resets the vport, after which (with no changes) the 3rd party talks fine. I also noticed that the vport does not show in device manager, but the compatative virtual port software does. When this compatitor software creates vport, windows beeps with alert that a new port is detected. That does not happen with serialtools.
Does that have any meaning?

Another info, is that the 3rd party tool when connecting sets many settings, such as baud rate, parity, etc. This is what I read when 3rd party connects(taken from the compatitor's vport connect event):

Port is opened 2196
Application has set ByteSize to 5.
Application has set Parity flag to 0.
Application has set StopBits to 0.
Application has set ByteSize to 7.
Application has set Parity flag to 2.
Application has set DTR to True.
Application has set RTS to True.
Application has set fOutxCtsFlow flag to False.
Application has set fOutxDsrFlow flag to False.
Application has set fDtrControl flag to 1.
Application has set fDsrSensitivity flag to False.
Application has set fOutX flag to False.
Application has set fInX flag to False.
Application has set fTXContinueOnXoff flag to False.
Application has set fNull flag to False.
Application has set RtsControl flag to 64.
Application has set fAbortOnError flag to False.\r\nApplication has set fUseErrorChar flag to False.
Application has set XonLim to 0.
Application has set XoffLim to 0.
Application has set RTS to False.
Application has set DTR to False.
Application has set ByteSize to 5.
Application has set Parity flag to 0.
Application has set ByteSize to 7.
Application has set Parity flag to 2.
Application has set DTR to True.
Application has set RTS to True.
Application has set XonLim to 2048.
Application has set XoffLim to 512.
Application has set baud rate to 9600.
Application has set ByteSize to 8.
Application has set Parity flag to 0.
Application has set XoffChar to 19.

Sorry for the long email, I like your product and hope to make it
work,

Regards
Attila

Return to “SerialTools”