Closed jrajauriya closed 4 years ago
How about changing from
System.out.print((int) b + ",");
to
System.out.print((char) b + ",");
@mizoguch-ken thanks for reply. after convert to System.out.print((char) b + ",");
we got following row data.
Read 14 bytes.
,,#,,~,?,?,?,?,?,,,?,F,
Read 0 bytes.
Read 14 bytes.
,#,,,,,,2,p,>,t,?,,',
Read 0 bytes.
Read 14 bytes.
,,,,h,?,p,?,?,2,f,?,2,2,
Read 0 bytes.
Read 14 bytes.
G,,9,,@,?,,,,,,,,
,
Read 0 bytes.
Read 14 bytes.
,,,,,,,,
,,?,#,,`,
Read 0 bytes.
Read 14 bytes.
,0,p, , ,?,,
,7,l,?,",f,?,
Read 0 bytes.
Read 14 bytes.
,?,,:,h,,r,?,?,1,?,,?,,
Read 0 bytes.
Read 14 bytes.
,,,,
,,,,
,,,,
,,
Read 0 bytes.
Read 14 bytes.
,,
,,,,
,,,,
,,,,
Read 0 bytes.
Read 14 bytes.
,,,,
,,,,
,,,,
,,
Read 0 bytes.
If the result is different from what you expect, can you tell me what value you expect?
expected result something like this:
O|1|LID668||^WBC^^\^RBC^^|R||20030516161149||||A||The
patient is abc.|||Dr. xyz||sus.blasts^?\var.
lymph^++||100^\^|1.00^2.0^3.0^4.0^5.0^6.0^7.0^8.0^^^^
^^8.0^10.0^11.0^12.0^13.0^14.0^15.0^^^^^||||Q<CR>
I think that byte data and expected value do not match. Is the communication setting correct?
yes, we set the parameters comPort.setComPortParameters(9600, 8, 1, SerialPort.NO_PARITY);
according to machine manual.
Is it possible to get the actual settings instead of the manual?
@mizoguch-ken yes it is possible, we got same output from com port to without set baud rate, data bits and parity.
From the expected results, I think it is probably a LIS Interface. If so, Can I view Configure LIS settings with DM Configuration Tool?
not an issue in the library, closing
we are using jSerialComm library. we read byte from com port. but we are not able to encoded byte.
and we got following output::