Click here to Skip to main content
15,892,697 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am Devloper for c# Language , I do Application to send and recive data from Backman DXC 600i Machine Laboratory vai Serial port . My application is recive data from serial port but the data is encryption , when I convert data to any encoding system ,The data is incorrect for example : Byte = 113-103-45-103-111-110-94-94-119-103-103-103-103-94-23-103-111-95-86-86-94-94-94-86-94-94-94-86-94-94-94-94-94-94-95-94-94-94-94-94-94-94-110-111-53-119-103-103-103-103-103-103-103-103-103-103-103-103-103-119-119-0-

HEX =71 67 2D 67 6F 6E 5E 5E 77 67 67 67 67 5E 17 67 6F 5F 56 56 5E 5E 5E 56 5E 5E 5E 56 5E 5E 5E 5E 5E 5E 5F 5E 5E 5E 5E 5E 5E 5E 6E 6F 35 77 67 67 67 67 67 67 67 67 67 67 67 67 67 77 77 00

UT8=qg-gon^^wgggg^go_VV^^^V^^^V^^^^^^_^^^^^^^no5wgggggggggggggww

I want data like this O|1|SAMPLE123^4^3^lot1^control 1||^^^01A^1\^^^73A^1\^^^63A^1\^^^75A^1\^^^11A^1\^^^95A^1|R|20060316135300||||John|N||||Urine|||1^1

Please help me.
Posted
Comments
[no name] 25-May-14 11:50am    
I can hardly imagine that the data is encrypted for a laboratory instrument. Unless the manufacturer of the device does not want to disclose the interface.
[no name] 26-May-14 20:16pm    
Have you used a terminal program such as PuTTY to confirm what is actually being sent? As SoMad has suggested your settings may be wrong and this is the best way to confirm them.
[no name] 27-May-14 15:05pm    
Since you don't show us any code so we have to guess, try Encoding.ASCII.GetString(yourByteArrayFromYourSerialPort);

Based on the sample of the expected format you have shown, I am guessing this is HL7 formatted data, although I am not familiar with any of the HL7 messages starting with a single 'O'.

If it is an HL7 interface, it is highly unlikely that the data is encrypted, since the HL7 standard is all about connecting devices from different manufacturers.

I believe it is much more likely, that you simply don't open your serial port with the correct parameters. To begin with, make sure you are using the same baud rate as the device sending the data. If your baud rate setting is indeed correct, check the other 'basic' parameters Data bits, Parity and Stop bits.

Soren Madsen
 
Share this answer
 
Comments
hizam$I 9-Aug-14 22:28pm    
I send parameters same parameters in machine but same result.
Please see
Machine Controller[^]
 
Share this answer
 
Comments
[no name] 25-May-14 11:54am    
I don't think this will help a lot. BTW very good pic and brave statement in your account. Kind regards, Bruno
I send this Parameters Buad rate =9600 , stopbit = one , databit =8,parity= none.
The Machine is have this parameter
 
Share this answer
 
Comments
hizam$I 9-Aug-14 22:27pm    
I send this parameters and machine have same parameters but same error.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900