web stats
Strange Connection - Mirth Community

Go Back   Mirth Community > Mirth Connect > Support

Reply
 
Thread Tools Display Modes
  #1  
Old 10-04-2019, 08:19 AM
Lenroc Lenroc is offline
What's HL7?
 
Join Date: Jan 2016
Posts: 4
Lenroc is on a distinguished road
Default Strange Connection

Hi,

I have an instrument that I am connecting to where messages have after every character a <NUL> char, in order to make the message work in Mirth I am stripping the <NUL> chars and I can then receive the message.

1. However I need to send back a message to same connection, which connector do I use? Channel Sender?

2. And in that case since the instrument expects every char to be followed by <NUL> in my response, how do I change the message start and message end chars...

(I can do it in a TCP Sender MLLP destination... but I need to send to the same connection, so can't use TCP Sender.)

I already have the script in place to add <NUL> after each char in the body.

Just need help now changing <VT> to <VT><NUL>
and <FS><CR> to <FS><NUL><CR><NUL>

Thank you,
Lenroc
Reply With Quote
  #2  
Old 10-04-2019, 08:55 AM
agermano agermano is offline
Mirth Guru
 
Join Date: Apr 2017
Location: Indiana, USA
Posts: 999
agermano is on a distinguished road
Default

Can't help you with sending back messages on the same connection, but your <NUL> character issue might be solved by changing your character encoding to UTF-16. If the NULs are coming after rather than before, you might need to use UTF-16LE (little endian) instead.
Reply With Quote
  #3  
Old 10-04-2019, 12:24 PM
Lenroc Lenroc is offline
What's HL7?
 
Join Date: Jan 2016
Posts: 4
Lenroc is on a distinguished road
Default

thank you agermano, that worked. And I figured out the rest.

Lenroc
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -8. The time now is 06:20 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2019, vBulletin Solutions, Inc.
Mirth Corporation