Toggle navigation
Categories
Discussions
HARMAN Pro
Home
AKG
AMX
BSS
Crown
dbx
JBL Professional
Lexicon
Soundcraft
Sign In
Home
›
AMX User Forum
›
Duet/Cafe Duet
sending hex to rs232 device
alexho
Posts:
7
October 2006
in
Duet/Cafe Duet
was trying to create a simple duet module but encounter this problem, how do i send hex from java to the device? please advice.
Thanks in advance
Alex
0
Comments
sonny
Posts:
208
October 2006
I'm assuming you mean you need to send binary data, as opposed to ASCII data,
depends on how you need/want to build the packet, but I use a string buffer...
StringBuffer packet = new StringBuffer();
packet.append((char) 0x01);
packet.append((char) 0x2B);
packet.append((char) 0x0D);
packet.append((char) 0x0A);
// etc...then
dv.sendString(packet.toString());
you could also use a character array
0
alexho
Posts:
7
October 2006
Hi sonny,
thanks the above reply is of great help to me.
thanks alot
Alex
0
Sign In
or
Register
to comment.
Comments
depends on how you need/want to build the packet, but I use a string buffer...
StringBuffer packet = new StringBuffer();
packet.append((char) 0x01);
packet.append((char) 0x2B);
packet.append((char) 0x0D);
packet.append((char) 0x0A);
// etc...then
dv.sendString(packet.toString());
you could also use a character array
thanks the above reply is of great help to me.
thanks alot
Alex