difference between c# and java write() -


i trying establish serialport communication between eftpos terminal connected serialport , computer. eftpos manual has c# code testing , in have following lines write port , read port straightaway.

port.writeline("@pl");
console.writeline(port.readline());

but in java if use application goes halt. using eventhandlers in java read response eftpos terminal. still couldnot work. have doubt writeline("@pl") of c# , outputstream.write(bytearray) of java. these 2 methods phrases string in same whay when written on port ?? because eftpos respond if message "@pl". solution problem great relief me..

it's possible they're writing in different encodings. if eftpos terminal expecting ascii , java writing utf-16, won't work.


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -