Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Titan » Error in transmission of hexstring data on serial port
Error in transmission of hexstring data on serial port [message #1796822] Fri, 19 October 2018 12:24 Go to next message
le tian is currently offline le tianFriend
Messages: 16
Registered: October 2018
Junior Member

When I use TITAN to transmit 'hexstring' data through serial port, the receiver accepts it through serial port, and the receiver will appear superfluous zero data between two frames, which causes the matching failure with the ideal data acceptance. What may be the reason for this phenomenon?

Thank you for your answer!
Re: Error in transmission of hexstring data on serial port [message #1796823 is a reply to message #1796822] Fri, 19 October 2018 12:31 Go to previous messageGo to next message
Lenard Nagy is currently offline Lenard NagyFriend
Messages: 54
Registered: September 2016
Member
Hi,

Have You set the terminating character to the same on both ends in the config file?
e.g.:

[TESTPORT_PARAMETERS]
...

*.SerialPort1.EOLChar := "\n"
*.SerialPort2.EOLChar := "\n"

Lenard
Re: Error in transmission of hexstring data on serial port [message #1796828 is a reply to message #1796823] Fri, 19 October 2018 13:22 Go to previous message
le tian is currently offline le tianFriend
Messages: 16
Registered: October 2018
Junior Member
Hello
Thank you for your answer.
The receiver is not a TITAN but a real serial port. The separator of each frame is" 0x7e". The receiver will do a frame breaking process, but the data will receive an additional 0. For example:
the TTCN3 code is

SerialPort2.send('7eff7e'H)
SerialPort2.send('7e107e'H)

the receiver will receive 0x7eff7e0000007e107e000000
Previous Topic:Performance Testing of OPC-UA
Next Topic:How to automatically acquire *.SerialPort1.deviceFilename in.cfg file
Goto Forum:
  


Current Time: Wed Apr 24 14:55:35 GMT 2024

Powered by FUDForum. Page generated in 0.02738 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top